/* HN-01 TRIS v3 — a self-contained Breast-inspired clinical workspace; scoped to this plugin only. */
.hn-tris-root{--hn-ink:#193d43;--hn-muted:#58737a;--hn-line:#b9d3d1;--hn-accent:#117b80;--hn-soft:#f3faf9;--hn-white:#fff;container-type:inline-size;max-width:1440px;margin:0 auto;padding:14px;color:var(--hn-ink);font-family:inherit;font-size:16px;line-height:1.55}
.hn-tris-root *{box-sizing:border-box}.hn-tris-root [hidden]{display:none!important}.hn-tris-root :where(button,input,select){font:inherit;color:var(--hn-ink)}
.hn-tris-root button{cursor:pointer}.hn-tris-root button:disabled{opacity:.5;cursor:not-allowed}
.hn-tris-root :where(button,input,select,a,summary):focus-visible{outline:3px solid var(--hn-accent);outline-offset:2px}
.hn-tris-root button,.hn-tris-root select,.hn-tris-root input{min-height:42px;border-radius:8px;border:1px solid #9fc5c2;background:var(--hn-white);padding:8px 11px}
.hn-tris-root button:hover:not(:disabled){background:#e4f3f0}.hn-tris-root button[aria-pressed="true"],.hn-tris-root button[aria-current="page"]{background:#d8efec;box-shadow:inset 0 -3px var(--hn-accent);font-weight:750}
.hn-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}.hn-header h1{font-size:clamp(23px,2.8vw,32px);line-height:1.16;margin:0;color:#123f42}.hn-header p{margin:5px 0 0;color:var(--hn-muted)}.hn-header .hn-kicker{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:var(--hn-accent);margin:0 0 4px}.hn-version{white-space:nowrap;color:var(--hn-muted);border:1px solid var(--hn-line);background:var(--hn-soft);border-radius:999px;padding:6px 9px;font-size:12px;font-weight:700}
.hn-notice{border-left:4px solid #ac7939;background:#fff8eb;padding:9px 12px;border-radius:8px;margin:8px 0 14px;font-size:13px}
.hn-case-select{border:1px solid var(--hn-line);background:var(--hn-white);border-radius:13px;padding:12px;margin-bottom:10px}
.hn-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e1ebea;padding:0 0 9px;margin-bottom:10px}.hn-section-title h2{font-size:18px;font-weight:780;margin:0}.hn-section-title span{font-size:12px;color:var(--hn-muted);text-align:right}
.hn-demo-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.hn-demo-grid .hn-demo{min-height:47px;font-size:13px;text-align:left;padding:8px 10px;overflow-wrap:anywhere}.hn-demo b{font-size:13px;color:var(--hn-accent);margin-right:5px}
.hn-subnote{font-size:13px;color:var(--hn-muted);margin:8px 0}.hn-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:9px;background:var(--hn-soft);border:1px solid var(--hn-line);padding:10px;border-radius:11px;margin-bottom:10px}.hn-toolbar label{display:flex;flex-direction:column;font-size:12px;font-weight:650;gap:4px;min-width:175px}.hn-toolbar label:has(#hn-preset){flex:1 1 250px}.hn-toolbar select,.hn-toolbar input{width:100%;max-width:100%;font-size:13px}.hn-segment{display:flex;gap:5px;align-items:center}.hn-segment button{font-weight:650}
.hn-navtabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.hn-navtabs button{font-weight:700;flex:1 1 150px;text-align:center;padding:9px}
.hn-layout{display:grid;grid-template-columns:minmax(350px,.78fr) minmax(0,1.22fr);gap:14px;align-items:start;min-width:0}
.hn-pane{background:var(--hn-white);border:1px solid var(--hn-line);border-radius:13px;padding:15px;min-width:0;box-shadow:0 3px 16px rgba(20,65,65,.035)}
.hn-input{background:#fcfefd}.hn-output{background:#fcfefd;min-height:340px}.hn-case-summary{border:1px solid #c5dcda;background:#eaf6f4;border-radius:9px;padding:12px;font-size:14px;font-weight:750;overflow-wrap:anywhere}
.hn-guide{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0}.hn-guide button{font-size:13px;min-height:40px;background:#e8f6f2}.hn-fieldgroup{border:1px solid #bed7d4;border-radius:10px;margin:0 0 10px;background:#fff;overflow:hidden}.hn-fieldgroup summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;gap:8px;padding:12px 11px;background:#f7fbfa}.hn-fieldgroup summary strong{font-size:15px}.hn-fieldgroup summary span{font-size:12px;color:var(--hn-muted)}
.hn-fieldgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:12px;border-top:1px solid #e0ecea}.hn-field label{display:block;font-size:14px;font-weight:750;margin-bottom:5px}.hn-field select{width:100%;font-size:14px;min-width:0}.hn-input-footer{display:flex;justify-content:flex-end;margin-top:14px}.hn-input-footer button{background:#0d767c;color:#fff;font-weight:800}.hn-input-footer button:hover{background:#075f63;color:#fff}
.hn-filter{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 13px}.hn-filter button{font-size:12px;min-height:35px;padding:6px 9px}
.hn-warning{border-left:5px solid #a36a37;background:#fff8ed;border-radius:7px;padding:10px 12px;font-size:14px;color:#5a3a23;margin:7px 0}.hn-context{color:#805c2c;font-size:13px}.hn-empty{border:1px dashed #b9cfc9;border-radius:9px;padding:15px;background:#f6faf9;font-size:14px}
.hn-modality-group{margin:14px 0 20px}.hn-modality-group>h3{font-size:16px;color:#144a4b;border-bottom:2px solid #b3d8d2;margin:0 0 8px;padding:6px 4px}.hn-modality-group>h3 span{font-size:12px;color:var(--hn-muted);font-weight:550}
.hn-treatment{padding:14px;margin:0 0 9px;background:#fff;border:1px solid #c1d7d5;border-left:5px solid #6f9090;border-radius:11px;overflow-wrap:anywhere}.hn-treatment h3{font-size:17px;line-height:1.4;margin:9px 0 6px;color:#133c42}.hn-treatment p{font-size:15px;margin:6px 0 10px}.hn-treatment[data-clinical-status="indicated"]{border-left-color:#087d7d}.hn-treatment[data-clinical-status="conditional"]{border-left-color:#397c8a}.hn-treatment[data-clinical-status="alternative"]{border-left-color:#6b91ba}.hn-treatment[data-clinical-status="not routine"]{border-left-style:dashed;border-left-color:#667777}.hn-treatment[data-clinical-status="requires review"]{border-left-style:dashed;border-left-color:#aa743b}
.hn-cardhead{display:flex;gap:10px;align-items:center;justify-content:space-between}.hn-modality{font-weight:750;font-size:12px;background:#e7f2f1;padding:4px 8px;border-radius:7px}.hn-status{font-size:12px;font-weight:700;border:1px solid #a1bbbb;border-radius:999px;padding:3px 9px;text-align:right}
.hn-regimen-wrap{border-top:1px solid #e1eceb;padding-top:7px;margin-top:11px}.hn-regimen-wrap h4{font-size:14px;margin:3px 0 9px}.hn-regimen{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}.hn-regimen>div{border:1px solid #bdd8d5;background:#f1faf8;border-radius:9px;padding:11px;min-width:0}.hn-regimen dt{font-size:12px;font-weight:700;color:#2e6667}.hn-regimen dd{margin:5px 0 0;font-size:16px;font-weight:750;color:#123d42;overflow-wrap:anywhere}.hn-prescription-disclaimer{font-size:12px!important;color:#77552d}.hn-precautions{font-size:13px;margin:10px 0}.hn-precautions summary{cursor:pointer;font-weight:750}.hn-precautions li{margin:4px 0}
.hn-card-evidence{border-top:1px solid #e2eceb;margin-top:10px;padding-top:9px;font-size:13px}.hn-card-evidence summary{font-weight:800;cursor:pointer;color:#14696d}.hn-card-evidence p{font-size:13px;margin:6px 0}.hn-tris-root a{color:#00666a;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.hn-explainer{font-size:14px;line-height:1.55;background:#eef8f6;border-radius:9px;padding:12px}.hn-report,.hn-trial{border:1px solid #bfd8d5;border-radius:11px;padding:14px;margin:9px 0;background:#fff}.hn-report-head{display:flex;align-items:start;justify-content:space-between;gap:9px}.hn-report-head b{font-size:15px}.hn-report-head span{font-size:12px;white-space:nowrap;color:var(--hn-muted);border:1px solid var(--hn-line);border-radius:999px;padding:4px 6px}.hn-report p,.hn-trial p{font-size:13px;margin:6px 0}.hn-report a,.hn-trial a{font-weight:700}.hn-trial-search{border:1px solid var(--hn-line);background:#f1f8f7;border-radius:10px;padding:13px;margin-top:16px}.hn-trial-search h3{font-size:16px;margin:0 0 6px}.hn-trial-search a{display:inline-block;margin:7px 14px 2px 0}.hn-trial-date{color:var(--hn-muted)}
.hn-board{padding:12px;background:#f4faf9;border:1px solid var(--hn-line);border-radius:10px}.hn-board h3{margin:0 0 12px;font-size:18px}.hn-board p{font-size:14px;line-height:1.6;border-bottom:1px solid #e2eeec;padding-bottom:8px}.hn-board strong{display:block;color:#176367}
#hn-transfer{margin-top:12px;border:1px solid var(--hn-line);border-radius:11px;padding:13px}#hn-transfer h3{font-size:16px}#hn-transfer button,#hn-transfer select{margin:4px}#hn-transfer pre{overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;font-size:12px}
.hn-footer{margin-top:15px;padding:12px 6px;color:var(--hn-muted);font-size:12px}
@container (max-width:1080px){.hn-layout{grid-template-columns:minmax(0,1fr)}.hn-demo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hn-navtabs button{flex-basis:145px}}
@container (max-width:680px){.hn-tris-root{padding:7px}.hn-header{align-items:flex-start;flex-wrap:wrap}.hn-header h1{font-size:23px}.hn-toolbar{align-items:stretch}.hn-toolbar>*{flex:1 1 140px}.hn-toolbar label:has(#hn-preset){flex:1 1 100%}.hn-demo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hn-fieldgrid{grid-template-columns:minmax(0,1fr)}.hn-regimen{grid-template-columns:1fr}.hn-pane{padding:11px}.hn-navtabs button{flex:1 1 40%;font-size:13px}}
@media(prefers-reduced-motion:reduce){.hn-tris-root *{scroll-behavior:auto!important;transition-duration:0s!important}}
@media(forced-colors:active){.hn-tris-root button[aria-pressed="true"]{outline:2px solid Highlight}.hn-tris-root .hn-treatment{border-left:5px solid CanvasText}}

/* v3.0.1: continuous Breast-style clinical dashboard, status and modality distinction. */
.hn-tris-root .hn-dashboard-section{margin-top:22px;border-top:3px solid #b8d8d5;padding-top:15px;scroll-margin-top:24px}
.hn-tris-root .hn-dashboard-heading{font-size:clamp(19px,2vw,24px);margin:0 0 10px;color:#134c54;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.hn-tris-root .hn-dashboard-heading span{font-size:13px;font-weight:700;background:#e8f3f1;padding:5px 9px;border-radius:9px}
.hn-tris-root #hn-results-summary{background:#ecf7f4;padding:11px;border-radius:9px;border:1px solid #c4ded8}
.hn-tris-root .hn-modality-group[data-modality-group="Systemic"]>.hn-treatment{border-left-color:#6f55aa;background:#faf8ff}
.hn-tris-root .hn-modality-group[data-modality-group="Immunotherapy"]>.hn-treatment{border-left-color:#b56a32;background:#fffbf4}
.hn-tris-root .hn-modality-group[data-modality-group="Radiotherapy"]>.hn-treatment{border-left-color:#187caa;background:#f5faff}
.hn-tris-root .hn-modality-group[data-modality-group="Surgery"]>.hn-treatment{border-left-color:#197c61;background:#f5fcf8}
.hn-tris-root .hn-modality-group[data-modality-group="Targeted"]>.hn-treatment{border-left-color:#9a4f78;background:#fff8fc}
.hn-tris-root .hn-treatment[data-clinical-status="not routine"]{background:#f4f6f6!important;border-left-style:dashed}
.hn-tris-root .hn-treatment[data-clinical-status="requires review"]{background:#fff9ec!important;border-left-style:dashed}
.hn-tris-root .hn-treatment[data-clinical-status="indicated"] .hn-status{background:#d9f1e5;border-color:#4a9978;color:#145e45}
.hn-tris-root .hn-treatment[data-clinical-status="conditional"] .hn-status{background:#e4edf9;border-color:#7196bb;color:#284b71}
.hn-tris-root .hn-treatment[data-clinical-status="requires review"] .hn-status{background:#fff0d5;border-color:#bd8a3e;color:#725017}
.hn-tris-root .hn-treatment[data-clinical-status="not routine"] .hn-status{background:#e8eeee;color:#465c60}
.hn-tris-root .hn-report,.hn-tris-root .hn-trial{border-left:4px solid #20847d;background:#fbfefd}
.hn-tris-root .hn-trial{border-left-color:#8755a0}
.hn-tris-root .hn-navtabs{position:relative}
.hn-tris-root .hn-navtabs button{border:1px solid #8bbebb;background:#e8f5f3;color:#185b60}
.hn-tris-root .hn-navtabs button[aria-current="page"]{background:#13787c;color:#fff;box-shadow:inset 0 -3px #09575b}
.hn-tris-root #hn-cards{display:block}.hn-tris-root .hn-modality-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}.hn-tris-root .hn-modality-group>h3{grid-column:1/-1}.hn-tris-root .hn-treatment{margin:0;align-self:start}
@container (max-width:790px){.hn-tris-root .hn-modality-group{grid-template-columns:minmax(0,1fr)}}

/* 3.0.2: anatomical localization is visible in Simple mode, without forcing staging or target decisions. */
.hn-field:has(#hn-f-subsite),.hn-field:has(#hn-f-laterality){border-left:3px solid #138f94;padding-left:12px;background:rgba(19,143,148,.055);border-radius:8px}
.hn-field select:focus-visible{outline:3px solid #127a81;outline-offset:2px}

/* v3.0.5: never convey clinical-documentation status using colour alone */
.hn-tris-root .hn-regimen-audit{margin:12px 0;padding:12px 14px;border-inline-start:4px solid #ac742d;border-radius:8px;background:rgba(180,125,39,.09);font-size:.94em;line-height:1.45}
.hn-tris-root .hn-regimen-audit strong{font-weight:750}
.hn-tris-root .hn-regimen-audit ul{margin:.4rem 0 0 1.1rem;padding:0}
.hn-tris-root .hn-regimen-audit li+li{margin-top:.25rem}

/* v3.0.6: source provenance legible without opening every card */
.hn-root .hn-evidence-summary{margin:12px 0;padding:10px 12px;border:1px solid #a9cfc9;border-radius:10px;background:#eef9f6;display:flex;flex-wrap:wrap;gap:7px 14px;align-items:center;font-size:.9rem;color:#154d47}
.hn-root .hn-evidence-summary strong{font-weight:750}
.hn-root .hn-evidence-summary span{flex:1 1 200px}
.hn-root .hn-evidence-summary a{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.hn-root .hn-source-role{font-size:.9rem;line-height:1.5}
.hn-root .hn-source-role a{display:inline-block;margin:2px;padding:3px 6px;border-radius:5px;background:#e9f4f2;text-decoration:underline}
.hn-root .hn-treatment{scroll-margin-top:110px}
@media(max-width:640px){.hn-root .hn-evidence-summary{display:block}.hn-root .hn-evidence-summary>*{display:block;margin:4px 0}}

/* v3.0.8 — single-owner, Breast-like vertical clinical flow with independently flowing card heights. */
.hn-tris-root .hn-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:15px!important}
.hn-tris-root .hn-input,.hn-tris-root .hn-output{width:100%;min-width:0}
.hn-tris-root .hn-input .hn-fieldgroup{max-width:none}
.hn-tris-root .hn-modality-group{display:block!important;break-inside:avoid;min-width:0}
.hn-tris-root .hn-modality-cardflow{columns:2 325px;column-gap:13px}
.hn-tris-root .hn-modality-cardflow>.hn-treatment{box-sizing:border-box;display:inline-block;width:100%;break-inside:avoid-column;-webkit-column-break-inside:avoid;vertical-align:top;margin:0 0 13px;min-width:0}
.hn-tris-root .hn-treatment h3{font-size:clamp(17px,1.5vw,20px);line-height:1.35}
.hn-tris-root .hn-treatment p{line-height:1.52}
.hn-tris-root #hn-results-summary{font-size:15px;line-height:1.55;border-left:5px solid #127d7f;background:#eaf7f4}
.hn-tris-root .hn-summary-metrics{display:block;margin-top:5px;font-size:13px;font-weight:550}
.hn-tris-root .hn-safety-state{padding:16px 18px;border:2px solid #b67d3c;border-left-width:7px;border-radius:12px;background:#fff7e8;color:#53391d;margin:12px 0 18px;line-height:1.5}
.hn-tris-root .hn-safety-state strong{font-size:19px;display:block}
.hn-tris-root .hn-safety-state p{margin:9px 0}
.hn-tris-root .hn-demo[aria-pressed="true"]{border:2px solid #147b7d;background:#e0f4ee;box-shadow:inset 0 0 0 1px #147b7d}
.hn-tris-root .hn-navtabs button,.hn-tris-root .hn-filter button{font-weight:750}
@container (max-width:790px){.hn-tris-root .hn-modality-cardflow{columns:1!important}}
@media(max-width:700px){.hn-tris-root .hn-modality-cardflow{columns:1!important}}

/* Evidence focus is a compact label, not a second alert banner. */
.hn-root .hn-report-focus{font-size:.83rem;font-weight:650;color:var(--hn-teal,#126c70);margin:.2rem 0 .3rem;}
