/* Patient layout A, chosen 18.10.2026. Existing anatomy stays unchanged. */
#page-patient .section-header{padding:24px max(24px,calc((100vw - 1240px)/2));background:#edf4f1;color:var(--navy)}
#page-patient .section-header .breadcrumb{color:#536e68;margin-bottom:9px;font-size:12px}
#page-patient .section-header h2{font-family:'Libre Baskerville',serif;font-size:27px;line-height:1.4;margin:0 0 6px}
#page-patient .section-header p{color:#536e68;max-width:none;margin:0;font-size:15px;line-height:1.5}
#page-patient .section-content{max-width:1288px;margin:auto;padding:18px 24px 24px}
.patient-heading-row{display:flex;justify-content:space-between;align-items:center;gap:24px}
.patient-heading-row>div{min-width:0}
.patient-oncologist-link{flex:0 0 auto;min-height:56px;padding:14px 24px;border:1px solid #8ca9a1;border-radius:8px;background:transparent;color:var(--navy);font:600 16px/1.4 'DM Sans',sans-serif;cursor:pointer}
.patient-oncologist-link:hover{background:#fff;border-color:var(--teal)}
.patient-back{display:inline-flex;align-items:center;min-height:44px;margin:0 0 8px;padding:0;border:0;background:transparent;color:var(--teal);font:500 13px/1.5 'DM Sans',sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.patient-back:focus-visible,.patient-oncologist-link:focus-visible{outline:2px solid var(--teal);outline-offset:4px}
#patient-oncologist-panel{scroll-margin-top:84px}
#patient-oncologist-title:focus{outline:none}
#page-patient [hidden]{display:none!important}
.patient-workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start}
#mount-pat .patient-results{min-width:0}
#mount-pat .patient-anatomy{position:sticky;top:84px;display:flex;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:10px 17px;border-radius:13px;background:#f8faf8;max-height:none;overflow:visible}
#mount-pat .anatomy-filter{display:contents}
#mount-pat .anatomy-title{display:none}
#mount-pat .anatomy-intro{order:-2;font-size:13px;line-height:1.5;margin:0 0 6px}
#mount-pat .anatomy-visual{order:-1;margin:0}
#mount-pat .anatomy{height:clamp(230px,40vh,320px);width:100%;max-width:100%;object-fit:contain}
#mount-pat .anatomy-status{font-size:12px;line-height:1.5;margin:4px 0 0}
#mount-pat .anatomy-results{display:none}
/* Keep the safety information after all study content. */
#mount-pat>.notice.info{margin:20px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--gray-mid);background:transparent;font-size:12px;line-height:1.65;color:#536660}
/* One compact search field above the results, with its description available to assistive technology. */
#page-patient .ai{margin:0 0 20px;padding:0;border:0;background:transparent;min-width:0;width:100%;max-width:none}
#page-patient .ai-row{display:flex;flex-wrap:nowrap;gap:4px;align-items:center;padding:4px 5px 4px 16px;border:1px solid #83aaa1;border-radius:28px;background:#fff;box-shadow:0 3px 13px rgba(31,77,65,.09)}
#page-patient .ai-row:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px rgba(42,122,111,.16)}
#page-patient .ai-in{min-width:0;flex:1 1 0;width:100%;height:42px;min-height:42px;padding:0;border:0;border-radius:0;background:transparent;font-size:14px;box-shadow:none}
#page-patient .ai-in:focus{border:0;box-shadow:none}
#page-patient .ai-in::placeholder{color:#687d77;opacity:1}
#page-patient .ai-go{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:0;border-radius:50%}
#page-patient .ai-head.sr-only,#page-patient .ai-hint.sr-only,#mount-pat .anatomy-intro,#mount-pat .anatomy-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* Three direct filters below the bust. The panel never scrolls internally. */
#mount-pat .patient-anatomy .filtres{order:0;margin:8px 0 0;padding:0;border:0;background:transparent}
#mount-pat .stadebtns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%;margin:0}
#mount-pat .stage-button{min-width:0;min-height:38px;padding:6px 3px;border:1px solid #c9d7d2;border-radius:7px;background:#fff;color:var(--navy);font:500 11px/1.35 'DM Sans',sans-serif;cursor:pointer}
#mount-pat .stage-button[aria-pressed=true]{background:var(--teal);border-color:var(--teal);color:white}
#mount-pat .stage-button:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
#mount-pat .anatomy-results{order:1}
#mount-pat .countbar{margin:0 0 16px;padding:0 0 13px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;border-bottom:2px solid #d8e5df;scroll-margin-top:86px}
#mount-pat .patient-results-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
#mount-pat .patient-results-heading h3{margin:0;font:400 23px/1.4 'Libre Baskerville',serif;color:var(--navy)}
#mount-pat .patient-count{display:inline-flex;align-items:baseline;gap:5px;padding:5px 11px;border-radius:18px;background:#e7f1ec;color:#285e52;font-size:13px;line-height:1.5}
#mount-pat .patient-count b{color:inherit;font-size:17px}
#mount-pat .patient-list{display:grid;grid-template-columns:1fr;gap:11px}
#mount-pat .card.pat{border-radius:11px}
#mount-pat .card.pat .card-in{padding:16px 18px;gap:0}
#mount-pat .card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 6px}
#mount-pat .pat-organe{font-size:15px;line-height:1.4;margin:0}
#mount-pat .pat-code{font-size:11px;line-height:1.5;color:#5b706b;text-align:right;flex:0 0 auto;max-width:38%}
#mount-pat .pat-sit{margin:0 0 8px;gap:5px}
#mount-pat .pat-sit span{font-size:11px;padding:3px 7px}
#mount-pat .pat-line{font-size:14px;line-height:1.6;margin:0 0 9px}
#mount-pat .slot-state{display:inline-block;align-self:start;font-size:12px;line-height:1.5;padding:5px 8px;margin:0 0 8px}
#mount-pat .video-link{font-size:13px;margin:0 0 8px}
#mount-pat .patient-extra{margin:0 0 10px}
#mount-pat .patient-extra summary{font-size:12px;line-height:1.5;color:#276e66;cursor:pointer}
#mount-pat .patient-extra[open] summary{margin-bottom:8px}
#mount-pat .pat-meta{font-size:11px;line-height:1.5;padding:0;border:0;margin:8px 0 0}
#mount-pat .card-actions{margin:0;padding:0;gap:8px}
#mount-pat .card-actions .btn-contact{flex:0 1 auto;min-width:125px;padding:8px 20px;min-height:40px;font-size:13px}
#mount-pat .card-actions .btn-link{padding:8px 12px;min-height:40px;font-size:12px}
.patient-reset,.patient-pagination button{border:1px solid var(--gray-mid);border-radius:7px;background:white;color:var(--navy);padding:7px 10px;min-height:36px;font:12px 'DM Sans',sans-serif;cursor:pointer}
.patient-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:16px 0;font-size:12px}
.patient-pagination button:disabled{opacity:.4;cursor:default}
#mount-pat .nl{margin-top:18px;padding:18px 20px;border-radius:11px}
#mount-pat .nl summary{font-size:14px}
#mount-pat .nl .alert-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
#mount-pat .majline{margin:12px 0 0;font-size:11px}
#page-patient .patient-resources{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 22px;margin-top:22px;padding:18px 0 0;font-size:12px}
#page-patient .patient-resources h3{font-family:'DM Sans',sans-serif;font-size:13px;margin:0}
#page-patient .patient-resources p{margin:0}
#patient-oncologist-panel h2{margin:8px 0;font:22px 'Libre Baskerville',serif}
#patient-oncologist-panel>p{font-size:14px;line-height:1.6;color:#536e68;margin:0 0 18px}
@media(max-width:919px){.patient-workspace{grid-template-columns:1fr;gap:16px}#mount-pat .patient-anatomy{position:static;max-height:none;overflow:visible;display:grid;grid-template-columns:260px minmax(0,1fr);gap:5px 20px;align-items:center}#mount-pat .anatomy-visual{grid-column:1;grid-row:1/7;order:0;margin:0}#mount-pat .anatomy{height:260px}#mount-pat .anatomy-title,#mount-pat .anatomy-intro{order:0}#mount-pat .anatomy-filter{display:contents}#mount-pat .anatomy-results{display:block;font-size:12px;padding:8px 12px;min-height:38px}#page-patient .section-content{padding:18px 20px}}
@media(max-width:600px){#page-patient .section-header{padding:20px 16px}#page-patient .section-header h2{font-size:23px}#page-patient .section-content{padding:14px 16px 22px}.patient-heading-row{flex-direction:column;align-items:flex-start;gap:16px}#mount-pat .patient-anatomy{display:flex;padding:15px}#mount-pat .anatomy-title{order:-3}#mount-pat .anatomy-intro{order:-2}#mount-pat .anatomy-visual{order:-1}#mount-pat .anatomy{height:240px}#mount-pat .anatomy-results{margin-top:9px}#mount-pat .card.pat .card-in{padding:14px}#mount-pat .pat-code{font-size:10px}#mount-pat .pat-organe{font-size:14px}#page-patient .ai-head{flex-wrap:wrap}#page-patient .ai-row{gap:7px}#page-patient .ai-in{min-width:0}#page-patient .ai-badge{font-size:10px}#mount-pat .nl{padding:18px 16px}#mount-pat .nl .alert-fields{grid-template-columns:1fr}#mount-pat .nl .alert-email{grid-column:auto}#mount-pat .countbar{scroll-margin-top:15px}.patient-pagination{gap:8px;font-size:11px}#page-patient .patient-resources{gap:10px}}



/* Direct organ choices below the heading, synchronized with the drawing. */
#mount-pat .anatomy-title{order:-4}
#mount-pat .patient-anatomy .fl{order:-3;margin:2px 0 9px;padding:0}
#mount-pat .patient-anatomy .orgbtns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:100%;margin:0}
#mount-pat .patient-anatomy .orgb{min-height:38px;padding:6px 7px;font-size:11px;line-height:1.35;gap:5px;border-radius:7px;overflow-wrap:anywhere}
#mount-pat .patient-anatomy .orgb:first-child{grid-column:1/-1;justify-content:center;min-height:32px}
#mount-pat .patient-anatomy .anatomy-number{width:17px;height:17px;flex-basis:17px;font-size:9px}
/* Crop only unused space above the bust; keep the organs at their enlarged scale. */
#mount-pat .anatomy{height:341.666667px}
#mount-pat .anatomy-intro{font-size:12px}
@media(min-width:601px) and (max-width:919px){#mount-pat .anatomy-title,#mount-pat .patient-anatomy .fl{order:0}#mount-pat .patient-anatomy .fl{grid-column:2}#mount-pat .anatomy-visual{grid-row:1/8}}
@media(max-width:600px){#mount-pat .patient-anatomy .orgb{min-height:44px;font-size:12px}#mount-pat .anatomy{height:324.583333px}}

/* On short desktop windows the whole panel travels with the page. */
@media(min-width:920px) and (max-height:759px){#mount-pat .patient-anatomy{position:static;top:auto}}

/* The sidebar never gains its own scrollbar, even in translated or zoomed layouts. */
#mount-pat .patient-anatomy.sidebar-flow{position:static;top:auto}
@media(min-width:601px) and (max-width:919px){#mount-pat .patient-anatomy .filtres{grid-column:1;grid-row:8;order:0}#mount-pat .anatomy-visual{grid-row:1/8}}
@media(max-width:600px){#page-patient .ai-in{font-size:16px}#page-patient .ai-row{padding-left:13px}#mount-pat .patient-results-heading h3{font-size:21px}#mount-pat .stage-button{min-height:44px;font-size:11px}#mount-pat .countbar{scroll-margin-top:84px}#mount-pat>.notice.info{font-size:12px}}
