@font-face {
  font-family: Onest;
  src: url("/assets/onest.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #0d0d0d;
  --sidebar: #111112;
  --surface: #161618;
  --raised: #1c1c20;
  --hover: #232328;
  --text: #e8e8ed;
  --muted: #ababba;
  --border: #29292f;
  --accent: #b6c2ff;
  --accent-bg: #222638;
  --green: #a1d6b1;
  --red: #f1a7aa;
  --amber: #e0c798;
  --shadow: 0 24px 80px #0008;
  color-scheme: dark;
  font-family: Onest, Arial, sans-serif;
}
html[data-theme="light"] {
  --bg: #f6f8fc;
  --sidebar: #fff;
  --surface: #fff;
  --raised: #f1f3f8;
  --hover: #e9edf5;
  --text: #162235;
  --muted: #637087;
  --border: #dce2ed;
  --accent: #365bd6;
  --accent-bg: #e9edff;
  --green: #297345;
  --red: #ae3c47;
  --amber: #876324;
  --shadow: 0 24px 80px #17233620;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.22;
  font-weight: 540;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 16px;
}
p {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 20;
  background: var(--accent);
  color: var(--bg);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
  width: 236px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 33px 19px 20px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
}
.brand img {
  width: 102px;
  height: 29px;
  object-fit: contain;
}
.brand > span {
  font-size: 19px;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: -0.5px;
}
html[data-theme="light"] .brand img {
  filter: brightness(0.15);
}
.sidebar > .brand {
  margin: 0 12px 37px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 29px;
}
.workspace-mark {
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 33px;
  height: 33px;
  font-size: 17px;
  font-weight: 600;
}
.workspace-label strong {
  font-size: 13px;
  font-weight: 550;
}
.workspace-label small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.nav-label {
  font-size: 12px;
  letter-spacing: 1.8px;
  color: var(--muted);
  padding: 0 13px;
  margin-bottom: 12px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 9px;
  padding: 12px 13px;
  color: var(--muted);
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
}
.sidebar nav a:hover {
  background: var(--hover);
  color: var(--text);
}
.sidebar nav a[aria-current] {
  background: var(--accent-bg);
  color: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 20px 9px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.connection.offline .status-dot {
  background: var(--red);
}
.operator {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}
.operator > div {
  min-width: 0;
  flex: 1;
}
.operator strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.operator small {
  color: var(--muted);
  font-size: 12px;
}
.workspace {
  margin-left: 236px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 20px;
}
.topbar > div,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb > span {
  margin: 0 14px;
  color: var(--border);
}
.breadcrumb strong {
  color: var(--text);
  font-weight: 400;
}
.environment {
  color: var(--muted);
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--hover);
  color: var(--text);
}
.menu-button {
  display: none;
}
.demo-banner {
  font-size: 12px;
  color: var(--muted);
  padding: 9px 36px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sidebar);
}
.demo-banner > span {
  height: 5px;
  width: 5px;
  background: var(--amber);
  border-radius: 50%;
}
main#main {
  padding: 35px 36px 45px;
  width: 100%;
  max-width: 1740px;
  margin: 0 auto;
  flex: 1;
}
footer {
  padding: 20px 36px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  opacity: 0.7;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 550;
  color: var(--muted);
  margin-bottom: 10px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 30px;
}
.page-heading p {
  font-size: 12px;
  margin-top: 11px;
}
.primary,
.danger,
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 500;
  font-size: 12px;
  min-height: 39px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: #141725;
}
.primary:hover {
  filter: brightness(1.06);
}
html[data-theme="light"] .primary {
  color: #fff;
}
.quiet {
  background: var(--raised);
  border-color: var(--border);
  color: var(--text);
}
.quiet:hover {
  background: var(--hover);
}
.danger {
  background: #a9414b;
  color: #fff;
}
.danger-text {
  color: var(--red) !important;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  margin-bottom: 28px;
  overflow: hidden;
}
.stat {
  padding: 21px 23px;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border: 0;
}
.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.stat-label svg {
  opacity: 0.7;
}
.stat strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1.3px;
  line-height: 1.2;
  margin: 18px 0 7px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 12px;
  color: var(--muted);
}
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 23px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 23px 18px;
  gap: 12px;
}
.panel-heading h2 {
  font-size: 16px;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--raised);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  vertical-align: 2px;
  margin-left: 7px;
}
.panel-heading p {
  font-size: 12px;
  margin-top: 6px;
}
.text-link {
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}
.table-tools {
  display: flex;
  gap: 9px;
  padding: 20px 22px;
  align-items: center;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0 11px;
  border-radius: 7px;
  flex: 1;
  min-width: 100px;
  margin: 0;
}
.search-field svg {
  color: var(--muted);
}
.search-field input {
  border: 0;
  background: none;
  width: 100%;
  padding: 10px 0;
  min-width: 0;
  font-size: 12px;
}
.search-field kbd {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 5px;
  font-size: 12px;
  color: var(--muted);
}
input,
select,
textarea {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  padding: 11px 12px;
  width: 100%;
  font-size: 13px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
select {
  width: auto;
  font-size: 12px;
  padding-right: 26px;
}
.table-tools .quiet {
  font-size: 12px;
  min-height: 35px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  color: var(--muted);
  font-weight: 400;
  padding: 12px 18px;
  background: var(--sidebar);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  white-space: nowrap;
}
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--raised);
}
th:first-child,
td:first-child {
  padding-left: 23px;
}
th:last-child,
td:last-child {
  padding-right: 18px;
}
.person {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #ffffff08;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
}
.avatar.small {
  width: 30px;
  height: 30px;
  background: var(--raised);
  font-size: 12px;
}
.avatar.large {
  width: 64px;
  height: 64px;
  font-size: 22px;
}
.color-0 {
  background: #303248;
  color: #c4c6eb;
}
.color-1 {
  background: #283c35;
  color: #b1d7c3;
}
.color-2 {
  background: #46352f;
  color: #ddbfac;
}
.color-3 {
  background: #3c2d3a;
  color: #d9b2d4;
}
.user-name {
  display: block;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  padding: 0;
  background: none;
}
.user-name:hover {
  color: var(--accent);
}
.subline {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  white-space: nowrap;
}
.user-id {
  opacity: 0.8;
}
.money {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  border-radius: 5px;
  padding: 4px 7px;
  white-space: nowrap;
  background: var(--raised);
  color: var(--muted);
}
.badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.positive {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 8%, transparent);
}
.negative {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, transparent);
}
.warning {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 8%, transparent);
}
.provider {
  font-size: 12px;
  white-space: nowrap;
}
.date-cell {
  font-size: 12px;
  white-space: nowrap;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 14px 22px;
  font-size: 12px;
  color: var(--muted);
  gap: 10px;
}
.pager {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pager .quiet {
  font-size: 12px;
  min-height: 29px;
  padding: 5px 9px;
}
.support-card {
  padding: 24px 21px;
  background: linear-gradient(140deg, var(--accent-bg), var(--surface) 70%);
  border: 1px solid var(--border);
  border-radius: 13px;
}
.accent-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 13px;
  color: var(--accent);
  margin-bottom: 27px;
}
.support-card .eyebrow {
  font-size: 12px;
  letter-spacing: 1.4px;
}
.support-card h2 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.support-card p {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.support-card > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.support-card > a:hover {
  color: var(--accent);
}
.small-note {
  display: flex;
  gap: 12px;
  padding: 25px 3px;
}
.small-note > svg {
  color: var(--muted);
  margin-top: 3px;
}
.small-note strong {
  font-weight: 500;
  font-size: 12px;
}
.small-note p {
  font-size: 12px;
  line-height: 1.8;
  margin: 7px 0 11px;
}
.back-link {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 27px;
}
.back-link:hover {
  color: var(--accent);
}
.profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}
.profile-heading .person {
  gap: 20px;
}
.profile-heading h1 {
  font-size: 29px;
}
.profile-heading p {
  font-size: 12px;
  margin-top: 6px;
}
.profile-heading .eyebrow {
  margin-bottom: 6px;
}
.balance-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--border);
  padding: 24px 0;
  margin-bottom: 30px;
}
.balance-strip > div {
  padding: 0 27px;
  border-right: 1px solid var(--border);
}
.balance-strip > div:first-child {
  padding-left: 0;
}
.balance-strip > div:last-child {
  border: 0;
}
.balance-strip small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.balance-strip strong {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.balance-strip span {
  display: block;
  font-size: 14px;
  margin-top: 15px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 257px;
  gap: 24px;
  align-items: start;
}
.tabs {
  display: flex;
  overflow: auto;
  border-bottom: 1px solid var(--border);
  gap: 22px;
  padding: 0 24px;
}
.tabs a {
  color: var(--muted);
  padding: 17px 0;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs a[aria-current] {
  color: var(--accent);
  border-color: var(--accent);
}
.detail-content {
  padding: 25px;
}
.detail-content h2 {
  margin-bottom: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
  margin: 0 0 32px;
}
.detail-field dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-field dd {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.caption {
  font-size: 12px;
  line-height: 1.8;
}
.actions-panel {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 22px 19px;
  background: var(--surface);
}
.actions-panel h2 {
  font-size: 15px;
}
.actions-panel > p {
  font-size: 12px;
  line-height: 1.8;
  margin: 10px 0 15px;
}
.action-button {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  padding: 14px 0;
  background: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  text-align: left;
}
.action-button:hover {
  color: var(--accent);
}
.action-footnote {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 17px;
  margin-top: 5px;
}
.notice {
  font-size: 12px;
  line-height: 1.7;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--raised);
  padding: 15px 17px;
  margin-bottom: 22px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.record-cell {
  max-width: 300px;
  min-width: 80px;
  overflow-wrap: anywhere;
  font-size: 12px;
  vertical-align: top;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.security-card {
  padding: 30px;
}
.security-card > svg {
  color: var(--accent);
  margin-bottom: 28px;
}
.security-card h2 {
  margin-bottom: 12px;
}
.security-card p {
  font-size: 13px;
  line-height: 1.9;
  max-width: 490px;
}
.empty {
  text-align: center;
  padding: 64px 22px;
  color: var(--muted);
}
.empty svg {
  margin-bottom: 18px;
}
.empty h3 {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 10px;
}
.empty p {
  font-size: 12px;
  max-width: 500px;
  margin: auto;
}
.error-state {
  text-align: center;
}
.loading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--muted);
  font-size: 12px;
}
.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.toast {
  position: fixed;
  z-index: 30;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 40px);
  background: var(--raised);
  border: 1px solid var(--border);
  padding: 15px 22px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: var(--shadow);
}
.toast.error {
  border-color: var(--red);
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  width: 520px;
  max-width: calc(100vw - 32px);
  padding: 28px;
  box-shadow: var(--shadow);
  max-height: 90vh;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.dialog-heading .eyebrow {
  margin: 0;
}
dialog h2 {
  font-size: 23px;
  line-height: 1.3;
  margin-bottom: 14px;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
  flex-wrap: wrap;
}
label {
  display: block;
  font-size: 12px;
  margin-bottom: 17px;
}
label > input,
label > textarea,
label > select {
  display: block;
  margin-top: 8px;
  width: 100%;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.6;
}
.checkbox input {
  width: 15px;
  margin: 3px 0;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.8;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.notes article {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.notes article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.notes time {
  color: var(--muted);
  font-size: 12px;
}
.notes p {
  font-size: 12px;
  white-space: pre-wrap;
  margin-top: 10px;
}
.notes {
  margin-top: 25px;
}
.detail-content > p {
  margin-bottom: 20px;
}
#note-form button {
  margin-top: 12px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-card {
  width: 380px;
  max-width: calc(100% - 48px);
  margin: auto;
  padding: 45px 0;
}
.login-card > .brand {
  margin-bottom: 75px;
}
.login-symbol {
  display: block;
  color: var(--accent);
  margin-bottom: 22px;
}
.login-card h1 {
  font-size: 40px;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
}
.login-card > p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 30px;
}
.login-card form button {
  width: 100%;
  justify-content: space-between;
  font-size: 13px;
  padding: 14px 18px;
}
.login-card > small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}
.login-art {
  background: radial-gradient(
    ellipse at 40% 45%,
    #31394d 0%,
    #171c2b 55%,
    #11131b 90%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-left: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.login-art:before,
.login-art:after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid #b6c2ff12;
  transform: rotate(35deg);
  border-radius: 100px;
}
.login-art:after {
  width: 780px;
  height: 780px;
}
.login-art img {
  width: 220px;
  opacity: 0.75;
  z-index: 1;
}
.login-art span {
  color: #c2c8dc;
  font-size: 20px;
  letter-spacing: -0.5px;
  position: absolute;
  bottom: 60px;
}
@media (min-width: 1500px) {
  .overview-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .support-card {
    padding: 29px 25px;
  }
  td {
    padding-block: 18px;
  }
  .sidebar {
    width: 250px;
  }
  .workspace {
    margin-left: 250px;
  }
  main#main {
    padding: 42px 42px;
  }
  .topbar {
    padding-inline: 42px;
  }
}
@media (max-width: 1250px) {
  .overview-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .support-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .support-card > a {
    padding: 12px 0;
  }
  .support-card .accent-icon {
    margin-bottom: 15px;
  }
  .small-note {
    padding: 25px 15px;
  }
  .stat {
    padding: 19px 16px;
  }
  .stat-label {
    font-size: 12px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .detail-grid {
    gap: 20px;
  }
  .tabs {
    gap: 15px;
    padding-inline: 18px;
  }
}
@media (max-width: 980px) {
  .sidebar {
    width: 205px;
    padding-inline: 12px;
  }
  .workspace {
    margin-left: 205px;
  }
  main#main {
    padding: 26px 23px;
  }
  .topbar {
    padding-inline: 23px;
  }
  .demo-banner {
    padding-inline: 23px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .primary {
    font-size: 0;
    padding: 11px;
  }
  .page-heading > .primary svg {
    width: 19px;
  }
  h1 {
    font-size: 29px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-bottom: 1px solid var(--border);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(3) {
    border-bottom: 0;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .actions-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 25px;
  }
  .actions-panel > h2,
  .actions-panel > p,
  .action-footnote {
    grid-column: 1/-1;
  }
  .balance-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 23px;
  }
  .balance-strip > div:nth-child(3) {
    padding-left: 0;
  }
  .balance-strip > div:nth-child(2) {
    border: 0;
  }
}
@media (max-width: 720px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 236px;
    box-shadow: 10px 0 100px #0005;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open .workspace {
    opacity: 0.35;
  }
  .workspace {
    margin-left: 0;
  }
  .menu-button {
    display: inline-flex;
  }
  .topbar {
    height: 63px;
    padding: 0 15px;
    gap: 10px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .breadcrumb > span {
    margin: 0 6px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar-actions {
    gap: 5px !important;
  }
  .environment {
    font-size: 12px;
  }
  .demo-banner {
    font-size: 12px;
    padding: 9px 19px;
    line-height: 1.6;
  }
  main#main {
    padding: 26px 18px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .page-heading p {
    font-size: 12px;
    line-height: 1.8;
    max-width: 300px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .stat {
    padding: 18px 16px;
  }
  .stat strong {
    font-size: 28px;
    margin-top: 12px;
  }
  .stat small {
    font-size: 12px;
  }
  .stats {
    margin-bottom: 22px;
  }
  .panel-heading {
    padding: 19px 17px;
  }
  .panel-heading p {
    font-size: 12px;
  }
  .table-tools {
    padding: 18px 16px;
    flex-wrap: wrap;
  }
  .search-field {
    flex-basis: 100%;
    order: 0;
  }
  .table-tools select {
    flex: 1;
  }
  .search-field input {
    font-size: 12px;
  }
  .support-aside {
    grid-template-columns: 1fr;
  }
  .small-note {
    padding: 6px 5px;
  }
  .profile-heading h1 {
    font-size: 23px;
  }
  .profile-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .profile-heading .person {
    gap: 14px;
  }
  .avatar.large {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  .balance-strip > div {
    padding: 0 15px;
  }
  .balance-strip strong {
    font-size: 22px;
  }
  .balance-strip span {
    font-size: 12px;
  }
  .detail-content {
    padding: 20px;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 17px;
  }
  .tabs {
    padding: 0 18px;
    gap: 22px;
  }
  .security-grid {
    grid-template-columns: 1fr;
  }
  .security-card {
    padding: 24px;
  }
  .security-card p {
    font-size: 12px;
  }
  .actions-panel {
    display: block;
  }
  .table-footer {
    padding: 13px 15px;
    font-size: 12px;
  }
  .pager {
    gap: 8px;
  }
  footer {
    padding: 20px;
    font-size: 12px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-card > .brand {
    margin-bottom: 55px;
  }
  .login-card h1 {
    font-size: 36px;
  }
  .login-card {
    padding: 35px 0;
  }
  dialog {
    padding: 22px;
  }
  .dialog-footer .primary {
    white-space: normal;
  }
  .toast {
    bottom: 15px;
    max-width: calc(100vw - 30px);
  }
  .menu-open main {
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.workspace,
main#main {
  min-width: 0;
}
.sr-only {
  left: 0;
  top: 0;
}
.table-scroll {
  position: relative;
}

.mobile-close {
  display: none;
}
@media (max-width: 720px) {
  .mobile-close {
    display: inline-flex;
    position: absolute;
    right: 6px;
    top: 7px;
  }
}

/* First-run setup remains centered at desktop and laptop sizes. */
.enrollment-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 24px;
}
.enrollment-card {
  width: min(100%, 680px);
  max-width: none;
  padding: 0;
}
.enrollment-card .brand {
  margin-bottom: 32px;
}
.enrollment-card h1 {
  font-size: 36px;
  margin: 12px 0 16px;
  line-height: 1.18;
}
.enrollment-card > p {
  max-width: 560px;
}
.enrollment-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.enrollment-secret {
  line-height: 1.7;
  margin: 16px 0;
}
.totp-secret {
  display: block;
  overflow-wrap: anywhere;
  letter-spacing: 2px;
  font-size: 15px;
  color: var(--text);
  user-select: all;
}
.enrollment-card form > .primary {
  width: 100%;
}
@media (max-width: 600px) {
  .enrollment-fields {
    grid-template-columns: 1fr;
  }
  .enrollment-screen {
    padding: 24px 20px;
  }
  .enrollment-card h1 {
    font-size: 30px;
  }
}

[hidden] {
  display: none !important;
}
/* Team, operational monitoring and account settings use the shared NAOMI scale. */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.settings-card {
  padding: 28px;
  min-width: 0;
}
.settings-card h2 {
  margin: 0 0 14px;
  font-size: 21px;
}
.settings-card h3 {
  margin: 24px 0 12px;
}
.settings-card p {
  line-height: 1.7;
  color: var(--muted);
}
.settings-card form {
  max-width: 520px;
}
.settings-card label {
  display: block;
  margin: 17px 0 12px;
}
.settings-card input,
.settings-card select,
.settings-card textarea,
.registration-mail input {
  width: 100%;
  margin-top: 8px;
}
.settings-card label.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-card label.checkbox input {
  width: auto;
  margin: 0;
}
.settings-card hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.role-list {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 2fr;
  gap: 14px 20px;
  font-size: 14px;
  line-height: 1.6;
}
.role-list dt {
  font-weight: 600;
}
.role-list dd {
  margin: 0;
  color: var(--muted);
}
.overview-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.overview-link:last-child {
  border: 0;
}
.stat {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.stat:hover {
  background: var(--hover);
}
.session-list article {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.session-list p {
  font-size: 13px;
}
.connection-address {
  word-break: break-all;
}
.invitations {
  margin-top: 24px;
}
.panel-message {
  padding: 0 24px 24px;
  color: var(--muted);
}
.registration-mail {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.registration-mail form {
  margin-top: 14px;
}
.registration-mail .caption {
  font-size: 13px;
}
.login-card > .text-link {
  display: inline-block;
  margin-top: 20px;
}
.table-tools {
  flex-wrap: wrap;
}
.table-tools > input {
  min-width: 150px;
  flex: 1;
}
.table-tools > strong {
  margin-right: auto;
}
.table-tools select {
  max-width: 240px;
}
.record-cell {
  max-width: 420px;
  overflow-wrap: anywhere;
}
.record-cell a {
  white-space: nowrap;
}
.settings-card .primary,
.settings-card .quiet {
  margin-top: 8px;
}
.totp-secret {
  overflow-wrap: anywhere;
  user-select: all;
}
.settings-card button:disabled {
  opacity: 0.5;
}
@media (max-width: 1050px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .table-tools select {
    max-width: 100%;
  }
  .role-list {
    grid-template-columns: 1fr 2fr;
  }
}
@media (max-width: 650px) {
  .settings-card {
    padding: 20px;
  }
  .table-tools > * {
    flex: 1 1 100%;
  }
  .role-list {
    grid-template-columns: 1fr;
  }
  .role-list dd {
    margin-bottom: 10px;
  }
}

/* Support information is primary; operational controls remain close but visually secondary. */
.table-tools .quiet,
.table-tools select,
.search-field input {
  font-size: 14px;
  min-height: 42px;
}
.panel > .table-tools:first-child {
  padding-top: 22px;
  padding-bottom: 22px;
}
.panel-heading + .table-tools {
  padding-top: 4px;
}
.clickable-row {
  cursor: pointer;
}
.clickable-row:focus-within {
  background: var(--hover);
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.row-arrow {
  width: 42px;
  color: var(--muted);
}
.money {
  font-size: 15px;
  font-weight: 550;
}
.provider,
.date-cell,
.text-link,
.caption,
.table-footer,
.pager .quiet {
  font-size: 13px;
}
.page-heading p,
.notice,
.detail-field dd {
  font-size: 15px;
  line-height: 1.65;
}
.page-heading {
  gap: 24px;
}
.page-heading h1 {
  max-width: 1000px;
}
.problem-list-title {
  min-width: 260px;
  max-width: 520px;
}
.report-excerpt {
  display: block;
  margin-top: 6px;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 52ch;
}
.coverage-note {
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.coverage-note summary {
  cursor: pointer;
}
.coverage-note p {
  margin-top: 12px;
  max-width: 90ch;
}
.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.problem-reports {
  min-width: 0;
}
.report-card {
  display: block;
  margin-bottom: 20px;
  overflow: hidden;
}
.report-content,
.report-author {
  min-width: 0;
  padding: 26px;
}
.report-author {
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.report-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.report-contact {
  overflow-wrap: anywhere;
  font-size: 14px;
  color: var(--text);
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.report-message {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}
.report-unavailable {
  padding: 18px;
  border-left: 3px solid var(--amber);
  background: var(--raised);
  margin-bottom: 24px;
}
.report-unavailable p {
  margin-top: 8px;
}
.compact-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 18px;
  margin: 20px 0;
  font-size: 14px;
}
.compact-facts dt {
  color: var(--muted);
}
.compact-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.compact-facts dd small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.selectable-id {
  user-select: all;
  font-size: 13px;
}
.triage-card {
  padding: 24px;
}
.triage-card h2 {
  font-size: 19px;
}
.triage-card textarea {
  min-height: 130px;
}
.triage-guidance,
.triage-card .caption {
  font-size: 13px;
}
.triage-dates {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13px;
}
.archive-layout {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 42px;
}
.archive-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.archive-facts dt {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.archive-facts dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.recovery-guide {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--sidebar);
  align-self: start;
}
.recovery-guide p {
  margin-top: 16px;
  line-height: 1.7;
}
.recovery-guide .recovery-status {
  color: var(--text);
  font-weight: 600;
}
.recovery-guide ol {
  padding-left: 22px;
  line-height: 1.7;
}
.recovery-guide li + li {
  margin-top: 14px;
}
.section-gap {
  margin-top: 32px;
}
@media (max-width: 1450px) {
  .problem-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}
@media (max-width: 1050px) {
  .problem-layout,
  .archive-layout {
    grid-template-columns: 1fr;
  }
  .archive-layout {
    gap: 24px;
  }
}
@media (max-width: 650px) {
  .report-content,
  .report-author,
  .archive-layout {
    padding: 20px;
  }
  .archive-facts {
    grid-template-columns: 1fr;
  }
  .compact-facts {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .compact-facts dd {
    margin-bottom: 10px;
  }
}

.report-author-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.report-person .user-name {
  font-size: 18px;
}
.report-identifiers {
  font-size: 13px;
  margin-top: 7px;
}
.report-reply {
  margin-top: 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.report-reply small {
  display: block;
}
.report-technical {
  font-size: 13px;
  color: var(--muted);
}
.report-technical summary {
  cursor: pointer;
}
.report-technical dd {
  color: var(--text);
}
.mail-progress {
  padding: 16px;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.mail-progress[data-status="connected"] {
  border-color: #42725b;
}
.mail-progress[data-status="error"] {
  border-color: #936049;
}
.mail-progress p {
  margin: 8px 0 0;
}
.mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

/* Messenger: only the history scrolls; compose and assignment remain reachable. */
.chat-open .workspace {
  height: 100dvh;
  min-height: 620px;
}
.chat-open .topbar {
  flex-shrink: 0;
}
.chat-open .workspace > footer {
  display: none;
}
.chat-open main#main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 28px 24px;
}
.chat-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  flex-shrink: 0;
  min-width: 0;
}
.chat-title .back-link {
  margin: 0;
  white-space: nowrap;
}
.chat-title h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 20px;
  min-height: 0;
  flex: 1;
}
.ticket-conversation {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.conversation-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  font-size: 13px;
}
.conversation-toolbar strong {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-history {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  scroll-behavior: smooth;
}
.ticket-message {
  width: fit-content;
  max-width: 90%;
  padding: 16px 20px;
  margin: 0 auto 16px 0;
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  background: var(--bg);
}
.ticket-message.outgoing {
  margin: 0 0 16px auto;
  border-radius: 12px 12px 4px 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.message-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 12px;
}
.message-author {
  display: block;
  font-size: 15px;
}
.message-kind {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.message-heading time {
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.message-heading .subline {
  font-size: 12px;
}
.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.report-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin: 0 0 12px;
}
.report-facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.report-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.report-missing {
  margin: 0 0 12px;
  font-size: 12px;
}
.message-footer {
  display: block;
  margin-top: 12px;
  padding: 0;
  opacity: 1;
  font-size: 11px;
}
.message-footer p {
  margin: 8px 0 0;
}
.ticket-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.image-preview {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}
.image-preview img {
  display: block;
  max-width: 160px;
  max-height: 140px;
  object-fit: contain;
}
.full-photo {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  margin: auto;
  object-fit: contain;
}
.reply-editor {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.reply-route {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.reply-route strong {
  color: var(--text);
  font-weight: 500;
}
.composer-row {
  display: flex;
  align-items: end;
  gap: 10px;
}
.composer-row textarea {
  flex: 1;
  width: 0;
  min-height: 48px;
  max-height: 120px;
  resize: vertical;
  padding: 12px;
  line-height: 1.4;
}
.composer-row .primary {
  min-height: 48px;
  padding: 12px 16px;
}
.attach-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 26px;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
}
.attach-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.attach-button:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.composer-hint {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}
.composer-warning {
  font-size: 12px;
  margin: 0 0 10px;
  color: var(--muted);
}
.reply-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.file-chip {
  margin-top: 8px;
  padding: 5px 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#support-reply-error:empty {
  display: none;
}
.ticket-sidebar {
  padding: 20px;
  overflow-y: auto;
  min-height: 0;
  overflow-wrap: anywhere;
}
.ticket-sidebar h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
.ticket-status {
  display: inline-block;
  padding: 5px 8px;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 18px;
}
.ticket-context {
  margin-bottom: 20px;
  font-size: 14px;
}
.ticket-context p {
  margin: 8px 0;
}
.assignment-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 20px;
}
.ticket-sidebar label {
  font-size: 12px;
}
.ticket-sidebar select {
  padding: 10px;
  width: 100%;
}
.ticket-sidebar form {
  margin: 8px 0 16px;
}
.ticket-sidebar .quiet {
  padding: 8px 12px;
  font-size: 12px;
}
.ticket-sidebar .caption {
  font-size: 12px;
  line-height: 1.6;
}
.record-cell details {
  margin-top: 8px;
}
.update-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--accent);
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .ticket-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px;
  }
  .chat-open main#main {
    padding: 16px;
  }
  .conversation-toolbar {
    gap: 10px;
    padding: 12px;
  }
  .chat-history,
  .reply-editor {
    padding: 12px;
  }
  .ticket-sidebar {
    padding: 16px;
  }
  .ticket-message {
    max-width: 96%;
    padding: 14px;
  }
  .message-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .composer-hint span:last-child {
    display: none;
  }
}
@media (max-width: 760px) {
  .chat-open .workspace {
    height: auto;
    min-height: 100dvh;
  }
  .ticket-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ticket-conversation {
    height: 75dvh;
    min-height: 480px;
  }
  .chat-title {
    flex-wrap: wrap;
    gap: 8px;
  }
  .chat-title h1 {
    flex-basis: 100%;
    font-size: 20px;
  }
  .chat-title .caption {
    display: none;
  }
  .composer-row {
    gap: 6px;
  }
  .composer-row .primary {
    font-size: 12px;
    padding: 10px;
  }
  .attach-button {
    width: 34px;
  }
  .chat-history,
  .reply-editor {
    padding: 10px;
  }
  .conversation-toolbar {
    flex-wrap: wrap;
  }
}

button.text-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  text-align: left;
}
