/* v65: shared starting point and focused mobile intake. */
body.clinic-at-home{background:radial-gradient(ellipse at 95% 8%,#dbeff3 0,transparent 48%),#f5f8f9;color:#193e53;min-height:100vh}
#clinicHome{max-width:940px;margin:0 auto;padding:46px 28px 48px}
#clinicHome .home-kicker{font-size:11px;letter-spacing:.15em;color:#398a9e;font-weight:700;margin:0 0 16px}
#clinicHome h1{font-size:clamp(28px,4vw,40px);line-height:1.55;letter-spacing:.02em;margin:0 0 16px;outline:none}
#clinicHome h1 span{color:#398ba4}
#clinicHome .home-intro>p:last-child{font-size:15px;line-height:1.85;color:#536d7a;margin:0 0 28px}
#clinicHome .home-route-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
#clinicHome a.home-route{width:auto;margin:0;padding:26px;border:1px solid #d4e4e8;border-radius:20px;box-shadow:0 8px 24px #173e5310;background:white;transition:transform .15s,box-shadow .15s;overflow:hidden;border-top:4px solid #e68c50}
#clinicHome a.home-drawing{border-top-color:#53a9c1}
#clinicHome a.home-route:hover{transform:translateY(-2px);box-shadow:0 12px 28px #173e5320}
#clinicHome a:focus-visible,#clinicHome button:focus-visible{outline:3px solid #267eaa;outline-offset:4px}
#clinicHome .home-route-label{font-size:11px;letter-spacing:.14em;color:#b76832;font-weight:700}
#clinicHome .home-drawing .home-route-label{color:#3788a0}
#clinicHome .home-route strong{display:block;font-size:23px;margin:12px 0 8px}
#clinicHome .home-route p{font-size:15px;font-weight:700;margin:0 0 12px}
#clinicHome .home-route-detail{display:block;color:#637985;font-size:13px;line-height:1.8}
#clinicHome .home-route-cta{display:flex;justify-content:space-between;gap:8px;margin-top:22px;padding-top:17px;border-top:1px solid #e5ecef;font-size:13px;font-weight:700;color:#ad5d2e}
#clinicHome .home-drawing .home-route-cta{color:#287a91}
#clinicHome .home-resume{margin-top:24px;text-align:center}
#clinicHome #clinicResume{width:auto;display:inline-block;background:transparent;border:0;border-radius:0;padding:8px;margin:0;min-height:44px;text-align:center;text-decoration:underline;text-underline-offset:5px;font-size:14px}
#clinicHome .home-resume p{color:#6b7d87;font-size:12px;line-height:1.8;margin:8px 0}
.home-mobile-break{display:none}
#studioUpload>p:first-of-type{font-size:14px;line-height:2;overflow-wrap:anywhere}
#studioUpload .drawing-crop-note{font-size:15px;line-height:1.85;background:#eef7fa;border-left:3px solid #65b6cd;padding:14px 16px;margin:20px 0}
#studioUpload .drawing-crop-note strong{font-weight:800}
#studioUpload #brushPracticeOpen,#studioUpload #drawingImagePreviewBox,#pretraceOpen{display:none!important}
#intakeStatus[hidden]{display:none!important}
#studioUpload.intake-selected{display:none!important}
#aiTracePanel{border:1px solid #d1e4e9;border-radius:20px;background:#fff;padding:24px;scroll-margin-top:160px}
#aiTracePanel>h2{margin-top:0;font-size:23px}
#intakeNextHint{font-size:14px;color:#496574;line-height:1.8}
#aiTracePanel #brushEditOpen.range-primary,#aiTracePanel #intakeBoundaryOpen.range-primary{display:block;width:100%;background:#b9e5f3!important;border:1px solid #9ed6e8!important;color:#164761!important;font-weight:800;font-size:17px;min-height:56px;border-radius:13px;padding:16px 10px;margin:18px 0 16px;box-shadow:none}
#aiTraceAnalyze[hidden]{display:none!important}
#aiTracePanel #aiTraceNewImage{display:block;background:transparent!important;color:#496574!important;border:0!important;border-radius:0;box-shadow:none!important;text-decoration:underline;text-underline-offset:5px;min-height:44px;padding:10px 0;margin:30px auto 0;font-size:14px}
#intakeReadHelp{font-size:13px;line-height:1.8;color:#657d88;margin-top:20px}
#intakeReadHelp summary{cursor:pointer;min-height:36px;display:list-item}
#aiTracePreview{margin:12px 0 20px}
#aiTracePanel #aiTraceStatusBox{font-size:13px;padding:12px;margin:12px 0}
#aiTracePanel:not(.range-ready) #aiTraceStatusBox[data-state=info]{display:none}
#aiTracePanel:not(.range-ready) #pretraceSummary:empty{display:none}
@media(max-width:600px){
#clinicHome{padding:30px 20px 36px}#clinicHome h1{font-size:28px;margin-bottom:12px}#clinicHome .home-intro>p:last-child{font-size:14px;margin-bottom:22px}
#clinicHome .home-route-grid{grid-template-columns:1fr;gap:16px}#clinicHome a.home-route{padding:19px 21px;border-radius:17px}#clinicHome .home-route strong{font-size:21px;margin:7px 0}#clinicHome .home-route p{font-size:14px;margin-bottom:8px}#clinicHome .home-route-detail br{display:none}#clinicHome .home-route-cta{margin-top:15px;padding-top:13px}.home-mobile-break{display:block}
#aiTracePanel{padding:20px 16px;border-radius:16px}#aiTracePanel>h2{font-size:21px}#aiTracePanel #brushEditOpen.range-primary,#aiTracePanel #intakeBoundaryOpen.range-primary{font-size:16px}#studioUpload>p:first-of-type{font-size:13px}
}
@media(prefers-reduced-motion:reduce){#clinicHome a.home-route{transition:none}}
/* v66: illustrated opening and quieter resume action. */
#clinicHome{max-width:1080px}
#clinicHome .home-hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:32px;margin:0 0 30px}
#clinicHome .home-lead{font-size:14px;font-weight:600;color:#557785;margin:0 0 14px;line-height:1.8}
#clinicHome h1{font-size:32px;line-height:1.6;letter-spacing:0;margin:0 0 14px}
#clinicHome h1 span{color:#247f9a;background:linear-gradient(transparent 75%,#cfeaf0 75%);padding-bottom:3px}
#clinicHome .home-description{font-size:14px;line-height:1.85;color:#58717d;margin:0 0 16px}
#clinicHome .home-features{display:flex;flex-wrap:wrap;gap:7px}
#clinicHome .home-features span{font-size:11px;font-weight:700;letter-spacing:.02em;color:#347b91;border:1px solid #cce3e8;border-radius:6px;background:#ffffffa6;padding:6px 9px}
#clinicHome .home-visual{margin:0;padding:9px;background:#fff;border:1px solid #dce8eb;border-radius:20px;box-shadow:0 14px 36px #143f5314;transform:rotate(1deg);overflow:hidden}
#clinicHome .home-visual img{display:block;width:100%;height:auto;aspect-ratio:599/521;object-fit:contain;border-radius:13px}
#clinicHome .home-visual figcaption{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 3px 2px;font-size:9px;letter-spacing:.09em;color:#6794a2;font-weight:700}
#clinicHome .home-visual figcaption span{font-size:10px;letter-spacing:0;font-weight:400}
#clinicHome .home-choice-heading{font-size:14px;font-weight:700;color:#496978;margin:0 0 14px}
#studioUpload #brushResumeOpen{display:block;width:auto;max-width:100%;margin:16px auto 8px;padding:8px 3px;min-height:44px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#496574;font-size:14px;font-weight:500;line-height:1.8;text-align:center;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px;white-space:normal}
#studioUpload #brushResumeOpen[hidden]{display:none!important}
@media(max-width:760px){#clinicHome .home-hero{grid-template-columns:1fr;gap:20px;margin-bottom:28px}#clinicHome h1{font-size:29px}#clinicHome .home-visual{max-width:480px;width:100%;box-sizing:border-box;margin:0 auto;transform:none}#clinicHome .home-visual img{max-height:230px}#clinicHome .home-kicker{font-size:10px;letter-spacing:.11em}#clinicHome .home-lead{font-size:12px;margin-bottom:10px}}
@media(max-width:360px){#clinicHome{padding-left:16px;padding-right:16px}#clinicHome h1{font-size:25px}#clinicHome .home-visual img{max-height:200px}}
/* v67: direct marked-plan intake and crop re-entry. */
#intakeMarked{background:#eff8f3;border:1px solid #c8e3d7;border-radius:12px;padding:14px;margin:16px 0}#intakeMarked label{font-size:14px;display:block}#intakeMarked select{max-width:100%;width:100%;min-height:44px;font:inherit;margin:8px 0;background:white}#intakeMarked p{font-size:13px;line-height:1.7}#intakeMarked button{width:100%;white-space:normal;background:#dbf0e6;color:#195440;border:1px solid #8fc9b0;min-height:48px}#intakeRecrop{border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;min-height:44px}#intakeMarked[hidden]{display:none!important}

#aiTracePanel #intakeBoundaryOpen.range-primary{background:#fff!important;border:2px solid #5b9dad!important;color:#193e53!important}

/* v74: secondary actions match the underlined crop action. */
#aiTracePanel #aiColumnFix,#aiTracePanel #aiTraceDiagnostic{display:block;width:auto;max-width:100%;background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;color:inherit;text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:10px 16px;margin:8px 0;text-align:left;font:inherit;font-weight:700;white-space:normal;touch-action:manipulation}
#aiTracePanel #aiColumnFix[hidden],#aiTracePanel #aiTraceDiagnostic[hidden]{display:none!important}
