/* Shared reading layer. Clinical state colours and evidence gates stay distinct. */
:root{
  --ink:#1d3328;
  --muted:#52665a;
  --green:#24563d;
  --green-dark:#173f2c;
  --green-soft:#edf4ee;
  --line:#ccd8cf;
  --border:#ccd8cf;
  --paper:#fff;
  --white:#fff;
  --wash:#f2f5f1;
  --bg:#f2f5f1;
  --amber:#76520f;
  --red:#923b32;
  --radius:14px;
  --reading-focus:#1c6482;
}
html{font-size:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:16px;line-height:1.65;background:var(--wash);color:var(--ink)}
button,input,select,textarea{font-family:inherit}
button,a,summary{-webkit-tap-highlight-color:rgba(36,86,61,.12);touch-action:manipulation}
a{text-underline-offset:3px;text-decoration-thickness:1px}
:is(#master-app,#staging-app,#app,.install-shell,.page-header) :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--reading-focus);outline-offset:3px}
:is(#master-app,#staging-app,#app) :is(h1,h2,h3,h4,p,li,dd,td,th){overflow-wrap:anywhere}
:is(#master-app,#staging-app) .main{min-width:0}
:is(#master-app,#staging-app) .content{max-width:1440px;padding:32px clamp(20px,2.5vw,40px) 72px}
#master-app [data-tumour-layout]>.main .content{max-width:1440px;padding:32px clamp(20px,2.5vw,40px) 72px}
:is(#master-app,#staging-app) h1,#app .main-content h1{font-size:clamp(28px,2.1vw,36px);line-height:1.2;letter-spacing:-.035em;font-weight:720}
:is(#master-app,#staging-app) h2,#app .main-content h2{font-size:22px;line-height:1.35;letter-spacing:-.015em}
:is(#master-app,#staging-app) h3,#app .main-content h3{font-size:18px;line-height:1.45}
:is(#master-app,#staging-app) h4,#app .main-content h4{font-size:16px;line-height:1.5}
:is(#master-app,#staging-app) .intro,#app .page-intro>div>p:last-child{font-size:16px;line-height:1.65;color:var(--muted);max-width:78ch}
:is(#master-app,#staging-app) .eyebrow,#app .eyebrow{font-size:12px;line-height:1.5;letter-spacing:.09em;color:var(--green);font-weight:700}

/* Application navigation. Selected locations remain visually different from clinical findings. */
:is(#master-app,#staging-app) .rail{background:#fff;border-color:var(--line)}
:is(#master-app,#staging-app) .brand{font-size:21px;line-height:1.3;letter-spacing:-.04em;gap:10px}
:is(#master-app,#staging-app) .brand small{font-size:10px;letter-spacing:.08em;line-height:1.5;color:var(--muted)}
:is(#master-app,#staging-app) .workspace{font-size:13px;line-height:1.6;margin:24px 6px}
:is(#master-app,#staging-app) .workspace strong{font-size:14px}
:is(#master-app,#staging-app) .rail .nav{font-size:14px;line-height:1.45;padding:12px;min-height:46px;border-radius:8px;color:#3f5949}
:is(#master-app,#staging-app) .rail .nav.active{background:#e7f0e7;color:#173f2c;font-weight:700;box-shadow:inset 3px 0 var(--green)}
:is(#master-app,#staging-app) .rail .nav:hover{background:#eef4eb}
:is(#master-app,#staging-app) .rail>.fine{font-size:13px;line-height:1.6;color:var(--muted)}
#master-app .reference-nav{margin:20px 0 0;padding:0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
#master-app .reference-nav>summary{padding:12px 8px;min-height:44px;font-size:13px;line-height:1.5;color:var(--muted)}
#master-app .reference-nav:not([open]) .old-links{display:none}
#master-app .reference-nav[open] .old-links{display:grid;gap:4px;padding:0 0 8px}
#master-app .reference-nav[open]>summary{margin-bottom:0}
:is(#master-app,#staging-app) .topbar{height:auto;min-height:60px;padding:12px clamp(20px,2.5vw,40px);gap:8px 20px;flex-wrap:wrap;border-color:var(--line);background:#fff}
:is(#master-app,#staging-app) .topbar :is(span,a){font-size:13px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
:is(#master-app,#staging-app) .topbar a{color:var(--green);min-height:36px;display:inline-flex;align-items:center;text-decoration:underline}
#master-app .tumour-rail,#staging-app .staging-directory{background:#f8faf7;border-color:var(--line);padding:24px 12px 18px}
#master-app .tumour-directory-heading h2,#staging-app .staging-directory-heading h2{font-size:15px;line-height:1.5}
#master-app .tumour-directory-heading>span,#staging-app .staging-directory-heading>span{font-size:13px;color:var(--muted)}
#master-app .tumour-directory-heading{flex-shrink:0}
#master-app .tumour-stream-list{gap:6px;min-height:0;grid-auto-rows:max-content;align-content:start;scrollbar-color:#aebeb1 transparent}
#master-app .tumour-stream-link{display:block;height:auto;min-height:52px;max-height:none;align-self:start;white-space:normal;overflow:visible;padding:11px 10px;border-radius:8px;color:#354f3f}
#master-app .tumour-stream-link>span{font-size:14px;line-height:1.45;font-weight:650}
#master-app .tumour-stream-link>small{font-size:12px;line-height:1.5;margin-top:3px;color:#5a6e5f}
#master-app .tumour-stream-link.active{background:#e2eee2;border-color:#a8bfa9;color:#163f29}
#master-app .tumour-stream-link.active>small{color:#3e6149}

/* A single, readable control scale across search, results and detail pages. */
:is(#master-app,#staging-app) :is(.button,.access-option,.filter-chip,.card-actions>summary,.record-shortcuts a,.record-shortcuts .button){min-height:44px;font-size:14px;line-height:1.45;padding:10px 13px;border-radius:8px}
:is(#master-app,#staging-app) .button{border-color:#b9cbbd}
:is(#master-app,#staging-app) .button.primary{background:var(--green);border-color:var(--green);color:#fff}
:is(#master-app,#staging-app) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;line-height:1.5;color:var(--ink);border-color:#aebfaf;min-height:46px;max-width:100%;border-radius:8px}
:is(#master-app,#staging-app) input::placeholder,:is(#master-app,#staging-app) textarea::placeholder{color:#63756a;opacity:1}
:is(#master-app,#staging-app) :is(input,select,textarea):disabled{background:#edf1ec;color:#596c5e;opacity:1}
:is(#master-app,#staging-app) input:is([type=checkbox],[type=radio]){accent-color:var(--green);width:19px;height:19px;vertical-align:middle;flex-shrink:0}
:is(#master-app,#staging-app) .field{gap:7px;min-width:0}
:is(#master-app,#staging-app) .field>span{font-size:14px;line-height:1.5;color:#3f5847;font-weight:650}
#master-app .finder-search,#master-app .finder-search.search{min-height:52px;font-size:16px;background:#fff;border:1px solid #9fb7a5;border-radius:10px;padding:13px 16px}
#master-app .clinical-steps{gap:16px}
#master-app .clinical-step .field>span,#master-app .advanced-filters .field>span{font-size:14px;color:#3f5847}
#master-app .clinical-step .field select,#master-app .advanced-filters .field select{min-height:48px;font-size:16px;line-height:1.5;padding:11px 32px 11px 12px;border-color:#acbdaf}
#master-app .finder-refine-row>.advanced-filters>summary{font-size:14px;min-height:46px;line-height:1.5}
#master-app .advanced-filters .access-option{font-size:14px;min-height:46px}
#master-app .access-count{font-size:13px}
#master-app .finder-toolbar{padding:14px 0;border-bottom-color:#c5d3c8;gap:14px}
#master-app .finder-toolbar h2{font-size:22px;line-height:1.4}
#master-app .finder-toolbar p{font-size:14px;line-height:1.55;color:var(--muted)}
#master-app .finder-toolbar .button{font-size:14px;min-height:44px}
#master-app .finder-panel{padding:24px;border-color:#c8d7ca;box-shadow:0 3px 16px #24433105}
#master-app .finder-header h1{font-size:clamp(28px,2.1vw,36px)}
#master-app .finder-header>.intro{font-size:16px;line-height:1.65}
#master-app .finder-inventory{font-size:13px;line-height:1.6;color:var(--muted)}

/* Clinical content first; supplementary dates and labels use one secondary size. */
:is(#master-app,#staging-app) :is(.population,.page-facts,.record-fields,.value-list,.clinical-fact){font-size:16px;line-height:1.65}
:is(#master-app,#staging-app) :is(.page-facts,.record-fields){gap:10px 20px}
:is(#master-app,#staging-app) :is(.page-facts dt,.record-fields dt){font-size:13px;line-height:1.6;color:var(--muted);font-weight:600}
:is(#master-app,#staging-app) :is(.page-facts dd,.record-fields dd){margin:0;min-width:0;line-height:1.65}
:is(#master-app,#staging-app) .value-list{padding-left:21px}
:is(#master-app,#staging-app) .value-list li{margin-bottom:6px}
#master-app :is(.numbered-indication,.numbered-qualifier,.checked-protocol-extract,.category-definition,.sequence-rule,.sequence-note,.analysis-follow-up-note,.analysis-follow-up-details,.current-conditions,.current-interventions,.current-location,.current-eligibility,.current-contact,.current-opportunity-note,.case-candidate-basis,.case-excluded ul,.breast-context-block p,.breast-context-block li,.breast-protocol-related li,.breast-other-scopes li,.breast-trial-population p,.breast-resource-list li){font-size:16px;line-height:1.65}
#master-app :is(.source-matrix,.pivotal-table,.publication-table,.component-table,.category-checklist){font-size:15px;line-height:1.65}
#master-app :is(.compact-unverified,.card-trials,.access-heading p,.result-notice,.tga-source-review,.tga-summary-status,.tga-summary-context,.tga-summary-component>strong,.snapshot-study,.snapshot-outcome,.snapshot-outcome>strong,.snapshot-outcome .metric-detail,.snapshot-endpoints .outcome-note,.current-source,.current-location strong,.current-location-date,.current-badge,.current-match,.case-privacy,.case-notice,.case-fact-origin,.case-fact-warning,.case-edit-status,.case-candidate-basis details,.numbered-source-links li>span,.breast-source-scope,.breast-treatment-note){font-size:13px;line-height:1.6}
#master-app .snapshot-outcome .metric-value{font-size:17px;line-height:1.45}
#master-app :is(.links a,.current-study footer>a,.current-study footer .button,.trial-page-link,.refinement-chip,.card-actions .button,.case-remove){font-size:14px;line-height:1.5;min-height:44px}
#master-app :is(.fine,.field-hint,.review-note,.batch-label,.regimen-group-count,.finder-primary-help,.active-filter-label,.status-date,.trial-follow-up-detail,.concise-section-note,.numbered-treatment-footer>span,.card-top>.fine,.card footer>span,.numbered-record-role){font-size:13px;line-height:1.6;color:var(--muted)}
#master-app .card :is(.fine,.tag),#master-app .finder-refine-row>.advanced-filters>summary>.fine{font-size:13px;line-height:1.55}
#master-app :is(.kicker,.tag,.stat span){font-size:12px;line-height:1.5;color:#48614f}
#master-app .tags{gap:7px}
#master-app .tag{padding:4px 8px;border-radius:6px}
#master-app .card .population{font-size:16px;color:#3d5647;line-height:1.65}
#master-app .card-title,#master-app .grouped-indication .card-title,#master-app .regimen-result-group>summary>strong{font-size:19px;line-height:1.4;font-weight:680;color:var(--ink)}
#master-app .card-title{min-height:44px}
#master-app :is(.card,.numbered-treatment,.regimen-result-group){border-color:#c9d7cb;border-radius:13px;background:#fff;box-shadow:0 3px 14px #213e2d04}
#master-app :is(.card,.numbered-treatment){padding:21px}
#master-app .cards,#master-app .numbered-treatment-list{gap:18px;align-items:start}
#master-app .regimen-result-group>summary{padding:20px}
#master-app .regimen-result-group[open]>summary{background:#eef4eb}
#master-app .regimen-group-scopes>.grouped-indication{padding:20px;border-top-color:#ccd9ce}
#master-app .numbered-treatment h4{font-size:19px;line-height:1.45}
#master-app .numbered-treatment-heading{gap:16px}
#master-app .numbered-treatment-footer{margin-top:16px;padding-top:14px;flex-wrap:wrap;gap:12px}
#master-app .numbered-treatment-footer .button{font-size:14px;min-height:44px;padding:10px 12px}
#master-app .treatment-number{min-width:64px;min-height:44px;font-size:17px;border-radius:8px;background:#e8f0e5;border-color:#b9cdb4;color:#284f34}
#master-app .numbered-statuses{gap:8px;margin:14px 0}
#master-app .numbered-status{font-size:13px;line-height:1.55;padding:8px 10px;border-radius:7px}
#master-app .numbered-status strong{font-size:13px;margin-right:5px}
#master-app .status{font-size:14px;line-height:1.55;padding:11px 12px;border-radius:8px}
#master-app .status strong{font-size:13px;margin-bottom:5px}
#master-app .status-scope{font-size:13px;line-height:1.6}
#master-app :is(.status.unknown,.numbered-status.unknown){background:#f0f3f1;border-color:#cdd8d1;color:#4c6254}
#master-app :is(.status.yes,.numbered-status.yes){color:#28573a}
#master-app :is(.status.no,.numbered-status.no){color:#913b30}
#master-app :is(.status.limited,.numbered-status.limited){color:#74520f}
#master-app .recorded-access{padding:11px 12px;background:#f4f6f3;border-color:#ccd7cd}
#master-app .recorded-access :is(summary,p){font-size:13px;line-height:1.6}
#master-app :is(.callout,.scope-callout,.scope-notice p,.empty>p){font-size:15px;line-height:1.65}
#master-app .source-links{gap:9px;margin-top:15px}
#master-app .source-links a{font-size:13px;line-height:1.55;padding:9px 11px;min-height:44px;border-color:#c3d2c5;border-radius:7px;color:var(--green);text-decoration:underline}

/* Detail pages: a clear title, section shortcuts and spacious disclosure rows. */
#master-app .page-breadcrumb{font-size:14px;line-height:1.6;gap:10px;margin-bottom:22px}
#master-app .record-page-header{margin-bottom:24px}
#master-app .numbered-record-header{background:#fff;border:1px solid #c9d8cc;border-radius:16px;padding:26px}
#master-app .numbered-record-title{gap:18px;margin-bottom:18px}
#master-app .numbered-record-title h1{font-size:clamp(27px,2.1vw,34px);line-height:1.25;margin-top:3px}
#master-app .numbered-record-title .treatment-number{flex-direction:column;gap:3px;min-width:94px;min-height:68px;padding:9px 10px;font-size:23px;line-height:1.3;font-variant-numeric:tabular-nums}
#master-app .numbered-record-title .treatment-number-label{display:block;font-size:13px;font-weight:600;line-height:1.4;letter-spacing:0;white-space:nowrap}
#master-app .numbered-record-title>div{min-width:0}
#master-app .numbered-record-header>.page-facts{padding:0;border:0;background:transparent;margin:18px 0 8px;grid-template-columns:145px minmax(0,1fr);gap:9px 20px}
:is(#master-app,#master-detail) .record-regimen-id{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 10px;margin:12px 0;font-size:13px;line-height:1.6;color:var(--muted)}
:is(#master-app,#master-detail) .record-regimen-id strong{font-weight:650;white-space:nowrap}
:is(#master-app,#master-detail) .record-identifier{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.6;max-width:100%;min-width:0;overflow-wrap:anywhere;color:var(--green)}
:is(#master-app,#master-detail) a.record-identifier{display:inline-flex;align-items:center;min-height:40px}
#master-app .identifier-help{margin:12px 0 20px;font-size:13px;line-height:1.6;color:var(--muted)}
#master-app .record-permalink{display:inline-flex;align-items:center;min-height:44px;font-size:13px;line-height:1.5;margin:5px 0 0}
#master-app .treatment-section-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 0;margin:0 0 22px;border-bottom:1px solid var(--line)}
#master-app .treatment-section-nav>a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:9px 13px;border:1px solid #bfcfbe;border-radius:8px;background:#fff;color:#27543a;font-size:14px;line-height:1.4;text-decoration:none}
#master-app .treatment-section-nav>a:hover{border-color:#71957a;background:#eaf3e7}
#master-app .section-cross-link{margin:0 0 18px;font-size:16px;line-height:1.65}
#master-app .section-cross-link>a{display:inline-flex;align-items:center;min-height:44px;padding:9px 13px;border:1px solid #bfcfbe;border-radius:8px;color:var(--green);background:#f7faf5;text-decoration:underline}
#master-app .protocol-assessment-details{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
#master-app .protocol-assessment-details>summary{min-height:44px;padding:8px 0;color:var(--green);font-weight:650}
#master-app .eviq-quick-field p{font-size:16px;line-height:1.65}
#master-app .eviq-quick-field .eviq-quick-unknown,#master-app .eviq-quick-field .eviq-quick-locator{font-size:13px;line-height:1.6;color:var(--muted)}
#master-app .eviq-quick-section-link a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:1.5;padding:7px 0;text-decoration:underline;color:var(--green)}
#master-app .concise-section{margin:14px 0;border-color:#c6d5c9;border-radius:12px;box-shadow:0 2px 10px #203d2a03;overflow:visible}
#master-app .concise-section>summary{min-height:56px;padding:16px 20px;font-size:17px;line-height:1.5;font-weight:670;color:#244c33;border-radius:11px}
#master-app .concise-section>summary::marker{color:#487957}
#master-app .concise-section[open]{border-color:#aabfae}
#master-app .concise-section[open]>summary{background:#edf3e9;border-radius:11px 11px 0 0;margin-bottom:0}
#master-app .concise-section-note{margin-top:5px}
#master-app .concise-section-content{padding:23px;border-color:#d0dccf}
#master-app .concise-section-content>.panel{border:0;border-radius:0;padding:0;box-shadow:none}
#master-app .concise-section-content>.panel:last-child{margin-bottom:0}
#master-app .concise-section .section-number{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;margin-right:8px;padding:1px 5px;font-size:13px;font-variant-numeric:tabular-nums;background:#dde9d8;border:1px solid #c5d6be;border-radius:6px;color:#355d3f}
:is(#master-app,#staging-app) details:not(.concise-section):not(.reference-nav):not(.guidance-source-details):not(.guidance-field-audit):not(.guidance-history):not(.guidance-related)>summary{font-size:14px;line-height:1.55;min-height:44px}
:is(#master-app,#staging-app) .panel{border-color:#c9d7cc;border-radius:14px}
:is(#master-app,#staging-app) dialog{width:min(1040px,96vw);max-height:92dvh;border-radius:15px}
:is(#master-app,#staging-app) .dialog-body{padding:28px}
:is(#master-app,#staging-app) .close{width:44px;height:44px;min-height:44px;font-size:24px}
:is(#master-app,#staging-app) .table-wrap{max-width:100%;min-width:0;overflow:auto;scrollbar-color:#a5b8a7 #edf3eb;overscroll-behavior-x:contain;border-radius:9px}
:is(#master-app,#staging-app) .data-table{font-size:15px;line-height:1.65;font-variant-numeric:tabular-nums}
:is(#master-app,#staging-app) .data-table :is(th,td){padding:13px 15px;border-color:#d2ddd1}
:is(#master-app,#staging-app) .data-table th{font-size:13px;line-height:1.5;color:#3d5946;background:#edf3e9;letter-spacing:.025em}
:is(#master-app,#staging-app) .data-table tbody tr:nth-child(even){background:#fafbf8}

/* Staging uses the same reading hierarchy while retaining TNM/FIGO distinctions. */
#staging-app .staging-directory .tumour-link{font-size:14px;line-height:1.5;min-height:44px;padding:10px}
#staging-app .staging-directory-group h3{font-size:12px;line-height:1.5;letter-spacing:.06em;color:var(--muted)}
#staging-app :is(.staging-page-header .intro,.staging-record-header .intro,.staging-reference-card>p,.staging-reading-notes ul){font-size:16px;line-height:1.65;color:#425e4a}
#staging-app .staging-reference-card{padding:23px;border-color:#c8d7c6;border-radius:13px}
#staging-app .staging-reference-card h2{font-size:20px;line-height:1.4}
#staging-app :is(.staging-review-dates,.staging-system .fine,.staging-source-links,.staging-mini-versions>span,.staging-summary span,.staging-coverage,.staging-reference-card footer,.staging-policy-body,.staging-full-sources li p){font-size:13px;line-height:1.65}
#staging-app :is(.staging-limitations ul,.staging-table-notes){font-size:16px;line-height:1.65}
#staging-app .staging-system dl>div{font-size:15px;line-height:1.6}
#staging-app .staging-system h3{font-size:18px}
#staging-app .staging-table{font-size:16px;line-height:1.65}
#staging-app .staging-table :is(td,th){font-size:16px;padding:14px 16px;line-height:1.65}
#staging-app .staging-table thead th{font-size:13px;color:#3a573f}
#staging-app .staging-table tbody th{font-size:15px;min-width:90px;color:#2d4f34}
#staging-app :is(.staging-table-controls .button,.staging-subsites .button){font-size:14px;min-height:44px}
#staging-app .staging-jump-links a{font-size:14px;min-height:44px;padding:7px 0}

/* The original reference library and installation instructions share the same type scale. */
#app{color:var(--ink)}
#app .sidebar{border-color:var(--line);background:#fff}
#app .nav-button{font-size:14px;min-height:46px;color:#3e594a;line-height:1.45}
#app .nav-button.active{color:#17442e;background:#e2eee5}
#app .tumour-nav-button{font-size:14px;line-height:1.5;min-height:44px;color:#405d4a}
#app .tumour-nav-button small,#app .sidebar-section-heading,#app .sidebar-footer{font-size:12px;color:#586c60}
#app .workspace-label{font-size:13px}
#app .workspace-label small{font-size:12px;color:var(--muted)}
#app .main-content{font-size:16px;line-height:1.65}
#app .main-content :is(p,li,dd,td){font-size:16px;line-height:1.65}
#app :is(.page-intro>div>p:last-child,.review-banner,.review-banner button,.results-toolbar p,.results-toolbar h2 span,.intro-stat span,.select-field>span,.quick-tumours>span,.sort-select,.content-footer,.access-card-top>small,.access-card-footer small){font-size:13px;line-height:1.6;color:#52685a}
#app :is(.topbar-left,.topbar-left strong,.topbar-right,.help-button,.private-badge){font-size:13px;color:#4c6254}
#app .results-toolbar h2{font-size:22px;line-height:1.4}
#app .search-input-wrap{min-height:64px}
#app .search-input-wrap input,#app :is(select,textarea,input:not([type=checkbox]):not([type=radio])){font-size:16px;min-height:44px;color:var(--ink)}
#app .search-input-wrap input::placeholder{font-size:15px;color:#62756a}
#app .select-field>select{max-width:190px;font-size:15px;line-height:1.5}
#app .quick-tumours button,#app .reset-button,#app .access-card-footer button{font-size:13px;min-height:44px;line-height:1.5}
#app .filters-row{gap:12px;padding:16px}
#app .select-field{padding-left:12px;margin-right:0}
#app .mobile-menu{min-width:44px;min-height:44px}
.install-shell :is(.supporting-copy,.install-status,.device-card li){font-size:16px;line-height:1.7;color:#405c49}
.install-shell :is(.connection-note,.device-note,.section-heading p,.device-label,.app-identity p,.page-footer p,.page-footer a){font-size:13px;line-height:1.65;color:var(--muted)}
.install-shell .device-heading h3{font-size:20px;line-height:1.4}
.install-shell .device-card li{padding-left:34px;margin-bottom:17px}
.install-shell .device-card li::before{width:24px;height:24px;font-size:12px;top:2px}
.install-shell .primary-button{font-size:16px;min-height:50px}
.page-header .back-link{font-size:14px;line-height:1.45}

@media screen and (max-width:1500px) and (min-width:761px){
  #master-app [data-tumour-layout],#staging-app .staging-shell{display:grid;grid-template-columns:220px minmax(0,1fr)}
  :is(#master-app,#staging-app) .shell>.rail{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px 22px;position:static;height:auto;padding:16px 22px;border-right:0;border-bottom:1px solid var(--line);overflow:visible}
  :is(#master-app,#staging-app) .shell>.rail>.brand{font-size:21px;min-height:44px}
  :is(#master-app,#staging-app) .shell>.rail>.workspace,:is(#master-app,#staging-app) .shell>.rail>hr,:is(#master-app,#staging-app) .shell>.rail>.fine{display:none}
  :is(#master-app,#staging-app) .shell>.rail>nav{display:flex;flex-wrap:wrap;min-width:0;gap:6px;overflow:visible;align-items:center;padding:3px 1px;margin:0}
  :is(#master-app,#staging-app) .shell>.rail>nav>.nav{white-space:nowrap;flex:none;font-size:14px;min-height:44px}
  #master-app .reference-nav{grid-column:1/-1;margin:0;border:0}
  #master-app .reference-nav>summary{width:fit-content;padding:8px;min-height:44px;font-size:13px}
  #master-app .reference-nav[open] .old-links{display:flex;flex-wrap:wrap;gap:5px;padding:4px 0}
  #master-app .tumour-rail{height:100dvh;position:sticky;top:0;padding-top:20px}
  #staging-app .staging-directory{height:100dvh;max-height:100dvh}
  #master-app .numbered-treatment-list{grid-template-columns:1fr}
}
@media screen and (max-width:1200px){
  #master-app .clinical-steps,#master-app .clinical-steps.numbered-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  #master-app .cards{grid-template-columns:1fr}
  #master-app .finder-header{display:block}
  #master-app .finder-inventory{max-width:none;border:0;padding:0;margin:10px 0 0}
  #master-app .numbered-record-header{padding:23px}
  #master-app .numbered-record-header>.page-facts{grid-template-columns:135px minmax(0,1fr)}
}
@media screen and (max-width:1000px){
  #staging-app .staging-shell{grid-template-columns:minmax(0,1fr)}
  #staging-app .staging-directory.mobile-open{position:static;grid-column:1/-1;width:auto;height:auto;max-height:55dvh;box-shadow:none;border-right:0;border-bottom:1px solid var(--line)}
}
@media screen and (max-width:760px){
  #master-app [data-tumour-layout],#staging-app .staging-shell{display:block}
  :is(#master-app,#staging-app) .shell>.rail{display:block;position:static;height:auto;padding:16px 18px;overflow:visible;border-right:0;border-bottom:1px solid var(--line)}
  :is(#master-app,#staging-app) .shell>.rail>.workspace,:is(#master-app,#staging-app) .shell>.rail>hr,:is(#master-app,#staging-app) .shell>.rail>.fine{display:none}
  :is(#master-app,#staging-app) .shell>.rail>nav{display:flex;gap:6px;overflow-x:auto;padding:3px 1px;margin-top:12px;scrollbar-width:thin}
  :is(#master-app,#staging-app) .shell>.rail>nav>.nav{white-space:nowrap;flex:none;min-height:44px;font-size:14px;padding:11px 12px}
  #master-app .reference-nav{margin:7px 0 0;border:0}
  #master-app .reference-nav>summary{min-height:44px;padding:8px 5px}
  #master-app .reference-nav[open] .old-links{display:flex;flex-wrap:wrap;gap:5px;padding:4px 0}
  #master-app .reference-nav .nav{font-size:13px;white-space:normal;min-height:44px}
  :is(#master-app,#staging-app) .topbar{padding:12px 18px;gap:6px 16px;min-height:52px}
  #master-app [data-tumour-layout]>.main .content,#staging-app .content{padding:25px 18px 60px}
  #master-app .tumour-rail{position:static;height:auto;padding:12px 18px;border-right:0;border-bottom:1px solid var(--line)}
  #master-app .tumour-menu-toggle{display:flex;width:100%;justify-content:space-between;align-items:center;min-height:46px;font-size:15px;padding:10px 12px}
  #master-app .tumour-stream-list{display:none;max-height:55dvh;margin-top:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  #master-app .tumour-stream-list.is-open{display:grid}
  #master-app .tumour-stream-link{background:#fff;border-color:#cad8cb}
  #master-app .finder-panel{padding:20px}
  #master-app .finder-toolbar{position:static;align-items:flex-start;flex-wrap:wrap}
  #master-app .finder-toolbar h2{font-size:20px}
  #master-app .numbered-record-header{padding:21px}
  #master-app .numbered-record-header>.page-facts{grid-template-columns:1fr;gap:4px}
  #master-app .numbered-record-header>.page-facts dd{margin-bottom:10px}
  #master-app .numbered-record-title{gap:13px;align-items:flex-start}
  #master-app .numbered-record-title h1{font-size:27px}
  #master-app .numbered-record-title .treatment-number{min-width:90px;min-height:62px;font-size:20px}
  #master-app .treatment-section-nav{gap:7px;padding:12px 0;margin-bottom:18px}
  #master-app .treatment-section-nav>a{font-size:13px;min-height:44px;padding:9px 11px}
  #master-app .concise-section>summary{font-size:16px;min-height:56px;padding:15px 16px}
  #master-app .concise-section-content{padding:18px 16px}
  :is(#master-app,#staging-app) .panel{padding:18px}
  :is(#master-app,#staging-app) :is(.page-facts,.regulatory-panel .page-facts,.record-fields){grid-template-columns:1fr;gap:4px}
  :is(#master-app,#staging-app) :is(.page-facts dd,.record-fields dd){margin-bottom:12px}
  :is(#master-app,#staging-app) .data-table :is(th,td){padding:12px;font-size:14px}
  :is(#master-app,#staging-app) .data-table th{font-size:13px}
  :is(#master-app,#staging-app) .dialog-body{padding:22px 18px}
  #staging-app .staging-table :is(td,th){font-size:15px;padding:12px;line-height:1.65}
  #staging-app .staging-table thead th{font-size:13px}
  #app .main-content{padding:26px 18px 70px}
  #app .topbar{gap:10px;min-height:64px;height:auto;padding:12px 18px}
  #app .topbar-left strong{font-size:14px}
  #app .filters-row{gap:12px;align-items:stretch}
  #app .select-field{border:0;padding:0;flex:1 1 180px;flex-wrap:wrap;align-items:center}
  #app .select-field>span{flex-basis:100%;font-size:13px}
  #app .select-field>select{max-width:100%;width:100%;font-size:16px;padding:10px 25px 10px 8px;border:1px solid #bacbbf;border-radius:7px;background:#fff}
  #app .select-field>svg{bottom:16px}
}
@media screen and (max-width:600px){
  #master-app .clinical-steps,#master-app .clinical-steps.numbered-filters,#master-app .advanced-filters .filters,#master-app .advanced-filters .access-options{grid-template-columns:minmax(0,1fr)}
  #master-app .tumour-stream-list{grid-template-columns:1fr}
  #master-app :is(.card,.numbered-treatment){padding:18px}
  #master-app .numbered-treatment-heading{display:flex;align-items:flex-start;gap:12px}
  #master-app .numbered-treatment-heading>.treatment-number{margin:0;min-width:58px}
  #master-app .numbered-treatment h4{font-size:18px}
  #master-app .numbered-treatment-footer>div{width:100%;gap:8px}
  #master-app .numbered-treatment-footer .button{flex:1;text-align:center}
  #master-app .numbered-statuses{gap:8px}
  #master-app .numbered-status{font-size:13px;line-height:1.5}
  #master-app .statuses{grid-template-columns:1fr}
  #master-app .record-shortcuts{gap:8px}
  #master-app .record-shortcuts .button{font-size:14px;white-space:normal;text-align:left}
  #app .results-toolbar{align-items:flex-start;flex-wrap:wrap;gap:12px}
  #app .sidebar-footer{white-space:normal}
  .install-shell .device-card{padding:22px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  :is(#master-app,#staging-app,#app) *, .install-shell *{scroll-behavior:auto;transition:none}
}
@media print{
  body{background:#fff;color:#111;font-size:11pt;line-height:1.4}
  :is(#master-app,#staging-app) .content{padding:0;max-width:none}
  #master-app :is(.treatment-section-nav,.record-shortcuts,.reference-nav){display:none!important}
  :is(#master-app,#staging-app) :is(.panel,.card,.concise-section,.numbered-record-header){box-shadow:none;background:#fff}
  #staging-app .staging-table :is(td,th){font-size:10pt;padding:6px;line-height:1.4}
}

/* Concise workspace: clear hierarchy with secondary information on demand. */
#master-app .content{padding-top:24px}
#master-app .finder-header{align-items:center;margin-bottom:18px}
#master-app .finder-header .intro{margin:6px 0 0;font-size:14px}
#master-app .finder-inventory{font-size:12px;max-width:24ch;color:var(--muted)}
#master-app .rail .brand{margin-bottom:24px}
#master-app .identifier-guide{border:0;background:transparent;padding:0;margin:6px 0 12px}
#master-app .identifier-guide summary{font-size:12px;color:var(--muted);min-height:32px}
#master-app .identifier-guide p{margin:4px 0 12px}
#master-app .numbered-treatment{box-shadow:none}
#master-app .numbered-treatment-footer{border-top:1px solid var(--line);padding-top:10px}
#master-app .record-page-header{margin-bottom:20px}
#master-app .record-shortcuts{gap:6px}
#master-app .record-shortcuts .button{font-size:13px}
#master-app .concise-section{box-shadow:none}
@media(max-width:600px){
 #master-app .finder-header{display:block}
 #master-app .finder-inventory{max-width:none;margin-top:8px}
 #master-app .content{padding:20px 16px 48px}
 #master-app .numbered-treatment-footer{align-items:flex-start;gap:8px;flex-wrap:wrap}
}

/* Finder landing: the hidden tumour rail must not leave a narrow grid track. */
#master-app .shell:has(.finder-start)>.main{min-width:0;width:100%;grid-column:2}
#master-app .finder-start{width:100%;max-width:1100px;min-width:0;margin:0 auto}
#master-app .finder-start .finder-header{display:block;width:100%;margin:0 0 28px}
#master-app .finder-start .finder-header>div{width:100%;min-width:0}
#master-app .finder-start h1{word-break:normal;overflow-wrap:normal;font-size:clamp(28px,2.5vw,36px);line-height:1.2}
#master-app .finder-start .intro{max-width:65ch;font-size:15px;line-height:1.65;margin-top:10px}
#master-app .finder-start .finder-entry{background:#fff;border:1px solid #dbe4dd;border-radius:16px;padding:24px;margin:0 0 20px;box-shadow:0 3px 14px #19392b04}
#master-app .finder-start .finder-entry label{font-size:16px;margin-bottom:12px;color:#234637}
#master-app .finder-start .finder-entry .search{width:100%;min-width:0;min-height:56px;border:1px solid #b7c9be;background:#fbfdfb;border-radius:10px;font-size:17px;padding:14px 16px}
#master-app .finder-start .field-hint{margin:10px 0 0;font-size:13px}
#master-app .finder-start .stream-chooser{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:20px 0 0}
#master-app .finder-start .stream-choice{min-width:0;min-height:48px;background:#f7faf7;border-color:#dce6dc;border-radius:9px;font-size:14px;line-height:1.45;padding:12px 14px;text-align:left;white-space:normal}
#master-app .finder-start .stream-choice:hover{background:#eaf3ec;border-color:#89ab95}
#master-app .finder-start .finder-toolbar:has(#master-count:empty){display:none}
@media screen and (min-width:761px) and (max-width:1500px){
 #master-app .shell:has(.finder-start){grid-template-columns:minmax(0,1fr)}
 #master-app .shell:has(.finder-start)>.main{grid-column:1/-1}
 #master-app .shell>.rail>.brand{margin-bottom:0}
 #master-app .shell>.rail{gap:8px 22px}
 #master-app .reference-nav{padding:0}
 #master-app .reference-nav>summary{min-height:36px;padding:6px 8px}
}
@media screen and (max-width:760px){
 #master-app .shell:has(.finder-start)>.main{grid-column:auto}
 #master-app .shell>.rail>.brand{margin-bottom:0}
 #master-app .finder-start .finder-header{margin-bottom:20px}
 #master-app .finder-start .finder-entry{padding:18px;border-radius:12px;margin-bottom:16px}
 #master-app .finder-start .finder-entry .search{font-size:16px}
 #master-app .finder-start .stream-chooser{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #master-app .finder-start .stream-choice{font-size:13px;padding:10px;min-height:48px}
}
@media screen and (max-width:380px){#master-app .finder-start .stream-chooser{grid-template-columns:minmax(0,1fr)}}

#master-app .regimen-suggestions{margin-top:8px;border:1px solid #b8cdbf;border-radius:10px;background:white;box-shadow:0 10px 24px #19392b12;max-height:360px;overflow:auto}
#master-app .regimen-suggestions[hidden]{display:none}
#master-app .regimen-suggestion{display:block;padding:12px 16px;text-decoration:none;border-top:1px solid #e6ece7;color:#203f30}
#master-app .regimen-suggestion strong{display:block;font-size:15px;line-height:1.4}
#master-app .regimen-suggestion span{display:block;font-size:12px;color:#61766a;margin-top:4px}
#master-app .regimen-suggestion:hover,#master-app .regimen-suggestion:focus{background:#edf5ee}
#master-app .suggestion-caption{padding:10px 16px;margin:0;font-size:12px;color:#526c5b}
