/* /Components/CaughtUpArt.razor.rz.scp.css */
/* Caught-up artwork (micro-rewards, 2026-10-17). Static by rule: no animation here at all,
   so there is nothing for reduced motion to take away. Every colour is a token, so the art
   follows dark mode with the page; washes are the save family's mint at low opacity. */
.caught-up[b-1jb29k373z] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.caught-up--card[b-1jb29k373z] {
    margin-top: 1rem;
    padding: 2.25rem 1.5rem;
    border: 1px solid var(--ed-hairline);
    border-radius: var(--radius-xl);
    background: var(--ed-paper-warm);
}

.caught-up-art[b-1jb29k373z] {
    display: block;
    max-width: 100%;
    height: auto;
    fill: none;
    stroke: var(--ed-eucalypt);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The sprig is drawn in a 60-unit box, so its line is set finer to match the others. */
.caught-up-art--fine[b-1jb29k373z] {
    stroke-width: 1.1;
}

.caught-up-ground[b-1jb29k373z] {
    stroke: var(--ed-hairline-strong);
    stroke-width: 1.4;
}

.caught-up-art--fine .caught-up-ground[b-1jb29k373z] {
    stroke-width: 0.8;
}

.caught-up-wash[b-1jb29k373z] {
    fill: var(--ed-mint);
}

.caught-up-sheet[b-1jb29k373z] {
    fill: var(--ed-paper-warm);
}

.caught-up-seal[b-1jb29k373z] {
    fill: var(--ed-eucalypt);
    stroke: none;
}

.caught-up-title[b-1jb29k373z] {
    margin: 0;
    font-family: var(--ed-display);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--ed-eucalypt);
}

.caught-up-copy[b-1jb29k373z] {
    margin: 0;
    max-width: 28rem;
    font-family: var(--ed-ui);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ed-ink-soft);
}

/* A phone gets the same art a little smaller, so the copy stays above the fold. */
:root[data-phone="on"] .caught-up-art[b-1jb29k373z] {
    width: min(10rem, 60%);
}

:root[data-phone="on"] .caught-up--card[b-1jb29k373z] {
    padding: 1.5rem 1rem;
}
/* /Components/ClinicHandoverButton.razor.rz.scp.css */
/* Hand over on the case page (clinic handover, 2026-10-18). Its own scoped styles: the
   case page's .cv-pill / .cv-text-btn live in CaseView.razor.css and never reach a child
   component's markup (review 2026-10-18, #7). Same shapes, read off the case page's tokens
   where it defines them (--cv-*, inherited from .cv-spread) and the app's elsewhere. */

.clinic-pill[b-77bue5hz85] {
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    font-weight: 500;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--cv-hairline-strong, var(--ed-hairline-strong));
    background: transparent;
    color: var(--cv-ink-soft, var(--ed-ink-soft));
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    line-height: 1.3;
    white-space: nowrap;
}

.clinic-pill:hover:not(:disabled)[b-77bue5hz85] {
    border-color: var(--cv-ink, var(--ed-ink));
    color: var(--cv-ink, var(--ed-ink));
}

.clinic-pill:disabled[b-77bue5hz85] {
    opacity: 0.6;
    cursor: default;
}

.clinic-link[b-77bue5hz85] {
    background: none;
    border: none;
    border-bottom: 1px solid var(--cv-hairline-strong, var(--ed-hairline-strong));
    padding: 0 0 1px;
    font: inherit;
    font-family: var(--ed-ui);
    font-size: 0.86rem;
    color: var(--cv-eucalypt, var(--ed-eucalypt));
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.clinic-link:hover[b-77bue5hz85] {
    border-color: var(--cv-eucalypt, var(--ed-eucalypt));
    color: var(--cv-ink, var(--ed-ink));
}
/* /Components/ClinicSyncChip.razor.rz.scp.css */
/* Clinic folder sync's masthead chip (2026-10-18). Flat — no glass: it sits on the
   masthead, which already carries any glass there is (no blur on blur). */
.sync-chip[b-66w2haptv7] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    max-width: 18rem;
    padding: 0.15rem 0.6rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 999px;
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    line-height: 1.4;
    color: var(--ed-ink-soft);
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sync-chip--quiet[b-66w2haptv7] {
    border-color: var(--ed-hairline);
    color: var(--ed-mute);
}

a.sync-chip:hover[b-66w2haptv7],
a.sync-chip:focus-visible[b-66w2haptv7] {
    color: var(--ed-ink);
    border-color: var(--ed-hairline-strong);
}

.sync-chip--paused[b-66w2haptv7],
.sync-chip--busy[b-66w2haptv7] {
    color: var(--ed-ink);
}

.sync-chip-text[b-66w2haptv7] {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sync-chip-action[b-66w2haptv7] {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: var(--ed-ink);
    text-decoration: underline;
    cursor: pointer;
}

.sync-chip-action:disabled[b-66w2haptv7] {
    cursor: progress;
    opacity: 0.6;
}

/* Hidden in phone layout and on narrow windows: the feature is for computers, and the
   masthead row is already full there. */
:root[data-phone="on"] .sync-chip[b-66w2haptv7] {
    display: none;
}

@media (max-width: 900px) {
    .sync-chip[b-66w2haptv7] {
        display: none;
    }
}

/* The quiet "Synced 4 min ago" gives way before the patient switcher does: at 1024px it
   squeezed the open patient's name to "Prob…" (browser check, 2026-10-18). The paused chip,
   which asks for a click, stays down to 900px; Clinic devices always has the full status. */
@media (max-width: 1279px) {
    .sync-chip--quiet[b-66w2haptv7] {
        display: none;
    }
}
/* /Components/ClinicSyncConflictBanner.razor.rz.scp.css */
/* "Edited on two computers — Compare" (clinic folder sync, 2026-10-18). A quiet line,
   no badge, no colour alarm: the record is safe, both versions are kept. */
.sync-conflict[b-4vwlrxjdmq] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.6rem;
    font-family: var(--ed-ui);
    font-size: max(0.85rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink-soft);
}

.sync-conflict-compare[b-4vwlrxjdmq] {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: var(--ed-ink);
    text-decoration: underline;
    cursor: pointer;
}

.sync-compare[b-4vwlrxjdmq] {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 10px;
    color: var(--ed-ink);
    font-family: var(--ed-ui);
}

.sync-compare-item + .sync-compare-item[b-4vwlrxjdmq] {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ed-hairline);
}

.sync-compare-title[b-4vwlrxjdmq] {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.sync-compare-table[b-4vwlrxjdmq] {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.sync-compare-table th[b-4vwlrxjdmq],
.sync-compare-table td[b-4vwlrxjdmq] {
    padding: 0.35rem 0.5rem 0.35rem 0;
    vertical-align: top;
    text-align: left;
    overflow-wrap: anywhere;
}

.sync-compare-table thead th[b-4vwlrxjdmq] {
    color: var(--ed-mute);
    font-weight: 600;
}

.sync-compare-table tbody th[b-4vwlrxjdmq] {
    width: 7.5rem;
    color: var(--ed-ink-soft);
    font-weight: 600;
}

.sync-pick[b-4vwlrxjdmq] {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    cursor: pointer;
}

.sync-pick-value[b-4vwlrxjdmq] {
    white-space: pre-wrap;
}

.sync-pick-who[b-4vwlrxjdmq] {
    display: block;
    margin-left: 1.3rem;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
}

.sync-compare-actions[b-4vwlrxjdmq] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
/* /Components/ClinicSyncSettings.razor.rz.scp.css */
/* Clinic folder sync's card on Clinic devices (2026-10-18). The page's .clinic-card look
   comes from app.css; only what is new here is styled. */
.sync-card[b-xnxzujjeyq] {
    margin-bottom: 1.25rem;
}

.sync-row[b-xnxzujjeyq] {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    margin-bottom: 0.35rem;
    min-width: 0;
}

.sync-label[b-xnxzujjeyq] {
    flex: 0 0 4.5rem;
    color: var(--ed-mute);
}

.sync-value[b-xnxzujjeyq] {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ed-ink);
}

.sync-note[b-xnxzujjeyq] {
    margin: 0.75rem 0;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 8px;
    color: var(--ed-ink);
}

.sync-readers[b-xnxzujjeyq] {
    list-style: none;
    margin: 0.5rem 0 0.75rem;
    padding: 0;
    color: var(--ed-ink-soft);
}

.sync-actions[b-xnxzujjeyq] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
}

.sync-confirm[b-xnxzujjeyq] {
    flex: 1 1 100%;
    color: var(--ed-ink);
}
/* /Components/ConsultDictatePanel.razor.rz.scp.css */
.consult-dictate-panel[b-pzwfefomph] { padding: 0.5rem 0; }

/* Mic and its instruction on one line. Wraps on a phone rather than squeezing the
   sentence that states the capture limit — the limit is not detectable, so the text
   saying it is the only warning there is. */
.consult-dictate-controls[b-pzwfefomph] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

/* The recording readout: count-up beside the stated stop time. Same red family as
   .chat-mic-btn--recording (app.css), which is the literal this state already ships
   with — matching it beats inventing a second recording colour. */
.consult-dictate-live[b-pzwfefomph] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: max(0.86rem, var(--ed-fs-floor, 0rem));
    font-variant-numeric: tabular-nums;
}

.consult-dictate-live-dot[b-pzwfefomph] {
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: #dc2626;
    animation: mic-pulse 2.4s ease-in-out infinite;
}

:root[data-theme="dark"] .consult-dictate-live-dot[b-pzwfefomph],
[data-theme="dark"] .consult-dictate-live-dot[b-pzwfefomph] {
    background: #f87171;
}
/* /Components/ConsultIntakeTabs.razor.rz.scp.css */
/* Theme tokens only. The blue was also off-palette — the house accent is terracotta. */
.consult-intake-tabs[b-pml7qojn6f] {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--ed-hairline);
    margin-bottom: 1rem;
}

.consult-tab[b-pml7qojn6f] {
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    border-bottom: 3px solid transparent;
    color: var(--ed-mute);
    cursor: pointer;
    font-size: 0.95rem;
}

.consult-tab:hover[b-pml7qojn6f] {
    color: var(--ed-terracotta);
}

.consult-tab.active[b-pml7qojn6f] {
    color: var(--ed-terracotta);
    border-bottom-color: var(--ed-terracotta);
    font-weight: 500;
}
/* /Components/ConsultRebindPicker.razor.rz.scp.css */
/* "Save to another patient…" — the case picker under the wrong-patient notice at Review
   (workflow helpers F1, 2026-09-27). MoveRecordsPanel's destination list, re-inked with
   the consult page's --ed-* palette (that panel lives inside CaseView and uses --cv-*).
   Every row is a 44px touch target and everything wraps at 360px. */

.rb-panel[b-xlkxy3fmur] {
    border: 1px solid var(--ed-hairline-strong);
    padding: 0.75rem 0.85rem;
    margin: 0 0 0.9rem;
    max-width: 100%;
    box-sizing: border-box;
    font-family: var(--ed-ui);
}

.rb-heading[b-xlkxy3fmur] {
    font-family: var(--ed-ui);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ed-ink);
    margin: 0 0 0.5rem;
}

.rb-dests[b-xlkxy3fmur] {
    border: 0;
    padding: 0;
    margin: 0 0 0.75rem;
    min-width: 0;
}

/* Bootstrap's reboot floats legends at 1.5rem; this is a small caps label. */
.rb-legend[b-xlkxy3fmur] {
    float: none;
    width: auto;
    font-family: var(--ed-mono);
    font-size: max(0.66rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ed-ink-soft);
    margin: 0 0 0.3rem;
    padding: 0;
}

.rb-search[b-xlkxy3fmur] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--ed-ui);
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
    min-height: 2.75rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 6px;
    background: transparent;
    color: var(--ed-ink);
    margin-bottom: 0.25rem;
}

.rb-search:focus[b-xlkxy3fmur] {
    outline: none;
    border-color: var(--ed-eucalypt);
}

.rb-dest[b-xlkxy3fmur] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 0.55rem;
    row-gap: 0.1rem;
    min-height: 2.75rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--ed-hairline);
    cursor: pointer;
}

.rb-dest input[b-xlkxy3fmur] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    flex: none;
    accent-color: var(--ed-eucalypt);
}

.rb-dest-name[b-xlkxy3fmur] {
    color: var(--ed-ink);
    font-weight: 600;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    min-width: 0;
}

.rb-dest-meta[b-xlkxy3fmur] {
    color: var(--ed-mute);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    overflow-wrap: anywhere;
    min-width: 0;
}

.rb-actions[b-xlkxy3fmur] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rb-btn[b-xlkxy3fmur] {
    font-family: var(--ed-ui);
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 2.75rem;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--ed-hairline-strong);
    background: transparent;
    color: var(--ed-ink-soft);
    cursor: pointer;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.rb-btn:hover[b-xlkxy3fmur] {
    border-color: var(--ed-ink);
    color: var(--ed-ink);
}

.rb-btn--primary[b-xlkxy3fmur] {
    background: var(--ed-eucalypt);
    border-color: var(--ed-eucalypt);
    color: var(--ed-paper);
}

.rb-btn--primary:hover[b-xlkxy3fmur] {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: var(--ed-paper);
}

.rb-btn:disabled[b-xlkxy3fmur] {
    opacity: 0.55;
    cursor: not-allowed;
}

.rb-hint[b-xlkxy3fmur] {
    color: var(--ed-mute);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    margin: 0.4rem 0 0;
}
/* /Components/ConsultStarter.razor.rz.scp.css */
/* The existing-record chooser. It moved here from Today (2026-10-04) so Live Consult's
   Next up shows the same one, and Today's scoped .today-add / .today-add-title /
   .today-import-help cannot reach a child component's markup — so the card carries its
   own copy of that look. */

/* Modal scrim — dark over both themes by design (css-hygiene's backdrop exemption).
   Fixed, so it covers the screen from wherever a host renders the component. */
.consult-chooser-backdrop[b-3c3xmc92v7] {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(31, 29, 24, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.consult-chooser[b-3c3xmc92v7] {
    background: var(--ed-paper);
    border: 1px solid var(--ed-hairline);
    border-radius: 6px;
    padding: 1rem 1.1rem 1.1rem;
    max-width: 34rem;
    width: 100%;
}

.consult-chooser-title[b-3c3xmc92v7] {
    font-family: var(--ed-mono);
    font-size: max(0.76rem, var(--ed-fs-floor, 0rem));
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ed-ink-soft);
    margin-bottom: 0.6rem;
}

.consult-chooser-help[b-3c3xmc92v7] {
    font-family: var(--ed-body);
    font-size: 0.95rem;
    color: var(--ed-ink-soft);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}
/* /Components/ConsultStepper.razor.rz.scp.css */
/* Band height budget (2026-07-30): trimmed ~25% for 720p practice screens —
   54px → ~41px at the comfort root. The trim is vertical only: paddings, the
   stated min-height, and the marker circle. Label and marker FONT sizes are
   untouched on purpose; the same request that shrank this band also raised the
   app's floor for older eyes, and smaller text would work against it. The
   44px touch floors in the media query below are accessibility minimums and
   deliberately keep their number. */
.consult-stepper[b-3ravx3tysl] {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .3rem .75rem;
    margin: 0 0 .25rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(128, 128, 128, .18);
    -webkit-overflow-scrolling: touch;
}

.consult-step[b-3ravx3tysl] {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;   /* stated, so the chip beside it can match a number */
    gap: .4rem;
    padding: .2rem .6rem;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    border-radius: .5rem;
    white-space: nowrap;
    opacity: .6;
}
.consult-step:hover[b-3ravx3tysl] { background: rgba(128, 128, 128, .1); opacity: 1; }

.consult-step-marker[b-3ravx3tysl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem; height: 1.3rem;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: max(.72rem, var(--ed-fs-floor, 0rem));
    font-weight: 600;
}
.consult-step-label[b-3ravx3tysl] { font-size: .85rem; }

.consult-step-next[b-3ravx3tysl] {
    font-size: max(.62rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .05rem .3rem;
    border-radius: .6rem;
    background: rgba(47, 107, 78, .18);   /* --ed-mint at 18% */
}

.consult-step--done[b-3ravx3tysl] { opacity: 1; }
/* Supplying both halves is not the same as supplying a legible pair: white on the frozen
   #2e9d6b measured 3.41:1, which the earlier note here assumed away. --ed-mint carries
   white at 6.30:1 and flips with the theme (2026-08-09).
   But only the FILL flipped: white on dark theme's #6cc296 is 2.14:1, and the contrast
   check measured this rule in light only (sweep 2026-10-15, shell-brand-pwa#5). The ink
   is --ed-paper now, the pair .ed-pill--accent:hover already uses: 5.49:1 in light
   (cream on #2f6b4e), 8.10:1 in dark (#1c1a16 on #6cc296). */
.consult-step--done .consult-step-marker[b-3ravx3tysl] { background: var(--ed-mint); border-color: var(--ed-mint); color: var(--ed-paper); }

.consult-step--current[b-3ravx3tysl] { opacity: 1; font-weight: 600; }
/* This one sits on the page background rather than its own fill, so a frozen #2e9d6b
   read 2.98:1 in light. */
.consult-step--current .consult-step-marker[b-3ravx3tysl] { border-color: var(--ed-mint); color: var(--ed-mint); }

.consult-step-link[b-3ravx3tysl] { flex: 0 0 1.2rem; height: 1px; background: rgba(128, 128, 128, .35); }
.consult-step-link--done[b-3ravx3tysl] { background: var(--ed-mint); }

/* ── Consult path chip + picker ─────────────────────────────────────────────
   The spine names itself at the head of the strip, and changing it is one tap
   away. Deliberately in the stepper rather than buried on the case page: this
   is where the vet already looks, and the vaccination that turns into a real
   consult has to be able to widen without hunting for a setting. */
/* min-height matches .consult-step. The step's height comes from its 1.3rem
   marker circle, which the chip has no equivalent of, so left to its own padding
   the chip sat shorter than the buttons it shares a row with. */
.consult-path-chip[b-3ravx3tysl] {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    gap: .35rem;
    padding: .2rem .6rem .2rem .5rem;
    margin-right: .6rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 1rem;
    background: transparent;
    color: var(--ed-ink-soft);
    font-family: var(--ed-ui);
    font-size: max(.76rem, var(--ed-fs-floor, 0rem));
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

.consult-path-chip:hover[b-3ravx3tysl] {
    background: var(--ed-paper-deep);
    color: var(--ed-ink);
}

/* In NORMAL FLOW below the strip, not absolutely positioned inside it: the strip
   is overflow-x:auto for narrow screens, which would clip a dropdown outright. */
.consult-path-picker[b-3ravx3tysl] {
    margin: 0 .75rem .5rem;
    max-width: 32rem;
    padding: .35rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: .6rem;
    background: var(--ed-paper-warm);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.consult-path-option[b-3ravx3tysl] {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .5rem .6rem;
    border: none;
    border-radius: .45rem;
    background: transparent;
    color: var(--ed-ink);
    font-family: var(--ed-ui);
    font-size: .82rem;
    text-align: left;
    cursor: pointer;
}

.consult-path-option:hover[b-3ravx3tysl] { background: var(--ed-paper-deep); }
.consult-path-option.is-current[b-3ravx3tysl] { color: var(--ed-terracotta); }

.consult-path-option-blurb[b-3ravx3tysl] {
    display: block;
    color: var(--ed-mute);
    font-size: max(.76rem, var(--ed-fs-floor, 0rem));
    line-height: 1.35;
}

/* The steps belong here, NOT in app.css's touch block. Scoped CSS compiles to
   .consult-step[b-xxxxx] — specificity (0,2,0) — so the base min-height above
   silently beat a global .consult-step rule and the steps stayed 36px next to
   44px chips. Same file, same specificity, one place to read. */
@media (max-width: 1024px), (pointer: coarse) {
    .consult-step[b-3ravx3tysl] { min-height: 44px; }
    .consult-path-chip[b-3ravx3tysl] { min-height: 44px; }
    .consult-path-option[b-3ravx3tysl] { min-height: 44px; }
}

/* Phone density. Deliberately NOT folded into the block above: that one raises hit
   targets, which a large touchscreen needs; this one reclaims horizontal room,
   which only a narrow screen needs. A tablet wants the first and not the second.

   Not touched: .consult-stepper's gap (.25rem) and .consult-step's padding
   (.2rem .6rem). Both are already tighter than the phone tier's --ed-sp-gap, so
   pointing them at the token would make the strip looser, not denser. */
@media (max-width: 640.98px) {
    /* The stepper is a chrome row inside main — a sibling of article.content, not a
       child — so its own inline padding IS its gutter. .75rem against the article's
       0.6rem left the strip inset from the content beneath it. */
    .consult-stepper[b-3ravx3tysl] {
        padding-inline: var(--ed-sp-gutter);
    }

    .consult-path-picker[b-3ravx3tysl] {
        margin-inline: var(--ed-sp-gutter);
    }

    /* .6rem between chips is desktop rhythm on a 390px strip. */
    .consult-path-chip[b-3ravx3tysl] {
        margin-right: var(--ed-sp-gap);
    }
}
/* /Components/ConsultTypePanel.razor.rz.scp.css */
.consult-type-panel[b-8eyx007zkx] { padding: 0.5rem 0; }
.consult-type-actions[b-8eyx007zkx] { display: flex; gap: 0.5rem; }
/* /Components/ConsultUploadPanel.razor.rz.scp.css */
.consult-upload-panel[b-l0mg68fgo5] { padding: 0.5rem 0; }
/* By its class, not as `.upload-result textarea` (QoL 2026-10-04, review of 3D): the phone's
   16px floor (css/phone/shell.css) lists classes, and a bare textarea subject left the
   transcript at 14.45px on a phone, so iOS zoomed the page on the tap to fix a word.
   textarea.upload-transcript keeps the old selector's specificity, (0,2,1) once scoped. */
textarea.upload-transcript[b-l0mg68fgo5] { font-family: var(--bs-font-monospace); font-size: 0.85rem; }
/* /Components/DoseCalculator.razor.rz.scp.css */

/* Stock-concentration override on an emergency drug. The catalog figures are US
   presentations and this panel derives volume from them, so the clinician can
   state the vial they actually hold. */
.emergency-stock[b-9of43f7e66] {
    display: inline-flex;
    align-items: baseline;
    gap: .3rem;
    font-size: max(.75rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink-soft);
    margin-left: .5rem;
}

.emergency-stock input[b-9of43f7e66] {
    width: 5.5rem;
    display: inline-block;
}
/* /Components/DrugBookDoseCalc.razor.rz.scp.css */
/* The dose calculator under an approved Drug Book dose line (workflow helpers F2,
   2026-09-27). A quiet panel in the check block's shade: the working is the point, set in
   the UI face at reading size; the rounded figure beside it is bolder, never louder than
   the working it came from. Tokens only; sizes under 0.8rem consume the comfort floor.
   Phone mode adds thumb-sized targets in css/phone/drugbook.css. */

.drugbook-calc[b-ey4m86by5b] {
    margin: 0.35rem 0 0.2rem;
    padding: 0.55rem 0.75rem 0.5rem;
    border-radius: var(--radius-md);
    background: var(--ed-paper-deep);
    color: var(--ed-ink);
    font-family: var(--ed-ui);
    font-size: 0.9rem;
}

.drugbook-calc-for[b-ey4m86by5b] {
    margin: 0 0 0.3rem;
    font-weight: 600;
}

.drugbook-calc-src[b-ey4m86by5b] {
    font-weight: 400;
    color: var(--color-text-muted);
}

/* The approved line, whole: what the arithmetic below is about (review, 2026-09-27: a
   label cut at the first comma dropped routes and cautions). */
.drugbook-calc-line[b-ey4m86by5b] {
    margin: 0 0 0.4rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--ed-hairline);
    color: var(--ed-ink-soft);
    overflow-wrap: anywhere;
}

.drugbook-calc-row[b-ey4m86by5b] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    margin: 0 0 0.3rem;
}

.drugbook-calc-row-label[b-ey4m86by5b] { font-weight: 600; }

.drugbook-calc-weight[b-ey4m86by5b],
.drugbook-calc-dose[b-ey4m86by5b] {
    width: 6.5rem;
    min-height: 2.2rem;
}

/* A file dose is pre-filled whole ("0.0625–0.125"): room for it, uncut (2026-11-15). */
.drugbook-calc-dose[b-ey4m86by5b] { width: 8.5rem; }

.drugbook-calc-unit[b-ey4m86by5b] {
    width: auto;
    min-height: 2.2rem;
}

.drugbook-calc-strength[b-ey4m86by5b] {
    width: 5.5rem;
    min-height: 2.2rem;
}

.drugbook-calc-own .drugbook-calc-row-label[b-ey4m86by5b] {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.drugbook-calc-note[b-ey4m86by5b] {
    margin: 0.2rem 0 0.3rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.drugbook-calc-ask[b-ey4m86by5b] {
    margin: 0.1rem 0 0.3rem;
    font-weight: 600;
}

/* Out of the species' range: said plainly, and nothing is worked. */
.drugbook-calc-check[b-ey4m86by5b] {
    margin: 0.2rem 0 0.3rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--ed-terracotta);
    font-weight: 700;
}

.drugbook-calc-result[b-ey4m86by5b] {
    padding: 0.3rem 0;
    overflow-wrap: anywhere;
}

.drugbook-calc-working[b-ey4m86by5b] { line-height: 1.45; }

.drugbook-calc-rounded[b-ey4m86by5b],
.drugbook-calc-volume[b-ey4m86by5b] {
    font-weight: 700;
    line-height: 1.45;
}

/* Under 0.02 mL (review F2b, 2026-09-27): said beside the volume, in the working's weight
   rather than the figure's, since it is advice about the figure. */
.drugbook-calc-dilute[b-ey4m86by5b] {
    font-weight: 600;
    line-height: 1.45;
}

.drugbook-calc-caption[b-ey4m86by5b] {
    margin: 0.4rem 0 0;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    font-style: italic;
    color: var(--color-text-muted);
}

/* Comfort view: fine print earns upright letters (the MedicationRow precedent). */
:root[data-comfort="on"] .drugbook-calc-caption[b-ey4m86by5b] { font-style: normal; }

/* Touch floor (a global rule loses to these scoped selectors on specificity). */
@media (max-width: 1024px), (pointer: coarse) {
    .drugbook-calc-weight[b-ey4m86by5b],
    .drugbook-calc-dose[b-ey4m86by5b],
    .drugbook-calc-unit[b-ey4m86by5b],
    .drugbook-calc-strength[b-ey4m86by5b] { min-height: 44px; }
}

/* A maximum on the card cut the result (drug files, 2026-11-15). The same bar as "Check the
   weight": this is the line the vet must not miss. */
.drugbook-calc-capped[b-ey4m86by5b] {
    margin: 0.15rem 0;
    padding-left: 0.5rem;
    border-left: 3px solid var(--ed-terracotta);
    font-weight: 600;
    line-height: 1.45;
}

.drugbook-calc-caps[b-ey4m86by5b] {
    margin: 0.2rem 0 0.35rem;
    padding-top: 0.3rem;
    border-top: 1px solid var(--ed-hairline);
}

.drugbook-calc-caps-head[b-ey4m86by5b] { font-weight: 600; }

.drugbook-calc-caps ul[b-ey4m86by5b] {
    margin: 0.1rem 0 0;
    padding-left: 1.1rem;
}

.drugbook-calc-caps li[b-ey4m86by5b] { overflow-wrap: anywhere; }

.drugbook-calc-caps-how[b-ey4m86by5b] {
    display: block;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
}
/* /Components/DrugBookPeek.razor.rz.scp.css */
/* The Drug Book quick look (2026-09-24): the card over the Medications page, so a dose is
   checked without leaving an unsaved list. The frame is the shared .logout-prompt dialog
   (app.css); these rules only widen it and set the card inside. Tokens only, and every
   size under 0.8rem consumes the comfort floor. The scoped selector outranks the global
   .logout-prompt, which is what lets max-width move. */

/* Solid paper, not the dialog family's glass (2026-10-17): this is a drug card to READ,
   and taller than the band the glass panes keep to, so it may lie over a bar — a blur
   there would be glass on glass. */
.drugbook-peek[b-ri28dopqgz] {
    background: var(--ed-paper-warm);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    max-width: 38rem;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 1.1rem 1.25rem 1rem;
}

.drugbook-peek-head[b-ri28dopqgz] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.drugbook-peek-heading[b-ri28dopqgz] { min-width: 0; }

.drugbook-peek-title[b-ri28dopqgz] {
    margin: 0;
    overflow-wrap: anywhere;
}

.drugbook-peek-class[b-ri28dopqgz] {
    color: var(--color-text-muted);
    font-family: var(--ed-ui);
    font-size: 0.85rem;
}

.drugbook-peek-close[b-ri28dopqgz] {
    flex: 0 0 auto;
    min-height: 2.2rem;
}

.drugbook-peek-mech[b-ri28dopqgz] {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
}

.drugbook-peek-species[b-ri28dopqgz] {
    display: flex;
    gap: 0.35rem;
    margin: 0.6rem 0 0.2rem;
}

.drugbook-peek-chip[b-ri28dopqgz] {
    min-height: 2.2rem;
    padding: 0 0.9rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--ed-ink-soft);
    font-family: var(--ed-ui);
    font-size: 0.88rem;
    font-weight: 600;
}

.drugbook-peek-chip--on[b-ri28dopqgz] {
    background: var(--ed-eucalypt);
    border-color: var(--ed-eucalypt);
    color: var(--ed-paper-warm);
}

.drugbook-peek-section[b-ri28dopqgz] { margin-top: 0.7rem; }

.drugbook-peek-section h4[b-ri28dopqgz] {
    margin: 0 0 0.15rem;
    font-family: var(--ed-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ed-ink-soft);
}

.drugbook-peek-notice[b-ri28dopqgz] {
    margin: 0 0 0.2rem;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
}

.drugbook-peek-facts[b-ri28dopqgz] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drugbook-peek-fact[b-ri28dopqgz] {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--ed-hairline);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.drugbook-peek-fact:last-child[b-ri28dopqgz] { border-bottom: 0; }

/* A row that names one of the patient's other medicines. */
.drugbook-peek-fact--flag[b-ri28dopqgz] {
    padding-inline: 0.55rem;
    background: var(--ed-terracotta-soft);
    box-shadow: inset 3px 0 0 var(--ed-terracotta);
    border-radius: var(--radius-sm);
}

.drugbook-peek-sp[b-ri28dopqgz],
.drugbook-peek-tag[b-ri28dopqgz] {
    display: inline-block;
    padding: 0 0.45rem;
    border-radius: var(--radius-full);
    font-family: var(--ed-ui);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    font-weight: 700;
    line-height: 1.6;
    vertical-align: 0.08em;
}

.drugbook-peek-sp[b-ri28dopqgz] {
    margin-right: 0.3rem;
    border: 1px solid var(--ed-hairline-strong);
    color: var(--ed-ink-soft);
}

.drugbook-peek-tag[b-ri28dopqgz] { margin-left: 0.3rem; }
.drugbook-peek-tag--differ[b-ri28dopqgz] { color: var(--ed-rust); border: 1px solid var(--ed-rust); }
.drugbook-peek-tag--mention[b-ri28dopqgz] { color: var(--ed-terracotta); border: 1px solid var(--ed-terracotta); }

.drugbook-peek-src[b-ri28dopqgz] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    min-height: 1.6rem;
    margin: -0.3rem 0 -0.3rem 0.15rem;
    color: var(--color-text-muted);
    vertical-align: -0.12em;
    text-decoration: none;
}

.drugbook-peek-src:hover[b-ri28dopqgz],
.drugbook-peek-src:focus-visible[b-ri28dopqgz] { color: var(--ed-terracotta); }

.drugbook-peek-empty[b-ri28dopqgz],
.drugbook-peek-note[b-ri28dopqgz] {
    margin: 0.6rem 0 0;
    font-family: var(--ed-ui);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
/* /Components/DrugNameInput.razor.rz.scp.css */
/* The field and its reference box sit on one line and wrap together, so the box is
   never separated from the name it describes — on a narrow row it drops below the
   input rather than beside a different one. */
.drug-name-field[b-h8zd12g6qg] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.drug-name-field > input[b-h8zd12g6qg] {
    flex: 1 1 8rem;
    min-width: 0;
}

/* Reference only. Deliberately NOT styled like an input: no border-radius that reads
   as a field, no white fill, no cursor that invites a click. A vet must never be able
   to mistake this for somewhere a dose goes. */
.drug-range[b-h8zd12g6qg] {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    flex: 0 1 auto;
    padding: 0.15rem 0.5rem;
    border-left: 2px solid var(--ed-hairline-strong);
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    line-height: 1.35;
    white-space: nowrap;
    cursor: help;
}

/* Small caps, so the KIND of figure is read before the figure. */
.drug-range-label[b-h8zd12g6qg] {
    font-family: var(--ed-mono);
    font-size: max(0.62rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-mute);
}

.drug-range-text[b-h8zd12g6qg] {
    font-variant-numeric: tabular-nums;
    color: var(--ed-ink);
}

/* The provenance of the figure beside it. Small and quiet — it must not compete with
   the number — but --ed-mute is a deliberate floor rather than the faintest grey that
   still renders: a disclaimer nobody can read is decoration. Wraps to its own line when
   the row is tight, which is why the box is align-items: baseline above. */
.drug-range-note[b-h8zd12g6qg] {
    font-family: var(--ed-ui);
    font-size: max(0.62rem, var(--ed-fs-floor, 0rem));
    font-style: italic;
    letter-spacing: 0.01em;
    color: var(--ed-mute);
    white-space: nowrap;
}

/* ── The four shapes, each visually distinct ─────────────────────────────────
   None of these may be mistaken for any other. An ordinary range is quiet; the
   three that are dangerous when misread are not. See FormularyReference.RangeBox. */

.drug-range--dose[b-h8zd12g6qg] {
    border-left-color: var(--ed-eucalypt);
}

/* A ceiling is not a target. Terracotta and a heavier label, so it does not read
   as the dose to aim for. */
.drug-range--ceiling[b-h8zd12g6qg] {
    border-left-color: var(--ed-terracotta);
}

.drug-range--ceiling .drug-range-label[b-h8zd12g6qg],
.drug-range--ceiling .drug-range-text[b-h8zd12g6qg] {
    color: var(--ed-terracotta);
    font-weight: 600;
}

/* Per animal: the number must not be multiplied by body weight. */
.drug-range--per-animal[b-h8zd12g6qg] {
    border-left-color: var(--ed-terracotta);
}

.drug-range--per-animal .drug-range-label[b-h8zd12g6qg] {
    color: var(--ed-terracotta);
    font-weight: 600;
}

/* Weight band: carries no digits at all, so it is the quietest of the four. */
.drug-range--band[b-h8zd12g6qg] {
    border-left-color: var(--ed-mute);
}

.drug-range--band .drug-range-text[b-h8zd12g6qg] {
    color: var(--ed-ink-soft);
    font-style: italic;
}

/* Contraindicated. The only one that is a warning rather than a reference. */
.drug-range--danger[b-h8zd12g6qg] {
    border-left-color: var(--ed-rust);
}

.drug-range--danger .drug-range-label[b-h8zd12g6qg],
.drug-range--danger .drug-range-text[b-h8zd12g6qg] {
    color: var(--ed-rust);
    font-weight: 600;
}

/* Known drug, no reviewed figure (Apoquel). Deliberately NOT the green accent: that
   accent means "here is a reviewed range", and beside the words "no reviewed dose" it
   contradicted itself. Neutral, so the absence reads as an absence. */
.drug-range--none[b-h8zd12g6qg] {
    border-left-color: var(--ed-hairline-strong);
}

.drug-range--none .drug-range-text[b-h8zd12g6qg] {
    color: var(--ed-mute);
    font-style: italic;
}

@media (max-width: 640px) {
    /* Let a long range wrap rather than push the row sideways. */
    .drug-range[b-h8zd12g6qg] { white-space: normal; }
}
/* /Components/EdDatePicker.razor.rz.scp.css */
/* House date picker. Colours come from --ed-* tokens only — the whole point of
   replacing the native control is that browser chrome could not follow the theme. */

.edp[b-17vblf8nzg] {
    position: relative;
}

.edp-trigger[b-17vblf8nzg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
    cursor: pointer;
}

.edp-placeholder[b-17vblf8nzg] {
    color: var(--ed-mute);
}

.edp[b-17vblf8nzg]  .edp-icon {
    flex: 0 0 auto;
    color: var(--ed-ink-soft);
}

/* ── The panel: WIDE and SHORT, an actions rail beside a compact grid ─────────
   The native calendar is a tall portrait block that fell below the fold on a
   720p screen; this lays the same information sideways. */
/* FIXED, not absolute: the trigger sits inside .tool-form-panel, whose
   overflow-y:auto clips anything absolutely positioned above the panel's top —
   exactly where a flipped-up panel goes when the field is high on the page.
   Coordinates are inline-styled by the component from viewport measurements at
   open; any scroll closes the picker rather than desyncing it. */
.edp-pop[b-17vblf8nzg] {
    position: fixed;
    z-index: 1200;
    display: flex;
    gap: 0.75rem;
    width: min(27rem, calc(100vw - 2rem));
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 14px;
    /* FLAT glass (2026-10-17): the floating family's edge and shadow on a near-solid
       pane, and no blur. It opens wherever its field is — flipped up under the masthead
       it would lie over the bar's glass, and glass never stacks on glass. */
    background: var(--glass-flat);
    box-shadow: inset 0 1px 0 var(--glass-float-light), 0 20px 50px var(--glass-float-shade);
}

.edp-rail[b-17vblf8nzg] {
    flex: 0 0 8.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-right: 1px solid var(--ed-hairline-strong);
    padding-right: 0.75rem;
}

.edp-nav[b-17vblf8nzg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
}

.edp-month-label[b-17vblf8nzg] {
    font-family: var(--ed-ui);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ed-ink);
    white-space: nowrap;
}

.edp-nav-btn[b-17vblf8nzg] {
    border: 1px solid var(--ed-hairline-strong);
    background: transparent;
    color: var(--ed-ink);
    border-radius: 0.4rem;
    width: 1.7rem;
    height: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.edp-nav-btn:hover[b-17vblf8nzg] {
    background: var(--ed-paper-deep);
}

.edp-rail-actions[b-17vblf8nzg] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.edp-action[b-17vblf8nzg] {
    border: 1px solid var(--ed-hairline-strong);
    background: transparent;
    color: var(--ed-ink);
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    border-radius: 0.9rem;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    text-align: center;
}

.edp-action:hover[b-17vblf8nzg] {
    background: var(--ed-paper-deep);
}

.edp-action--clear[b-17vblf8nzg] {
    color: var(--ed-mute);
}

/* ── Month grid: 7 columns, compact rows ─────────────────────────────────── */
/* Columns that may shrink below a day button's padded width (2026-10-04): at 375px the panel
   left the grid ~160px, the buttons' default padding made it 208px, and Saturday and Sunday ran
   off the screen — measured when the case page's recheck moved onto this picker (taps#14). */
.edp-grid[b-17vblf8nzg] {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    align-content: start;
}

.edp-wd[b-17vblf8nzg] {
    font-family: var(--ed-ui);
    font-size: max(0.66rem, var(--ed-fs-floor, 0rem));
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ed-mute);
    text-align: center;
    padding-bottom: 0.15rem;
}

.edp-day[b-17vblf8nzg] {
    border: none;
    background: transparent;
    color: var(--ed-ink);
    font-family: var(--ed-ui);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    border-radius: 0.35rem;
    min-height: 1.65rem;
    padding: 0;
    cursor: pointer;
}

.edp-day:hover[b-17vblf8nzg] {
    background: var(--ed-paper-deep);
}

.edp-day--out[b-17vblf8nzg] {
    color: var(--ed-mute);
    opacity: 0.55;
}

.edp-day--today[b-17vblf8nzg] {
    border: 1px solid var(--ed-eucalypt);
}

/* Self-consistent fill: surface AND ink from the same themed pair. */
.edp-day--selected[b-17vblf8nzg] {
    background: var(--ed-eucalypt);
    color: var(--ed-paper);
    font-weight: 600;
}

.edp-day--selected:hover[b-17vblf8nzg] {
    background: var(--ed-eucalypt-soft);
}

/* Touch: match the app-wide 44px floor without inflating desktop density. */
@media (max-width: 1024px), (pointer: coarse) {
    .edp-day[b-17vblf8nzg],
    .edp-nav-btn[b-17vblf8nzg],
    .edp-action[b-17vblf8nzg] {
        min-height: 40px;
    }
}
/* /Components/FilmMeasure.razor.rz.scp.css */
.fm-backdrop[b-beoc4yhynq] {
    position: fixed; inset: 0; z-index: 1050;
    background: rgba(0, 0, 0, 0.55);
    display: flex; align-items: center; justify-content: center;
}
.fm-modal[b-beoc4yhynq] {
    background: var(--ed-paper); color: var(--ed-ink);
    border: 1px solid var(--ed-hairline-strong);
    border-radius: var(--radius-md);
    width: min(96vw, 1100px); max-height: 94vh;
    display: flex; flex-direction: column;
}
.fm-header[b-beoc4yhynq] { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--ed-hairline); }
/* Themed dismiss control. Bootstrap's .btn-close paints a hardcoded black glyph
   and only inverts it under [data-bs-theme=dark]; this app themes with
   [data-theme=dark], so that glyph disappears on a dark background and the
   clinician cannot find the way out. currentColor tracks --ed-ink in both. */
.fm-close[b-beoc4yhynq] {
    background: none; border: 0; padding: 0.2rem; line-height: 0;
    color: var(--ed-ink); border-radius: var(--radius-sm); cursor: pointer;
}
.fm-close:hover[b-beoc4yhynq] { background: var(--ed-paper-deep); }
.fm-close:focus-visible[b-beoc4yhynq] { outline: 2px solid var(--ed-eucalypt-soft); outline-offset: 2px; }
.fm-close svg[b-beoc4yhynq] { display: block; }
/* Comfort view: what this button discards is a whole landmark-placement session,
   and at 0.2rem padding its target is ~22px — below the 24px pointer minimum.
   Real padding, so a tremulous hand gets both size and separation. In-file
   because scoped selectors outrank app.css. */
:root[data-comfort="on"] .fm-close[b-beoc4yhynq] { padding: 0.5rem; }
.fm-toolbar[b-beoc4yhynq] { display: flex; gap: 0.4rem; flex-wrap: wrap; padding: 0.5rem 0.9rem; align-items: center; }
.fm-zoom[b-beoc4yhynq] { margin-left: auto; display: flex; gap: 0.25rem; }
.fm-chip[b-beoc4yhynq] {
    border: 1px solid var(--ed-hairline-strong); background: var(--ed-paper-warm);
    color: var(--ed-ink); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.85rem;
}
.fm-chip--on[b-beoc4yhynq] { background: var(--ed-terracotta-soft); border-color: var(--ed-terracotta); }
.fm-chip:disabled[b-beoc4yhynq] { opacity: 0.45; }
.fm-chip--undo[b-beoc4yhynq] { margin-left: 0.5rem; }
.fm-instruction[b-beoc4yhynq] { padding: 0.25rem 0.9rem 0.5rem; font-weight: 600; color: var(--ed-eucalypt-soft); }
.fm-notice[b-beoc4yhynq] { padding: 0 0.9rem 0.5rem; color: var(--ed-ink-soft); font-size: 0.85rem; }
.fm-notice:empty[b-beoc4yhynq] { padding: 0; }
/* Shown INSTEAD of the stage when the film's true pixel dimensions are unknown:
   the overlay refuses to measure rather than assume a geometry. */
.fm-loading[b-beoc4yhynq] { padding: 1rem 0.9rem; color: var(--ed-mute); }
.fm-unavailable[b-beoc4yhynq] { padding: 1rem 0.9rem; color: var(--ed-ink); max-width: 68ch; }
.fm-unavailable p[b-beoc4yhynq] { margin-bottom: 0.5rem; }
.fm-unavailable-title[b-beoc4yhynq] { color: var(--ed-terracotta); }
.fm-unavailable .fm-hint[b-beoc4yhynq] { color: var(--ed-mute); font-size: 0.85rem; margin-bottom: 0; }
.fm-stage[b-beoc4yhynq] {
    flex: 1; overflow: hidden; min-height: 40vh; max-height: 62vh;
    background: var(--ed-paper-deep); cursor: grab; touch-action: none; position: relative;
}
.fm-pane[b-beoc4yhynq] { position: relative; width: fit-content; }
.fm-pane img[b-beoc4yhynq] { display: block; user-select: none; -webkit-user-drag: none; }
.fm-hits[b-beoc4yhynq] { position: absolute; inset: 0; }
/* Lines are visual only — clicks through them must target the svg (placement),
   never the line (whose OffsetX/Y would be line-local garbage). */
.fm-line[b-beoc4yhynq] { stroke-width: 2; vector-effect: non-scaling-stroke; fill: none; pointer-events: none; }
.fm-line--ruler[b-beoc4yhynq] { stroke: var(--ed-mint); }
.fm-line--vhs[b-beoc4yhynq]   { stroke: var(--ed-terracotta); }
.fm-line--vlas[b-beoc4yhynq]  { stroke: var(--ed-saffron); }
/* Handles are drawn in image-natural user units, so their radius is divided by
   the pane scale in markup to stay a constant SIZE on screen; the stroke needs
   the same protection, which only the lines had. The visible circle never takes
   the pointer — .fm-hit, a larger transparent circle painted over it, does, so
   the touch target does not shrink with the film. */
.fm-handle[b-beoc4yhynq] {
    fill: var(--ed-paper-warm); stroke: var(--ed-ink); stroke-width: 1.5;
    vector-effect: non-scaling-stroke; pointer-events: none;
}
.fm-handle--ruler[b-beoc4yhynq] { stroke: var(--ed-mint); }
.fm-handle--vhs[b-beoc4yhynq]   { stroke: var(--ed-terracotta); }
.fm-handle--vlas[b-beoc4yhynq]  { stroke: var(--ed-saffron); }
/* pointer-events: fill (not the visiblePainted default) so an unpainted circle
   still hit-tests its whole area. */
.fm-hit[b-beoc4yhynq] { fill: transparent; stroke: none; pointer-events: fill; cursor: move; }
.fm-results[b-beoc4yhynq] { padding: 0.6rem 0.9rem; border-top: 1px solid var(--ed-hairline); display: flex; flex-direction: column; gap: 0.4rem; }
.fm-result-card[b-beoc4yhynq] { display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.9rem; }
.fm-ref[b-beoc4yhynq] { color: var(--ed-ink-soft); font-size: 0.85rem; }

/* Provenance of the interval above it. Its own line so a long reference and a short
   caveat never run together into one sentence. --ed-mute is a floor, not the faintest
   grey that renders — a disclaimer nobody can read is decoration. Matches the note
   beside a dose figure (DrugNameInput) and a lab interval's Source cell. */
.fm-ref-note[b-beoc4yhynq] {
    display: block;
    margin-top: 0.15rem;
    font-size: max(0.7rem, var(--ed-fs-floor, 0rem));
    font-style: italic;
    color: var(--ed-mute);
}
.fm-landmarks[b-beoc4yhynq] { color: var(--ed-mute); font-size: 0.8rem; }
.fm-error[b-beoc4yhynq] { color: var(--ed-terracotta); font-size: 0.85rem; font-weight: 600; }
.fm-actions[b-beoc4yhynq] { display: flex; gap: 0.5rem; margin-top: 0.3rem; }

/* Touch floor for the chips that drive a touch-first overlay (the stage is
   touch-action: none and the drag handles get oversized .fm-hit circles for the
   same reason). Must live in this file — a global .fm-chip rule loses to
   .fm-chip[b-xxx] (ConsultStepper precedent). */
@media (max-width: 1024px), (pointer: coarse) {
    .fm-chip[b-beoc4yhynq] { min-height: 44px; }
}
/* /Components/HelpLine.razor.rz.scp.css */
/* One line plus a "?" (QoL 2026-10-04, text#11). The "?" is a small ringed glyph in the
   line's own colour; its button is the hit area. */

.help-line-text[b-myx3e7lq4q] {
    margin-bottom: 0.5rem;
}

.help-line-more[b-myx3e7lq4q] {
    margin-top: -0.25rem;
    margin-bottom: 0.75rem;
}

.help-line-toggle[b-myx3e7lq4q] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    min-height: 1.75rem;
    margin: -0.35rem 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ed-eucalypt);
    vertical-align: middle;
    cursor: pointer;
}

.help-line-toggle:focus-visible[b-myx3e7lq4q] {
    outline: 2px solid var(--ed-eucalypt);
    outline-offset: 1px;
    border-radius: 999px;
}

.help-line-q[b-myx3e7lq4q] {
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-family: var(--ed-ui);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    font-weight: 700;
    line-height: 1;
}

.help-line-toggle[aria-expanded="true"] .help-line-q[b-myx3e7lq4q] {
    border-width: 2px;
}

/* The 44px touch target, without growing the line it sits in: the negative margins keep
   its line box to the text's height. */
@media (pointer: coarse) {
    .help-line-toggle[b-myx3e7lq4q] {
        min-width: 44px;
        min-height: 44px;
        margin: -0.75rem -0.35rem;
    }
}
/* /Components/MedicationQuickPicks.razor.rz.scp.css */
/* Theme tokens only. A hardcoded surface colour here does not flip under
   [data-theme="dark"] while the INHERITED text colour does — which is how these cards
   ended up with near-white drug names on a near-white background, legible only on hover
   (the one rule that already used a variable). Pair every surface with its own ink. */
.quickpicks[b-yhbcqmsid5] { margin-bottom: 1rem; }
.quickpicks-loading[b-yhbcqmsid5], .quickpicks-none[b-yhbcqmsid5] {
    padding: 0.5rem 0.75rem;
    background: var(--ed-paper-deep);
    border-radius: 4px;
    color: var(--ed-mute);
    font-size: 0.9rem;
}
.quickpicks-grid[b-yhbcqmsid5] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.quickpick-card[b-yhbcqmsid5] {
    text-align: left;
    border: 1px solid var(--ed-hairline);
    background: var(--ed-paper-warm);
    color: var(--ed-ink);
    border-radius: 6px;
    padding: 0.6rem;
    cursor: pointer;
    transition: border-color 0.18s ease-out, background 0.18s ease-out;
}
/* Card intensity of the paper-lift grammar: color/border only — cards don't move.
   Resting is now paper-warm, so hover shades toward paper-deep rather than away from it. */
.quickpick-card:hover[b-yhbcqmsid5] { border-color: var(--ed-hairline-strong); background: var(--ed-paper-deep); }
.quickpick-head[b-yhbcqmsid5] { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem; }
.quickpick-meta[b-yhbcqmsid5] { color: var(--ed-mute); font-size: 0.8rem; }
.quickpick-rationale[b-yhbcqmsid5] { color: var(--ed-ink-soft); font-size: 0.85rem; margin-top: 0.25rem; }
.quickpick-add[b-yhbcqmsid5] { color: var(--ed-terracotta); font-size: 0.85rem; margin-top: 0.4rem; font-weight: 500; }

/* The picked card gives itself up — scale+fade 140ms; unmounted by the
   component 200ms later so the grid closes the gap. */
.quickpick-card--consumed[b-yhbcqmsid5] {
    transform: scale(0.94);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.14s ease-in, opacity 0.14s ease-in;
}

@media (prefers-reduced-motion: reduce) {
    .quickpick-card--consumed[b-yhbcqmsid5] { transition: none; }
}

/* Formulary reference under a quick-pick. Theme tokens only — a hardcoded
   surface with inherited ink is what made drug names invisible in dark mode. */
.quickpick-formulary[b-yhbcqmsid5] {
    margin-top: .35rem;
    font-size: max(.78rem, var(--ed-fs-floor, 0rem));
    line-height: 1.35;
    color: var(--ed-ink-soft);
    border-left: 2px solid var(--ed-terracotta);
    padding-left: .5rem;
    text-align: left;
}

/* A refusal reads quieter than a dose, but still legible. --ed-ink-soft flips
   with the theme; an undefined token here would silently drop the border. */
.quickpick-formulary--none[b-yhbcqmsid5] {
    font-style: italic;
    border-left-color: var(--ed-ink-soft);
}

/* Provenance of the figure above. Shares its wording with the range box beside a drug
   name and with MedicationRow's calculator line — see FormularyReference.FigureNotice,
   which is the single source of the text. The rule is duplicated per component rather
   than hoisted into app.css because both call sites are scoped stylesheets and a global
   would be reachable by anything; the WORDING is what must not drift, and that is a
   constant. --ed-mute is a floor, not the faintest grey that renders: a disclaimer
   nobody can read is decoration. */
.formulary-figure-note[b-yhbcqmsid5] {
    display: block;
    margin-top: .2rem;
    font-size: max(.68rem, var(--ed-fs-floor, 0rem));
    font-style: italic;
    color: var(--ed-mute);
}

/* Comfort view: fine print earns upright letters — see the matching rule in
   MedicationRow.razor.css. In-file because scoped selectors outrank app.css. */
:root[data-comfort="on"] .formulary-figure-note[b-yhbcqmsid5] {
    font-style: normal;
}
/* /Components/MedicationRow.razor.rz.scp.css */
/* Theme tokens only — see the note in MedicationQuickPicks.razor.css. */
.med-row[b-gq2wgq7m02] {
    border: 1px solid var(--ed-hairline);
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: var(--ed-paper-warm);
    color: var(--ed-ink);
}
/* flex-START, not center. The drug-name field is taller than every other control on
   this row — its reference range sits under the input — and centring made that one item
   ride HIGH against Dose, Route, Frequency and Duration, so the boxes visibly stopped
   lining up. Top-aligning puts every input's top edge on one line and lets the range
   hang below the name it belongs to. */
/* A row added from "Mentioned in notes" (2026-09-27) says where its words came from. */
.med-row-noted[b-gq2wgq7m02] {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: var(--ed-ink-soft);
    overflow-wrap: anywhere;
}
.med-row-line[b-gq2wgq7m02] { display: flex; gap: 0.4rem; align-items: flex-start; flex-wrap: wrap; }

/* The drug name is a child component now (DrugNameInput), so the flex item on this row
   is its wrapper rather than the <input> — and ::deep is the only way a scoped rule can
   reach a child's markup. `.med-name` still rides along on the input itself as a hook,
   but sizing it there would size the wrong box: the wrapper holds the input AND the
   reference range beside it, which is why the basis is wider than the old 180px. */
[b-gq2wgq7m02] .drug-name-field { flex: 3 1 300px; }
/* Room for a whole dose phrase. At 1 1 90px beside the 3:1 name the box stayed near 100px
   on a desktop, and a dose taken from the notes ("0.1 mg/kg PO q24h for 7 days") read
   "0.1 mg/kg P" under a line asking the vet to check it (sweep 2026-10-15, runtime#10).
   Grown here, not by shrinking the name: its 300px holds the formulary range box beside
   the input. The line already wraps; phone mode gives the dose the full width
   (css/phone/notes-meds.css).
   120px, not 160px: the 1400px desktop runtime#10 measured had only ~66px spare on the
   line, so a 160px basis (+70) wrapped Duration and the row's buttons onto a second line on
   every row. +30 still fits there, and the 2 share takes the rest (review of sweep
   2026-10-15 meds-forms, findings 2 and 10; arithmetic from that measurement, not a
   browser check). The full dose is on hover either way. */
.med-dose[b-gq2wgq7m02] { flex: 2 1 120px; }
.med-route[b-gq2wgq7m02] { flex: 0 0 110px; }
.med-freq[b-gq2wgq7m02], .med-duration[b-gq2wgq7m02] { flex: 1 1 110px; }
.med-notes[b-gq2wgq7m02] { width: 100%; font-size: 0.85rem; }
.med-calc[b-gq2wgq7m02] {
    margin-top: 0.5rem; padding: 0.5rem;
    background: var(--ed-paper-deep); border-radius: 4px;
}
.med-calc-line[b-gq2wgq7m02] { display: flex; gap: 0.5rem; align-items: end; flex-wrap: wrap; }
.med-calc-line label[b-gq2wgq7m02] { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--ed-mute); }
.med-calc-result[b-gq2wgq7m02] { font-weight: 600; padding: 0 0.5rem; }
/* Said where the arithmetic would be for a per-animal or weight-band dose (sweep 2026-10-15,
   meds-drugbook-forms#1): the calculator multiplied those by weight. */
.med-calc-basis[b-gq2wgq7m02] {
    margin: 0;
    font-size: max(.85rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink-soft);
}

/* Fresh row — enters 60ms after the chip collapses (perceived transfer without
   a fragile flying element), background flash settles over 600ms. */
.med-row--fresh[b-gq2wgq7m02] {
    animation: med-row-enter-b-gq2wgq7m02 0.24s cubic-bezier(0.22, 1, 0.36, 1) 60ms backwards,
               med-row-flash-b-gq2wgq7m02 0.6s linear 60ms backwards;
}

@keyframes med-row-enter-b-gq2wgq7m02 {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

@keyframes med-row-flash-b-gq2wgq7m02 {
    from { background-color: rgba(58, 124, 92, 0.08); }
    to   { background-color: var(--ed-paper-warm); }
}

@keyframes med-row-fadein-b-gq2wgq7m02 {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .med-row--fresh[b-gq2wgq7m02] { animation: med-row-fadein-b-gq2wgq7m02 0.15s ease-out backwards; }
}

/* Formulary reference beside the calculator, where the vet types the mg/kg.
   Theme token only — a hardcoded colour would not flip in dark mode. */
.med-calc-formulary[b-gq2wgq7m02] {
    font-size: max(.78rem, var(--ed-fs-floor, 0rem));
    line-height: 1.35;
    color: var(--ed-ink-soft);
    margin-bottom: .4rem;
}

/* Care setting — given here vs dispensed. Deliberately quiet: it carries a default
   that is right most of the time, so it should read as a statement of fact the vet
   can correct, not as an unanswered question demanding attention. */
.med-care-setting[b-gq2wgq7m02] {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
}

.med-care-btn[b-gq2wgq7m02] {
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--ed-hairline);
    background: transparent;
    color: var(--ed-ink-soft);
    font-size: max(0.75rem, var(--ed-fs-floor, 0rem));
    line-height: 1.5;
    cursor: pointer;
}

.med-care-btn:hover[b-gq2wgq7m02] { border-color: var(--ed-ink-soft); }

.med-care-btn--on[b-gq2wgq7m02] {
    background: var(--ed-paper-deep);
    border-color: var(--ed-ink-soft);
    color: var(--ed-ink);
    font-weight: 600;
}

/* Marks a value nobody has stated — derived from the route and still assumed. */
.med-care-hint[b-gq2wgq7m02] {
    color: var(--ed-mute);
    font-style: italic;
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
}

/* See the matching note in MedicationQuickPicks.razor.css — same class, same wording
   from FormularyReference.FigureNotice, scoped per component. */
.formulary-figure-note[b-gq2wgq7m02] {
    display: block;
    margin-top: .15rem;
    font-size: max(.68rem, var(--ed-fs-floor, 0rem));
    font-style: italic;
    color: var(--ed-mute);
}

/* Comfort view: fine print earns upright letters. Italic on small on muted is
   three legibility penalties on the caveat that governs a dose figure; the size
   is floored by --ed-fs-floor, and here the slant goes too. Muted ink alone
   keeps the de-emphasis. In-file because scoped selectors outrank app.css. */
:root[data-comfort="on"] .med-care-hint[b-gq2wgq7m02],
:root[data-comfort="on"] .formulary-figure-note[b-gq2wgq7m02] {
    font-style: normal;
}

/* Touch floor lives here, not in app.css's 44px passes — a global rule loses to
   .med-care-btn[b-xxx] on specificity (the ConsultStepper precedent). ~24px at
   desktop density, and this toggle decides whether a medication records as
   given-in-clinic vs sent-home, which feeds the owner handout (2026-09-03 sweep). */
@media (max-width: 1024px), (pointer: coarse) {
    .med-care-btn[b-gq2wgq7m02] {
        min-height: 44px;
        padding-inline: 0.9rem;
    }
}

/* The row's Drug Book link (2026-09-24): with the row's tools, after every field, so Tab
   from the name always lands on the Dose; never wrapping its own label. Only present when
   the Drug Book has a card for the drug. */
.med-drugbook[b-gq2wgq7m02] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
/* /Components/MoveRecordsPanel.razor.rz.scp.css */
/* Move records to another patient — the inline panel under a CaseView timeline entry.
   It only ever renders inside .cv-page, so it inks with CaseView's --cv-* palette
   (custom properties inherit through the component boundary; scoped classes do not,
   which is why nothing here reuses .cv-pill). Every row is a 44px touch target and
   everything wraps: the panel has to work at 360px inside the timeline column. */

.mv-panel[b-762ezrcl21] {
    border: 1px solid var(--cv-hairline-strong);
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    margin-top: 0.6rem;
    max-width: 100%;
    box-sizing: border-box;
    font-family: "Manrope", system-ui, sans-serif;
}

.mv-heading[b-762ezrcl21] {
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cv-ink);
    margin: 0 0 0.5rem;
}

.mv-records[b-762ezrcl21],
.mv-dests[b-762ezrcl21] {
    border: 0;
    padding: 0;
    margin: 0 0 0.75rem;
    min-width: 0;
}

/* Bootstrap's reboot floats legends at 1.5rem; this is a small caps label. */
.mv-legend[b-762ezrcl21] {
    float: none;
    width: auto;
    font-family: "JetBrains Mono", monospace;
    font-size: max(0.66rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cv-ink-soft);
    margin: 0 0 0.3rem;
    padding: 0;
}

.mv-record[b-762ezrcl21],
.mv-dest[b-762ezrcl21] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 0.55rem;
    row-gap: 0.1rem;
    min-height: 2.75rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--cv-hairline);
    cursor: pointer;
}

.mv-record input[b-762ezrcl21],
.mv-dest input[b-762ezrcl21] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    flex: none;
    accent-color: var(--cv-eucalypt);
}

.mv-record-title[b-762ezrcl21],
.mv-dest-name[b-762ezrcl21] {
    color: var(--cv-ink);
    font-weight: 600;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    min-width: 0;
}

/* A drug list or certificate: listed so the vet sees it is not coming along, but it
   can't be ticked (review finding 1, 2026-09-27). */
.mv-record--fixed[b-762ezrcl21] {
    cursor: not-allowed;
}

.mv-record--fixed .mv-record-title[b-762ezrcl21] {
    color: var(--cv-ink-soft);
    font-weight: 500;
}

.mv-record-when[b-762ezrcl21],
.mv-dest-meta[b-762ezrcl21] {
    color: var(--cv-mute);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    overflow-wrap: anywhere;
    min-width: 0;
}

.mv-search[b-762ezrcl21] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
    min-height: 2.75rem;
    border: 1px solid var(--cv-hairline-strong);
    border-radius: 6px;
    background: transparent;
    color: var(--cv-ink);
    margin-bottom: 0.25rem;
}

.mv-search:focus[b-762ezrcl21] {
    outline: none;
    border-color: var(--cv-eucalypt);
}

.mv-actions[b-762ezrcl21] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mv-btn[b-762ezrcl21] {
    font-family: "Manrope", system-ui, sans-serif;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    font-weight: 600;
    min-height: 2.75rem;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--cv-hairline-strong);
    background: transparent;
    color: var(--cv-ink-soft);
    cursor: pointer;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.mv-btn:hover[b-762ezrcl21] {
    border-color: var(--cv-ink);
    color: var(--cv-ink);
}

.mv-btn--primary[b-762ezrcl21] {
    background: var(--cv-eucalypt);
    border-color: var(--cv-eucalypt);
    color: var(--cv-paper);
}

.mv-btn--primary:hover[b-762ezrcl21] {
    background: var(--cv-ink);
    border-color: var(--cv-ink);
    color: var(--cv-paper);
}

.mv-btn:disabled[b-762ezrcl21] {
    opacity: 0.55;
    cursor: not-allowed;
}

.mv-hint[b-762ezrcl21] {
    color: var(--cv-mute);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    margin: 0.4rem 0 0;
}

.mv-blocked[b-762ezrcl21] {
    color: var(--cv-rust);
    font-size: 0.9rem;
    margin: 0 0 0.6rem;
}
/* /Components/NotedMedicationsCard.razor.rz.scp.css */
/* "Mentioned in notes, not on the list" (workflow helpers F3, 2026-09-27). Tokens only;
   rows wrap their buttons under the text at phone width rather than squeezing either. */
.noted-meds[b-ff517txwzh] {
    margin: 0.5rem 0 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--ed-hairline);
    border-radius: 6px;
    background: var(--ed-paper-deep);
    color: var(--ed-ink);
    min-width: 0;
}

.noted-meds-title[b-ff517txwzh] {
    margin: 0 0 0.4rem;
    font-family: var(--ed-ui);
    font-size: 0.9rem;
    font-weight: 700;
}

.noted-meds-list[b-ff517txwzh] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.noted-med[b-ff517txwzh] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--ed-hairline);
}

.noted-med:first-child[b-ff517txwzh] { border-top: 0; }

.noted-med-main[b-ff517txwzh] {
    flex: 1 1 14rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.noted-med-name[b-ff517txwzh] { font-weight: 600; }

.noted-med-as[b-ff517txwzh] {
    margin-left: 0.35rem;
    font-size: 0.85rem;
    color: var(--ed-ink-soft);
}

.noted-med-dose[b-ff517txwzh] { font-size: 0.9rem; }
.noted-med-dose--none[b-ff517txwzh] { font-style: italic; color: var(--ed-ink-soft); }

.noted-med-src[b-ff517txwzh] {
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink-soft);
}

.noted-med-actions[b-ff517txwzh] {
    display: flex;
    gap: 0.4rem;
    flex: 0 0 auto;
}

.noted-meds-error[b-ff517txwzh] {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: var(--ed-rust);
}

.noted-meds-note[b-ff517txwzh] {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: var(--ed-ink-soft);
}

@media (max-width: 1024px), (pointer: coarse) {
    .noted-med-actions .btn[b-ff517txwzh] { min-height: 44px; }
}

/* What the note said around the name (review F34 M3, 2026-09-27): quiet, but read before Add. */
.noted-med-context[b-ff517txwzh] {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--ed-ink-soft);
}

/* A name two cards share: the vet says which before Add (review F34 M2). */
.noted-med-which[b-ff517txwzh] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.4rem;
    margin: 0.2rem 0;
}

.noted-med-which-q[b-ff517txwzh] {
    font-family: var(--ed-ui);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 1024px), (pointer: coarse) {
    .noted-med-which .btn[b-ff517txwzh] { min-height: 44px; }
}
/* /Components/NotedMedicationsChip.razor.rz.scp.css */
/* CaseView's "N medications mentioned in notes aren't on the list" (2026-09-27). The
   quick-link pill's shape, in the global tokens: this is its own component, and CaseView's
   private --cv-* palette is not guaranteed to reach it. Terracotta ink, CaseView's working
   accent, on whatever the sidebar is drawn on. */
.noted-chip[b-toh7u57h9u] {
    display: inline-block;
    max-width: 100%;
    margin-top: 0.5rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--ed-terracotta);
    border-radius: 999px;
    background: transparent;
    color: var(--ed-terracotta);
    font-family: var(--ed-ui);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.noted-chip:hover[b-toh7u57h9u],
.noted-chip:focus-visible[b-toh7u57h9u] { text-decoration: underline; }

@media (max-width: 1024px), (pointer: coarse) {
    .noted-chip[b-toh7u57h9u] { min-height: 44px; }
}
/* /Components/NoteSourcePicker.razor.rz.scp.css */
/* Which records this note is drafted from.

   Quiet by default. On most cases there is one transcript and nothing to decide, so this
   must not look like a form that needs filling in before the vet can work. */

.note-sources[b-11z9qrr18h] {
    border: 1px solid var(--color-green-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-solid);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.note-sources--single[b-11z9qrr18h] {
    padding: 0.5rem 0.85rem;
    font-size: max(0.84rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
}

.note-sources-head[b-11z9qrr18h] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid var(--color-green-border);
}

.note-sources-title[b-11z9qrr18h] {
    font-weight: 600;
    font-size: max(0.86rem, var(--ed-fs-floor, 0rem));
}

.note-sources-count[b-11z9qrr18h] {
    font-size: max(0.76rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
}

.note-sources-group + .note-sources-group[b-11z9qrr18h] {
    border-top: 1px solid var(--color-green-border);
}

/* Why the older recordings start unticked when a reviewed note carries forward.
   Load-bearing: without it, an unticked morning transcript reads as records being
   dropped — the very defect this component exists to end. */
.note-sources-hint[b-11z9qrr18h] {
    padding: 0.15rem 0.85rem 0.35rem;
    font-size: max(0.76rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
}

/* The one line that stops a vet mistaking the app's own earlier output for a record of
   what happened in the room. */
.note-sources-subhead[b-11z9qrr18h] {
    padding: 0.4rem 0.85rem 0.2rem;
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--color-text-muted);
}

.note-source-row[b-11z9qrr18h] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
}

.note-source-row:hover[b-11z9qrr18h] {
    background: var(--color-green-bg);
}

.note-source-main[b-11z9qrr18h] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.5rem;
    min-width: 0;
}

.note-source-label[b-11z9qrr18h] {
    font-weight: 600;
    font-size: max(0.84rem, var(--ed-fs-floor, 0rem));
}

.note-source-time[b-11z9qrr18h] {
    font-size: max(0.76rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
}

/* First line of the record, so a vet recognises "the lab call at 14:30" without
   opening anything. */
.note-source-peek[b-11z9qrr18h] {
    flex-basis: 100%;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* "Today's consult summaries" (round 8, 2026-11-08): one press for a patient seen several
   times today. Under the head, above the rows it ticks; its reason beside it when it is off. */
.note-sources-today-row[b-11z9qrr18h] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    padding: 0.45rem 0.85rem;
    border-bottom: 1px solid var(--color-green-border);
}

.note-sources-today[b-11z9qrr18h] {
    font-family: var(--ed-ui);
    font-size: max(0.8rem, var(--ed-fs-floor, 0rem));
}

.note-sources-today-hint[b-11z9qrr18h] {
    font-size: max(0.76rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
}

/* A thumb's height on a phone, where the picker sits in the Notes sheet. */
[data-phone="on"] .note-sources-today[b-11z9qrr18h] {
    min-height: 44px;
    padding-inline: 0.85rem;
}
/* /Components/NoteTemplateManager.razor.rz.scp.css */
/* The "Manage templates…" panel (2026-10-18). Tokens only — see the CSS-literals memory. */

.ntm[b-63glun2psh] {
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.85rem;
    background: var(--ed-paper);
    color: var(--ed-ink);
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 12px;
}

.ntm-head[b-63glun2psh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ntm-title[b-63glun2psh] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.ntm-lead[b-63glun2psh] {
    margin: 0.35rem 0 0.6rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.ntm-format + .ntm-format[b-63glun2psh] {
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--ed-hairline);
}

.ntm-format-head[b-63glun2psh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.ntm-format-name[b-63glun2psh] {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.ntm-list[b-63glun2psh] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ntm-row[b-63glun2psh] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--ed-hairline);
}

.ntm-row:last-child[b-63glun2psh] {
    border-bottom: none;
}

.ntm-row-main[b-63glun2psh] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    min-width: 0;
}

.ntm-name[b-63glun2psh] {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ntm-tag[b-63glun2psh],
.ntm-inuse[b-63glun2psh] {
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--ed-hairline-strong);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.ntm-tag-practice[b-63glun2psh] {
    color: var(--ed-ink);
    font-weight: 600;
}

.ntm-inuse[b-63glun2psh] {
    background: var(--color-green-bg);
    color: var(--color-text);
}

.ntm-edited[b-63glun2psh] {
    flex-basis: 100%;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
}

.ntm-actions[b-63glun2psh] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.ntm-confirm[b-63glun2psh] {
    font-size: 0.85rem;
}

/* Phone mode: every action a 44px target, and the row's actions on their own line. */
:root[data-phone="on"] .ntm-actions .btn[b-63glun2psh],
:root[data-phone="on"] .ntm-format-head .btn[b-63glun2psh],
:root[data-phone="on"] .ntm-head .btn[b-63glun2psh] {
    min-height: 44px;
}

:root[data-phone="on"] .ntm-actions[b-63glun2psh] {
    flex-basis: 100%;
}
/* /Components/NoteTemplatePicker.razor.rz.scp.css */
/* The SOAP page's Template dropdown (round 8, 2026-11-08). Tokens only; flat glass (no
   blur — it can open over the floating masthead's glass, and glass never stacks on glass). */

.ntp[b-51xddf45kx] {
    position: relative;
    min-width: 0;
}

/* Looks like the Note type select beside it (Bootstrap's .form-select draws the chevron);
   text-align and the ellipsis because a button centres and wraps where a select does not. */
.ntp-trigger[b-51xddf45kx] {
    width: 100%;
    min-width: 11rem;
    max-width: 18rem;
    text-align: left;
    font-family: var(--ed-ui);
    font-style: normal;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.ntp-current[b-51xddf45kx] {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The outside click. Over the page, under the list. */
.ntp-backdrop[b-51xddf45kx] {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: transparent;
}

.ntp-menu[b-51xddf45kx] {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 70;
    min-width: max(100%, 15rem);
    max-width: 22rem;
    max-height: min(26rem, 60vh);
    overflow-y: auto;
    padding: 0.3rem 0;
    background: var(--glass-flat);
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 var(--glass-float-light), 0 20px 50px var(--glass-float-shade);
}

.ntp-group + .ntp-group[b-51xddf45kx] {
    border-top: 1px solid var(--ed-hairline);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

.ntp-group-label[b-51xddf45kx] {
    padding: 0.35rem 1rem 0.2rem;
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-mute);
}

.ntp-option[b-51xddf45kx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 40px;
    padding: 0.45rem 1rem;
    border: none;
    background: transparent;
    font-family: var(--ed-ui);
    font-style: normal;
    font-size: 0.95rem;
    color: var(--ed-ink);
    text-align: left;
    cursor: pointer;
}

.ntp-option:hover[b-51xddf45kx],
.ntp-option:focus-visible[b-51xddf45kx] {
    background: var(--ed-paper-deep);
    outline: none;
}

/* The note's template, as the mockup draws it: the dark row, its text light. */
.ntp-option--selected[b-51xddf45kx],
.ntp-option--selected:hover[b-51xddf45kx],
.ntp-option--selected:focus-visible[b-51xddf45kx] {
    background: var(--ed-eucalypt);
    color: var(--ed-paper);
}

.ntp-option-name[b-51xddf45kx] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ntp-badge[b-51xddf45kx] {
    flex: 0 0 auto;
    font-size: max(0.8rem, var(--ed-fs-floor, 0rem));
    white-space: nowrap;
}

/* A thumb's height on a phone. */
[data-phone="on"] .ntp-option[b-51xddf45kx] {
    min-height: 48px;
    font-size: 1rem;
}

[data-phone="on"] .ntp-trigger[b-51xddf45kx] {
    max-width: none;
    min-height: 44px;
}
/* /Components/PasteToRead.razor.rz.scp.css */
/* Paste-to-read affordance. Reads as an invitation rather than a control: there is nothing to
   click, the gesture is Ctrl+V, so the dashed edge says "target" without implying a button.

   Colours come from the --ed-* tokens only. A frozen literal here would survive the build and
   every test — there is no rendering coverage — and would then be wrong in one of the two
   themes, which is how the 2026-07-19 and 2026-07-25 sweeps found their inversions. */

.paste-read[b-weviok0ajg] {
    border: 1px dashed var(--ed-hairline-strong);
    border-radius: 10px;
    background: var(--ed-paper-warm);
    padding: 0.75rem 0.9rem;
}

.paste-read-idle[b-weviok0ajg] {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

/* ::deep because the class is handed to <Icon>, so it lands on THAT component's svg. Blazor
   stamps the scope attribute on this component's own markup only, so the plain selector would
   compile to .paste-read-icon[b-xxx] and never match anything. */
.paste-read[b-weviok0ajg]  .paste-read-icon {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    color: var(--ed-eucalypt);
}

.paste-read-title[b-weviok0ajg] {
    font-family: var(--ed-ui);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ed-ink);
}

.paste-read-hint[b-weviok0ajg] {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--ed-ink-soft);
    margin-top: 0.15rem;
}

/* Phone mode has no Win+Shift+S and no Ctrl+V — the photo button below is the
   whole affordance there, so pure desktop-speak comes off the screen. */
[data-phone="on"] .paste-read-hint[b-weviok0ajg] { display: none; }

.paste-read-hint kbd[b-weviok0ajg] {
    font-family: var(--ed-mono);
    font-size: max(0.76rem, var(--ed-fs-floor, 0rem));
    padding: 0.05rem 0.3rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 4px;
    background: var(--ed-paper);
    color: var(--ed-ink);
}

/* ── choose-a-photo (the phone path) ─────────────────────────────────────── */

.paste-read-files[b-weviok0ajg] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
}

.paste-read-file[b-weviok0ajg] {
    display: inline-block;
    margin-top: 0.4rem;
    cursor: pointer;
}

/* "Take a photo" (round 8, 2026-11-08): the rear camera in one tap. Off on a desktop — a
   webcam pointed at the vet is not how a lab printout gets in, and the box there stays
   exactly as it was — and on wherever a touch screen or phone mode says a camera is the
   natural way in. A thumb's height, like the phone's other buttons. */
.paste-read-camera[b-weviok0ajg] {
    display: none;
}

@media (pointer: coarse) {
    .paste-read-camera[b-weviok0ajg] {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

[data-phone="on"] .paste-read-camera[b-weviok0ajg] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* A button since round 10 (2026-11-12): the label carries the app's .btn .btn-outline-primary,
   so its colours, border and hover are the page's other outline buttons' — nothing restated
   here but the size of the target. The text inside drops the link look and takes the
   button's colour, hover included. */
.paste-read-camera[b-weviok0ajg] {
    justify-content: center;
    padding: 0.45rem 1.1rem;
}

.paste-read-camera .paste-read-file-btn[b-weviok0ajg],
.paste-read-camera:hover .paste-read-file-btn[b-weviok0ajg] {
    font-weight: 600;
    font-size: 0.9rem;
    color: inherit;
    text-decoration: none;
}

/* The file input inside is visually hidden, so the button shows the keyboard's focus. */
.paste-read-camera:focus-within[b-weviok0ajg] {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ::deep because InputFile is its own component — the <input> it renders never
   gets THIS component's scope attribute. Visually hidden rather than display:none
   so the control stays focusable for keyboard users; the label text is the UI. */
.paste-read-file[b-weviok0ajg]  input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.paste-read-file-btn[b-weviok0ajg] {
    font-family: var(--ed-ui);
    font-size: 0.82rem;
    color: var(--ed-eucalypt);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.paste-read-file:not(.paste-read-camera):hover .paste-read-file-btn[b-weviok0ajg] { color: var(--ed-ink); }

/* ── working ─────────────────────────────────────────────────────────────── */

.paste-read-working[b-weviok0ajg] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.paste-read-stage[b-weviok0ajg] {
    font-family: var(--ed-ui);
    font-size: 0.86rem;
    color: var(--ed-ink);
}

.paste-read-track[b-weviok0ajg] {
    height: 4px;
    border-radius: 2px;
    background: var(--ed-hairline);
    overflow: hidden;
}

.paste-read-fill[b-weviok0ajg] {
    height: 100%;
    background: var(--ed-eucalypt);
    /* Recognition progress arrives in coarse jumps from the engine; easing the width stops it
       reading as a stall between them. */
    transition: width 220ms ease-out;
}

.paste-read-firstrun[b-weviok0ajg] {
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-mute);
}
/* /Components/PatientMismatchNotice.razor.rz.scp.css */
/* The wrong-patient notice (workflow helpers F1, 2026-09-27). Calm: a tinted card with
   a rail, the same register as the consent card, not an alert. Buttons are 44px touch
   targets and wrap under each other on a phone. */

.pm-notice[b-nbb389w6yd] {
    background: var(--ed-paper-warm);
    color: var(--ed-ink);
    border-left: 3px solid var(--ed-terracotta);
    padding: 0.7rem 0.9rem;
    margin: 0 0 0.9rem;
    max-width: 100%;
    box-sizing: border-box;
}

.pm-text[b-nbb389w6yd] {
    font-family: var(--ed-ui);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    overflow-wrap: anywhere;
}

.pm-actions[b-nbb389w6yd] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pm-btn[b-nbb389w6yd] {
    font-family: var(--ed-ui);
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 2.75rem;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--ed-hairline-strong);
    background: transparent;
    color: var(--ed-ink);
    cursor: pointer;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.pm-btn:hover[b-nbb389w6yd] {
    border-color: var(--ed-ink);
}

.pm-btn--primary[b-nbb389w6yd] {
    background: var(--ed-eucalypt);
    border-color: var(--ed-eucalypt);
    color: var(--ed-paper);
}

.pm-btn--primary:hover[b-nbb389w6yd] {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: var(--ed-paper);
}

.pm-btn:disabled[b-nbb389w6yd] {
    opacity: 0.55;
    cursor: not-allowed;
}

.pm-hint[b-nbb389w6yd] {
    font-family: var(--ed-ui);
    color: var(--ed-mute);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    margin: 0.5rem 0 0;
}
/* /Components/PrescribingInteractions.razor.rz.scp.css */
/* The interaction check under the prescription (workflow helpers F4, 2026-09-27).
   Tokens only, and the Drug Book quick look's marking: the terracotta wash and rule it
   draws on a flagged row, so a hit reads the same on either surface. */
.rx-check[b-j800fes9sm] {
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--ed-hairline);
    border-radius: 6px;
    min-width: 0;
}

.rx-check-title[b-j800fes9sm] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.4rem;
    font-family: var(--ed-ui);
    font-size: 0.9rem;
    font-weight: 700;
}

.rx-check-list[b-j800fes9sm] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.rx-check-hit[b-j800fes9sm] {
    padding: 0.4rem 0.55rem;
    background: var(--ed-terracotta-soft);
    box-shadow: inset 3px 0 0 var(--ed-terracotta);
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.rx-check-pair[b-j800fes9sm] { font-size: 0.85rem; }
.rx-check-fact[b-j800fes9sm] { margin: 0.15rem 0; }

.rx-check-meta[b-j800fes9sm] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
}

.rx-check-src[b-j800fes9sm] { color: var(--ed-ink-soft); }

.rx-check-sp[b-j800fes9sm],
.rx-check-tag[b-j800fes9sm] {
    display: inline-block;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-family: var(--ed-ui);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    font-weight: 700;
    line-height: 1.6;
}

.rx-check-sp[b-j800fes9sm] { margin-right: 0.3rem; border: 1px solid var(--ed-hairline-strong); }
.rx-check-tag[b-j800fes9sm] { color: var(--ed-terracotta); border: 1px solid var(--ed-terracotta); }

/* A button dressed as the page's inline Drug Book link. */
.rx-check-open[b-j800fes9sm] {
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    font-weight: 600;
    color: var(--ed-terracotta);
}

.rx-check-open:hover[b-j800fes9sm],
.rx-check-open:focus-visible[b-j800fes9sm] { text-decoration: underline; }

.rx-check-line[b-j800fes9sm],
.rx-check-note[b-j800fes9sm] {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: var(--ed-mute);
}

@media (max-width: 1024px), (pointer: coarse) {
    .rx-check-open[b-j800fes9sm] { min-height: 44px; }
}
/* /Components/RecordingForBanner.razor.rz.scp.css */
/* "Recording for Bella · Labrador · Jane Smith" — the first seconds of every recording
   (workflow helpers F1, 2026-09-27). Large on purpose: it has to be read at a glance from
   across the consult table. Inks with the editorial --ed-* palette the consult page uses,
   on the warm surface the consent card sits on. Wraps at any width — a long owner name
   must never push the page sideways on a phone. */

.rec-for[b-g9nrylr6kc] {
    background: var(--ed-paper-warm);
    color: var(--ed-ink);
    border-left: 4px solid var(--ed-terracotta);
    padding: 0.75rem 1rem;
    margin-bottom: 0.9rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.rec-for-label[b-g9nrylr6kc] {
    display: block;
    font-family: var(--ed-mono);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ed-terracotta);
    margin-bottom: 0.2rem;
}

.rec-for-who[b-g9nrylr6kc] {
    display: block;
    font-family: var(--ed-display);
    font-size: 1.9rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.rec-for-name[b-g9nrylr6kc] {
    font-weight: 600;
}

.rec-for-sep[b-g9nrylr6kc],
.rec-for-part[b-g9nrylr6kc] {
    font-weight: 400;
}
/* /Components/SecurityNavCount.razor.rz.scp.css */
/* The "needs attention" count beside Security in the Admin menu. Same shape and tokens
   as the Recheck count on Cases (.cases-filter-badge): rust fill, paper ink. */
.sec-nav-count[b-hm8s61eary] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    margin-left: 0.4rem;
    border-radius: 999px;
    background: var(--ed-rust);
    color: var(--ed-paper);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    vertical-align: 1px;
}
/* /Components/SignaturePad.razor.rz.scp.css */
/* Signature pad. Colours come from --ed-* tokens with ONE deliberate exception:
   the canvas surface is literal white in both themes, because the ink is exported
   as a JPEG that lands inside a printed legal document — a theme-tinted capture
   would print the theme onto the page. The JS paints the bitmap #ffffff to match. */

.sigpad[b-d5xfmy3sc2] {
    margin-bottom: 0.75rem;
}

.sigpad-head[b-d5xfmy3sc2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.sigpad-label[b-d5xfmy3sc2] {
    font-family: var(--ed-ui);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ed-ink);
}

.sigpad-canvas[b-d5xfmy3sc2] {
    display: block;
    width: 100%;
    height: 140px;
    background: #ffffff; /* must match the JPEG capture surface — see header comment */
    border: 1px dashed var(--ed-hairline-strong);
    border-radius: 10px;
    cursor: crosshair;
    touch-action: none; /* the pad IS the gesture surface — without this, drawing scrolls the page on touch */
}

.sigpad-hint[b-d5xfmy3sc2] {
    font-size: max(0.75rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink-soft);
    margin-top: 0.2rem;
}
/* /Components/SubscriptionBanner.razor.rz.scp.css */
/* Lapsed subscription notice.

   Deliberately a notice, not an alarm, and styled as the twin of .offline-tool-banner
   because it is the same kind of statement: a capability is temporarily unavailable and
   nothing is broken. Red would be a lie that sends a vet looking for damage that isn't
   there — the clinic's records are on this device and keep working.

   Tokens only. A literal here would pass the build and every test (there is no CSS
   coverage) and then sit frozen through the next theme change. */

.subscription-banner[b-0f6qoaoz3t] {
    margin: 0.75rem 0 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--ed-hairline);
    border-radius: var(--radius-md);
    background: var(--color-green-bg);
    color: var(--ed-ink-soft);
    font-family: var(--ed-ui);
    font-size: max(0.9rem, var(--ed-fs-floor, 0rem));
    line-height: 1.4;
}
/* /Components/VetProfileMenu.razor.rz.scp.css */
/* Who is using this machine — the masthead sibling of the case switcher.

   Deliberately quieter than the case switcher: the patient is the subject of the
   work, and this is only the name that gets recorded on it. Same tokens, smaller
   presence.

   Every colour here is a token. A literal would pass the build and every test —
   there is no CSS coverage — and then sit frozen through the next theme change,
   which is this codebase's recurring defect class. */

.vet-switcher[b-0s6ayo7479] {
    position: relative;
    flex-shrink: 0;
}

.vet-switcher-trigger[b-0s6ayo7479] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.55rem;
    /* The floating capsule's chip fill (2026-10-17): its muted label never sits on bare glass. */
    background: var(--shell-chip, transparent);
    border: 1px solid transparent;
    border-radius: var(--radius-sm, 6px);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    cursor: pointer;
    max-width: min(220px, 100%);
    min-width: 0;
}

.vet-switcher-trigger:hover[b-0s6ayo7479] {
    background: var(--color-green-bg);
    color: var(--color-text);
}

/* Nobody has said who they are yet. Visible enough to be answered, not so loud it
   reads as an error — a device with no profile still works perfectly, it just
   attributes to the account instead. */
.vet-switcher-trigger--unset[b-0s6ayo7479] {
    border-color: var(--color-green-border);
    color: var(--color-text);
}

.vet-switcher-name[b-0s6ayo7479] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.vet-switcher-chevron[b-0s6ayo7479] {
    font-size: max(0.7rem, var(--ed-fs-floor, 0rem));
    opacity: 0.7;
}

/* Absolute inside .top-row, exactly like .case-switcher-menu.

   The row is a stacking context at every width (its own z-index; its blur moved
   to a pseudo-element on 2026-10-15), so this z-index is INTERNAL to the row and competes with nothing in the
   article however large it looks. The row itself sits at z-index 40, which clears
   every in-article rule (the highest is 30) and stays under the deliberate
   fixed-overlay band. css-hygiene's chrome-stacking check exempts this selector
   for that reason — see the note there. */
.vet-switcher-menu[b-0s6ayo7479] {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    min-width: 260px;
    max-width: 340px;
    /* Light glass (2026-10-17), the case switcher's recipe: below the masthead's edge,
       so the only blur where it lies; no fixed box inside it. Its "Add a name" field
       keeps its own solid surface — typing stays on paper. */
    background: var(--glass-menu);
    border: 1px solid var(--glass-float-edge);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 var(--glass-float-light), 0 24px 60px var(--glass-float-shade);
    -webkit-backdrop-filter: var(--glass-float-filter);
    backdrop-filter: var(--glass-float-filter);
    padding: 0.4rem 0;
    z-index: 1000;
}

.vet-switcher-section-title[b-0s6ayo7479] {
    padding: 0.3rem 0.85rem 0.2rem;
    font-size: max(0.7rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.vet-switcher-row[b-0s6ayo7479] {
    display: flex;
    align-items: stretch;
}

.vet-switcher-item[b-0s6ayo7479] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex: 1 1 auto;
    padding: 0.45rem 0.85rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.88rem;
    color: var(--color-text);
    cursor: pointer;
    min-width: 0;
}

.vet-switcher-item:hover[b-0s6ayo7479] {
    background: var(--color-green-bg);
}

.vet-switcher-item--active[b-0s6ayo7479] {
    background: var(--color-green-bg);
}

.vet-switcher-item-name[b-0s6ayo7479] {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vet-switcher-item-tick[b-0s6ayo7479] {
    color: var(--color-green-accent, #2d6a4f);
    flex-shrink: 0;
}

.vet-switcher-remove[b-0s6ayo7479] {
    flex: 0 0 auto;
    padding: 0 0.7rem;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.vet-switcher-remove:hover[b-0s6ayo7479] {
    /* --ed-rust, the designated destructive token: --color-danger was defined
       nowhere, so the #b3261e fallback always won and in dark mode the '×'
       got DIMMER on hover (2.66:1 on the hover surface) — the danger cue lost
       at the moment of deletion (2026-09-03 sweep). */
    color: var(--ed-rust);
    background: var(--color-green-bg);
}

.vet-switcher-empty[b-0s6ayo7479] {
    padding: 0.45rem 0.85rem 0.6rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.vet-switcher-divider[b-0s6ayo7479] {
    height: 1px;
    margin: 0.35rem 0;
    background: var(--color-green-border);
}

.vet-switcher-add[b-0s6ayo7479] {
    display: flex;
    gap: 0.4rem;
    padding: 0.2rem 0.85rem 0.45rem;
}

.vet-switcher-add input[b-0s6ayo7479] {
    min-width: 0;
}

.vet-switcher-note[b-0s6ayo7479] {
    padding: 0.35rem 0.85rem 0.5rem;
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
    line-height: 1.35;
}

/* The remove confirmation (fix round #48), under the row it belongs to. Tokens only. */
.vet-switcher-confirm .vet-switcher-note[b-0s6ayo7479] {
    padding-bottom: 0.25rem;
}

.vet-switcher-confirm-actions[b-0s6ayo7479] {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0 0.85rem 0.5rem;
}

/* ── Arrange (Brad, round 8): this device's own order of the names ────────────
   A drag handle per row (pointer events in app.js — mouse, pen or finger) and Move up /
   Move down for the keyboard and any screen. Tokens only, as everywhere in this file. */
.vet-switcher-head[b-0s6ayo7479] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-right: 0.45rem;
}

.vet-switcher-arrange[b-0s6ayo7479] {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0.2rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm, 6px);
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.vet-switcher-arrange:hover[b-0s6ayo7479],
.vet-switcher-arrange:focus-visible[b-0s6ayo7479] {
    background: var(--color-green-bg);
}

.vet-switcher-arrange-list[b-0s6ayo7479] {
    user-select: none;
    -webkit-user-select: none;
}

.vet-switcher-row--arrange[b-0s6ayo7479] {
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem 0.15rem 0.35rem;
}

.vet-switcher-row--arrange .vet-switcher-item-name[b-0s6ayo7479] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.88rem;
    color: var(--color-text);
}

/* Lifted while it moves: a solid surface so the names it passes never show through. */
.vet-switcher-row--arrange.is-dragging[b-0s6ayo7479] {
    position: relative;
    z-index: 1;
    background: var(--color-surface-solid);
    border-radius: var(--radius-sm, 6px);
    box-shadow: 0 8px 22px var(--glass-float-shade);
}

.vet-switcher-handle[b-0s6ayo7479] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    color: var(--color-text-muted);
    cursor: grab;
    /* A drag that starts here moves the row; it never scrolls the menu instead. */
    touch-action: none;
}

.vet-switcher-row--arrange.is-dragging .vet-switcher-handle[b-0s6ayo7479] {
    cursor: grabbing;
}

.vet-switcher-move[b-0s6ayo7479] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--color-green-border);
    border-radius: var(--radius-sm, 6px);
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.vet-switcher-move:hover:not(:disabled)[b-0s6ayo7479] {
    background: var(--color-green-bg);
    border-color: var(--color-accent);
}

.vet-switcher-move:disabled[b-0s6ayo7479] {
    opacity: 0.35;
    cursor: default;
}

.vet-switcher-order-error[b-0s6ayo7479] {
    display: block;
    margin-top: 0.25rem;
    color: var(--ed-rust);
}

/* A thumb's size wherever a finger is the pointer, and always in the phone layout. */
@media (pointer: coarse) {
    .vet-switcher-handle[b-0s6ayo7479],
    .vet-switcher-move[b-0s6ayo7479] {
        width: 44px;
        height: 44px;
    }

    .vet-switcher-arrange[b-0s6ayo7479] {
        min-height: 44px;
    }
}

:root[data-phone="on"] .vet-switcher-handle[b-0s6ayo7479],
:root[data-phone="on"] .vet-switcher-move[b-0s6ayo7479] {
    width: 44px;
    height: 44px;
}

:root[data-phone="on"] .vet-switcher-arrange[b-0s6ayo7479] {
    min-height: 44px;
}
/* /Components/Wordmark.razor.rz.scp.css */
/* Sized by font-size on the host: every part below is in em, so one font-size scales
   the word, the paw and the trace together. */
.zl-wordmark[b-zq90dn9yl3] {
    display: inline-flex;
    flex-direction: column;
    gap: 0.06em;
    font-family: "Young Serif", "Iowan Old Style", Georgia, serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
    color: var(--zl-mark-ink);
    --zl-accent: var(--zl-mark-accent);
    --zl-pulse: var(--zl-mark-pulse);
}

.zl-wordmark--on-dark[b-zq90dn9yl3] {
    color: var(--zl-mark-ink-on-dark);
    --zl-accent: var(--zl-mark-accent-on-dark);
    --zl-pulse: var(--zl-mark-pulse-on-dark);
}

.zl-i[b-zq90dn9yl3] {
    position: relative;
    display: inline-block;
}

.zl-paw[b-zq90dn9yl3] {
    position: absolute;
    left: 50%;
    top: -0.2em;
    width: 0.42em;
    height: 0.42em;
    transform: translateX(-50%);
    fill: var(--zl-accent);
}

.zl-trace[b-zq90dn9yl3] {
    display: block;
    width: 100%;
    height: 0.3em;
    overflow: visible;
}

.zl-trace polyline[b-zq90dn9yl3] {
    fill: none;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.zl-trace-line[b-zq90dn9yl3] {
    stroke: var(--zl-accent);
    stroke-width: 2.4;
}

/* The beat (micro-rewards, 2026-10-17). One 14-unit dash of a 100-unit path (pathLength)
   runs from before the start to past the end, fading in and out at the edges, 900ms.
   Rare by design — a consult filed, the day closed — so the dash offset's repaint on a
   9px-high trace is the honest cost of drawing ALONG the line; everything frequent in the
   motion system stays on transform and opacity. The stroke is a touch heavier on the dark
   sidebar, where the near-white pulse must stand off the gold trace beneath it. */
.zl-trace-pulse[b-zq90dn9yl3] {
    stroke: var(--zl-pulse);
    stroke-width: 3.6;
    stroke-dasharray: 14 120;
    stroke-dashoffset: 14;
    opacity: 0;
    animation: zl-pulse-run-b-zq90dn9yl3 900ms cubic-bezier(0.45, 0, 0.25, 1) forwards;
}

.zl-wordmark--on-dark .zl-trace-pulse[b-zq90dn9yl3] {
    stroke-width: 4.5;
}

@keyframes zl-pulse-run-b-zq90dn9yl3 {
    0%   { stroke-dashoffset: 14; opacity: 0; }
    8%   { opacity: 1; }
    88%  { opacity: 1; }
    100% { stroke-dashoffset: -104; opacity: 0; }
}

@keyframes zl-trace-dip-b-zq90dn9yl3 {
    0%   { opacity: 1; }
    35%  { opacity: 0.45; }
    100% { opacity: 1; }
}

/* Reduced motion: nothing travels. The trace's opacity dips once instead. */
@media (prefers-reduced-motion: reduce) {
    .zl-trace-pulse[b-zq90dn9yl3] { display: none; animation: none; }
    .zl-trace--beat .zl-trace-line[b-zq90dn9yl3] { animation: zl-trace-dip-b-zq90dn9yl3 700ms ease-in-out; }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-ta454y7a1s] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-ta454y7a1s] {
    flex: 1;
    min-width: 0;
}

/* The article's inline gutter. Replaces Bootstrap's px-4 on the markup, which was
   1.5rem at EVERY width — 25.5px of a 390px phone, and the only spacing value in
   the app that all nine breakpoints left alone.

   At 641px and above the `.top-row, article` !important rule at the bottom of this
   file still wins, exactly as it already beat px-4: both are !important, so
   specificity decides, and scoping makes this `article[b-xxxxx]` (0,1,1) against
   `.px-4` (0,1,0). Measured at 768/1024/1366/1920 before the change — the article
   read 34/25.5 there, matching the top row, which is this rule and not px-4. That
   is what makes dropping px-4 provably desktop-neutral. */
.content[b-ta454y7a1s] {
    padding-inline: var(--ed-sp-gutter);
}

.sidebar[b-ta454y7a1s] {
    background: transparent;
}

/* ── Top bar (chrome above the article) ────────────────────────────────────── */
.top-row[b-ta454y7a1s] {
    background: var(--color-surface);
    border-bottom: 1px solid var(--ed-hairline-strong);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    box-shadow: none;
    /* The top-row hosts the case switcher and theme/sign-out controls. Gap and
       flex are managed by the page so this stays minimal. */
    gap: 0.5rem;
    font-family: var(--ed-ui);
    /* This row is a stacking context at EVERY width (position + z-index below; until
       2026-10-15 its backdrop-filter made it one too), so the dropdowns inside it
       (account menu, case switcher) can never out-stack the article on their own
       z-index — the whole row competes as one unit at the row's level. Without a base z-index the row sat at z-auto on phone (and z:1
       on desktop, where an article z-index:1 tied and won on DOM order): the SOAP
       header's buttons and the case-card overlays painted OVER the open account
       menu and swallowed its taps (vet report, 2026-08-13). 40 clears every
       in-article z-index (the highest is 30, Today's row menu) and stays under the
       overlay band (≥1000: toasts, modals, the error strip), which must still be
       able to cover the chrome. Guarded by css-hygiene "chrome stacking". */
    position: relative;
    /* 120 since round 8 (2026-11-08): above every fixed bar below the overlay band too —
       the phone's Save bars and FAB (60), page menus and their backdrops (65-70), the
       phone tab bar (100) — so none of them paints over an open masthead menu (the SOAP
       phone Save bar covered the foot of the account menu). Guarded by css-hygiene
       "no fixed bar below the overlay band covers an open masthead menu". */
    z-index: 120;
}

/* The glass blur, on a layer behind the row's content rather than on the row (sweep
   2026-10-15, shell-brand-pwa#1). A backdrop-filter makes its element the containing
   block for position:fixed descendants, and the recording capsule — fixed, "at the foot
   of every page" — is rendered inside this row: its bottom was measured from the 56px
   masthead, so it sat half off the top of the screen over the vet switcher, clipped by
   main. Guarded by css-hygiene "the top row captures no fixed box". */
.top-row[b-ta454y7a1s]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    /* Follows the capsule's corners when the row floats (below); square otherwise. */
    border-radius: inherit;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

    .top-row[b-ta454y7a1s]  a, .top-row[b-ta454y7a1s]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: var(--color-text-main);
        font-weight: 500;
        font-size: 0.88rem;
    }

    .top-row[b-ta454y7a1s]  a:hover, .top-row[b-ta454y7a1s]  .btn-link:hover {
        text-decoration: underline;
        color: var(--color-accent);
    }

    .top-row[b-ta454y7a1s]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* The signed-out masthead's name rides on a chip in the floating capsule (2026-10-17),
   like every other word there: the capsule's bare glass only owes the icons 3:1. */
.top-row-brand[b-ta454y7a1s] {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--shell-chip, transparent);
}

/* The toggle/account cluster never gives up its width — the case switcher chip
   on the left is the side that truncates (it opts into shrinking in app.css).
   Without this, a narrow window compressed these controls to zero and the
   overflowing chip painted straight over them. */
.top-row-controls[b-ta454y7a1s] {
    flex-shrink: 0;
}

/* ── Dark-mode toggle button ────────────────────────────────────────────── */
.btn-theme-toggle[b-ta454y7a1s] {
    background: none;
    border: 1.5px solid var(--color-green-border);
    border-radius: var(--radius-full);
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s, transform 0.15s var(--ease-spring);
    padding: 0;
    flex-shrink: 0;
}

.btn-theme-toggle:hover[b-ta454y7a1s] {
    background: var(--color-green-soft);
    border-color: var(--color-accent);
    transform: scale(1.1) rotate(12deg);
}

/* Comfort view is a latching toggle, unlike the theme button (whose state is
   the whole page). The filled treatment says "this one is ON". Tokens supply
   both surface and ink, so the pair flips with the theme together. */
.btn-theme-toggle--active[b-ta454y7a1s] {
    background: var(--ed-eucalypt);
    border-color: var(--ed-eucalypt);
    color: var(--ed-paper, #fff);
}

.btn-theme-toggle--active:hover[b-ta454y7a1s] {
    background: var(--ed-eucalypt-soft);
    border-color: var(--ed-eucalypt-soft);
}

/* ── Account menu (avatar dropdown) ──────────────────────────────────────────
   Blazor-held open state, not <details>. No Bootstrap JS is loaded, but native
   <details> was the wrong substitute: it has no outside-click dismissal by
   spec, and its `open` attribute is set by the browser rather than by Blazor's
   render tree, so the diff never removed it and the panel survived navigation.
   The trigger is a ☰ (Brad, round 8 — it was the avatar + the account's name);
   the panel is positioned absolutely relative to the container, opens with the
   account's name at its head, and holds the links + Sign out. */
.account-menu[b-ta454y7a1s] {
    position: relative;
}

    .account-menu--open > .account-menu-panel[b-ta454y7a1s] {
        display: block;
    }

/* A thumb's width at EVERY width, not only in the touch tier: it is the one way into
   the menu, phone layout included, and the capsule (3.5rem) has room for it. */
.account-menu-trigger[b-ta454y7a1s] {
    /* font inherits because this is a <button> — it would otherwise pick up the UA's
       form-control font instead of the app's. */
    font: inherit;
    color: var(--color-text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-green-border);
    /* --shell-chip: the floating capsule's chip fill, so the icon never sits on its bare
       see-through glass (2026-10-17). Unset elsewhere: transparent, as before. */
    background: var(--shell-chip, transparent);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    user-select: none;
}

    .account-menu-trigger:hover[b-ta454y7a1s] {
        background: var(--color-green-soft);
        border-color: var(--color-accent);
        color: var(--color-accent);
    }

    .account-menu-trigger:focus-visible[b-ta454y7a1s] {
        outline: 2px solid var(--color-accent);
        outline-offset: 2px;
    }

/* Open: the button stays lit while its menu is up, so the eye can tie the two. */
.account-menu--open > .account-menu-trigger[b-ta454y7a1s] {
    background: var(--color-green-soft);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.account-menu-panel[b-ta454y7a1s] {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 14rem;
    /* Light glass (2026-10-17): opens below the masthead's edge, so its blur is the only
       one where it lies, and it holds no fixed box. Sign out's prompt renders outside it. */
    background: var(--glass-menu);
    border: 1px solid var(--glass-float-edge);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 var(--glass-float-light), 0 24px 60px var(--glass-float-shade);
    -webkit-backdrop-filter: var(--glass-float-filter);
    backdrop-filter: var(--glass-float-filter);
    padding: 0.4rem;
    z-index: 1000;
}

.account-menu-identity[b-ta454y7a1s] {
    padding: 0.4rem 0.75rem 0.6rem;
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-green-border);
    margin-bottom: 0.25rem;
    /* The account is often an e-mail address: it may break anywhere rather than widen
       the panel past a phone's edge. */
    max-width: 18rem;
    overflow-wrap: anywhere;
}

.account-menu-identity-label[b-ta454y7a1s] {
    font-size: max(0.7rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.account-menu-identity-name[b-ta454y7a1s] {
    font-weight: 600;
    line-height: 1.3;
}

.account-menu-section[b-ta454y7a1s] {
    font-size: max(0.7rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    padding: 0.5rem 0.75rem 0.2rem;
    font-weight: 600;
}

/* ::deep, because most items are <NavLink>s: a child component's rendered <a>
   never carries this file's scope attribute, so the bare scoped selector matched
   only the Sign out <button> and every link rendered as an UNSTYLED inline
   anchor — the admin links flowed onto one line ("Users Add User LLM Settings")
   with no padding and no hover, plainly visible in the vet's 2026-08-13
   screenshot. The panel div is in this file's markup, so anchoring ::deep to it
   reaches the links. Same lesson as the 2026-07-25 icon set. */
.account-menu-panel[b-ta454y7a1s]  .account-menu-item,
.account-menu-panel .account-menu-item[b-ta454y7a1s] {
    display: block;
    width: 100%;
    /* The masthead's `.top-row ::deep a` gives every link in the row a 1.5rem left margin
       (meant for links sitting IN the row). Inherited here it indented the links past the
       section headings and the buttons, and with width:100% pushed them 1.5rem out of the
       panel's right edge — their hover fill overhung it (seen 2026-11-08, Brad round 8). */
    margin: 0;
    box-sizing: border-box;
    text-align: left;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.88rem;
    background: none;
    border: none;
    cursor: pointer;
}

    .account-menu-panel[b-ta454y7a1s]  .account-menu-item:hover,
    .account-menu-panel[b-ta454y7a1s]  .account-menu-item:focus,
    .account-menu-panel .account-menu-item:hover[b-ta454y7a1s],
    .account-menu-panel .account-menu-item:focus[b-ta454y7a1s] {
        background: var(--color-green-soft);
        color: var(--color-accent);
        text-decoration: none;
    }

.account-menu-panel .account-menu-item--button[b-ta454y7a1s] {
    color: var(--color-accent);
    font-weight: 600;
}

.account-menu-divider[b-ta454y7a1s] {
    height: 1px;
    background: var(--color-green-border);
    margin: 0.35rem 0;
}

/* On phone the avatar dropdown anchors to the right edge of the viewport, so
   shrink the panel width to fit comfortably. */
@media (max-width: 640.98px) {
    .account-menu-panel[b-ta454y7a1s] {
        min-width: 13rem;
        right: -0.5rem;
    }
}

/* ── Mobile portrait + landscape phone (page stacks; sidebar collapses inline) */
@media (max-width: 640.98px) {
    /* Was 0.85rem against the article's 1.5rem, so the header text started 11.1px
       left of the content under it — measured, and a phone-only defect: at 641px
       and up both are 2rem and the misalignment is zero. One token, both aligned. */
    .top-row[b-ta454y7a1s] {
        justify-content: space-between;
        padding-left: var(--ed-sp-gutter) !important;
        padding-right: var(--ed-sp-gutter) !important;
    }

    .top-row[b-ta454y7a1s]  a, .top-row[b-ta454y7a1s]  .btn-link {
        margin-left: 0;
    }

    /* Username next to the avatar gets in the way on phone — hide on very narrow widths. */
    .top-row[b-ta454y7a1s]  .small.text-muted {
        display: none;
    }
}

/* ── Tablet + desktop: APP SHELL — the chrome owns the viewport ──────────────
   .page is exactly one viewport tall and never scrolls; the ONLY scroller is
   the article. Before this (2026-07-30), the chrome was a mix of sticky and
   in-flow pieces over a scrolling document, and every page container that
   budgeted "viewport minus the top row" (but not the stepper) left the
   document ~40–110px scrollable with nothing in it — wheel input then tore
   the frame apart instead of scrolling content, which is what the vet
   reported as "space at the top of the page". */
@media (min-width: 641px) {
    .page[b-ta454y7a1s] {
        flex-direction: row;
        height: 100dvh;
        overflow: hidden;
    }

    .sidebar[b-ta454y7a1s] {
        /* Width is driven by .nav-sidebar in NavMenu.razor.css */
        height: 100dvh;
        flex-shrink: 0;
    }

    main[b-ta454y7a1s] {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* The one scroller. min-height: 0 lets it actually shrink inside the flex
       column — without it the article sizes to content and the overflow never
       engages. */
    .content[b-ta454y7a1s] {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    /* Chrome rows never give up their height to the scroller. */
    main[b-ta454y7a1s]  .consult-stepper-wrap,
    main[b-ta454y7a1s]  .held-audio-banner {
        flex-shrink: 0;
    }

    .top-row.auth[b-ta454y7a1s]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-ta454y7a1s], article[b-ta454y7a1s] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    /* ── The floating bar (2026-10-17, "stronger glass") ─────────────────────────
       The row lifts off the edges into a glass capsule and the article runs up UNDER
       it: article.content is still the only scroller (it now starts at main's top, and
       its padding-top — app.css, "Floating bar clearance" — puts every page's first
       line below the capsule, so nothing starts hidden). The capsule is absolute in
       main, out of the flex column; main is its containing block. Nothing here makes
       the row a containing block for FIXED boxes (no transform, filter, contain or
       backdrop-filter on the row itself — the blur stays on ::before), so the
       recording capsule inside it still measures from the viewport.

       Glass-on-glass: this is the only blur over the top of the article. The menus
       inside it open BELOW its bottom edge (top: 100% + gap), dialogs keep their panel
       inside the band between the bars (app.css), and the popovers that can land
       anywhere (date picker, Today's row menu) are flat glass with no blur. */
    main[b-ta454y7a1s] {
        position: relative;
    }

    .top-row[b-ta454y7a1s] {
        position: absolute;
        top: var(--shell-bar-inset);
        left: var(--shell-bar-side);
        right: var(--shell-bar-side);
        height: var(--shell-bar-h);
        border: 1px solid var(--glass-float-edge);
        border-radius: 22px;
        background: var(--glass-bar);
        --shell-chip: var(--glass-chip);
        box-shadow: inset 0 1px 0 var(--glass-float-light),
                    inset 0 -1px 0 var(--ed-hairline),
                    0 14px 40px var(--glass-float-shade);
    }

    .top-row[b-ta454y7a1s]::before {
        backdrop-filter: var(--glass-bar-filter);
        -webkit-backdrop-filter: var(--glass-bar-filter);
    }

    /* The capsule's own inset already gives the gutter; the content row keeps its
       2rem/1.5rem, and the capsule's padding brings its chips back into line with
       the article's text (16px side inset + 0.9rem ≈ the article's 2rem). */
    .top-row[b-ta454y7a1s] {
        padding-left: 0.9rem !important;
        padding-right: 0.6rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* ── Sidebar container ─────────────────────────────────────────────────────── */
.nav-sidebar[b-0l7wkai1xj] {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--color-sidebar-from) 0%, var(--color-sidebar-to) 100%);
    transition: width 0.25s ease;
    font-family: "Manrope", system-ui, sans-serif;
}

/* ── Top branding row ──────────────────────────────────────────────────────── */
.navbar-toggler[b-0l7wkai1xj] {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    min-width: 44px;
    min-height: 44px;
}

.top-row[b-0l7wkai1xj] {
    min-height: 3.5rem;
    background-color: rgba(0, 0, 0, 0.25);
}

/* The Zoolytic wordmark (Components/Wordmark.razor) sets its own face and colours;
   this row only sizes it. 1.6rem keeps it above the 24px line where the heartbeat
   trace stays legible. The extra top padding is room for the paw over the "i". */
.navbar-brand[b-0l7wkai1xj] {
    font-size: 1.6rem;
    line-height: 1;
    padding-top: 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.22s;
}

/* ── Icon sprites ──────────────────────────────────────────────────────────── */
/* Icons are inline SVG now (Components/Icon.razor), not background images, so
   they inherit the link's colour and follow theme, hover and the active state.
   The Bootstrap data-URIs this replaces baked in fill='white' and could not. */
/* ::deep is load-bearing, not decoration. This file is SCOPED, so Blazor rewrites
   every selector to `.nav-icon[b-xxxxx]` — and that scope attribute is only stamped
   on markup THIS component renders. The <svg> comes from Icon.razor, a child
   component, so it never carries NavMenu's scope and a bare `.nav-icon` rule matches
   nothing at all. The icons then fell back to Icon.razor's own width:1em (15px,
   noticeably smaller than the 20px sprites they replaced). The old `.bi` rule worked
   only because those spans were in NavMenu's own markup. */
.nav-sidebar[b-0l7wkai1xj]  .nav-icon {
    /* Bigger and firmer than the 1.25rem the Bootstrap sprites used, and deliberately
       so. Those were SOLID glyphs on a 16 viewBox scaled edge-to-edge by
       background-size: cover, so they filled the whole box. These are 1.5-weight
       STROKES on a 24 grid with ~2 units of padding, which reads noticeably lighter
       and smaller at the same box size. Growing the box and firming the stroke puts
       the optical weight back where it was. */
    width: 1.45rem;
    height: 1.45rem;
    stroke-width: 1.7;
    margin-right: 0.7rem;
    top: -1px;
    position: relative;
    flex-shrink: 0;
}

/* ── Section dividers / labels ────────────────────────────────────────────── */
.nav-divider[b-0l7wkai1xj] {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0.5rem 1rem;
}

.nav-section-label[b-0l7wkai1xj] {
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-weight: 600;
}

/* ── Nav items ─────────────────────────────────────────────────────────────── */
.nav-item[b-0l7wkai1xj] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-0l7wkai1xj] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-0l7wkai1xj] {
        padding-bottom: 1rem;
    }

    .nav-item[b-0l7wkai1xj]  a {
        color: rgba(255, 255, 255, 0.78);
        border-radius: 10px;
        height: 2.75rem;
        display: flex;
        align-items: center;
        line-height: 2.75rem;
        white-space: nowrap;
        overflow: hidden;
        transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
        position: relative;
    }

/* The current page is a lit glass capsule on the eucalypt: cream tint, a bright top
   edge, and the gold accent as the left rule. */
.nav-item[b-0l7wkai1xj]  a.active {
    background: rgba(239, 228, 200, 0.18);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(239, 228, 200, 0.40), inset 3px 0 0 var(--zl-mark-accent-on-dark);
    font-weight: 600;
}

.nav-item[b-0l7wkai1xj]  a:hover {
    background: rgba(239, 228, 200, 0.10);
    color: #ffffff;
    transform: translateX(3px);
}

/* Keyboard focus on the eucalypt (2026-10-15 sweep). The global chestnut ring never
   drew here: Bootstrap's .nav-link:focus-visible (0,2,0) out-ranks a:focus-visible
   with outline:0 and a faint blue glow (~1.25:1), and the active link's inset
   box-shadow above replaced even that, so focus on the current page changed nothing.
   The on-dark gold reads at ~5:1 on the rail. Inset (negative offset) because the
   scrolling rail clips anything drawn outside the link; outline only, so the active
   link keeps its capsule. This rule must stay AFTER a.active — same specificity. */
.nav-item[b-0l7wkai1xj]  a:focus-visible,
.navbar-brand:focus-visible[b-0l7wkai1xj] {
    outline: 3px solid var(--zl-mark-accent-on-dark);
    outline-offset: -3px;
}

.nav-item[b-0l7wkai1xj]  a:not(.active):focus-visible {
    box-shadow: none;
}

.nav-collapse-btn:focus-visible[b-0l7wkai1xj] {
    outline: 3px solid var(--zl-mark-accent-on-dark);
    outline-offset: -3px;
    box-shadow: none;
}

/* ── Nav link text (hidden when collapsed) ─────────────────────────────────── */
.nav-link-text[b-0l7wkai1xj] {
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.2s, max-width 0.25s;
    max-width: 200px;
    opacity: 1;
}

/* ── Desktop collapse toggle button ───────────────────────────────────────── */
.nav-collapse-item[b-0l7wkai1xj] {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-collapse-btn[b-0l7wkai1xj] {
    display: flex;
    align-items: center;
    width: 100%;
    height: 2.75rem;
    padding: 0 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    overflow: hidden;
}

.nav-collapse-btn:hover[b-0l7wkai1xj] {
    background-color: rgba(239, 228, 200, 0.10);   /* the links' cream hover (2026-10-15 sweep) */
    color: #ffffff;
}

/* Desktop-only control — below 641px the sidebar collapses inline via the
   hamburger instead. Gated here rather than with Bootstrap's d-sm-block, which
   breaks at 576px: that left a 576–640.98px band where the button rendered but
   every collapsed-state rule (and the width reflow) was still inactive, so
   clicking it did nothing at all. One breakpoint, stated once. */
.nav-collapse-item[b-0l7wkai1xj] {
    display: none;
}

/* Chevron arrow using a CSS-only triangle */
.nav-collapse-icon[b-0l7wkai1xj] {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    background-size: cover;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-collapse-icon--right[b-0l7wkai1xj] {
    transform: rotate(180deg);
}

/* ── Mobile (<641px) — sidebar collapses inline; expanded nav scrolls ──────── */
@media (max-width: 640.98px) {
    /* When expanded on phone, cap the nav height so it doesn't push the article
       way off-screen. The nav scrolls inside its own bounds. */
    .nav-scrollable[b-0l7wkai1xj] {
        max-height: calc(100dvh - 3.5rem);
        overflow-y: auto;
    }
}

/* ── Tablet + desktop: normal state ────────────────────────────────────────── */
@media (min-width: 641px) {
    .navbar-toggler[b-0l7wkai1xj] {
        display: none;
    }

    .collapse[b-0l7wkai1xj] {
        display: block;
    }

    /* The sidebar is the height-constrained box; the scrollport takes whatever is
       left after the branding row and the collapse row. It used to hard-code
       calc(100vh - 3.5rem) — the branding row's height — which left no room for
       the collapse row and forced that row to be sticky-positioned on top of the
       list. min-height:0 is load-bearing: a flex item's default min-height:auto
       refuses to shrink below its content, so the scrollport would grow to fit
       the whole nav and never scroll. */
    .nav-sidebar[b-0l7wkai1xj] {
        height: 100vh;
    }

    .nav-scrollable[b-0l7wkai1xj] {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    /* Scrollable nav fills height so collapse button sits at bottom.
       flex-wrap:nowrap is load-bearing, not tidy-up: Bootstrap's .nav ships
       flex-wrap:wrap, and a wrapping COLUMN flexbox in a height-constrained
       scrollport spills into a second column instead of scrolling. The nav is
       taller than the viewport on a laptop, so the legal links and the collapse
       row were laid out at x=230 in that second column — past the 250px sidebar
       edge and clipped away. That is the real reason the sidebar could not be
       re-expanded: the only control that clears the collapsed state was not
       small or below the fold, it was off-screen. */
    .nav-scrollable .nav[b-0l7wkai1xj] {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    /* Nav rows keep their height once the list overflows — without this the
       flex container shrinks them to fit and the icons crowd. */
    .nav-scrollable .nav > *[b-0l7wkai1xj] {
        flex-shrink: 0;
    }

    /* Always visible without being an overlay: it is a flex sibling below the
       scrollport, so it holds its own space instead of floating over the list.
       The nav is taller than the viewport on a laptop, so this control must stay
       on screen — parked at the end of the scrolling content it sat below the
       fold, and the vet had to know to scroll a rail that looks like it holds
       nothing else. */
    .nav-collapse-item[b-0l7wkai1xj] {
        display: block;
        flex: 0 0 auto;
        background: var(--color-sidebar-to);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* ── Tablet + desktop: collapsed state ─────────────────────────────────────── */
@media (min-width: 641px) {
    /* visibility:hidden takes the faded wordmark link out of the tab order — opacity
       and pointer-events do not, so the first Tab into the page landed on an invisible
       "Zoolytic" link (2026-10-15 sweep). Delayed by the fade so the fade still plays;
       the base rule's transition lists only opacity, so expanding shows it at once. */
    .nav-sidebar--collapsed .navbar-brand[b-0l7wkai1xj] {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s, visibility 0s linear 0.22s;
    }

    .nav-sidebar--collapsed .nav-link-text[b-0l7wkai1xj] {
        max-width: 0;
        opacity: 0;
    }

    .nav-sidebar--collapsed .nav-item[b-0l7wkai1xj]  a,
    .nav-sidebar--collapsed .nav-collapse-btn[b-0l7wkai1xj] {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .nav-sidebar--collapsed[b-0l7wkai1xj]  .nav-icon,
    .nav-sidebar--collapsed .nav-collapse-icon[b-0l7wkai1xj] {
        margin-right: 0;
    }

    /* The collapse button is the ONLY control that can un-collapse the sidebar,
       and it lives inside the region the collapse shrinks. Bootstrap's px-3 on
       its parent row costs 2rem of a 3.8rem rail; after the scrollbar that left
       a ~15px hit target with the 1.25rem chevron clipped on both sides. The
       rule below zeroes padding on the BUTTON but never reached the parent. */
    .nav-sidebar--collapsed .nav-collapse-item[b-0l7wkai1xj] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* The legal links aren't wrapped in .nav-link-text, so the rule that hides
       label text never applied to them. Left visible in a 3.8rem rail they
       wrapped onto three lines — taller collapsed than expanded, and enough to
       raise a horizontal scrollbar on the nav. */
    .nav-sidebar--collapsed .nav-legal[b-0l7wkai1xj] {
        display: none;
    }
}
/* /Pages/CaseView.razor.rz.scp.css */
/* ─────────────────────────────────────────────────────────────────────────────
   CaseView — "Bush Editorial" treatment.

   The patient's record reads like a feature article in a small-run veterinary
   quarterly. The discipline borrowed from a Lab-Apothecary layer (hairlines,
   tabular figures, no pure black/white) keeps the typography from tipping
   into decoration. Scoped CSS — only applies to CaseView.razor.
   ───────────────────────────────────────────────────────────────────────── */

.cv-page[b-uo025vygj3] {
    /* Editorial palette — warm cream paper, eucalypt for headings, terracotta
       as the working accent, saffron for "live" only. No pure black, no pure
       white — every surface has a temperature. */
    --cv-paper:       #f5efe1;
    --cv-paper-deep:  #ebe3d1;
    --cv-ink:         #1f1d18;
    --cv-ink-soft:    #4a4639;
    /* Kept in step with --ed-mute (app.css). CaseView's private palette never
       received the AA darkening the global token got, so this measured 2.73:1. */
    --cv-mute:        #615c4e;
    --cv-eucalypt:    #1f3a2a;
    /* Bound to the global so the two can't drift again — the private literal
       had already slipped to #c2643a while app.css held #c2641a (2026-08-06). */
    --cv-terracotta:  var(--ed-terracotta);
    --cv-saffron:     #e8c84a;
    --cv-mint:        #3a7c5c;
    --cv-rust:        #a23b2a;
    --cv-hairline:    rgba(31, 29, 24, 0.14);
    --cv-hairline-strong: rgba(31, 29, 24, 0.28);
    --cv-grain:       rgba(122, 74, 28, 0.025);

    min-height: calc(100dvh - 3.5rem);
    background:
        radial-gradient(ellipse at 18% 0%, rgba(133, 85, 58, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 82% 100%, rgba(31, 58, 42, 0.05) 0%, transparent 55%),
        var(--cv-paper);
    /* (The >=641px min-height:100% override for the app shell sits at the end
       of this file — scoped rules can't be reached by app.css's migration block.) */
    color: var(--cv-ink);
    font-family: "Fraunces", Georgia, serif;
    font-feature-settings: "ss01" on, "ss02" on, "ss03" on;
    padding: 1.5rem 2rem 4rem;
    position: relative;
    /* clip, not hidden: hidden makes this a scroll container, and a scroll container
       that never scrolls is what position:sticky (the pinned case strip) sticks to,
       so the strip would never stick. clip trims the same overflow without that. */
    overflow-x: clip;
}

/* Faint warm-paper grain — keeps the cream from looking flat-screen. */
.cv-page[b-uo025vygj3]::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-radial-gradient(circle at 25% 25%, var(--cv-grain) 0, var(--cv-grain) 1px, transparent 1px, transparent 3px),
        repeating-radial-gradient(circle at 75% 75%, var(--cv-grain) 0, var(--cv-grain) 1px, transparent 1px, transparent 4px);
    opacity: 0.6;
    z-index: 0;
}

.cv-spread[b-uo025vygj3] {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    z-index: 1;
}

/* Loading + error sit on the same paper, but quietly. */
.cv-quiet[b-uo025vygj3] {
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    color: var(--cv-mute);
    padding: 1rem 0;
}

.cv-quiet--error[b-uo025vygj3] { color: var(--cv-rust); }

/* A case that could not be opened: the sentence, then its two ways on (errors#16). */
.cv-quiet-line[b-uo025vygj3] { margin: 0; }

.cv-quiet-actions[b-uo025vygj3] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cv-quiet-actions a.cv-pill[b-uo025vygj3] { text-decoration: none; }

/* ── Masthead ────────────────────────────────────────────────────────────── */

.cv-masthead[b-uo025vygj3] {
    position: relative;
    padding: 1.5rem 0 1.25rem;
    border-bottom: 1px solid var(--cv-hairline-strong);
    margin-bottom: 2rem;
}

/* "CANINE · 4Y · MN · 12.4 KG" — tracked small-caps stamp sitting above the
   patient's name. The mono comes from JetBrains; small-caps via OT features. */
.cv-kicker[b-uo025vygj3] {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--cv-eucalypt);
    margin-bottom: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cv-kicker-dot[b-uo025vygj3] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cv-terracotta);
    flex-shrink: 0;
}

/* The headline — Fraunces Italic at editorial scale. opsz=144 unlocks the
   sharp display-cut variant; the negative letter-spacing tightens the rivers. */
.cv-headline[b-uo025vygj3] {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-variation-settings: "opsz" 144;
    line-height: 0.95;
    letter-spacing: -0.025em;
    color: var(--cv-ink);
    margin: 0 0 1rem;
    word-break: break-word;
}

/* Status pill — a thin oval, mint when active, rust when archived. The
   "● Active" indicator is a separate pip so it can pulse without affecting
   the pill's silhouette. */
.cv-byline[b-uo025vygj3] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.86rem;
    color: var(--cv-ink-soft);
}

.cv-byline-sep[b-uo025vygj3] {
    color: var(--cv-mute);
    user-select: none;
}

/* A dot and the item after it, as one of the byline's flex items (W12, 2026-10-04): as items
   of their own the dots ended wrapped lines. The byline's own gap, so the dot sits as far from
   its item as items sit apart. */
.cv-byline-item[b-uo025vygj3] {
    display: inline-flex;
    align-items: center;
    gap: inherit;
    min-width: 0;
}

.cv-status-pill[b-uo025vygj3] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.18rem 0.7rem;
    border: 1px solid var(--cv-hairline-strong);
    border-radius: 999px;
    font-family: "JetBrains Mono", monospace;
    font-size: max(0.7rem, var(--ed-fs-floor, 0rem));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    background: transparent;
    color: var(--cv-ink-soft);
}

.cv-status-pill--open[b-uo025vygj3]     { color: var(--cv-eucalypt); border-color: var(--cv-eucalypt); }
.cv-status-pill--closed[b-uo025vygj3]   { color: var(--cv-ink-soft); }
.cv-status-pill--archived[b-uo025vygj3] { color: var(--cv-rust); border-color: rgba(162, 59, 42, 0.4); }

.cv-active-mark[b-uo025vygj3] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "JetBrains Mono", monospace;
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cv-mint);
}

.cv-active-pip[b-uo025vygj3] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cv-mint);
    box-shadow: 0 0 0 0 rgba(58, 124, 92, 0.6);
    animation: cv-pulse-b-uo025vygj3 2.2s ease-in-out infinite;
}

@keyframes cv-pulse-b-uo025vygj3 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(58, 124, 92, 0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(58, 124, 92, 0); }
}

/* Subtle text-only "Make active" button — looks like editorial chrome. */
.cv-text-btn[b-uo025vygj3] {
    background: none;
    border: none;
    border-bottom: 1px solid var(--cv-hairline-strong);
    padding: 0 0 1px;
    font: inherit;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.86rem;
    color: var(--cv-eucalypt);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.cv-text-btn:hover[b-uo025vygj3] {
    border-color: var(--cv-eucalypt);
    color: var(--cv-ink);
}

/* Botanical mark — a hand-drawn-feel SVG sprig sits at the masthead's
   right edge. Decorative only; aria-hidden in markup. The mark is light
   and high enough that it never competes with the patient's name. */
.cv-botanical[b-uo025vygj3] {
    position: absolute;
    top: 0.5rem;
    right: 0;
    width: 70px;
    height: 90px;
    opacity: 0.55;
    pointer-events: none;
    color: var(--cv-eucalypt);
}

/* ── Standfirst (presenting complaint) ───────────────────────────────────── */

.cv-standfirst[b-uo025vygj3] {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.22rem;
    line-height: 1.5;
    color: var(--cv-ink);
    margin: 0 0 2.5rem;
    max-width: 50ch;
    font-variation-settings: "opsz" 24;
    font-weight: 400;
}

.cv-dropcap[b-uo025vygj3] {
    float: left;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    font-style: italic;
    font-size: 3.4rem;
    line-height: 0.85;
    padding: 0.18rem 0.5rem 0 0;
    color: var(--cv-terracotta);
    font-variation-settings: "opsz" 144;
}

/* ── Body: two-column editorial layout ──────────────────────────────────── */

.cv-body[b-uo025vygj3] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3rem;
    align-items: start;
}

/* scroll-margin: phone mode's "See the full timeline →" jumps here (#cv-timeline), and
   the pinned strip slides in over the top of the screen as it lands, covering the
   "Timeline · N entries" label that sits at this element's very top edge (sweep
   2026-10-15, shell-brand-pwa#12). .cv-entry clears it by 4.5rem (app.css) with its
   own top padding to spare; the label has none, hence a little more. */
.cv-main[b-uo025vygj3] { min-width: 0; scroll-margin-top: 4.75rem; }

/* Section labels — same small-caps mono as the kicker, but darker. They
   read as editorial section breaks rather than card headings. */
.cv-section-label[b-uo025vygj3] {
    font-family: "JetBrains Mono", monospace;
    font-size: max(0.7rem, var(--ed-fs-floor, 0rem));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--cv-ink-soft);
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cv-hairline);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.cv-section-count[b-uo025vygj3] {
    font-size: max(0.66rem, var(--ed-fs-floor, 0rem));
    color: var(--cv-mute);
    letter-spacing: 0.18em;
}

/* ── Timeline entries ────────────────────────────────────────────────────── */

.cv-timeline[b-uo025vygj3] { list-style: none; padding: 0; margin: 0; }

.cv-entry[b-uo025vygj3] {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--cv-hairline);
    position: relative;
}

.cv-entry:last-child[b-uo025vygj3] { border-bottom: none; }

/* Marginalia — date stack to the left, magazine-byline style. The day is
   the big number, the year reduced; the source-tool sits beneath in mono. */
.cv-marginalia[b-uo025vygj3] {
    text-align: right;
    color: var(--cv-mute);
    font-family: "JetBrains Mono", monospace;
    padding-top: 0.25rem;
}

.cv-marg-day[b-uo025vygj3] {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    color: var(--cv-ink);
    font-variation-settings: "opsz" 144;
    letter-spacing: -0.02em;
}

.cv-marg-month[b-uo025vygj3] {
    font-family: "JetBrains Mono", monospace;
    font-size: max(0.7rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cv-ink-soft);
    margin-top: 0.2rem;
}

.cv-marg-time[b-uo025vygj3] {
    font-family: "JetBrains Mono", monospace;
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    color: var(--cv-mute);
    margin-top: 0.1rem;
}

.cv-marg-source[b-uo025vygj3] {
    font-family: "Manrope", sans-serif;
    font-size: max(0.74rem, var(--ed-fs-floor, 0rem));
    font-weight: 500;
    color: var(--cv-terracotta);
    margin-top: 0.6rem;
    letter-spacing: 0.01em;
}

.cv-marg-badge[b-uo025vygj3] {
    display: inline-block;
    margin-top: 0.45rem;
    padding: 0.1rem 0.45rem;
    font-family: "JetBrains Mono", monospace;
    font-size: max(0.62rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid;
    border-radius: 999px;
}

.cv-marg-badge--reviewed[b-uo025vygj3]   { color: var(--cv-mint); border-color: var(--cv-mint); }
.cv-marg-badge--unreviewed[b-uo025vygj3] { color: var(--cv-terracotta); border-color: var(--cv-terracotta); }

/* Comfort view (sweep 2026-10-15, runtime#15). The badge meets comfort's 0.8rem type
   floor (~15.1px, up from ~10.5px), and "✓ REVIEWED" then needs ~131px against a
   marginalia column fixed at 110px: it wrapped into a two-line lozenge on every entry at
   1280x720, the screen comfort view is built for. The column grows with comfort's type
   above the phone breakpoint (below it the marginalia is a row), and the badge keeps its
   glyph and word on one line. Only the marginalia's: the same class labels "Amended —
   supersedes an earlier version" in the entry body, which must still wrap on a phone. */
.cv-marginalia .cv-marg-badge[b-uo025vygj3] { white-space: nowrap; }

@media (min-width: 641px) {
    [data-comfort="on"] .cv-entry[b-uo025vygj3] { grid-template-columns: 7.5rem 1fr; }
}

.cv-entry-body[b-uo025vygj3] { min-width: 0; }

.cv-entry-title[b-uo025vygj3] {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--cv-ink);
    margin: 0 0 0.4rem;
    font-variation-settings: "opsz" 24;
}

.cv-entry-preview[b-uo025vygj3] {
    font-family: "Fraunces", Georgia, serif;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--cv-ink-soft);
    font-variation-settings: "opsz" 14;
}

.cv-entry-preview :is(p, ul, ol)[b-uo025vygj3] { margin: 0; }

.cv-entry-expanded[b-uo025vygj3] {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--cv-hairline);
    font-family: "Fraunces", Georgia, serif;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--cv-ink);
}

/* Plain-text artifacts — SOAP notes and consult transcripts — keep their own line
   breaks instead of being reflowed into one paragraph. The `white-space: pre-wrap`
   itself is an INLINE style from ArtifactRender (the same HTML also goes to the print
   popup, which has no access to these classes); this only adds the wrapping a long
   speaker turn needs so it doesn't scroll sideways in the panel. */
[b-uo025vygj3] .cv-entry-preview div[style*="pre-wrap"],
[b-uo025vygj3] .cv-entry-expanded div[style*="pre-wrap"] {
    overflow-wrap: anywhere;
}

.cv-entry-actions[b-uo025vygj3] {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Move marker (round 6, 2026-09-27) — one line of history where records left
   this patient. Quieter than an entry: shorter row, muted italic line. */
.cv-entry--moved[b-uo025vygj3] {
    padding: 0.85rem 0;
}

.cv-moved-line[b-uo025vygj3] {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-size: 0.98rem;
    color: var(--cv-ink-soft);
    margin: 0 0 0.3rem;
    overflow-wrap: anywhere;
}

/* The line after a move: where the records went, and a way to follow them. */
.cv-move-result[b-uo025vygj3] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin: 0.5rem 0 1rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--cv-hairline-strong);
    border-left: 3px solid var(--cv-mint);
    border-radius: 6px;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.9rem;
    color: var(--cv-ink);
}

.cv-move-open[b-uo025vygj3] {
    color: var(--cv-eucalypt);
    font-weight: 600;
}

.cv-move-note[b-uo025vygj3] {
    flex-basis: 100%;
    color: var(--cv-mute);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
}

/* Editorial pill button — the default "ghost" variant. */
.cv-pill[b-uo025vygj3] {
    font-family: "Manrope", system-ui, sans-serif;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    font-weight: 500;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--cv-hairline-strong);
    background: transparent;
    color: var(--cv-ink-soft);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    line-height: 1.3;
    white-space: nowrap;
}

.cv-pill:hover[b-uo025vygj3] {
    border-color: var(--cv-ink);
    color: var(--cv-ink);
}

.cv-pill--primary[b-uo025vygj3] {
    background: var(--cv-eucalypt);
    color: var(--cv-paper);
    border-color: var(--cv-eucalypt);
}
.cv-pill--primary:hover[b-uo025vygj3] { background: var(--cv-ink); border-color: var(--cv-ink); color: var(--cv-paper); }

.cv-pill--accent[b-uo025vygj3] {
    color: var(--cv-mint);
    border-color: var(--cv-mint);
}
.cv-pill--accent:hover[b-uo025vygj3] { background: var(--cv-mint); color: var(--cv-paper); }

.cv-pill--danger[b-uo025vygj3] {
    color: var(--cv-rust);
    /* The page's rust at 35%, which flips with the theme (QoL 2026-10-04, phone#18): the
       light value frozen at 35% was about 1.4:1 on dark paper, and Delete… lost its outline. */
    border-color: color-mix(in srgb, var(--cv-rust) 35%, transparent);
    margin-left: auto;
}
.cv-pill--danger:hover[b-uo025vygj3] { background: var(--cv-rust); color: var(--cv-paper); border-color: var(--cv-rust); }

.cv-pill--small[b-uo025vygj3] {
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    padding: 0.22rem 0.7rem;
}

/* Empty timeline — a single line of italic copy, no card. */
.cv-empty[b-uo025vygj3] {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    color: var(--cv-mute);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--cv-hairline);
    font-size: 1rem;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

/* Scrolls with the page (sweep 2026-10-15, shell-brand-pwa#3). It carried
   position:sticky; top:1rem from the start, inert until 7d96a02 swapped .cv-page's
   overflow-x hidden for clip so the pinned strip could stick — which woke this too: it
   stuck 1rem under the article top, the band the strip occupies, so "Medications" and
   the first drug name sat under the glass for the whole scroll, and a sidebar taller
   than the window hid its lower sections until the timeline ended. A sticky sidebar
   would be new behaviour (it would need to sit below the strip and scroll itself). */
.cv-sidebar[b-uo025vygj3] {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    font-family: "Manrope", system-ui, sans-serif;
}

.cv-side-section[b-uo025vygj3] { min-width: 0; }

/* Medication list — apothecary-leaning. Drug name in serif italic; the
   dose-text in tabular mono so doses line up under each other. */
.cv-meds-list[b-uo025vygj3] { list-style: none; padding: 0; margin: 0; }

.cv-med[b-uo025vygj3] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--cv-hairline);
}

.cv-med:last-child[b-uo025vygj3] { border-bottom: none; }

.cv-med-name[b-uo025vygj3] {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1rem;
    color: var(--cv-ink);
    font-variation-settings: "opsz" 14;
}

.cv-med-detail[b-uo025vygj3] {
    font-family: "JetBrains Mono", monospace;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--cv-ink-soft);
    margin-top: 0.15rem;
    font-variant-numeric: tabular-nums;
}

.cv-med-indication[b-uo025vygj3] {
    font-family: "Manrope", sans-serif;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--cv-mute);
    margin-top: 0.1rem;
}

.cv-med-discontinued[b-uo025vygj3] {
    font-family: "JetBrains Mono", monospace;
    font-size: max(0.62rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--cv-mute);
    margin-top: 0.25rem;
    border: 1px solid var(--cv-hairline-strong);
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    display: inline-block;
}

.cv-med-remove[b-uo025vygj3] {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cv-mute);
    font-family: "Manrope", sans-serif;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    padding: 0;
    align-self: center;
    transition: color 0.15s;
}

.cv-med-remove:hover[b-uo025vygj3] { color: var(--cv-rust); }

.cv-med-empty[b-uo025vygj3] {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-size: 0.92rem;
    color: var(--cv-mute);
    padding: 0.3rem 0 0.85rem;
}

.cv-add-med[b-uo025vygj3] {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.6rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--cv-hairline);
}

.cv-input[b-uo025vygj3] {
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--cv-hairline-strong);
    border-radius: 6px;
    background: transparent;
    color: var(--cv-ink);
    outline: none;
    transition: border-color 0.15s;
}

.cv-input:focus[b-uo025vygj3] { border-color: var(--cv-eucalypt); }

.cv-add-med-btn[b-uo025vygj3] {
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--cv-eucalypt);
    background: var(--cv-eucalypt);
    color: var(--cv-paper);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cv-add-med-btn:disabled[b-uo025vygj3] {
    background: transparent;
    color: var(--cv-mute);
    border-color: var(--cv-hairline-strong);
    cursor: not-allowed;
}

/* Status row — three small pills horizontally. */
.cv-status-actions[b-uo025vygj3] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Recheck section — date picker on the left, optional Clear pill, and the
   relative-time line below. The date's own box is EdDatePicker's (QoL 2026-10-04,
   3C), whose trigger is a button: the old .cv-recheck-input that styled a date
   field here went with it. */
.cv-recheck[b-uo025vygj3] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.cv-recheck-label[b-uo025vygj3] {
    margin-top: 0.45rem;
    font-family: "JetBrains Mono", monospace;
    font-size: max(0.7rem, var(--ed-fs-floor, 0rem));
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cv-eucalypt);
}

.cv-recheck-label--overdue[b-uo025vygj3] { color: var(--cv-rust); }

/* "Consult saved 15 Oct — clear this recheck?" (sweep 2026-10-15, today-cases#20): a
   hint beside the date, never a clear. The unlisted note's voice, with its Clear. */
.cv-recheck-hint[b-uo025vygj3] {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--cv-ink-soft);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
}

/* A recheck on a case that is not open never reaches the Recheck list
   (2026-10-15 sweep, today-cases#2) — the sentence that says so. */
.cv-recheck-unlisted[b-uo025vygj3] {
    margin-top: 0.35rem;
    color: var(--cv-ink-soft);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
}

/* ── Quick-links rail ────────────────────────────────────────────────────── */

/* A band of editorial pills under the byline, inside the masthead rule. Was a
   vertical stack at the foot of the sidebar; moved 2026-07-26.

   It wraps rather than truncating. Until 2026-09-24 every label named its
   patient, which is what made them long; the name now sits once in the rail's
   lead-in (.cv-rail-lead, styled in css/desktop/caseview.css) and in each
   button's aria-label, but clipping a label would still hide what it does. No
   `white-space: nowrap` for the same reason: a pill wider than its row breaks
   its own text rather than pushing the page sideways. Below 900px it scrolls
   instead — see the media query. */
.cv-toolrail[b-uo025vygj3] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.15rem;
}

/* Borrowed from .cv-pill so the rail reads as part of the masthead it now sits
   in — same radius, same hairline, one step up in size because these are the
   page's primary actions rather than per-entry chrome. Live Consult keeps the
   green fill: the vet's most-likely next action stays visually weighted.

   No ::after arrow. It was list-affordance for the vertical stack and does not
   survive the move — and it never actually rendered: app.css claims
   .cv-quicklink::after for the press ripple, and the scoped rule here only ever
   overrode `content`, leaving the ripple's `opacity: 0` and `position: absolute`
   in force. Measured in the browser 2026-07-26 by reinstating the old rule at its
   real specificity: content "→", opacity 0. So the pseudo-element goes back to
   being the ripple it was written to be, and nothing leaves the screen. */
.cv-quicklink[b-uo025vygj3] {
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.3;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--cv-hairline-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--cv-ink);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.cv-quicklink:hover[b-uo025vygj3] {
    border-color: var(--cv-ink);
    background: var(--cv-paper-deep);
}

.cv-quicklink--primary[b-uo025vygj3] {
    background: var(--cv-eucalypt);
    color: var(--cv-paper);
    border-color: var(--cv-eucalypt);
}
.cv-quicklink--primary:hover[b-uo025vygj3] { background: var(--cv-ink); border-color: var(--cv-ink); color: var(--cv-paper); }

/* ── Mobile / tablet ────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .cv-body[b-uo025vygj3] {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cv-sidebar[b-uo025vygj3] {
        position: static;
        gap: 2rem;
    }

    /* The rail stops wrapping and starts scrolling at the same width the spread
       stops being two columns. Wrapped, seven labels this long cost 158px at iPad
       portrait and 282px at 375px — a block of buttons between the patient's name
       and their record, which is the burial this move was meant to undo, just
       relocated to the top of the page. Swiping a 34px strip is the lesser cost.

       Desktop keeps the wrap: at 1180px it is two rows with every action visible
       at once, which beats hiding two of them behind a scroll.

       (Measured with the old patient-suffixed labels. Since 2026-09-24 the labels
       are short and the patient's name rides a lead-in that sticks to the strip's
       left edge here — css/desktop/caseview.css.) */
    .cv-toolrail[b-uo025vygj3] {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Touch platforms overlay their scrollbar; a desktop browser narrowed past
           this breakpoint draws a classic one, which adds 10px of grey trough under
           the chips and reads as a stray divider in the masthead. The half-visible
           next chip is the affordance instead — see below. */
        scrollbar-width: none;
    }

    .cv-toolrail[b-uo025vygj3]::-webkit-scrollbar { display: none; }

    /* That half-visible chip is the ONLY thing saying the rail scrolls, so no pill
       may shrink to make the row "fit". */
    .cv-quicklink[b-uo025vygj3] { flex: 0 0 auto; }
}

@media (max-width: 640px) {
    .cv-page[b-uo025vygj3] { padding: 1rem 1.1rem 3rem; }

    .cv-botanical[b-uo025vygj3] { width: 48px; height: 62px; opacity: 0.45; }

    .cv-headline[b-uo025vygj3] { font-size: clamp(2.2rem, 11vw, 3.2rem); }
    .cv-standfirst[b-uo025vygj3] { font-size: 1.05rem; margin-bottom: 1.75rem; }
    .cv-dropcap[b-uo025vygj3] { font-size: 2.8rem; padding-right: 0.35rem; }

    .cv-byline[b-uo025vygj3] { font-size: 0.82rem; gap: 0.5rem 0.7rem; }

    /* Marginalia collapses to a horizontal byline row above each entry —
       the "left rail" becomes a top rail on phone. */
    .cv-entry[b-uo025vygj3] {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 1.1rem 0;
    }

    .cv-marginalia[b-uo025vygj3] {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        text-align: left;
        gap: 0.45rem 0.65rem;
        padding-top: 0;
    }

    .cv-marg-day[b-uo025vygj3] { font-size: 1.2rem; }
    .cv-marg-month[b-uo025vygj3], .cv-marg-time[b-uo025vygj3], .cv-marg-source[b-uo025vygj3] { margin-top: 0; }
    .cv-marg-badge[b-uo025vygj3] { margin-top: 0; }

    .cv-entry-title[b-uo025vygj3] { font-size: 1.1rem; }
}

/* ── Dark mode ────────────────────────────────────────────────────────────
   Cream paper inverts to a deep warm-charcoal "ink". Eucalypt and terracotta
   lift slightly so they don't drift into mud. */

[data-theme="dark"] .cv-page[b-uo025vygj3] {
    --cv-paper:       #1c1a16;
    --cv-paper-deep:  #14130f;
    --cv-ink:         #ede6d5;
    --cv-ink-soft:    #c9c1b1;
    --cv-mute:        #9c968a;   /* lifted to match --ed-mute dark; was 3.44:1 */
    --cv-eucalypt:    #84b48e;
    --cv-saffron:     #f0d460;
    --cv-mint:        #6cc296;
    --cv-rust:        #d56a52;
    --cv-hairline:    rgba(237, 230, 213, 0.10);
    --cv-hairline-strong: rgba(237, 230, 213, 0.25);
    --cv-grain:       rgba(237, 230, 213, 0.02);
    background:
        radial-gradient(ellipse at 18% 0%, rgba(201, 163, 91, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 82% 100%, rgba(132, 180, 142, 0.05) 0%, transparent 55%),
        var(--cv-paper);
}

/* App shell (>=641px): the article scroller already accounts for the stepper and
   held-audio banner rows, so the viewport calc floor above over-sizes the page by
   their height and leaves a blank scrollable band at the bottom. Scoped rules
   outrank app.css, so the migration override must live here. */
@media (min-width: 641px) {
    .cv-page[b-uo025vygj3] {
        min-height: 100%;
    }
}

/* Touch floor for the timeline/action controls (2026-09-03 sweep). The 2026-08-20
   audit measured these pills at 25-32px but its fix was phone-mode-only, and
   phone mode is opt-in per browser — a consult-room iPad without it kept desktop
   density on targets where Delete sits beside Open. In-file because a global
   rule loses to .cv-pill[b-xxx] on specificity (the ConsultStepper precedent);
   min-height rather than hit-expanders per the app.css note about wrapping rows. */
@media (max-width: 1024px), (pointer: coarse) {
    .cv-pill[b-uo025vygj3],
    .cv-pill--small[b-uo025vygj3],
    .cv-text-btn[b-uo025vygj3],
    .cv-med-remove[b-uo025vygj3],
    .cv-quicklink[b-uo025vygj3] {
        min-height: 44px;
    }

    .cv-med-remove[b-uo025vygj3] { padding: 0 0.6rem; }
}

/* ── Pinned case strip ─────────────────────────────────────────────────────────
   A zero-height sticky anchor at the top of the page; the bar hangs from it and
   slides in when app.js marks it data-shown. z 20 sits over the timeline and under
   the chrome (the top-row) and every overlay. */
/* Out of the spread's entrance stagger (app.css .cv-spread > *): it is not content,
   and a hidden bar has nothing to animate in. */
.cv-spread > .cv-pin[b-uo025vygj3] { animation: none; }

.cv-pin[b-uo025vygj3] {
    position: sticky;
    top: var(--shell-sticky-top);   /* under the fixed phone masthead (2026-10-17) */
    height: 0;
    z-index: 20;
}

.cv-pin-bar[b-uo025vygj3] {
    position: absolute;
    left: 0;
    right: 0;
    top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.9rem 0.5rem 0.6rem;
    border-radius: 18px;
    /* FLAT glass (2026-10-17 review): no backdrop-filter. The masthead's menus and the
       glass dialog panes open over this strip, and glass never stacks on glass; a
       near-solid pane with the floating family's edge, lit line and shadow costs nothing
       to scroll. */
    background: var(--glass-flat);
    border: 1px solid var(--glass-float-edge);
    box-shadow: inset 0 1px 0 var(--glass-float-light), 0 10px 30px var(--glass-float-shade);
    font-family: var(--ed-ui);
    color: var(--ed-ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0s linear 0.18s;
}

.cv-pin[data-shown] .cv-pin-bar[b-uo025vygj3] {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0s;
}

.cv-pin-initial[b-uo025vygj3] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--ed-paper-deep);
    color: var(--ed-terracotta);
    font-weight: 700;
}

.cv-pin-text[b-uo025vygj3] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cv-pin-name[b-uo025vygj3] {
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-pin-meta[b-uo025vygj3] {
    font-size: max(0.8rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .cv-pin-bar[b-uo025vygj3],
    .cv-pin[data-shown] .cv-pin-bar[b-uo025vygj3] { transform: none; transition: none; }
}
/* /Pages/Connections.razor.rz.scp.css */
/* All connections in use.

   Deliberately plain. A vet reads this while someone is waiting in the consult room,
   so the two things that matter — who is holding a connection, and the button that
   frees one — carry no decoration between them. */

.connections-page[b-nrj4h82rvg] {
    max-width: 640px;
    /* The app shell's article is the only desktop scroller; a page that sets its own
       height would create a second one. */
    min-height: 100%;
    padding-bottom: 1.5rem;
}

.connections-list[b-nrj4h82rvg] {
    margin: 1rem 0;
    border: 1px solid var(--color-green-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.connections-row[b-nrj4h82rvg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-surface-solid);
}

.connections-row + .connections-row[b-nrj4h82rvg] {
    border-top: 1px solid var(--color-green-border);
}

/* The device being read from. Named rather than hidden: a clinic whose own machine
   already holds a connection needs to see that immediately, or they release a
   colleague's for nothing. */
.connections-row--self[b-nrj4h82rvg] {
    background: var(--color-green-bg);
}

.connections-row-main[b-nrj4h82rvg] {
    min-width: 0;
}

.connections-row-label[b-nrj4h82rvg] {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connections-row-meta[b-nrj4h82rvg] {
    margin-top: 0.1rem;
}

.connections-actions[b-nrj4h82rvg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Free all other connections (Brad, round 8). Under the list it acts on, and quieter than
   Release: it is the big hammer, so it asks first, and the question says what it costs. */
.connections-free-all[b-nrj4h82rvg] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

.connections-confirm[b-nrj4h82rvg] {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--ed-rust);
    border-radius: var(--radius-md);
    background: var(--color-surface-solid);
    color: var(--color-text-main);
}

.connections-confirm-title[b-nrj4h82rvg] {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.connections-confirm-body[b-nrj4h82rvg] {
    margin-bottom: 0.75rem;
}

.connections-confirm-actions[b-nrj4h82rvg] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.connections-notice[b-nrj4h82rvg] {
    margin: 0.75rem 0 0;
    color: var(--color-text-main);
}
/* /Pages/DeviceCheck.razor.rz.scp.css */
/* "Check this device" (2026-10-17). One line per check: a status word and a coloured
   left rule, so the state reads without colour too. Tokens only — every ink here is
   one css-hygiene already measures on the paper surfaces in both themes. */

/* article.content is the only desktop scroller (the app-shell contract); a scoped sheet
   is never reached by app.css's min-height block, so the page says it here itself. */
.tool-page[b-hq46x11nr5] {
    min-height: 100%;
}

.device-check-panel[b-hq46x11nr5] {
    max-width: 46rem;
}

.device-check-list[b-hq46x11nr5] {
    flex-shrink: 0;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.device-check-line[b-hq46x11nr5] {
    border: 1px solid var(--ed-hairline);
    border-left: 4px solid var(--ed-hairline-strong);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
    /* Long hostnames and the user-agent line must wrap, never widen the page. */
    overflow-wrap: anywhere;
}

.device-check-line--pass[b-hq46x11nr5] { border-left-color: var(--ed-mint); }
.device-check-line--warn[b-hq46x11nr5] { border-left-color: var(--ed-terracotta); }
.device-check-line--problem[b-hq46x11nr5] { border-left-color: var(--ed-rust); }
.device-check-line--info[b-hq46x11nr5] { border-left-color: var(--ed-hairline-strong); }

.device-check-head[b-hq46x11nr5] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.device-check-badge[b-hq46x11nr5] {
    font-family: var(--ed-ui);
    font-size: max(0.8rem, var(--ed-fs-floor, 0rem));
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ed-mute);
}

.device-check-line--pass .device-check-badge[b-hq46x11nr5] { color: var(--ed-mint); }
.device-check-line--warn .device-check-badge[b-hq46x11nr5] { color: var(--ed-terracotta); }
.device-check-line--problem .device-check-badge[b-hq46x11nr5] { color: var(--ed-rust); }

.device-check-title[b-hq46x11nr5] {
    font-weight: 600;
    color: var(--ed-ink);
}

.device-check-detail[b-hq46x11nr5] {
    font-size: max(0.875rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink-soft);
    margin-top: 0.2rem;
}

.device-check-steps[b-hq46x11nr5] {
    font-size: max(0.875rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink);
    margin: 0.4rem 0 0;
    padding-left: 1.25rem;
}

.device-check-mic[b-hq46x11nr5] {
    margin-top: 0.5rem;
}

.device-check-meter[b-hq46x11nr5] {
    margin-top: 0.5rem;
    height: 0.5rem;
    max-width: 16rem;
    border-radius: var(--radius-full);
    background: var(--ed-paper-deep);
    overflow: hidden;
}

.device-check-meter-fill[b-hq46x11nr5] {
    height: 100%;
    background: var(--ed-mint);
    transition: width 0.1s linear;
}

.device-check-summary[b-hq46x11nr5] {
    font-family: var(--ed-mono);
    font-size: max(0.8rem, var(--ed-fs-floor, 0rem));
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: var(--ed-paper-deep);
    color: var(--ed-ink);
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    user-select: all;
    /* The panel is a flex column; without this the report collapsed to one clipped line. */
    flex-shrink: 0;
    max-height: 50vh;
    overflow-y: auto;
}

/* Phone layout: the panel already fills the width; tighten the line padding so a 375px
   screen keeps more of each sentence per row. */
:root[data-phone="on"] .device-check-line[b-hq46x11nr5] {
    padding: 0.55rem 0.7rem;
}
/* /Pages/Diagnosis.razor.rz.scp.css */
/* Theme tokens only — see the note in MedicationQuickPicks.razor.css. */
.ddx-list[b-yz3xl0eyhl] { margin-top: 1rem; }
.ddx-row[b-yz3xl0eyhl] {
    border: 1px solid var(--ed-hairline);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--ed-paper-warm);
    color: var(--ed-ink);
    transition: background 0.2s ease-out, border-color 0.2s ease-out;
}
.ddx-row.selected[b-yz3xl0eyhl] { border-color: var(--ed-eucalypt, #1f3a2a); background: var(--ed-terracotta-soft, rgba(133, 85, 58, 0.13)); }
.ddx-row-header[b-yz3xl0eyhl] { display: flex; align-items: center; gap: 0.5rem; margin: 0; cursor: pointer; }
.ddx-name[b-yz3xl0eyhl] { font-weight: 600; flex: 1; transition: color 0.2s ease-out; }
.ddx-row.selected .ddx-name[b-yz3xl0eyhl] { color: var(--ed-eucalypt, #1f3a2a); }
.ddx-pill[b-yz3xl0eyhl] {
    font-size: max(0.75rem, var(--ed-fs-floor, 0rem)); padding: 0.15rem 0.5rem; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
/* The three likelihood pills keep their literal colours DELIBERATELY. Each hardcodes its
   own background AND its own text, so the pair stays legible in either theme — unlike the
   card above, which paired a fixed background with inherited ink. They read as bright chips
   in dark mode; picking dark-mode severity colours is a palette decision for the designer,
   not something a contrast fix should invent. Convert all three together or none. */
.ddx-pill-high[b-yz3xl0eyhl] { background: #fde2e2; color: #b22020; }
.ddx-pill-moderate[b-yz3xl0eyhl] { background: #fff1cc; color: #855900; }
.ddx-pill-low[b-yz3xl0eyhl] { background: #e5e8ec; color: #5e6168; }
/* These sit ON the card, so they must follow it — a fixed grey on a dark card disappears. */
.ddx-rationale[b-yz3xl0eyhl] { margin-top: 0.5rem; color: var(--ed-ink-soft); font-size: 0.92rem; }
.ddx-pearl[b-yz3xl0eyhl] { margin-top: 0.25rem; color: var(--ed-mute); font-size: 0.85rem; }
.ddx-actions[b-yz3xl0eyhl] { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Eucalypt check — committing a clinical judgment gets a hand-drawn tick with
   a small overshoot flick; retracting is deliberately cheap and unceremonious
   (110ms fade, no draw). The native input keeps focus + keyboard behavior. */
.euc-check-input[b-yz3xl0eyhl] {
    position: absolute;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.euc-check[b-yz3xl0eyhl] {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--ed-hairline-strong, rgba(31, 29, 24, 0.28));
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    pointer-events: none;
}

.euc-check-input:focus-visible + .euc-check[b-yz3xl0eyhl] {
    outline: 2px solid var(--ed-terracotta, #85553a);
    outline-offset: 1px;
}

.euc-check-fill[b-yz3xl0eyhl] {
    position: absolute;
    inset: 0;
    background: var(--ed-eucalypt, #1f3a2a);
    transform: scale(0);
    transform-origin: 0% 100%;
    transition: transform 0.11s ease-in;
}

.euc-check-input:checked + .euc-check .euc-check-fill[b-yz3xl0eyhl] {
    transform: scale(1);
    transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.euc-check-tick[b-yz3xl0eyhl] {
    position: absolute;
    inset: 0;
    fill: none;
    stroke: var(--ed-paper, #f5efe1);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 19;
    stroke-dashoffset: 19;
    transition: stroke-dashoffset 0.09s ease-in;
}

.euc-check-input:checked + .euc-check .euc-check-tick[b-yz3xl0eyhl] {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.18s cubic-bezier(0.34, 1.2, 0.64, 1) 0.09s;
}

/* Awakened handoff — the next stage wakes because the vet's judgment powered
   it: ONLY the 0->1 selection threshold animates (the class flips exactly
   then); extra ticks change nothing; back to zero fades out slower with no
   motion — waking is an event, sleeping is not. */
.ddx-continue[b-yz3xl0eyhl] {
    background: transparent;
    color: var(--ed-mute, #8a8579);
    border: 1px solid var(--ed-hairline, rgba(31, 29, 24, 0.14));
    transition: background 0.4s ease-out, color 0.4s ease-out,
                border-color 0.4s ease-out, transform 0.4s ease-out;
}

.ddx-continue--awake[b-yz3xl0eyhl] {
    background: var(--ed-eucalypt, #1f3a2a);
    color: var(--ed-paper, #f5efe1);
    border-color: var(--ed-eucalypt, #1f3a2a);
    transform: translateY(-2px);
    transition: background 0.25s ease-out, color 0.25s ease-out,
                border-color 0.25s ease-out, transform 0.25s ease-out;
}

.ddx-continue--awake:hover[b-yz3xl0eyhl] { background: var(--ed-eucalypt-soft, #3a5a45); border-color: var(--ed-eucalypt-soft, #3a5a45); }

@media (prefers-reduced-motion: reduce) {
    .euc-check-fill[b-yz3xl0eyhl], .euc-check-tick[b-yz3xl0eyhl], .ddx-row[b-yz3xl0eyhl], .ddx-name[b-yz3xl0eyhl] { transition: none; }
    .ddx-continue[b-yz3xl0eyhl], .ddx-continue--awake[b-yz3xl0eyhl] { transition: none; transform: none; }
}
/* /Pages/Discharge.razor.rz.scp.css */
/* Theme tokens only — see the note in MedicationQuickPicks.razor.css. */
.discharge-context-badge[b-g86epkczi1] {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
    font-size: 0.85rem; color: var(--ed-mute);
    margin-bottom: 0.5rem;
}
.discharge-context-badge span[b-g86epkczi1] {
    background: var(--ed-paper-deep); border: 1px solid var(--ed-hairline);
    padding: 0.1rem 0.45rem; border-radius: 4px;
}

/* Owner's email + the note on what Share / email does — sits under the result bar. */
.discharge-share[b-g86epkczi1] {
    max-width: 32rem;
    margin: 0.25rem 0 0.75rem;
}

/* Phone mode's Share, under the address it sends to (QoL 2026-10-04, phone #5). The
   wrapper's display is .phone-mode-only's business; only the button is spaced here. */
.discharge-share-phone .btn-share-discharge[b-g86epkczi1] {
    margin-top: 0.5rem;
}
/* /Pages/DrugBook.razor.rz.scp.css */
/* Drug Book: a quick-reference card (Brad, 2026-09-24). A list on the left, the card on
   the right, and on a phone one or the other (phone rules: css/phone/drugbook.css).
   One line per fact; the source is a small icon; every colour is a token (see the
   CSS-literals note), and every size under 0.8rem consumes the comfort floor. */

.drugbook-page[b-yp93dkvf8x] {
    /* article.content is the only desktop scroller; min-height, never height. */
    min-height: 100%;
    padding-bottom: 1.5rem;
}

.drugbook-message[b-yp93dkvf8x] { margin-bottom: 0.75rem; }

/* ── Card / Review ───────────────────────────────────────────────────────────── */

.drugbook-mode[b-yp93dkvf8x] {
    display: inline-flex;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.drugbook-mode-btn[b-yp93dkvf8x] {
    border: 0;
    background: transparent;
    color: var(--ed-ink-soft);
    font-family: var(--ed-ui);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.3rem 0.95rem;
    min-height: 2.2rem;
}

.drugbook-mode-btn + .drugbook-mode-btn[b-yp93dkvf8x] { border-left: 1px solid var(--ed-hairline-strong); }

.drugbook-mode-btn--on[b-yp93dkvf8x] {
    background: var(--ed-eucalypt);
    color: var(--ed-paper-warm);
}

/* ── The list ────────────────────────────────────────────────────────────────── */

.drugbook-body[b-yp93dkvf8x] {
    display: grid;
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.drugbook-list[b-yp93dkvf8x] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.drugbook-intro[b-yp93dkvf8x] {
    color: var(--color-text-muted);
    font-family: var(--ed-ui);
    font-size: 0.85rem;
    margin: 0;
}

.drugbook-filter[b-yp93dkvf8x] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--ed-ui);
    font-size: 0.88rem;
    min-height: 44px;
}

.drugbook-drugs[b-yp93dkvf8x] {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-green-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface-solid);
}

.drugbook-drugs li + li[b-yp93dkvf8x] { border-top: 1px solid var(--ed-hairline); }

.drugbook-drug[b-yp93dkvf8x] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.8rem;
    border: 0;
    background: transparent;
    color: var(--color-text-main);
    text-align: left;
    font-family: var(--ed-ui);
}

.drugbook-drug:hover[b-yp93dkvf8x] { background: var(--color-green-soft); }

.drugbook-drug--active[b-yp93dkvf8x] {
    background: var(--color-accent-soft);
    box-shadow: inset 3px 0 0 var(--color-accent);
}

.drugbook-drug-name[b-yp93dkvf8x] { font-weight: 600; }

.drugbook-drug-count[b-yp93dkvf8x],
.drugbook-drug-class[b-yp93dkvf8x] {
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
}

/* ── The card ────────────────────────────────────────────────────────────────── */

.drugbook-mono[b-yp93dkvf8x] {
    min-width: 0;
    padding: var(--ed-sp-pad-y) var(--ed-sp-pad-x);
    border: 1px solid var(--color-green-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface-solid);
}

.drugbook-back[b-yp93dkvf8x] { display: none; padding-left: 0; }

.drugbook-head[b-yp93dkvf8x] { margin-bottom: 0.25rem; }

.drugbook-title[b-yp93dkvf8x] {
    font-family: var(--ed-display);
    color: var(--ed-eucalypt);
    margin: 0 0 0.15rem;
}

.drugbook-class[b-yp93dkvf8x] {
    font-family: var(--ed-ui);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ed-ink-soft);
}

/* Brands are for recognition, not reading: one line, the rest on hover. */
.drugbook-brands[b-yp93dkvf8x] {
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drugbook-mech[b-yp93dkvf8x] {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.1rem 0.5rem;
    margin-top: 0.45rem;
}

.drugbook-mech-label[b-yp93dkvf8x] {
    font-family: var(--ed-ui);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.drugbook-facts--mech[b-yp93dkvf8x] { flex: 1 1 14rem; }
.drugbook-facts--mech .drugbook-fact[b-yp93dkvf8x] { border-bottom: 0; padding: 0; }

/* Species chips: Dog / Cat / All, on one row. */
.drugbook-species[b-yp93dkvf8x] {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.drugbook-species-chip[b-yp93dkvf8x] {
    min-width: 3.6rem;
    min-height: 2.2rem;
    padding: 0.25rem 0.85rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--ed-ink-soft);
    font-family: var(--ed-ui);
    font-size: 0.88rem;
    font-weight: 600;
}

.drugbook-species-chip--on[b-yp93dkvf8x] {
    background: var(--ed-eucalypt);
    color: var(--ed-paper-warm);
    border-color: var(--ed-eucalypt);
}

.drugbook-hint[b-yp93dkvf8x] {
    margin: 0.6rem 0 0;
    font-family: var(--ed-ui);
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.drugbook-hint--warn[b-yp93dkvf8x] { color: var(--ed-rust); }

.drugbook-inline-btn[b-yp93dkvf8x] { padding: 0; vertical-align: baseline; font-size: inherit; }

.drugbook-approve-drug[b-yp93dkvf8x] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    font-family: var(--ed-ui);
    font-size: 0.9rem;
}

/* ── Sections ────────────────────────────────────────────────────────────────── */

.drugbook-section[b-yp93dkvf8x] {
    margin-top: 0.9rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--ed-hairline-strong);
}

.drugbook-section-head[b-yp93dkvf8x] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.drugbook-section h3[b-yp93dkvf8x],
.drugbook-sub h4[b-yp93dkvf8x] {
    font-family: var(--ed-display);
    font-size: 1.05rem;
    margin: 0;
}

.drugbook-sub[b-yp93dkvf8x] { margin-top: 0.6rem; }
.drugbook-sub h4[b-yp93dkvf8x] { font-size: 0.95rem; color: var(--ed-ink-soft); }

.drugbook-notice[b-yp93dkvf8x] {
    margin: 0.1rem 0 0.2rem;
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    font-style: italic;
    color: var(--color-text-muted);
}

.drugbook-approve-section[b-yp93dkvf8x] { flex: 0 0 auto; }

/* ── One fact, one line ──────────────────────────────────────────────────────── */

.drugbook-facts[b-yp93dkvf8x] {
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0;
}

.drugbook-fact[b-yp93dkvf8x] {
    padding: 0.32rem 0;
    border-bottom: 1px solid var(--ed-hairline);
}

.drugbook-fact:last-child[b-yp93dkvf8x] { border-bottom: 0; }

.drugbook-line[b-yp93dkvf8x] {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.drugbook-fact--rejected .drugbook-text[b-yp93dkvf8x] {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

/* A fact that names one of the patient's current medicines. */
.drugbook-fact--flag[b-yp93dkvf8x] {
    padding-left: 0.55rem;
    background: var(--ed-terracotta-soft);
    box-shadow: inset 3px 0 0 var(--ed-terracotta);
    border-radius: var(--radius-sm);
}

.drugbook-sp[b-yp93dkvf8x],
.drugbook-tag[b-yp93dkvf8x] {
    display: inline-block;
    margin-right: 0.3rem;
    padding: 0 0.45rem;
    border-radius: var(--radius-full);
    font-family: var(--ed-ui);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    font-weight: 700;
    line-height: 1.6;
    vertical-align: 0.08em;
}

.drugbook-sp[b-yp93dkvf8x] {
    border: 1px solid var(--ed-hairline-strong);
    color: var(--ed-ink-soft);
}

.drugbook-tag[b-yp93dkvf8x] { margin: 0 0 0 0.3rem; }
.drugbook-tag--differ[b-yp93dkvf8x] { color: var(--ed-rust); border: 1px solid var(--ed-rust); }
.drugbook-tag--mention[b-yp93dkvf8x] { color: var(--ed-terracotta); border: 1px solid var(--ed-terracotta); }
/* Review only: an approved fact re-import withdrew. Dashed, so it never reads as "Sources differ". */
.drugbook-tag--withdrawn[b-yp93dkvf8x] { color: var(--ed-rust); border: 1px dashed var(--ed-rust); }
/* Review only (sweep 2026-10-15): a reviewed fact whose file now words it differently. */
.drugbook-tag--source[b-yp93dkvf8x] { color: var(--ed-rust); border: 1px dotted var(--ed-rust); }
.drugbook-source-change[b-yp93dkvf8x] {
    margin: 0.3rem 0 0.15rem;
    padding-left: 0.7rem;
    border-left: 3px dotted var(--ed-rust);
    color: var(--ed-ink-soft);
    overflow-wrap: anywhere;
}

/* The source: an icon at the end of the line. The label lives in its title and its
   accessible name, never on the card. */
.drugbook-src[b-yp93dkvf8x] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.3rem;
    font-size: 0.95em;
    color: var(--color-text-muted);
    vertical-align: -0.12em;
    text-decoration: none;
}

a.drugbook-src:hover[b-yp93dkvf8x],
a.drugbook-src:focus-visible[b-yp93dkvf8x] { color: var(--ed-terracotta); }

.drugbook-src--nolink[b-yp93dkvf8x] { opacity: 0.6; }

/* ── Review controls ─────────────────────────────────────────────────────────── */

.drugbook-dot[b-yp93dkvf8x] {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    border: 2px solid var(--ed-mute);
    vertical-align: 0.05em;
}

.drugbook-dot--approved[b-yp93dkvf8x] { background: var(--ed-mint); border-color: var(--ed-mint); }
.drugbook-dot--rejected[b-yp93dkvf8x] { background: var(--ed-rust); border-color: var(--ed-rust); }

.drugbook-controls[b-yp93dkvf8x] {
    display: inline-flex;
    gap: 0.25rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.drugbook-icon-btn[b-yp93dkvf8x] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    padding: 0;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ed-ink-soft);
    font-family: var(--ed-ui);
    font-size: 0.95rem;
    line-height: 1;
}

.drugbook-icon-btn:hover:not(:disabled)[b-yp93dkvf8x] { border-color: var(--ed-ink-soft); color: var(--ed-ink); }
.drugbook-icon-btn--approve:hover:not(:disabled)[b-yp93dkvf8x] { border-color: var(--ed-mint); color: var(--ed-mint); }
.drugbook-icon-btn--reject:hover:not(:disabled)[b-yp93dkvf8x] { border-color: var(--ed-rust); color: var(--ed-rust); }
.drugbook-icon-btn:disabled[b-yp93dkvf8x] { opacity: 0.35; }

.drugbook-quote[b-yp93dkvf8x] {
    margin: 0.35rem 0 0.15rem;
    padding-left: 0.7rem;
    border-left: 3px solid var(--ed-hairline-strong);
    font-style: italic;
    color: var(--ed-ink-soft);
    overflow-wrap: anywhere;
}

.drugbook-quote-meta[b-yp93dkvf8x] {
    margin-top: 0.2rem;
    font-family: var(--ed-ui);
    font-size: max(0.75rem, var(--ed-fs-floor, 0rem));
    font-style: normal;
    color: var(--color-text-muted);
}

.drugbook-actions[b-yp93dkvf8x] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.drugbook-edit[b-yp93dkvf8x] { margin-top: 0.25rem; }

/* ── Typed in by a reviewer (round 6, 2026-09-27) ────────────────────────────── */
/* "Add drug" above the list and "Add fact" in Review. The page's own pieces (form-control,
   the species chips, .drugbook-actions, .drugbook-hint) in a panel framed like the list. */

.drugbook-add-btn[b-yp93dkvf8x] { align-self: flex-start; }

.drugbook-add[b-yp93dkvf8x] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--color-green-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-solid);
    font-family: var(--ed-ui);
}

.drugbook-add-fact[b-yp93dkvf8x] { margin: 0.4rem 0 0.2rem; }

.drugbook-add-fields[b-yp93dkvf8x] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drugbook-add-field[b-yp93dkvf8x] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ed-ink-soft);
}

.drugbook-add-optional[b-yp93dkvf8x] { font-weight: 400; color: var(--color-text-muted); }

.drugbook-add-legend[b-yp93dkvf8x] {
    margin-top: 0.2rem;
    font-family: var(--ed-display);
    font-size: 0.95rem;
    color: var(--ed-ink);
}

/* Four chips ("Dog and cat" among them) wrap in the list's narrow column. */
.drugbook-add-species[b-yp93dkvf8x] { flex-wrap: wrap; margin-top: 0; }

.drugbook-add .drugbook-hint[b-yp93dkvf8x] { margin: 0; }
.drugbook-add .drugbook-actions[b-yp93dkvf8x] { margin-top: 0; }

.drugbook-add-fact-row[b-yp93dkvf8x] { margin-top: 0.6rem; }
.drugbook-add-fact-btn[b-yp93dkvf8x] { flex: 0 0 auto; }

/* Review only: who typed a Manual fact in. Quiet, like the source icon. */
.drugbook-added[b-yp93dkvf8x] {
    margin-left: 0.35rem;
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* ── Interaction check ───────────────────────────────────────────────────────── */

.drugbook-check[b-yp93dkvf8x] {
    margin: 0.35rem 0 0.25rem;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-md);
    background: var(--ed-paper-deep);
    color: var(--ed-ink);
    font-family: var(--ed-ui);
    font-size: 0.9rem;
}

.drugbook-check-line[b-yp93dkvf8x] { margin: 0; }
.drugbook-check-line + .drugbook-check-line[b-yp93dkvf8x] { margin-top: 0.15rem; }
.drugbook-check-pending[b-yp93dkvf8x] { font-style: italic; }
.drugbook-check-failed[b-yp93dkvf8x],
.drugbook-check-partial[b-yp93dkvf8x] { font-weight: 600; }

.drugbook-listed[b-yp93dkvf8x] { margin-top: 0.5rem; }

.drugbook-listed-head[b-yp93dkvf8x] {
    font-family: var(--ed-ui);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ed-ink-soft);
}

.drugbook-check-note[b-yp93dkvf8x],
.drugbook-check-none[b-yp93dkvf8x] {
    margin: 0.4rem 0 0;
    font-family: var(--ed-ui);
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* ── Folded sections ─────────────────────────────────────────────────────────── */

.drugbook-fold-btn[b-yp93dkvf8x] {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    min-height: 2.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ed-ink);
    font-family: var(--ed-display);
    font-size: 1.05rem;
    text-align: left;
}

.drugbook-fold-caret[b-yp93dkvf8x] { font-family: var(--ed-ui); color: var(--color-text-muted); width: 0.8rem; }
.drugbook-fold-count[b-yp93dkvf8x] { font-family: var(--ed-ui); font-size: 0.9rem; color: var(--color-text-muted); }

.drugbook-fold-what[b-yp93dkvf8x] {
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--color-text-muted);
}

/* The registered-products list: one product per line, tight. */
.drugbook-facts--compact .drugbook-fact[b-yp93dkvf8x] { padding: 0.18rem 0; font-size: 0.9rem; }

.drugbook-gaps ul[b-yp93dkvf8x] { margin: 0.4rem 0 0; padding-left: 1.2rem; }

.drugbook-empty[b-yp93dkvf8x] { padding: 0.5rem 0; }

/* Comfort view: fine print earns upright letters (the MedicationRow precedent). */
:root[data-comfort="on"] .drugbook-notice[b-yp93dkvf8x] { font-style: normal; }

/* One pane at a time on a narrow window: the list until a drug is open, then the card
   with a Back. Phone MODE gets the same, and more, from css/phone/drugbook.css. */
@media (max-width: 760px) {
    .drugbook-body[b-yp93dkvf8x] { grid-template-columns: minmax(0, 1fr); }
    .drugbook-page--open .drugbook-list[b-yp93dkvf8x] { display: none; }
    .drugbook-page:not(.drugbook-page--open) .drugbook-mono[b-yp93dkvf8x] { display: none; }
    .drugbook-back[b-yp93dkvf8x] { display: inline-block; min-height: 44px; }
}

/* Touch floor (a global rule loses to these scoped selectors on specificity). */
@media (max-width: 1024px), (pointer: coarse) {
    .drugbook-icon-btn[b-yp93dkvf8x] { width: 44px; height: 44px; }
    .drugbook-species-chip[b-yp93dkvf8x],
    .drugbook-mode-btn[b-yp93dkvf8x],
    .drugbook-fold-btn[b-yp93dkvf8x],
    .drugbook-add-btn[b-yp93dkvf8x],
    .drugbook-add-fact-btn[b-yp93dkvf8x],
    .drugbook-calc-btn[b-yp93dkvf8x] { min-height: 44px; }
}

/* "Calculate" on an approved dose line (workflow helpers F2, 2026-09-27). A small outlined
   pill after the text: findable, but quieter than the dose it works on. The calculator
   itself is DrugBookDoseCalc and styles itself. */
.drugbook-calc-btn[b-yp93dkvf8x] {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    margin-left: 0.3rem;
    padding: 0 0.6rem;
    border: 1px solid var(--ed-eucalypt);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--ed-eucalypt);
    font-family: var(--ed-ui);
    font-size: 0.82rem;
    font-weight: 600;
    vertical-align: 0.08em;
}

.drugbook-calc-btn[aria-expanded="true"][b-yp93dkvf8x] {
    background: var(--ed-eucalypt);
    color: var(--ed-paper-warm);
}

.drugbook-calc-btn:focus-visible[b-yp93dkvf8x] {
    outline: 2px solid var(--ed-terracotta);
    outline-offset: 2px;
}

/* "Other sources (N)": overseas rows folded behind the AU label (DrugBookSourceRank).
   Quiet, the same weight as the fact text's source icon: it is a way to more, not a warning. */
.drugbook-other-btn[b-yp93dkvf8x] {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    margin-top: 0.15rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ed-terracotta);
    font-family: var(--ed-ui);
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.drugbook-other-btn:focus-visible[b-yp93dkvf8x] {
    outline: 2px solid var(--ed-terracotta);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ── 2026-11-15: the floating bar, the whole-drug tools, and drug-file facts ──── */

/* The page's header floats (Brad: the Card / Review switch scrolled away down a 69-drug
   list). Sticky inside whatever scrolls the page: article.content on a desktop, the page
   under the fixed masthead on a phone (--shell-sticky-top is that masthead's height, 0 on
   a desktop). Opaque, or the list reads through it; z 5 as the result bar: over the page's
   own content, far under the chrome. The desktop card sticks below it (css/desktop/tools.css
   reads --drugbook-bar-h). */
.drugbook-bar[b-yp93dkvf8x] {
    position: sticky;
    top: var(--shell-sticky-top, 0px);
    z-index: 5;
    background: var(--ed-paper);
}

.drugbook-tools-link[b-yp93dkvf8x] { text-decoration: none; }

.drugbook-drug-hidden[b-yp93dkvf8x] {
    font-size: max(0.75rem, var(--ed-fs-floor, 0rem));
    font-weight: 700;
    color: var(--ed-rust);
}

.drugbook-hidden-note[b-yp93dkvf8x] {
    padding: 0.45rem 0.7rem;
    border-left: 3px solid var(--ed-rust);
    background: var(--ed-paper-deep);
    border-radius: var(--radius-sm);
}

.drugbook-drug-tools[b-yp93dkvf8x] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    margin-top: 0.6rem;
    font-family: var(--ed-ui);
    font-size: 0.9rem;
}

.drugbook-drug-tools--ask[b-yp93dkvf8x] {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: var(--radius-md);
    background: var(--ed-paper-deep);
}

.drugbook-drug-tools--ask > span[b-yp93dkvf8x] { flex: 1 1 16rem; }

.drugbook-delete-btn[b-yp93dkvf8x] { color: var(--ed-rust); padding-inline: 0.2rem; }

.drugbook-file-line[b-yp93dkvf8x] { overflow-wrap: anywhere; }

.drugbook-tag--evidence[b-yp93dkvf8x] { color: var(--ed-ink-soft); border: 1px solid var(--ed-hairline-strong); }

/* A source that was not read in full carries a small star; its title says which kind. */
.drugbook-src-mark[b-yp93dkvf8x] {
    margin-left: 0.05rem;
    font-family: var(--ed-ui);
    font-size: 0.8em;
    font-weight: 700;
    color: var(--ed-rust);
}

/* Review only: the numbers the calculator will use, under the words they must match. */
.drugbook-numbers[b-yp93dkvf8x] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.6rem;
    margin: 0.15rem 0 0.1rem;
    font-family: var(--ed-ui);
    font-size: 0.85rem;
    color: var(--ed-ink-soft);
}

.drugbook-cap-rule[b-yp93dkvf8x] { width: auto; max-width: 100%; }

.drugbook-source-change-actions[b-yp93dkvf8x] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.6rem;
    margin-top: 0.3rem;
}

.drugbook-source-change-how[b-yp93dkvf8x] {
    font-family: var(--ed-ui);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

@media (max-width: 1024px), (pointer: coarse) {
    .drugbook-drug-tools .btn[b-yp93dkvf8x],
    .drugbook-source-change-actions .btn[b-yp93dkvf8x],
    .drugbook-cap-rule[b-yp93dkvf8x] { min-height: 44px; }
}

/* One pane wide, the floating bar is ONE row: title, the Card / Review switch, Tools. A bar
   that floats costs its height on every screenful, and three wrapped rows was a fifth of a
   phone. The title gives way first (ellipsis). "Import batch files" re-reads the files that
   ship with the app, a desk job: it is not offered at this width (it is still in Review on
   a wider screen). Phone MODE repeats this in css/phone/drugbook.css. */
@media (max-width: 760px) {
    .drugbook-bar[b-yp93dkvf8x] {
        flex-wrap: nowrap;
        align-items: center;
        padding-block: 0.4rem;
    }

    .drugbook-bar > span[b-yp93dkvf8x] {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .drugbook-bar .tool-header-actions[b-yp93dkvf8x] {
        width: auto;
        flex: 0 0 auto;
        flex-wrap: nowrap;
    }

    .drugbook-batch-btn[b-yp93dkvf8x] { display: none; }
}

/* ── The clinician's card, redesigned (Brad, 2026-11-29) ─────────────────────── */
/* A column of cards in clinical order: indications, dose, do not use beside interactions,
   side effects, precautions beside overdose, pregnancy beside other notes, then the folds.
   The brief's own palette is mapped onto the app's tokens (cream, eucalypt, chestnut,
   rust), so the contrast register already covers every pair here and nothing is a literal.
   Type under 0.8rem consumes the comfort floor. Phone mode: css/phone/drugbook.css. */

/* The cards carry the frame; the pane around them does not. */
.drugbook-mono--cards[b-yp93dkvf8x] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.25rem 0.5rem 0;
    border: 0;
    background: transparent;
}

.dbc-head[b-yp93dkvf8x] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
}

.dbc-head-main[b-yp93dkvf8x] { min-width: 0; flex: 1 1 14rem; }

.dbc-title[b-yp93dkvf8x] {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.05;
}

.dbc-seg[b-yp93dkvf8x] { margin-top: 0; flex: 0 0 auto; }
.dbc-seg .drugbook-species-chip[b-yp93dkvf8x] { min-height: 44px; }

/* Section jump bar: wraps, never sticks. */
.dbc-jump[b-yp93dkvf8x] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dbc-jump-btn[b-yp93dkvf8x] {
    min-height: 44px;
    padding: 0.2rem 0.9rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: var(--radius-full);
    background: var(--color-surface-solid);
    color: var(--ed-ink);
    font-family: var(--ed-ui);
    font-size: 0.85rem;
    font-weight: 600;
}

.dbc-jump-btn:hover[b-yp93dkvf8x] { border-color: var(--ed-eucalypt); }

.dbc-jump-btn:focus-visible[b-yp93dkvf8x],
.dbc-row-sum:focus-visible[b-yp93dkvf8x],
.dbc-ev-sum:focus-visible[b-yp93dkvf8x],
.dbc-fold-sum:focus-visible[b-yp93dkvf8x] {
    outline: 2px solid var(--ed-terracotta);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.dbc-card[b-yp93dkvf8x] {
    min-width: 0;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--color-green-border);
    border-radius: 14px;
    background: var(--color-surface-solid);
    /* A jump lands the top of the card clear of the edge of the pane. */
    scroll-margin-top: 0.75rem;
}

.dbc-card:focus[b-yp93dkvf8x] { outline: none; }

/* "Do not use": the one red thing on the card. */
.dbc-card--contra[b-yp93dkvf8x] { border-top: 4px solid var(--ed-rust); }

.dbc-h[b-yp93dkvf8x] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.35rem;
    font-family: var(--ed-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ed-ink);
}

.dbc-ico[b-yp93dkvf8x] { flex: 0 0 auto; }
.dbc-ico--stop[b-yp93dkvf8x] { color: var(--ed-rust); }

.dbc-pair[b-yp93dkvf8x] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.dbc-empty[b-yp93dkvf8x],
.dbc-calc-hint[b-yp93dkvf8x] {
    margin: 0.2rem 0 0;
    font-family: var(--ed-ui);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.dbc-calc-hint[b-yp93dkvf8x] { margin-top: 0.6rem; }

.dbc-grp[b-yp93dkvf8x] {
    margin: 0.75rem 0 0.1rem;
    font-family: var(--ed-ui);
    font-size: max(0.75rem, var(--ed-fs-floor, 0rem));
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* "Before you give it": facts a reviewer flagged, said twice on purpose. */
.dbc-callout[b-yp93dkvf8x] {
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--ed-terracotta);
    border-left-width: 4px;
    border-radius: 14px;
    background: var(--ed-paper-deep);
    color: var(--ed-ink);
}

.dbc-callout-h[b-yp93dkvf8x] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.3rem;
    font-family: var(--ed-ui);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ed-ink);
}

.dbc-callout-list[b-yp93dkvf8x] {
    margin: 0;
    padding-left: 1.2rem;
    font-family: var(--ed-ui);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ── One fact, one line; the whole line opens its sources ────────────────────── */

.dbc-rows[b-yp93dkvf8x] { margin-top: 0; }

/* Block padding only: a flagged row keeps the inset that clears its accent bar. */
.dbc-item[b-yp93dkvf8x] { padding-block: 0; }
.dbc-item.drugbook-fact--flag[b-yp93dkvf8x] { padding-right: 0.4rem; }

.dbc-item-line[b-yp93dkvf8x] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.dbc-row[b-yp93dkvf8x] { flex: 1 1 auto; min-width: 0; }

.dbc-row-sum[b-yp93dkvf8x] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.6rem 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--ed-ui);
    font-size: 0.95rem;
    line-height: 1.45;
}

.dbc-row-sum[b-yp93dkvf8x]::-webkit-details-marker,
.dbc-ev-sum[b-yp93dkvf8x]::-webkit-details-marker { display: none; }

.dbc-row-text[b-yp93dkvf8x] { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

.dbc-row-tags[b-yp93dkvf8x] {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.3rem;
    max-width: 45%;
}

/* Evidence: one quiet tag. Label solid, Guideline tinted, Study outlined. */
.dbc-tag[b-yp93dkvf8x],
.dbc-chip[b-yp93dkvf8x] {
    display: inline-block;
    padding: 0.05rem 0.45rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: var(--ed-ui);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.dbc-tag--label[b-yp93dkvf8x] { background: var(--ed-eucalypt); color: var(--ed-paper-warm); border-color: var(--ed-eucalypt); }
.dbc-tag--guideline[b-yp93dkvf8x] { background: var(--ed-paper-deep); color: var(--ed-eucalypt); border-color: var(--ed-eucalypt); }
.dbc-tag--study[b-yp93dkvf8x] { background: transparent; color: var(--ed-ink-soft); border-color: var(--ed-hairline-strong); }
.dbc-tag--region[b-yp93dkvf8x] { background: transparent; color: var(--ed-ink-soft); border-color: var(--ed-hairline-strong); }
.dbc-tag--unsourced[b-yp93dkvf8x] { background: var(--ed-paper-deep); color: var(--ed-rust); border-color: var(--ed-rust); }

/* The source count; solid while its line is open. */
.dbc-chip[b-yp93dkvf8x] { background: var(--ed-paper-deep); color: var(--ed-eucalypt); border-radius: var(--radius-full); }

.dbc-row[open] > .dbc-row-sum .dbc-chip[b-yp93dkvf8x],
.dbc-ev[open] > .dbc-ev-sum .dbc-chip[b-yp93dkvf8x] { background: var(--ed-eucalypt); color: var(--ed-paper-warm); }

.dbc-sources[b-yp93dkvf8x],
.dbc-all-sources[b-yp93dkvf8x] {
    margin: 0 0 0.6rem;
    padding-left: 1.2rem;
    font-family: var(--ed-ui);
    font-size: 0.88rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.dbc-all-sources[b-yp93dkvf8x] { margin-top: 0.6rem; }

.dbc-src-link[b-yp93dkvf8x] {
    color: var(--ed-eucalypt);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.dbc-meta[b-yp93dkvf8x],
.dbc-timing[b-yp93dkvf8x],
.dbc-count[b-yp93dkvf8x] {
    font-family: var(--ed-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* "Calculate" is the one solid button on the card. */
.dbc-calc-btn[b-yp93dkvf8x] {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
    margin: 0.3rem 0 0;
    padding: 0 0.9rem;
}

.dbc-calc-btn--solid[b-yp93dkvf8x] {
    margin: 0;
    background: var(--ed-eucalypt);
    color: var(--ed-paper-warm);
    border-radius: var(--radius-md);
}

/* ── The dose table ──────────────────────────────────────────────────────────── */

.dbc-dose-head[b-yp93dkvf8x] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
}

.dbc-dose[b-yp93dkvf8x] {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ed-ui);
    font-size: 0.92rem;
}

.dbc-dose th[b-yp93dkvf8x] {
    padding: 0.35rem 0.5rem 0.35rem 0;
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: var(--color-text-muted);
}

.dbc-dose td[b-yp93dkvf8x] {
    padding: 0.6rem 0.5rem 0.6rem 0;
    border-top: 1px solid var(--ed-hairline);
    vertical-align: top;
}

.dbc-dose-route[b-yp93dkvf8x],
.dbc-dose-amount[b-yp93dkvf8x] { white-space: nowrap; }

/* The figure a vet came for. */
.dbc-big[b-yp93dkvf8x] { font-size: 1.2rem; font-weight: 700; color: var(--ed-ink); }

.dbc-dose-calc[b-yp93dkvf8x] { text-align: right; padding-right: 0; }

.dbc-ev-sum[b-yp93dkvf8x] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
}

.dbc-ev-line[b-yp93dkvf8x] { margin: 0.2rem 0 0.3rem; font-size: 0.88rem; }

.dbc-calc-row td[b-yp93dkvf8x] { border-top: 0; padding-top: 0; }

/* ── Folds: how it works, registered products, all sources ───────────────────── */

.dbc-fold-sum[b-yp93dkvf8x] {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 44px;
    cursor: pointer;
}

.dbc-fold-sum .dbc-h[b-yp93dkvf8x] { display: inline; margin: 0; }

.dbc-legend[b-yp93dkvf8x] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0 0.25rem 1rem;
    font-family: var(--ed-ui);
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* Review only: the flag that puts a fact in the warning box on the card. */
.drugbook-critical-btn--on[b-yp93dkvf8x] {
    background: var(--ed-terracotta);
    border-color: var(--ed-terracotta);
    color: var(--ed-paper-warm);
}

/* Narrow: pairs stack, and the dose table becomes label / value rows rather than
   scrolling sideways. 900px, not 600: beside the drug list the card column is
   already that narrow on a small laptop. */
@media (max-width: 900px) {
    .dbc-pair[b-yp93dkvf8x] { grid-template-columns: minmax(0, 1fr); }

    .dbc-dose thead[b-yp93dkvf8x] { position: absolute; left: -9999px; }
    .dbc-dose[b-yp93dkvf8x],
    .dbc-dose tbody[b-yp93dkvf8x],
    .dbc-dose tr[b-yp93dkvf8x],
    .dbc-dose td[b-yp93dkvf8x] { display: block; width: 100%; }

    .dbc-dose-row[b-yp93dkvf8x] { padding: 0.6rem 0; border-top: 1px solid var(--ed-hairline); }

    .dbc-dose td[b-yp93dkvf8x] {
        display: grid;
        grid-template-columns: 6rem minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.2rem 0;
        border-top: 0;
        white-space: normal;
    }

    .dbc-dose td[data-l][b-yp93dkvf8x]::before {
        content: attr(data-l);
        font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--color-text-muted);
        padding-top: 0.2rem;
    }

    .dbc-dose td.dbc-dose-calc[b-yp93dkvf8x] { display: block; text-align: left; padding-top: 0.4rem; }
    .dbc-dose td.dbc-dose-calc:empty[b-yp93dkvf8x] { display: none; }
    .dbc-calc-row td[b-yp93dkvf8x] { display: block; }
    .dbc-calc-btn--solid[b-yp93dkvf8x] { width: 100%; justify-content: center; }
}

@media (max-width: 760px) {
    .dbc-card[b-yp93dkvf8x] { padding: 0.9rem 0.85rem; }
    /* The words get the whole width; their tags sit under them. */
    .dbc-row-sum[b-yp93dkvf8x] { flex-wrap: wrap; gap: 0.3rem 0.6rem; }
    .dbc-row-text[b-yp93dkvf8x] { flex-basis: 100%; }
    .dbc-row-tags[b-yp93dkvf8x] { max-width: 100%; justify-content: flex-start; }
    .dbc-seg[b-yp93dkvf8x] { width: 100%; }
    .dbc-seg .drugbook-species-chip[b-yp93dkvf8x] { flex: 1 1 0; }
}
/* /Pages/DrugBookTools.razor.rz.scp.css */
/* Drug Book tools (2026-11-15): import a drug file, export, check links, history.
   A reviewer's working page: plain panels, the app's own tokens for every colour, and
   every size under 0.8rem consuming the comfort floor. One column at any width, so the
   phone needs no rules of its own beyond the touch floor at the end. */

.dbt-page[b-ni3tpss9v1] {
    min-height: 100%;
    padding-bottom: 2rem;
    font-family: var(--ed-ui);
}

.dbt-top[b-ni3tpss9v1] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dbt-panel[b-ni3tpss9v1] {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid var(--ed-hairline);
    border-radius: var(--radius-md);
    background: var(--ed-paper-warm);
}

.dbt-lead[b-ni3tpss9v1] {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.dbt-lead--gap[b-ni3tpss9v1] { margin-top: 0.9rem; }

.dbt-row[b-ni3tpss9v1],
.dbt-pick[b-ni3tpss9v1],
.dbt-confirm[b-ni3tpss9v1] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.dbt-file[b-ni3tpss9v1] { max-width: 26rem; }

.dbt-done[b-ni3tpss9v1] { margin-bottom: 0.75rem; }

/* ── Rejected ────────────────────────────────────────────────────────────────── */

.dbt-rejected[b-ni3tpss9v1] {
    margin-top: 0.8rem;
    padding: 0.7rem 0.9rem;
    border-left: 4px solid var(--ed-rust);
    border-radius: var(--radius-sm);
    background: var(--ed-paper-deep);
    overflow-wrap: anywhere;
}

.dbt-rejected-head[b-ni3tpss9v1] { margin: 0 0 0.4rem; }
.dbt-rejected ul[b-ni3tpss9v1] { margin: 0; padding-left: 1.1rem; }
.dbt-rejected li + li[b-ni3tpss9v1] { margin-top: 0.2rem; }

/* A fact or source id: the thing to search the file for. */
.dbt-where[b-ni3tpss9v1] {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0 0.4rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink-soft);
    white-space: nowrap;
}

/* ── Preview ─────────────────────────────────────────────────────────────────── */

.dbt-preview[b-ni3tpss9v1] { margin-top: 0.9rem; }

.dbt-title[b-ni3tpss9v1] {
    margin: 0;
    font-family: var(--ed-display);
    font-size: 1.5rem;
    color: var(--ed-eucalypt);
}

.dbt-class[b-ni3tpss9v1] {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ed-ink-soft);
}

.dbt-meta[b-ni3tpss9v1] {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.15rem 0.8rem;
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.dbt-meta dt[b-ni3tpss9v1] { font-weight: 600; color: var(--ed-ink-soft); }
.dbt-meta dd[b-ni3tpss9v1] { margin: 0; }

.dbt-counts[b-ni3tpss9v1] {
    margin: 0.5rem 0 0;
    font-weight: 700;
}

.dbt-diff[b-ni3tpss9v1] {
    margin: 0.8rem 0;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-md);
    background: var(--ed-paper-deep);
    font-size: 0.92rem;
}

.dbt-diff-head[b-ni3tpss9v1] { margin: 0 0 0.3rem; }
.dbt-diff-line[b-ni3tpss9v1] { margin: 0.15rem 0; }

.dbt-changes[b-ni3tpss9v1] {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.dbt-change[b-ni3tpss9v1] {
    padding: 0.4rem 0 0.4rem 0.6rem;
    border-top: 1px solid var(--ed-hairline);
    border-left: 3px solid var(--ed-hairline-strong);
    overflow-wrap: anywhere;
}

.dbt-change--added[b-ni3tpss9v1] { border-left-color: var(--ed-mint); }
.dbt-change--removed[b-ni3tpss9v1] { border-left-color: var(--ed-rust); }
.dbt-change--changed[b-ni3tpss9v1] { border-left-color: var(--ed-terracotta); }

.dbt-change-kind[b-ni3tpss9v1] { margin-right: 0.35rem; font-weight: 700; }
.dbt-change-section[b-ni3tpss9v1],
.dbt-change-fields[b-ni3tpss9v1] { color: var(--color-text-muted); }

.dbt-before[b-ni3tpss9v1] { color: var(--color-text-muted); text-decoration: line-through; }
.dbt-change--removed .dbt-before[b-ni3tpss9v1] { text-decoration: none; color: var(--ed-ink); }
.dbt-held[b-ni3tpss9v1] {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ed-ink-soft);
}

.dbt-warn[b-ni3tpss9v1],
.dbt-warnings[b-ni3tpss9v1] {
    margin: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--ed-rust);
}

.dbt-warnings[b-ni3tpss9v1] { padding-left: 1.1rem; }
.dbt-warnings li + li[b-ni3tpss9v1] { margin-top: 0.25rem; }

.dbt-confirm[b-ni3tpss9v1] { margin: 0.8rem 0 0.4rem; }
.dbt-confirm-note[b-ni3tpss9v1] { font-size: 0.85rem; color: var(--color-text-muted); }

.dbt-section[b-ni3tpss9v1] {
    margin-top: 0.9rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--ed-hairline-strong);
}

.dbt-section-h[b-ni3tpss9v1] {
    margin: 0 0 0.2rem;
    font-family: var(--ed-display);
    font-size: 1.05rem;
}

.dbt-section-n[b-ni3tpss9v1] { font-family: var(--ed-ui); font-size: 0.9rem; color: var(--color-text-muted); }

.dbt-facts[b-ni3tpss9v1],
.dbt-sources[b-ni3tpss9v1],
.dbt-file-drugs[b-ni3tpss9v1],
.dbt-problems[b-ni3tpss9v1],
.dbt-history[b-ni3tpss9v1] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dbt-fact[b-ni3tpss9v1],
.dbt-sources li[b-ni3tpss9v1],
.dbt-problem[b-ni3tpss9v1],
.dbt-history li[b-ni3tpss9v1] {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--ed-hairline);
    overflow-wrap: anywhere;
}

.dbt-fact:last-child[b-ni3tpss9v1],
.dbt-sources li:last-child[b-ni3tpss9v1],
.dbt-problem:last-child[b-ni3tpss9v1],
.dbt-history li:last-child[b-ni3tpss9v1] { border-bottom: 0; }

.dbt-tag[b-ni3tpss9v1] {
    display: inline-block;
    margin-right: 0.3rem;
    padding: 0 0.45rem;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: var(--radius-full);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    font-weight: 700;
    line-height: 1.6;
    color: var(--ed-ink-soft);
}

.dbt-tag--change[b-ni3tpss9v1],
.dbt-tag--broken[b-ni3tpss9v1] { color: var(--ed-rust); border-color: var(--ed-rust); }

.dbt-numbers[b-ni3tpss9v1],
.dbt-fact-sources[b-ni3tpss9v1] {
    font-size: 0.85rem;
    color: var(--ed-ink-soft);
}

.dbt-fact-sources a[b-ni3tpss9v1] { margin-right: 0.5rem; }

.dbt-gaps[b-ni3tpss9v1] { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; }
.dbt-gaps li + li[b-ni3tpss9v1] { margin-top: 0.25rem; }

/* ── Export, links, history ──────────────────────────────────────────────────── */

.dbt-file-drugs li[b-ni3tpss9v1] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--ed-hairline);
}

.dbt-file-drugs li:last-child[b-ni3tpss9v1] { border-bottom: 0; }

.dbt-links-sum[b-ni3tpss9v1] { margin: 0 0 0.6rem; font-size: 0.92rem; }

.dbt-problems[b-ni3tpss9v1] { margin-top: 0.8rem; }

.dbt-problem-detail[b-ni3tpss9v1],
.dbt-history-what[b-ni3tpss9v1] {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.dbt-history-file[b-ni3tpss9v1] { padding-left: 0; }

@media (max-width: 1024px), (pointer: coarse) {
    .dbt-page .btn[b-ni3tpss9v1] { min-height: 44px; }
    .dbt-file[b-ni3tpss9v1] { min-height: 44px; }
}
/* /Pages/ImageFindings.razor.rz.scp.css */
.imgdesc-thumbs[b-v34wt0va5i] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.imgdesc-thumb[b-v34wt0va5i] {
    display: flex;
    flex-direction: column;
    width: 130px;
}

.imgdesc-thumb-img[b-v34wt0va5i] {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--ed-hairline-strong, #d8d2c4);
}

.imgdesc-thumb-remove[b-v34wt0va5i] {
    align-self: flex-start;
    font-size: 0.8rem;
}

.imgdesc-thumb-measure[b-v34wt0va5i] {
    align-self: flex-start;
    font-size: 0.8rem;
    color: var(--ed-terracotta);
}

/* Warn-only quality note. Deliberately quiet — saffron, not rust: this is advice the vet may
   reasonably overrule (a poor film is often the only film), and dressing it as an error would
   teach them to dismiss the badge. Theme variables only, per Task 7. */
.imgdesc-quality-warn[b-v34wt0va5i] {
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    line-height: 1.25;
    margin-top: 0.25rem;
    color: var(--ed-ink-soft, var(--ed-ink));
    border-left: 2px solid var(--ed-saffron);
    padding-left: 0.35rem;
}

/* Theme variables only — no Bootstrap .text-bg-light. That utility hardcodes a
   near-white background, which is the exact hardcoded-light-in-dark-mode defect
   Task 7 exists to remove; FilmMeasure.razor.css already rejected .btn-close for
   the same reason. --ed-* is flipped by [data-theme="dark"] in app.css. */
.imgdesc-measure-panel[b-v34wt0va5i] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.imgdesc-measure-caption[b-v34wt0va5i] {
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ed-ink-soft, var(--ed-ink));
}

/* A group is a VISIBLE unit, not a run of chips separated from its neighbour by a
   0.05rem gap difference. Stacking the groups means flex-wrap can no longer land one
   film's VLAS beside another film's VHS. */
.imgdesc-measure-group[b-v34wt0va5i] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.35rem 0 0.35rem 0.5rem;
    border-left: 2px solid var(--ed-hairline-strong, var(--ed-hairline));
}

.imgdesc-measure-film[b-v34wt0va5i] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.imgdesc-measure-film-name[b-v34wt0va5i] {
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink-soft, var(--ed-ink));
    overflow-wrap: anywhere;
}

.imgdesc-measure-drop[b-v34wt0va5i] {
    flex: none;
    line-height: 1;
}

.imgdesc-measure-chiprow[b-v34wt0va5i] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

/* Notices sit in the form column beside the chips they are about. Theme variables only —
   an .alert-* or .text-bg-* utility would bake in a light background that survives into
   dark mode, which is the defect Task 7 exists to remove. */
.imgdesc-measure-alert[b-v34wt0va5i] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    background: var(--ed-paper-deep);
    color: var(--ed-ink);
    border: 1px solid var(--ed-hairline-strong, var(--ed-hairline));
    border-left: 3px solid var(--ed-terracotta);
    font-size: 0.82rem;
    line-height: 1.35;
}

.imgdesc-measure-alert > span[b-v34wt0va5i] {
    flex: 1 1 auto;
}

.imgdesc-measure-chip[b-v34wt0va5i] {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--ed-paper-deep);
    color: var(--ed-ink);
    border: 1px solid var(--ed-hairline);
    font-size: 0.8rem;
    white-space: nowrap;
}

.imgdesc-saved-secondary[b-v34wt0va5i] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
/* /Pages/LlmSettings.razor.rz.scp.css */
/* The .tool-page frame is a fixed-height column flexbox, so its body must claim
   the remaining space and scroll itself — same contract as .meds-body. Without
   this the form overflows the frame and the page footer lands on top of the
   per-task table. */
.settings-body[b-57q6yae12q] {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    max-width: 680px;
    width: 100%;
}
/* /Pages/Medications.razor.rz.scp.css */
/* Medications is a single-column page (unlike the two-pane tool pages that
   use .tool-body). Use this body wrapper so children stack vertically and
   the action row stays at the bottom of a scrollable content area. */
.meds-body[b-ko19f4femk] {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Theme tokens only — see the note in MedicationQuickPicks.razor.css. A hardcoded
   surface does not flip under [data-theme="dark"] while inherited ink does. */
.meds-context[b-ko19f4femk] {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem 0.75rem;
    background: var(--ed-paper-deep);
    color: var(--ed-ink);
    border-radius: 6px;
    align-items: center;
}
.meds-chip[b-ko19f4femk] {
    background: var(--ed-paper-warm);
    border: 1px solid var(--ed-hairline);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
}
.meds-weight[b-ko19f4femk] { color: var(--ed-mute); font-size: 0.85rem; }
.meds-section-title[b-ko19f4femk] { margin-top: 1rem; }
.meds-empty[b-ko19f4femk] { color: var(--ed-mute); font-size: 0.9rem; padding: 0.5rem 0; }
.meds-actions[b-ko19f4femk] { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* "Currently on file": the medicine's Drug Book card, one tap from its name (2026-09-24).
   A button (it opens the quick look over the page), dressed as the inline link it was.
   Ink only, so it reads on whatever the list sits on. */
.meds-drugbook-link[b-ko19f4femk] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    font-weight: 600;
    color: var(--ed-terracotta);
    text-decoration: none;
    padding: 0;
    border: 0;
    background: transparent;
}

.meds-drugbook-link:hover[b-ko19f4femk],
.meds-drugbook-link:focus-visible[b-ko19f4femk] { text-decoration: underline; }

@media (max-width: 1024px), (pointer: coarse) {
    .meds-drugbook-link[b-ko19f4femk] { min-height: 44px; }
}
/* /Pages/SecurityEvents.razor.rz.scp.css */
/* Security page. Tokens only: every colour here follows the theme. */

.sec-attention[b-0ea68mle5j] {
    border: 1px solid var(--ed-hairline);
    border-radius: 0.5rem;
    padding: 0.9rem 1rem;
    background: var(--ed-paper-warm);
}

.sec-count[b-0ea68mle5j] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    margin-left: 0.4rem;
    border-radius: 999px;
    background: var(--ed-rust);
    color: var(--ed-paper);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    font-variant-numeric: tabular-nums;
    vertical-align: 1px;
}

.sec-item[b-0ea68mle5j] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--ed-hairline);
}

.sec-item:first-child[b-0ea68mle5j] {
    border-top: 0;
    padding-top: 0.2rem;
}

.sec-item:last-child[b-0ea68mle5j] {
    padding-bottom: 0.1rem;
}

.sec-item-main[b-0ea68mle5j] {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sec-item .btn[b-0ea68mle5j] {
    flex: 0 0 auto;
    white-space: nowrap;
}

.sec-table td[b-0ea68mle5j] {
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .sec-item[b-0ea68mle5j] {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* /Pages/SoapNote.razor.rz.scp.css */
/* One column. .tool-body is a two-panel flex row everywhere else in the app; here the
   note IS the page, so the row collapses to a single scrolling column. Overriding the
   shared class rather than inventing a parallel one keeps the page inside the tool-page
   frame — same header, same fixed-height column, same scroll behaviour. */
.soap-single[b-ktklr0jfxx] {
    display: block;
    overflow-y: auto;
}

.soap-column[b-ktklr0jfxx] {
    max-width: 60rem;
    margin: 0 auto;
    padding: 1.5rem 1.75rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* The note's two halves either side of the source panel. No box of their own, so their
   children stay flex items of .soap-column with its gap — the column renders as the flat
   list it was, here and in phone mode. css/desktop/tools.css turns them into the grid
   areas of the >=1400px two-column layout (2026-09-24). */
.soap-note-area[b-ktklr0jfxx],
.soap-note-foot[b-ktklr0jfxx] {
    display: contents;
}

/* ── The source summary ──────────────────────────────────────────────────────
   Above the note it feeds, and closed unless it is empty. Native <details>: this
   app ships Bootstrap's CSS but not its JS, so a scripted accordion would not open. */
.soap-source[b-ktklr0jfxx] {
    border: 1px solid var(--ed-hairline);
    border-radius: 6px;
    background: var(--ed-paper-warm);
    padding: 0.6rem 0.85rem;
}

.soap-source-summary[b-ktklr0jfxx] {
    cursor: pointer;
    font-family: var(--ed-mono);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ed-ink-soft);
    list-style-position: outside;
}

/* Sentence case and quiet — it is a status line, not part of the heading. */
.soap-source-hint[b-ktklr0jfxx] {
    font-family: var(--ed-ui);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    text-transform: none;
    letter-spacing: 0;
    color: var(--ed-mute);
    margin-left: 0.35rem;
}

.soap-source[open] > .soap-source-summary[b-ktklr0jfxx] { margin-bottom: 0.6rem; }

/* The note. Monospaced because it is markdown being written rather than prose being
   read, and because a SOAP's bolded field labels line up only in a fixed pitch —
   proportional type turns "**Vitals:**" columns into ragged noise while editing. */
/* Monospace so the component labels down the left edge line up as a column. That
   mattered more when the note carried "**Vitals:**" markers; with plain text
   (2026-08-02) it still buys aligned labels and an unambiguous character count. */
.soap-note-editor[b-ktklr0jfxx] {
    font-family: var(--ed-mono);
    font-size: 0.86rem;
    line-height: 1.65;
    resize: vertical;
    min-height: 22rem;
    tab-size: 2;
}

/* Undo / Redo over the note (round 10, 2026-11-12). Right-aligned and tucked against the box
   they act on: the column's gap would otherwise float them between the note and whatever
   sits above it. The app's small outline buttons, so nothing here names a colour. */
.soap-edit-history[b-ktklr0jfxx] {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-bottom: -0.45rem;
}

/* One quiet line explaining text that appeared without the vet pressing anything. */
.soap-autodraft-note[b-ktklr0jfxx] {
    font-family: var(--ed-ui);
    font-size: 0.8rem;
    color: var(--ed-mute);
    border-left: 2px solid var(--color-green-border);
    padding: 0.15rem 0 0.15rem 0.6rem;
    margin-bottom: 0.5rem;
}

/* Today's saved note, reopened (taps #3, 2026-10-04): the same quiet line, over the note. */
.soap-reopened-note[b-ktklr0jfxx] {
    font-family: var(--ed-ui);
    font-size: max(0.8rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-mute);
}

.soap-actions[b-ktklr0jfxx] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* At the top of the note area since 2026-10-04 (taps #8): the column's own gap spaces it. */
.soap-saved-secondary[b-ktklr0jfxx] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .soap-column[b-ktklr0jfxx] { padding: 1rem 1.1rem 3rem; }
    .soap-note-editor[b-ktklr0jfxx] { font-size: 0.8rem; min-height: 18rem; }
}

/* ══ The toolbar, round 8 (Brad's mockup, 2026-11-08) ═══════════════════════════
   The title on its own line, then, as redrawn on round 9 (2026-11-10):
   Draft <note type> · Copy note · Save   ……   Note type · Template · ⋯
   The shared .tool-header lays out on an italic display title's baseline with its actions
   pushed right; this one reads left to right under the title, its fields bottom-aligned so
   the labelled pickers and the buttons share one line. Tokens only. */
.soap-toolbar[b-ktklr0jfxx] {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 0.6rem 0.75rem;
    font-family: var(--ed-ui);
    font-style: normal;
    font-size: 0.92rem;
    font-variation-settings: normal;
    letter-spacing: normal;
}

/* The mockup's Draft is the eucalypt of the app's primary pills (Today's + Add appointment),
   not the chestnut gradient a tool header's .btn-primary wears elsewhere. */
.soap-toolbar .soap-draft[b-ktklr0jfxx] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.6rem;
    padding-inline: 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--ed-eucalypt);
    border: 1px solid var(--ed-eucalypt);
    color: var(--ed-paper);
    box-shadow: none;
}

.soap-toolbar .soap-draft:hover:not(:disabled)[b-ktklr0jfxx],
.soap-toolbar .soap-draft:focus-visible[b-ktklr0jfxx] {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: var(--ed-paper);
}

.soap-toolbar[b-ktklr0jfxx]  .soap-copy {
    min-height: 2.6rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.92rem;
}

/* A desktop's Save, in the header since round 9: the height of the buttons beside it. No
   display here — .desktop-mode-only hides it on a phone, and a display set in this scoped
   file would tie that rule on specificity. */
.soap-toolbar .soap-head-save[b-ktklr0jfxx] {
    min-height: 2.6rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.92rem;
}

/* The pickers and the template menu sit at the far right (round 9), as one flex item: the
   auto margin takes the spare room — the gap it leaves is what the divider used to say —
   and a window too narrow for one line moves the three down together, still at the right. */
.soap-toolbar-pickers[b-ktklr0jfxx] {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem 0.75rem;
    margin-left: auto;
    min-width: 0;
}

/* A phone lays the toolbar's items out itself (css/phone/notes-meds.css orders the Note type
   field and the menu), so there the group is not a box at all. Here, not in that file: this
   file's scoped selectors outrank it. */
:root[data-phone="on"] .soap-toolbar-pickers[b-ktklr0jfxx] {
    display: contents;
}

.soap-field[b-ktklr0jfxx] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.soap-field-label[b-ktklr0jfxx] {
    font-size: 0.86rem;
    color: var(--ed-ink-soft);
}

/* 11.5rem since round 9 (13rem before): with Save in the row, the wider pickers pushed the
   menu onto a second line at a 1440px window. */
.soap-field .soap-format-picker[b-ktklr0jfxx] {
    min-width: 11.5rem;
    min-height: 2.6rem;
    font-family: var(--ed-ui);
    font-style: normal;
    font-size: 0.95rem;
}

.soap-field--template[b-ktklr0jfxx]  .ntp-trigger {
    min-height: 2.6rem;
    min-width: 11.5rem;
}

/* The Note type label, and beside it "Set as my default" while the Note type on screen is
   not the standing one. */
.soap-field-head[b-ktklr0jfxx] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.soap-toolbar .soap-format-default[b-ktklr0jfxx] {
    padding: 0;
    font-size: max(0.8rem, var(--ed-fs-floor, 0rem));
    white-space: nowrap;
}

/* ── The template menu (⋯). A phone's overflow too, where css/phone/notes-meds.css draws
   it as before. Flat glass, no blur: it can open over the floating masthead's glass. ── */
.soap-more[b-ktklr0jfxx] {
    position: relative;
}

.soap-toolbar .soap-more-btn[b-ktklr0jfxx] {
    min-width: 2.6rem;
    min-height: 2.6rem;
    padding: 0.2rem 0.65rem;
    font-size: 1.1rem;
    line-height: 1;
}

.soap-more-backdrop[b-ktklr0jfxx] {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: transparent;
}

.soap-more-menu[b-ktklr0jfxx] {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 70;
    min-width: 17rem;
    display: flex;
    flex-direction: column;
    padding: 0.35rem 0;
    background: var(--glass-flat);
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 var(--glass-float-light), 0 20px 50px var(--glass-float-shade);
}

.soap-more-item[b-ktklr0jfxx] {
    display: block;
    width: 100%;
    padding: 0.55rem 1.1rem;
    border: none;
    background: transparent;
    font-family: var(--ed-ui);
    font-size: 0.95rem;
    color: var(--ed-ink);
    text-align: left;
    cursor: pointer;
}

.soap-more-item:hover:not(:disabled)[b-ktklr0jfxx],
.soap-more-item:focus-visible[b-ktklr0jfxx] {
    background: var(--ed-paper-deep);
    outline: none;
}

.soap-more-item:disabled[b-ktklr0jfxx] {
    color: var(--ed-mute);
    cursor: default;
}

/* Copy and Clear are a phone's (the desktop has them in the toolbar and under the note).
   css/phone/notes-meds.css shows them there at a higher specificity. */
.soap-more-item.phone-mode-only[b-ktklr0jfxx] {
    display: none;
}

.soap-more-sep[b-ktklr0jfxx] {
    height: 1px;
    margin: 0.3rem 0;
    background: var(--ed-hairline);
}

/* ── Under the summary and under the note ─────────────────────────────────── */
.soap-summary-help[b-ktklr0jfxx] {
    margin: 0.5rem 0 0;
    font-size: max(0.82rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink-soft);
}

/* Save, Export PDF and Clear note read as one row of like-sized pills, as drawn. */
.soap-actions .soap-clear[b-ktklr0jfxx] {
    border-radius: 999px;
}

.soap-actions .btn-export-pdf[b-ktklr0jfxx],
.soap-actions .soap-clear[b-ktklr0jfxx] {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.soap-no-case[b-ktklr0jfxx] {
    margin: 0;
    font-size: max(0.84rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-ink-soft);
}

.soap-no-case a[b-ktklr0jfxx] {
    color: var(--ed-terracotta);
    text-underline-offset: 2px;
}
/* /Pages/Today.razor.rz.scp.css */
/* Today view — editorial day-list. Scoped via Blazor CSS isolation. */

.today-page[b-7bjzo41loy] {
    min-height: calc(100vh - 3.5rem);
    background: var(--ed-paper);
    padding: 1.5rem;
    color: var(--ed-ink);
}

/* App shell (>=641px): the article scroller already accounts for every chrome
   row (stepper, held-audio banner), so the viewport calc above over-floors the
   page by their height and leaves a blank scrollable band. Scoped rules beat
   app.css's global migration block, so the override has to live HERE. */
@media (min-width: 641px) {
    .today-page[b-7bjzo41loy] {
        min-height: 100%;
    }
}

.today-container[b-7bjzo41loy] {
    max-width: 1080px;
    margin: 0 auto;
}

/* The side panels' wrapper (register, hazards, end of day). No box of its own, so the
   three sections lay out as .today-container's children exactly as before — in phone mode
   too, where the flex order in css/phone/today.css sorts them. css/desktop/tools.css
   makes it the right-hand column at >=1400px (2026-09-24). */
.today-side[b-7bjzo41loy] {
    display: contents;
}

/* The page rise app.css gives .today-container's children. A display: contents box
   paints nothing, so its own animation reaches none of these; they were children 4+
   of the container, hence the 90ms step. */
.today-side > *[b-7bjzo41loy] {
    animation: fadeSlideUp 0.24s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 90ms;
}

@media (prefers-reduced-motion: reduce) {
    .today-side > *[b-7bjzo41loy] {
        animation: fadeIn 0.15s ease-out backwards;
        animation-delay: 0ms;
    }
}

/* ── Active-case banner ───────────────────────────────────────────────────
   Shown at the top of Today when the vet has a case selected (e.g. came back
   from a navigated-away consult, or last session's case is still current).
   The LiveConsultIndicator in the top bar covers actively-recording sessions;
   this is the "you have a case open" affordance for non-recording context. */

.today-active-case[b-7bjzo41loy] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.55rem 0.95rem;
    margin-bottom: 1rem;
    background: var(--color-green-bg, #f3f8f0);
    border: 1px solid var(--color-green-border, #cfe1c2);
    border-radius: var(--radius-sm, 6px);
    font-size: 0.92rem;
}

.today-active-case-label[b-7bjzo41loy] {
    font-family: var(--ed-mono);
    font-size: max(0.7rem, var(--ed-fs-floor, 0rem));
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ed-ink-soft);
}

.today-active-case-name[b-7bjzo41loy] {
    color: var(--ed-ink);
}

.today-active-case-link[b-7bjzo41loy] {
    margin-left: auto;
    color: var(--ed-ink);
    text-decoration: none;
    font-weight: 500;
}

    .today-active-case-link:hover[b-7bjzo41loy] {
        text-decoration: underline;
        color: var(--ed-ink);
    }

/* ── Header ─────────────────────────────────────────────────────────────── */

.today-header[b-7bjzo41loy] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ed-hairline);
    margin-bottom: 1.25rem;
}

.today-header-left[b-7bjzo41loy] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.today-header-right[b-7bjzo41loy] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.today-kicker[b-7bjzo41loy] {
    font-family: var(--ed-mono);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ed-ink-soft);
}

.today-title[b-7bjzo41loy] {
    font-family: var(--ed-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-variation-settings: "opsz" 144;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--ed-ink);
    margin: 0;
}

.today-counter[b-7bjzo41loy] {
    font-family: var(--ed-ui);
    font-size: 0.92rem;
    color: var(--ed-ink-soft);
    margin-top: 0.15rem;
}

/* Date controls */
.today-date-nav[b-7bjzo41loy] {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 999px;
    overflow: hidden;
    background: var(--ed-paper);
}

.today-date-arrow[b-7bjzo41loy] {
    border: none;
    background: transparent;
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.4rem;
    color: var(--ed-ink-soft);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.today-date-arrow:hover[b-7bjzo41loy] {
    color: var(--ed-ink);
    background: rgba(31, 58, 42, 0.06);
}

/* Same height as the arrows either side of it. Vertical padding made this 2.4px
   taller than they are, so the three controls inside one pill sat on three
   different heights. */
.today-date-input[b-7bjzo41loy] {
    border: none;
    background: transparent;
    color: var(--ed-ink);
    font-family: var(--ed-mono);
    font-size: 0.84rem;
    height: 2.1rem;
    padding: 0 0.6rem;
    cursor: pointer;
}

.today-date-input:focus[b-7bjzo41loy] { outline: none; }

/* ── Action row + inline forms ──────────────────────────────────────────── */

.today-action-row[b-7bjzo41loy] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.today-add[b-7bjzo41loy],
.today-import[b-7bjzo41loy] {
    border: 1px solid var(--ed-hairline);
    /* Was the literal rgba(245,239,225,0.55) — i.e. --ed-paper at 55%, which is a
       no-op in light mode because this panel sits ON --ed-paper. In dark it was the
       one thing on the page that stayed cream while the ink flipped to cream with it,
       taking the title to 1.80:1. The token composites to the same light pixels. */
    background: var(--ed-paper);
    border-radius: 6px;
    padding: 1rem 1.1rem 1.1rem;
    margin-bottom: 1.25rem;
}

.today-add-title[b-7bjzo41loy],
.today-import-title[b-7bjzo41loy] {
    font-family: var(--ed-mono);
    font-size: max(0.76rem, var(--ed-fs-floor, 0rem));
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ed-ink-soft);
    margin-bottom: 0.6rem;
}

.today-add-grid[b-7bjzo41loy] {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.5rem 0.85rem;
    align-items: center;
}

.today-add-grid .form-label[b-7bjzo41loy] { margin-bottom: 0; }

.today-import-help[b-7bjzo41loy] {
    font-family: var(--ed-body);
    font-size: 0.95rem;
    color: var(--ed-ink-soft);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.today-import-help em[b-7bjzo41loy] { font-style: italic; color: var(--ed-ink); }

/* The import help's "?" (text#10): a small round toggle at the end of the one-line help,
   opening the full paragraph below it. The mark is small; the ::after keeps the target a
   thumb's width (about 44px) without pushing the sentence apart. */
.today-import-more[b-7bjzo41loy] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.3rem;
    padding: 0;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ed-ink-soft);
    font-family: var(--ed-mono);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
}

.today-import-more[b-7bjzo41loy]::after {
    content: "";
    position: absolute;
    inset: -0.6rem;
}

.today-import-more[aria-expanded="true"][b-7bjzo41loy] {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: var(--ed-paper);
}

.today-import-tabs[b-7bjzo41loy] {
    display: inline-flex;
    gap: 0;
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.today-import-tab[b-7bjzo41loy] {
    border: none;
    background: transparent;
    padding: 0.35rem 1rem;
    font-family: var(--ed-mono);
    font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ed-ink-soft);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.today-import-tab.active[b-7bjzo41loy] {
    background: var(--ed-ink);
    color: var(--ed-paper);
}

.today-import-textarea[b-7bjzo41loy] {
    font-family: var(--ed-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre;
}

.today-import-result[b-7bjzo41loy] {
    font-family: var(--ed-mono);
    font-size: max(0.78rem, var(--ed-fs-floor, 0rem));
    color: var(--ed-mint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* What an import did, left above the list when the panel folds away after it (round 8,
   2026-11-08). The panel's own line, without the panel. */
.today-import-receipt[b-7bjzo41loy] {
    margin-bottom: 1.25rem;
    padding: 0.55rem 0.85rem;
    border-left: 2px solid var(--ed-hairline-strong);
}

/* "These cases have already been imported…" (round 9, 2026-11-10): a question, so it
   is set as one — ink on the page, not the warning's rust. */
.today-import-again[b-7bjzo41loy] {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-left: 3px solid var(--ed-hairline-strong);
    font-family: var(--ed-body);
    color: var(--ed-ink);
    line-height: 1.5;
}

.today-import-again-q[b-7bjzo41loy] { font-size: 1rem; font-weight: 600; }

.today-import-again-who[b-7bjzo41loy] {
    font-size: 0.9rem;
    color: var(--ed-ink-soft);
    overflow-wrap: anywhere;
}

.today-import-warnings[b-7bjzo41loy] {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-left: 3px solid var(--ed-rust);
    background: rgba(162, 59, 42, 0.05);
    font-family: var(--ed-body);
    font-size: 0.9rem;
    color: var(--ed-ink);
    line-height: 1.5;
}

/* ── Empty state ────────────────────────────────────────────────────────── */

.today-empty[b-7bjzo41loy] {
    text-align: center;
    padding: 3rem 1rem 4rem;
    color: var(--ed-ink-soft);
    font-family: var(--ed-body);
}

.today-empty-icon[b-7bjzo41loy] { font-size: 2.4rem; margin-bottom: 0.5rem; }

.today-empty-title[b-7bjzo41loy] {
    font-family: var(--ed-display);
    font-style: italic;
    font-size: 2rem;
    font-variation-settings: "opsz" 96;
    color: var(--ed-ink);
    margin-bottom: 0.5rem;
}

.today-empty-copy[b-7bjzo41loy] {
    max-width: 38rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Appointment list ───────────────────────────────────────────────────── */

.today-list[b-7bjzo41loy] {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--ed-hairline);
}

.today-row[b-7bjzo41loy] {
    display: grid;
    grid-template-columns: 6.5rem 1fr auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--ed-hairline);
    transition: background 0.15s;
}

.today-row:hover[b-7bjzo41loy] { background: rgba(31, 58, 42, 0.03); }

.today-row-time[b-7bjzo41loy] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.today-row-dot[b-7bjzo41loy] {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--ed-eucalypt);
    flex-shrink: 0;
}

.today-row--in-progress .today-row-dot[b-7bjzo41loy] {
    background: var(--ed-terracotta);
    animation: ed-pulse 2.1s ease-in-out infinite;
}

.today-row--done .today-row-dot[b-7bjzo41loy] { background: var(--ed-mint); }
.today-row--no-show .today-row-dot[b-7bjzo41loy] { background: var(--ed-rust); }

.today-row-time-text[b-7bjzo41loy] {
    font-family: var(--ed-mono);
    font-size: 1.05rem;
    color: var(--ed-ink);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.today-row--done .today-row-time-text[b-7bjzo41loy],
.today-row--no-show .today-row-time-text[b-7bjzo41loy] { color: var(--ed-ink-soft); }

/* min-width: 0 keeps a long name inside its column. The wrap that breaks a word itself is
   phone-only (css/phone/today.css) and for the <=640px tier: on the desktop grid the name
   column is squeezed to 0-47px at 641-780px, and breaking anywhere there spelled every name
   one letter per line (pre-push sweep, 2026-10-04). A word may overflow whole on desktop. */
.today-row-main[b-7bjzo41loy] {
    min-width: 0;
}

@media (max-width: 640.98px) {
    .today-row-main[b-7bjzo41loy] { overflow-wrap: anywhere; }
}

.today-row-headline[b-7bjzo41loy] {
    font-family: var(--ed-display);
    font-size: 1.25rem;
    font-style: italic;
    font-variation-settings: "opsz" 48;
    line-height: 1.2;
    color: var(--ed-ink);
}

.today-row--done .today-row-headline[b-7bjzo41loy],
.today-row--no-show .today-row-headline[b-7bjzo41loy] { color: var(--ed-ink-soft); }

.today-row-patient[b-7bjzo41loy] { font-weight: 500; }

.today-row-signal[b-7bjzo41loy] {
    font-style: normal;
    font-family: var(--ed-body);
    font-size: 0.92rem;
    color: var(--ed-ink-soft);
}

.today-row-sub[b-7bjzo41loy] {
    margin-top: 0.2rem;
    font-family: var(--ed-body);
    font-size: 0.92rem;
    color: var(--ed-ink-soft);
    line-height: 1.5;
}

/* A space either side of it in the markup now (W6) — a breaking one before, a no-break one
   after — so the margin is what is left of the old 0.4rem gap. */
.today-row-dot-sep[b-7bjzo41loy] { margin: 0 0.15rem; opacity: 0.55; }

.today-row-status-line[b-7bjzo41loy] {
    margin-top: 0.25rem;
    font-family: var(--ed-mono);
    font-size: max(0.7rem, var(--ed-fs-floor, 0rem));
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ed-ink-soft);
}

.today-row--in-progress .today-row-status-line[b-7bjzo41loy] { color: var(--ed-terracotta); }
.today-row--done .today-row-status-line[b-7bjzo41loy] { color: var(--ed-mint); }
.today-row--no-show .today-row-status-line[b-7bjzo41loy] { color: var(--ed-rust); }

.today-row-actions[b-7bjzo41loy] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Quick delete — same round hairline shape as the ⋯ summary beside it. */
.today-row-delete[b-7bjzo41loy] {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--ed-hairline);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ed-ink-soft);
    cursor: pointer;
    font-family: var(--ed-ui);
}

.today-row-delete:hover[b-7bjzo41loy] { color: var(--ed-rust); border-color: var(--ed-rust); }

/* A row deleted, or a recall cleared, a moment ago: its Undo strip (UndoStrip, the Cases look)
   holds the row's place for ten seconds (taps#20, 2026-10-04), so nothing below slides up under
   the thumb that tapped. */
.today-undo-row[b-7bjzo41loy] {
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid var(--ed-hairline);
}

.today-vax-undo[b-7bjzo41loy] {
    padding: 0.5rem 0;
    border-top: 1px solid var(--ed-hairline);
}

.today-undo-row[b-7bjzo41loy]  .cases-undo,
.today-vax-undo[b-7bjzo41loy]  .cases-undo {
    margin: 0;
}

/* "⋯" overflow menu — native <details>, no Bootstrap dropdown JS. */
.today-row-menu[b-7bjzo41loy] {
    position: relative;
}

.today-row-menu summary[b-7bjzo41loy] {
    list-style: none;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--ed-hairline);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ed-ink-soft);
    font-size: 1.1rem;
    user-select: none;
}

.today-row-menu summary[b-7bjzo41loy]::-webkit-details-marker { display: none; }
.today-row-menu summary:hover[b-7bjzo41loy] { color: var(--ed-ink); border-color: var(--ed-ink); }

/* Touch floor lives here, not in app.css's 44px passes — the base rule above
   compiles to (0,2,0) and beats any global override (ConsultStepper precedent). */
@media (max-width: 1024px), (pointer: coarse) {
    .today-row-menu summary[b-7bjzo41loy] {
        width: 44px;
        height: 44px;
    }

    .today-row-delete[b-7bjzo41loy] {
        width: 44px;
        height: 44px;
    }
}

.today-row-menu-panel[b-7bjzo41loy] {
    position: absolute;
    right: 0;
    top: calc(100% + 0.3rem);
    z-index: 30;
    min-width: 12rem;
    /* FLAT glass (2026-10-17): edge and shadow of the floating family, a near-solid pane,
       no blur — a row near the top can open it under the masthead's glass. */
    background: var(--glass-flat);
    border: 1px solid var(--ed-hairline-strong);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 var(--glass-float-light), 0 20px 50px var(--glass-float-shade);
    padding: 0.35rem 0;
}

.today-row-menu-panel button[b-7bjzo41loy] {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0.45rem 0.95rem;
    font-family: var(--ed-ui);
    font-size: 0.88rem;
    color: var(--ed-ink);
    cursor: pointer;
}

.today-row-menu-panel button:hover[b-7bjzo41loy] { background: rgba(31, 58, 42, 0.06); }
.today-row-menu-panel .today-row-menu-danger[b-7bjzo41loy] { color: var(--ed-rust); }
.today-row-menu-panel .today-row-menu-danger:hover[b-7bjzo41loy] { background: rgba(162, 59, 42, 0.08); }

/* ── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 640.98px) {
    .today-page[b-7bjzo41loy] { padding: 1rem; }

    .today-title[b-7bjzo41loy] { font-size: 2.2rem; }

    .today-header[b-7bjzo41loy] { align-items: flex-start; }

    .today-row[b-7bjzo41loy] {
        grid-template-columns: 4.5rem 1fr;
        grid-template-areas:
            "time main"
            "actions actions";
        row-gap: 0.5rem;
        padding: 0.9rem 0.1rem;
    }

    .today-row-time[b-7bjzo41loy] { grid-area: time; }
    .today-row-main[b-7bjzo41loy] { grid-area: main; }

    .today-row-actions[b-7bjzo41loy] {
        grid-area: actions;
        justify-content: flex-end;
        gap: 0.4rem;
    }

    .today-row-time-text[b-7bjzo41loy] { font-size: 0.95rem; }
    .today-row-headline[b-7bjzo41loy] { font-size: 1.15rem; }

    .today-add-grid[b-7bjzo41loy] {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .today-add-grid .form-label[b-7bjzo41loy] {
        font-size: max(0.72rem, var(--ed-fs-floor, 0rem));
        letter-spacing: 0.16em;
        text-transform: uppercase;
        font-family: var(--ed-mono);
        color: var(--ed-ink-soft);
    }
}
