@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ground: #e5ebec;
  --navigation: #10292f;
  --navigation-active: #25464c;
  --navigation-text: #f0f5f5;
  --navigation-muted: #aebec2;
  --action: #075361;
  --action-hover: #06414b;
  --on-action: #fff;
  --selection: #e6f1f2;
  --surface: #fff;
  --raised: #f4f6f8;
  --active: #ebedee;
  --border: #e8eaec;
  --rule: #f0f1f2;
  --control: #cdced1;
  --text: #131416;
  --muted: #5d5f60;
  --accent: #1b6c80;
  --pill-text: #353736;
  --positive: #174d33;
  --positive-bg: #e4f6eb;
  --danger: #831c1e;
  --danger-bg: #ffedea;
  --warning: #82511d;
  --warning-bg: #fbf0e0;
  --warning-border: #ecdac5;
  --info: #17566a;
  --info-bg: #e2f1f4;
  --selection-border: #c8dddf;
  --chat: #f0f4f3;
  --message-border: #d8e2e1;
  --outgoing: #dceee8;
  --outgoing-border: #c5ded5;
  --suggestion: #f1f7f5;
  --scrim: #20292e55;
  --gap: 24px;
  --sidebar: 228px;
  font: 14px/1.45 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--ground);
  font-variant-numeric: tabular-nums;
}
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --ground: #11191e;
  --navigation: #0d1a21;
  --navigation-active: #243941;
  --navigation-text: #e8f0f2;
  --navigation-muted: #aabdc4;
  --action: #8bd1cc;
  --action-hover: #a2e2db;
  --on-action: #132b2d;
  --selection: #233a41;
  --surface: #19262e;
  --raised: #222f37;
  --active: #2b3940;
  --border: #33434c;
  --rule: #2b3a43;
  --control: #677e88;
  --text: #eef3f4;
  --muted: #afc0c7;
  --accent: #8bd1cc;
  --pill-text: #d6e2e5;
  --positive: #a3debc;
  --positive-bg: #224139;
  --danger: #ffc2bc;
  --danger-bg: #542f32;
  --warning: #efc692;
  --warning-bg: #443525;
  --warning-border: #65503a;
  --info: #b0dee8;
  --info-bg: #294550;
  --selection-border: #46646d;
  --chat: #131e25;
  --message-border: #3a4e58;
  --outgoing: #234139;
  --outgoing-border: #3b6558;
  --suggestion: #203732;
  --scrim: #090e13ac;
}
*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: 22px; line-height: 1.2; font-weight: 600; }
h2 { font-size: 16px; line-height: 1.35; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
strong { font-weight: 600; }
small, .small { font-size: 12px; }
small, .muted { color: var(--muted); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .control-link, input, select, textarea {
  min-width: 0; min-height: 34px; border: 1px solid var(--control); border-radius: 6px; background: var(--surface);
}
button, .control-link { cursor: pointer; padding: 5px 11px; font-weight: 500; text-align: center; }
.control-link { display: inline-flex; align-items: center; text-decoration: none; }
button:hover, .control-link:hover { background: var(--raised); }
:disabled { color: var(--muted); background: var(--raised); cursor: wait; }
input, select, textarea { padding: 7px 10px; width: 100%; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }
.primary { background: var(--action); color: var(--on-action); border-color: var(--action); }
.primary:hover { background: var(--action-hover); }
.primary:disabled { background: var(--active); color: var(--muted); border-color: var(--border); }
.text-button { border-color: transparent; background: transparent; }
.spread, .inline { display: flex; align-items: center; gap: 8px; }
.spread { justify-content: space-between; }
.inline { flex-wrap: wrap; }
.min { min-width: 0; overflow-wrap: anywhere; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 600; }
.brand img { flex: none; }
.layout {
  height: 100dvh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr);
  grid-template-rows: 48px minmax(0, 1fr);
}
.sidebar {
  grid-row: span 2; display: flex; flex-direction: column; min-height: 0;
  padding: 10px 12px 12px; gap: 26px; background: var(--navigation); color: var(--navigation-text);
}
.sidebar .brand { padding: 4px 10px; }
.brand img { background: #f4faf9; border-radius: 7px; }
.sidebar small, .sidebar .nav-group p { color: var(--navigation-muted); }
.sidebar :focus-visible { outline-color: #c5e6e9; }
.sidebar .text-button { color: var(--navigation-text); }
.sidebar .text-button:hover { background: var(--navigation-active); }
.workspace-name small { display: block; padding: 2px 10px 0 51px; }
.sidebar nav { flex: 1; overflow: auto; }
.nav-group { margin-bottom: 18px; }
.nav-group p { padding: 4px 10px; color: var(--muted); font-size: 12px; }
.sidebar a {
  display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--navigation-text);
  text-decoration: none; border-radius: 6px; padding: 6px 10px;
}
.sidebar a:hover, .sidebar a[aria-current] { background: var(--navigation-active); }
.sidebar a[aria-current] { font-weight: 600; }
.sidebar svg, .topbar svg {
  width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.account { border-top: 1px solid var(--navigation-active); padding: 12px 8px 0; }
.account small { display: block; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.top-title { font-weight: 500; }
.top-tools { margin-left: auto; display: flex; align-items: center; min-width: 0; }
.theme-toggle { margin-left: auto; white-space: nowrap; }
.top-tools:empty { display: none; }
.menu-toggle, .mobile-brand { display: none; }
.sheet {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  margin: 0 8px 8px 0; min-width: 0; min-height: 0; overflow: auto;
}
.page { padding: var(--gap); }
.page-header { margin-bottom: var(--gap); }
.entry { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login {
  width: min(100%, 416px); background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; display: grid; gap: 12px;
}
.login .brand { margin-bottom: 12px; }
.login form { margin-top: 12px; }
.form-stack { display: grid; align-content: start; gap: 14px; }
.field { display: grid; align-content: start; gap: 5px; min-width: 0; font-weight: 500; }
.field input, .field select { min-height: 38px; }
.form-error { color: var(--danger); font-size: 13px; }
.form-error:empty { display: none; }
.empty { padding: 16px; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); }
.loading > div { display: grid; gap: 6px; min-height: 54px; align-content: center; border-bottom: 1px solid var(--rule); }
.loading span { height: 12px; width: 40%; border-radius: 4px; background: var(--active); }
.loading span + span { width: 65%; }
.pill { display: inline-flex; align-items: center; padding: 2px 7px; min-height: 20px; border-radius: 5px; font-size: 12px; background: var(--active); color: var(--pill-text); }
.pill.positive { color: var(--positive); background: var(--positive-bg); }
.pill.negative { color: var(--danger); background: var(--danger-bg); }
.pill.warning { color: var(--warning); background: var(--warning-bg); }
.pill.count { color: var(--info); background: var(--info-bg); }
.dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); color: var(--text); padding: 22px; border: 1px solid var(--control); border-radius: 16px; }
.dialog header { margin-bottom: 16px; }
.dialog::backdrop { background: var(--scrim); }
#feedback:not(:empty) { position: fixed; z-index: 5; right: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 10px 14px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); }
@media (max-width: 1100px) {
  :root { --sidebar: 190px; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; position: fixed; inset: 48px 0 0; z-index: 4; }
  .menu-open .sidebar { display: flex; }
  .menu-open .sheet { visibility: hidden; }
  .menu-toggle { display: inline-grid; place-items: center; padding: 0; width: 38px; background: transparent; }
  .top-title { display: none; }
  .mobile-brand { display: flex; font-size: 15px; gap: 6px; white-space: nowrap; }
  .mobile-brand img { width: 25px; height: 25px; }
  .sheet { margin-left: 8px; }
}
@media (max-width: 640px) {
  :root { --gap: 16px; }
  .sheet { margin: 0; border-radius: 0; border: 0; }
  button, .control-link, input, select, textarea, .sidebar a { min-height: 44px; }
  .login { padding: 24px; }
  .sheet-dialog { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; }
}

.inbox {
  display: grid; height: 100%; grid-template-columns: minmax(245px, 320px) minmax(280px, 1fr) minmax(280px, 340px);
  grid-template-rows: minmax(0, 1fr);
}
.inbox.orders-hidden { grid-template-columns: minmax(245px, 320px) minmax(0, 1fr); }
.inbox.orders-hidden .order-pane { display: none; }
.list-pane, .chat-pane, .order-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.list-pane { border-right: 1px solid var(--border); }
.order-pane { border-left: 1px solid var(--border); }
.inbox-head { padding: 18px var(--gap) 10px; border-bottom: 1px solid var(--border); }
.inbox-head h1 { font-size: 23px; letter-spacing: -.025em; }
.inbox-head > .spread:first-child { gap: 7px; }
.inbox-head .primary { white-space: normal; font-size: 13px; }
.inbox-head .spread { flex-wrap: wrap; }
.list-meta { margin-top: 7px; }
.inbox-segments { display: grid; gap: 6px; margin-top: 10px; }
.inbox-segment { display: flex; align-items: stretch; gap: 3px; border: 1px solid var(--border); border-radius: 8px; padding: 3px; background: var(--raised); }
.inbox-segment button { flex: 1; display: flex; justify-content: center; align-items: center; gap: 5px; padding: 5px 3px; border: 1px solid transparent; border-radius: 5px; white-space: nowrap; background: transparent; color: var(--muted); }
.inbox-segment button:hover { background: var(--surface); }
.inbox-segment button[aria-pressed="true"] { background: var(--surface); border-color: var(--selection-border); color: var(--action); font-weight: 600; }
.inbox-segment .pill[hidden] { display: none; }
.inbox-segment .pill { min-height: 17px; padding: 0 5px; font-variant-numeric: tabular-nums; }
.tabs { display: flex; align-items: stretch; overflow-x: auto; border-bottom: 1px solid var(--border); margin-top: 14px; gap: 10px; }
.tabs button { border: 0; border-radius: 0; border-bottom: 2px solid transparent; padding: 6px 2px; white-space: nowrap; }
.tabs button[aria-pressed="true"] { border-color: var(--action); color: var(--action); font-weight: 600; }
.list-scroll, .chat-scroll, .order-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.list-status:not(:empty), .list-tail { padding: 8px 14px; }
.conversation-list { padding: 4px 8px 12px; }
.conversation-row { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: start; text-align: left; padding: 11px 8px; min-height: 66px; border: 1px solid transparent; border-bottom-color: var(--rule); }
.conversation-row[aria-current] { background: var(--selection); border-color: var(--selection-border); }
.contact-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: var(--raised); color: var(--muted); font-size: 13px; font-weight: 600; }
.contact-mark.needs-reply { color: var(--warning); border-color: var(--warning-border); background: var(--warning-bg); }
.conversation-label { display: grid; gap: 3px; }
.conversation-label .spread { min-width: 0; }
.conversation-row small { white-space: nowrap; }
.conversation-name { font-size: 15px; font-weight: 600; line-height: 1.28; }
.conversation-row .waiting { color: var(--warning); }
.truncate { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snippet { font-size: 14px; line-height: 1.35; color: var(--muted); font-weight: 400; }
.conversation-search { margin-top: 12px; min-height: 38px; background: var(--raised); }
.pane-head { padding: 12px var(--gap); border-bottom: 1px solid var(--border); min-height: 62px; }
.pane-head button { flex: none; }
.contact-name, .contact-phone { overflow-wrap: anywhere; }
.contact-name { font-size: 19px; letter-spacing: -.015em; line-height: 1.25; }
.contact-phone { display: block; margin-top: 3px; font-size: 13px; }
.chat-empty { margin: auto; display: grid; justify-items: start; gap: 10px; padding: 26px; max-width: 410px; }
.chat-empty h2 { font-size: 22px; letter-spacing: -.02em; }
.chat-empty p { max-width: 32ch; }
.chat-empty .primary { margin-top: 5px; }
.chat-pane { background: var(--chat); }
.chat-head, .composer { background: var(--surface); }
.chat-scroll { display: flex; flex-direction: column; padding: 20px var(--gap) var(--gap); }
.earlier { align-self: center; margin-bottom: 10px; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.thread-error:not(:empty) { margin-bottom: 12px; }
.message { align-self: flex-start; max-width: min(91%, 53ch); padding: 10px 13px 8px; border: 1px solid var(--message-border); border-radius: 12px; overflow-wrap: anywhere; }
.message.incoming { background: var(--surface); border-top-left-radius: 4px; }
.message.outgoing { align-self: flex-end; background: var(--outgoing); border-color: var(--outgoing-border); border-top-right-radius: 4px; }
.message-body, .transcript { white-space: pre-wrap; font-size: 16px; line-height: 1.48; }
.transcript { margin: 6px 0; }
.message-meta { justify-content: flex-end; margin-top: 5px; gap: 6px; }
.message-meta .pill { max-width: 100%; }
.message-actions { margin-top: 8px; }
.message-actions button { font-size: 12px; }
.composer { padding: 10px var(--gap) 13px; border-top: 1px solid var(--border); }
.compose-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }
.composer textarea { min-height: 54px; max-height: 140px; padding: 10px 12px; font-size: 16px; line-height: 1.4; background: var(--raised); border-radius: 9px; }
.compose-row .primary { min-height: 44px; padding-inline: 16px; }
.compose-hints { display: block; margin-top: 4px; }
.quick-options:not(:empty) { display: grid; max-height: 160px; overflow: auto; gap: 4px; padding: 0 0 8px; }
.quick-options button { text-align: left; }
.back-chat { display: none; }
.order-scroll { padding: 16px var(--gap); }
.dialog .order-scroll { padding: 0; overflow: visible; }
.new-order { width: 100%; min-height: 42px; margin-bottom: 16px; }
.order-suggestion { margin-bottom: 12px; background: var(--suggestion); }
.order-suggestion h3 { margin-bottom: 9px; font-size: 15px; }
.order-suggestion dl { display: grid; gap: 7px; }
.order-suggestion dt { color: var(--muted); font-size: 12px; }
.order-suggestion dd { margin: 0; font-size: 15px; line-height: 1.35; }
.order-stack { display: grid; gap: 14px; }
.order-record { border: 1px solid var(--border); border-radius: 8px; padding: 13px; min-width: 0; overflow-wrap: anywhere; }
.order-record > header { flex-wrap: wrap; align-items: start; }
.order-lines { list-style: none; padding: 0; margin: 12px 0 4px; }
.order-lines li { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.order-total { padding: 8px 0; }
.facts { display: grid; gap: 6px; }
.facts div { display: grid; grid-template-columns: minmax(72px, 1fr) minmax(0, 1.5fr); gap: 6px; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 0; }
.number { text-align: right; white-space: nowrap; }
.notice-status, .order-actions { margin-top: 10px; }
.item-inputs { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(103px, .6fr); gap: 8px; align-items: end; }
.item-inputs .remove-item { grid-column: 1 / -1; justify-self: end; }
.duplicate:not(:empty) { border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
[hidden] { display: none !important; }
@media (min-width: 1200px) {
  .inbox:not(.orders-hidden) .chat-head > button { display: none; }
}
@media (max-width: 1199px) {
  .inbox, .inbox.orders-hidden { grid-template-columns: minmax(235px, 300px) minmax(0,1fr); }
  .inbox .order-pane { display: none; }
}
@media (max-width: 640px) {
  .inbox, .inbox.orders-hidden { grid-template-columns: minmax(0, 1fr); }
  .list-pane { border: 0; }
  .inbox[data-mode="list"] .chat-pane, .inbox[data-mode="chat"] .list-pane { display: none; }
  .back-chat { display: block; }
  .chat-head > .inline { flex-wrap: nowrap; gap: 10px; }
  .inbox-head { padding-top: 12px; }
  .pane-head { padding-block: 8px; }
  .contact-name { font-size: 17px; }
  .compose-hints { display: none; }
  .composer { padding: 8px var(--gap) max(8px, env(safe-area-inset-bottom)); }
}

.operation-page { max-width: 1450px; margin-inline: auto; }
.settlement-filters { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-block: 16px 22px; }
.settlement-filters .form-error { flex-basis: 100%; margin: 0; }
.settlement-filters .form-error:empty { display: none; }
.settlement-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.settlement-section { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 16px; min-width: 0; }
.settlement-section h2, .settlement-batch h3 { margin: 0; }
.settlement-section h2 { font-size: 17px; }
.settlement-stock { grid-column: 1 / -1; }
.settlement-stock-balances { display: flex; flex-wrap: wrap; gap: 24px; margin: 8px 0 0; }
.settlement-stock-balances div { display: flex; gap: 10px; align-items: baseline; }
.settlement-stock-balances dd { margin: 0; font-size: 18px; font-weight: 600; }
.settlement-section > .empty { margin-bottom: 0; }
.settlement-list, .settlement-sales { margin-block: 14px 0; }
.settlement-batch + .settlement-batch { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.settlement-batch-head p, .settlement-sales p { margin: 2px 0 0; }
.settlement-overview strong, .settlement-batch-head > strong { font-size: 19px; white-space: nowrap; }
.settlement-payments { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; }
.settlement-payments div { display: grid; gap: 1px; }
.settlement-payments dt { font-size: 12px; color: var(--muted); }
.settlement-payments dd { margin: 0; font-weight: 600; }
.settlement-orders, .settlement-sales { list-style: none; padding: 0; }
.settlement-order, .settlement-sales li { padding-block: 8px; border-top: 1px solid var(--border); }
.settlement-order { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; cursor: pointer; }
.settlement-order .min { flex: 1 1 110px; overflow-wrap: anywhere; }
.settlement-order small { display: block; color: var(--muted); }
.settlement-order input { min-height: 0; width: 18px; height: 18px; margin: 0; }
.settlement-actions { flex-wrap: wrap; }
.field[hidden] { display: none; }
@media (max-width: 1150px) {
  .settlement-board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .settlement-order { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; }
  .settlement-order .pill { grid-area: 2 / 2 / 3 / 4; justify-self: start; }
  .settlement-order .number { grid-area: 1 / 3; white-space: nowrap; }
}
.filter-strip { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 20px; }
.filter-strip > .field { width: auto; }
.filter-strip button { min-height: 38px; }
.filter-strip > small { margin-left: auto; padding: 0 0 10px; }
.register { border-top: 1px solid var(--border); }
.register-head { min-height: 40px; padding: 0 12px; font-size: 12px; color: var(--muted); }
.order-grid {
  display: grid; grid-template-columns: minmax(145px, 1.45fr) minmax(135px, 1fr) minmax(90px, .85fr) minmax(82px, .63fr) minmax(80px, .55fr);
  gap: 14px; align-items: center; min-width: 0;
}
.register-row { display: block; width: 100%; min-height: 62px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 9px 12px; text-align: left; font-weight: 400; }
.register-row small { display: block; margin-top: 2px; }
.order-detail .order-record { padding: 0; border: 0; }
.order-detail .order-record header h3 { display: none; }
@media (max-width: 720px) {
  .filter-strip > small { width: 100%; margin-left: 0; padding: 0; }
  .register-head { display: none; }
  .order-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; }
  .register-row { padding-inline: 4px; }
  .grid-client { grid-area: 1 / 1; }
  .grid-total { grid-area: 1 / 2; align-self: start; }
  .grid-state { grid-area: 2 / 1; }
  .grid-day { grid-area: 2 / 2; text-align: right; font-size: 12px; }
  .grid-extra { grid-column: 1 / -1; font-size: 12px; }
}

.records { border-top: 1px solid var(--border); }
.record-row { padding: 13px 4px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.record-row h2 + p, .record-row h2 + div, .record-row p + p { margin-top: 4px; }
.record-actions { justify-content: flex-end; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.checkbox input { width: 17px; height: 17px; min-height: 0; margin: 0 4px 0 0; }
.issue-actions { display: grid; justify-items: start; gap: 6px; max-width: 310px; }
.issue-actions .message-actions { margin: 0; }
@media (max-width: 640px) {
  .record-row { gap: 10px; }
  .record-actions { gap: 4px; }
  .send-issue { grid-template-columns: minmax(0, 1fr); }
}

.registration-panel { margin-bottom: 12px; }
.registration-panel > .list-region, .registration-draft { display: grid; gap: 8px; }
.registration-panel > .list-region { margin-top: 8px; }
.supervisor-dashboard { display: grid; gap: 28px; }
.supervisor-section { min-width: 0; display: grid; gap: 12px; }
.supervisor-section h2, .supervisor-section h3 { margin: 0; }
.supervisor-section-head { flex-wrap: wrap; }
.supervisor-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 1px; margin: 0; background: var(--rule); border: 1px solid var(--rule); }
.supervisor-stats div { display: grid; gap: 10px; justify-items: start; align-content: space-between; padding: 14px; background: var(--surface); }
.supervisor-stats dt { font-size: 13px; color: var(--muted); }
.supervisor-stats dd { margin: 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.supervisor-stats dd.pill { padding: 0 8px; }
.supervisor-tabs { margin-bottom: 2px; flex-wrap: wrap; }
.supervisor-content, .supervisor-evidence { display: grid; gap: 8px; }
.supervisor-evidence ul { margin: 0; padding-left: 22px; }
.supervisor-evidence li + li { margin-top: 6px; }
@media (max-width: 640px) {
  .supervisor-row { grid-template-columns: minmax(0, 1fr); }
  .supervisor-row .record-actions { justify-content: flex-start; }
}

.health-content { border-top: 1px solid var(--border); }
.settings-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: var(--gap); border-bottom: 1px solid var(--rule); padding: 22px 0; }
.settings-row h2 + p, .settings-row .inline + p { margin-top: 6px; }
.health-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.health-stats div { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.health-stats dd { font-size: 18px; line-height: 1.2; margin: 0; }
.pair-qr:not(:empty) { display: grid; gap: 10px; justify-items: start; margin-top: 14px; }
.pair-qr img { border: 1px solid var(--border); padding: 8px; background: #fff; max-width: 100%; height: auto; }
.settings-row:has(.pair-qr img) .connect-control { display: none; }
@media (max-width: 640px) {
  .settings-row { grid-template-columns: minmax(0, 1fr); padding-block: 16px; }
  .health-stats { column-gap: 12px; }
}
