@charset "UTF-8";
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:18px;color-scheme:light;--bg:#f6f5ef;--surface:#fffefa;--ink:#243e42;--muted:#687976;--line:#dce3dd;--soft:#eeefe7;--accent:#245f63;--accent-soft:#e5eeea;--gold:#ad9055;--red:#97433f;--red-bg:#faedeb;--red-line:#ecc8c2;--amber:#866020;--amber-bg:#fbf1df;--amber-line:#e9d6af;--shadow:0 8px 26px #173a3005;background:var(--bg);color:var(--ink)}
:root[data-theme="dark"]{color-scheme:dark;--bg:#152023;--surface:#1c2c2e;--ink:#e7eeea;--muted:#a9bbb5;--line:#34464a;--soft:#263b3d;--accent:#9ad3c5;--accent-soft:#29443e;--gold:#d9bd82;--red:#efb4ae;--red-bg:#422d2e;--red-line:#654447;--amber:#edcd92;--amber-bg:#3e3728;--amber-line:#665537;--shadow:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:default;opacity:.65}a{color:var(--accent);text-decoration:none}svg{display:block;width:24px;height:24px;flex:none}img{max-width:100%}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.025em}p{line-height:1.6}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}[hidden]{display:none!important}.skip-link{position:fixed;top:-80px;left:20px;background:var(--surface);padding:14px;z-index:200}.skip-link:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;padding:32px 20px 24px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;overflow-y:auto;z-index:20}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-size:1.07rem;letter-spacing:-.04em;font-weight:730;white-space:nowrap}.brand img{flex:none;border-radius:12px}.brand small{display:block;letter-spacing:.12em;font-size:.45rem;font-weight:650;color:var(--muted);margin-top:7px}.sidebar-label{font-size:.57rem;letter-spacing:.16em;font-weight:650;color:var(--muted);margin:48px 12px 13px}.side-nav{display:grid;gap:7px}.side-link{display:flex;align-items:center;gap:12px;padding:13px 14px;min-height:50px;border-radius:12px;color:var(--muted);font-size:.8rem}.side-link svg{width:22px;height:22px}.side-link.active{color:var(--accent);background:var(--accent-soft);font-weight:680}.nav-count{margin-left:auto;font-size:.65rem;border-radius:6px;background:var(--surface);padding:3px 6px}.sidebar-source{margin:35px 8px 20px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:.72rem}.sidebar-source strong{display:block;font-size:.7rem;font-weight:600;margin:9px 0}.sidebar-source>span:not(.source-dot){font-size:.9rem;font-weight:650;color:var(--accent)}.source-dot{display:block;width:23px;height:4px;border-radius:3px;background:var(--gold)}.sidebar-source p{font-size:.66rem;color:var(--muted);margin:10px 0 8px}.sidebar-source button{font-size:.66rem;color:var(--accent);padding:9px 0;text-align:left;min-height:40px}.sidebar-footer{margin:auto 10px 0;padding-top:30px;font-size:.61rem;line-height:1.9;color:var(--muted)}.sidebar-footer a{font-weight:600}.workspace{margin-left:270px;max-width:1700px}.topbar{height:86px;padding:15px 42px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--surface)}.desktop-context{font-size:.59rem;letter-spacing:.14em;font-weight:650;color:var(--muted)}.topbar-actions{display:flex;align-items:center;gap:20px}.icon-button{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);flex:none}.icon-button:hover{background:var(--soft)}.connection{font-size:.64rem;color:var(--muted);display:flex;align-items:center;gap:7px;line-height:1.3}.connection:before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:var(--gold)}.connection.ready:before{background:#618a72}.mobile-brand{display:none}main{padding:34px 42px 16px;outline:none}.hero{display:flex;align-items:center;justify-content:space-between;gap:26px;margin:0 0 29px}.eyebrow{font-size:.6rem;font-weight:700;letter-spacing:.15em;color:var(--accent);margin-bottom:14px}h1{font-size:2.15rem;line-height:1.18;letter-spacing:-.045em;font-weight:650}h1 span{color:var(--muted)}.hero-description{font-size:.85rem;line-height:1.55;color:var(--muted);margin-top:14px;max-width:520px}.hero-stat{padding-left:28px;border-left:1px solid var(--line);min-width:150px;display:flex;flex-direction:column;align-items:flex-end;gap:4px}.hero-stat strong{font-size:2.5rem;letter-spacing:-.05em;line-height:1.1;font-weight:550;color:var(--accent)}.hero-stat span{font-size:.7rem;line-height:1.5;color:var(--muted);text-align:right}.search-box{display:flex;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:11px 17px;min-height:63px;box-shadow:var(--shadow);color:var(--muted)}.search-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.search-box input{border:0;outline:none!important;width:100%;min-width:0;height:37px;background:transparent;color:var(--ink);font-size:.92rem}.search-box input::placeholder{color:var(--muted)}input[type="search"]::-webkit-search-cancel-button{display:none}.search-box kbd{white-space:nowrap;border:1px solid var(--line);border-radius:5px;font-family:inherit;font-size:.61rem;padding:4px 6px}.clear-search{font-size:1.4rem;min-width:40px;min-height:40px;border-radius:9px}.search-icon{display:flex}.filter-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:19px 0 15px}.type-switch{display:flex;gap:5px;padding:4px;border:1px solid var(--line);background:var(--soft);border-radius:12px}.type-switch button{min-height:39px;padding:8px 16px;border-radius:8px;font-size:.73rem;color:var(--muted);font-weight:550}.type-switch button[aria-pressed="true"]{color:var(--accent);background:var(--surface);box-shadow:0 2px 5px #17292308;font-weight:680}.filter-toggle{display:none;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:10px;min-height:44px;font-size:.7rem}.filter-toggle svg{width:18px;height:18px}.filter-toggle.has-filters{border-color:var(--accent);color:var(--accent)}.filters{display:flex;gap:12px;align-items:flex-end;margin-bottom:20px}.filters label{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px;font-size:.62rem;color:var(--muted);font-weight:600}.filters select{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:9px 28px 9px 12px;font-size:.7rem;text-overflow:ellipsis}.reset-filters{font-size:.7rem;color:var(--accent);min-height:44px;padding:8px}.source-notice{display:flex;align-items:flex-start;gap:9px;padding:13px 15px;background:var(--accent-soft);border-radius:11px;color:var(--muted);font-size:.67rem}.source-notice>span svg{width:17px;height:17px;margin-top:2px;color:var(--accent)}.source-notice p{line-height:1.6}.source-notice strong{font-weight:600;color:var(--ink)}.source-notice button{color:var(--accent);text-decoration:underline;text-underline-offset:3px;font-size:inherit;padding:0 2px;line-height:1.6}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:28px 0 17px}.results-heading h2{font-size:1.06rem;letter-spacing:-.02em}.results-heading>span{font-size:.68rem;color:var(--muted);text-align:right;line-height:1.4}.active-filters{display:flex;flex-wrap:wrap;gap:7px;margin:-4px 0 16px}.active-filters span{font-size:.64rem;line-height:1.4;border-radius:6px;padding:6px 9px;background:var(--accent-soft);color:var(--accent)}.med-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.med-card{border:1px solid var(--line);background:var(--surface);border-radius:16px;min-width:0;box-shadow:var(--shadow);position:relative;display:flex;flex-direction:column}.med-card:hover{border-color:#96b3aa}.med-open{display:flex;flex-direction:column;text-align:left;align-items:stretch;width:100%;padding:20px 52px 15px 20px;min-height:150px;border-radius:16px;flex:1}.card-name{font-size:1.03rem;font-weight:680;line-height:1.35;overflow-wrap:anywhere;letter-spacing:-.02em}.card-category{font-size:.65rem;line-height:1.5;color:var(--muted);margin-top:7px}.card-routes{font-size:.73rem;line-height:1.5;color:var(--accent);margin-top:12px}.card-tail{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-top:15px;font-size:.65rem;color:var(--muted)}.card-tail svg{width:16px;height:16px;color:var(--accent)}.card-badges{display:flex;flex-wrap:wrap;gap:6px;padding:0 18px 17px}.badge{display:inline-flex;align-items:center;gap:5px;font-size:.59rem;font-weight:600;line-height:1.4;border-radius:6px;border:1px solid var(--line);background:var(--soft);padding:5px 7px;color:var(--muted)}.badge svg{width:13px;height:13px;flex:none}.badge-restricted{border-color:var(--red-line);color:var(--red);background:var(--red-bg)}.badge-possible{border-color:var(--amber-line);color:var(--amber);background:var(--amber-bg)}.saved-button{position:absolute;right:8px;top:9px;display:grid;place-items:center;min-height:44px;min-width:44px;color:var(--muted);border-radius:11px}.saved-button:hover{background:var(--soft)}.saved-button svg{width:22px;height:22px}.saved-button[aria-pressed="true"]{color:var(--gold)}.saved-button[aria-pressed="true"] svg{fill:var(--gold);stroke:var(--gold)}.empty{grid-column:1/-1;text-align:center;padding:45px 22px;border:1px dashed var(--line);border-radius:16px;background:var(--surface)}.empty>svg{margin:0 auto 16px;width:32px;height:32px;color:var(--accent)}.empty h3{font-size:1rem}.empty p{color:var(--muted);font-size:.79rem;margin:10px auto 16px;max-width:440px}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:11px 17px;font-size:.78rem;font-weight:650;line-height:1.4;border-radius:11px}.primary-button{background:var(--accent);color:var(--surface);border:1px solid var(--accent)}.secondary-button{background:var(--surface);color:var(--accent);border:1px solid var(--line)}.secondary-button:hover{background:var(--soft)}.load-more-wrap{text-align:center;margin:25px 0 6px}.load-more-wrap p{font-size:.62rem;color:var(--muted);margin-top:10px}.page-footer{font-size:.64rem;line-height:1.7;color:var(--muted);padding:18px 42px 34px}.bottom-nav{display:none}.update-banner{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.78rem;padding:12px 20px;margin:20px 42px 0;background:var(--accent-soft);border:1px solid var(--line);border-radius:12px}.update-banner button{color:var(--accent);font-weight:700;min-height:42px}.toast{position:fixed;left:calc(50% + 135px);bottom:28px;transform:translateX(-50%);max-width:calc(100vw - 35px);width:max-content;border-radius:12px;background:var(--ink);color:var(--surface);padding:14px 19px;font-size:.76rem;line-height:1.5;text-align:center;z-index:250;box-shadow:0 8px 28px #0002}.noscript{padding:30px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
dialog{color:var(--ink);border:1px solid var(--line);background:var(--bg);padding:0;max-height:94dvh;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 90px #0003}dialog::backdrop{background:#15282866;backdrop-filter:blur(3px)}.settings-dialog{width:min(720px,calc(100vw - 40px));border-radius:20px}.dialog-sticky{position:sticky;top:0;z-index:3;background:var(--surface);border-bottom:1px solid var(--line);padding:16px 26px;display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-eyebrow{font-size:.59rem;font-weight:650;letter-spacing:.14em;color:var(--muted)}.dialog-sticky .icon-button{font-size:1.5rem;font-weight:300;line-height:1}.dialog-sticky h2{font-size:1.14rem}.dialog-content{padding:27px}.detail-title-row{display:flex;gap:15px;align-items:flex-start;justify-content:space-between}.detail-title-row h2{font-size:1.65rem;line-height:1.25;overflow-wrap:anywhere;letter-spacing:-.035em}.detail-title-row .saved-button{position:static;border:1px solid var(--line);background:var(--surface);flex:none}.detail-category{font-size:.74rem;color:var(--muted);line-height:1.55;margin-top:12px}.detail-subtitle{font-size:.8rem;line-height:1.6;margin-top:16px;color:var(--muted)}.detail-routes{display:flex;flex-wrap:wrap;gap:7px;margin:19px 0}.route-chip{display:flex;align-items:center;gap:6px;padding:7px 10px;font-size:.65rem;line-height:1.4;border:1px solid var(--line);border-radius:8px;color:var(--accent);background:var(--surface)}.route-chip svg{width:16px;height:16px}.detail-note{font-size:.71rem;color:var(--muted);line-height:1.65;padding:14px 15px;background:var(--accent-soft);border-radius:10px;margin:16px 0 23px}.detail-note strong{color:var(--ink);font-weight:600}.product-count{font-size:.8rem;font-weight:650;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:24px 0 13px}.product-count button{font-size:.68rem;color:var(--accent);font-weight:550;text-decoration:underline;text-underline-offset:3px;min-height:40px}.product-list{display:grid;gap:13px}.product{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px}.product-title{font-size:.96rem;line-height:1.45;letter-spacing:-.015em;overflow-wrap:anywhere;font-weight:650}.product-tags{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}.form-tag{font-size:.66rem;color:var(--accent);background:var(--accent-soft);padding:6px 8px;border-radius:7px;display:inline-flex;align-items:center;gap:6px;line-height:1.4}.form-tag svg{width:16px;height:16px}.restriction-line{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:14px 0 10px}.restriction-line .badge{font-size:.64rem}.unrecorded{font-size:.66rem;color:var(--muted);display:flex;align-items:center;gap:6px}.unrecorded svg{width:15px;height:15px}.restriction-detail{font-size:.74rem;line-height:1.65;margin:9px 0;color:var(--ink);white-space:pre-line;padding:10px 12px;border-radius:8px;background:var(--red-bg);border-left:3px solid var(--red-line)}.product.possible .restriction-detail{background:var(--amber-bg);border-color:var(--amber-line)}.pharmacy-label{font-size:.61rem;color:var(--muted);margin:16px 0 8px;letter-spacing:.06em;font-weight:600;text-transform:uppercase}.pharmacy-chips{display:flex;gap:6px;flex-wrap:wrap}.pharmacy-chips span{font-size:.63rem;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:5px 7px;line-height:1.4}.product-note{font-size:.72rem;line-height:1.6;color:var(--amber);margin-top:13px;white-space:pre-line;padding:10px 12px;border-radius:8px;background:var(--amber-bg)}details{margin-top:13px}summary{font-size:.7rem;min-height:40px;cursor:pointer;color:var(--accent);font-weight:600;line-height:1.5;padding:9px 0}details p{font-size:.72rem;line-height:1.65;color:var(--muted);margin:7px 0;overflow-wrap:anywhere}details code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.68rem;overflow-wrap:anywhere}details a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.source-row{font-size:.6rem;color:var(--muted);margin-top:13px}.crush-guidance{margin-top:15px;border-top:1px solid var(--line);padding-top:13px}.crush-summary{display:flex;align-items:flex-start;gap:8px;font-size:.7rem;line-height:1.5;color:var(--muted)}.crush-summary svg{width:18px;height:18px;flex:none;margin-top:1px}.crush-guidance.do-not-crush .crush-summary{color:var(--red)}.crush-guidance.may-crush .crush-summary,.crush-guidance.open-capsule .crush-summary{color:var(--accent)}.crush-guidance details{margin-top:3px}.crush-guidance .source-links{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}.crush-guidance .source-links a{font-size:.68rem;min-height:36px;line-height:1.5;display:inline-flex;align-items:center;gap:5px;color:var(--accent)}.crush-guidance .source-links svg{width:13px;height:13px}.settings-section{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:14px;margin-bottom:15px;scroll-margin-top:95px}.settings-section:last-child{margin-bottom:0}.settings-section h3{display:flex;align-items:center;gap:9px;font-size:1rem;margin-bottom:12px}.settings-section h3 svg{width:20px;height:20px;color:var(--accent)}.settings-section p{font-size:.76rem;line-height:1.7;color:var(--muted);margin:10px 0}.settings-section strong{font-weight:650;color:var(--ink)}.setting-label{display:block;font-size:.7rem;color:var(--muted);font-weight:600;margin:17px 0 9px}.segmented{display:flex;gap:4px;background:var(--soft);border-radius:11px;padding:4px}.segmented button{flex:1;min-height:43px;padding:8px;font-size:.73rem;border-radius:8px}.segmented button[aria-pressed="true"]{background:var(--surface);color:var(--accent);font-weight:650}.font-range{display:flex;align-items:center;gap:14px}.font-range input{width:100%;accent-color:var(--accent);min-height:44px}.font-range output{min-width:45px;color:var(--accent);font-size:.75rem;text-align:right}.settings-section ul,.settings-section ol{font-size:.76rem;line-height:1.75;color:var(--muted);padding-left:21px}.settings-section li+li{margin-top:8px}.legend-item{display:grid;grid-template-columns:1fr;gap:6px;margin-top:17px}.legend-item .badge{justify-self:start;font-size:.65rem}.legend-item p{margin:0}.source-definition{display:grid;grid-template-columns:1fr auto;gap:10px 16px;font-size:.72rem;line-height:1.5;margin:17px 0}.source-definition dt{color:var(--muted)}.source-definition dd{margin:0;text-align:right;font-weight:600;max-width:250px}.source-filename{font-size:.66rem!important;overflow-wrap:anywhere}.button-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.update-status{font-size:.7rem!important}.settings-version{font-size:.61rem!important;margin-top:17px!important}.settings-section small{font-size:.65rem;color:var(--muted);line-height:1.5}.fatal-error{padding:25px;border:1px solid var(--amber-line);border-radius:14px;background:var(--amber-bg);grid-column:1/-1}.fatal-error h2{font-size:1.1rem}.fatal-error p{font-size:.8rem;margin-top:10px}
/* Category and division browsing follows the Clinic Pocket card layout. */
.browse-directory{min-width:0;margin:0 0 22px}
.directory-section-title{font-size:.83rem;line-height:1.45;font-weight:650;color:var(--muted);margin:25px 0 13px;overflow-wrap:anywhere}
.directory-section-title:first-child{margin-top:0}
.directory-help{font-size:.76rem;line-height:1.6;color:var(--muted);margin:0 0 17px;max-width:760px}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:0}
.division-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
.category-tile{position:relative;min-width:0;display:flex}
.category-tile>.category-card{width:100%;height:100%}
.category-tile .category-top{padding-right:44px}
.category-tile .category-count{max-width:none}
.category-tile .category-save{right:9px;top:9px;z-index:1;min-width:44px;min-height:44px}
.category-tile .category-save:focus-visible{outline-offset:0}
.category-card,.division-card{min-width:0;min-height:44px;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:21px;color:var(--ink);box-shadow:var(--shadow);text-align:left}
.category-card{display:flex;flex-direction:column;min-height:198px}
.category-card:hover,.division-card:hover{border-color:var(--accent);background:var(--accent-soft)}
.category-card:focus-visible,.division-card:focus-visible{outline:3px solid var(--gold);outline-offset:4px;border-color:var(--accent)}
.category-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:19px;min-width:0}
.category-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:14px;background:var(--category-soft,var(--accent-soft));color:var(--category-tone,var(--accent))}
.category-icon svg{width:27px;height:27px}
.category-tile.tone-blue{--category-tone:#376c99;--category-soft:#e9f2fa}
.category-tile.tone-teal{--category-tone:#256f68;--category-soft:#e4f3ee}
.category-tile.tone-violet{--category-tone:#73559b;--category-soft:#f0ebf7}
.category-tile.tone-sage{--category-tone:#52734a;--category-soft:#edf3e9}
.category-tile.tone-ochre{--category-tone:#826332;--category-soft:#f7f0e3}
.category-tile.tone-slate{--category-tone:#586d7e;--category-soft:#eaf0f4}
.category-tile.tone-cyan{--category-tone:#2b7186;--category-soft:#e6f2f6}
:root[data-theme="dark"] .category-tile.tone-blue{--category-tone:#99c5ee;--category-soft:#263b4d}
:root[data-theme="dark"] .category-tile.tone-teal{--category-tone:#96d5c4;--category-soft:#253f3b}
:root[data-theme="dark"] .category-tile.tone-violet{--category-tone:#c3ace8;--category-soft:#3a3048}
:root[data-theme="dark"] .category-tile.tone-sage{--category-tone:#b7cf9d;--category-soft:#303f2e}
:root[data-theme="dark"] .category-tile.tone-ochre{--category-tone:#dfc089;--category-soft:#463c2b}
:root[data-theme="dark"] .category-tile.tone-slate{--category-tone:#b4c6d4;--category-soft:#303d47}
:root[data-theme="dark"] .category-tile.tone-cyan{--category-tone:#9cd6e5;--category-soft:#263e46}
.category-count{min-width:0;max-width:calc(100% - 54px);font-size:.64rem;line-height:1.45;font-weight:600;color:var(--muted);background:var(--soft);padding:5px 8px;border-radius:7px;text-align:right;overflow-wrap:anywhere}
.category-card h3,.division-card h3{font-size:1rem;font-weight:650;line-height:1.35;letter-spacing:-.02em;overflow-wrap:anywhere}
.category-card p,.division-card p{font-size:.72rem;line-height:1.55;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}
.category-tail{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:.68rem;line-height:1.45;color:var(--accent);margin-top:auto;padding-top:17px}
.category-tail svg{width:18px;height:18px}
.division-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:15px;align-content:center;min-height:112px}
.division-card h3,.division-card p{grid-column:1}
.division-card>svg,.division-card>.category-tail{grid-column:2;grid-row:1 / span 2;align-self:center;width:18px;height:18px;color:var(--accent);margin:0;padding:0}
.browse-path{display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;font-size:.72rem;line-height:1.55;color:var(--muted);margin:0 0 15px;min-width:0}
.browse-path a{display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:100%;padding-block:5px;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.browse-path a svg{width:16px;height:16px}
.browse-path span{min-width:0;overflow-wrap:anywhere}
.browse-path [aria-current="page"]{color:var(--ink);font-weight:600}
.browse-actions{display:flex;flex-wrap:wrap;gap:8px 14px;margin:0 0 17px}
.browse-actions a{display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;padding:9px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:.74rem;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.browse-actions a:hover{background:var(--accent-soft);border-color:var(--accent)}
.browse-actions a svg{width:17px;height:17px}
@media(max-width:1350px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Disclosure groups remain a single reading column, even when medicine cards sit side by side. */
.group-controls{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:0 0 18px}
.group-controls .secondary-button{min-width:0;min-height:46px;max-width:100%;font-size:.75rem;padding:10px 14px;text-align:center;white-space:normal;overflow-wrap:anywhere}
.group-controls .secondary-button svg{width:18px;height:18px}
.group-controls-help{flex-basis:100%;font-size:.72rem;line-height:1.55;color:var(--muted);margin:0}
.division-accordion{min-width:0;margin:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);scroll-margin-top:82px}
.division-accordion>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center;min-height:94px;margin:0;padding:20px 22px;color:var(--ink);list-style:none;border-radius:15px;cursor:pointer}
.division-accordion>summary::-webkit-details-marker{display:none}
.division-accordion>summary::marker{content:""}
.division-accordion>summary:hover{background:var(--accent-soft)}
.division-accordion>summary:focus-visible{outline-offset:2px}
.division-heading{grid-column:1;font-size:1rem;font-weight:650;line-height:1.4;letter-spacing:-.02em;overflow-wrap:anywhere}
.division-count{grid-column:1;font-size:.72rem;font-weight:400;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.division-accordion>summary>svg{grid-column:2;grid-row:1 / span 2;width:21px;height:21px;color:var(--accent)}
.division-accordion[open]>summary{border-bottom:1px solid var(--line);border-radius:15px 15px 0 0;background:var(--accent-soft)}
.division-accordion[open]>summary>svg{transform:rotate(90deg)}
.division-medicines{padding:16px;min-width:0;background:var(--bg);border-radius:0 0 15px 15px}
.division-medicines>.med-list{min-width:0}
.division-medicines .med-card{box-shadow:none}
#saved-categories{min-width:0;margin-bottom:28px}
.saved-categories-title{margin:0 0 15px}
.saved-categories-title h2,.saved-categories-title h3{font-size:1.03rem;line-height:1.4}
.saved-categories-title p{font-size:.76rem;line-height:1.6;color:var(--muted);margin-top:6px;max-width:720px}
@media(min-width:1650px){.med-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1180px){.sidebar{width:242px;padding-inline:16px}.brand{font-size:.97rem;gap:9px}.brand img{width:44px;height:44px}.workspace{margin-left:242px}.topbar{padding-inline:28px}main{padding-inline:28px}.hero-stat{min-width:125px;padding-left:19px}.hero-stat strong{font-size:2.1rem}h1{font-size:1.97rem}.med-list{grid-template-columns:1fr}.page-footer{padding-inline:28px}.toast{left:calc(50% + 121px)}.update-banner{margin-inline:28px}}
@media(max-width:800px){.sidebar{display:none}.workspace{margin:0;padding-bottom:calc(79px + env(safe-area-inset-bottom))}.topbar{height:auto;min-height:87px;padding:calc(15px + env(safe-area-inset-top)) 20px 15px;background:var(--bg);border:0;gap:10px}.desktop-context{display:none}.mobile-brand{display:flex;font-size:1.05rem;gap:9px}.brand small{font-size:.4rem;letter-spacing:.1em;margin-top:6px}.brand img{width:42px;height:42px}.topbar-actions{gap:7px}.topbar-actions>.icon-button{border:0;background:transparent;min-width:36px}.connection{font-size:.52rem;max-width:78px;gap:5px;line-height:1.4}.connection:before{width:5px;height:5px}.connection.ready{max-width:78px}main{padding:15px 20px}.hero{margin-bottom:24px;gap:12px}.eyebrow{font-size:.55rem;margin-bottom:12px}h1{font-size:1.78rem;line-height:1.2;letter-spacing:-.04em}.hero-description{font-size:.79rem;margin-top:12px;max-width:450px}.hero-stat{display:none}.search-box{min-height:58px;padding:8px 12px;gap:10px;border-radius:13px}.search-box input{font-size:.83rem;min-height:38px}.search-box svg{width:21px;height:21px}.search-box kbd{display:none}.search-wrap{position:sticky;top:0;z-index:8;background:var(--bg);padding-block:6px;margin-block:-6px}.filter-toolbar{margin-top:19px;gap:8px;margin-bottom:14px}.type-switch{gap:2px;flex:1;max-width:340px}.type-switch button{padding:8px 10px;font-size:.66rem;flex:1;white-space:nowrap}.filter-toggle{display:flex;font-size:0;gap:0;min-width:44px}.filter-toggle svg{width:21px;height:21px}.filters{display:none;margin:0 0 17px;gap:12px;flex-wrap:wrap;background:var(--soft);padding:14px;border-radius:12px}.filters.is-open{display:flex}.filters label{flex:1 1 45%;font-size:.64rem}.filters label:first-child{flex-basis:100%}.filters select{font-size:.69rem;min-height:44px}.reset-filters{margin-left:auto;min-height:35px;padding:4px}.source-notice{padding:11px 12px;font-size:.64rem;gap:8px}.source-notice>span svg{width:16px;height:16px}.results-heading{margin:24px 0 15px;align-items:flex-start}.results-heading h2{font-size:1.01rem}.results-heading>span{font-size:.65rem;max-width:170px}.med-list{gap:11px}.med-open{padding:18px 51px 14px 17px;min-height:142px}.card-name{font-size:1.02rem}.card-category{font-size:.68rem;margin-top:7px}.card-routes{font-size:.73rem}.card-tail{font-size:.67rem;margin-top:14px}.card-badges{padding:0 16px 15px}.badge{font-size:.62rem}.active-filters span{font-size:.64rem}.page-footer{padding:12px 20px 22px;font-size:.62rem}.bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;min-height:76px;padding:7px 14px calc(8px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);z-index:25;gap:8px}.bottom-link{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:55px;border-radius:10px;font-size:.6rem;color:var(--muted)}.bottom-link svg{width:23px;height:23px}.bottom-link.active{color:var(--accent);background:var(--accent-soft);font-weight:650}.toast{left:50%;bottom:calc(93px + env(safe-area-inset-bottom));font-size:.74rem}.update-banner{margin:0 20px 8px;padding:10px 13px;font-size:.71rem}.settings-dialog{width:100vw;height:94dvh;max-height:94dvh;border-radius:19px 19px 0 0;margin:auto 0 0;border-left:0;border-right:0;border-bottom:0}.dialog-sticky{padding:13px 19px}.dialog-sticky h2{font-size:1.09rem}.dialog-content{padding:22px 19px calc(30px + env(safe-area-inset-bottom))}.detail-title-row h2{font-size:1.55rem}.detail-category{font-size:.74rem}.detail-subtitle{font-size:.79rem}.detail-note{font-size:.73rem}.product{padding:18px 16px}.product-title{font-size:.97rem}.product-tags{gap:6px}.form-tag{font-size:.67rem}.product-note,.restriction-detail{font-size:.76rem}.unrecorded{font-size:.68rem}.product-count{font-size:.82rem}.pharmacy-label{font-size:.62rem}.pharmacy-chips span{font-size:.66rem}summary{font-size:.74rem}.crush-summary{font-size:.74rem}.crush-guidance .source-links a{min-height:40px}.settings-section{padding:20px 17px}.settings-section p,.settings-section ul,.settings-section ol{font-size:.79rem}.source-definition{font-size:.71rem;grid-template-columns:1fr;gap:5px}.source-definition dd{text-align:left;max-width:none;margin-bottom:7px}.settings-section h3{font-size:1rem}}
@media(max-width:380px){.topbar{padding-inline:15px}.mobile-brand{font-size:.94rem;gap:7px}.brand img{width:39px;height:39px}.connection{max-width:65px;font-size:.48rem}.topbar-actions{gap:2px}main{padding-inline:15px}.type-switch button{padding-inline:8px;font-size:.62rem}.search-box input{font-size:.78rem}h1{font-size:1.63rem}.hero-description{font-size:.76rem}.dialog-content{padding-inline:15px}.filters label{flex-basis:100%}}
@media(max-width:800px){
  .category-grid,.division-grid{gap:11px}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  .category-card{padding:14px;min-height:190px;justify-content:flex-start}
  .category-tile>.category-card{height:auto}
  .category-tile .category-top{display:contents}
  .category-icon{order:0;width:42px;height:42px;border-radius:12px;margin:0 0 15px}
  .category-icon svg{width:26px;height:26px}
  .category-tile .category-save{right:5px;top:7px}
  .category-card h3{order:1;font-size:.88rem;line-height:1.35;hyphens:auto}
  .category-count{order:2;align-self:flex-start;max-width:none;font-size:.66rem;line-height:1.45;font-weight:500;text-align:left;margin-top:8px;padding:0;background:transparent}
  .category-card p{display:none}
  .category-tail{order:3;justify-content:space-between;font-size:.65rem;line-height:1.45;padding-top:15px}
  .category-tail svg{width:16px;height:16px}
  .division-card{padding:18px 17px}
  .division-card h3{font-size:1rem}
  .division-card p{font-size:.75rem}
  .group-controls{gap:8px;margin-bottom:15px}
  .group-controls .secondary-button{flex:1 1 calc(50% - 4px);padding:10px 9px;font-size:.72rem;min-height:48px}
  .group-controls-help{font-size:.73rem}
  .division-accordion>summary{padding:17px 16px;min-height:94px;gap:6px 12px}
  .division-heading{font-size:.96rem}
  .division-count{font-size:.73rem}
  .division-medicines{padding:11px}
  .division-medicines .med-open{padding-left:14px}
  .saved-categories-title p{font-size:.75rem}
  .directory-section-title{font-size:.86rem;margin-top:23px}
  .directory-help{font-size:.76rem}
  .browse-path{font-size:.73rem;gap:1px 7px}
  .browse-actions a{font-size:.75rem}
  .bottom-nav{gap:4px;padding-inline:8px}
  .bottom-link{min-width:0;padding:5px 2px;text-align:center;line-height:1.25;overflow-wrap:normal;word-break:normal}
  .workspace{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
  .toast{bottom:calc(112px + env(safe-area-inset-bottom))}
  .mobile-brand{white-space:normal;min-width:0;flex:1;line-height:1.25}
  .mobile-brand>span{min-width:0}
  .topbar-actions{flex:none}
  .hero>div:first-child{min-width:0}
  .hero h1,.results-heading h2{overflow-wrap:anywhere}
}
@media(max-width:380px){.category-grid{gap:9px}.category-card{padding:12px;min-height:182px}.category-card h3{font-size:.86rem}.category-tile .category-save{right:3px;top:5px}.category-icon{margin-bottom:13px}.category-count,.category-tail{font-size:.63rem}}
@media(prefers-reduced-motion:no-preference){.category-card,.division-card,.browse-actions a,.division-accordion>summary{transition:background .15s,border-color .15s}.division-accordion>summary>svg{transition:transform .15s}}
@media(prefers-reduced-motion:no-preference){.med-card,.icon-button,.secondary-button{transition:background .15s,border-color .15s}.settings-dialog[open]{animation:appear .16s ease-out}@keyframes appear{from{opacity:.4;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}}
.guidance-scope,.guidance-detail{font-size:.72rem;line-height:1.65;color:var(--muted);margin:9px 0 0}.guidance-scope{font-weight:600;color:var(--ink)}.product-note a{text-decoration:underline;text-underline-offset:3px}
@media print{.sidebar,.topbar,.hero,.search-wrap,.filter-toolbar,.filters,.bottom-nav,.toast,.page-footer,.update-banner,.saved-button{display:none!important}.workspace{margin:0;padding:0}main{padding:0}.med-list{grid-template-columns:1fr}.med-card{break-inside:avoid}.settings-dialog[open]{position:static;width:100%;height:auto;max-height:none;box-shadow:none;border:0}body:has(dialog[open])>.workspace{display:none}.dialog-sticky{position:static}.dialog-sticky button{display:none}.product{break-inside:avoid}}

/* Product-specific administration disclosure. */
.crush-guidance>summary.crush-summary{min-height:44px;align-items:center;cursor:pointer;list-style:none;font-weight:600;padding:7px 0}
.crush-guidance>summary::-webkit-details-marker{display:none}
.crush-expand{margin-left:auto;font-size:1.15rem;min-width:24px;text-align:center;color:var(--accent)}
.crush-guidance[open] .crush-expand{transform:rotate(45deg)}
.crush-body{padding:4px 0 8px}
.pharmacist-check,.method-warning{font-size:.74rem;line-height:1.65;margin:8px 0;padding:12px;border-radius:9px;background:var(--accent-soft);color:var(--ink)}
.method-warning{background:var(--amber-bg);color:var(--amber)}
.administration-reference{margin-top:16px;padding-top:13px;border-top:1px solid var(--line)}
.administration-reference h4{font-size:.76rem;line-height:1.5;margin:0;color:var(--ink)}
.crush-body a{overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
@media print{.browse-path,.browse-actions,.group-controls,.crush-expand{display:none!important}.crush-body{display:block!important}.category-tile,.division-accordion{break-inside:avoid}.division-accordion>summary{min-height:auto}.category-card{aspect-ratio:auto}.category-card p{display:block}}

.division-groups{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.group-controls-help #group-expansion-status{display:block;margin-top:4px}.formulation-context{font-size:.74rem;line-height:1.6;color:var(--muted);margin:-8px 0 16px}#setting-team h4{font-size:.76rem;margin:18px 0 6px;color:var(--ink)}

/* Medicine details use the document page and scroll, with their own Back control. */
.medicine-page{max-width:920px;margin-inline:auto;min-width:0}
.medicine-page-toolbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;margin:-12px 0 25px;background:var(--bg);border-bottom:1px solid var(--line)}
.medicine-back{flex:none;min-height:46px;padding:9px 15px;gap:8px}
.medicine-back svg{width:18px;height:18px}
.medicine-page-toolbar .dialog-eyebrow{text-align:right;line-height:1.5}
.medicine-page-content{min-width:0;padding-bottom:18px}
.detail-title-row h1{font-size:1.8rem;line-height:1.25;overflow-wrap:anywhere;letter-spacing:-.035em}
@media(max-width:800px){.medicine-page-toolbar{padding-top:max(10px,env(safe-area-inset-top));margin-top:-10px;margin-bottom:21px;gap:12px}.medicine-back{font-size:.8rem;min-height:46px}.medicine-page-toolbar .dialog-eyebrow{font-size:.56rem;max-width:150px}.detail-title-row h1{font-size:1.6rem}}
@media print{.medicine-page-toolbar{display:none!important}.medicine-page{max-width:none}.medicine-page-content{padding:0}}

.local-guide-credit strong{color:var(--ink);font-weight:650}
