/* Tablet and phone are the primary consultation surfaces. */
:root{--reading-size:17px;--page-gutter:clamp(20px,3vw,64px)}
html{scroll-padding-bottom:100px}body{font-size:16px;line-height:1.6}button,a,input,summary{touch-action:manipulation}button{min-height:48px}button:disabled{opacity:.38}p{overflow-wrap:break-word}
.education.section,.result.section{width:100%;max-width:none;margin:0;padding:64px var(--page-gutter)}
.education .lesson{width:100%;max-width:none;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:stretch}
.education .lesson-copy{padding:32px;justify-content:flex-start}.education .lesson-copy h3{font-size:clamp(25px,2vw,34px);line-height:1.5}.education .lesson-copy>p{font-size:18px;line-height:1.95;max-width:50ch}.education .note p{font-size:15px;line-height:1.85}.education .note b{font-size:15px}.education .step-nav{gap:12px;margin-top:24px}.education .step-nav .round{width:auto;min-width:100px;min-height:50px;padding:10px 18px;border-radius:10px;font-size:16px}.education .step-nav>span{font-size:14px}
.section-head h2,.result h2{font-size:clamp(29px,3vw,42px)}.section-head p,.result>p,.lesson-context{font-size:16px;line-height:1.8}.overline,.eyebrow{font-size:12px}.education .tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:visible}.education .tabs button{font-size:16px;min-height:54px;padding:12px 16px;white-space:normal;line-height:1.5}.lesson-visual .region-structure-head{font-size:12px}.lesson-visual .region-structure-title{font-size:24px}.illustration-style-switch{margin-bottom:16px}.illustration-style-switch>span{font-size:13px}.illustration-style-switch button{font-size:15px;min-height:48px;padding:10px 18px}.lesson-visual .structure-part-tabs button{font-size:15px;min-height:56px;line-height:1.5}.lesson-visual .structure-part-copy{font-size:16px}.lesson-visual .structure-disclaimer{font-size:13px}.anatomy-hotspot,.anatomy-hotspot.active{width:48px;height:48px;font-size:17px}.anatomy-focus-label{font-size:13px}.lesson-sources,.lesson-sources>span{font-size:14px}.lesson-sources a{display:inline-flex;align-items:center;min-height:44px;padding:6px 8px;background:#eee;border-radius:7px}
.feedback h3{font-size:24px}.feedback p{font-size:16px}.feedback-buttons button,.primary,.outline,.record-primary,.record-secondary{font-size:16px;min-height:52px;line-height:1.5}.archive-action p{font-size:16px}.archive-action small{font-size:14px}.archive-action-buttons button{font-size:16px;min-height:54px}.result-grid span{font-size:14px}.result-grid strong{font-size:17px}.result .hint{font-size:14px!important}.result .text-btn{font-size:16px;min-height:48px}.result .actions button{font-size:15px;min-height:48px}.section-head p,.lesson-context,.structure-part-copy,.note p,.record-muted{color:#606060}
#start{font-size:17px;min-height:56px}.consult-panel{overflow:auto}.consult-panel h2{font-size:29px}.panel-top,.panel-top #region-count,.region-insight-label{font-size:13px}.region-insight p{font-size:16px;line-height:1.85}.regions{gap:8px}.regions button{font-size:15px;min-height:48px;padding:10px 14px}.concern-heading{font-size:18px}.count,.panel-description,.privacy-note{font-size:13px}.concern{min-height:64px;padding:12px;line-height:1.5}.concern strong{font-size:16px}.concern .plus{font-size:14px}.inline-link,#region-inspect,#region-explain{font-size:15px;padding:10px 14px;margin:8px 6px 0 0;min-height:48px}#region-structure{display:none!important}.selection-notice{font-size:14px}.current-record{font-size:15px;flex-wrap:wrap}.current-record button{font-size:14px}.model-controls button{font-size:14px;min-height:48px}.portrait-zoom button{width:48px;height:48px}.portrait-zoom-status{font-size:13px}.model-caption,.gesture{font-size:12px}.portrait-viewport{touch-action:pan-y pinch-zoom}
header{position:relative;inset:auto;height:auto;min-height:84px;padding:16px var(--page-gutter);gap:16px;flex-wrap:wrap}header nav{gap:8px}header nav .text-btn,#active-customer{font-size:14px;min-height:48px;padding:10px 14px;max-width:240px}.brand{font-size:20px}.brand small{font-size:9px}
.customer-dialog{width:min(1120px,calc(100% - 32px));padding:24px;max-height:92dvh;overscroll-behavior:contain}.record-dialog-head{position:sticky;top:-24px;z-index:3;background:#fff;padding:12px 0}.record-dialog-head>button{width:48px;height:48px;flex-shrink:0}.record-dialog-head p,.record-field,.record-status,.record-muted,.record-storage-note,.record-profile small,.report-row p,.consultation-row p{font-size:15px}.record-field input,.record-field textarea,.record-field input[type=file]{font-size:17px;min-height:52px;padding:13px;background:#f1f1f1;border:0}.record-field input:focus,.record-field textarea:focus{outline:0;background:#e5e5e5}.customer-row strong{font-size:17px}.customer-row span{font-size:15px}.customer-row small,.record-list-heading>span{font-size:13px}.new-record summary{font-size:17px;min-height:52px;padding:12px;background:#eee;border-radius:8px}.report-open{font-size:16px;padding:12px;min-height:48px;background:#eee;border-radius:8px}.report-row strong,.consultation-row strong{font-size:16px}.report-row small{font-size:13px}.record-profile{flex-wrap:wrap}.record-main{scroll-margin-top:110px}.record-workspace{grid-template-columns:minmax(250px,.8fr) minmax(0,1.5fr)}
.journey-nav{display:none}
@media(min-width:1200px){.hero{height:auto;min-height:900px;padding-top:0}.hero-intro{top:70px}.portrait-stage{top:0;height:100%}.consult-panel{top:48%;max-height:calc(100% - 150px);right:var(--page-gutter);width:clamp(380px,30vw,480px)}.hero-intro{left:var(--page-gutter)}.hero-bottom{left:var(--page-gutter);right:var(--page-gutter)}}
@media(max-width:1199px),(hover:none) and (pointer:coarse){
body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,1fr);gap:24px;height:auto;max-height:none;min-height:0;padding:28px var(--page-gutter) 32px;overflow:hidden}.hero-intro{position:static;grid-column:1/-1;padding:0;max-width:none}.hero-intro h1{font-size:36px;margin:8px 0;line-height:1.4}.hero-intro h1 br{display:none}.hero-intro p{display:none}.portrait-stage{position:relative;inset:auto;left:auto;top:auto;width:100%;height:680px;min-height:0;margin:0;grid-column:1;grid-row:2}.portrait-stage #scene,.portrait-stage #scene3d{inset:0 0 120px;min-height:0}.consult-panel{position:relative;inset:auto;transform:none;width:100%;max-height:none;overflow:visible;padding:24px;margin:0;grid-column:2;grid-row:2;align-self:start}.region-insight{min-height:0;padding-top:18px}.panel-divider{margin:20px 0}.model-index{display:none}.hero-bottom{position:static;grid-column:1/-1;height:auto;min-height:44px;padding:0;gap:12px;font-size:12px;flex-wrap:wrap}.hero-bottom a{font-size:14px;min-height:44px;display:inline-flex;align-items:center}.model-controls{bottom:30px;left:0;right:0;gap:8px;justify-content:center}.model-caption{bottom:88px}.gesture{bottom:4px}.portrait-zoom{right:12px;bottom:12px}.three-tools{bottom:150px}
.education.section,.result.section{padding:40px var(--page-gutter)}.education .lesson{display:flex;flex-direction:column}.education .lesson-visual{width:100%;padding:24px}.education .lesson-visual .anatomy-interactive{width:calc(100% + 48px);margin:16px -24px 20px}.education .lesson-copy{width:100%;padding:28px}.education .lesson-copy>p{max-width:none;font-size:18px}.education .lesson-copy h3{font-size:28px}.feedback{align-items:stretch;flex-direction:column;gap:16px}.feedback-buttons{display:grid;grid-template-columns:1fr 1fr 1.3fr;width:100%;gap:10px}.feedback-buttons button{min-height:54px;font-size:16px}.archive-action{align-items:stretch;gap:24px}.archive-action-buttons{min-width:280px}
.journey-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fffffff2;backdrop-filter:blur(16px);padding:10px max(12px,env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));box-shadow:0 -4px 24px #00000008}.journey-nav a{display:flex;justify-content:center;align-items:center;gap:8px;min-height:54px;font-size:16px;text-decoration:none;color:#555;background:#eee;border-radius:10px}.journey-nav a span{font-size:12px;opacity:.75}.journey-nav a[aria-current=step]{color:#fff;background:#333}
}
@media(max-width:899px){.hero{display:flex;flex-direction:column;gap:16px}.portrait-stage{height:500px;flex:none;width:100%}.consult-panel{padding:24px}.hero-intro h1{font-size:32px;white-space:normal}.education .tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.archive-action{flex-direction:column}.record-workspace{grid-template-columns:1fr}.record-sidebar{border:0;padding:0}.record-main{border:0}.customer-list{max-height:220px}.customer-dialog{padding:20px}.record-dialog-head{top:-20px}.record-dialog-head h2{font-size:24px}.record-empty p{font-size:16px}.record-profile h3{font-size:26px}}
@media(max-width:599px){:root{--page-gutter:16px}.brand{font-size:18px}.brand small{font-size:8px}header{padding:14px 16px;gap:12px}header nav{width:100%;display:grid;grid-template-columns:.85fr 1.3fr 1fr}header nav .text-btn,#active-customer{width:100%;font-size:13px;min-height:44px;padding:8px;max-width:none}header .text-btn span{margin-left:4px}.hero{padding:20px 16px 28px}.portrait-stage{height:430px;width:calc(100% + 32px);margin:0 -16px}.hero-intro h1{font-size:28px}.consult-panel{padding:20px}.regions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.regions button{font-size:14px;padding:8px 3px}.concern strong{font-size:15px}.concerns{gap:8px}.education.section{padding:36px 12px}.education .section-head{margin:0 4px 20px}.section-head h2,.result h2{font-size:28px}.education .tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.education .tabs button{font-size:15px;padding:10px 8px;min-height:54px}.education .lesson-visual{padding:18px 12px}.education .lesson-visual .anatomy-interactive{width:calc(100% + 24px);margin:14px -12px 18px}.illustration-style-switch{width:100%;gap:5px}.illustration-style-switch>span{font-size:12px;padding:0 4px}.illustration-style-switch button{flex:1;font-size:14px;padding:10px 8px}.lesson-visual .region-structure-head{font-size:11px}.lesson-visual .region-structure-title{font-size:21px}.lesson-visual .structure-part-tabs button{font-size:14px;padding:10px 4px;min-height:62px}.lesson-visual .structure-part-copy{font-size:15px}.lesson-visual .structure-disclaimer{font-size:12px}.education .lesson-copy{padding:24px 18px}.education .lesson-copy h3{font-size:25px}.education .lesson-copy>p{font-size:17px;line-height:1.9}.education .note p{font-size:15px}.education .step-nav .round{min-width:92px;padding:10px 14px}.feedback-buttons{grid-template-columns:1fr 1fr}.feedback-buttons>.primary{grid-column:1/-1}.archive-action{padding:22px 18px}.archive-action-buttons{min-width:0}.archive-action h3{font-size:25px}.result .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.customer-dialog{width:calc(100% - 16px);padding:18px 14px;max-height:94dvh}.record-dialog-head{top:-18px}.record-dialog-head h2{font-size:22px}.record-dialog-head p{font-size:14px}.record-profile{padding:16px}.report-row{flex-wrap:wrap}.report-upload{padding:16px}.journey-nav a{font-size:14px;gap:5px}.journey-nav a span{font-size:11px}.portrait-zoom button{width:48px;height:48px}.portrait-zoom{right:16px}.detail-copy p{font-size:17px}.detail-copy h2{font-size:25px}#detail-close{width:48px;height:48px}footer{font-size:13px;gap:20px}footer a{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Keep the main action full width instead of the old desktop inline row. */
.consult-panel #start{display:flex;width:100%;max-width:none;min-width:0;margin-top:22px;justify-content:space-between;white-space:normal;gap:14px}.consult-panel .privacy-note{display:block;width:100%;margin:12px 0 0;text-align:center;font-size:13px}.consult-panel .region-insight p{font-size:16px}.consult-panel #region-description{min-height:0}.education .feedback-buttons button{font-size:16px}
@media(max-width:1199px),(hover:none) and (pointer:coarse){.consult-panel .concerns{grid-template-columns:repeat(2,minmax(0,1fr))}.consult-panel .region-insight{padding:18px 0}.education .lesson-visual .anatomy-art{max-height:none}.hero .gesture{display:block;font-size:12px;max-width:100%;text-align:center}.hero .model-controls{width:100%}}

/* Explicit geometry prevents global touch-target heights from stretching face circles. */
.portrait-hotspots .flat-hotspot{width:48px;height:48px;min-width:48px;min-height:48px;max-width:48px;max-height:48px;aspect-ratio:1;padding:0;box-sizing:border-box;border-radius:50%!important;touch-action:pan-y pinch-zoom}
.portrait-hotspots .flat-hotspot .hotspot-core,.portrait-hotspots .flat-hotspot.selected .hotspot-core{left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;aspect-ratio:1}
.education .step-nav button.round{display:inline-flex;align-items:center;justify-content:center;width:auto;height:52px;min-width:108px;min-height:52px;padding:10px 18px;border-radius:10px!important;aspect-ratio:auto;flex-shrink:0;line-height:1.4}
#customer-dialog .record-dialog-head{position:relative;top:auto;background:transparent!important;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
