/* Final layout rules: stable columns, natural heights, undistorted assets. */
:root{--sidebar-width:232px;--content-width:1320px;--card-gap:20px;--card-radius:14px;--card-border:#e4d9d2}
html{overflow-x:clip}body{font-size:16px}main{min-width:0}button,input,textarea{font-weight:400}button.btn,button.textbtn{font-weight:600}
.dashboardGrid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);grid-template-rows:none;gap:var(--card-gap);align-items:start;margin:0}
.dashboardPrimary,.dashboardSecondary{display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
.dashboardPrimary>*,.dashboardSecondary>*{grid-column:auto;grid-row:auto;order:initial;width:100%;min-width:0;margin:0;align-self:stretch}
.dashboardGrid .paper,.dashboardGrid .sampleDrawer{border:1px solid var(--card-border);border-radius:var(--card-radius);padding:24px;box-shadow:0 4px 16px #40201d06}
.dashboardGrid .paper+.paper{margin-top:0}.dashboardGrid h2,.dashboardGrid summary{font-size:22px;line-height:1.3;letter-spacing:-.4px;margin:0 0 8px}.dashboardGrid p{line-height:1.6}.dashboardGrid .hint,.dashboardGrid .muted{font-size:13px}.dashboardGrid .sectionhead{margin-bottom:12px}
.dashboardPrimary .verificationNotice{font-size:12px;line-height:1.6;padding:10px 12px;margin-top:-8px;border-radius:6px;background:#eae1da}.dashboardPrimary .privateLine{display:none}
.dashboardGrid .inputTabs{gap:10px;margin:0 0 16px}.dashboardGrid .inputTabs button{flex:1;min-height:44px;padding:10px 12px;font-size:14px;border-radius:8px}
.dashboardGrid .intakeCard textarea{display:block;width:100%;height:156px;min-height:156px;font-size:15px;line-height:1.6;padding:14px;border:1px solid #dcd2cd;border-radius:8px;resize:vertical}
.dashboardGrid .intakeCard .hint{font-size:12px;margin:12px 0}.dashboardGrid .uploadShortcut{min-height:56px;margin:12px 0;font-size:13px}.dashboardGrid .uploadShortcut small{font-size:11px}.dashboardGrid .intakeCard .actions{display:flex;gap:12px;margin:16px 0 0}.dashboardGrid .intakeCard .actions .primary{min-height:46px;height:auto;font-size:14px;flex:1}.dashboardGrid .intakeCard .textbtn{min-height:46px;padding:10px 18px;font-size:13px;text-decoration:none;border:1px solid #dcd2cd;border-radius:8px;white-space:nowrap}
.dashboardGrid .sampleDrawer{min-height:138px;position:relative;overflow:hidden}.sampleDrawer summary{position:relative;padding-right:76px;max-width:none;min-height:52px}.sampleDrawer .miniPhone{width:68px;height:96px;right:0;top:4px;bottom:auto;transform:rotate(10deg);border-width:4px}.sampleDrawer .miniPhone b{font-size:9px}.sampleDrawer .miniPhone span{font-size:5px}.sampleDrawer:not([open]):after{margin:8px 0 0;font-size:13px}.sampleDrawer[open] summary{padding-right:0}.sampleChoices{gap:8px}.sampleChoices button{font-size:12px}
.guideStep{align-items:flex-start;gap:12px;font-size:14px;line-height:1.55;margin-top:16px}.guideStep b{width:32px;height:32px;flex-shrink:0}.guideStep span{padding-top:3px;min-width:0}.howCard>.muted{margin-bottom:12px}
.dashboardGrid .learnCard{min-height:164px}.learnCard p{max-width:80%;font-size:13px;margin:6px 0 14px}.learnCard .btn{min-height:38px;font-size:13px}.bookArt{right:16px;bottom:20px}.activityTiles{gap:10px}.activityTiles>div{padding:12px;min-height:74px}.activityTiles b{font-size:19px;line-height:1.4}.activityTiles span{font-size:12px;line-height:1.4}.impactCard .hint{margin:8px 0 16px;font-size:12px}.caseRow{padding:15px 0;gap:16px;font-size:14px}.caseRow small{font-size:12px;margin-top:4px}.caseRow .tag{font-size:11px;max-width:145px;flex-shrink:0}.recent>p:last-child{margin-bottom:0}.previewimg{max-width:100%;height:auto;object-fit:contain}
@media(min-width:761px){
main{width:calc(100% - var(--sidebar-width));margin:0 0 0 var(--sidebar-width);padding:28px clamp(24px,3vw,56px) 48px;max-width:none}.welcome{max-width:var(--content-width);width:100%;margin:0 auto}.dashboardToolbar{display:flex;gap:16px;align-items:center;margin:0 0 24px;height:48px}.searchBox{min-width:0;max-width:none;height:48px;flex:1;padding:0 16px}.searchBox input{font-size:14px;padding:12px 0;margin:0;min-width:0}.toolbarLang{margin-left:0;min-height:44px;font-size:14px;padding:10px 16px}.profileMark{width:42px;height:42px;flex-shrink:0}.dashboardHero{margin:0 0 24px;min-height:320px;padding:28px 30px 22px;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.dashboardHero:before{background:linear-gradient(90deg,#eee5dd 0%,#eee5dde8 33%,#eee5dd22 75%),url('exchange-photo.png') right 48%/cover no-repeat}.welcomeIntro{max-width:610px;margin:0}.welcomeIntro h1{font-size:clamp(44px,4.4vw,64px);line-height:1.04;letter-spacing:-2px;margin:10px 0 16px}.welcomeIntro p{font-size:16px;line-height:1.5;max-width:520px;margin:0}.welcomeIntro .eyebrow{font-size:11px;line-height:1.5;letter-spacing:2px;margin:0}.simpleFlow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:820px;gap:12px;margin:26px 0 0}.simpleFlow span{font-size:12px;line-height:1.4;padding:6px;background:#f4eae2de;gap:10px}.simpleFlow b{width:34px;height:34px;font-size:22px}.sidebarNote{flex-shrink:0}header{background-size:cover!important;background-position:center center!important}header nav,header .brand{flex-shrink:0}header .sidebarNote{padding-top:clamp(100px,18vh,230px)}footer{width:calc(100% - var(--sidebar-width));margin:0 0 0 var(--sidebar-width);padding:20px clamp(24px,3vw,56px) 32px;gap:20px}.resultSimple{max-width:860px}.topline{max-width:1320px;margin-left:auto;margin-right:auto}
}
@media(min-width:761px) and (max-width:1100px){:root{--sidebar-width:210px;--card-gap:16px}header{width:210px;padding-left:12px;padding-right:12px}header nav button{gap:14px;padding-left:13px;padding-right:13px}.brand{padding:0 8px!important;font-size:21px!important}.brand small{font-size:9px!important}.dashboardGrid{grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr)}.dashboardGrid .paper,.dashboardGrid .sampleDrawer{padding:18px}.dashboardGrid h2,.dashboardGrid summary{font-size:20px}.dashboardHero{padding:24px}.simpleFlow{gap:8px}.simpleFlow span{font-size:10px;gap:6px}.simpleFlow b{width:26px;height:26px;font-size:18px}.caseRow{flex-wrap:wrap}.dashboardGrid .inputTabs button{font-size:12px}}
@media(max-width:760px){main{padding:0 16px 28px;width:100%;margin:0}.welcome{width:100%;max-width:600px;margin:0 auto}.dashboardToolbar{display:none}.dashboardHero{margin:0 -16px 0;padding:28px 20px 48px;min-height:260px;max-height:none}.dashboardHero:before{background:linear-gradient(90deg,#241516eb 0%,#24151680 70%,#24151640),url('exchange-photo.png') 65% center/cover no-repeat}.welcomeIntro h1{font-size:38px;line-height:1.08;letter-spacing:-1px;margin:12px 0 16px}.welcomeIntro p{font-size:13px;line-height:1.6}.simpleFlow{display:none}.dashboardGrid{display:flex;flex-direction:column;gap:16px;margin-top:-24px;position:relative;z-index:1}.dashboardPrimary,.dashboardSecondary{width:100%;gap:16px}.dashboardGrid .paper,.dashboardGrid .sampleDrawer{padding:18px;border-radius:14px;margin:0}.dashboardGrid .intakeCard{margin:0}.dashboardGrid h2,.dashboardGrid summary{font-size:20px}.dashboardGrid .intakeCard textarea{font-size:16px;height:140px;min-height:140px}.dashboardGrid .inputTabs{gap:6px}.dashboardGrid .inputTabs button{font-size:12px;padding:10px 6px}.dashboardGrid .intakeCard .actions{gap:8px}.dashboardGrid .intakeCard .textbtn{padding:10px;font-size:12px}.dashboardGrid .intakeCard .actions .primary{font-size:13px;padding:10px}.dashboardPrimary .verificationNotice{margin:0;font-size:11px}.dashboardGrid .learnCard{min-height:150px}.caseRow{font-size:13px;flex-wrap:wrap}.caseRow small{font-size:11px}.guideStep{font-size:13px}.dashboardSecondary .sampleDrawer{min-height:128px}.sampleDrawer .miniPhone{right:0;top:0}.dashboardGrid .uploadShortcut{font-size:12px}.dashboardGrid .privateLine{display:none}header .brand svg{width:29px;height:35px}.brand span{line-height:1.1}footer{padding-bottom:104px}.riskScore,.nextCard{padding:20px}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.voiceControls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 4px}.voiceControls [hidden]{display:none!important}#voiceStatus:empty{display:none}#voiceStatus{min-height:20px}button:disabled{opacity:.65;cursor:not-allowed}

.mlPanel{margin:20px 0}.mlPanel [hidden]{display:none!important}.mlFinding{border-left:3px solid #8b2532;padding:6px 16px;margin:16px 0;background:#f9f4f1}.mlFinding h3{margin:4px 0}.mlBadge{color:#812431;font-size:13px;font-weight:600}.mlTokens{display:block;white-space:normal;overflow-wrap:anywhere;padding:12px;background:#f3ebe5;border-radius:8px}.mlPanel blockquote{white-space:pre-wrap;overflow-wrap:anywhere}.mlPanel details{margin-top:20px}.mlPanel .hint{overflow-wrap:anywhere}
/* Live dictation: one accessible microphone control inside the message field. */
.dictationBox{border:1px solid #d9ceca;border-radius:10px;background:#fcfaf8;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.dictationBox:focus-within{border-color:#942633;box-shadow:0 0 0 3px #94263314}
.intakeCard .dictationBox textarea#input{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;margin:0;min-height:130px;width:100%;padding:16px;resize:vertical}
.dictationToolbar{display:flex;align-items:center;gap:10px;padding:8px 12px 12px;min-height:56px}
#voiceHint{font-size:12px;color:#7c6b6e;flex:1;min-width:0}
#voiceLanguage{width:auto;max-width:105px;min-height:36px;border:1px solid #e2d8d3;border-radius:8px;background:#fff;padding:6px 8px;margin:0;color:#594b4e;font-size:12px}
.micButton{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:11px;border:1px solid #e3c4c7;border-radius:50%;background:#f7e8e8;color:#891d2a;cursor:pointer;flex-shrink:0;transition:background .15s,box-shadow .15s}
.micButton svg{width:22px;height:22px;display:block}.micButton:hover{background:#efd2d5}.micButton:focus-visible{outline:3px solid #a44450;outline-offset:3px}.micButton.listening{background:#a42535;color:#fff;border-color:#a42535;box-shadow:0 0 0 5px #a4253514;animation:micPulse 1.8s ease-in-out infinite}.micButton.waiting{animation:none}.voicePrivacy{font-size:11px;line-height:1.5;color:#837779;margin:8px 0 12px}.voiceStatus{color:#7e1d2a;font-size:13px;margin:8px 0;min-height:0}.srOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes micPulse{50%{box-shadow:0 0 0 8px #a425351a}}@media(prefers-reduced-motion:reduce){.micButton.listening{animation:none}}@media(max-width:480px){.dictationToolbar{gap:8px;padding:8px 10px 10px}#voiceHint{font-size:11px}#voiceLanguage{max-width:92px}.micButton{width:44px;height:44px}}
