:root { color-scheme: light; --ink: #162b3a; --muted: #526475; --accent: #006c78; --line: #d4e1e7; --wash: #e8f4f5; }
* { box-sizing: border-box; }
body { margin: 0; background: #f3f7fa; color: var(--ink); font: 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.modal-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #be5200; outline-offset: 4px; }
main { max-width: 1536px; margin: auto; padding: 36px 32px 20px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 750; letter-spacing: .08em; margin: 0 0 6px; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0; letter-spacing: -.035em; }
.view-tag { border: 1px solid var(--line); background: white; padding: 6px 16px; border-radius: 0px; white-space: nowrap; }
.instructions { color: var(--muted); margin: 18px 0 24px; }
.atlas { background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.atlas-bar { padding: 13px 22px; background: var(--ink); color: white; display: flex; justify-content: space-between; gap: 16px; font-size: .875rem; }
.diagram-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.diagram { position: relative; width: 100%; min-width: 1050px; isolation: isolate; }
.diagram img { display: block; width: 100%; height: auto; }
#tissue-map, #hotspots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tissue { fill: transparent; stroke: transparent; stroke-width: 3; vector-effect: non-scaling-stroke; pointer-events: all; cursor: pointer; }
.tissue:hover, .tissue.is-highlighted { fill: #00798726; stroke: var(--accent); }
.marker, .label-hit { position: absolute; pointer-events: auto; }
.marker { width: 32px; height: 32px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid white; background: var(--accent); color: white; font-size: .875rem; font-weight: 750; line-height: 1; box-shadow: 0 1px 5px #142d3e55; }
.marker:hover, .marker.is-highlighted { background: #123647; box-shadow: 0 0 0 5px #006c7826; }
.label-hit { background: transparent; border: 2px solid transparent; border-radius: 4px; padding: 0; }
.label-hit:hover, .label-hit:focus-visible, .label-hit.is-highlighted { background: #00798714; border-color: var(--accent); }
.image-note { color: var(--muted); font-size: .875rem; margin: 0; padding: 14px 22px; border-top: 1px solid var(--line); }
.pan-hint { display: none; margin: 0; padding: 10px 18px; color: var(--muted); background: var(--wash); font-size: .875rem; }
.structure-section { margin-top: 30px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 1.4rem; }
.section-heading span { font-size: .875rem; color: var(--muted); }
.structure-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.structure-button { min-height: 66px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; background: white; text-align: left; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.structure-button:hover, .structure-button.is-highlighted { border-color: var(--accent); background: var(--wash); }
.number { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--wash); font-size: .875rem; font-weight: 750; }
.structure-name { font-weight: 650; line-height: 1.4; }
.structure-category { display: block; font-size: .875rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
footer { margin-top: 26px; color: var(--muted); font-size: .875rem; max-width: 900px; }
dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; color: var(--ink); background: white; box-shadow: 0 20px 80px #091f4266; overflow-y: auto; }
dialog::backdrop { background: #0d2339b3; }
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.close-button { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #f3f7fa; color: var(--ink); font-size: 1.8rem; line-height: 1; }
.close-button:hover { background: var(--wash); }
dialog h2 { font-size: 1.9rem; line-height: 1.2; margin: 10px 0 26px; }
dialog h3 { font-size: 1rem; margin: 0 0 7px; }
dialog p { margin: 0; }
.modal-section { margin: 20px 0; }
.takeaway { padding: 16px 18px; background: var(--wash); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; }
.sources {display: none;}
.sources ul { padding-left: 20px; margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
.modal-hint { color: var(--muted); font-size: .875rem; padding-top: 12px; border-top: 1px solid var(--line); }
.notice { padding: 16px; border: 1px solid var(--line); background: white; }
.logo { display: block; width: 150px; height: auto; margin: 0.5rem;}
@media (max-width: 1120px) { .pan-hint { display: block; } }
@media (max-width: 800px) { main { padding: 24px 16px; } .structure-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .view-tag, .section-heading span { display: none; } .structure-list { grid-template-columns: 1fr; } .atlas-bar { flex-wrap: wrap; padding: 12px 16px; } dialog { padding: 20px; } }
@media (forced-colors: active) { .marker { border: 2px solid ButtonText; } .tissue:hover, .tissue.is-highlighted { stroke: Highlight; } }

/* Assessment flow; the original knee atlas styles above retain its coordinates. */
[hidden] { display: none !important; }
.intro { color: var(--muted); margin: 14px 0 24px; max-width: 850px; }
.assessment-workspace { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; }
.assessment-menu { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.assessment-menu h2 { font-size: 1.65rem; line-height: 1.25; margin: 10px 0 24px; }
.assessment-options { display: grid; gap: 12px; }
.assessment-choice { display: flex; width: 100%; align-items: center; gap: 14px; text-align: left; padding: 16px; border: 1px solid var(--line); background: white; border-radius: 10px; font-weight: 650; color: var(--ink); line-height: 1.4; }
.assessment-choice small { display: block; font-size: .875rem; color: var(--muted); font-weight: 400; margin-top: 5px; }
.choice-number { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--wash); color: var(--accent); }
.assessment-choice:hover { border-color: var(--accent); }
.assessment-choice[aria-pressed="true"] { border-color: var(--accent); background: var(--wash); box-shadow: inset 4px 0 var(--accent); }
.assessment-choice[aria-pressed="true"] .choice-number { background: var(--accent); color: white; }
.mode-description { color: var(--muted); margin: 20px 0; }
.reasoning-note { padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; }
.reasoning-note summary { cursor: pointer; font-weight: 700; font-size: 1rem; }
.body-panel { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: white; text-align: center; }
.body-panel-heading { padding: 14px 22px; display: flex; justify-content: space-between; gap: 12px; background: var(--ink); color: white; font-size: .875rem; }
.person-image { position: relative; width: min(100%, 410px); margin: 0 auto; }
.person-image img { display: block; width: 100%; height: auto; }
.body-knee { position: absolute; left: 40.3%; top: 65.5%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 48px; height: 48px; border: 3px solid white; border-radius: 50%; background: #006c78ed; color: white; font-size: 2rem; line-height: 1; text-decoration: none; box-shadow: 0 0 0 7px #006c7833, 0 2px 6px #142d3e44; }
.body-knee:hover { background: #123647; }
.knee-caption { position: absolute; right: calc(100% + 12px); width: max-content; color: var(--accent); font-size: .875rem; font-weight: 700; padding: 6px 8px; border-radius: 6px; background: white; border: 1px solid var(--line); }
.body-status { margin: 0; border-top: 1px solid var(--line); padding: 14px 22px; color: var(--accent); background: #f6fbfc; }
.knee-nav { margin: 24px 0 20px; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.knee-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.assessment-tag { border: 1px solid var(--accent); border-radius: 30px; padding: 5px 15px; background: var(--wash); color: var(--accent); font-weight: 650; }
#knee-title { margin: 0; font-size: 2rem; }
.clinical-context { margin: 0 0 20px; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--wash); }
.modal-header .eyebrow { letter-spacing: .025em; line-height: 1.5; }
@media (max-width: 900px) { .assessment-workspace { grid-template-columns: 290px minmax(0,1fr); gap: 16px; } .assessment-menu { padding: 20px; } .knee-caption { right: auto; left: calc(100% + 10px); } }
@media (max-width: 700px) { .assessment-workspace { grid-template-columns: 1fr; } .assessment-menu { padding: 20px; } .assessment-menu h2 { margin-bottom: 16px; } .person-image { max-width: 350px; } .body-panel-heading { padding: 12px 16px; } }
