/* ═══ Yakuri in the Pravix family — the Pravix layer (Oct 23 2026) ═══
   Loaded last on every Yakuri page, after pvx-shell.css (the suite's shared top bar, copied unchanged).
   Rules come from Pravix Brand Identity (§3 colour, §4 type, §5 layout, §6 materials, §7 icons, §9 components):
   · light and dark from the shared pvx_theme choice (body.dark), each with an Increase Contrast value;
   · Flow / Anesia tokens; cyan marks only what you can press, the selected item and focus (cobalt in light);
   · content is flat; glass only on floating controls (toast, calculator, clinical island); dialogs are solid;
   · the system font, the 13-step scale in rem (nothing under 11 pt), five weights;
   · SF-style line icons instead of text characters.
   Plain hex and rgba values only (no colour mixing functions). Clinical text, labels, holds and Unverified states are untouched. */

/* ── Tokens: Yakuri's names, Pravix values ── */
body{
  --bg:#F5F5F7;--panel:#FFFFFF;--soft:#F2F2F4;--ink:#1D1D1F;--muted:#5C5E62;--line:rgba(29,29,31,.10);
  --navy:#0A1222;--cyan:#23439C;--accent:#23439C;--selected:rgba(35,67,156,.08);--warn:#9A5B00;--warn-bg:#FFF4E0;
  --y-fill:rgba(29,29,31,.05);--y-fill-2:rgba(29,29,31,.09);--y-raised:#FFFFFF;--y-ctl:rgba(29,29,31,.16);
  --y-on-accent:#FFFFFF;--y-sel-edge:rgba(35,67,156,.22);--y-ring:0 0 0 3px rgba(35,67,156,.16);
  --y-danger:#B3141A;--y-danger-bg:#FFEBEA;--y-purple:#7A3FA6;--y-amber:#9A5B00;--y-amber-mark:#E08A00;
  --y-shadow:0 1px 2px rgba(20,28,40,.06),0 8px 24px rgba(20,28,40,.06);--y-dialog-shadow:0 24px 64px rgba(20,28,40,.20);
  --y-glass:rgba(255,255,255,.86);--y-glass-edge:rgba(29,29,31,.10);--y-glass-top:rgba(255,255,255,.9);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",system-ui,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--bg);color:var(--ink);color-scheme:light}
body.dark{
  --bg:#080E1A;--panel:#0E1628;--soft:#131E34;--ink:#D8E8F4;--muted:#A7C2D8;--line:rgba(150,185,220,.16);
  --navy:#D8E8F4;--cyan:#38BDD2;--accent:#38BDD2;--selected:rgba(56,189,210,.14);--warn:#F2C744;--warn-bg:rgba(242,199,68,.12);
  --y-fill:rgba(150,185,220,.10);--y-fill-2:rgba(150,185,220,.18);--y-raised:#192540;--y-ctl:rgba(150,185,220,.32);
  --y-on-accent:#03242C;--y-sel-edge:rgba(77,200,224,.25);--y-ring:0 0 0 3px rgba(56,189,210,.18);
  --y-danger:#FF8A7A;--y-danger-bg:rgba(255,107,87,.14);--y-purple:#B48BD6;--y-amber:#F2C744;--y-amber-mark:#E8A830;
  --y-shadow:0 12px 36px rgba(0,0,0,.30);--y-dialog-shadow:0 24px 64px rgba(0,0,0,.55);
  --y-glass:rgba(23,35,56,.86);--y-glass-edge:rgba(150,185,220,.18);--y-glass-top:rgba(255,255,255,.06);
  color-scheme:dark}
@media(prefers-contrast:more){
  body{--muted:#3A3C40;--line:rgba(29,29,31,.34);--y-ctl:rgba(29,29,31,.5);--accent:#1A3380;--cyan:#1A3380;--warn:#7A4800;--y-sel-edge:#1A3380}
  body.dark{--muted:#D8E8F4;--line:rgba(150,185,220,.45);--y-ctl:rgba(150,185,220,.6);--accent:#6FD3E4;--cyan:#6FD3E4;--warn:#FFD866;--y-sel-edge:#6FD3E4}}
/* Yakuri's own High contrast reading mode keeps its meaning in both themes */
body[data-reading=contrast]{--bg:#FFFFFF;--panel:#FFFFFF;--soft:#F2F2F2;--ink:#000000;--muted:#222222;--line:#666666;--accent:#1A3380;--selected:#E4E9F6}
body.dark[data-reading=contrast]{--bg:#000000;--panel:#05080F;--soft:#0E1628;--ink:#FFFFFF;--muted:#E6EEF6;--line:rgba(230,238,246,.55);--accent:#6FD3E4;--selected:rgba(111,211,228,.20)}
/* the head's height: a default here, the measured value set on <html> by pravix.js (it was on <body>, which overrode the measurement) */
:root{--pvx-head:139px}
html{background:var(--bg)}
body.dark{background:#080E1A}
:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",system-ui,"Segoe UI","Helvetica Neue",Arial,sans-serif}
button,input,select,textarea{font-family:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
::selection{background:var(--selected)}

/* ── The shared head: top bar + Yakuri's sub-nav stay while content scrolls ── */
.pvx-head{position:sticky;top:0;z-index:300}
#pvxSubnav .subnav-title{font-size:.6875rem;color:#86868B}          /* the 11 pt floor (n229) */
body.dark #pvxSubnav .subnav-title{color:#7A98B8}
@media(max-width:1599px){#pvxSubnav .subnav-title{display:none}}       /* the top bar already names the app (n230) */
#pvxSubnav .seg{font-size:.8125rem}
#pvxSubnav .seg .y-seg-label{white-space:nowrap}
.y-private{margin:0;font-size:.75rem;font-weight:600;color:var(--warn);white-space:nowrap;display:flex;align-items:center;gap:6px}
.y-private::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--y-amber-mark);flex:0 0 auto}
#pvxSubnav .pvx-actions .tools{display:flex;align-items:center;gap:10px;margin:0}
/* Yakuri's sub-nav buttons wear Flow's header button (the same rule as .pvx-actions>button) */
#pvxSubnav .pvx-actions .tools>button{display:inline-flex;align-items:center;gap:7px;height:40px;min-height:40px;border-radius:13px;padding:0 14px;font-size:.8125rem;font-weight:600;cursor:pointer;
  border:1px solid rgba(20,28,40,.08);color:#1D1D1F;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(247,249,252,.90));box-shadow:inset 0 1px 0 rgba(255,255,255,.06);transition:border-color .18s ease,background .18s ease;margin:0;min-width:0}
#pvxSubnav .pvx-actions .tools>button:hover{border-color:rgba(20,28,40,.13);background:linear-gradient(180deg,#FFFFFF,rgba(247,249,252,.96))}
body.dark #pvxSubnav .pvx-actions .tools>button{color:#D8E8F4;border-color:rgba(77,200,224,.16);background:linear-gradient(180deg,rgba(25,37,64,.92),rgba(17,27,48,.94))}
body.dark #pvxSubnav .pvx-actions .tools>button:hover{border-color:rgba(77,200,224,.30)}
#pvxSubnav .pvx-actions .tools>button[aria-expanded=true]{border-color:var(--accent);box-shadow:var(--y-ring)}
#pvxSubnav .pvx-actions .tools>button:disabled{opacity:.55}
#pvxSubnav .y-btn-ico svg,#pvxSubnav #x-spotlight-open svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
/* Spotlight sits where Pravix apps keep their search, and reads as one */
#pvxSubnav #x-spotlight-open{width:clamp(220px,22vw,300px);justify-content:flex-start;color:#6E6E73;font-weight:500}
body.dark #pvxSubnav #x-spotlight-open{color:#A7C2D8}
#pvxSubnav #x-spotlight-open .y-spot-label{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#pvxSubnav #x-spotlight-open kbd{font:600 .6875rem/1 inherit;border:1px solid var(--y-ctl);border-radius:6px;padding:3px 6px;color:inherit;background:transparent}
@media(hover:none),(pointer:coarse){#pvxSubnav #x-spotlight-open kbd{display:none}}
@media(max-width:1180px){#pvxSubnav #x-spotlight-open{width:200px}.y-private{display:none}}
@media(max-width:1023px){#pvxSubnav .y-btn-label{display:none}#pvxSubnav .pvx-actions .tools>button{padding:0 11px}#pvxSubnav #x-spotlight-open{width:44px;padding:0;justify-content:center}#pvxSubnav #x-spotlight-open .y-spot-label,#pvxSubnav #x-spotlight-open kbd{display:none}}
@media(max-width:760px){
  #pvxSubnav .switcher{flex:1 1 auto}
  #pvxSubnav .seg:not(.active) .y-seg-label{display:none}             /* icons only, the open view keeps its name */
  #pvxSubnav .seg{font-size:.75rem}
  #pvxSubnav #text-size{display:none}
  #pvxSubnav .pvx-actions .tools>button{height:36px;min-height:36px}}
@media(pointer:coarse){#pvxSubnav .seg,#pvxSubnav .pvx-actions .tools>button{min-height:44px}}

/* ── Sticky parts sit under the head ── */
.yakuri-rail,.library{top:var(--pvx-head);height:calc(100dvh - var(--pvx-head))}
.y-section-nav{top:var(--pvx-head)}
.reader section,.references li{scroll-margin-top:calc(var(--pvx-head) + 64px)}
#utility-calculator-panel{top:calc(var(--pvx-head) + 12px);max-height:calc(100dvh - var(--pvx-head) - 24px)}
.medical-layout{min-height:calc(100dvh - var(--pvx-head))}
@media(max-width:760px){
  .yakuri-rail{top:auto;height:auto}
  .library{top:0;height:calc(100dvh - var(--pvx-head) - var(--y-rail-h,56px))}
  .y-section-nav{top:var(--pvx-head)}}

/* ── Type: headings and labels on the Pravix scale ── */
.eyebrow,.rail-label,.y-kicker,.finding .label,.scope-grid dt,.x-results-label,.toc .eyebrow{font-size:.6875rem!important;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
h1,.library h1,#medical-content h1,#interaction-main h1{font-weight:700;letter-spacing:-.01em}
.library h1{font-size:1.75rem}
.hero-line h2{font-size:2.125rem;font-weight:700;letter-spacing:-.02em;line-height:1.15}
.reader h3{font-size:1.375rem;font-weight:700;letter-spacing:-.01em}
.y-dialog-head h2{font-size:1.25rem;font-weight:700;letter-spacing:-.01em}
.intro,.y-review,.y-search-hint,.integration-counts,.library-footer{color:var(--muted)}
.context,.evidence-label,.reader .evidence-label{color:var(--muted)}
.y-collection-message{color:var(--ink)}
.drug-item small,.x-search-result small{font-variant-numeric:tabular-nums}
.integration-counts,#result-count,#saved-count{font-variant-numeric:tabular-nums}

/* ── The workspace rail (Yakuri's sidebar) ── */
@media(min-width:1151px){.workspace{grid-template-columns:196px 285px minmax(0,1fr)}}
@media(min-width:1600px){.workspace{grid-template-columns:210px 310px minmax(0,1fr)}}
.yakuri-rail{background:var(--panel);border-right:1px solid var(--line);padding:16px 10px;gap:2px}
.yakuri-rail button,.yakuri-rail a{font-size:.8125rem;font-weight:600;color:var(--ink);border-radius:8px;min-height:38px;padding:7px 10px;gap:9px;line-height:1.25;border:1px solid transparent;background:transparent;box-shadow:none}
.yakuri-rail a:hover,.yakuri-rail button:hover{background:var(--y-fill)}
.yakuri-rail [aria-current=page]{background:var(--selected);color:var(--accent);border-color:var(--y-sel-edge);box-shadow:none;font-weight:600}
.yakuri-rail span.y-ico{width:18px;height:18px;display:inline-flex;flex:0 0 18px;color:var(--muted)}
.yakuri-rail [aria-current=page] span.y-ico{color:var(--accent)}
.yakuri-rail span.y-ico svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.yakuri-rail .rail-label{padding:12px 10px 4px;margin:6px 0 2px}
.rail-bottom button{font-size:.75rem;border:0;background:var(--y-fill);border-radius:8px;justify-content:center}
.rail-bottom kbd{font:600 .6875rem/1 inherit;border:1px solid var(--y-ctl);border-radius:6px;padding:2px 5px;margin-left:6px}
.rail-bottom p{font-size:.6875rem}
@media(pointer:coarse){.yakuri-rail button,.yakuri-rail a{min-height:44px}}

/* ── Library column ── */
.library{background:var(--panel);border-right:1px solid var(--line)}
.search{background:var(--y-fill);border:1px solid transparent;border-radius:8px;height:40px;padding:0 10px;gap:8px}
.search:focus-within{border-color:var(--accent);box-shadow:var(--y-ring);background:var(--panel)}
.search>span{display:inline-flex;font-size:0;color:var(--muted)}
.search>span svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round}
.search input{font-size:.8125rem;color:var(--ink)}
.search input::placeholder{color:var(--muted);opacity:1}
.search kbd{font:600 .6875rem/1 inherit;border:1px solid var(--y-ctl);border-radius:6px;padding:3px 6px}
.search:focus-within kbd,.search:has(input:not(:placeholder-shown)) kbd{display:none}
@media(hover:none),(pointer:coarse){.search kbd{display:none}}
/* species filter: a segmented control */
.scopes{background:var(--y-fill);border-radius:8px;padding:2px;gap:2px}
.scopes button{min-height:32px;border-radius:6px;font-size:.8125rem;font-weight:600;color:var(--muted)}
.scopes button:hover{background:transparent;color:var(--ink)}
.scopes button[aria-pressed=true]{background:var(--y-raised);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.18),0 0 0 .5px var(--line)}
@media(pointer:coarse){.scopes button{min-height:44px}}
.y-library-filters summary,.list-heading{color:var(--muted)}
.list-heading{font-size:.75rem}
/* rows: flat, hairline separation, a 2 pt accent edge on the open one */
.drug-list{padding:0 8px 16px}
.drug-card{border-radius:8px;border-bottom:0;margin:0 0 1px;position:relative}
.drug-card+.drug-card::before{content:"";position:absolute;left:10px;right:10px;top:-1px;height:1px;background:var(--line)}
.drug-item{border-radius:8px;min-height:56px;padding:10px}
.drug-item:hover{background:var(--y-fill)}
.drug-item strong{font-size:.875rem;font-weight:600;color:var(--ink)}
.drug-item small{font-size:.75rem;color:var(--muted)}
.drug-card:has(.drug-item[aria-current=true]){background:var(--selected);box-shadow:inset 2px 0 0 var(--accent)}
.drug-card:has(.drug-item[aria-current=true])::before,.drug-card:has(.drug-item[aria-current=true])+.drug-card::before{display:none}
.drug-item[aria-current=true]{background:transparent;color:var(--ink)}
.drug-item[aria-current=true] strong{color:var(--accent);font-weight:700}
.drug-item .chevron{font-size:0;width:14px;height:14px;flex:0 0 14px;background:currentColor;color:var(--muted);
  -webkit-mask:var(--y-i-chevron) center/contain no-repeat;mask:var(--y-i-chevron) center/contain no-repeat}
.drug-item .chevron[data-fav]{-webkit-mask-image:var(--y-i-star-fill);mask-image:var(--y-i-star-fill);color:var(--accent)}
.x-quick-trigger{font-size:.75rem;font-weight:600;color:var(--accent);border-radius:6px;white-space:nowrap}
.x-quick-trigger:hover{background:var(--y-fill)}
.library-footer{font-size:.6875rem;border-top:1px solid var(--line)}
.status-dot{background:var(--y-amber-mark)}

/* ── Monograph ── */
#article{background:transparent}
.article-top{color:var(--muted)}
.article-top button,.article-top a{color:var(--accent)}
.article-top .back{display:none;align-items:center;gap:4px;font-weight:600}
@media(max-width:760px){.article-top .back{display:inline-flex}}
.article-top .back .y-back-ico{width:16px;height:16px;background:currentColor;-webkit-mask:var(--y-i-chevron-left) center/contain no-repeat;mask:var(--y-i-chevron-left) center/contain no-repeat}
.subtitle,.article-hero .subtitle{color:var(--muted)}
/* status tags are plain, never button-looking chips (§9.1) */
.chip,.chip.research{background:var(--y-fill);border:0;border-radius:6px;color:var(--ink);font-size:.75rem;font-weight:600;padding:4px 8px}
.save-button,#favorite{font-size:0!important;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:0;border-radius:8px;background:var(--y-fill);position:relative;color:var(--ink)}
.save-button::after,#favorite::after{content:"";position:absolute;inset:11px;background:currentColor;-webkit-mask:var(--y-i-star) center/contain no-repeat;mask:var(--y-i-star) center/contain no-repeat}
.save-button[aria-pressed=true],#favorite[aria-pressed=true]{color:var(--accent);background:var(--selected)}
.save-button[aria-pressed=true]::after,#favorite[aria-pressed=true]::after{-webkit-mask-image:var(--y-i-star-fill);mask-image:var(--y-i-star-fill)}
@media(pointer:coarse){.save-button,#favorite{width:44px;height:44px}}

/* Secondary buttons: a soft fill, no outline (§9.1). The pressed one is the selected state. */
:is(.y-article-actions,.x-reference-tools,.r-tools,.x-quick-actions,.x-source-links,.h-links,.hold-buttons,.clinical-actions,.interaction-view-controls,.graph-pairs,.cpr-title-row,.p-drug-card nav,.p-context-actions) button,
.x-inspect-section,.test-gate,.rail-bottom button,.load-more,.medical-actions button:not([type=submit]),.cpr-info-dialog button,
.o-dialog button,.o-editor button,.o-section-pin,.p-dialog button,.p-context-dialog button,.interaction-row button,.calc-keypad button{
  border:1px solid transparent;background:var(--y-fill);color:var(--ink);border-radius:8px;font-weight:600;box-shadow:none}
:is(.y-article-actions,.x-reference-tools,.r-tools,.x-quick-actions,.x-source-links,.h-links,.hold-buttons,.interaction-view-controls,.graph-pairs,.cpr-title-row,.p-drug-card nav,.p-context-actions) button:hover,
.x-inspect-section:hover,.test-gate:hover,.rail-bottom button:hover,.load-more:hover,.medical-actions button:not([type=submit]):hover,.o-dialog button:hover,.o-editor button:hover,.p-dialog button:hover,.p-context-dialog button:hover,.interaction-row button:hover,.calc-keypad button:hover{background:var(--y-fill-2)}
:is(.y-article-actions,.x-reference-tools,.r-tools,.interaction-view-controls,.o-dialog,.p-dialog) button[aria-pressed=true]{background:var(--selected);color:var(--accent);border-color:var(--y-sel-edge);box-shadow:var(--y-ring)}
.clinical-actions button{color:var(--muted)}
/* toolbar rows above the monograph stay compact on a Mac: style, not size, shows the preferred choice */
@media(pointer:fine){:is(.y-article-actions,.x-reference-tools,.r-tools) button{min-height:32px;padding:6px 11px;font-size:.75rem}.x-focus-modes button{min-height:32px;padding:6px 12px}.y-article-actions select{min-height:32px}}
body.dark :is(.y-article-actions,.x-reference-tools,.r-tools) button:not([aria-pressed=true]){background:rgba(150,185,220,.08)}
.y-article-actions label,.y-article-actions select{color:var(--muted)}
/* Clinical focus: a segmented control (Standard · Clinical · Research) */
.x-focus-modes{border-bottom:1px solid var(--line)}
.x-focus-modes>span{color:var(--muted)}
.x-focus-modes button{border:1px solid transparent;border-radius:6px;font-weight:600;color:var(--muted);background:var(--y-fill)}
.x-focus-modes button:hover{color:var(--ink)}
.x-focus-modes [aria-pressed=true]{background:var(--selected);color:var(--accent);border-color:var(--y-sel-edge);font-weight:600}
/* evidence state */
.y-state{border-color:var(--line)}
.y-state button{color:var(--accent)}
.clinical-badge{background:var(--y-fill);color:var(--ink);border-radius:6px;font-weight:700}
.clinical-badge.held{color:var(--warn);background:var(--warn-bg)}
.clinical-badge.approved{color:var(--accent);background:var(--selected)}
.y-state #y-active-holds:not(:empty),.hold-reasons{border-radius:8px;box-shadow:inset 2px 0 0 var(--y-amber-mark)}
/* clinical context fields */
:where(#article,.y-dialog,.medical-page,.p-controls,.governance-panel) :is(select,textarea,input:not([type=radio]):not([type=checkbox]):not([type=range])){border:1px solid var(--y-ctl);border-radius:8px;background:var(--panel);color:var(--ink)}
:where(#article,.y-dialog,.medical-page,.governance-panel) :is(select,textarea,input):focus-visible{outline:none;border-color:var(--accent);box-shadow:var(--y-ring)}
.y-context-heading span,#y-context-result,.y-context-fields label{color:var(--muted)}
.h-highlights{border-radius:14px}
/* section tabs */
.y-section-nav{background:var(--bg);border-color:var(--line)}
.y-section-nav button{font-size:.8125rem;font-weight:600;color:var(--muted)}
.y-section-nav button:hover{background:transparent;color:var(--ink)}
.y-section-nav button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}
/* reading */
.reader .notice,.notice{background:var(--soft);border-left:2px solid var(--accent);border-radius:0 8px 8px 0;color:var(--muted)}
.reader .citation-link{background:var(--selected);color:var(--accent);border-radius:6px;font-size:.6875rem;font-weight:700}
.governance-panel{border:1px solid var(--line);border-left:2px solid var(--accent);border-radius:14px;background:var(--panel)}
.finding,.p-drug-card,.section-index,.medical-result,.unassessed,.calculation{border-radius:14px}
.finding.high{border-left:2px solid var(--y-amber-mark)}
.finding.high .label{color:var(--warn)}
summary{color:var(--accent)}
a{color:var(--accent)}

/* ── Dialogs and sheets: solid, scrims dim and never blur (§6) ── */
.y-dialog{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:20px;box-shadow:var(--y-dialog-shadow)}
.y-dialog::backdrop,dialog::backdrop{background:rgba(8,14,26,.42);backdrop-filter:none;-webkit-backdrop-filter:none}
.y-dialog-head{border-bottom:1px solid var(--line)}
.y-dialog-head button,#calc-close,#p-island-hide{font-size:0!important;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border-radius:50%;background:var(--y-fill);color:var(--muted);position:relative;flex:0 0 auto}
.y-dialog-head button::after,#calc-close::after,#p-island-hide::after{content:"";position:absolute;inset:9px;background:currentColor;-webkit-mask:var(--y-i-xmark) center/contain no-repeat;mask:var(--y-i-xmark) center/contain no-repeat}
.y-dialog-head button:hover,#calc-close:hover,#p-island-hide:hover{background:var(--y-fill-2);color:var(--ink)}
@media(pointer:coarse){.y-dialog-head button,#calc-close,#p-island-hide{width:44px;height:44px;min-width:44px;min-height:44px}.y-dialog-head button::after,#calc-close::after,#p-island-hide::after{inset:15px}}
.y-command-label input,.x-spotlight .y-command-label input{background:var(--y-fill);border:1px solid transparent;border-radius:8px}
.y-command-label input:focus-visible{border-color:var(--accent);box-shadow:var(--y-ring);outline:none}
.x-search-result nav button{background:var(--y-fill);border-radius:8px;font-weight:600}
.x-result-name{color:var(--ink);font-weight:700}

/* ── Floating controls: the one Pravix glass (§6) ── */
.toast,#utility-calculator-panel{color:var(--ink)}   /* the glass itself: one rule, under "HIG Materials, Typography and Design principles" */
.toast{top:calc(var(--pvx-head) + 12px);bottom:auto;right:16px;left:auto;transform:none;border-radius:14px;font-size:.8125rem;font-weight:500;max-width:min(420px,calc(100% - 32px))}
html[data-theme=dark] .toast{background:var(--y-glass);color:var(--ink)}
#utility-calculator-panel{border-radius:20px}
#p-island{border-radius:14px;border-left:2px solid var(--accent)}

/* ── Buttons press like every Pravix button (§9.1) ── */
button{transition:background .15s,color .15s,scale .1s}
button:active:not(:disabled){scale:.97}
@media(prefers-reduced-motion:reduce){button:active:not(:disabled){scale:none}}
button:active{background:var(--y-fill-2)}

/* ── Medical calculators and the interaction checker ── */
.medical-page{background:var(--bg)}
.medical-nav{background:var(--panel);border-right:1px solid var(--line);padding:16px 10px}
.medical-nav button{border:1px solid transparent;background:transparent;border-radius:8px;min-height:60px;padding:10px 12px;margin-bottom:2px;font-size:.875rem;font-weight:600;color:var(--ink);box-shadow:none}
.medical-nav button:hover{background:var(--y-fill)}
.medical-nav button[aria-current=page]{background:var(--selected);border-color:var(--y-sel-edge);color:var(--accent);box-shadow:inset 2px 0 0 var(--accent)}
.medical-nav small{color:var(--muted);font-size:.75rem}
.medical-nav p{color:var(--muted)}
.medical-actions button[type=submit]{background:var(--accent);color:var(--y-on-accent);border:1px solid transparent;border-radius:8px;font-weight:600}
.medical-actions button[type=submit]:hover{filter:brightness(1.06)}
.medical-actions button{border-radius:8px}
.medical-species label{border:1px solid var(--y-ctl);border-radius:8px}
.medical-species label:has(:checked){border-color:var(--accent);background:var(--selected);box-shadow:var(--y-ring)}
.medical-species input{accent-color:var(--accent)}
.medical-result{background:var(--soft);border:1px solid var(--line)}
.medical-result.empty{background:var(--soft)}
.medical-result strong{font-variant-numeric:tabular-nums}
#medical-content h1,#interaction-main h1{font-size:1.75rem}
.medical-intro,.medical-footnote{color:var(--muted)}
.medical-tag{color:var(--warn)}
.medical-notice{border-radius:14px}
#interaction-main{padding-top:32px}
.interaction-badge{border-radius:6px;font-weight:700}
.interaction-badge.major{color:var(--y-amber);background:var(--warn-bg)}
.interaction-badge.contraindicated{color:var(--y-danger);background:var(--y-danger-bg)}
.graph-legend .mapped{color:var(--y-amber)}
.graph-legend .species{color:var(--y-purple)}
.edge-visible{stroke:var(--muted)}
.mapped .edge-visible{stroke:var(--y-amber-mark)}
.species .edge-visible{stroke:var(--y-purple)}

/* ── Icons drawn as SF-style symbols (masks; the text characters they replace stay out of view) ── */
body{
  --y-i-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 5.5 16 12l-6.5 6.5'/%3E%3C/svg%3E");
  --y-i-chevron-left:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 5.5 8 12l6.5 6.5'/%3E%3C/svg%3E");
  --y-i-xmark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  --y-i-star:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M12 3.4l2.65 5.37 5.93.86-4.29 4.18 1.01 5.9L12 16.92l-5.3 2.79 1.01-5.9-4.29-4.18 5.93-.86z'/%3E%3C/svg%3E");
  --y-i-star-fill:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M12 3.4l2.65 5.37 5.93.86-4.29 4.18 1.01 5.9L12 16.92l-5.3 2.79 1.01-5.9-4.29-4.18 5.93-.86z'/%3E%3C/svg%3E")}
@media(forced-colors:active){.drug-item .chevron,.save-button::after,#favorite::after,.y-dialog-head button::after,#calc-close::after,#p-island-hide::after,.article-top .back .y-back-ico{background:CanvasText}}

@media print{.pvx-head{display:none!important}}

/* ── Selected tabs and toggles: the tinted selection, never a solid cyan block with white text (§3, n240) ── */
.calc-tabs [aria-selected=true],.calc-tabs [aria-selected=true]:hover,.cpr-unit-toggle input:checked+span{background:var(--selected);color:var(--accent);border-color:var(--y-sel-edge);box-shadow:inset 0 0 0 1px var(--y-sel-edge);font-weight:700}

/* ── Tool sheets (Research, Workspace review, Local tools, Label & voice, Transfer) ── */
.r-dialog button:not(.y-dialog-head button):not(.r-tabs button):not(.y-tabs button):not(.r-edge button){border:1px solid transparent;background:var(--y-fill);color:var(--ink);border-radius:8px;font-size:.8125rem;font-weight:600;padding:8px 12px;box-shadow:none}
.r-dialog button:not(.y-dialog-head button):not(.r-tabs button):not(.y-tabs button):not(.r-edge button):hover{background:var(--y-fill-2)}
.r-dialog button[aria-pressed=true]:not(.r-tabs button){background:var(--selected);color:var(--accent);border-color:var(--y-sel-edge)}
@media(pointer:fine){.r-dialog button:not(.y-dialog-head button):not(.r-tabs button):not(.y-tabs button):not(.r-edge button){min-height:34px}}
/* their sections: tabs like the sub-nav's (tinted when open), never a sideways-scrolling row */
.r-tabs{gap:2px;margin:14px 0 16px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.r-tabs button{border:1px solid transparent;background:transparent;color:var(--muted);border-radius:8px;font-size:.8125rem;font-weight:600;padding:7px 12px;min-height:36px}
.r-tabs button:hover{background:var(--y-fill);color:var(--ink)}
.r-tabs button[aria-pressed=true]{background:var(--selected);color:var(--accent);border-color:var(--y-sel-edge)}
@media(pointer:coarse){.r-tabs button{min-height:44px}}
.r-actions{gap:8px}
.r-edge button{background:transparent;border-radius:8px}
.r-edge button:hover{background:var(--y-fill)}
.r-status,.l-event-meta strong{color:var(--ink)}
.r-notice{border-left:2px solid var(--accent);border-radius:0 8px 8px 0;color:var(--ink)}
.r-review-stage{border-radius:6px;background:var(--y-fill);border-color:transparent}
.r-table th{color:var(--muted);font-weight:600}
.v-findings .r-saved h3{font-size:1rem;font-weight:700}
/* Drug Cards: the save star is drawn, not typed */
.p-drug-card header>button{font-size:0!important;width:40px;height:40px;min-width:40px;padding:0;border-radius:8px;background:var(--y-fill);color:var(--ink);position:relative}
.p-drug-card header>button::after{content:"";position:absolute;inset:11px;background:currentColor;-webkit-mask:var(--y-i-star) center/contain no-repeat;mask:var(--y-i-star) center/contain no-repeat}
.p-drug-card header>button[data-fav]{color:var(--accent);background:var(--selected)}
.p-drug-card header>button[data-fav]::after{-webkit-mask-image:var(--y-i-star-fill);mask-image:var(--y-i-star-fill)}
.p-evidence{border-radius:6px}

/* ── Results are content: a flat card with the accent edge, not a tinted wash ── */
.medical-result:not(.empty){background:var(--panel);border:1px solid var(--line);box-shadow:inset 2px 0 0 var(--accent)}
.interaction-row button,.interaction-view-controls button,.interaction-heading button,.graph-pairs button{font-size:.875rem}
.interaction-heading button{color:var(--accent);font-weight:600}
#cpr-info{font-size:0!important;width:40px;height:40px;min-width:40px;padding:0;position:relative;color:var(--ink)}
#cpr-info::after{content:"";position:absolute;inset:9px;background:currentColor;-webkit-mask:var(--y-i-info) center/contain no-repeat;mask:var(--y-i-info) center/contain no-repeat}
body{--y-i-info:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.75'/%3E%3Cpath d='M12 11v5.5'/%3E%3Cpath d='M12 7.6v.01' stroke-width='2.4'/%3E%3C/svg%3E")}
@media(forced-colors:active){#cpr-info::after,.p-drug-card header>button::after{background:CanvasText}}

/* ═══ HIG Accessibility, Color and Layout fixes (Oct 23 2026; claude/hig-audit-yakuri-accessibility-color-layout.md) ═══ */
body{--y-field-edge:rgba(29,29,31,.5)}
body.dark{--y-field-edge:rgba(150,185,220,.52)}
@media(prefers-contrast:more){body{--y-field-edge:rgba(29,29,31,.72)}body.dark{--y-field-edge:rgba(150,185,220,.78)}}
.y-vh{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;margin:-1px!important;border:0!important}

/* ── 5 · The monograph's tools in one toolbar row ── */
.y-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 12px}
.y-menu{position:relative}
.y-menu-btn,.y-toolbar .y-tool-btn{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:6px 10px 6px 12px;border:1px solid transparent;border-radius:8px;background:var(--y-fill);color:var(--ink);font-size:.8125rem;font-weight:600;line-height:1.2;white-space:nowrap;box-shadow:none}
.y-toolbar .y-tool-btn{padding:6px 12px}
.y-menu-btn:hover,.y-toolbar .y-tool-btn:hover{background:var(--y-fill-2)}
.y-menu-btn[aria-expanded=true]{background:var(--selected);color:var(--accent);border-color:var(--y-sel-edge)}
.y-toolbar .y-tool-btn[aria-pressed=true]{background:var(--selected);color:var(--accent);border-color:var(--y-sel-edge)}
body.dark :is(.y-menu-btn,.y-toolbar .y-tool-btn):not([aria-expanded=true]):not([aria-pressed=true]){background:rgba(150,185,220,.08)}
.y-chev{width:14px;height:14px;flex:0 0 14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--muted)}
.y-menu-btn[aria-expanded=true] .y-chev{color:currentColor}
.y-menu-list{position:absolute;top:calc(100% + 6px);left:0;z-index:60;min-width:240px;max-width:min(340px,calc(100vw - 32px));padding:6px;border-radius:14px;}
.y-menu-list[hidden]{display:none}
.y-menu-list .y-menu-item{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:36px;margin:0;padding:7px 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);font-size:.8125rem;font-weight:500;text-align:left;white-space:normal;box-shadow:none;flex:none}
.y-menu-list .y-menu-item[hidden]{display:none}
.y-menu-list .y-menu-item:disabled{color:var(--muted);opacity:.7}
.y-menu-list .y-menu-item:not(:disabled):hover,.y-menu-list .y-menu-item:focus-visible{background:var(--accent);color:var(--y-on-accent);outline:none}
.y-menu-list .y-menu-item[aria-pressed=true]{font-weight:700}
.y-check{width:16px;height:16px;flex:0 0 16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}
.y-menu-item[aria-checked=true] .y-check{visibility:visible}
.y-menu-sep{height:1px;background:var(--line);margin:5px 8px}
.y-menu-group{font-size:.75rem;font-weight:600;color:var(--muted);padding:6px 10px 4px}
@media(forced-colors:active){.y-menu-list .y-menu-item:focus-visible{outline:2px solid Highlight}}
/* emptied tool rows take no room */
#article :is(.y-article-actions,.x-reference-tools,.r-tools)[hidden]{display:none!important}
/* Clinical Focus stays a segmented control, at the row's trailing end */
.y-toolbar .y-modes{border:0;padding:0;margin:0 0 0 auto;gap:2px;flex-wrap:nowrap}
.y-toolbar .y-modes>span{font-size:.75rem;margin-right:6px}
@media(pointer:fine){.y-toolbar .y-modes button{min-height:32px;padding:6px 12px}}
@media(max-width:1150px){.y-toolbar .y-modes{margin-left:0}}
@media(max-width:760px){.y-toolbar .y-modes{width:100%;flex-wrap:wrap}.y-toolbar .y-modes>span{width:auto}.y-toolbar .y-modes button{flex:1}}

/* ── 9 + 13 · The clinical island docks into the sticky section tabs (a mirror button; the floating island steps aside) ── */
body.y-island-docked #p-island{display:none!important}
.p-island-visible.y-island-docked #article{padding-bottom:calc(70px + env(safe-area-inset-bottom))}
.y-section-nav{align-items:stretch}
.y-section-nav .y-island-dock{position:sticky;right:0;z-index:1;flex:0 1 auto;min-width:min(140px,40%);display:flex;align-items:center;gap:8px;max-width:min(340px,48%);min-height:48px;margin-left:auto;padding:6px 10px 6px 12px;
  border:0;border-left:1px solid var(--line);border-bottom:2px solid transparent;border-radius:0;background:var(--bg);color:var(--muted);font-size:.75rem;font-weight:600;white-space:nowrap}
.y-section-nav .y-island-dock[hidden]{display:none}
.y-section-nav .y-island-dock:hover{background:var(--bg);color:var(--ink)}
.y-island-text{overflow:hidden;text-overflow:ellipsis;min-width:0}
.y-island-ico{display:inline-flex;width:16px;height:16px;flex:0 0 16px;color:var(--accent)}
.y-island-ico svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}
@media(max-width:1150px){.y-section-nav .y-island-dock{max-width:none;width:48px;min-width:48px;justify-content:center;padding:0}.y-section-nav .y-island-dock .y-island-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}}
/* at large text sizes the docked context goes icon-only too, so its words are never cut short (its name keeps them) */
body.y-large-text .y-section-nav .y-island-dock{max-width:none;width:52px;min-width:52px;justify-content:center;padding:0}
body.y-large-text .y-section-nav .y-island-dock .y-island-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}

/* ── 4 · Drug names wrap only between words ── */
.hero-line h2.y-drug-title{overflow-wrap:break-word;word-break:normal;hyphens:manual;font-size:min(2.125rem,8.5vw)}

/* ── 1 · The rail scrolls instead of squeezing; names wrap ── */
.yakuri-rail{overflow-y:auto;overscroll-behavior:contain}
.yakuri-rail>*{flex-shrink:0}
.yakuri-rail button,.yakuri-rail a{white-space:normal}

/* ── 2 · The drug list always gets room ── */
.library{overflow-y:auto;overscroll-behavior:contain}
.library .drug-list{flex:1 0 auto;min-height:max(50%,12rem)}
body.y-large-text .library :is(.intro,.y-search-hint,.eyebrow){display:none}
body.y-large-text .library h1{margin-top:0}
.drug-item strong{overflow-wrap:anywhere}  /* a long name wraps inside the list instead of being cut off */
.drug-item>*:not(.chevron){min-width:0}
body.y-large-text .drug-card{grid-template-columns:minmax(0,1fr)}
body.y-large-text .drug-card .x-quick-trigger{justify-self:start;margin:0 0 8px 6px;padding:6px 8px}

/* ── 3 · The sub-nav never cuts a view off: labels give way, the open view's last ── */
#pvxSubnav .seg.active{flex-shrink:0}
#pvxSubnav.y-fit-1 :is(.y-private,.subnav-title){display:none}
#pvxSubnav.y-fit-2 #x-spotlight-open{width:44px;padding:0;justify-content:center}
#pvxSubnav.y-fit-2 #x-spotlight-open :is(.y-spot-label,kbd){display:none}
#pvxSubnav.y-fit-3 .y-btn-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
#pvxSubnav.y-fit-3 .pvx-actions .tools>button{padding:0 11px}
#pvxSubnav.y-fit-4 .seg:not(.active) .y-seg-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
#pvxSubnav.y-fit-5 .seg .y-seg-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* ── 6 · A comfortable reading measure (scales with the text) ── */
.reader{max-width:68ch}                       /* ≈ 80 characters of body text */
.reader .notice>*,.reader .footnote{max-width:62ch}  /* small notes keep the same measure */

/* ── 7 · iPad portrait keeps the rail, as an icon column ── */
@media(min-width:761px) and (max-width:900px){
  .workspace{grid-template-columns:64px 250px minmax(0,1fr)}
  .yakuri-rail{display:flex;align-items:center;padding:12px 8px;gap:2px}
  .yakuri-rail :is(.rail-label,.rail-bottom){display:none}
  .yakuri-rail>button,.yakuri-rail>a{width:44px;height:44px;min-height:44px;padding:0;justify-content:center;font-size:0;gap:0;flex:0 0 44px}
  .yakuri-rail span.y-ico{width:20px;height:20px;flex-basis:20px}
  .yakuri-rail span.y-ico svg{width:20px;height:20px}}

/* ── 8 · iPhone: the rail becomes one Workspace sheet; nothing scrolls sideways ── */
#pvxSubnav .pvx-actions .tools>#y-workspace-open{display:none}
@media(max-width:760px){
  .yakuri-rail{display:none}
  #pvxSubnav .pvx-actions .tools>#y-workspace-open{display:inline-flex}
  #pvxSubnav .pvx-actions .tools>#utility-calculator{display:none}   /* one tap away in Workspace, so the open view keeps its name */
  #pvxSubnav .pvx-actions .tools{gap:6px}}
.y-ws-dialog{max-width:520px}
.y-ws-intro{color:var(--muted);margin:0 0 12px}
.y-ws-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px}
.y-ws-item{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 12px;border-radius:10px;background:var(--y-fill);color:var(--ink);font-size:.875rem;font-weight:600;text-align:left;border:1px solid transparent}
.y-ws-item:hover{background:var(--y-fill-2)}
.y-ws-item[aria-current=page]{background:var(--selected);color:var(--accent);border-color:var(--y-sel-edge)}
.y-ws-item .y-ico{display:inline-flex;width:20px;height:20px;flex:0 0 20px;color:var(--muted)}
.y-ws-item[aria-current=page] .y-ico{color:var(--accent)}
.y-ws-item .y-ico svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ── 10 · Safe areas ── */
.pvx-head{padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);background:var(--bg)}
.workspace,.medical-layout{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.library .drug-list{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
#article{padding-bottom:calc(70px + env(safe-area-inset-bottom))}
.toast{right:calc(16px + env(safe-area-inset-right))}
dialog.y-dialog,.y-dialog{max-height:calc(88dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}

/* ── 11 · Messages: failures stay with a close button ── */
.toast{display:flex;align-items:center;gap:10px}
.toast.visible{pointer-events:auto}
.toast.y-failure{border-left:3px solid var(--y-amber-mark)}
.y-toast-text{flex:1;min-width:0}
.y-toast-close{font-size:0;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border-radius:50%;background:var(--y-fill);color:var(--muted);position:relative;flex:0 0 auto}
.y-toast-close::after{content:"";position:absolute;inset:8px;background:currentColor;-webkit-mask:var(--y-i-xmark) center/contain no-repeat;mask:var(--y-i-xmark) center/contain no-repeat}
.y-toast-close:hover{background:var(--y-fill-2);color:var(--ink)}
@media(forced-colors:active){.y-toast-close::after{background:CanvasText}}

/* ── 12 · 44 pt targets on touch (the look stays; the hit area grows) ── */
@media(pointer:coarse){
  .y-menu-btn,.y-toolbar .y-tool-btn,.y-toolbar .y-modes button,.y-menu-list .y-menu-item,#back,#print,#y-evidence,.y-context-fields select,.library select,.y-library-filters summary{min-height:44px}
  .search{height:44px}
  #pvxSubnav .pvx-actions .tools>button{min-width:44px}
  #pvxSubnav .seg{min-width:44px}
  #pvxSubnav #utility-calculator,#pvxSubnav #y-workspace-open{min-width:44px;min-height:44px}
  .y-toast-close{width:44px;height:44px;min-width:44px;min-height:44px}.y-toast-close::after{inset:15px}}

/* standalone links (source lists, notes, the coverage link) are targets too: 28 pt with a mouse, 44 pt on touch */
#article .notice>a,.medical-source>a,.library-footer a{display:inline-flex;align-items:center;min-height:28px}
.medical-source>a{display:flex}
@media(pointer:coarse){#article .notice>a,.medical-source>a,.library-footer a,:root body .library :is(#clinical-filter,#evidence-filter){min-height:44px}}

/* ── 13 · Visible focus: the skip link shows above the head ── */
.skip{z-index:400}
.skip:focus{top:calc(10px + env(safe-area-inset-top))}

/* ── 15 · The calculator's selected tab: brighter accent text in dark (5.3:1) ── */
body.dark .calc-tabs [aria-selected=true],body.dark .calc-tabs [aria-selected=true]:hover{color:#6FD3E4}

/* ── 16 · Field edges at 3:1 (Increase Contrast goes further) ── */
:root body :is(input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=hidden]),select,textarea):not(.search input):not(.calc-display *):not(.pvx-head *){border-color:var(--y-field-edge)}
:root body :is(input,select,textarea):not(.search input):not(.pvx-head *):focus-visible{border-color:var(--accent)}
.search{border-color:var(--y-field-edge)}
:root body .library :is(#clinical-filter,#evidence-filter){border:1px solid var(--y-field-edge);border-radius:8px;padding-left:8px;padding-right:8px}
:root body .library :is(#clinical-filter,#evidence-filter):focus-visible{border-color:var(--accent)}
.search:focus-within{border-color:var(--accent)}

/* ── 17 · Unverified is neutral everywhere; amber stays for Held ── */
.p-evidence{background:var(--y-fill);color:var(--ink)}
.p-evidence.held{background:var(--warn-bg);color:var(--warn)}

/* ═══ HIG Materials, Typography and Design principles (Oct 23 2026; claude/hig-audit-yakuri-materials-typography-principles.md) ═══ */
body{--y-glass-solid:#FDFDFD}
body.dark{--y-glass-solid:#152034}

/* ── M1 · M2 · one glass for every floating surface: the menus, the toast, the calculator and the sticky section tabs (§6) ── */
.toast,#utility-calculator-panel,.y-menu-list,.y-section-nav{background:var(--y-glass);-webkit-backdrop-filter:blur(12px) saturate(160%);backdrop-filter:blur(12px) saturate(160%)}
.toast,#utility-calculator-panel,.y-menu-list{border:1px solid var(--y-glass-edge);box-shadow:inset 0 1px 0 var(--y-glass-top),0 18px 44px rgba(0,0,0,.28)}
body:not(.dark) :is(.toast,#utility-calculator-panel,.y-menu-list){box-shadow:inset 0 1px 0 var(--y-glass-top),0 18px 44px rgba(20,28,40,.16)}
.y-section-nav{border-top-color:var(--y-glass-edge);border-bottom-color:var(--y-glass-edge)}
.y-section-nav .y-island-dock,.y-section-nav .y-island-dock:hover{background:var(--y-glass-solid)}
/* solid instead: Reduce Transparency, Increase Contrast (with a visible edge), forced colours, no blur, a slow device */
@media(prefers-reduced-transparency:reduce),(forced-colors:active){
  :is(.toast,#utility-calculator-panel,.y-menu-list,.y-section-nav){-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--panel)}
  .y-section-nav .y-island-dock,.y-section-nav .y-island-dock:hover{background:var(--panel)}}
@media(prefers-contrast:more){
  :is(.toast,#utility-calculator-panel,.y-menu-list,.y-section-nav){-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--panel);border-color:var(--line)}
  .y-section-nav .y-island-dock,.y-section-nav .y-island-dock:hover{background:var(--panel)}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :is(.toast,#utility-calculator-panel,.y-menu-list,.y-section-nav){background:var(--panel)}
  .y-section-nav .y-island-dock,.y-section-nav .y-island-dock:hover{background:var(--panel)}}
html.y-noblur :is(.toast,#utility-calculator-panel,.y-menu-list,.y-section-nav){-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--panel)}
html.y-noblur .y-section-nav .y-island-dock{background:var(--panel)}
@media print{.y-section-nav{-webkit-backdrop-filter:none;backdrop-filter:none;background:none}}

/* ── T4 · Dynamic Type on iPhone and iPad: the root follows Settings › Larger Text (Flow n184, Anesia, Treatment n225) ── */
@supports (font:-apple-system-body){@media(pointer:coarse){
  html{font:-apple-system-body}
  body,button,input,select,textarea{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",system-ui,"Segoe UI","Helvetica Neue",Arial,sans-serif}}}

/* ── T6 · safety text leads: the Held line, open holds, safety notices and "Still unverified" at 15 pt (Subhead) ── */
.y-state{font-size:.9375rem;line-height:1.5}
.y-state>span{font-weight:600}
.y-state .clinical-badge{font-size:.8125rem;font-weight:700}
.y-state button{font-size:.8125rem}
.y-state #y-active-holds,.y-state #y-active-holds li{font-size:.9375rem;line-height:1.55}
.reader .notice,.reader .notice p,.reader .notice .footnote{font-size:.9375rem;line-height:1.6}
.reader .notice .footnote strong{font-weight:600}

/* ── T5 · touch screens read a step larger (§4, n231): primary lines 16 pt, secondary 13 pt or more ── */
@media(pointer:coarse){
  .drug-item strong{font-size:1rem}
  .drug-item small,.x-quick-trigger,.y-review,.article-top,.article-top button,.y-context-heading,.y-context-heading span,.y-context-fields label,.y-context-fields select,#y-context-result,
  .chip,.list-heading,.library .intro,.y-search-hint,.library-footer,.integration-counts,.select-label,.y-library-filters summary,.library select,
  .footnote,.source-meta,.reader .evidence-label,.reader .citation-link,.h-links small,.o-tabs button,.y-ws-intro,.chip.research,.drug-card .x-quick-trigger{font-size:.8125rem}
  .y-section-nav .y-island-dock{font-size:min(.8125rem,20px)}
  .y-state,.y-state #y-active-holds,.y-state #y-active-holds li,.reader .notice,.reader .notice p,.reader .notice .footnote{font-size:1rem}}

/* the rest of the secondary text on touch, sheets included (uppercase eyebrows keep their 11 pt, §4) */
@media(pointer:coarse){:root body :is(#p-card-status,.x-focus-modes>span,.clinical-badge,.h-links button,.y-review-notes>summary,.x-inspect-section,.o-section-pin,.reader dt,li small,button small,.clinical-actions button,
  .y-command-label,.x-caption,.x-search-result small,.x-search-result nav button,.x-spotlight-actions button,.p-controls label,.p-facts dt,.p-facts dd,.p-drug-card nav button,#p-card-more,
  .y-compare-selectors label,.y-compare-heading,.y-collection-create label,.r-actions button,.o-heading button,.p-context-actions button,.calc-help,#utility-calculator-panel footer,
  .medical-nav p,.medical-footnote,#h-highlights button,#article dt){font-size:.8125rem}
  :root body .x-caption{font-size:.8125rem!important}}

/* ── T9 · content grows first: bar labels grow to about 1.5× and then hold (HIG: prioritize important content) ── */
#pvxSubnav .seg,#pvxSubnav .pvx-actions .tools>button,.y-section-nav button,.y-menu-btn,.y-toolbar .y-tool-btn{font-size:min(.8125rem,20px)}
.y-section-nav .y-island-dock,.y-toolbar .y-modes>span,.y-toolbar .y-modes button{font-size:min(.75rem,18px)}
@media(pointer:coarse){.y-section-nav .y-island-dock,.y-toolbar .y-modes>span,.y-toolbar .y-modes button{font-size:min(.8125rem,20px)}}

/* ── T7 · symbols grow with their text (§7: 0.8–1.3× the label), sized in rem; bar symbols hold with their labels ── */
#pvxSubnav .seg svg,#pvxSubnav .y-btn-ico svg,#pvxSubnav #x-spotlight-open svg{width:min(1rem,24px);height:min(1rem,24px)}
.yakuri-rail span.y-ico,.yakuri-rail span.y-ico svg{width:1rem;height:1rem;flex-basis:1rem}
.search>span svg{width:1rem;height:1rem}
.drug-item .chevron{width:.875rem;height:.875rem;flex-basis:.875rem}
.article-top .back .y-back-ico{width:.875rem;height:.875rem}
.y-chev{width:min(.875rem,21px);height:min(.875rem,21px);flex-basis:min(.875rem,21px)}
.y-check{width:1rem;height:1rem;flex-basis:1rem}
.y-island-ico,.y-island-ico svg{width:min(1rem,24px);height:min(1rem,24px);flex-basis:min(1rem,24px)}
.y-ws-item .y-ico,.y-ws-item .y-ico svg{width:1.125rem;height:1.125rem;flex-basis:1.125rem}
@media(min-width:761px) and (max-width:900px){.yakuri-rail span.y-ico,.yakuri-rail span.y-ico svg{width:1.25rem;height:1.25rem;flex-basis:1.25rem}}

/* ── T8 · fewer columns at large text: fields and facts stack, the library column widens ── */
body.y-large-text .y-context-fields{grid-template-columns:minmax(0,1fr)}
body.y-large-text .y-context-fields label:nth-child(2){grid-column:auto;grid-row:auto}
/* pop-ups are controls: their value holds at 24 pt (about 1.85×) so it never needs cutting off on a phone */
body.y-large-text :is(.y-context-fields,.y-compare-selectors,.p-controls,.y-library-filters,.library) select{font-size:min(.8125rem,24px)}
body.y-large-text :is(.p-facts,.y-source-facts,.record dl){grid-template-columns:minmax(0,1fr);gap:2px 0}
body.y-large-text :is(.p-facts,.y-source-facts,.record dl) dd{margin-bottom:10px}
body.y-large-text :is(.y-compare-selectors,.p-controls,.scope-grid){grid-template-columns:minmax(0,1fr)}
body.y-large-text .y-compare-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-width:0}
body.y-large-text .y-compare-grid>.y-compare-heading{grid-column:1/-1}
body.y-large-text .y-compare-grid>*{border-left:0!important;border-right:0!important}
body.y-large-text .y-compare-grid>:nth-child(3n){border-left:1px solid var(--line)!important}
@media(min-width:1151px){body.y-large-text .workspace{grid-template-columns:max(196px,min(16rem,20vw)) minmax(0,max(285px,min(28rem,30vw))) minmax(0,1fr)}}
@media(min-width:1600px){body.y-large-text .workspace{grid-template-columns:max(210px,min(16rem,20vw)) minmax(0,max(310px,min(28rem,30vw))) minmax(0,1fr)}}
@media(min-width:901px) and (max-width:1150px){body.y-large-text .workspace{grid-template-columns:max(140px,min(14rem,18vw)) minmax(0,max(250px,min(28rem,30vw))) minmax(0,1fr)}}
@media(min-width:761px) and (max-width:900px){body.y-large-text .workspace{grid-template-columns:64px minmax(0,max(250px,min(28rem,36vw))) minmax(0,1fr)}}

/* rail names never run past their row: they wrap, hyphenating a word only when it can't fit */
.yakuri-rail>button,.yakuri-rail>a{min-width:0;overflow-wrap:anywhere;hyphens:auto}

/* ── T10 · body leading for small text that runs three lines or more ── */
.library-footer,.h-links p,.y-search-hint,.library .intro,#y-context-result,.y-context-heading span,.integration-counts{line-height:1.45}

/* ── T11 · one monospace ── */
.cpr-formula{font-family:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace}

/* ── P13 · one Spotlight: the rail's duplicate goes (the sub-nav's search field and ⌘K stay) ── */
.rail-bottom #y-command{display:none}

/* ── P14 · Quick view on demand: on hover, focus and the open row (Space opens it on a Mac; touch and hold on touch) ── */
@media(hover:hover) and (pointer:fine){
  .drug-card .x-quick-trigger{opacity:0}
  .drug-card:hover .x-quick-trigger,.drug-card:focus-within .x-quick-trigger,.drug-card:has(.drug-item[aria-current=true]) .x-quick-trigger{opacity:1}}
@media(pointer:coarse){
  .drug-card{grid-template-columns:minmax(0,1fr) auto}
  .drug-card:not(:has(.drug-item[aria-current=true])) .x-quick-trigger{display:none}}
body.y-large-text .drug-card:not(:has(.drug-item[aria-current=true])):not(:focus-within) .x-quick-trigger{display:none}
@media print{.drug-card .x-quick-trigger{display:none}}

/* ── P16 · My workspace's tabs wrap instead of pushing the sheet sideways ── */
.o-tabs{flex-wrap:wrap}
.o-tabs button{flex:1 1 auto;min-width:0;white-space:normal}
@media(pointer:coarse){.drug-item{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}}

/* ═══ HIG Branding, Icons and Images (Oct 23 2026; claude/hig-audit-yakuri-branding-icons-images.md) ═══ */
/* ── B2 · brand names give way to content: the eyebrow takes the reference kind; the rail's brand block goes ── */
.article-hero .chips .chip[hidden]{display:none}
.yakuri-rail .rail-bottom{display:none}

/* ── I3 · symbols for "opens elsewhere" (arrow.up.right) and "go to" (chevron.right), sized and coloured with their text ── */
body{--y-i-ext:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8.5 7H17v8.5'/%3E%3C/svg%3E");
  --y-i-go:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5.5 15.5 12 9 18.5'/%3E%3C/svg%3E")}
.y-sym{display:inline-block;width:.85em;height:.85em;margin-left:.3em;vertical-align:-.08em;background:currentColor;flex:0 0 auto}
.y-sym-ext{-webkit-mask:var(--y-i-ext) center/contain no-repeat;mask:var(--y-i-ext) center/contain no-repeat}
.y-sym-go{-webkit-mask:var(--y-i-go) center/contain no-repeat;mask:var(--y-i-go) center/contain no-repeat}
@media(forced-colors:active){.y-sym{background:LinkText}}
@media print{.y-sym{display:none}}

/* ── I4 · a symbol's stroke follows its label's weight (§7): Semibold 2.0, Medium 1.8, Regular 1.6 ── */
.yakuri-rail span.y-ico svg,#pvxSubnav .seg svg,#pvxSubnav .y-btn-ico svg,.y-ws-item .y-ico svg,.y-island-ico svg{stroke-width:2}
#pvxSubnav #x-spotlight-open svg{stroke-width:1.8}
.search>span svg{stroke-width:1.6}

/* ═══ HIG Layout, Motion and SF Symbols (Oct 23 2026; claude/hig-audit-yakuri-layout-motion-symbols.md) ═══ */
/* ── L1 · anything that scrolls a view's tabs into place lands under the real head ── */
.y-section-nav{scroll-margin-top:var(--pvx-head)}

/* ── L3 · scroll edge: once the tabs are stuck, content dims as it passes under them (a layer of the page colour between the
   blurred backdrop and the labels) and fades for about 16 pt below. The glass recipe itself is unchanged. ── */
body{--y-edge:rgba(245,245,247,.72);--y-edge-strong:rgba(245,245,247,.92)}
body.dark{--y-edge:rgba(8,14,26,.72);--y-edge-strong:rgba(8,14,26,.92)}
.y-section-nav.y-stuck{background-image:linear-gradient(var(--y-edge),var(--y-edge));box-shadow:0 8px 12px 0 var(--y-edge-strong)}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active){.y-section-nav.y-stuck{background-image:none}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.y-section-nav.y-stuck{background-image:none}}
html.y-noblur .y-section-nav.y-stuck{background-image:none}

/* ── L4 · compact height (500 pt tall or less): Yakuri's own rows tighten (targets stay 44 pt); while a monograph is open
   the drug list steps aside, as in iPhone portrait; Back and Library bring it back ── */
@media(max-height:500px){
  #pvxSubnav.subnav{padding-top:4px;padding-bottom:4px}
  .y-section-nav button{min-height:44px;padding-top:6px;padding-bottom:6px}
  .y-section-nav .y-island-dock{min-height:44px}
}
@media(max-height:500px) and (min-width:761px){
  body.reading-mobile .library{display:none}
  body.reading-mobile .article-top .back{display:inline-flex}
}

/* ── L5 · the section tabs show that they scroll: a fade on the edge that has more ── */
.y-section-nav{column-gap:8px}
.y-section-nav::before{content:'';position:sticky;left:0;flex:0 0 24px;margin-right:-32px;z-index:2;pointer-events:none;opacity:0;
  background:linear-gradient(to right,var(--y-glass-solid),transparent)}
.y-section-nav.y-more-start::before{opacity:1}
.y-section-nav .y-island-dock::before{content:'';position:absolute;right:100%;top:0;bottom:0;width:24px;pointer-events:none;opacity:0;
  background:linear-gradient(to left,var(--y-glass-solid),transparent)}
.y-section-nav.y-more-end .y-island-dock::before{opacity:1}
.y-section-nav::after{content:'';position:sticky;right:0;flex:0 0 24px;margin-left:-32px;z-index:2;pointer-events:none;opacity:0;
  background:linear-gradient(to left,var(--y-glass-solid),transparent)}
.y-section-nav.y-more-end:not(:has(.y-island-dock:not([hidden])))::after{opacity:1}
@media(prefers-contrast:more),(forced-colors:active),(prefers-reduced-transparency:reduce){.y-section-nav::before,.y-section-nav::after,.y-section-nav .y-island-dock::before{background:linear-gradient(to right,var(--panel),transparent)}
  .y-section-nav::after,.y-section-nav .y-island-dock::before{background:linear-gradient(to left,var(--panel),transparent)}}
html.y-noblur .y-section-nav::before{background:linear-gradient(to right,var(--panel),transparent)}
html.y-noblur .y-section-nav::after,html.y-noblur .y-section-nav .y-island-dock::before{background:linear-gradient(to left,var(--panel),transparent)}

/* the tab bar is padded 14 pt on iPhone; sticky edges sit at the bar's real edge, so nothing shows past the docked context or the fades */
@media(max-width:760px){.y-section-nav{--y-nav-pad:14px}}
.y-section-nav::before{left:calc(0px - var(--y-nav-pad,0px))}
.y-section-nav::after,.y-section-nav .y-island-dock{right:calc(0px - var(--y-nav-pad,0px))}

/* ── L6 · one inset, one indent: text in every box starts 16 pt in (border included); lists indent 24 pt, nested lists 24 more ── */
#article .h-highlights{padding-left:15px;padding-right:15px}
#article .notice{padding-left:14px;padding-right:14px}
#article .governance-panel{padding-left:14px;padding-right:14px}
#article .hold-reasons,#article #y-active-holds{padding-left:16px;padding-right:16px}
#article .hold-reasons ul,#article .y-state ul{margin-left:0;padding-left:24px}
#article .references ol,#article .references ul{margin-left:0;padding-left:24px}
#article .references li{padding-left:0;margin-left:0}

/* ── M7 · sheets, menus and the calculator show where they come from (Brand §8). Nothing waits: they can be used as they
   appear, and an interrupted transition reverses from where it is. Browsers without @starting-style show them at once. ── */
@media(prefers-reduced-motion:no-preference){
  dialog{transition:opacity .15s ease,transform .15s ease,overlay .15s allow-discrete,display .15s allow-discrete}
  dialog[open]{opacity:1;transform:none;transition-duration:.2s;transition-timing-function:cubic-bezier(.2,.8,.2,1)}
  dialog:not([open]){opacity:0;transform:scale(.98)}
  @starting-style{dialog[open]{opacity:0;transform:scale(.98)}}
  dialog::backdrop{transition:background-color .2s,overlay .2s allow-discrete,display .2s allow-discrete}
  @starting-style{dialog[open]::backdrop{background-color:transparent}}
  .y-menu-list,#utility-calculator-panel{transition:opacity .1s ease,transform .1s ease,display .1s allow-discrete}
  .y-menu-list:not([hidden]),#utility-calculator-panel:not([hidden]){opacity:1;transform:none;transition-duration:.16s;transition-timing-function:cubic-bezier(.2,.8,.2,1)}
  .y-menu-list[hidden],#utility-calculator-panel[hidden]{opacity:0;transform:scale(.96)}
  @starting-style{.y-menu-list:not([hidden]),#utility-calculator-panel:not([hidden]){opacity:0;transform:scale(.96)}}
  .y-menu-list{transform-origin:top left}
  #utility-calculator-panel{transform-origin:top right}
}
@media(prefers-reduced-motion:no-preference) and (max-width:600px){
  dialog[open]{transition-duration:.3s}
  dialog:not([open]){transform:translateY(24px)}
  @starting-style{dialog[open]{opacity:0;transform:translateY(32px)}}
}
/* Reduce Motion: only the fades remain (yakuri.css removes every other transition) */
@media(prefers-reduced-motion:reduce){
  dialog{transition:opacity .15s ease,overlay .15s allow-discrete,display .15s allow-discrete!important}
  dialog:not([open]){opacity:0}
  @starting-style{dialog[open]{opacity:0}}
  .y-menu-list,#utility-calculator-panel{transition:opacity .12s ease,display .12s allow-discrete!important}
  .y-menu-list[hidden],#utility-calculator-panel[hidden]{opacity:0}
  @starting-style{.y-menu-list:not([hidden]),#utility-calculator-panel:not([hidden]){opacity:0}}
  .toast{transition:opacity .15s!important}
}

/* ── M8 · press feedback by kind: standalone buttons press to 97 %; rows, rail items, tabs, segments and menu items only highlight ── */
:is(.drug-item,.yakuri-rail>button,.y-section-nav button,#pvxSubnav .seg,.y-menu-item,[role=menuitem],[role=menuitemradio],[role=tab],.y-ws-item,.medical-nav button,.o-tabs button):active:not(:disabled){scale:none}

/* ── S10 · a link's symbol stays with its last word (pravix.js wraps the two in one span) ── */
.y-nowrap{white-space:nowrap}

/* ── S12 · on touch screens the selected view uses the fill variant, as the shared top bar does ── */
@media(hover:none) and (pointer:coarse){#pvxSubnav .seg[aria-current=page] svg :is(path,rect,circle,ellipse,polygon){fill:currentColor;fill-opacity:.5}}
@media(hover:none) and (pointer:coarse) and (prefers-contrast:more){#pvxSubnav .seg[aria-current=page] svg :is(path,rect,circle,ellipse,polygon){fill-opacity:.7}}

/* ── S13 · the star bounces once when you save (Bounce: an action occurred); never when unsaving, never with Reduce Motion ── */
@keyframes y-bounce{0%{scale:1}35%{scale:1.22}70%{scale:.94}100%{scale:1}}
@media(prefers-reduced-motion:no-preference){#favorite.y-bounce::after{animation:y-bounce .25s cubic-bezier(.2,.8,.2,1)}}
@media(max-height:500px) and (min-width:761px){body.reading-mobile .workspace{grid-template-columns:auto minmax(0,1fr)}}

/* ═══ HIG Typography, Writing and Charting data (Oct 23 2026; claude/hig-audit-yakuri-typography-writing-charts.md) ═══ */
/* ── T1 · numbers that change keep their width ── */
#integration-counts,.integration-counts,#result-count,#saved-count,.r-table td,.r-table td button,#calc-readout,#utility-calculator-panel output,.graph-summary,.y-pair-summary{font-variant-numeric:tabular-nums}

/* ── W8 · a field that can't be used says what to enter, right under it ── */
.y-field-error{margin:6px 0 0;color:var(--y-danger);font-size:.8125rem;line-height:1.4;font-weight:500}
input[aria-invalid=true],select[aria-invalid=true]{border-color:var(--y-danger)!important}

/* ── C11 · the legend is drawn with the graph's own lines ── */
.graph-legend span{display:inline-flex;align-items:center;gap:6px}
.y-legend-line{width:28px;height:8px;flex:0 0 28px;overflow:visible}
.y-legend-line line{stroke-linecap:butt;fill:none}
.graph-legend .mapped .y-legend-line line{stroke:var(--y-amber-mark);stroke-width:3}
.graph-legend .species .y-legend-line line{stroke:var(--y-purple);stroke-width:3;stroke-dasharray:8 4 2 4}
.graph-legend .unknown .y-legend-line line{stroke:var(--muted);stroke-width:2;stroke-dasharray:5 6}
@media(forced-colors:active){.y-legend-line line{stroke:CanvasText!important}}

/* ── C12 · one summary in the Graph view; the connections list on demand ── */
body.y-graph-mode .y-pair-summary{display:none}
.graph-connections{margin-top:16px}
.graph-connections>summary{cursor:pointer;font-size:1rem;font-weight:600;min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}
.graph-connections>summary::-webkit-details-marker{display:none}
.graph-connections>summary::before{content:'';width:12px;height:12px;flex:0 0 12px;background:currentColor;-webkit-mask:var(--y-i-chevron) center/contain no-repeat;mask:var(--y-i-chevron) center/contain no-repeat;transition:rotate .16s}
.graph-connections[open]>summary::before{rotate:90deg}

/* ── C13 · the coverage table: a caption, sortable headings, sentence case ── */
.y-coverage caption{caption-side:top;text-align:left;color:var(--muted);font-size:.8125rem;padding:0 0 8px}
.y-coverage th{white-space:nowrap}
.y-coverage th button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;min-height:32px;cursor:pointer;font:inherit;font-weight:600;color:inherit;border-radius:6px}
.y-coverage th button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.y-coverage th[aria-sort=ascending] button::after,.y-coverage th[aria-sort=descending] button::after{content:'';width:10px;height:10px;background:currentColor;-webkit-mask:var(--y-i-chevron) center/contain no-repeat;mask:var(--y-i-chevron) center/contain no-repeat;rotate:-90deg}
.y-coverage th[aria-sort=descending] button::after{rotate:90deg}
@media(pointer:coarse){.y-coverage th button{min-height:44px}}

/* ── A14 · the interaction checker shows on iPhone (style.css hides main below 760 pt for the library's list-or-reader switch) ── */
@media(max-width:760px){#interaction-main{display:block}}
/* the graph is drawn at 80 % on iPhone, so its words are set a step larger there: names and status 13 pt or more, nothing under 11 pt */
@media(max-width:760px){.graph-node text,.graph-node .node-status{font-size:1.0625rem}}

/* ═══ HIG Collaboration and sharing, Drag and drop, Entering data (Oct 23 2026; claude/hig-audit-yakuri-sharing-dnd-entry.md) ═══ */
/* ── D3 · D4 · a drop target highlights only while something it takes is over it ── */
.y-dialog.y-drop-ok,dialog.y-drop-ok{outline:2px dashed var(--accent);outline-offset:-8px}
.yakuri-rail>button.y-drop-target{transition:background-color .12s,box-shadow .12s}
.yakuri-rail>button.y-drop-ok{background:var(--selected);box-shadow:inset 0 0 0 2px var(--accent);color:var(--accent)}
body.y-dragging-drug .yakuri-rail>button:not(.y-drop-ok){cursor:no-drop}
[draggable=true].drug-item,#article .y-drug-title[draggable=true]{-webkit-user-drag:element}
@media(prefers-reduced-motion:reduce){.yakuri-rail>button.y-drop-target{transition:none}}
@media(forced-colors:active){.y-drop-ok{outline:2px dashed Highlight!important;box-shadow:none!important}}
/* ── E7 · the main button waits (dimmed, still focusable, still names what's missing when pressed) ── */
button[aria-disabled=true]{opacity:.45;cursor:default}
button[aria-disabled=true]:hover{background:inherit}
@media(forced-colors:active){button[aria-disabled=true]{opacity:1;color:GrayText;border-color:GrayText}}
/* ── E8 · what Yakuri carried over says where it came from ── */
.y-carried{margin:6px 0 0;color:var(--muted);font-size:.8125rem;line-height:1.4}
/* ── E9 · a search field with suggestions in place of a 1,000-item menu ── */
input.y-picker{display:block;box-sizing:border-box;width:100%;max-width:none;min-height:44px;padding:10px 12px;margin-top:6px;font:inherit;font-size:.875rem}
@media(pointer:fine){input.y-picker{min-height:36px;padding:8px 10px}}
input.y-picker[aria-invalid=true]{border-color:var(--y-danger)}
/* ── S1 · the toolbar's Share is the share glyph alone ── */
.y-menu-btn.y-icon-menu{padding:6px 9px;gap:0}
.y-share-glyph{width:min(1.0625rem,24px);height:min(1.0625rem,24px);flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}  /* a 600-weight label takes a 2 px stroke */
@media(pointer:coarse){.y-menu-btn.y-icon-menu{min-width:44px;justify-content:center}}
select[data-y-picker][hidden]{display:none!important}  /* the menu it replaces stays in the page for the sheet's own logic */
.y-toolbar.y-tight .y-modes>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}

/* ═══ HIG Feedback, Going full screen and Launching (Oct 24 2026) ═══ */
/* launch: a plain failure with Try again; a slow load says it's still working */
.y-unavailable{max-width:560px;padding:60px 0}
.y-unavailable h1{font-size:1.5rem;margin:0 0 8px}
.y-unavailable p{color:var(--muted);margin:0 0 16px}
.y-retry,.y-undo{font:inherit;font-weight:600;border-radius:10px;padding:6px 14px;border:1px solid var(--y-edge-strong,var(--line));background:var(--y-fill,transparent);color:var(--accent);cursor:pointer}
.y-undo{padding:2px 10px;margin-left:4px}
.y-link-button{font:inherit;font-weight:600;background:none;border:0;padding:0;color:var(--accent);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.y-restored{margin:6px 0 0}
/* CPR full screen */
.y-cpr-tools{display:flex;align-items:center;gap:10px}
.y-awake{font-size:.8125rem;color:var(--muted)}
.y-awake:empty{display:none}
.cpr-title-row .y-cpr-fs{display:inline-flex;align-items:center;gap:6px;width:auto;height:auto;min-height:40px;padding:0 14px;border-radius:20px;font:inherit;font-size:.875rem;font-weight:600;color:var(--ink);background:var(--panel);border:1px solid var(--line);white-space:nowrap}
.y-fs-ico{width:18px;height:18px;flex:none}
.y-cpr-on{position:fixed;inset:0;z-index:2000;margin:0;max-width:none;overflow:auto;overscroll-behavior:contain;background:var(--bg);color:var(--ink);box-sizing:border-box;
  padding:max(12px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));
  display:flex;flex-wrap:wrap;align-items:flex-end;align-content:flex-start;gap:8px 16px}
.y-cpr-on:fullscreen{width:100%;height:100%}
body.y-cpr-fullscreen{overflow:hidden}
.y-cpr-on>*{flex:1 1 100%;margin:0}
.y-cpr-on>dialog{flex:none}
.y-cpr-on .cpr-title-row{display:contents}
.y-cpr-on .cpr-title-row h1{order:1;flex:0 0 auto;font-size:1.375rem;margin:0 8px 10px 0;align-self:flex-end}
.y-cpr-on .medical-form{order:2;flex:1 1 440px;display:flex;flex-wrap:nowrap;align-items:flex-end;gap:10px;margin:0}
.y-cpr-on .medical-form>*{margin:0}
.y-cpr-on .medical-row{flex:1 1 auto}
.y-cpr-on .medical-actions{flex:0 0 auto}
.y-cpr-on .y-cpr-tools{order:3;flex:0 0 auto;margin-bottom:4px}
.y-cpr-on>#cpr-error{order:4}
.y-cpr-on>#cpr-result{order:5}
.y-cpr-on>.medical-footnote{order:6}
.y-cpr-on>.medical-intro,.y-cpr-on>p:has(> a[href*="doi.org"]){display:none}
.y-cpr-on>#cpr-error:empty{display:none}
.y-cpr-on .cpr-sheet{margin:4px 0 0;padding:12px 16px;font-size:1rem}
.y-cpr-on .cpr-sheet-heading{align-items:center}
.y-cpr-on .cpr-sheet-heading h2{font-size:1.25rem;margin:0}
.y-cpr-on .cpr-sheet>.medical-help,.y-cpr-on .cpr-sheet-notice{margin:2px 0;padding-bottom:6px}
.y-cpr-on .cpr-full-table thead,.y-cpr-on .cpr-energy-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.y-cpr-on .cpr-full-table{margin:8px 0}
.y-cpr-on .cpr-full-table tbody,.y-cpr-on .cpr-energy-table tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:8px}
.y-cpr-on .cpr-full-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"drug vol";align-content:start;gap:0 10px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.y-cpr-on .cpr-full-table th{display:block;grid-area:drug;width:auto;border:0;padding:0;font-size:1.0625rem;line-height:1.3;text-align:left}
.y-cpr-on .cpr-full-table th>span{font-size:.8125rem;font-weight:500;color:var(--muted);white-space:nowrap}
.y-cpr-on .cpr-full-table th>small{display:block;margin-top:1px;font-size:.8125rem;font-weight:400;color:var(--muted)}
.y-cpr-on .cpr-full-table td{display:contents}
.y-cpr-on .cpr-full-table td strong{grid-area:vol;align-self:start;font-size:1.75rem;line-height:1.1;font-variant-numeric:tabular-nums;color:var(--accent);text-align:right;white-space:nowrap}
.y-cpr-on .cpr-full-table td small{grid-column:1/-1;font-size:.75rem;line-height:1.35;color:var(--muted);margin-top:3px}
.y-cpr-on .cpr-full-table td small.cpr-warning{color:var(--warn)}
.y-cpr-on .cpr-energy-table{margin:6px 0}
.y-cpr-on .cpr-energy-table tr{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.y-cpr-on .cpr-energy-table th,.y-cpr-on .cpr-energy-table td{display:block;width:auto;border:0;padding:0}
.y-cpr-on .cpr-energy-table td br{display:none}
.y-cpr-on .cpr-energy-table td b+br+*{margin-left:8px}
.y-cpr-on>.medical-footnote{position:sticky;bottom:0;background:var(--bg);padding:8px 0 max(8px,env(safe-area-inset-bottom));font-weight:600;color:var(--warn)}
@media (max-width:760px){.y-cpr-on .medical-form{flex:1 1 100%;flex-wrap:wrap}.y-cpr-on .cpr-title-row h1{flex:1 1 auto}.y-cpr-on .y-cpr-tools{order:1}.y-cpr-on .cpr-full-table tbody,.y-cpr-on .cpr-energy-table tbody{grid-template-columns:1fr}}
@media print{.y-cpr-fs,.y-awake{display:none}}

/* ═══ HIG Loading, Managing notifications and Modality (Oct 24 2026) ═══ */
/* placeholders while the library loads: the shape of what's coming, no shimmer */
.y-skel{display:block;border-radius:6px;background:var(--soft)}
.y-skel-list{padding:4px 0}
.y-skel-row{display:grid;gap:6px;padding:12px 4px;border-bottom:1px solid var(--line)}
.y-skel-name{height:14px;width:62%}
.y-skel-meta{height:10px;width:38%}
.y-skel-row:nth-child(3n) .y-skel-name{width:48%}
.y-skel-row:nth-child(3n+1) .y-skel-name{width:70%}
.y-skel-article{display:grid;gap:12px;max-width:760px;padding:44px 0 0}
.y-skel-eyebrow{height:10px;width:110px}
.y-skel-title{height:34px;width:46%}
.y-skel-line{height:12px;width:92%}
.y-skel-short{width:64%}
.y-skel-article+.loading{padding:16px 0}
.y-wait-note{color:var(--muted)}
.yakuri-rail [aria-disabled=true]{opacity:.55}
/* "Calculating…" while a calculation takes more than a moment */
.y-calculating{color:var(--muted);font-size:.875rem;margin:12px 0 0}
[aria-busy=true]>.medical-result.empty,[aria-busy=true].medical-result{opacity:.45}
/* Research and Library checks are pages in the window, not sheets over it */
body.y-has-page .workspace>.library,body.y-has-page .workspace>#article{display:none}
.workspace>dialog.y-dialog.y-page{position:static;inset:auto;grid-column:2/-1;grid-row:1;display:block;width:auto;max-width:none;max-height:none;height:auto;margin:0;
  padding:20px clamp(16px,3vw,40px) 48px;border:0;border-radius:0;box-shadow:none;background:var(--bg);overflow:visible;min-width:0}
body.y-focus .workspace>dialog.y-page{grid-column:auto}
.y-page>.y-dialog-head.y-page-head{position:sticky;top:0;z-index:3;background:var(--bg);justify-content:flex-start;flex-wrap:wrap;gap:12px;margin:0 0 12px;padding:8px 0 12px}
.y-page-head h2{font-size:1.5rem;margin:0}
.y-dialog-head .y-page-back{display:inline-flex;align-items:center;gap:4px;width:auto;height:auto;min-width:0;min-height:36px;padding:0 10px 0 4px;border:0;border-radius:10px;background:none;color:var(--accent);font:inherit;font-size:.9375rem!important;font-weight:500;cursor:pointer;max-width:40%}
.y-dialog-head .y-page-back::after{content:none}
.y-page-back span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.y-page-back svg{width:20px;height:20px;flex:none}
.y-dialog-head .y-page-back:hover{background:var(--soft);color:var(--accent)}
.y-page-back:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.y-page-side{z-index:2;background:var(--bg)}
.y-page-side .y-page-tools{flex-direction:row;flex-wrap:wrap}
@media(min-width:1100px){.y-page-side .y-page-tools{flex-direction:column}}
@media(min-width:1100px){
  .y-page.r-dialog{display:grid!important;grid-template-columns:200px minmax(0,1fr);column-gap:32px;align-items:start}
  .y-page.r-dialog>*{grid-column:2;min-width:0}
  .y-page.r-dialog>.y-dialog-head{grid-column:1/-1;grid-row:1}
  .y-page.r-dialog>.y-page-side{grid-column:1;grid-row:2/span 40;position:sticky;top:68px}
  .y-page-side>.r-tabs{display:flex;flex-direction:column;align-items:stretch;border-bottom:0;margin:0;padding:0}
  .y-page-side>.r-tabs button{text-align:left;justify-content:flex-start}
}
.y-page-side .y-page-tools{display:flex;flex-direction:column;gap:2px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.y-page-side .y-page-tools-label{font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:0 10px 4px}
.yakuri-rail>[hidden]{display:none!important}
@media(max-width:760px){.workspace>dialog.y-dialog.y-page{grid-column:1/-1;padding:12px 16px 40px}}
/* no lost text: the sheet asks before it closes */
/* the library changed elsewhere: a quiet capsule, never in the way */
.y-changed{position:fixed;left:50%;transform:translateX(-50%);bottom:max(16px,env(safe-area-inset-bottom));z-index:1500;display:flex;align-items:center;gap:10px;max-width:calc(100% - 32px);
  padding:8px 8px 8px 16px;border:1px solid var(--line);border-radius:22px;background:var(--y-glass-solid,var(--panel));color:var(--ink);box-shadow:var(--y-shadow,0 8px 24px rgba(0,0,0,.18));font-size:.875rem}
.y-changed button{font:inherit;font-weight:600;min-height:32px;padding:0 12px;border-radius:16px;border:0;cursor:pointer}
.y-changed-reload{background:var(--accent);color:var(--y-on-accent,#fff)}
.y-changed-later{background:none;color:var(--muted);font-size:1.0625rem!important;padding:0 8px!important}
@media print{.y-changed,.y-alert{display:none}}
@media(max-width:1099px){.y-page-side .y-page-tools{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}.y-page-side .y-page-tools-label{flex-basis:100%;padding:0 0 2px}.y-page-side .y-page-tools button{flex:0 1 auto}}

/* ═══ HIG Offering help, Onboarding and Printing (Oct 24 2026) ═══ */
/* tips: beside what they explain, quiet, closed with × */
.y-tip{display:flex;align-items:flex-start;gap:10px;margin:10px 0;padding:10px 10px 10px 12px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:12px;background:var(--panel);max-width:760px}
.y-tip p{margin:0;flex:1;font-size:.875rem;line-height:1.45}
.y-tip-ico{width:18px;height:18px;flex:none;color:var(--accent);margin-top:1px}
.y-tip-more{font:inherit;font-size:.875rem;font-weight:600;background:none;border:0;padding:0;color:var(--accent);cursor:pointer;white-space:nowrap;align-self:center}
.y-tip-close{flex:none;display:inline-grid;place-items:center;width:28px;height:28px;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer}
.y-tip-close svg{width:14px;height:14px}
.y-tip-close:hover{background:var(--soft);color:var(--ink)}
@media(pointer:coarse){.y-tip-close{width:44px;height:44px}}
.y-tip-anchor{position:relative}
.y-tip.y-tip-pop{position:absolute;z-index:40;top:calc(100% + 8px);left:0;width:min(440px,calc(100vw - 48px));margin:0;box-shadow:var(--y-shadow,0 8px 24px rgba(0,0,0,.16));background:var(--y-glass-solid,var(--panel))}
.x-focus-modes>.y-tip.y-tip-pop{left:auto;right:0}
.y-tip.y-tip-pop::before{content:"";position:absolute;top:-6px;left:22px;width:10px;height:10px;background:inherit;border-left:1px solid var(--line);border-top:1px solid var(--line);transform:rotate(45deg)}
.x-focus-modes>.y-tip.y-tip-pop::before{left:auto;right:26px}
.library .y-tip{margin:8px 0 0;font-size:.8125rem}
.library .y-tip p{font-size:.8125rem}
/* keyboard shortcuts */
.y-keys{border-collapse:collapse;width:100%}
.y-keys th,.y-keys td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--line);font-size:.875rem}
.y-keys th{width:96px;font-weight:400}
.y-keys kbd{display:inline-block;min-width:24px;padding:2px 8px;border:1px solid var(--line);border-radius:6px;background:var(--soft);font:inherit;font-size:.8125rem;font-weight:600;text-align:center}
/* Print… beside Copy */
.y-sheet-actions{display:flex;align-items:center;gap:8px}
.y-print-btn{font:inherit;font-size:.875rem;font-weight:600;min-height:32px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--accent);cursor:pointer}
#y-interaction-print{margin-left:8px}
.y-print-line{display:none}
@media print{
  @page{margin:14mm 14mm 20mm}
  .y-print-line{display:block;position:static;order:-1;margin:0 0 4mm;padding-bottom:2mm;font-size:.6875rem;line-height:1.3;color:#333;border-bottom:1px solid #999}
  .y-tip,.y-print-btn,.y-sheet-actions .y-print-btn,.y-changed,.y-alert{display:none!important}
  /* a monograph is a reference sheet: no toolbar, menus, tools or blocked actions */
  #article button,#article select,#article .y-toolbar,#article .article-top,#article .article-shortcuts,#article .x-reference-tools,#article .r-tools,#article .y-context,
  #article .h-highlights,#article .y-section-nav,#article .toc,#article .clinical-actions,#article .governance-panel>label,#article .governance-panel details,
  #article .governance-panel>.footnote,#article .governance-panel .footnote,#y-island-dock,.p-island{display:none!important}
  #article a[href^="http"]::after{content:" — " attr(href);font-size:.6875rem;font-weight:400;color:#444;word-break:break-all}
  #article .reader section{break-inside:auto}
  #article .reader h2,#article .reader h3{break-after:avoid}
  /* the CPR table on one page, with the weight; none of the controls */
  .y-cpr-tools,#cpr-form,.y-restored,.y-calculating,#cpr-copy-status,#cpr-copy,.cpr-title-row #cpr-info,.medical-page .medical-intro{display:none!important}
  .cpr-sheet{border:1px solid #999;padding:8px 10px;margin:4px 0;font-size:.75rem;line-height:1.3}
  .medical-page button,#interaction-main button{display:none!important}
  .medical-page main>section>p:has(>a[href*="doi.org"]){margin:0 0 4px;font-size:.6875rem}
  .cpr-title-row h1{font-size:1.0625rem;margin:0}
  #medical-main:has(.cpr-sheet){zoom:.88}
  .cpr-sheet-heading h2{font-size:1.0625rem;margin:0}
  .cpr-sheet .cpr-table{margin:4px 0;font-size:.75rem;line-height:1.25}
  .cpr-sheet .cpr-table th,.cpr-sheet .cpr-table td{padding:3px 6px}
  .cpr-sheet .cpr-table small{margin-top:1px;font-size:.6875rem}
  .cpr-sheet .cpr-table td strong{font-size:.875rem}
  .medical-page details.medical-source{display:none!important}
  /* interaction results: the drugs, species, results and coverage; no search, switches or Remove */
  #interaction-main .interaction-search,#interaction-matches,#interaction-clear,#interaction-selected [data-remove],#interaction-main .interaction-view-controls,#interaction-graph,#y-interaction-print,#interaction-main details.medical-source{display:none!important}
  #interaction-main a[href]::after{content:none}
}

/* ═══ HIG Searching, Settings and Undo and redo (Oct 24 2026) ═══ */
/* S5 · a section hidden until found takes no room (content-visibility keeps its box, so its spacing goes too) */
@media screen{.reader>section[hidden="until-found"]{padding:0!important;margin:0!important;border:0!important;min-height:0!important;box-shadow:none!important}}
@media print{.reader>section[hidden="until-found"]{content-visibility:visible!important}}   /* print is still the whole monograph */
/* S6 · the foot of Recent */
.y-list-foot{padding:12px 4px 4px;text-align:center}
.y-list-foot[hidden]{display:none}
.y-clear-recent{font:inherit;font-size:.875rem;font-weight:600;color:var(--accent);background:none;border:0;padding:10px 12px;min-height:44px;border-radius:10px;cursor:pointer}
.y-clear-recent:hover{background:var(--y-fill)}
.y-clear-recent:focus-visible{outline:none;box-shadow:var(--y-ring)}
/* S7 · Settings: a small sheet with three sections */
.y-settings-dialog{max-width:520px}
.y-set-tabs{display:flex;gap:2px;padding:2px;border-radius:10px;background:var(--y-fill);margin:4px 0 18px}
.y-set-tabs [role=tab]{flex:1;font:inherit;font-size:.875rem;font-weight:500;min-height:36px;padding:6px 10px;border:0;border-radius:8px;background:none;color:inherit;cursor:pointer}
.y-set-tabs [role=tab][aria-selected=true]{background:var(--y-raised,var(--panel,#fff));font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.y-set-tabs [role=tab]:focus-visible{outline:none;box-shadow:var(--y-ring)}
.y-set-panel[hidden]{display:none}
.y-set-group{border:0;margin:0 0 20px;padding:0}
.y-set-group legend,.y-set-group h3{font-size:.9375rem;font-weight:600;margin:0 0 8px;padding:0}
.y-set-seg{display:flex;gap:8px;flex-wrap:wrap}
.y-set-seg label{position:relative;display:inline-flex}
.y-set-seg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.y-set-seg span{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--y-edge-strong,var(--line));font-size:.9375rem}
.y-set-seg input:checked+span{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);font-weight:600}
.y-set-seg input:focus-visible+span{box-shadow:var(--y-ring)}
.y-set-note{color:var(--muted);font-size:.875rem;line-height:1.5;margin:8px 0}
.y-set-sample{margin:12px 0 4px;line-height:1.6}
.y-set-btn{font:inherit;font-size:.9375rem;font-weight:600;min-height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--y-edge-strong,var(--line));background:var(--y-fill);color:var(--accent);cursor:pointer}
.y-set-btn:disabled{color:var(--muted);cursor:default;opacity:.6}
.y-set-btn:focus-visible{outline:none;box-shadow:var(--y-ring)}
.y-set-done{color:var(--muted);font-size:.875rem;margin:8px 0 0;min-height:1.2em}
/* U1 · what ⌘Z brought back is highlighted for a moment */
@keyframes y-undo-flash{0%,35%{background-color:var(--y-sel-edge);outline-color:var(--accent)}100%{background-color:transparent;outline-color:transparent}}
.y-undo-flash{outline:2px solid transparent;outline-offset:2px;border-radius:12px;animation:y-undo-flash 1.6s ease-out both}
@media (prefers-reduced-motion:reduce){.y-undo-flash{animation:none;background-color:var(--y-sel-edge);outline-color:var(--accent)}}
/* where there's no message bar (Interactions keeps its own status line; this is the fallback) */
.y-undo-live{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:90;margin:0;padding:10px 16px;border-radius:14px;background:var(--y-glass-solid,var(--soft));border:1px solid var(--line);font-size:.875rem;opacity:0;pointer-events:none}
.y-undo-live.visible{opacity:1}
@media print{.y-list-foot,.y-undo-live{display:none!important}}

/* ═══ HIG Charts and Image views (Oct 24 2026; claude/hig-audit-yakuri-charts-image-views.md) ═══ */
body{--y-chart-sourced:#A86400}   /* C7 · the sourced-evidence line: 4.7:1 on white (it was 2.69:1) */
body.dark{--y-chart-sourced:#E8A830}
.y-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
/* C1 · the graph is drawn in the frame's own points: it fills the width, starts at the leading edge, keeps its text size */
#interaction-graph .graph-canvas{overflow:visible;margin-top:8px}
#interaction-graph .graph-canvas svg{width:100%;height:auto;max-height:none;min-width:0;display:block;overflow:visible}
#interaction-graph .graph-line .edge-hit{stroke:transparent;stroke-width:24;pointer-events:stroke;cursor:pointer}
#interaction-graph .edge-visible{stroke:var(--muted);stroke-width:2;stroke-dasharray:5 6;pointer-events:none}
#interaction-graph .mapped .edge-visible{stroke:var(--y-chart-sourced);stroke-width:3;stroke-dasharray:none}
#interaction-graph .species .edge-visible{stroke:var(--y-purple);stroke-width:3;stroke-dasharray:8 4 2 4}
.graph-legend .mapped .y-legend-line line{stroke:var(--y-chart-sourced)}
/* C2 · 44-pt targets: markers carry an invisible 44-pt circle, drug boxes are 48 pt tall */
#interaction-graph .graph-edge,#interaction-graph .graph-node{cursor:pointer;outline:none}
#interaction-graph .marker-hit{fill:transparent;stroke:none;pointer-events:all}
#interaction-graph .marker{fill:var(--panel);stroke:var(--y-ctl);stroke-width:1.5}
#interaction-graph .graph-edge.mapped .marker{stroke:var(--y-chart-sourced)}
#interaction-graph .graph-edge text{fill:var(--ink);font-size:.8125rem;font-weight:600;font-variant-numeric:tabular-nums;pointer-events:none}
#interaction-graph .graph-edge:hover .marker,#interaction-graph .graph-edge:focus-visible .marker{stroke:var(--accent);stroke-width:3}
#interaction-graph .graph-node rect{fill:var(--soft);stroke:var(--y-ctl);stroke-width:1.5}
#interaction-graph .graph-node:hover rect,#interaction-graph .graph-node:focus-visible rect,#interaction-graph .graph-node[aria-pressed=true] rect,#interaction-graph .graph-node.centred rect{stroke:var(--accent);stroke-width:2.5}
#interaction-graph .graph-node.centred rect{fill:var(--selected)}
#interaction-graph .graph-node .n-name{fill:var(--ink);font-size:1rem;font-weight:600;pointer-events:none}
#interaction-graph .graph-fan .graph-node:not(.centred) .n-name{font-size:.9375rem}
#interaction-graph .graph-node .node-status{fill:var(--y-amber);font-size:.8125rem;font-weight:600;pointer-events:none}
/* C6 · a line whose evidence changed is marked for a moment; steady under Reduce Motion */
@keyframes y-line-changed{0%,40%{stroke-width:7}100%{stroke-width:3}}
#interaction-graph .y-line-changed .edge-visible{animation:y-line-changed 1.6s ease-out both}
#interaction-graph .graph-edge.y-line-changed .marker{stroke:var(--accent);stroke-width:3}
@media (prefers-reduced-motion:reduce){#interaction-graph .y-line-changed .edge-visible{animation:none;stroke-width:6}}
@media(forced-colors:active){#interaction-graph .edge-visible{stroke:CanvasText!important}#interaction-graph .graph-node rect,#interaction-graph .marker{stroke:CanvasText!important}}

/* I9 · the label photo beside the text it checks, readable; I10 · it opens larger; I11 · Remove photo */
.c-compare{display:grid;gap:16px;margin:12px 0}
.c-photo{margin:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.c-photo:has(#c-image[hidden]){display:none}
.c-photo-btn{all:unset;box-sizing:border-box;display:block;cursor:zoom-in;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--soft)}
.c-photo-btn:focus-visible{box-shadow:var(--y-ring);border-color:var(--accent)}
.c-photo #c-image{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;margin:0;border:0}
.c-photo-actions{display:flex;flex-wrap:wrap;gap:8px}
.c-photo-actions button[hidden]{display:none}
.c-text-col{display:flex;flex-direction:column;gap:10px;min-width:0}
.c-text-col textarea{min-height:180px}
@media(min-width:760px){.c-compare:has(#c-image:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
  .c-compare:has(#c-image:not([hidden])) .c-text-col textarea{min-height:300px}}
@media(max-width:759px){.c-photo #c-image{max-height:60vh}}
.c-viewer-dialog{max-width:min(1200px,calc(100vw - 32px))}
.c-viewer{max-height:min(72vh,900px);overflow:auto;border-radius:12px;background:var(--soft);border:1px solid var(--line);touch-action:pan-x pan-y pinch-zoom}
.c-viewer:focus-visible{outline:none;box-shadow:var(--y-ring)}
.c-viewer img{display:block;max-width:100%;height:auto;margin:0 auto}
.c-viewer-tools{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px}
.c-viewer-tools button{min-width:44px;min-height:44px;font:inherit;font-size:1.0625rem;font-weight:600;border-radius:10px;border:1px solid var(--y-edge-strong,var(--line));background:var(--y-fill);color:inherit;cursor:pointer}
.c-viewer-tools button:disabled{opacity:.45;cursor:default}
.c-viewer-level{min-width:56px;text-align:center;font-variant-numeric:tabular-nums;font-size:.875rem;color:var(--muted)}
@media print{.c-viewer-tools,.c-photo-actions{display:none!important}}
#c-zoom.c-photo-btn{padding:0;min-height:0;width:100%;background:var(--soft);border:1px solid var(--line);border-radius:12px;box-shadow:none}
#c-zoom.c-photo-btn:focus-visible{box-shadow:var(--y-ring);border-color:var(--accent)}
.c-text-col #c-match{align-self:flex-start}
.c-viewer-tools button{display:inline-flex;align-items:center;justify-content:center;padding:0 12px}

/* ═══ HIG Text views, Web views and Boxes (Oct 24 2026; claude/hig-audit-yakuri-text-web-boxes.md) ═══ */
/* T1 · every text area reads at the reading size (Text size, Dynamic Type), never under 16 pt, so iPhone doesn't zoom in */
:root body textarea{font:inherit;font-size:max(16px,var(--reading,1.0625rem));line-height:1.5}
/* T3 · Copy beside a barcode value */
.c-code code{user-select:all;-webkit-user-select:all}
.c-copy{display:inline-flex;align-items:center;gap:6px;vertical-align:middle;min-height:32px;padding:4px 10px;margin-left:6px;font:inherit;font-size:.8125rem;font-weight:600;border-radius:8px;border:1px solid var(--y-edge-strong,var(--line));background:var(--y-fill);color:var(--accent);cursor:pointer}
@media(pointer:coarse){.c-copy{min-height:44px}}
/* W4 · Back and Forward before the path (Mac and iPad; iPhone keeps Back to the list) */
.y-hist{display:inline-flex;gap:2px;margin-right:8px;flex:none}
.y-hist button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:none;color:var(--ink);cursor:pointer}
.y-hist button svg{width:16px;height:16px}
.y-hist button:hover:not(:disabled){background:var(--y-fill)}
.y-hist button:focus-visible{outline:none;box-shadow:var(--y-ring)}
.y-hist button:disabled{color:var(--muted);opacity:.4;cursor:default}
@media(pointer:coarse){.y-hist button{width:44px;height:44px}}
.article-top:has(.y-hist){justify-content:flex-start}
.article-top:has(.y-hist) #print,.article-top:has(.y-hist)>button:last-child:not(.back){margin-left:auto}
@media(max-width:760px){.y-hist{display:none}}
@media print{.y-hist{display:none!important}}
/* B5 · no page-sized boxes: Evidence and approval is a section like the others; Open holds stays the one tinted box */
#article .governance-panel{border:0;border-radius:0;background:none;box-shadow:none;padding:0}
#article .governance-heading h3{margin:0 0 14px}
/* the CPR result sits on the page; only its caveat is a small neutral box */
#medical-main .cpr-sheet{background:none;border:0;border-radius:0;box-shadow:none;padding-left:0;padding-right:0}
#medical-main .cpr-sheet-notice{background:var(--y-fill);border:0;border-radius:10px;padding:10px 14px;margin:8px 0 16px}
/* A7 · the library's search and filters are 16 pt on iPhone, so Safari doesn't zoom in */
@media(max-width:760px),(pointer:coarse){#search,#clinical-filter,#evidence-filter{font-size:max(16px,1rem)}}

/* ═══ HIG Collections, Column views and Disclosure controls (Oct 24 2026; claude/hig-audit-yakuri-collections-columns-disclosure.md) ═══ */
/* D5 · one disclosure style: a leading chevron (right when closed, down when open), primary text, 44-pt rows; accent stays for actions */
:root body summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-size:.9375rem;font-weight:600;color:var(--ink);line-height:1.35}
:root body summary::-webkit-details-marker{display:none}
:root body summary::marker{content:''}
:root body summary::before{content:'';flex:0 0 12px;width:12px;height:12px;background:var(--muted);-webkit-mask:var(--y-i-chevron) center/contain no-repeat;mask:var(--y-i-chevron) center/contain no-repeat;transition:rotate .16s ease-out}
:root body details[open]>summary::before{rotate:90deg}
:root body summary:focus-visible{outline:none;box-shadow:var(--y-ring);border-radius:8px}
:root body .library summary{font-size:.8125rem}
@media(prefers-reduced-motion:reduce){:root body summary::before{transition:none}}
@media(forced-colors:active){:root body summary::before{background:CanvasText}}
/* D6 · a closed filter says what it holds, with Clear beside it */
.y-library-filters-row{display:flex;align-items:center;gap:8px}
.y-library-filters-row>.y-library-filters{flex:1 1 auto;min-width:0}
.y-filter-clear{flex:none;font:inherit;font-size:.8125rem;font-weight:600;color:var(--accent);background:none;border:0;border-radius:8px;min-height:44px;padding:0 10px;cursor:pointer}
.y-filter-clear[hidden]{display:none}
.y-filter-clear:hover{background:var(--y-fill)}
.y-filter-clear:focus-visible{outline:none;box-shadow:var(--y-ring)}
/* C1 · Drug cards as a list: one row per drug */
.p-dialog .p-card-grid{display:block;border-top:1px solid var(--line)}
.p-dialog .p-drug-card.p-row{padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.p-dialog .p-row header{display:flex;align-items:flex-start;gap:10px}
.p-dialog .p-row .p-row-more{flex:1 1 auto;min-width:0}
.p-dialog .p-row summary{align-items:flex-start;padding:6px 0;gap:10px;font-weight:400}
.p-dialog .p-row summary::before{margin-top:7px}
.p-row-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.p-row summary>.p-row-line{flex:none}
.p-row summary{flex-wrap:wrap}
.p-row-name{font-size:1.0625rem;font-weight:600}
.p-row .p-evidence{margin:0;padding:2px 8px;font-size:.75rem;font-weight:600}
.p-row-scope{flex:1 1 100%;margin-left:22px;color:var(--muted);font-size:.875rem;line-height:1.45;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.p-row details[open] .p-row-scope{-webkit-line-clamp:unset;display:block}
.p-row-body{padding:0 0 16px 22px}
.p-row-body .p-classification{margin:0 0 10px;color:var(--muted);font-size:.875rem}
.p-row-body nav{margin-top:12px}
.p-dialog .p-row header>button[data-p-save]{margin-top:6px}
/* C2 · items arrive and leave visibly (none under Reduce Motion) */
@keyframes y-row-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.y-row-in{animation:y-row-in .2s ease-out both}
.y-row-out{overflow:hidden;pointer-events:none;transition:height .2s ease-in,opacity .2s ease-in,margin .2s ease-in,padding .2s ease-in}
@media(prefers-reduced-motion:reduce){.y-row-in{animation:none}.y-row-out{display:none}}
/* C4 · the library column resizes on Mac and iPad */
.y-col-resize{position:fixed;z-index:30;width:9px;margin-left:-5px;cursor:col-resize;touch-action:none;background:none;border:0;padding:0}
.y-col-resize::after{content:'';position:absolute;top:0;bottom:0;left:4px;width:1px;background:transparent;transition:background .12s}
.y-col-resize:hover::after,.y-col-resize.dragging::after,.y-col-resize:focus-visible::after{background:var(--accent);width:2px;left:3.5px}
.y-col-resize:focus-visible{outline:none}
.y-col-resize[hidden]{display:none}
body.y-col-dragging{cursor:col-resize;user-select:none;-webkit-user-select:none}
@media print{.y-col-resize,.y-filter-clear{display:none!important}}

/* ═══ HIG Labels, Lists and tables, Lockups (Oct 24 2026; claude/hig-audit-yakuri-labels-lists-lockups.md) ═══ */
/* L1 · a tertiary label for unavailable items and placeholders (secondary stays for real supplementary text) */
body{--y-label-3:#86868B}
body.dark{--y-label-3:#6F8599}
:root body ::placeholder{color:var(--y-label-3);opacity:1}
:root body :is(button,input,select,textarea):disabled,:root body :is(button,a,[role=button])[aria-disabled="true"]{color:var(--y-label-3)!important;opacity:1!important}
:root body :is(button,input,select,textarea):disabled svg,:root body [aria-disabled="true"] svg{opacity:1}
/* L3 · the reorder handle */
.y-move{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;min-width:36px;height:36px;min-height:36px;padding:0!important;border:0!important;border-radius:8px;background:none!important;color:var(--muted)!important;cursor:grab;touch-action:none}
.y-move svg{width:18px;height:18px}
.y-move:hover{background:var(--y-fill)!important}
.y-move:focus-visible{outline:none;box-shadow:var(--y-ring)}
@media(pointer:coarse){.y-move{width:44px;min-width:44px;height:44px;min-height:44px}}
.y-dragging{position:relative;z-index:2;background:var(--y-raised,var(--panel));box-shadow:var(--y-shadow);border-radius:10px}
body.y-reordering,body.y-reordering *{cursor:grabbing!important;user-select:none;-webkit-user-select:none}
/* L4 · the Coverage table reads across: frozen header and first column, alternating rows, plain headings, aligned numbers */
#r-coverage-table .y-coverage th button{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:32px;font:inherit;font-weight:600;color:var(--muted)!important;border-radius:6px}
#r-coverage-table .y-coverage th button:focus-visible{box-shadow:var(--y-ring)!important}
#r-coverage-table .y-coverage .num{text-align:right;font-variant-numeric:tabular-nums}
#r-coverage-table .y-coverage th.num button{justify-content:flex-end}
#r-coverage-table .y-coverage tbody th{font-weight:600;color:var(--ink);text-align:left}
#r-coverage-table .y-coverage .r-first{position:sticky;left:0;z-index:1;background:var(--panel);min-width:180px}
#r-coverage-table .y-coverage thead th{z-index:2}
#r-coverage-table .y-coverage thead th.r-first{z-index:3}
#r-coverage-table .y-coverage tbody tr:nth-child(even)>*{background:var(--soft)}
#r-coverage-table .y-coverage td.num button{min-width:44px}
.y-member>div:first-child{margin-right:auto;min-width:0}
.y-member>.y-move{margin-left:-4px}
/* a board's pins are text, so they're a list (one column), which is also what reordering moves through */
.o-dialog .o-pins{grid-template-columns:minmax(0,1fr)}
.o-pins article>div .y-move{margin-left:auto}

/* ═══ HIG Outline views, Split views and Tab views (Oct 24 2026; claude/hig-audit-yakuri-outline-split-tabs.md) ═══ */
/* S2 · the sidebar button folds the rail's column away; the list and the reader keep their places */
.workspace[data-no-rail]>.yakuri-rail{display:none}
.workspace[data-no-rail]>.library{grid-column:2;grid-row:1}
.workspace[data-no-rail]>#article{grid-column:3;grid-row:1}
#pvxSubnav .y-sidebar-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;font-weight:500;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:10px;background:none;color:var(--muted);box-shadow:none;cursor:pointer}
#pvxSubnav .y-sidebar-btn svg{width:22px;height:22px}
#pvxSubnav .y-sidebar-btn:hover{background:var(--soft);color:var(--ink)}
#pvxSubnav .y-sidebar-btn:focus-visible{outline:none;box-shadow:var(--y-ring)}
@media(max-width:760px){#pvxSubnav .y-sidebar-btn{display:none}}
.y-menu-item .y-menu-key{margin-left:auto;padding-left:20px;font:inherit;font-size:.8125rem;font-weight:400;color:var(--y-label-3,var(--muted));letter-spacing:.04em;white-space:nowrap}

/* T5 · six section tabs, then Full Monograph on its own after a divider */
.y-section-nav .y-view-tabs{display:flex;gap:inherit;flex:none;align-items:stretch}
.y-section-nav .y-view-sep{flex:none;align-self:center;width:1px;height:20px;margin:0 2px;background:var(--line)}
.y-section-nav [role=tab][aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}

/* T6 · one tab control: Settings' segmented track, directly under the sheet title */
.y-tabs{display:flex;gap:2px;margin:4px 0 18px;padding:2px;border:0;border-radius:10px;background:var(--y-fill)}
.y-tabs [role=tab]{flex:1 1 0;min-width:0;min-height:40px;margin:0;padding:6px 10px;border:0;border-radius:8px;background:none;color:inherit;box-shadow:none;font:inherit;font-size:.875rem;font-weight:500;line-height:1.25;text-align:center;white-space:normal;cursor:pointer}
.y-tabs [role=tab]:not([aria-selected=true]):hover{background:var(--soft)}
.y-tabs [role=tab][aria-selected=true]{background:var(--y-raised,var(--panel,#fff));color:inherit;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.y-tabs [role=tab]:focus-visible{outline:none;box-shadow:var(--y-ring)}

/* T8 · Organizer: what belongs to no tab sits at the foot of the sheet */
.o-dialog .o-elsewhere{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:24px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.o-dialog .o-elsewhere p{flex-basis:100%;margin:0;color:var(--muted);font-size:.875rem}

/* S4 · iPhone: Research and Library checks open as a list; a tool opens full width with Back to the list */
@media(max-width:760px){
  .y-page.y-page-list>:not(.y-dialog-head):not(.y-page-side):not(.r-storage){display:none!important}
  .y-page.y-page-list .y-page-side{display:block}
  .y-page.y-page-list .r-tabs{display:flex!important;flex-direction:column;align-items:stretch;gap:0;margin:0 -16px;padding:0;border:0;border-top:1px solid var(--line)}
  .y-page.y-page-list .y-page-side :is(.r-tabs,.y-page-tools) button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin:0;padding:10px 16px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;color:var(--ink);box-shadow:none;font-size:1.0625rem;font-weight:500;text-align:left}
  .y-page.y-page-list :is(.r-tabs,.y-page-tools) button::after{content:"";flex:none;width:8px;height:8px;margin-right:4px;border-top:2px solid var(--y-label-3,var(--muted));border-right:2px solid var(--y-label-3,var(--muted));transform:rotate(45deg)}
  .y-page.y-page-list .y-page-tools{display:flex;flex-direction:column;gap:0;margin:20px -16px 0;padding:0;border:0}
  .y-page.y-page-list .y-page-side .y-page-tools-label{display:block;padding:0 16px 6px;text-align:left}
  .y-page.y-page-list .y-page-tools button{border-top:0}
  .y-page.y-page-list .y-page-tools .y-page-tools-label+button{border-top:1px solid var(--line)}
  .y-page.y-page-tool .y-page-side{display:none!important}
}

/* ═══ HIG Activity views, Buttons and Context menus (Oct 24 2026; claude/hig-audit-yakuri-activity-buttons-context-menus.md) ═══ */
/* B1 · every control answers a press: one step darker fill, nothing moves */
:root body :is(#drug-list .drug-item,.yakuri-rail>button,#pvxSubnav .seg,.y-section-nav button,.y-island-dock,.medical-nav button,.y-tabs [role=tab],.y-set-tabs [role=tab]):active:not(:disabled){background-color:var(--y-fill-2)!important}
:root body :is(#drug-list .drug-item,.yakuri-rail>button,#pvxSubnav .seg,.y-section-nav button,.medical-nav button,.y-tabs [role=tab],.y-set-tabs [role=tab]):is([aria-current=true],[aria-current=page],[aria-selected=true],[aria-pressed=true],.active):active:not(:disabled){background-color:var(--y-fill-2)!important;filter:brightness(.92)}
:root body summary:active{background-color:var(--y-fill-2)}

/* B2 · the action people come for: one prominent button per sheet (the accent fill Calculate uses) */
:root body button.y-primary{background:var(--accent)!important;color:var(--y-on-accent)!important;border:1px solid transparent!important;font-weight:600}
:root body button.y-primary:hover:not(:disabled):not([aria-disabled=true]){filter:brightness(1.06)}
:root body button.y-primary:active:not(:disabled):not([aria-disabled=true]){filter:brightness(.92)}
:root body button.y-primary:is(:disabled,[aria-disabled=true]){background:var(--y-fill)!important;color:var(--y-label-3)!important;filter:none}

/* B3 · destructive actions read red; Archive (restorable) doesn't */
body{--y-destructive:#D70015}
body.dark{--y-destructive:#FF6961}
:root body button.y-destructive:not(:disabled):not([aria-disabled=true]),:root body .y-menu-item.y-destructive{color:var(--y-destructive)!important}

/* B4 · each section's two actions: one row, one size */
.reader section[data-y-section]>:is(.x-inspect-section,.o-section-pin){display:inline-flex;align-items:center;vertical-align:top;min-height:44px;margin:16px 8px 0 0;padding:8px 12px;border:1px solid transparent;border-radius:8px;background:var(--y-fill);color:var(--ink);font-size:.75rem;font-weight:600;line-height:1.2}
.reader section[data-y-section]>:is(.x-inspect-section,.o-section-pin):hover{background:var(--y-fill-2)}

/* B5 · 44 pt on touch */
@media(pointer:coarse){
  :root body :is(.y-set-tabs,.y-tabs) [role=tab]{min-height:44px}
  :root body .y-dialog-head .y-page-back{min-height:44px}
  :root body .p-drug-card header>button{min-width:44px;min-height:44px}
  :root body #r-coverage-table thead th button{min-height:44px;min-width:44px}   /* found while testing: the coverage table's sort headings were 32 pt */
}

/* B6 · progress in the button */
button.y-busy{cursor:progress}
:root body button.y-busy:disabled{color:var(--ink)!important;opacity:1}   /* busy isn't unavailable: the label stays readable */
:root body :is(.medical-actions button[type=submit],button.y-primary).y-busy:disabled{color:var(--y-on-accent)!important}
.y-spin{display:inline-block;flex:none;width:.95em;height:.95em;margin-right:.45em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-.15em;animation:y-spin .8s linear infinite}
@keyframes y-spin{to{rotate:360deg}}
@media(prefers-reduced-motion:reduce){.y-spin{animation-duration:1.1s}}   /* HIG Progress indicators (Oct 25 2026): a spinner keeps turning with Reduce Motion, as Apple's does; a still one reads as stalled */

/* C8 · context menus look like the toolbar's menus */
.y-context-menu{position:fixed;min-width:220px}
.y-context-menu .y-menu-item{min-height:32px}
@media(pointer:coarse){.y-context-menu .y-menu-item{min-height:44px}}

/* ═══ HIG Dock menus, Edit menus and Home Screen quick actions (Oct 24 2026; claude/hig-audit-yakuri-dock-edit-quick-actions.md) ═══ */
/* found while testing: an unavailable Calculate kept its accent fill with dimmed text; it now dims like every other main button (busy keeps the fill) */
:root body .medical-actions button[type=submit]:disabled:not(.y-busy){background:var(--y-fill)!important;color:var(--y-label-3)!important;filter:none}

/* ═══ HIG Menus, Ornaments and Pop-up buttons (Oct 24 2026; claude/hig-audit-yakuri-menus-ornaments-popups.md) ═══ */
/* P4 · Filter library's two pop-ups are a set: one height, one padding */
:root body :is(#clinical-filter,#evidence-filter){min-height:44px;height:44px;padding:0 8px;box-sizing:border-box}
/* M2 · a menu item's shortcut sits at its trailing edge (Print…, Hide sidebar) */
.y-menu-item .y-menu-label{flex:1 1 auto;min-width:0}

/* ═══ HIG Pull-down buttons, The menu bar and Toolbars (Oct 24 2026; claude/hig-audit-yakuri-pulldowns-menubar-toolbars.md) ═══ */
/* T2 · one row of tools: More appears only when Research and View have folded into it */
.y-toolbar:not(.y-folded)>.y-more{display:none}
.y-toolbar.y-folded>.y-fold{display:none}
.y-toolbar.y-folded2>.y-fold2{display:none}
/* M1 · the drug's commands in ⌘K: the current choice is checked, shortcuts sit at the end */
.x-spotlight-actions .x-drug-cmd{display:inline-flex;align-items:center;gap:8px}
.x-spotlight-actions .x-drug-cmd[aria-current=true]::before{content:"";flex:none;width:9px;height:5px;margin:-3px 2px 0 0;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.x-spotlight-actions .x-drug-cmd kbd{font:inherit;font-size:.8125rem;font-weight:400;color:var(--y-label-3,var(--muted))}

/* ═══ HIG Path controls, Search fields and Sidebars (Oct 24 2026; claude/hig-audit-yakuri-path-search-sidebars.md) ═══ */
/* P1 · Edit sidebar hides items. (Labels break inside a word only when one word is wider than the rail, at the largest text sizes.) */
.yakuri-rail>.y-rail-off,.yakuri-rail>.rail-label[hidden]{display:none!important}
.y-ws-group{margin:16px 0 6px;font-size:.6875rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.y-ws-dialog .y-ws-intro+.y-ws-group{margin-top:4px}
.y-set-rail ul.y-rail-edit{list-style:none;margin:6px 0 0;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.y-rail-row{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 6px 0 4px;background:var(--panel);border-top:1px solid var(--line)}
.y-rail-row:first-child{border-top:0}
.y-rail-row label{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;min-height:44px;font-size:.9375rem;cursor:pointer}
.y-rail-row label input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
.y-rail-row .y-ico{display:inline-flex;width:18px;height:18px;color:var(--muted)}
.y-rail-row .y-ico svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.y-rail-grip{display:inline-flex;width:18px;height:18px;color:var(--muted);cursor:grab;flex:none}
.y-rail-grip svg{width:18px;height:18px}
.y-rail-note{font-size:.8125rem;color:var(--muted);white-space:nowrap}
.y-rail-move{display:inline-flex;gap:2px;flex:none}
.y-rail-move button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ink)}
.y-rail-move button:hover:not(:disabled){background:var(--y-fill)}
.y-rail-move button:disabled{opacity:.3}
.y-rail-move svg{width:18px;height:18px}
@media(pointer:coarse){.y-rail-move button{width:44px;height:44px}}
.y-rail-row.y-rail-dragging{opacity:.5}
.y-rail-row.y-drop-before{box-shadow:inset 0 2px 0 var(--accent)}
.y-rail-row.y-drop-after{box-shadow:inset 0 -2px 0 var(--accent)}

/* P2 · narrow windows: the rail hides; the sidebar button shows it over the content, with its labels */
@media(min-width:761px) and (max-width:1150px) and (min-height:501px){
  body:not(.y-focus) .workspace,body.y-large-text:not(.y-focus) .workspace{grid-template-columns:0 250px minmax(0,1fr)}
  body:not(.y-focus) .workspace>.library{grid-column:2;grid-row:1}
  body:not(.y-focus) .workspace>#article{grid-column:3;grid-row:1}
  body:not(.y-rail-over) .workspace>.yakuri-rail{display:none!important}
  body.y-rail-over .workspace>.yakuri-rail{display:flex!important;flex-direction:column;align-items:stretch;position:fixed;left:0;top:var(--pvx-head);bottom:0;height:auto;width:248px;z-index:70;
    padding:16px 10px;gap:2px;overflow-y:auto;background:var(--panel);border-right:1px solid var(--line);box-shadow:var(--y-dialog-shadow,0 24px 64px rgba(0,0,0,.3))}
  body.y-rail-over .yakuri-rail>.rail-label:not([hidden]){display:block}
  body.y-rail-over .yakuri-rail>.rail-bottom{display:none}
  body.y-rail-over .yakuri-rail>button,body.y-rail-over .yakuri-rail>a{width:auto;height:auto;min-height:44px;padding:7px 10px;justify-content:flex-start;font-size:.875rem;gap:10px;flex:0 0 auto}
  body.y-rail-over .yakuri-rail span.y-ico,body.y-rail-over .yakuri-rail span.y-ico svg{width:18px;height:18px;flex-basis:18px}
  .y-rail-scrim{position:fixed;left:0;right:0;top:var(--pvx-head);bottom:0;z-index:69;background:rgba(0,0,0,.18)}
  body.dark .y-rail-scrim{background:rgba(0,0,0,.35)}
}
@media(prefers-reduced-motion:no-preference) and (min-width:761px) and (max-width:1150px) and (min-height:501px){body.y-rail-over .workspace>.yakuri-rail{animation:y-rail-in .2s cubic-bezier(.2,.8,.2,1)}}
@keyframes y-rail-in{from{transform:translateX(-24px);opacity:0}to{transform:none;opacity:1}}

/* P3 · the breadcrumb's list is a button */
.article-top .crumb{align-items:baseline}
.article-top .crumb .y-crumb-link{display:inline;padding:0;margin:0;min-height:0;height:auto;border:0;background:none;box-shadow:none;font:inherit;line-height:inherit;color:var(--accent);cursor:pointer;border-radius:4px}
.article-top .crumb .y-crumb-link:hover{text-decoration:underline}
.article-top .crumb .y-crumb-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* P4 · the library's search field stays at the top of the list */
.library>.library-top.y-lib-head{padding-bottom:0}
.library>.y-lib-search{position:sticky;top:0;z-index:5;padding:8px 17px;background:var(--panel);transition:box-shadow .15s}
.library>.y-lib-search.y-stuck{box-shadow:0 1px 0 var(--line)}
.library>.y-lib-search>.search{margin:0}
.library>.library-top.y-lib-rest{padding-top:0}
.library>.y-lib-sentinel{height:0}

/* ═══ HIG Tab bars and Token fields (Oct 24 2026; claude/hig-audit-yakuri-tab-bars-token-fields.md) ═══ */
/* B2 · iPhone: every tab has its symbol above one word */
#pvxSubnav .seg .y-seg-short{display:none}
@media(max-width:760px){
  #pvxSubnav .switcher .seg{flex-direction:column;justify-content:center;gap:2px;min-width:60px;padding:2px 4px;line-height:1}
  #pvxSubnav .switcher .seg .y-seg-label{display:none!important}
  #pvxSubnav .switcher .seg .y-seg-short{display:block;font-size:.8125rem;font-weight:600;letter-spacing:-.01em;white-space:nowrap}   /* 13 pt: Yakuri's smallest text on touch */
  #pvxSubnav .switcher .seg svg{width:18px;height:18px}
}
/* at the largest text sizes the words give way as the long labels do (Item 3): the other tabs' first, the open one's last */
#pvxSubnav.y-fit-4 .switcher .seg:not(.active) .y-seg-short,#pvxSubnav.y-fit-5 .switcher .seg .y-seg-short{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
/* B3 · Interactions and Medical calculators are tabs, not rail items */
.yakuri-rail>.y-rail-tab{display:none!important}
/* B4 · where there's no sidebar, its place is kept, so the tabs don't move */
#pvxSubnav .y-sidebar-slot{visibility:hidden;pointer-events:none}
/* B5 · the picker's highlighted match, and the drug Backspace has selected */
#interaction-matches .interaction-row.y-hl{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
#interaction-selected .interaction-row.y-token-armed{border-color:var(--y-destructive,#D70015);box-shadow:inset 0 0 0 1px var(--y-destructive,#D70015)}
/* ═══ A–Z sections (Oct 24 2026): letter headings pinned under the search field, an index to jump, and labelled groups in a search */
#drug-list>.y-sec{position:sticky;top:var(--y-pin-h,56px);z-index:3;margin:0 -8px;padding:12px 18px 6px;background:var(--panel);box-shadow:0 1px 0 var(--line);color:var(--muted);font-size:.8125rem;font-weight:600;line-height:1.3;letter-spacing:0}
#drug-list:has(>.y-sec){overflow:visible}
.library{overflow-anchor:none}   /* a re-rendered list must never move the page beside it; the list keeps its own place (A–Z sections) */   /* the list grows with the .library scroller; its own overflow would hold the headings in place */
#drug-list>.y-letter{color:var(--ink);font-size:.9375rem;font-weight:700}
#drug-list>.y-sec+.drug-card{margin-top:2px}
.library>.y-az{position:sticky;top:calc(var(--y-pin-h,56px) + 6px);height:0;flex:none;align-self:stretch;z-index:4}
.library>.y-az[hidden]{display:none}
.library.y-has-az .drug-list{padding-right:30px}
.y-az-strip{position:absolute;right:2px;top:0;width:26px;font-size:.8125rem;display:flex;flex-direction:column;align-items:stretch;padding:2px 0;touch-action:none;-webkit-user-select:none;user-select:none;cursor:default}
.library .y-az-strip button{appearance:none;display:block;min-height:0;min-width:0;width:100%;margin:0;padding:0;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--accent);font-family:inherit;font-size:.8125rem;font-weight:600;line-height:1.38;text-align:center;cursor:pointer}
.library .y-az-strip button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.y-az-dot{display:block;height:calc(.8125rem * 1.38);position:relative}
.y-az-dot::before{content:"";position:absolute;left:50%;top:50%;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;background:var(--accent);opacity:.7}
.y-az.y-az-active .y-az-strip{background:rgba(127,140,160,.16);border-radius:13px}
@media(pointer:coarse){.y-az-strip{width:30px}.library.y-has-az .drug-list{padding-right:32px}}

/* ═══ HIG Action sheets and Alerts (Oct 25 2026): the discard question and the older-library warning */
dialog.y-alert{padding:0;border:0;background:transparent;color:var(--ink);max-width:none;max-height:none;overflow:visible}
dialog.y-alert:focus{outline:none}
dialog.y-alert::backdrop{background:rgba(8,14,26,.42)}
dialog.y-alert button{appearance:none;font:inherit;margin:0;cursor:pointer}
dialog.y-alert button:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.y-alert .y-destructive{color:var(--y-destructive,#D70015)}
/* Mac and iPad: a small alert over the sheet; Cancel leading, the default trailing */
dialog.y-alert-box{position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 32px));height:fit-content;box-sizing:border-box;padding:20px;border-radius:14px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--y-dialog-shadow,0 24px 64px rgba(0,0,0,.4))}
.y-alert-box .y-alert-title{margin:0;font-size:1.0625rem;font-weight:700;line-height:1.35;text-align:center}
.y-alert-box .y-alert-text{margin:6px 0 0;font-size:.875rem;line-height:1.45;text-align:center;color:var(--muted)}
.y-alert-box .y-alert-actions{display:flex;gap:8px;margin-top:18px}
.y-alert-box .y-alert-actions:has(>:nth-child(3)){flex-direction:column}
dialog.y-alert-box:has(.y-alert-actions>:nth-child(3)){width:min(320px,calc(100vw - 32px))}   /* three choices stack: the default on top, Cancel at the bottom */
:root body .y-alert-box .y-alert-actions button{flex:1 1 0;min-height:36px;padding:6px 12px;border-radius:10px;border:1px solid var(--line);background:var(--soft);color:var(--ink);font-size:.875rem;font-weight:600;line-height:1.3}
:root body .y-alert-box .y-alert-actions .y-destructive{color:var(--y-destructive,#D70015)}
:root body .y-alert-box .y-alert-actions .y-alert-save{background:var(--accent);border-color:var(--accent);color:var(--y-on-accent,#fff)}
/* iPhone: an action sheet from the bottom; Discard at the top, Cancel set apart at the bottom */
dialog.y-action-sheet{position:fixed;inset:auto 0 0 0;margin:0 auto;width:min(100vw,500px);box-sizing:border-box;padding:0 8px calc(8px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px}
.y-action-sheet .y-alert-group{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:var(--panel);border:1px solid var(--line)}
.y-action-sheet .y-alert-title{margin:0;padding:14px 16px;font-size:.8125rem;font-weight:600;line-height:1.35;text-align:center;color:var(--muted)}
:root body .y-action-sheet .y-alert-group button{box-shadow:none;border-radius:0;width:100%;min-height:57px;padding:8px 16px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--accent);font-size:1.25rem;font-weight:400;line-height:1.25;text-align:center}
:root body .y-action-sheet .y-alert-group button.y-destructive{color:var(--y-destructive,#D70015)}
:root body .y-action-sheet .y-alert-cancel-group button{border-top:0;font-weight:600}
@media(prefers-reduced-motion:no-preference){dialog.y-action-sheet[open]{animation:y-sheet-up .28s cubic-bezier(.2,.8,.2,1)}dialog.y-alert-box[open]{animation:y-alert-in .2s ease-out}}
@keyframes y-sheet-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes y-alert-in{from{opacity:0;transform:scale(1.06)}to{opacity:1;transform:none}}
@media(pointer:coarse){:root body .y-alert-box .y-alert-actions button{min-height:44px}}
/* ═══ HIG Popovers and Scroll views (Oct 25 2026) */
/* P1 · Quick view as a popover on wide screens: points at what opened it; only its excerpt scrolls */
.y-popover[popover]{position:fixed;inset:auto;margin:0;padding:0;box-sizing:border-box;display:none;flex-direction:column;overflow:visible;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:var(--y-dialog-shadow,0 18px 48px rgba(0,0,0,.32))}
.y-popover[popover]:popover-open{display:flex}
.y-popover:focus{outline:none}
.y-pop-arrow{position:absolute;width:12px;height:12px;background:var(--panel);border:1px solid var(--line);transform:rotate(45deg)}
.y-popover[data-side=right] .y-pop-arrow{left:-7px;margin-top:-6px;border-right:0;border-top:0}
.y-popover[data-side=left] .y-pop-arrow{right:-7px;margin-top:-6px;border-left:0;border-bottom:0}
.y-popover[data-side=below] .y-pop-arrow{top:-7px;margin-left:-6px;border-right:0;border-bottom:0}
.y-popover[data-side=above] .y-pop-arrow{bottom:-7px;margin-left:-6px;border-left:0;border-top:0}
.y-pop-head{padding:16px 18px 10px;border-bottom:1px solid var(--line)}
.y-pop-head h2{margin:0 0 8px;font-size:1.0625rem;font-weight:700;line-height:1.3}
.y-pop-head .x-scope{margin:8px 0 0;font-size:.8125rem;line-height:1.45;color:var(--muted)}
.y-pop-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 18px}
.y-pop-body .notice{margin:0 0 12px;font-size:.8125rem}
.y-pop-body .x-excerpt h3{font-size:.9375rem;margin:0 0 4px}
.y-pop-body .x-source-text{font-size:.9375rem;line-height:1.5}
.x-quick-pop .x-quick-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:12px 18px 14px;border-top:1px solid var(--line)}
@media(prefers-reduced-motion:no-preference){.y-popover[popover]:popover-open{animation:y-pop-in .16s ease-out}}
@keyframes y-pop-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
/* P5 · Split view on iPhone: one pane at a time, the sheet scrolls as one page; the scope summary is never a tiny scroll box */
.y-split-scope p{max-height:none;overflow:visible}
.y-split-switch{display:none}
@media(max-width:700px){
  dialog.y-split-dialog{display:block;height:auto;max-height:94dvh;overflow:auto;overscroll-behavior:contain}
  dialog.y-split-dialog:not([open]){display:none}
  .y-split-dialog .y-split-layout{display:block;overflow:visible}
  .y-split-dialog .y-split-pane{min-height:0;display:block}
  .y-split-dialog .y-split-pane+.y-split-pane{border-top:0;padding-top:0}
  .y-split-dialog .y-split-reader{overflow:visible;min-height:0;padding-right:0}
  .y-split-dialog[data-pane="0"] .y-split-pane:nth-child(2),.y-split-dialog[data-pane="1"] .y-split-pane:nth-child(1){display:none}
  .y-split-switch{position:sticky;top:-12px;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 -12px 12px;padding:8px 12px;background:var(--panel);border-bottom:1px solid var(--line)}
  .y-split-switch button{min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;padding:6px 10px;border-radius:10px;border:1px solid var(--line);background:var(--soft);color:var(--ink);font:inherit;font-size:.875rem;font-weight:600}
  .y-split-switch button[aria-selected=true]{background:var(--accent);border-color:var(--accent);color:var(--y-on-accent,#fff)}
  .y-split-switch span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
}
/* S3 · brought into view below the pinned bars */
.library{scroll-padding-top:calc(var(--y-pin-h,56px) + var(--y-sec-h,0px) + 4px)}
#article *{scroll-margin-top:var(--y-page-cover,0px)}
#article .y-section-nav,#article .y-section-nav *{scroll-margin-top:0}
/* P2 · a popover tip that would cover a control opens above its anchor instead */
.y-tip.y-tip-pop.y-tip-above{top:auto;bottom:calc(100% + 8px)}
.y-tip.y-tip-pop.y-tip-above::before{top:auto;bottom:-6px;border-left:0;border-top:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
/* ═══ HIG Sheets and Windows (Oct 25 2026) */
/* W1 · one sheet at a time: a sheet opened from a sheet takes its place; the first comes back when it closes */
dialog.y-dialog.y-sheet-aside{visibility:hidden}
dialog.y-dialog.y-sheet-aside::backdrop{background:transparent}
/* W3 · three sizes on the Mac and iPad */
dialog.y-dialog[data-size=small]{max-width:560px}
dialog.y-dialog[data-size=medium]{max-width:720px}
dialog.y-dialog[data-size=large]{max-width:1100px}
@media(pointer:coarse) and (min-width:761px) and (max-width:1024px){
  dialog.y-dialog[data-size=small]{max-width:540px}
  dialog.y-dialog[data-size=medium],dialog.y-dialog[data-size=large]{max-width:704px}}
/* W2 · touch: the close button on the leading edge; iPhone: sheets rise from the bottom, with a grabber */
.y-grabber{display:none}
@media(pointer:coarse){dialog.y-dialog:not(.y-page)>.y-dialog-head{flex-direction:row-reverse;justify-content:flex-end;gap:12px}}
@media(max-width:760px){
  dialog.y-dialog:not(.y-page){position:fixed;inset:auto 0 0 0;margin:0 auto;width:100%;max-width:none;box-sizing:border-box;max-height:calc(100dvh - 12px - env(safe-area-inset-top));border-radius:20px 20px 0 0;border-bottom:0;padding-top:8px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  dialog.y-dialog:not(.y-page)>.y-grabber{display:block;position:sticky;top:-8px;z-index:3;height:24px;margin:-8px 0 0;background:transparent;touch-action:none;cursor:grab}
  dialog.y-dialog:not(.y-page)>.y-grabber::before{content:"";position:absolute;left:50%;top:8px;width:36px;height:5px;margin-left:-18px;border-radius:3px;background:var(--muted);opacity:.55}
  dialog.y-dialog:not(.y-page)>.y-dialog-head{touch-action:none}
  dialog.y-dialog.y-dragging{transition:none!important}
  dialog.y-dialog.y-settling{transition:transform .22s cubic-bezier(.2,.8,.2,1)}}
@media(max-width:760px) and (prefers-reduced-motion:no-preference){dialog.y-dialog:not(.y-page)[open]:not(.y-dragging){animation:y-sheet-up .3s cubic-bezier(.2,.8,.2,1)}}
/* ═══ HIG Combo boxes (Oct 25 2026): one field to choose a drug */
.y-combo{position:relative;display:block;margin-top:4px}
.y-combo-input{display:block;width:100%;box-sizing:border-box;min-height:44px;padding:10px 40px 10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font:inherit;font-size:.9375rem}
.y-combo-input:focus{outline:2px solid var(--accent);outline-offset:-1px}
:root body .y-combo .y-combo-btn{position:absolute;right:0;top:0;width:44px;height:44px;min-height:0;min-width:0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
.y-combo-btn svg{width:18px;height:18px}
.y-combo.y-open .y-combo-btn svg{transform:rotate(180deg)}
.y-combo-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;max-height:min(320px,50vh);overflow:auto;overscroll-behavior:contain;padding:4px;box-sizing:border-box;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--y-dialog-shadow,0 12px 32px rgba(0,0,0,.28))}
.y-combo-group{padding:8px 10px 4px;font-size:.8125rem;font-weight:600;color:var(--muted)}
.y-combo-opt{padding:9px 10px;border-radius:8px;font-size:.9375rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere;cursor:pointer;color:var(--ink)}
.y-combo-opt[aria-selected=true]{background:var(--accent);color:var(--y-on-accent,#fff)}
.y-combo-empty{padding:10px;font-size:.875rem;color:var(--muted)}
.y-combo-note{margin:4px 0 0;font-size:.8125rem;color:var(--muted);min-height:0}
.y-combo-note:empty{display:none}
@media(max-width:700px){.y-split-controls label:has(.y-combo){grid-column:1/-1}}

/* ═══ HIG Pickers, Segmented controls, Sliders (Oct 25 2026): one segmented control, equal segments, one look ═══ */
:root body :is(.y-segctl,.y-segtrack,.scopes,.y-set-seg,.cpr-unit-toggle,.medical-species,.interaction-view-controls,.calc-tabs){display:inline-grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none;align-items:stretch;gap:2px;padding:2px;margin-inline:0;border:0;border-radius:9px;background:var(--y-fill);width:max-content;max-width:100%;height:auto;box-sizing:border-box;overflow:visible}
:root body :is(.y-segctl.y-seg-fill,.scopes,.cpr-unit-toggle,.calc-tabs){display:grid;width:100%}
:root body .medical-species{grid-auto-columns:minmax(7.5rem,1fr)}
:root body :is(.y-segctl,.y-segtrack,.scopes,.interaction-view-controls,.calc-tabs)>button,
:root body :is(.y-set-seg,.cpr-unit-toggle,.medical-species) label{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:32px;margin:0;padding:4px 14px;border:0;border-radius:7px;background:transparent;box-shadow:none;color:var(--ink);font:inherit;font-size:.875rem;font-weight:500;line-height:1.25;text-align:center;text-wrap:balance;cursor:pointer;flex:none}
:root body :is(.y-set-seg,.cpr-unit-toggle,.medical-species) label span{display:contents;height:auto;border:0;background:none;box-shadow:none;padding:0;font:inherit;color:inherit}
:root body :is(.y-set-seg,.cpr-unit-toggle,.medical-species) input{position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;margin:0;opacity:0;cursor:pointer}
:root body :is(.y-segctl,.y-segtrack,.scopes,.interaction-view-controls,.calc-tabs)>button:hover:not([aria-checked=true],[aria-selected=true],:disabled),
:root body :is(.y-set-seg,.cpr-unit-toggle,.medical-species) label:hover:not(:has(:checked)){background:var(--y-fill-2);color:var(--ink)}
:root body :is(.y-segctl,.y-segtrack,.scopes,.interaction-view-controls)>button[aria-checked=true],
:root body .calc-tabs>button[aria-selected=true],
:root body :is(.y-set-seg,.cpr-unit-toggle,.medical-species) label:has(:checked){background:var(--y-raised);color:var(--ink);font-weight:600;border:0;box-shadow:0 1px 2px rgba(0,0,0,.18),0 0 0 .5px var(--line)}
:root body :is(.y-segctl,.y-segtrack,.scopes,.interaction-view-controls,.calc-tabs)>button:focus-visible,
:root body :is(.y-set-seg,.cpr-unit-toggle,.medical-species) label:has(:focus-visible){outline:2px solid var(--accent);outline-offset:-2px;box-shadow:var(--y-ring)}
:root body :is(.y-segctl,.y-segtrack,.scopes,.interaction-view-controls,.calc-tabs)>button:disabled{opacity:.45;cursor:default}
/* forms line the control up with the field beside it */
:root body .medical-row :is(.y-segctl,.cpr-unit-toggle){min-height:50px}
:root body #interaction-main .interaction-search .y-segctl{min-height:50px}
:root body #interaction-main .interaction-search{grid-template-columns:minmax(0,1fr) auto}
:root body #interaction-main .interaction-search .y-segctl>button{min-width:3.5rem}
:root body fieldset.y-set-group{min-inline-size:0}
:root body .y-context-fields .y-segctl{min-height:40px}
:root body .x-focus-modes .y-segtrack{margin-left:0}
:root body .y-toolbar .y-modes .y-segtrack>button{font-size:.8125rem;padding:4px 8px}
:root body .y-toolbar .y-modes .y-segtrack{margin-block:-2px}   /* the track's 2 pt inset sits outside the row, so the bar keeps one line height */
:root body .interaction-view-controls{margin:14px 0}
@media(pointer:coarse){:root body :is(.y-segctl,.y-segtrack,.scopes,.interaction-view-controls,.calc-tabs)>button,:root body :is(.y-set-seg,.cpr-unit-toggle,.medical-species) label{min-height:44px;min-width:44px}}
@media(max-width:760px){:root body .y-toolbar .y-modes .y-segtrack{display:grid;width:100%}}
@media print{.y-segctl{display:none!important}}
/* Split view's A | B on iPhone joins the same look */
@media(max-width:700px){:root body .y-split-switch{gap:2px;padding:2px;margin:0 0 12px;border-radius:9px;background:linear-gradient(var(--y-fill),var(--y-fill)),var(--panel);border-bottom:0;position:sticky;top:-4px}
  :root body .y-split-switch button{border:0;border-radius:7px;background:transparent;color:var(--ink)}
  :root body .y-split-switch button[aria-selected=true]{background:var(--y-raised);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.18),0 0 0 .5px var(--line)}}
/* the calculator's unit pair, under Calculator | Convert */
.calc-pair{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.calc-pair span{font-size:.8125rem;color:var(--muted);flex:none}
.calc-pair select{flex:1;min-width:0;min-height:40px;padding:0 10px;border:1px solid var(--y-ctl,var(--line));border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:.9375rem}
@media(pointer:coarse){.calc-pair select{min-height:44px}}
/* the label photo's zoom slider: minimum on the leading side, the filled track up to the thumb */
.c-viewer{max-height:min(calc(100dvh - 250px),900px)}
.c-viewer-tools{flex-wrap:wrap}
.c-viewer-slider{-webkit-appearance:none;appearance:none;flex:1 1 120px;min-width:96px;max-width:240px;height:32px;margin:0 2px;background:transparent;cursor:pointer}
.c-viewer-slider::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--accent) var(--y-fill-to,0%),var(--y-fill-2) var(--y-fill-to,0%))}
.c-viewer-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:22px;height:22px;margin-top:-9px;border-radius:50%;border:0;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.32),0 0 0 .5px rgba(0,0,0,.14)}
.c-viewer-slider::-moz-range-track{height:4px;border-radius:2px;background:var(--y-fill-2)}
.c-viewer-slider::-moz-range-progress{height:4px;border-radius:2px;background:var(--accent)}
.c-viewer-slider::-moz-range-thumb{width:22px;height:22px;border-radius:50%;border:0;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.32),0 0 0 .5px rgba(0,0,0,.14)}
.c-viewer-slider:focus-visible{outline:none}
.c-viewer-slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--accent),0 1px 3px rgba(0,0,0,.32)}
.c-viewer-slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 3px var(--accent)}
@media(pointer:coarse){.c-viewer-slider{height:44px}}
@media(max-width:760px){.c-viewer-tools{flex-wrap:nowrap;gap:6px}.c-viewer-level{min-width:44px}}
@media print{.c-viewer-slider{display:none}}

/* ═══ HIG Steppers, Text fields, Toggles, Virtual keyboards (Oct 25 2026) */
/* S1 · number fields have no ▴▾ arrows: a weight, dose or time is typed */
input[type=number]{-moz-appearance:textfield;appearance:textfield}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}
/* T2 · the drug field's text stops before its button */
:root body .y-combo-input{padding-right:48px;text-overflow:ellipsis}
/* T3 · number fields sized to their numbers on the Mac and iPad, with the unit right beside them */
@media(min-width:761px){
  :root body .medical-form .medical-row{grid-template-columns:minmax(0,16rem) auto;justify-content:start}
  :root body .medical-form :is(#test-stock,#test-hours,#med-duration){max-width:16rem}}
/* T4 · the Clear button in search fields on iPhone and iPad */
.y-clear{position:absolute;z-index:2;width:44px;height:44px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:22px;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
.y-clear[hidden]{display:none!important}
@media(pointer:coarse){
  input.y-has-clear{padding-right:44px!important}
  input.y-has-clear::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}}
/* T5 · a switch at the trailing end of an on/off row on iPhone and iPad */
@media(pointer:coarse){
  :root body label.y-switch-row{display:flex!important;align-items:center;gap:10px;min-height:44px;cursor:pointer}
  :root body label.y-switch-row>input[role=switch]{order:9;margin:0 0 0 auto;flex:none;-webkit-appearance:none;appearance:none;position:relative;width:51px;height:31px;min-height:0!important;border-radius:16px;background:var(--y-fill-2);box-shadow:inset 0 0 0 1px var(--line);transition:background .2s;cursor:pointer}
  :root body label.y-switch-row>input[role=switch]::before{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.22),0 0 0 .5px rgba(0,0,0,.08);transition:transform .2s cubic-bezier(.2,.8,.2,1)}
  :root body label.y-switch-row>input[role=switch]:checked{background:var(--accent);box-shadow:none}
  :root body label.y-switch-row>input[role=switch]:checked::before{transform:translateX(20px)}
  :root body label.y-switch-row>input[role=switch]:disabled{opacity:.5}
  :root body label.y-switch-row>input[role=switch]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  :root body .y-rail-row>label.y-switch-row{flex:1 1 auto;min-width:0}}
@media(pointer:coarse) and (prefers-reduced-motion:reduce){:root body label.y-switch-row>input[role=switch],:root body label.y-switch-row>input[role=switch]::before{transition:none}}
/* T6 · the open tool in Research and Library checks is "current", not a pressed button */
:root body .r-tabs button[aria-current=true],:root body .r-dialog nav button[aria-current=true]{background:var(--selected);color:var(--accent);border-color:var(--y-sel-edge)}
/* V9 · while the iPhone keyboard is up, sheets ride on top of it */
@media(max-width:760px){
  html.y-kb-up dialog.y-dialog:not(.y-page){bottom:var(--y-kb,0px);max-height:calc(100dvh - var(--y-kb,0px) - 12px - env(safe-area-inset-top));padding-bottom:12px;border-radius:20px}
  html.y-kb-up #utility-calculator-panel{max-height:calc(100dvh - 88px - var(--y-kb,0px))}}
.y-combo.y-combo-above .y-combo-list{top:auto;bottom:calc(100% + 4px)}
/* the "Patient from earlier in this visit" note takes its own line under the weight and its unit */
:root body .medical-row>.y-restored{grid-column:1/-1;order:9;margin-top:-8px}
/* All drugs is always shown: its note says so, without a switch that can't move */
@media(pointer:coarse){:root body .y-rail-row label.y-switch-row>input[role=switch]:disabled{display:none}}
/* inside Research's pages the generic page-button style is stronger; the segmented control keeps its own look */
:root body .r-dialog .y-segctl>button:not(#y-seg-any){min-height:36px;padding:4px 14px;border:0;border-radius:7px;background:transparent;box-shadow:none;color:var(--ink);font-weight:500}
:root body .r-dialog .y-segctl>button:not(#y-seg-any):hover:not([aria-checked=true]){background:var(--y-fill-2)}
:root body .r-dialog .y-segctl>button[aria-checked=true]:not(#y-seg-any){background:var(--y-raised);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.18),0 0 0 .5px var(--line)}
@media(pointer:coarse){:root body .r-dialog .y-segctl>button:not(#y-seg-any){min-height:44px}}

/* ═══ A–Z everywhere (Oct 25 2026): every drug list reads like the library — letter headings, the A–Z index, and the same search groups */
/* the index, wherever it appears (the library keeps its own rules above) */
.y-az-list[hidden]{display:none!important}
.y-az-list .y-az-strip{position:absolute;right:0;top:0}
.y-az-list .y-az-strip button{appearance:none;display:block;min-height:0;min-width:0;width:100%;margin:0;padding:0;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--accent);font-family:inherit;font-size:.8125rem;font-weight:600;line-height:1.38;text-align:center;cursor:pointer}
.y-az-list .y-az-strip button:hover{background:var(--y-fill-2)}
.y-az-list .y-az-strip button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
/* the drug field: letter headings pinned at the top of its list, the index beside it, and a taller list to hold it */
.y-combo .y-combo-letter{position:sticky;top:-4px;z-index:1;margin:0 -4px;padding:8px 14px 5px;background:var(--panel);box-shadow:0 1px 0 var(--line);color:var(--ink);font-size:.9375rem;font-weight:700}
.y-combo.y-combo-lettered .y-combo-list{max-height:min(440px,60vh);padding-right:34px}
.y-combo.y-combo-lettered .y-combo-opt{scroll-margin-top:36px}
.y-combo>.y-az-list{position:absolute;right:4px;top:calc(100% + 10px);z-index:32;width:26px}
/* Drug cards: the same headings, pinned to the top of the sheet as it scrolls, and the index down its edge */
:root body .p-dialog .p-card-grid>.y-sec{position:sticky;top:calc(-1 * var(--y-sheet-pad,24px));z-index:3;margin:0;padding:12px 4px 6px;background:var(--panel);box-shadow:0 1px 0 var(--line);color:var(--muted);font-size:.8125rem;font-weight:600;line-height:1.3}
:root body .p-dialog .p-card-grid>.y-letter{color:var(--ink);font-size:.9375rem;font-weight:700}
.p-dialog>.y-az-list{position:sticky;top:12px;height:0;z-index:4;margin:0;width:100%}
.p-dialog>.y-az-list .y-az-strip{width:26px}
.p-dialog.y-cards-az .p-card-grid{padding-right:32px}
/* Interactions and Search: the group labels the library uses */
:root body #interaction-matches>.interaction-group{margin:12px 0 4px;padding:0 2px 4px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.8125rem;font-weight:600;line-height:1.3}
:root body #interaction-matches>.interaction-group:first-child{margin-top:4px}
@media(pointer:coarse){.y-combo>.y-az-list,.p-dialog>.y-az-list .y-az-strip{width:30px}.p-dialog.y-cards-az .p-card-grid{padding-right:34px}}
/* Search: its drug groups read like the library's headings, in sentence case */
:root body #x-spotlight-results>.x-results-label.x-az-group{text-transform:none;letter-spacing:0;font-size:.8125rem;font-weight:600;color:var(--muted)}
/* Drug cards: a long name wraps beside its disclosure arrow instead of dropping under it (seen on iPhone with the A–Z index) */
:root body .p-dialog .p-row summary>.p-row-line{flex:1 1 0;min-width:0}

/* ═══ A–Z as an accordion (Oct 25 2026) · Daniel: "all you see is the letters … they open" */
#drug-list>.drug-card[hidden]{display:none!important}
:root body #drug-list>.y-acc{display:flex;align-items:center;justify-content:space-between;width:calc(100% + 16px);min-height:52px;margin:0 -8px;padding:0 18px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:var(--y-fill);color:var(--ink);font:inherit;font-size:1.0625rem;font-weight:500;letter-spacing:0;text-align:left;cursor:pointer;position:sticky;top:var(--y-pin-h,56px);z-index:3}
:root body #drug-list>.y-acc:first-child{border-top:1px solid var(--line);border-radius:10px 10px 0 0}
:root body #drug-list>.y-acc:hover{background:var(--y-fill-2)}
:root body #drug-list>.y-acc:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
:root body #drug-list>.y-acc[aria-expanded=false]{position:static}   /* only an open letter stays pinned while its drugs scroll by */
:root body #drug-list>.y-acc[aria-expanded=true]{background:var(--panel);font-weight:700}
#drug-list>.y-acc .y-acc-chev{width:18px;height:18px;flex:none;color:var(--ink);transition:transform .2s ease}
#drug-list>.y-acc[aria-expanded=true] .y-acc-chev{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){#drug-list>.y-acc .y-acc-chev{transition:none}}
@media(pointer:coarse){:root body #drug-list>.y-acc{min-height:56px}}
/* the same letters in Drug cards and the drug field */
.p-dialog.y-cards-acc .p-card-grid{border-top:0}
:root body .p-dialog .p-card-grid>.y-acc{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;margin:0;padding:0 16px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:var(--y-fill);color:var(--ink);font:inherit;font-size:1.0625rem;font-weight:500;letter-spacing:0;line-height:1.3;text-align:left;cursor:pointer;position:static}
:root body .p-dialog .p-card-grid>.y-acc:first-child{border-top:1px solid var(--line);border-radius:10px 10px 0 0}
:root body .p-dialog .p-card-grid>.y-acc:hover{background:var(--y-fill-2)}
:root body .p-dialog .p-card-grid>.y-acc:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
:root body .p-dialog .p-card-grid>.y-acc[aria-expanded=true]{position:sticky;top:calc(-1 * var(--y-sheet-pad,24px));z-index:3;background:var(--panel);font-weight:700}
.p-dialog .p-card-grid>.y-acc .y-acc-chev{width:18px;height:18px;flex:none;transition:transform .2s ease}
.p-dialog .p-card-grid>.y-acc[aria-expanded=true] .y-acc-chev{transform:rotate(180deg)}
.p-dialog.y-cards-acc .p-card-grid>.p-row{padding-inline:4px}
.y-combo.y-combo-accordion .y-combo-list{padding:4px;max-height:min(440px,60vh)}
.y-combo-acc{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 12px;border-radius:8px;color:var(--ink);font-size:1rem;font-weight:500;cursor:pointer}
.y-combo-acc+.y-combo-acc{box-shadow:0 -1px 0 var(--line)}
.y-combo-acc:hover{background:var(--y-fill)}
.y-combo-acc[aria-expanded=true]{position:sticky;top:-4px;z-index:1;background:var(--panel);font-weight:700;box-shadow:0 1px 0 var(--line)}
.y-combo-acc[aria-selected=true]{background:var(--accent);color:var(--y-on-accent,#fff)}
.y-combo-acc .y-acc-chev{width:16px;height:16px;flex:none;transition:transform .2s ease}
.y-combo-acc[aria-expanded=true] .y-acc-chev{transform:rotate(180deg)}
.y-combo.y-combo-accordion .y-combo-opt{scroll-margin-top:48px}
@media(prefers-reduced-motion:reduce){.p-dialog .p-card-grid>.y-acc .y-acc-chev,.y-combo-acc .y-acc-chev{transition:none}}
@media(pointer:coarse){:root body .p-dialog .p-card-grid>.y-acc{min-height:56px}.y-combo-acc{min-height:48px}}
/* ═══ Dosages by species (Oct 25 2026) · Daniel: "like this" (Licensed Reference Dosages: a heading per species, a bold line per use) */
.reader .y-dosages{max-width:46rem}
.y-dosages .y-dl-note{margin:.25rem 0 0;color:var(--muted);font-size:.875rem;line-height:1.45}
.y-dosages .y-dl-hold{margin:.75rem 0 0;padding:.625rem .875rem;border-radius:10px;background:var(--warn-bg);color:var(--ink);font-size:.9375rem;line-height:1.45}
.y-dosages .y-dl-species{margin:1.5rem 0 .5rem;font-size:1.25rem;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.y-dosages .y-dl-none{margin:0;color:var(--muted);font-size:.9375rem}
.y-dosages .y-dl-uses{margin:0;padding-left:1.375rem;list-style:disc}
.y-dosages .y-dl-uses>li{margin:.5rem 0;font-size:1.0625rem;line-height:1.5;color:var(--ink)}
.y-dosages .y-dl-uses>li::marker{color:var(--accent)}
.y-dosages .y-dl-use{font-weight:600}
.y-dosages .y-dl-lines{margin:.25rem 0 0;padding-left:1.25rem;list-style:'\2013\00a0\00a0'}
.y-dosages .y-dl-lines>li{margin:.25rem 0;font-size:1.0625rem;line-height:1.5}
.y-dosages .y-dl-lines>li::marker{color:var(--muted)}
.y-dosages .y-dl-dose{font-variant-numeric:tabular-nums}
.y-dosages .y-dl-dot{color:var(--muted)}
.y-dosages .y-dl-held{display:inline-block;padding:.0625rem .5rem;border-radius:6px;background:var(--warn-bg);color:var(--ink);font-size:.9375rem;font-weight:500}
.y-dosages .y-dl-review{color:var(--muted);font-style:italic}
.y-dosages .y-dl-src{font-size:.8125rem;line-height:0;margin-left:.125rem}
.y-dosages .y-dl-src a{color:var(--accent);text-decoration:none;font-weight:600}
.y-dosages sup.y-dl-src:not(:has(a)){color:var(--muted);font-weight:600}
.y-dosages .y-dl-src a:hover,.y-dosages .y-dl-src a:focus-visible{text-decoration:underline}
.y-dosages .y-dl-tag{display:inline-block;margin-left:.25rem;padding:.0625rem .5rem;border-radius:999px;background:var(--y-fill);color:var(--muted);font-size:.8125rem;font-weight:600;vertical-align:.0625rem}
.y-dosages .y-dl-jump{font-size:.9375rem;color:var(--accent)}
.y-dosages .y-dl-foot{margin-top:1.25rem;padding-top:.75rem;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;align-items:baseline}
.y-dosages .y-dl-sources{margin:0;padding-left:1.25rem;color:var(--muted);font-size:.875rem;display:flex;flex-wrap:wrap;gap:.25rem 1.75rem}
.y-dosages .y-dl-sources a{color:var(--accent)}
.y-dosages .y-dl-src .y-sym-ext{display:none}   /* a source number reads like a citation, as in the references; the list below keeps the symbol */
/* ═══ One outline for every drug (Oct 25 2026) · Daniel: "Anything else to make it look this organized and easy to follow?" … "Just do it" */
/* 1 · the headings: the outline's headings lead, each section's own title sits under them */
.reader.y-outlined>.y-part{margin:1.25rem 0 .25rem;padding-top:1.25rem;border-top:1px solid var(--line);font-size:1.75rem;font-weight:700;letter-spacing:-.015em;line-height:1.2;color:var(--ink)}
.reader.y-outlined>.y-part:focus{outline:none}
.reader.y-outlined>.y-part:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}
.reader.y-outlined>section[data-y-section]{border-top:0;padding-top:0}
.reader.y-outlined>section[data-y-section] h3{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;line-height:1.3}
.reader.y-outlined>#dosages>h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}   /* the outline heading already says Dosages */
/* 3 and 4 · one heading row: title, evidence tag, More */
.reader .y-sec-head{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.5rem}
.reader .y-sec-title{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;align-items:center;column-gap:.625rem;row-gap:.25rem;min-height:36px}
.reader .y-sec-title>h3{flex:0 1 auto;min-width:0;margin:0}
.reader .y-sec-title>h3.y-same-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.reader .y-sec-title>.y-ev-tag{flex:0 1 auto;max-width:100%;overflow-wrap:anywhere;display:inline-block;margin:0;padding:.1875rem .5rem;border-radius:8px;background:var(--y-fill);color:var(--muted);font-size:.8125rem;font-weight:500;line-height:1.35;text-transform:none;letter-spacing:0}
.reader .y-sec-title>.y-ev-tag::first-letter{text-transform:uppercase}
.reader .y-sec-head>.y-sec-more{flex:none;display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--muted);cursor:pointer}
.reader .y-sec-head>.y-sec-more svg{width:20px;height:20px}
.reader .y-sec-head>.y-sec-more:hover,.reader .y-sec-head>.y-sec-more[aria-expanded=true]{background:var(--y-fill);color:var(--ink)}
.reader .y-sec-head>.y-sec-more:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.reader section[data-y-section]>:is(.x-inspect-section,.o-section-pin)[hidden]{display:none!important}
@media(pointer:coarse){.reader .y-sec-head>.y-sec-more{width:44px;height:44px}}
.reader.y-outlined>section[data-y-section]{padding-bottom:1rem;margin-bottom:1rem}
.reader.y-outlined{min-height:calc(100dvh - var(--y-page-cover,96px))}   /* a short tab still fills the window, so switching tabs never jumps the page */
.reader.y-outlined>section[data-y-section]:has(+.y-part){border-bottom:0}
/* 2 · the outline beside the text */
.reading-layout.y-side{display:grid!important;grid-template-columns:minmax(0,1fr) 10rem!important;column-gap:2rem;align-items:start}
.reading-layout.y-side>.reader{grid-column:1;min-width:0}
.reading-layout.y-side>.toc.y-outline{grid-column:2;grid-row:1;display:block!important;position:sticky;top:var(--y-page-cover,96px);max-height:calc(100dvh - var(--y-page-cover,96px) - 16px);overflow:auto;width:auto;margin:0;padding:.25rem 0 1rem;border:0;background:transparent}
.reading-layout.y-side>.toc.y-outline[hidden]{display:none!important}
.reading-layout:not(.y-side)>.toc.y-outline{display:none!important}
.toc.y-outline .eyebrow{margin:0 0 .5rem}
.y-outline-list{margin:0;padding:0;list-style:none}
.toc.y-outline .y-outline-list a{display:flex;align-items:center;min-height:32px;padding:.25rem .5rem;margin-left:-.5rem;border-radius:8px;color:var(--muted);font-size:.875rem;font-weight:500;line-height:1.25;text-decoration:none}
.toc.y-outline .y-outline-list a:hover{color:var(--ink);background:var(--y-fill)}
.toc.y-outline .y-outline-list a[aria-current=location]{color:var(--accent);font-weight:600;background:var(--selected)}
.toc.y-outline .y-outline-list li[hidden]{display:none}
.y-outline-sheet{display:grid;gap:2px}
.y-outline-sheet button{width:100%;min-height:48px;padding:0 1rem;border:0;border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-size:1.0625rem;text-align:left;cursor:pointer}
.y-outline-sheet button:hover,.y-outline-sheet button:focus-visible{background:var(--y-fill)}
/* the Find and Sections buttons in the section bar, when there's no room beside the text */
.y-section-nav .y-nav-tools{display:flex;align-items:center;gap:2px;margin-left:auto;padding:0 .25rem;flex:none;position:sticky;right:calc(var(--y-dock-w,48px) - var(--y-nav-pad,0px));z-index:1;background:var(--bg)}   /* always in view, beside the docked context, while the tabs scroll */
.y-section-nav .y-nav-tools+.y-island-dock{margin-left:0}
.y-section-nav .y-nav-tools{margin-right:-8px;padding:0 8px 0 14px;background:linear-gradient(to right,transparent,var(--bg) 12px)}   /* flush with the docked context: the tabs fade under them */
.y-section-nav.y-has-rail .y-nav-tools+.y-island-dock{margin-left:auto}
.y-section-nav.y-has-rail .y-nav-tools{display:none}
.y-section-nav .y-nav-tool{display:inline-grid;place-items:center;width:40px;height:40px;min-height:0;padding:0;border:0;border-radius:999px;background:transparent;color:var(--muted);cursor:pointer}
.y-section-nav .y-nav-tool svg{width:20px;height:20px}
.y-section-nav .y-nav-tool:hover,.y-section-nav .y-nav-tool[aria-expanded=true]{background:var(--y-fill);color:var(--ink)}
@media(pointer:coarse){.y-section-nav .y-nav-tool{width:44px;height:44px}}
/* 5 · find in this drug */
.y-find{display:flex;align-items:center;gap:.375rem;flex-wrap:wrap}
.y-find[hidden]{display:none}
.toc .y-find{margin:0 0 1rem}
.toc .y-find .y-find-field{flex:1 1 100%}
.y-section-nav+.y-find{position:sticky;top:calc(var(--y-page-cover,96px) - 8px);z-index:4;padding:.5rem 0;background:var(--bg);border-bottom:1px solid var(--line)}
.y-find-field{display:flex;align-items:center;gap:.375rem;flex:1 1 12rem;min-width:0;min-height:36px;padding:0 .625rem;border:1px solid var(--y-field-edge,var(--line));border-radius:10px;background:var(--panel);color:var(--muted)}
.y-find-field svg{width:16px;height:16px;flex:none}
.y-find-field input,.y-find-field input:focus{flex:1;min-width:0;width:auto;height:auto;min-height:0;margin:0;border:0!important;outline:0;box-shadow:none!important;border-radius:0;background:transparent!important;color:var(--ink);font:inherit;font-size:.9375rem;padding:.375rem 0}
.toc .y-find:not(.y-find-has) :is(.y-find-count,.y-find-step){display:none}   /* beside the text, the count and the arrows wait for a search */
.y-find-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--y-ring)}
.y-find-count{color:var(--muted);font-size:.8125rem;font-variant-numeric:tabular-nums;min-width:4.5rem}
.y-find-step,.y-find-done{display:inline-grid;place-items:center;min-width:32px;height:32px;padding:0 .375rem;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-size:.875rem;font-weight:600;cursor:pointer}
.y-find-step svg{width:18px;height:18px}
.y-find-step:hover,.y-find-done:hover{background:var(--y-fill)}
.toc .y-find-done{display:none}
@media(pointer:coarse){.y-find-step,.y-find-done{min-width:44px;height:44px}.y-find-field{min-height:44px}}
.reader mark.y-find-hit{background:var(--warn-bg);color:inherit;border-radius:3px;box-shadow:0 0 0 1px var(--warn-bg)}
.reader mark.y-find-hit.y-find-cur{background:#ffd60a;color:#1c1c1e;box-shadow:0 0 0 2px #ffd60a}   /* the current match, in the system find yellow */
/* 6 · under the drug's name */
.y-jumps{display:inline-flex;flex-wrap:wrap;gap:.375rem;margin:0 0 0 .5rem;padding-left:.75rem;border-left:1px solid var(--line);vertical-align:middle}
.y-jumps a{display:inline-flex;align-items:center;min-height:24px;padding:0 .625rem;border-radius:999px;background:transparent;color:var(--accent);font-size:.8125rem;font-weight:600;text-decoration:none}
.y-jumps a:hover{background:var(--y-fill-2)}
.y-jumps a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(pointer:coarse){.y-jumps a{min-height:44px}}
@media(max-width:760px){.y-jumps{display:flex;margin:.5rem 0 0;padding-left:0;border-left:0;flex-basis:100%}}
@media print{.y-jumps,.y-sec-more,.toc.y-outline,.y-nav-tools,.y-find{display:none!important}}
.y-section-nav+.y-find{flex-wrap:nowrap}
.y-section-nav+.y-find .y-find-field{flex:1 1 6rem}
.y-section-nav+.y-find .y-find-count{min-width:0;white-space:nowrap}
