/* ==========================================================================
   Ebb components. Form comes from tokens.css (Sheet archetype); nothing here
   hardcodes a radius, border weight, shadow or control height — except device
   chrome (phone bezel, desktop window), which is hardware, not product.
   ========================================================================== */

/* ==========================================================================
   1. DEVICE FRAMES
   ========================================================================== */

/* ---- Phone: 390x844, scaled to fit; full-bleed on a real handset ---- */
.phone-stage {
  --phone-fit: 1;
  height: 100dvh; overflow: hidden;
  display: grid; grid-template-columns: auto; place-content: center; place-items: center;
  column-gap: var(--s-10);
  padding: var(--s-4) var(--gutter) calc(var(--pocbar-h) + var(--s-4));
  background: var(--surface-2);
}
.phone {
  position: relative; flex: none;
  width: 410px; height: 864px;          /* 390x844 screen inside a 10px bezel */
  transform: scale(var(--phone-fit)); transform-origin: center;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  border: 10px solid oklch(0.17 0.02 245); border-radius: 50px;
  box-shadow: 0 40px 80px -24px oklch(0.2 0.04 245 / 0.45), 0 0 0 1px oklch(0 0 0 / 0.08);
  overflow: hidden;
  transition: background-color 400ms var(--ease), color 400ms var(--ease);
}
.phone::before {
  content: ''; position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 118px; height: 34px; background: oklch(0.17 0.02 245); border-radius: 20px; z-index: 5;
}
.phone-status {
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 14px 30px 0; font-size: var(--t-15); font-weight: 700; flex: none;
}
.phone-status .sig { display: flex; gap: 6px; align-items: center; }
.phone-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: none; position: relative; display: flex; flex-direction: column;
}
.phone-scroll::-webkit-scrollbar { display: none; }
.phone-scroll > * { flex-shrink: 0; }
.phone { --app-gutter: 20px; }

/* Tab bar: Today · Patterns · [Log] · Learn · Care. Log is the one raised control. */
.phone-tabbar {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  height: 88px; padding: 6px 6px 26px; flex: none;
  border-top: var(--rule); background: var(--bg);
}
.phone-tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 48px; font-size: var(--t-12); font-weight: 700; color: var(--muted);
  text-decoration: none; border-radius: var(--r-ctl);
}
.phone-tabbar a[aria-current="page"] { color: var(--primary); }
.phone-tabbar a .badge {
  position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-full); background: var(--primary); color: var(--on-primary);
  font-size: 11px; line-height: 18px; text-align: center;
}
.phone-tabbar a.tab-log span.lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.phone-tabbar a.tab-log .knob {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); margin-top: -18px;
  transition: transform var(--dur-1) var(--ease-out);
}
.phone-tabbar a.tab-log:active .knob { transform: scale(0.95); }
.phone-home {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px; background: var(--ink); opacity: .85; z-index: 4;
}
.phone-caption {
  display: none; align-self: center; max-width: 36ch; text-align: left;
  font-size: var(--t-15); line-height: 1.6; color: var(--ink-2);
}
.phone-caption strong {
  display: block; color: var(--ink); font-family: var(--font-display);
  font-size: var(--t-22); font-weight: var(--wt-head); margin-bottom: var(--s-2); line-height: 1.25;
}
.phone-caption .tag { display: block; margin-top: var(--s-4); font-size: var(--t-13); color: var(--muted); font-weight: 700; }
@media (min-width: 1100px) {
  .phone-stage { grid-template-columns: auto minmax(260px, 36ch); }
  .phone-caption { display: block; }
}
@media (max-height: 940px) { .phone-stage { --phone-fit: .95; } }
@media (max-height: 880px) { .phone-stage { --phone-fit: .90; } }
@media (max-height: 820px) { .phone-stage { --phone-fit: .84; } }
@media (max-height: 770px) { .phone-stage { --phone-fit: .78; } }
@media (max-height: 700px) { .phone-stage { --phone-fit: .72; } }
@media (max-height: 640px) { .phone-stage { --phone-fit: .66; } }
@media (max-width: 600px) {
  .phone-stage { --phone-fit: 1; padding: 0; height: 100dvh; grid-template-columns: 1fr; background: var(--bg); }
  .phone { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .phone::before, .phone-status, .phone-home { display: none; }
  .phone-caption { display: none; }
  body.has-pocbar .phone-stage, body.has-pocbar .phone { height: calc(100dvh - var(--pocbar-h)); }
  .phone-tabbar { padding-bottom: 8px; height: 70px; }
}

/* ---- Desktop app: a macOS-style window on a desktop, with a menu bar ---- */
.desktop-stage {
  --desk-fit: 1;
  min-height: 100dvh; overflow: hidden; position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 0 calc(var(--pocbar-h) + var(--s-6));
  background: oklch(0.56 0.05 228);
}
.menubar {
  align-self: stretch; height: 30px; display: flex; align-items: center; gap: var(--s-5);
  padding: 0 var(--s-4); font-size: var(--t-13); color: oklch(0.99 0 0);
  background: oklch(0.2 0.03 245 / 0.55); position: relative; z-index: 3;
}
.menubar b { font-weight: 700; }
.menubar .tray { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); }
.menubar .tray button {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px;
  background: transparent; border: 0; color: inherit; border-radius: 6px;
}
.menubar .tray button[aria-expanded="true"], .menubar .tray button:hover { background: oklch(1 0 0 / 0.2); }
.desktop {
  position: relative; margin-top: var(--s-6);
  width: 1180px; height: 740px; flex: none;
  transform: scale(var(--desk-fit)); transform-origin: top center;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--ink);
  border-radius: 12px; box-shadow: 0 50px 100px -30px oklch(0.15 0.05 245 / 0.6), 0 0 0 1px oklch(0 0 0 / 0.18);
}
.win-titlebar {
  height: 48px; flex: none; display: flex; align-items: center; gap: var(--s-4);
  padding: 0 var(--s-4); border-bottom: var(--rule); background: var(--surface);
}
.win-lights { display: flex; gap: 8px; }
.win-lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.win-lights i:nth-child(1) { background: #ff5f57; } .win-lights i:nth-child(2) { background: #febc2e; } .win-lights i:nth-child(3) { background: #28c840; }
.win-title { flex: 1; text-align: center; font-size: var(--t-14); font-weight: 700; color: var(--ink-2); }
.win-body { flex: 1; display: flex; min-height: 0; }
.win-rail {
  width: 220px; flex: none; padding: var(--s-4) var(--s-3); background: var(--surface);
  border-right: var(--rule); display: flex; flex-direction: column; gap: 2px;
}
.win-rail a, .win-rail button {
  display: flex; align-items: center; gap: var(--s-3); min-height: 40px; padding: 0 var(--s-3);
  border-radius: var(--r-ctl); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: var(--t-15);
  background: transparent; border: 0; text-align: left; width: 100%;
}
.win-rail a:hover, .win-rail button:hover { background: var(--surface-2); color: var(--ink); }
.win-rail [aria-current="page"] { background: var(--primary-soft-2); color: var(--primary-strong); }
.win-main { flex: 1; overflow-y: auto; min-width: 0; }
.menupop {
  position: absolute; top: 34px; right: 120px; z-index: var(--z-layer); width: 360px;
  background: var(--bg); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--elev-modal);
  padding: var(--s-4); transform-origin: top right;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.menupop[hidden] { display: block !important; opacity: 0; transform: scale(0.96) translateY(-4px); pointer-events: none; visibility: hidden; }
.desk-notif {
  position: absolute; top: 40px; right: 12px; z-index: var(--z-toast); width: 340px;
  display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4);
  background: oklch(0.99 0.003 245 / 0.98); color: var(--ink); border-radius: var(--r-ctl); box-shadow: var(--elev-pop);
  transform: translateX(120%); transition: transform var(--dur-3) var(--ease-out);
}
.desk-notif.in { transform: none; }
@media (max-width: 1240px) { .desktop-stage { --desk-fit: .9; } }
@media (max-width: 1120px) { .desktop-stage { --desk-fit: .8; } }
@media (max-width: 1000px) { .desktop-stage { --desk-fit: .74; } }
@media (max-width: 900px) {
  .desktop-stage { padding: 0; background: var(--bg); }
  .menubar { display: none; }
  .desktop { width: 100%; height: calc(100dvh - var(--pocbar-h)); margin: 0; transform: none; border-radius: 0; box-shadow: none; }
  .win-rail { display: none; }
}

/* ==========================================================================
   2. APP CHROME
   ========================================================================== */

/* Phone app bar: large title, back link, one action. */
.appbar { padding: var(--s-2) var(--app-gutter) var(--s-3); display: flex; flex-direction: column; gap: var(--s-1); }
.appbar .row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.appbar .back { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; text-decoration: none; min-height: 44px; }
.appbar h1 { font-size: var(--t-32); line-height: 1.12; }
.appbar .sub { color: var(--muted); font-size: var(--t-15); }
.app-sec { padding: var(--s-5) var(--app-gutter); }
.app-sec + .app-sec { padding-top: var(--s-2); }
.app-sec.tone { background: var(--surface); }
.app-sec h2 { font-size: var(--t-22); margin-bottom: var(--s-3); }

/* Top nav: patient web, desktop, admin. */
.topnav { border-bottom: var(--rule); background: var(--bg); position: sticky; top: 0; z-index: var(--z-sticky); }
.topnav .in { display: flex; align-items: center; gap: var(--s-5); height: 64px; }
.topnav .links { display: flex; gap: var(--s-1); height: 100%; overflow-x: auto; scrollbar-width: none; }
.topnav .links a {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-3); height: 100%;
  color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: var(--t-15); white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent; transition: color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.topnav .links a:hover { color: var(--ink); }
.topnav .links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--primary); }
.topnav .end { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }

/* Wordmark */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; color: var(--primary); }
.brand .word { font-family: var(--font-display); font-weight: 620; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.brand small { display: block; font-family: var(--font-body); font-size: var(--t-12); color: var(--muted); font-weight: 700; margin-top: 2px; }

/* Split: clinic triage. Master list left, detail right, no other chrome. */
.split { display: grid; grid-template-columns: minmax(340px, 400px) 1fr; min-height: calc(100dvh - 64px - var(--pocbar-h)); }
.split > .master { border-right: var(--rule); background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.split > .detail { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split > .master { border-right: 0; } }

/* ==========================================================================
   3. CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--h-ctl); padding: 0 var(--s-5); border-radius: var(--r-ctl);
  border: var(--bw-strong) solid transparent; background: var(--surface-2); color: var(--ink);
  font-weight: 700; font-size: var(--t-16); line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active:not([disabled]):not([aria-disabled="true"]) { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-secondary { background: var(--primary-soft); color: var(--primary-strong); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-danger { background: var(--danger); color: oklch(0.99 0 0); }
.btn-on-drench { background: var(--on-drench); color: var(--drench); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--surface-3); }
  .btn-primary:hover { background: var(--primary-strong); color: var(--on-primary); }
  .btn-secondary:hover { background: var(--primary-soft-2); }
  .btn-outline:hover { background: var(--surface); border-color: var(--ink-2); }
  .btn-ghost:hover { background: var(--primary-soft); }
  .btn-danger:hover { background: var(--danger-ink); }
}
.btn-sm { min-height: var(--h-ctl-sm); padding: 0 var(--s-4); font-size: var(--t-15); }
.btn-block { width: 100%; }
.btn-icon { width: var(--h-ctl); padding: 0; }
.btn-sm.btn-icon { width: var(--h-ctl-sm); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--on-primary); border-right-color: transparent; animation: spin 700ms linear infinite;
}
.btn-outline.is-loading::after, .btn-secondary.is-loading::after { border-color: var(--primary); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fields */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field > label, .label { font-weight: 700; font-size: var(--t-15); color: var(--ink); }
.hint { font-size: var(--t-14); color: var(--muted); }
.error-text { font-size: var(--t-14); color: var(--danger-ink); display: flex; gap: var(--s-2); align-items: center; font-weight: 700; }
.input, .select, .textarea {
  width: 100%; min-height: var(--h-ctl); padding: 0 var(--s-4);
  border: var(--rule-strong); border-radius: var(--r-ctl); background: var(--field); color: var(--ink);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.textarea { padding: var(--s-3) var(--s-4); min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft-2); }
.input.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.input[disabled], .select[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.select {
  appearance: none; padding-right: var(--s-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2351606b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input-wrap { position: relative; }
.input-wrap > .ico { position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-wrap > .input { padding-left: calc(var(--s-4) + 28px); }

/* Native check/radio, branded: platform feature over custom widget. */
.check { display: flex; align-items: flex-start; gap: var(--s-3); min-height: 44px; cursor: pointer; padding-top: 10px; }
.check input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; margin-top: 1px; cursor: pointer; }

/* Switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 48px; cursor: pointer; }
.switch input {
  appearance: none; width: 52px; height: 32px; border-radius: var(--r-full); flex: none; cursor: pointer;
  background: var(--line-strong); position: relative; transition: background-color var(--dur-2) var(--ease);
}
.switch input::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: oklch(0.99 0 0); box-shadow: 0 1px 3px oklch(0 0 0 / 0.25); transition: transform var(--dur-2) var(--ease-out);
}
.switch input:checked { background: var(--primary); }
.switch input:checked::before { transform: translateX(20px); }
.switch input:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Segmented control */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-ctl); background: var(--surface-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: calc(var(--h-ctl-sm) - 4px);
  padding: 0 var(--s-4); border-radius: calc(var(--r-ctl) - 4px); font-weight: 700; font-size: var(--t-15); color: var(--ink-2);
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.seg input:checked + span { background: var(--field); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }
.seg.block { display: flex; } .seg.block label { flex: 1; }

/* Chips — toggleable, used for descriptors, triggers, what helped */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-ctl-sm); padding: 0 var(--s-4);
  border-radius: var(--r-full); border: var(--rule-strong); background: var(--field); color: var(--ink);
  font-weight: 700; font-size: var(--t-15); cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip .ico { width: 16px; height: 16px; }
.chip .src { font-weight: 400; opacity: .85; font-style: italic; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink-2); } .chip[aria-pressed="true"]:hover { background: var(--primary-strong); } }

/* Status pills — states only, icon/dot + label, never colour alone */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-full);
  font-size: var(--t-13); font-weight: 700; line-height: 1.35; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.pill .ico { width: 14px; height: 14px; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.noDot::before, .pill:has(.ico)::before { display: none; }
.pill-ok { background: var(--success-soft); color: var(--success-ink); }
.pill-warn { background: var(--warning-soft); color: var(--warning-ink); }
.pill-danger { background: var(--danger-soft); color: var(--danger-ink); }
.pill-info { background: var(--info-soft); color: var(--info-ink); }
.pill-brand { background: var(--primary-soft); color: var(--primary-strong); }
.pill-ours { background: var(--primary); color: var(--on-primary); }

/* Avatar */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--primary-soft-2); color: var(--primary-strong); font-weight: 700; font-size: var(--t-14);
}
.avatar.lg { width: 56px; height: 56px; font-size: var(--t-18); }
.avatar.sm { width: 32px; height: 32px; font-size: var(--t-12); }

/* Meter */
.meter { height: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }

/* ==========================================================================
   4. SURFACES & DATA
   ========================================================================== */
.panel { background: var(--surface); border-radius: var(--r-card); padding: var(--pad-card); box-shadow: var(--elev-card); }
.panel-deep { background: var(--surface-2); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.sec-head h2, .sec-head h3 { font-size: var(--t-22); }
.sec-head a { font-weight: 700; font-size: var(--t-15); text-decoration: none; }

/* Rows */
.rows { list-style: none; padding: 0; }
.rows > li, .row-item {
  display: flex; align-items: center; gap: var(--s-3); min-height: var(--h-row); padding: var(--s-2) 0;
  border-bottom: var(--row-rule);
}
.rows > li:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-weight: 700; }
.row-main span { color: var(--muted); font-size: var(--t-14); }
.row-link { color: inherit; text-decoration: none; cursor: pointer; transition: background-color var(--dur-1) var(--ease); }
@media (hover: hover) { .row-link:hover { background: var(--surface); } }

/* Table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
.table th {
  text-align: left; font-size: var(--t-13); font-weight: 700; color: var(--muted);
  height: 40px; padding: 0 var(--s-3); border-bottom: var(--rule-strong); white-space: nowrap; background: var(--bg);
  position: sticky; top: 0; z-index: 1;
}
.table th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.table th[aria-sort] { color: var(--ink); }
.table td { height: var(--h-row); padding: 0 var(--s-3); border-bottom: var(--row-rule); }
.table tr:hover td { background: var(--surface); }
.table tr[aria-selected="true"] td { background: var(--primary-soft); }
.table .r { text-align: right; }
.table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.bulkbar {
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-5);
  background: var(--ink); color: var(--bg); border-radius: var(--r-lg); box-shadow: var(--elev-pop);
  width: fit-content; font-weight: 700;
}
.bulkbar .btn { min-height: var(--h-ctl-sm); }

/* Tabs */
.tabs { display: flex; gap: var(--s-1); border-bottom: var(--rule); overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--h-ctl-sm); padding: 0 var(--s-3);
  background: none; border: 0; color: var(--muted); font-weight: 700; font-size: var(--t-15); text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent; transition: color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--primary); }
.tabs .count { font-size: var(--t-12); background: var(--surface-2); padding: 1px 7px; border-radius: var(--r-full); color: var(--ink-2); }

/* Accordion */
.acc { border-bottom: var(--rule); }
.acc summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: var(--h-row); cursor: pointer; font-weight: 700;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { transition: transform var(--dur-2) var(--ease-out); }
.acc[open] summary .ico { transform: rotate(180deg); }
.acc .acc-body { padding-bottom: var(--s-4); color: var(--ink-2); }

/* Modal (native dialog) */
.modal {
  border: 0; padding: 0; border-radius: var(--r-lg); box-shadow: var(--elev-modal);
  width: min(520px, calc(100% - 2rem)); background: var(--bg); color: var(--ink);
  opacity: 1; transform: none; transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), overlay var(--dur-2) allow-discrete, display var(--dur-2) allow-discrete;
}
.modal::backdrop { background: oklch(0.2 0.04 245 / 0.5); }
@starting-style { .modal[open] { opacity: 0; transform: scale(0.96); } }
.modal .m-head { padding: var(--s-5) var(--s-5) 0; display: flex; justify-content: space-between; gap: var(--s-3); align-items: flex-start; }
.modal .m-head h2 { font-size: var(--t-22); }
.modal .m-body { padding: var(--s-4) var(--s-5); color: var(--ink-2); }
.modal .m-foot { padding: 0 var(--s-5) var(--s-5); display: flex; gap: var(--s-2); justify-content: flex-end; flex-wrap: wrap; }

/* Drawer */
.drawer-scrim { position: fixed; inset: 0; background: oklch(0.2 0.04 245 / 0.4); z-index: var(--z-layer); opacity: 0; pointer-events: none; transition: opacity var(--dur-3) var(--ease); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: calc(var(--z-layer) + 1); width: min(480px, 100%);
  background: var(--bg); box-shadow: var(--elev-modal); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--dur-3) var(--ease-drawer);
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer .d-head { padding: var(--s-5); border-bottom: var(--rule); display: flex; justify-content: space-between; align-items: center; }
.drawer .d-body { padding: var(--s-5); overflow-y: auto; flex: 1; }
.drawer .d-foot { padding: var(--s-4) var(--s-5); border-top: var(--rule); display: flex; gap: var(--s-2); justify-content: flex-end; }

/* Popover (static-positioned inside a relative parent) */
.popover {
  background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--elev-pop); padding: var(--s-3);
  min-width: 220px; transform-origin: top left;
}
.popover a, .popover button {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 40px; padding: 0 var(--s-3);
  border: 0; background: none; border-radius: var(--r-ctl); text-decoration: none; color: var(--ink); font-weight: 700; text-align: left;
}
.popover a:hover, .popover button:hover { background: var(--surface); }

/* Tooltip */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(2px);
  padding: 6px 10px; border-radius: var(--r-ctl); background: var(--ink); color: var(--bg);
  font-size: var(--t-13); font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 125ms var(--ease-out), transform 125ms var(--ease-out); z-index: var(--z-toast);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translateX(-50%); }

/* Banner — full tinted surface with a leading icon; never a side stripe */
.banner {
  display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-ctl); background: var(--info-soft); color: var(--info-ink); font-size: var(--t-15);
}
.banner b { font-weight: 700; }
.banner .ico { margin-top: 2px; }
.banner.warn { background: var(--warning-soft); color: var(--warning-ink); }
.banner.danger { background: var(--danger-soft); color: var(--danger-ink); }
.banner.ok { background: var(--success-soft); color: var(--success-ink); }
.banner.brand { background: var(--primary-soft); color: var(--primary-strong); }
.banner .btn { margin-left: auto; }

/* ==========================================================================
   5. FEEDBACK & STATES
   ========================================================================== */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-6) 0; max-width: 42ch; }
.empty .glyph { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.empty h3 { font-size: var(--t-22); }
.empty p { color: var(--muted); }
.skeleton { background: var(--surface-2); border-radius: var(--r-ctl); animation: pulse 1.4s var(--ease) infinite; }
.skeleton.line { height: 14px; margin: 8px 0; }
@keyframes pulse { 50% { opacity: .55; } }

/* ==========================================================================
   6. DOMAIN COMPONENTS
   ========================================================================== */

/* Pain scale — 0–10, one hue ramp, number always printed. 52px targets. */
/* Two rows (0–5, 6–10) on every surface: the same muscle memory on phone, web and desktop. */
.painscale { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 7px; max-width: 347px; margin-inline: auto; }
.painscale button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center;
  font-size: var(--t-18); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--on-pain-lo);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.painscale button:nth-child(n+8) { color: var(--on-pain-hi); }
.painscale button:active { transform: scale(0.94); }
.painscale button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--ink); }
.painscale-read { text-align: center; margin-top: var(--s-3); min-height: 3.2em; }
.painscale-read b { font-family: var(--font-display); font-size: var(--t-28); font-weight: var(--wt-head); display: block; line-height: 1.2; }
.painscale-read span { color: var(--muted); font-size: var(--t-15); }
.p0{background:var(--pain-0)}.p1{background:var(--pain-1)}.p2{background:var(--pain-2)}.p3{background:var(--pain-3)}
.p4{background:var(--pain-4)}.p5{background:var(--pain-5)}.p6{background:var(--pain-6)}.p7{background:var(--pain-7)}
.p8{background:var(--pain-8)}.p9{background:var(--pain-9)}.p10{background:var(--pain-10)}
.nrs { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: var(--r-full);
  font-weight: 800; font-size: var(--t-14); font-variant-numeric: tabular-nums; color: var(--on-pain-lo); }
.nrs.hi { color: var(--on-pain-hi); }

/* Body map — front/back segmented figure; regions are toggles. */
.bodymap { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.bodymap svg { width: 100%; max-width: 200px; height: auto; overflow: visible; }
.bodymap .rg { fill: var(--surface-3); stroke: var(--bg); stroke-width: 2; cursor: pointer; transition: fill var(--dur-1) var(--ease); }
.bodymap .rg:hover { fill: var(--primary-soft-2); }
.bodymap .rg[aria-checked="true"] { fill: var(--primary); }
.bodymap .rg:focus-visible { outline: none; stroke: var(--ink); stroke-width: 3; }
.bodymap.heat .rg { cursor: default; }
.bodymap-legend { font-size: var(--t-14); color: var(--muted); text-align: center; }

/* Tide line — the daily pain curve */
.tideline { width: 100%; height: auto; overflow: visible; }
.tideline .area { fill: var(--primary-soft-2); opacity: .75; }
.tideline .line { fill: none; stroke: var(--primary); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.tideline .grid { stroke: var(--line); stroke-width: 1; }
.tideline .axis { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.tideline .flare { fill: var(--pain-9); stroke: var(--bg); stroke-width: 2; }
.tideline .today { fill: var(--primary); }

/* Calendar strip — 13 weeks, one square per day */
.calstrip { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; width: fit-content; }
.calstrip i { width: 18px; height: 18px; border-radius: 4px; display: block; }
.calstrip i.none { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

/* Insight — a sentence with its working shown */
.insight { background: var(--surface); border-radius: var(--r-card); padding: var(--pad-card); display: flex; flex-direction: column; gap: var(--s-3); }
.insight .kicker { display: flex; align-items: center; gap: var(--s-2); color: var(--primary); font-weight: 700; font-size: var(--t-14); }
.insight h3 { font-size: var(--t-22); line-height: 1.3; }
.insight .evidence { display: grid; grid-template-columns: auto 1fr auto; gap: 6px var(--s-3); align-items: center; font-size: var(--t-14); }
.insight .evidence .bar { height: 10px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.insight .evidence .bar i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.insight .evidence .bar.base i { background: var(--c-2); }
.insight .why { font-size: var(--t-14); color: var(--ink-2); }
.insight .why summary { cursor: pointer; font-weight: 700; color: var(--primary); min-height: 32px; display: flex; align-items: center; gap: 4px; list-style: none; }
.insight .why summary::-webkit-details-marker { display: none; }
.insight .days { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--s-2); }
.insight .days span { font-size: var(--t-12); padding: 2px 8px; border-radius: var(--r-full); background: var(--bg); color: var(--ink-2); }

/* Outlook — three bands, never a percentage */
.outlook .bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.outlook .bands span {
  display: flex; align-items: center; justify-content: center; min-height: 40px; font-weight: 700; font-size: var(--t-15);
  background: var(--surface-2); color: var(--muted); border-radius: 4px;
}
.outlook .bands span:first-child { border-radius: var(--r-ctl) 4px 4px var(--r-ctl); }
.outlook .bands span:last-child { border-radius: 4px var(--r-ctl) var(--r-ctl) 4px; }
.outlook .bands span.on { background: var(--primary); color: var(--on-primary); }
.outlook .factors { margin-top: var(--s-3); display: grid; gap: var(--s-2); }
.outlook .factor { display: grid; grid-template-columns: 1fr 96px; gap: var(--s-3); align-items: center; font-size: var(--t-14); }
.outlook .note { font-size: var(--t-13); color: var(--muted); margin-top: var(--s-2); }

/* Sparkline */
.spark { display: inline-block; vertical-align: middle; overflow: visible; }
.spark path { fill: none; stroke: var(--primary); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: var(--primary); }
.delta { font-size: var(--t-13); font-weight: 700; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 2px; }
.delta.up { color: var(--danger-ink); } .delta.down { color: var(--success-ink); } .delta.flat { color: var(--muted); }

/* Triage row */
.triage-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-1) var(--s-3); align-items: center;
  padding: var(--s-3) var(--s-4); border-bottom: var(--rule); text-decoration: none; color: inherit; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease);
}
.triage-row:hover { background: var(--surface-2); }
.triage-row[aria-current="true"] { background: var(--primary-soft); }
.triage-row .who { min-width: 0; }
.triage-row .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.triage-row .who span { color: var(--muted); font-size: var(--t-13); }
.triage-row .reasons { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.risk { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-13); font-weight: 700; white-space: nowrap; }
.risk.high { color: var(--danger-ink); } .risk.watch { color: var(--warning-ink); } .risk.steady { color: var(--muted); }

/* RTM day counter */
.rtm { display: grid; gap: var(--s-2); }
.rtm .days { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; position: relative; }
.rtm .days i { height: 22px; border-radius: 3px; background: var(--surface-3); display: block; }
.rtm .days i.on { background: var(--primary); }
.rtm .days i.mark { box-shadow: inset 0 0 0 2px var(--ink); }
.rtm .legend { display: flex; justify-content: space-between; font-size: var(--t-13); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Clinical-review badge */
.reviewed { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-14); color: var(--ink-2); }
.reviewed .ico { color: var(--primary); }

/* Breathing pacer — the one orchestrated animation */
.pacer { display: grid; place-items: center; gap: var(--s-4); }
.pacer .orb {
  width: 180px; height: 180px; border-radius: 50%; background: var(--primary-soft-2); display: grid; place-items: center;
  transform: scale(0.62);
}
.pacer .orb::after { content: ''; width: 64px; height: 64px; border-radius: 50%; background: var(--primary); }
.pacer.run .orb { animation: breathe 10s var(--ease) infinite; }
@keyframes breathe { 0% { transform: scale(0.62); } 40% { transform: scale(1); } 100% { transform: scale(0.62); } }
.pacer .cue { font-family: var(--font-display); font-size: var(--t-22); min-height: 1.5em; }

/* ==========================================================================
   7. PROTOTYPE CHROME (bar, layers, toasts, tour)
   ========================================================================== */
.sheet-scrim {
  position: absolute; inset: 0; z-index: var(--z-layer);
  background: oklch(0.2 0.04 245 / 0.45); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-3) var(--ease);
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-layer) + 1);
  max-height: 86%; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: translateY(100%); transition: transform var(--dur-3) var(--ease-drawer);
}
.sheet::before { content: ''; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 2px; flex: none; }
.sheet-body { overflow-y: auto; padding: var(--s-4) var(--app-gutter, var(--s-5)) var(--s-6); }
.layer-open .sheet-scrim, .sheet-scrim.open { opacity: 1; pointer-events: auto; }
.layer-open .sheet, .sheet.open { transform: translateY(0); }

.push {
  position: absolute; left: 10px; right: 10px; top: 56px; z-index: var(--z-toast);
  display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4); font-size: var(--t-15);
  background: var(--field); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--elev-pop);
  transform: translateY(-150%); transition: transform var(--dur-3) var(--ease-out);
}
.push.in { transform: translateY(0); }
.push .ico-wrap { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; flex: none; }

.pocbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-pocbar);
  height: var(--pocbar-h); display: flex; align-items: center; gap: var(--s-3);
  padding: 0 var(--s-4); font-size: var(--t-13);
  background: oklch(0.2 0.03 245); color: oklch(0.96 0.01 245);
}
.pocbar .tagword { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: oklch(0.80 0.08 228); font-weight: 500; }
.pocbar .roles { display: flex; gap: 2px; }
.pocbar .roles a { padding: 4px 10px; border-radius: var(--r-full); color: oklch(0.80 0.03 245); text-decoration: none; white-space: nowrap; font-weight: 700; }
.pocbar .roles a:hover { color: oklch(0.96 0.01 245); background: oklch(0.31 0.06 245); }
.pocbar .roles a[aria-current="true"] { background: oklch(0.80 0.08 228); color: oklch(0.2 0.03 245); }
.pocbar .mods { display: flex; gap: 4px; }
.pocbar .tag-module {
  font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border: 1px solid oklch(0.39 0.05 245);
  border-radius: var(--r-full); color: oklch(0.80 0.03 245); text-decoration: none;
}
.pocbar .spacer { flex: 1; }
.pocbar button.link { background: none; border: 0; color: oklch(0.80 0.03 245); font: inherit; font-weight: 700; cursor: pointer; padding: 4px 6px; white-space: nowrap; }
.pocbar button.link:hover { color: oklch(0.96 0.01 245); }
@media (max-width: 720px) {
  .pocbar .hide-sm { display: none; }
  .pocbar { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .pocbar::-webkit-scrollbar { display: none; }
  .pocbar > * { flex: none; }
  .pocbar .spacer { flex: 1 0 var(--s-4); }
}
@media (max-width: 420px) { .pocbar .tagword { display: none; } }
@media print { .pocbar, .toaster { display: none !important; } }

body.show-sow [data-module] { outline: 1px dashed var(--accent-strong); outline-offset: 2px; position: relative; }
body.show-sow [data-module]::after {
  content: attr(data-module); position: absolute; top: -8px; right: -6px; z-index: 2;
  font-family: var(--font-mono); font-size: 9px; line-height: 1; padding: 3px 5px; border-radius: var(--r-full);
  background: var(--primary); color: var(--on-primary);
}

.toaster {
  position: fixed; right: var(--s-4); bottom: calc(var(--pocbar-h) + var(--s-4));
  z-index: var(--z-toast); display: flex; flex-direction: column-reverse; gap: var(--s-2); pointer-events: none;
}
body:not(.has-pocbar) .toaster { bottom: var(--s-4); }
.toast {
  max-width: 44ch; padding: var(--s-3) var(--s-4); background: var(--ink); color: var(--bg);
  border-radius: var(--r-ctl); box-shadow: var(--elev-pop); font-size: var(--t-15); font-weight: 700;
  opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
@starting-style { .toast { opacity: 0; transform: translateY(8px); } }
.toast.ok { background: var(--success-ink); color: oklch(0.99 0 0); }
.toast.warn { background: var(--warning-soft); color: var(--warning-ink); }
.toast.err { background: var(--danger-ink); color: oklch(0.99 0 0); }

.tour-pop {
  position: fixed; z-index: calc(var(--z-tour) + 2); right: var(--s-4); bottom: calc(var(--pocbar-h) + var(--s-4));
  width: min(380px, calc(100% - 2rem)); padding: var(--s-5); background: var(--bg); color: var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--elev-modal);
}
.tour-pop .step { font-size: var(--t-13); color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.tour-pop h3 { font-size: var(--t-22); margin: var(--s-1) 0 var(--s-2); }
.tour-pop p { font-size: var(--t-15); line-height: 1.55; color: var(--ink-2); }
.tour-pop .row { display: flex; gap: var(--s-2); justify-content: flex-end; margin-top: var(--s-4); }

.rv.pre { opacity: 0; transform: translateY(14px); }
.rv.in  { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: var(--z-tour); padding: var(--s-3) var(--s-4); background: var(--primary); color: var(--on-primary); }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ==========================================================================
   8. SHARED ROWS & SITE CHROME
   ========================================================================== */
.logrows, .artrows { list-style: none; padding: 0; }
.logrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; min-height: var(--h-row); padding: var(--s-2) 0; border-bottom: var(--rule); }
.logrow[data-href] { cursor: pointer; }
.logrow .row-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logrow-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.logrows > li:last-child, .artrows > li:last-child a { border-bottom: 0; }
.artrow a { display: flex; align-items: center; gap: var(--s-3); min-height: var(--h-row); padding: var(--s-2) 0; border-bottom: var(--rule); color: inherit; text-decoration: none; }
.artrow .fmt { width: 44px; height: 44px; border-radius: var(--r-ctl); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); flex: none; }
.artrow .ico:last-child { color: var(--muted); }
@media (hover: hover) { .artrow a:hover .row-main b { color: var(--primary); } }
.site-foot { padding: var(--s-5) 0 calc(var(--pocbar-h) + var(--s-5)); border-top: var(--rule); font-size: var(--t-13); color: var(--muted); margin-top: var(--s-8); }
.site-foot .spread { flex-wrap: wrap; }
.quicklog .painscale-read { min-height: 2.8em; }
.safety-layer .btn-block { justify-content: flex-start; }
.safety-layer h2 { font-size: var(--t-28) !important; }
@media (max-width: 760px) {
  .topnav .in { gap: var(--s-3); }
  .topnav .links { flex: 1; min-width: 0; }
  .topnav .brand small, .topnav .end .btn, .topnav .end > .sm, .topnav .end label { display: none; }
  .topnav .end .select { max-width: 130px; }
}
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg label { flex: none; }
.seg.block label { flex: 1 0 auto; }
.bulkbar { flex-wrap: wrap; max-width: 100%; }

/* Key-value strip: the calm alternative to KPI cards. */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border-top: var(--rule); border-bottom: var(--rule); }
.kv > div { padding: var(--s-3) var(--s-4) var(--s-3) 0; }
.kv b { display: block; font-family: var(--font-display); font-size: var(--t-22); font-weight: 560; font-variant-numeric: tabular-nums; }
.kv span { font-size: var(--t-13); color: var(--muted); }
