/* SACTCheck v0.75.1 - cohesive clinician / patient interface */
/* Keep project information reachable when mobile hides the secondary tools. */
.app-header .homepage-about-link{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:44px;padding:10px 14px!important;border:1px solid #b7eae2!important;
  background:#dff5ef!important;color:#10354f!important;text-decoration:none;
  font-size:13px!important;font-weight:700;line-height:1.35;text-align:center;
}
.app-header .homepage-about-link:hover{background:#fff!important}
.app-header .homepage-about-link:focus-visible{outline:3px solid #efc56a;outline-offset:4px}
@media(max-width:560px){
  .app-header .app-header-inner{flex-wrap:wrap;gap:14px}
  .app-header .brand-lockup{min-width:0;flex:1 1 220px}
  .app-header .header-study-meta{display:flex!important;max-width:none;justify-content:flex-start}
  .app-header .header-study-meta>:not(.homepage-about-link){display:none!important}
  body.engine-first-homepage .app-header .header-study-meta .engine-header-secondary-hidden{display:none!important}
}
:root{
  --s74-navy:#10354f;--s74-navy2:#0a263a;--s74-teal:#0b7f7a;--s74-teal2:#20aaa2;
  --s74-cyan:#e7f7f5;--s74-ink:#17212b;--s74-muted:#60737e;--s74-line:#d6e2e7;
  --s74-bg:#f3f7f8;--s74-green:#eaf7ef;--s74-amber:#fff5da;--s74-red:#fff0f1;
}
.v0740-brand-lockup{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.v0740-brand-lockup img{width:58px;height:65px;filter:drop-shadow(0 5px 12px rgba(10,38,58,.14))}
.v0740-brand-lockup strong{display:block;color:var(--s74-navy);font-size:24px;letter-spacing:-.02em}
.v0740-brand-lockup span{display:block;color:var(--s74-teal);font-size:12px;font-weight:800;letter-spacing:.035em;text-transform:uppercase;margin-top:2px}
.brand-tagline{font-weight:700!important;color:#c9f4ef!important}
.mission-hero{overflow:hidden;position:relative}
.mission-hero::after{content:"";position:absolute;right:-100px;top:-120px;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,rgba(32,170,162,.14),rgba(32,170,162,0) 68%);pointer-events:none}
.mission-visual{border:1px solid #cde0e5!important;background:linear-gradient(155deg,#fafdfe,#edf8f7)!important}
.mission-visual-header img{width:38px!important;height:43px!important}

.sact-mode-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.sact-mode-switcher button{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;text-align:left;padding:16px;border:1px solid var(--s74-line);border-radius:14px;background:#fff;color:var(--s74-ink);box-shadow:0 2px 7px rgba(16,53,79,.05)}
.sact-mode-switcher button[aria-pressed="true"]{border-color:#4ebeb7;box-shadow:0 0 0 3px rgba(32,170,162,.12),0 5px 18px rgba(16,53,79,.08);background:linear-gradient(135deg,#fff,#f1fbfa)}
.sact-mode-switcher .mode-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e5f5f3;color:var(--s74-teal);font-size:20px;font-weight:900}
.sact-mode-switcher strong{display:block;color:var(--s74-navy);font-size:15px}
.sact-mode-switcher small{display:block;color:var(--s74-muted);font-size:11px;line-height:1.35;margin-top:3px}

.regimen-card .card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;align-items:stretch!important;min-height:96px}
.regimen-card .card-actions>*{width:100%!important;margin:0!important}
.regimen-card[data-v0740-actions="ready"] .card-actions{opacity:1}
.workflow-card-button{background:linear-gradient(135deg,#0f567f,#0b7f7a)!important;color:#fff!important;border:0!important}
.patient-support-card-button{border:1px solid #4abbb4!important;color:#0b6764!important;background:#f1fbfa!important}
.patient-support-card-button:hover{background:#e5f7f5!important}

body[data-sact-mode="patient"] .regimen-card .card-actions .workflow-card-button,
body[data-sact-mode="patient"] .regimen-card .card-actions .json-assessment-launch,
body[data-sact-mode="patient"] .regimen-card .card-actions .regimen-info-link,
body[data-sact-mode="patient"] .regimen-card .card-actions .official-pdf-link{display:none!important}
body[data-sact-mode="patient"] .regimen-card .card-actions{grid-template-columns:1fr;min-height:44px}
body[data-sact-mode="patient"] #clinicalScenarioLauncher,
body[data-sact-mode="patient"] #globalScenarioInterpreter,
body[data-sact-mode="patient"] #protocolHealthDashboard,
body[data-sact-mode="patient"] .health-dashboard{display:none!important}

.patient-support-shell[hidden]{display:none!important}
body.patient-content-open{overflow:hidden}
.patient-support-shell{position:fixed;inset:0;z-index:15000;display:grid;place-items:center;padding:16px}
.patient-support-backdrop{position:absolute;inset:0;background:rgba(5,23,36,.66);backdrop-filter:blur(4px)}
.patient-support-panel{position:relative;width:min(1180px,100%);height:min(920px,96vh);display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;border:1px solid #bfd1d9;border-radius:20px;background:#fff;box-shadow:0 30px 90px rgba(3,25,40,.34)}
.patient-support-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;padding:15px 18px;background:linear-gradient(135deg,var(--s74-navy2),#0b6568);color:#fff}
.patient-support-brand{display:flex;gap:8px;align-items:center;padding-right:16px;border-right:1px solid rgba(255,255,255,.18)}
.patient-support-brand img{width:42px;height:48px;background:#fff;border-radius:10px;padding:3px}
.patient-support-brand strong{display:block;font-size:16px}.patient-support-brand span{display:block;font-size:8.8px;color:#bcece7;margin-top:2px;text-transform:uppercase;letter-spacing:.05em;font-weight:800}
.patient-support-heading>span{font-size:8.8px;text-transform:uppercase;letter-spacing:.11em;color:#a8ece5;font-weight:900}
.patient-support-heading h2{margin:3px 0 2px;font-size:21px}.patient-support-heading p{margin:0;font-size:10px;color:#d7ebed}
.patient-support-close{width:38px;height:38px;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.10);color:#fff;font-size:23px}
.patient-support-tabs{display:flex;gap:4px;padding:8px 10px;border-bottom:1px solid var(--s74-line);background:#f8fbfc;overflow:auto}
.patient-support-tabs button{white-space:nowrap;border:0;border-radius:8px;background:transparent;color:#526873;padding:8px 11px;font-size:10px;font-weight:800}
.patient-support-tabs button[aria-selected="true"]{background:#dff4f1;color:#0b6f6a}
.patient-support-body{overflow:auto;padding:16px;background:var(--s74-bg)}
.patient-support-view{display:none}.patient-support-view.active{display:block}
.patient-loading-card,.patient-error-card,.patient-card,.patient-intro-card,.patient-print-card,.patient-contact-template{border:1px solid var(--s74-line);border-radius:13px;background:#fff;padding:15px}
.patient-intro-card{border-top:5px solid var(--s74-teal)}
.patient-kicker{display:block;color:var(--s74-teal);font-size:9px;font-weight:900;letter-spacing:.10em}
.patient-intro-card h3{font-size:24px;color:var(--s74-navy);margin:5px 0 8px}
.patient-intro-card p{font-size:11px;line-height:1.5;color:#4f626c}
.patient-badges,.patient-medicine-list{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.patient-badges span,.patient-medicine-list span{border-radius:999px;padding:5px 8px;font-size:9px;font-weight:800;background:#e8f5f4;color:#0d6e69}
.patient-medicine-list span{background:#edf2f6;color:#3f5968}
.patient-action-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.patient-action{padding:11px;border-radius:10px;border:1px solid transparent}
.patient-action strong{display:block;font-size:10px}.patient-action span{display:block;font-size:9px;line-height:1.4;margin-top:3px}
.patient-action.know{background:var(--s74-green);border-color:#cfe8d8}.patient-action.contact{background:var(--s74-amber);border-color:#ecd9a4}.patient-action.urgent{background:var(--s74-red);border-color:#ecc3c8;color:#84242d}
.patient-section-title{display:flex;align-items:flex-end;justify-content:space-between;margin:14px 1px 9px}.patient-section-title h3{margin:0;color:var(--s74-navy);font-size:16px}.patient-section-title p{margin:3px 0 0;color:var(--s74-muted);font-size:10px}
.patient-risk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.patient-risk-card{border:1px solid var(--s74-line);border-left:5px solid #89a3b1;border-radius:11px;background:#fff;padding:10px}
.patient-risk-card.contact{border-left-color:#d19a27}.patient-risk-card.urgent{border-left-color:#b73743}
.patient-risk-head{display:flex;justify-content:space-between;gap:6px}.patient-risk-action,.risk-frequency{font-size:8px;font-weight:900;letter-spacing:.06em;padding:3px 6px;border-radius:999px;background:#edf3f5;color:#516670}.patient-risk-card.contact .patient-risk-action{background:#fff0c8;color:#7f5d08}.patient-risk-card.urgent .patient-risk-action{background:#ffe1e4;color:#902d36}
.risk-frequency{background:#e9f5f4;color:#0c6f6a;letter-spacing:0}
.patient-risk-card h4{margin:8px 0 4px;color:var(--s74-navy);font-size:12px}.patient-risk-card p{margin:0;color:#566a74;font-size:9.5px;line-height:1.42}.patient-risk-card small{display:block;margin-top:6px;color:#8a989f;font-size:8px}
.patient-schedule-timeline{display:grid;gap:9px}.patient-phase-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;border:1px solid var(--s74-line);border-radius:12px;background:#fff;padding:11px}.patient-phase-number{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#dff4f1;color:#0b706b;font-weight:900;font-size:17px}.patient-phase-eyebrow{font-size:8px;font-weight:900;color:#0b7f7a;text-transform:uppercase;letter-spacing:.08em}.patient-phase-card h4{margin:2px 0 7px;color:var(--s74-navy)}.patient-phase-days{display:grid;gap:5px}.patient-phase-days div{display:grid;grid-template-columns:74px 1fr;gap:8px;padding:6px 8px;border-radius:7px;background:#f6f9fa}.patient-phase-days strong{font-size:9px;color:#3a5665}.patient-phase-days span{font-size:9px;color:#5a6e77}
.patient-note{margin-top:10px;font-size:10px;color:#58717b}
.patient-grade-scale{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.patient-grade-scale>div{border:1px solid var(--s74-line);border-radius:10px;background:#fff;padding:9px}.patient-grade-scale strong{display:block;color:var(--s74-navy);font-size:9px}.patient-grade-scale span{display:block;margin-top:3px;color:#60727c;font-size:8.5px;line-height:1.35}.patient-grade-scale .grade-3{border-color:#e2c16b;background:#fff9e8}.patient-grade-scale .grade-4{border-color:#e3a9ae;background:#fff2f3}
.patient-grade-boundary{margin:9px 0 12px;padding:9px 10px;border-radius:9px;background:#edf3f5;color:#50656f;font-size:9px;line-height:1.42}
.patient-emergency-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 14px;border-radius:11px;background:#9c2d37;color:#fff}.patient-emergency-banner strong{font-size:12px}.patient-emergency-banner span{font-size:9px;max-width:55%}
.urgent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.urgent-grid article{border:1px solid #e6c2c6;border-radius:10px;background:#fff7f7;padding:10px}.urgent-grid strong{color:#8e2d35;font-size:10.5px}.urgent-grid p{font-size:9px;line-height:1.4;color:#66575a}
.patient-contact-template{margin-top:10px}.patient-contact-template h3{margin:0 0 8px;color:var(--s74-navy)}.patient-contact-template p{font-size:10px}
.patient-print-card{display:grid;grid-template-columns:1fr 120px;gap:16px;align-items:center;border-top:5px solid var(--s74-teal)}.patient-print-card img{width:110px;height:110px}.patient-print-card h3{margin:5px 0;color:var(--s74-navy)}.patient-print-card p{font-size:10px;line-height:1.45;color:#5c6e77}.patient-print-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.patient-empty{padding:18px;text-align:center;color:var(--s74-muted);background:#fff;border-radius:10px}

.workflow-module.patient .workflow-status.available{background:#e5f5ea!important;color:#176536!important}
.workflow-module.patient{border-color:#b9dedb!important}
.workflow-module.knowledge{border-color:#bed6e5!important;background:linear-gradient(145deg,#fff,#f5f9fc)!important}
.workflow-module.knowledge .workflow-module-icon{background:#e7f0f8;color:#1c5575}
.workflow-module.consent{border-color:#d7c9e8!important;background:linear-gradient(145deg,#fff,#faf7fc)!important}
.workflow-module.consent .workflow-module-icon{background:#f0eaf7;color:#68418a}
.workflow-module-note{display:block;margin-top:7px;color:#647780;font-size:9px;line-height:1.4}

@media(max-width:850px){
  .sact-mode-switcher,.patient-risk-grid{grid-template-columns:1fr 1fr}
  .patient-grade-scale{grid-template-columns:1fr 1fr}
}
@media(max-width:650px){
  .sact-mode-switcher,.patient-risk-grid,.patient-action-strip,.urgent-grid{grid-template-columns:1fr}
  .patient-support-shell{padding:0}.patient-support-panel{height:100vh;width:100%;border-radius:0}
  .patient-support-brand{display:none}.patient-support-header{grid-template-columns:1fr auto}
  .patient-emergency-banner{display:block}.patient-emergency-banner span{display:block;max-width:none;margin-top:5px}
  .patient-print-card{grid-template-columns:1fr}.patient-print-card img{width:95px;height:95px}
  .regimen-card .card-actions{grid-template-columns:1fr}
}

/* v0.75.0 patient-guide and hero reconciliation */
.v0740-brand-lockup,.v0750-brand-lockup{display:none!important}
.mission-visual{display:flex!important;flex-direction:column;justify-content:space-between;min-height:100%!important;padding:22px!important;color:#173847!important;overflow:hidden}
.v0750-mission-header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin:0 0 16px!important}
.v0750-mission-header>div{min-width:0}
.v0750-mission-header strong{display:block!important;color:var(--s74-navy)!important;font-size:18px!important;line-height:1.15!important}
.v0750-mission-header span{display:block;margin-top:5px;color:var(--s74-muted);font-size:10px;line-height:1.4}
.v0750-mission-header b{flex:none;border-radius:999px;background:#dff4f1;color:#0b706b;padding:6px 9px;font-size:9px;white-space:nowrap}
.mission-visual .mission-pathway{display:grid!important;gap:8px!important;margin:0!important}
.mission-visual .mission-pathway-step{display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;border:1px solid #d7e5e8!important;border-radius:11px!important;background:rgba(255,255,255,.82)!important;padding:9px 10px!important}
.mission-visual .mission-icon{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;border-radius:9px!important;background:#e2f5f2!important;color:#0b746e!important;font-size:10px!important;font-weight:900!important}
.mission-visual .mission-pathway-step strong{display:block;color:#153c54;font-size:10.5px;line-height:1.2}
.mission-visual .mission-pathway-step small{display:block;margin-top:2px;color:#647881;font-size:8.8px;line-height:1.35}
.mission-visual .mission-visual-footer{display:flex!important;gap:5px!important;flex-wrap:wrap!important;margin-top:13px!important}
.mission-visual .mission-visual-footer span{border:1px solid #cfe0e4;border-radius:999px;background:#fff;padding:4px 7px;color:#536b76;font-size:7.8px;font-weight:800}

.patient-a4-sheet{width:min(210mm,100%);margin:0 auto;background:#fff;border:1px solid #d7e2e7;border-radius:4px;padding:18px 20px;box-shadow:0 8px 28px rgba(16,53,79,.10)}
.patient-a4-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:5px solid var(--s74-teal);padding-bottom:11px;margin-bottom:11px}
.patient-a4-header img{width:48px;height:54px;object-fit:contain;flex:none}
.patient-a4-header h3{margin:4px 0 3px;color:var(--s74-navy);font-size:25px;line-height:1.08;letter-spacing:-.025em}
.patient-a4-header p{margin:0;color:var(--s74-muted);font-size:9.5px;font-weight:700}
.patient-a4-treatment-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:9px;margin-bottom:9px}
.patient-a4-treatment-grid>section{border:1px solid #d8e3e8;border-radius:10px;background:#fbfdfe;padding:10px}
.patient-a4-treatment-grid p{margin:7px 0 0;color:#526873;font-size:9.3px;line-height:1.45}
.patient-a4-label{display:block;color:#0a706a;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.09em;margin-bottom:4px}
.patient-a4-callout{display:grid;grid-template-columns:1.25fr .75fr;gap:10px;align-items:center;border-radius:10px;background:linear-gradient(100deg,#10354f,#0b6d70);color:#fff;padding:10px 12px;margin:9px 0}
.patient-a4-callout strong{font-size:11px;line-height:1.25}.patient-a4-callout span{font-size:8.5px;line-height:1.4;color:#d5efec}
.patient-a4-section{margin-top:9px;border:1px solid #d8e3e8;border-radius:10px;overflow:hidden;background:#fff}
.patient-a4-section-head{display:flex;justify-content:space-between;gap:10px;align-items:end;padding:7px 9px;background:#edf4f7;border-bottom:1px solid #d8e3e8}
.patient-a4-section-head span{font-size:10px;font-weight:900;color:#315f78}.patient-a4-section-head small{font-size:7.8px;color:#6a7b83;text-align:right}
.patient-a4-section.agent .patient-a4-section-head{background:#fff7e5}.patient-a4-section.agent .patient-a4-section-head span{color:#805708}
.patient-a4-section.immune .patient-a4-section-head{background:#f5effa}.patient-a4-section.immune .patient-a4-section-head span{color:#684483}
.patient-a4-risk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:7px}
.patient-a4-risk-grid .patient-risk-card{padding:7px;border-radius:8px;min-width:0}
.patient-a4-risk-grid .patient-risk-card h4{margin:5px 0 3px;font-size:9.7px}.patient-a4-risk-grid .patient-risk-card p{font-size:8px;line-height:1.34}.patient-a4-risk-grid .patient-risk-card small{font-size:7px;margin-top:4px}
.patient-risk-category{display:block;margin-top:5px;color:#6c7e87;font-size:6.8px;font-weight:900;letter-spacing:.06em}
.patient-risk-card.category-general{border-left-color:#5587a2}.patient-risk-card.category-agent{border-left-color:#c18b2e}.patient-risk-card.category-immune{border-left-color:#8a62a4}
.patient-a4-urgent{margin-top:9px;border-radius:10px;background:#932f39;color:#fff;padding:9px 11px;font-size:8.7px;line-height:1.4}.patient-a4-urgent strong{font-size:10px}
.patient-a4-footer{display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:12px;align-items:center;border-top:1px solid #d5e1e6;margin-top:9px;padding-top:8px;color:#5b7079}
.patient-a4-footer strong,.patient-a4-footer span,.patient-a4-footer code{display:block}.patient-a4-footer strong{color:#153d55;font-size:9px}.patient-a4-footer span{font-size:7.8px;line-height:1.35;margin:2px 0}.patient-a4-footer code{font-size:6.8px;word-break:break-all}.patient-a4-footer img{width:72px;height:72px;display:block}

@media(max-width:850px){
  .patient-a4-risk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .patient-a4-treatment-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
  .mission-visual{padding:15px!important}.v0750-mission-header{display:block!important}.v0750-mission-header b{display:inline-block;margin-top:8px}
  .patient-support-body{padding:9px}.patient-a4-sheet{padding:13px;border-radius:9px}
  .patient-a4-header h3{font-size:20px}.patient-a4-header img{width:38px;height:44px}
  .patient-a4-callout{grid-template-columns:1fr}
  .patient-a4-risk-grid{grid-template-columns:1fr}
  .patient-a4-section-head{display:block}.patient-a4-section-head small{display:block;text-align:left;margin-top:2px}
  .patient-a4-footer{grid-template-columns:1fr 70px}.patient-a4-footer img{width:64px;height:64px}
}

/* v0.76.0 patient guide visual-language additions */
.patient-bodymap-card{display:grid;grid-template-columns:1.15fr .85fr;gap:10px;border:1px solid #d8e3e8;border-radius:10px;background:#fbfdfe;padding:10px;margin:9px 0}
.patient-regimen-map{display:block;background:#f3f8f9;border-color:#cddfe4;padding:14px}.patient-regimen-map header{max-width:760px}.patient-regimen-map h4{font-size:19px!important;line-height:1.15;margin:4px 0 7px!important}.patient-regimen-map header p{font-size:11px!important;line-height:1.45!important}.prm-layout{display:grid;grid-template-columns:1fr minmax(150px,.8fr) 1fr;gap:9px;align-items:stretch;background:linear-gradient(135deg,#e8f5f2,#eff5f8);border-radius:12px;padding:10px}.prm-column{display:grid;grid-template-rows:1fr 1fr;gap:8px}.prm-card{display:flex;align-items:flex-start;gap:8px;background:#fff;border:1px solid #d5e1e5;border-radius:10px;padding:9px;box-shadow:0 2px 8px #173a4b0b}.prm-card>span{flex:0 0 23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#0b7f7a;color:white;font-size:11px;font-weight:900}.prm-card b,.prm-card small{display:block}.prm-card b{font-size:10px;color:#17394b}.prm-card small{font-size:8px;line-height:1.35;color:#586f7b;margin-top:3px}.prm-anatomy{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:220px;border:1px solid #d0e1e1;border-radius:12px;background:radial-gradient(ellipse at center,#fff 20%,#e6f1ef 100%);padding:8px}.prm-anatomy svg{width:min(100%,180px);height:190px;fill:none;stroke:#175f65;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.prm-anatomy svg path{fill:none}.prm-anatomy svg g{fill:#bd4d61}.prm-organ-label{font-size:9px;font-weight:850;text-align:center;color:#17575c}.patient-regimen-map footer{font-size:8px;color:#586c76;line-height:1.35;margin-top:8px}
.patient-bodymap-card h4{margin:2px 0 4px;color:#10354f;font-size:14px;line-height:1.15}
.patient-bodymap-card p{margin:0 0 6px;color:#5b7079;font-size:9px;line-height:1.45}
.bodymap-pill-list{display:flex;flex-wrap:wrap;gap:5px}.bodymap-pill{display:inline-flex;align-items:center;border-radius:999px;background:#eef5f7;border:1px solid #d8e3e8;padding:4px 8px;color:#415c69;font-size:8px;font-weight:800}
.patient-bodymap-figure{position:relative;min-height:188px;border:1px solid #d7e5e8;border-radius:10px;background:linear-gradient(180deg,#edf8f6,#ffffff);overflow:hidden}.patient-bodymap-figure svg{position:absolute;left:50%;top:12px;transform:translateX(-50%);width:92px;height:164px;fill:#d7eae5;stroke:#7fa8a0;stroke-width:2.2}.bodymap-dot{position:absolute;background:#fff;border:1px solid #d4e1e5;border-radius:999px;padding:3px 6px;font-size:7.2px;color:#4f6873;box-shadow:0 1px 4px rgba(0,0,0,.04);white-space:nowrap}.bodymap-dot.head{right:8px;top:10px}.bodymap-dot.chest{right:12px;top:49px}.bodymap-dot.skin{right:15px;top:84px}.bodymap-dot.abdomen{right:8px;top:119px}.bodymap-dot.liver{left:8px;top:79px}.bodymap-dot.kidney{left:8px;top:109px}.bodymap-dot.blood{left:10px;bottom:30px}.bodymap-dot.legs{right:12px;bottom:22px}
@media(max-width:850px){.patient-bodymap-card{grid-template-columns:1fr}}
@media(max-width:650px){.prm-layout{grid-template-columns:1fr 1fr}.prm-anatomy{grid-column:1/-1;grid-row:1;min-height:180px}.prm-anatomy svg{height:155px}.prm-column{grid-template-rows:1fr 1fr}.prm-card{padding:7px}.prm-card small{font-size:7px}}

/* v0.76.1: high-contrast, anatomical map for the HCC patient guide. */
.patient-a4-sheet.hcc-guide .patient-bodymap-card{display:block;border:1px solid #cddfe4;background:#f4f8f9;padding:14px}
.hcc-guide .patient-bodymap-copy{max-width:690px}
.hcc-guide .patient-bodymap-copy h4{font-size:19px;line-height:1.18;margin:4px 0}
.hcc-guide .patient-bodymap-copy p{font-size:11px;line-height:1.45;margin:0 0 12px}
.hcc-guide .patient-bodymap-figure{display:flex;align-items:center;justify-content:center;min-height:0;overflow:visible;border:0;background:transparent}
.hcc-guide .patient-bodymap-figure img{display:block;width:min(100%,420px);height:auto;max-height:520px;object-fit:contain}
.hcc-guide .patient-a4-risk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.patient-tox-icon{flex:0 0 24px;width:24px;height:24px;padding:3px;border-radius:6px;color:#665093;background:#f2edfa}
.patient-risk-card.category-agent .patient-tox-icon{color:#a54a38;background:#fcefeb}
.patient-risk-card h4{display:flex;align-items:center;gap:6px;line-height:1.28}
.hcc-guide .patient-a4-risk-grid .patient-risk-card h4{font-size:11px}
.hcc-guide .patient-a4-risk-grid .patient-risk-card p{font-size:9px;line-height:1.4}
@media(max-width:650px){.hcc-guide .patient-a4-risk-grid{grid-template-columns:1fr}.hcc-guide .patient-bodymap-figure img{width:min(100%,380px)}}

/* v0.75.1 hotfix — mission panel contrast and visibility.
   The earlier v0.72 hero rules use #studyHero specificity and were overriding
   the v0.75 step-label colours. Keep these selectors deliberately scoped and
   explicit so the right-hand connected-support card remains readable. */
#studyHero .mission-visual{
  color:#173847!important;
  background:linear-gradient(155deg,#fafdfe,#edf8f7)!important;
  border:1px solid #cde0e5!important;
}
#studyHero .mission-visual .v0750-mission-header strong{
  color:#10354f!important;
}
#studyHero .mission-visual .v0750-mission-header span{
  color:#60737e!important;
}
#studyHero .mission-visual .v0750-mission-header b{
  background:#dff4f1!important;
  color:#0b706b!important;
}
#studyHero .mission-visual .mission-pathway-step{
  background:rgba(255,255,255,.96)!important;
  border-color:#d7e5e8!important;
  box-shadow:0 2px 7px rgba(16,53,79,.035)!important;
}
#studyHero .mission-visual .mission-pathway-step strong{
  color:#153c54!important;
  opacity:1!important;
}
#studyHero .mission-visual .mission-pathway-step small{
  color:#647881!important;
  opacity:1!important;
}
#studyHero .mission-visual .mission-icon{
  background:#e2f5f2!important;
  color:#0b746e!important;
  border-color:#cae8e4!important;
}
#studyHero .mission-visual .mission-visual-footer span{
  background:#fff!important;
  color:#536b76!important;
  border-color:#cfe0e4!important;
}

/* v0.76.2: large patient-readable HCC anatomy sheet. */
.hcc-guide .hcc-bodymap{display:block;background:#eaf7f5;border:0;padding:16px;margin:12px 0}
.hcc-guide .hcc-visual-title h4{font-size:26px;color:#123a58;margin:2px 0 5px}
.hcc-guide .hcc-visual-title p{font-size:12px;line-height:1.4;color:#21354b;max-width:70ch;margin:0 0 15px}
.hcc-guide .hcc-visual-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:7px;min-height:610px;align-items:stretch;border-radius:14px;background:linear-gradient(#e9f8f7,#e6f3f0);padding:7px}
.hcc-guide .hcc-organ-column{display:grid;grid-template-rows:repeat(4,1fr);gap:9px}
.hcc-guide .hcc-organ-card{position:relative;z-index:2;background:#fff;border:1px solid #d6e3e3;border-radius:13px;padding:10px;box-shadow:0 2px 8px #2042;min-width:0}
.hcc-guide .hcc-organ-head{display:flex;align-items:center;gap:7px;padding:3px;background:#f1eafa;color:#4e287b;border-radius:25px;font-size:13px;line-height:1.15}
.hcc-guide .hcc-organ-icon{flex:0 0 30px;width:30px;height:30px;padding:5px;background:#682aa2;color:white;border-radius:50%}
.hcc-guide .hcc-organ-card p{font-size:11px;line-height:1.35;color:#11253c;margin:7px 2px 0}
.hcc-guide .hcc-organ-card p span{color:#604681}
.hcc-guide .hcc-anatomy{position:relative;min-height:610px;display:flex;align-items:stretch;justify-content:center}
.hcc-guide .hcc-anatomy img{display:block;width:100%;height:610px;max-height:none;object-fit:contain}
.hcc-guide .hcc-pin{position:absolute;width:18px;height:18px;border:4px solid #fff;border-radius:50%;background:#722b9d;box-shadow:0 0 0 2px #722b9d}
.hcc-guide .hcc-pin.coral{background:#b63b50;box-shadow:0 0 0 2px #b63b50}
.hcc-guide .hcc-pin.brain{left:48%;top:6%}.hcc-guide .hcc-pin.lungs{right:20%;top:25%}.hcc-guide .hcc-pin.heart{left:55%;top:27%}.hcc-guide .hcc-pin.liver{left:35%;top:37%}.hcc-guide .hcc-pin.kidneys{left:24%;top:43%}.hcc-guide .hcc-pin.bowel{right:30%;top:52%}.hcc-guide .hcc-pin.muscles{left:28%;top:68%}.hcc-guide .hcc-pin.vessels{right:23%;top:75%}
.hcc-guide .hcc-visual-foot{display:flex;gap:15px;padding:10px 4px 5px;color:#3c5263;font-size:9px}
.hcc-guide .hcc-legend-dot{display:inline-block;width:10px;height:10px;background:#722b9d;border-radius:50%}.hcc-guide .hcc-legend-dot.coral{background:#b63b50}
.hcc-guide .hcc-visual-alert{background:#fff4f4;border-left:4px solid #b63b50;padding:9px;border-radius:5px;color:#7d3a45;font-size:9px;line-height:1.4}
@media(max-width:650px){.hcc-guide .hcc-visual-stage{display:flex;flex-direction:column}.hcc-guide .hcc-anatomy{order:-1;min-height:400px}.hcc-guide .hcc-anatomy img{height:400px}.hcc-guide .hcc-organ-column{display:grid;grid-template-columns:1fr 1fr;gap:6px}.hcc-guide .hcc-visual-foot{display:block}.hcc-guide .hcc-organ-head{font-size:11px}.hcc-guide .hcc-organ-card p{font-size:10px}}
@media print{.hcc-guide .hcc-visual-stage{grid-template-columns:1fr 1.4fr 1fr;min-height:160mm}.hcc-guide .hcc-anatomy{min-height:160mm}.hcc-guide .hcc-anatomy img{height:160mm}.hcc-guide .hcc-bodymap{break-inside:avoid;page-break-inside:avoid}}

/* Three deliberate card destinations; assessment remains inside Clinic workflow. */
.regimen-card[data-json-protocol-id] .card-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.regimen-card[data-json-protocol-id] .card-actions>.workflow-card-button{grid-column:1/-1}
.regimen-card .card-actions>.json-assessment-launch,.regimen-card .card-actions>.regimen-launch{display:none!important}
.regimen-card .card-actions .btn{white-space:normal;overflow-wrap:anywhere}
#jsonAssessmentScreen .assessment-heading{font-size:1.45rem;margin:0 0 16px}
#jsonImmunotherapyBloodSection .endocrine-reference-panel{grid-column:1/-1;margin:12px 0}
#jsonImmunotherapyBloodSection .endocrine-reference-panel table{width:100%;border-collapse:collapse;font-size:.9rem}
.endocrine-reference-panel th,.endocrine-reference-panel td{padding:8px;text-align:left;border-bottom:1px solid #dce6ea}
.endocrine-reference-panel input,.endocrine-reference-panel select{max-width:100%;min-width:0}
.endocrine-reference-panel .reference-table-scroll{overflow:auto}
.endocrine-context-summary{padding:12px;border:1px solid #c8dce2;border-left:4px solid #287b8c;border-radius:9px;margin:12px 0;background:#f5fafb}
.endocrine-context-summary p{margin:6px 0;overflow-wrap:anywhere}
.steroid-context{grid-column:1/-1}.steroid-context .grid{padding:12px 0}
