:root{--ink:#14213d;--muted:#586477;--green:#176b5b;--green-dark:#0b4d42;--mint:#e9f4f0;--line:#d5dedb;--surface:#fff;--bg:#f6f7f4;--warning:#8a4b08;--warning-bg:#fff4df;--danger:#a32828;--shadow:0 12px 35px rgba(20,33,61,.09);font-family:Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0;font-size:20px;line-height:1.55}button,input,select{font:inherit}button,a,input,select{min-height:48px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:4px solid #bce6dc;outline-offset:3px}.skip-link{position:absolute;left:-999px;top:8px;background:#fff;padding:12px;z-index:10}.skip-link:focus{left:8px}.topbar{min-height:86px;padding:0 6vw;display:flex;align-items:center;gap:42px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.brand{font-size:28px;font-weight:900;color:var(--ink);text-decoration:none}.brand-mark{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--green);color:#fff}.service-area{font-weight:900;color:var(--green-dark);margin-right:auto}.prototype-badge{font-size:13px;font-weight:800;color:var(--warning);background:var(--warning-bg);padding:7px 10px;border-radius:999px}.text-button{border:2px solid #9cadab;background:#fff;border-radius:16px;padding:12px 22px;font-weight:900;color:var(--ink)}.app-shell{width:100%;max-width:none;margin:0;padding:28px clamp(24px,4vw,76px) 58px;display:grid;grid-template-columns:minmax(0,1fr);gap:28px}.step-panel,.content,.screen,.screen>*{min-width:0}.step-panel{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}.eyebrow{color:var(--green);font-size:15px;font-weight:900;letter-spacing:.02em;margin:0 0 8px}.step-count{font-size:20px;margin:0 0 10px;color:#46556a}.progress-track{height:7px;background:#dfe8e4;border-radius:999px;overflow:hidden;margin-bottom:18px}.progress-track span{display:block;height:100%;width:12.5%;background:var(--green);transition:width .25s}.step-panel ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(8,1fr);gap:8px}.step-panel li{display:flex;align-items:center;gap:9px;padding:9px 8px;color:#6a7483;font-size:14px;border-radius:10px}.step-panel li span{display:grid;place-items:center;min-width:26px;height:26px;border:1px solid var(--line);border-radius:7px;background:#fff}.step-panel li.active{background:var(--mint);color:var(--green-dark);font-weight:800}.step-panel li.complete{color:var(--green)}.content{width:100%;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;min-height:680px}.screen{display:none}.screen.active{display:block;animation:show .2s ease}.screen h1[tabindex="-1"]:focus,.screen h2[tabindex="-1"]:focus,.screen h3[tabindex="-1"]:focus{outline:none}@keyframes show{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}h1{font-size:clamp(42px,5.2vw,64px);line-height:1.12;letter-spacing:-.045em;margin:10px 0 18px}h2{font-size:clamp(30px,4vw,46px);line-height:1.2;letter-spacing:-.035em;margin:8px 0 18px}.lead{font-size:21px;color:var(--muted);max-width:1060px;margin-bottom:34px}.notice{display:flex;gap:14px;padding:18px 20px;background:#f2f6f8;border:1px solid #dbe4e8;border-radius:14px;margin:22px 0}.notice.safety{background:var(--warning-bg);border-color:#e0aa1d}.notice>span{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:#fff;font-weight:900}.notice p{margin:3px 0 0;color:#4c5667}.intro-notice{align-items:center;border:2px solid #dca91c;border-radius:14px;padding:18px 24px;margin:38px 0 46px}.intro-notice>span{display:block;flex:0 0 auto;width:auto;height:auto;border-radius:0;background:transparent;color:#d2950b}.intro-notice p{font-size:19px}.feature-grid,.dashboard-grid{list-style:none;padding:0;margin:28px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:34px}.feature-grid li,.dashboard-grid article{border:2px solid var(--line);border-radius:16px;padding:28px 28px 34px;background:#fff;min-height:205px}.feature-grid li:nth-child(1){border-left:8px solid #4897df}.feature-grid li:nth-child(2){border-left:8px solid #7a5ad8}.feature-grid li:nth-child(3){border-left:8px solid var(--green)}.feature-grid span{display:none}.feature-grid strong,.feature-grid small{display:block}.feature-grid strong{font-size:24px;margin-bottom:12px}.feature-grid small,.dashboard-grid p{color:var(--muted);margin:4px 0;font-size:19px}.primary,.secondary{border-radius:12px;padding:12px 22px;font-weight:900;cursor:pointer}.primary{border:2px solid var(--green);background:var(--green);color:#fff}.primary:hover{background:var(--green-dark)}.secondary{border:2px solid var(--line);background:#fff;color:var(--ink)}.intro-actions{display:flex;justify-content:center;margin-top:28px}.intro-actions .primary{width:min(420px,100%);font-size:24px;padding:17px 28px;border-radius:16px}.actions{display:flex;justify-content:space-between;gap:14px;margin-top:30px}.form-row{display:grid;gap:8px;margin:18px 0}.form-row label,legend{font-weight:900}.form-row input,.form-row select{border:2px solid #b9c5c1;border-radius:12px;padding:12px 14px;width:100%;background:#fff}.form-row input:focus,.form-row select:focus{outline:4px solid #bce6dc;border-color:var(--green)}.form-row small,.check-card small{display:block;color:var(--muted)}fieldset{border:0;padding:0;margin:24px 0}.check-card{display:flex;align-items:flex-start;gap:14px;border:2px solid var(--line);border-radius:14px;padding:16px;margin:12px 0;cursor:pointer}.check-card:has(input:checked){border-color:var(--green);background:var(--mint)}.check-card input{width:24px;height:24px;accent-color:var(--green);flex:0 0 auto}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.full{grid-column:1/-1}.mock-ribbon{display:inline-block;padding:8px 12px;border-radius:8px;background:var(--warning-bg);color:var(--warning);font-weight:900;font-size:14px}.result-card{display:flex;align-items:center;justify-content:space-between;gap:28px;border:2px solid var(--green);background:var(--mint);border-radius:22px;padding:28px;margin:22px 0}.result-card p{margin:4px 0}.result-card strong{font-size:34px}.score-ring{flex:0 0 150px;width:150px;height:150px;border-radius:50%;display:grid;place-content:center;text-align:center;background:conic-gradient(var(--green) 0%,#cddbd6 0);border:10px solid #fff}.score-ring span{font-size:34px;font-weight:900}.score-ring small{display:block}.probabilities{display:grid;gap:10px;margin:22px 0}.prob-row{display:grid;grid-template-columns:130px 1fr 52px;align-items:center;gap:12px}.bar{height:16px;background:#e2e8e6;border-radius:999px;overflow:hidden}.bar span{display:block;height:100%;background:var(--green);border-radius:inherit}.factor-list{list-style:none;padding:0;margin:28px 0;display:grid;gap:12px}.factor-list li{display:grid;grid-template-columns:44px 1fr;gap:14px;border:1px solid var(--line);border-radius:14px;padding:18px}.factor-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--warning-bg);color:var(--warning);font-weight:900}.factor-icon.protective{background:var(--mint);color:var(--green)}.factor-list p{margin:3px 0;color:var(--muted)}.challenge-grid{display:grid;gap:14px}.challenge-card{position:relative}.challenge-card input{position:absolute;opacity:0}.challenge-card span{display:block;border:2px solid var(--line);border-radius:16px;padding:20px;min-height:130px;cursor:pointer}.challenge-card input:checked+span{border-color:var(--green);background:var(--mint)}.challenge-card strong,.challenge-card small{display:block}.challenge-card small{color:var(--muted);margin-top:7px}.dashboard-grid article strong{display:block;font-size:28px;margin:8px 0}.daily-item{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.daily-item input{width:24px;height:24px;accent-color:var(--green)}.message{padding:15px 18px;border-radius:12px;background:#ffeded;color:var(--danger);font-weight:800;margin-bottom:20px;position:fixed;top:max(16px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:1000;max-width:min(560px,92vw);box-shadow:0 12px 30px rgba(20,33,61,.22)}dialog .message{position:sticky;left:auto;transform:none;top:0;margin:0 0 14px;max-width:none}footer{text-align:center;color:var(--muted);padding:10px 20px 40px}body.large-text{zoom:1.12}.large-text .content{max-width:100%}
[hidden]{display:none!important}
.dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.profile-menu{position:relative;flex:0 0 auto}.profile-menu summary{display:grid;place-items:center;width:64px;height:64px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--green-dark);font-size:30px;font-weight:900;cursor:pointer;list-style:none}.profile-menu summary::-webkit-details-marker{display:none}.profile-menu summary:focus-visible{outline:4px solid #bce6dc;outline-offset:3px}.profile-menu-panel{position:absolute;right:0;top:76px;z-index:20;display:grid;min-width:210px;padding:10px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 16px 34px rgba(20,33,61,.14)}.profile-menu-panel .text-button{width:100%;text-align:left;justify-content:flex-start}.workspace-nav{display:flex;gap:8px;overflow-x:auto;margin:26px 0 32px;padding:6px;background:#eef3f1;border-radius:14px}.workspace-tab{flex:1;min-width:max-content;border:0;border-radius:10px;background:transparent;color:var(--muted);padding:10px 16px;font-weight:900;cursor:pointer}.workspace-tab.active{background:#fff;color:var(--green-dark);box-shadow:0 2px 8px rgba(20,56,45,.09)}.workspace-panel{animation:show .2s ease}.summary-grid{margin-top:0}.today-card{border:2px solid var(--green);background:linear-gradient(135deg,var(--mint),#fff);border-radius:20px;padding:28px;margin:24px 0}.today-card h3{font-size:28px;margin:4px 0 8px}.today-card p:not(.eyebrow){color:var(--muted);max-width:720px}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0 28px}.quick-link{text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff;padding:18px;cursor:pointer}.quick-link:hover{border-color:var(--green);background:var(--mint)}.quick-link span,.quick-link small{display:block}.quick-link span{font-weight:900;color:var(--ink);margin-bottom:5px}.quick-link small{color:var(--muted)}.section-heading{margin-bottom:24px}.section-heading h3{font-size:34px;margin:2px 0 8px}.section-heading p:last-child{color:var(--muted)}.focus-card{border:1px solid var(--line);background:#fff;border-radius:18px;padding:24px}.dashboard-section{border-top:1px solid var(--line);margin-top:34px;padding-top:28px}.dashboard-section.first-section{border-top:0;margin-top:0;padding-top:0}.dashboard-section h3{font-size:26px;margin:0 0 14px}.invite-code{overflow-wrap:anywhere;font-family:ui-monospace,Consolas,monospace;background:#fff;padding:8px;border-radius:8px}.message[data-kind="success"]{background:var(--mint);color:var(--green-dark)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.auth-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.auth-mode-button{min-height:68px;border:2px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);font-size:20px;font-weight:900;cursor:pointer}.auth-mode-button:hover{border-color:var(--green)}.auth-mode-button.active{border-color:var(--green);background:var(--mint);color:var(--green-dark)}.login-form{width:100%;padding:36px 40px;border:1px solid var(--line);border-radius:20px;background:#fff}.login-form-heading{margin-bottom:28px}.login-form-heading h3{font-size:30px;margin:4px 0 8px}.login-form-heading p:last-child{color:var(--muted)}.login-form .form-row input{min-height:64px;font-size:20px}.login-form .actions button{min-width:150px;min-height:62px;font-size:20px}.returning-user-panel{max-width:1080px;border:2px solid var(--green);border-radius:22px;background:linear-gradient(145deg,#fff 0%,#f0faf6 100%);padding:32px;margin-top:24px}.returning-user-panel h3{font-size:34px;line-height:1.25;margin:4px 0 12px}.returning-user-panel .lead{margin-bottom:24px}.returning-route-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.returning-route{min-height:112px;border:2px solid var(--line);border-radius:18px;background:#fff;padding:24px;display:grid;place-items:center;text-align:center;cursor:pointer}.returning-route:hover{border-color:var(--green);background:var(--mint)}.returning-route.primary-route{border-color:var(--green)}.returning-route:disabled{cursor:not-allowed;opacity:.62;background:#f3f5f4}.returning-route strong{display:block;font-size:23px;line-height:1.3;color:var(--ink)}.returning-route-note{margin:20px 0;color:var(--green-dark);font-weight:800}.dashboard-account-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--line);border-radius:18px;background:#fff;padding:24px 26px;margin:28px 0}.dashboard-account-actions h3{font-size:25px;margin:2px 0 5px}.dashboard-account-actions p:last-child{margin:0;color:var(--muted)}.dashboard-account-buttons{display:flex;gap:10px;flex:0 0 auto}
.lifestyle-map{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,380px);gap:36px;align-items:center;border:1px solid var(--line);border-radius:24px;padding:32px;margin:34px 0;background:linear-gradient(145deg,#fff 0%,#f1faf6 100%);overflow:hidden}.map-copy h3{font-size:32px;margin:3px 0 10px}.map-copy>p:not(.eyebrow){color:var(--muted)}.map-detail{display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:start;margin:24px 0;padding:18px;background:#fff;border:1px solid var(--line);border-radius:16px}.map-detail>span{display:grid;place-items:center;width:44px;height:44px;background:var(--green);color:#fff;border-radius:50%;font-size:20px;font-weight:900}.map-detail strong,.map-detail small{display:block}.map-detail p{margin:4px 0;color:var(--ink)}.map-detail small{color:var(--muted)}.notice.compact{font-size:15px;padding:14px;margin-bottom:0}.map-visual{position:relative;min-height:460px;border-radius:50% 50% 24px 24px;background:#e2f4ed;display:grid;place-items:center}.map-visual svg{width:min(100%,340px);height:440px}.illustration-accent{fill:#bcebd9}.illustration-shadow{fill:#cfeade;opacity:.65}.illustration-skin{fill:#f3c9a9}.illustration-hair{fill:#213c35}.illustration-shirt{fill:#4aad87}.illustration-pants{fill:#315f79}.illustration-shoe{fill:#213c35}.illustration-cheek{fill:#213c35}.illustration-line{fill:none;stroke:#213c35;stroke-width:3;stroke-linecap:round}.illustration-leaf{fill:#8ed5aa;stroke:#3e9c73;stroke-width:3}.body-map-point{position:absolute;width:46px;height:46px;min-height:46px;border:3px solid #fff;border-radius:50%;background:#fff;color:var(--green-dark);font-weight:900;box-shadow:0 4px 14px rgba(26,65,53,.22);cursor:pointer}.body-map-point:hover,.body-map-point.active{background:var(--green);color:#fff;transform:scale(1.08)}.point-head{top:12%;left:48%}.point-torso{top:37%;left:56%}.point-waist{top:52%;left:39%}.point-legs{top:73%;left:54%}
.map-copy #map-back-to-tools{margin-top:16px}.tool-feature-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;margin-bottom:30px;border:2px solid var(--green);border-radius:18px;background:var(--mint)}.tool-feature-card h3{font-size:27px;margin:2px 0 6px}.tool-feature-card p:last-child{margin:0;color:var(--muted)}.tool-feature-card .primary{flex:0 0 auto}
.health-tool-section{margin:0 0 26px}
.health-tool-section h3{font-size:26px;margin:0 0 12px;color:var(--ink)}
.health-tool-card{border:1px solid var(--line);border-radius:18px;background:#fff;padding:24px}
.health-tool-row{display:flex;align-items:flex-start;gap:16px;margin-bottom:18px}
.health-tool-icon{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border-radius:16px;background:var(--soft);color:var(--green-dark);font-size:28px}
.health-tool-icon svg{width:28px;height:28px}
.health-tool-row strong{display:block;font-size:22px;line-height:1.3;margin:0 0 4px;color:var(--ink)}
.health-tool-row p,.tool-help-copy{margin:0;color:var(--muted);font-size:18px;line-height:1.55}
.manual-input-details{margin-top:16px;border-top:1px solid var(--line);padding-top:16px}
.manual-input-details summary{display:inline-flex;align-items:center;gap:6px;color:var(--green-dark);font-size:17px;font-weight:900;cursor:pointer;list-style:none}
.manual-input-details summary::-webkit-details-marker{display:none}
.manual-input-details summary::after{content:"›";font-size:22px;line-height:1;transition:transform .2s}
.manual-input-details[open] summary::after{transform:rotate(90deg)}
.compact-upload{min-height:110px;margin:10px 0 0}
.compact-upload span{font-size:30px}
.compact-upload strong{font-size:18px}
.health-tool-status-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px}
.health-tool-status-row .health-tool-row{align-items:center;margin-bottom:0}
.health-tool-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}
.health-tool-actions .health-tool-inline-action,
.health-tool-actions .secondary,
.health-tool-actions .primary{
  flex:0 0 auto;
}
.health-tool-inline-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:auto;min-width:170px;min-height:54px;padding:12px 18px;white-space:nowrap}
.upload-checkup-button span,.upload-checkup-button span svg{display:block;width:25px;height:25px}
.upload-checkup-button strong{font-size:17px}
.lifestyle-avatar{display:block;width:100%;height:420px;object-fit:contain;object-position:center bottom;transform-origin:center bottom;transform:scale(var(--avatar-width-scale,1),var(--avatar-height-scale,1));transition:transform .25s ease,opacity .2s;filter:drop-shadow(0 14px 18px rgba(28,67,55,.18));user-select:none;-webkit-user-drag:none}.avatar-profile-summary{position:absolute;left:16px;right:16px;bottom:8px;margin:0;padding:7px 10px;border-radius:10px;background:rgba(255,255,255,.88);color:var(--muted);font-size:13px;text-align:center;backdrop-filter:blur(4px)}
@media(max-width:800px){.prototype-badge{display:none}.app-shell{grid-template-columns:1fr;margin:20px auto}.step-panel{position:static;padding:18px}.step-panel ol{display:none}.content{padding:26px 20px;min-height:auto}.feature-grid,.dashboard-grid,.quick-grid{grid-template-columns:1fr}.workspace-nav{margin-inline:-8px}.two-column,.lifestyle-map{grid-template-columns:1fr}.lifestyle-map{padding:22px}.map-visual{min-height:400px}.map-visual svg{height:390px}.tool-feature-card{align-items:stretch;flex-direction:column}.result-card{align-items:flex-start}.score-ring{width:120px;height:120px;flex-basis:120px}.actions{flex-direction:column-reverse}.actions button,.primary{width:100%}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

.eligibility-grid{display:grid;grid-template-columns:1fr;gap:22px;margin:42px 0 20px;max-width:none;width:100%}
.consent-list{display:grid;gap:14px;margin:22px 0}
.consent-card{align-items:center;background:#fff;margin:0;padding:20px 24px}
.consent-card span{display:grid;grid-template-columns:1fr auto;gap:6px 20px;width:100%;align-items:center}
.consent-card strong{font-size:22px}
.consent-card small{font-size:18px;line-height:1.45}
.consent-card em{grid-row:1/3;grid-column:2;display:inline-flex;align-items:center;justify-content:center;min-width:72px;min-height:36px;border-radius:999px;background:var(--green);color:#fff;font-style:normal;font-weight:900}
.consent-card em.optional{background:#77847f}
.eligibility-lead{margin:0 0 28px;color:var(--muted);font-size:21px;line-height:1.55}
.eligibility-lead p{margin:0 0 4px}
.eligibility-card{border:1px solid var(--line);border-radius:18px;background:#fff;padding:34px 40px;min-height:0}
.eligibility-card legend,.eligibility-card h3{font-size:29px;font-weight:900;letter-spacing:-.035em;margin:0 0 18px;color:var(--ink)}
.eligibility-card legend{float:left;width:100%;padding:0}
.eligibility-card legend+*{clear:both}
.eligibility-card p{color:var(--muted);font-size:22px;margin:0 0 24px;max-width:100%}
.eligibility-card .single-line-copy{white-space:nowrap}
.eligibility-card .single-line-copy small{display:inline;margin:0;color:var(--muted);font-size:.88em}
.eligibility-card small{display:block;color:var(--muted);font-size:17px;margin:-6px 0 16px}
.card-title-row{display:flex;align-items:center;gap:14px}
.card-icon{display:inline-grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:999px;background:var(--mint);color:var(--green-dark);font-size:22px;font-weight:900}
.urgent-card .card-icon{background:#fff1ef;color:#b5443c}
.age-card .card-icon{background:#eef7ff;color:#2d72b8}
.diagnosis-card .card-icon{background:var(--warning-bg);color:#9a6500}
.urgent-title-row,.diagnosis-title-row{width:100%;flex-wrap:nowrap}
.urgent-title-row>span:not(.card-icon),.diagnosis-title-row>span:not(.card-icon){min-width:0}
.urgent-title-row .emergency-questionnaire-open,.diagnosis-title-row .diagnosis-help-open{margin-left:auto}
.urgent-answer-row{margin-top:10px}
.urgent-answer-row .segmented-choice{margin:0}
.emergency-questionnaire-open,.diagnosis-help-open{min-width:220px;min-height:52px;padding:11px 20px;font-size:17px}
.urgent-title-row .emergency-questionnaire-open,.diagnosis-title-row .diagnosis-help-open{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:auto!important;
  white-space:nowrap!important;
}
.emergency-questionnaire-modal[hidden]{display:none}
.diagnosis-help-modal[hidden]{display:none}
.emergency-questionnaire-modal,.diagnosis-help-modal{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(8,20,18,.58)}
.emergency-questionnaire-modal-card,.diagnosis-help-modal-card{position:relative;width:min(1180px,100%);max-height:calc(100vh - 48px);overflow:auto;border-radius:24px;background:#fff;padding:38px;box-shadow:0 24px 70px rgba(6,32,27,.28)}
.diagnosis-help-modal-card{width:min(760px,100%)}
.emergency-questionnaire-modal-card>h3{margin:0;padding-right:54px;font-size:31px;color:var(--ink)}
.diagnosis-help-modal-card>h3{margin:0 0 18px;padding-right:54px;font-size:31px;color:var(--ink)}
.emergency-questionnaire-close[aria-label],.diagnosis-help-close[aria-label]{position:absolute;top:20px;right:20px;display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--muted);font-size:29px;font-weight:900;cursor:pointer}
.emergency-questionnaire-modal-actions,.diagnosis-help-modal-actions{display:grid;grid-template-columns:1fr 2fr;gap:14px;margin-top:4px}
.diagnosis-help-modal-actions{grid-template-columns:1fr;margin-top:20px}
.emergency-questionnaire-modal-actions button,.diagnosis-help-modal-actions button{width:100%;min-height:60px}
.diagnosis-help-copy{display:grid;gap:14px}
.diagnosis-help-row{display:grid;grid-template-columns:96px 1fr;gap:18px;align-items:stretch}
.diagnosis-help-label{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:78px;
  padding:12px;
  border-radius:12px;
  background:#eee6d6;
  color:#351d12;
  font-size:22px;
  line-height:1.2;
  font-weight:900;
}
.diagnosis-help-body{
  min-height:78px;
  padding:14px 18px;
  border-radius:12px;
  background:#fff7e7;
  color:#5f4618;
  font-size:18px;
  line-height:1.55;
  font-weight:800;
}
.diagnosis-help-body p{margin:0}
.diagnosis-help-body p+p{margin-top:8px}
.diagnosis-help-body strong{color:#123e32;font-weight:1000}
.modal-inline-message{margin:0;padding:14px 16px;border:1px solid #d4776f;border-radius:12px;background:#fff1ef;color:#8e2f28;font-size:18px;font-weight:900}
body.modal-open{overflow:hidden}
.emergency-questionnaire{display:grid;gap:22px}
.emergency-questionnaire .emergency-questionnaire-intro{margin:-4px 0 0;padding:18px 20px;border-radius:14px;background:#fff7e7;color:#5f4618;font-size:19px;line-height:1.6;font-weight:800}
.emergency-stage{min-width:0;margin:0;padding:26px 28px;border:2px solid #d6e1de;border-radius:16px;background:#fbfdfc}
.emergency-stage legend{float:none;width:auto;padding:0 8px;margin:0;color:var(--ink);font-size:24px}
.emergency-stage>p{margin:2px 0 18px;font-size:19px}
.emergency-stage-urgent{border-color:#e9aaa4;background:#fffafa}
.emergency-stage-same-day{border-color:#e5c36a;background:#fffdf5}
.emergency-symptom-list{display:grid;grid-template-columns:1fr;gap:9px;margin:0;padding:0;list-style:none}
.emergency-symptom-list li{display:flex;align-items:flex-start;gap:12px;min-height:52px;padding:13px 17px;border:1px solid #cbd8d5;border-radius:13px;background:#fff;color:var(--ink);font-size:18px;line-height:1.45;font-weight:800}
.emergency-symptom-list li::before{content:"•";flex:0 0 auto;color:#b5443c;font-size:24px;line-height:1.05}
.emergency-summary-choices label{position:relative;display:block;cursor:pointer}
.emergency-summary-choices input{position:absolute;width:1px;height:1px;opacity:0}
.emergency-summary-choices input:focus-visible+span{outline:4px solid #bce6dc;outline-offset:3px}
.emergency-summary-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:12px;margin-top:18px}
.emergency-summary-choices span{align-items:center;justify-content:center;min-height:58px;text-align:center}
.emergency-summary-choices span{display:flex;padding:14px 16px;border:2px solid #cbd8d5;border-radius:13px;background:#fff;color:var(--ink);font-size:18px;line-height:1.45;font-weight:900}
.emergency-summary-choices input:checked+span{border-color:var(--green);background:var(--mint);color:var(--green-dark)}
.emergency-guidance-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
.emergency-guidance-actions a,.emergency-guidance-actions button{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;text-align:center;text-decoration:none}
.emergency-guidance-actions .danger-link{border-color:#c34d43;color:#9c3029}
.emergency-do-not-feed{grid-column:1/-1;margin:0;padding:16px 18px;border:1px solid #d4776f;border-radius:12px;background:#fff;color:#8e2f28!important;font-size:18px!important;font-weight:900}
.emergency-facility-search{grid-column:1/-1;margin-top:0;text-align:left}
.emergency-facility-search .medical-facility-status{border:1px solid #ebc0bc;background:#fff8f7}
.emergency-facility-card{border-color:#ebc0bc}
.emergency-facility-card .medical-facility-card-heading>span{background:#fff0ee;color:#8e2f28}
.segmented-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:28px 0 12px}
.segmented-choice label{position:relative;cursor:pointer}
.segmented-choice input{position:absolute;opacity:0;inset:0}
.segmented-choice span{display:flex;align-items:center;gap:16px;width:100%;min-width:0;min-height:82px;border:2px solid var(--line);border-radius:16px;background:#fff;padding:20px 28px;font-size:26px;font-weight:900;color:var(--ink)}
.segmented-choice span::before{content:"";width:28px;height:28px;border:2px solid #94a5a2;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 7px #fff}
.segmented-choice input:checked+span{border-color:var(--green);background:var(--mint);color:var(--green-dark)}
.segmented-choice input:checked+span::before{background:var(--green);border-color:var(--green)}
.segmented-choice input:focus-visible+span{outline:4px solid #bce6dc;outline-offset:3px}
.card-warning{font-weight:900;color:#b5443c!important;margin-top:8px!important}
.card-note{font-weight:800;color:#586477!important;margin-top:8px!important}
.eligibility-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.form-row.compact{margin:10px 0 0}
.form-row.compact input,.form-row.compact select{min-height:68px;font-size:22px}
.link-button{border:0;background:transparent;color:var(--green-dark);font-weight:900;padding:4px 0;min-height:44px;cursor:pointer}
.help-text{background:var(--mint);border-radius:12px;padding:14px 16px!important;color:var(--green-dark)!important;font-size:17px!important}
.eligibility-actions{align-items:center;margin-top:24px;max-width:none}.eligibility-actions .primary{min-width:300px;font-size:22px;padding:17px 28px;border-radius:16px}.eligibility-actions .secondary{min-width:160px;font-size:22px;padding:16px 26px;border-radius:16px}
.branch-result{max-width:none;width:100%;margin:34px 0 0;padding:34px 40px;border:2px solid #efb4ad;border-left:8px solid #c34d43;border-radius:18px;background:#fff8f6}
.branch-result:focus{outline:4px solid #f2d2cd;outline-offset:4px}
.branch-result .eyebrow{color:#b5443c;margin-bottom:8px}
.branch-result h3{font-size:clamp(30px,4vw,44px);line-height:1.16;letter-spacing:-.04em;margin:0 0 12px;color:var(--ink)}
.branch-result>p:not(.eyebrow):not(.branch-safety){font-size:20px;color:var(--muted);margin:0 0 22px}
.branch-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}
.branch-result-grid article{border:1px solid var(--line);border-radius:14px;background:#fff;padding:20px}
.branch-result-grid strong{display:block;font-size:20px;margin-bottom:8px}
.branch-result-grid p{color:var(--muted);margin:0}
.branch-safety{border:1px solid #e0aa1d;border-radius:12px;background:var(--warning-bg);padding:14px 16px;color:#5f4618!important;font-weight:800}
.challenge-follow-up{display:none!important;align-items:flex-start}.challenge-follow-up>div{flex:1}.challenge-follow-up strong{display:block;font-size:23px;color:var(--ink);margin-bottom:4px}.challenge-follow-up .secondary{margin-top:14px;background:#fff}
.notice>span{width:auto;min-width:32px;padding:0 8px;white-space:nowrap;border-radius:999px}
.step-panel li{cursor:pointer;transition:background .15s ease,color .15s ease,opacity .15s ease}
.step-panel li:hover:not(.locked){background:#eef7f4;color:var(--green-dark)}
.step-panel li.locked{cursor:not-allowed;opacity:.55}
.step-panel li[aria-current="step"]{box-shadow:inset 0 0 0 2px rgba(23,107,91,.08)}
.step-panel li:focus-visible{outline:4px solid #bce6dc;outline-offset:3px}
.inner-step-tabs{display:flex;gap:12px;margin:20px 0 32px;flex-wrap:wrap}
.inner-step-tabs button{display:inline-flex;align-items:center;min-height:58px;padding:12px 28px;border:2px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:22px;font-weight:900;cursor:pointer}
.inner-step-tabs button.active{border-color:var(--green);background:var(--mint);color:var(--green-dark)}
.inner-step-tabs button:hover{border-color:var(--green);color:var(--green-dark)}
.health-input-panel{max-width:none}
.health-input-panel h3{font-size:clamp(30px,3.5vw,42px);line-height:1.18;letter-spacing:-.035em;margin:4px 0 20px;color:var(--ink)}
.health-input-panel.two-column{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 38px}
.health-input-panel .form-row label{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.health-input-panel .form-row label small,.choice-block legend small{display:inline;color:#b5443c;font-size:14px;font-weight:900;margin:0}
.health-input-panel .form-row input,.choice-block select{min-height:66px;border-color:#9cadab;border-radius:10px;font-size:21px;font-weight:800}#annual-household-income{font-weight:400}
.health-input-notice{align-items:center}
.health-input-notice>span{display:inline-flex;flex:0 0 auto;width:auto;height:auto;min-height:32px;padding:4px 0;border-radius:0;background:transparent;color:#d2950b;white-space:nowrap}
.lifestyle-question-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;gap:22px 24px;margin:28px 0 0}
.choice-block{position:relative;border:2px solid var(--line);border-radius:16px;background:#fff;padding:26px 28px;margin:0}
.choice-block legend{display:flex;align-items:center;gap:4px;width:100%;float:none;padding:0;margin:0 0 22px;background:#fff;font-size:20px;line-height:1.25}
.choice-title{display:flex;align-items:center;gap:4px;width:100%;padding:0;margin:0 0 22px;background:#fff;font-size:20px;line-height:1.25;font-weight:900;color:var(--ink)}
.choice-title small{display:inline;color:#b5443c;font-size:14px;font-weight:900;margin:0}
.choice-block select{width:100%;background:#fff;padding:12px 14px}
.choice-block .segmented-choice{margin:0}
.choice-block .segmented-choice label{flex:1}
.choice-block .segmented-choice span{width:100%;justify-content:flex-start;min-height:58px}
.linked-lifestyle-detail{margin-top:18px!important;padding-top:16px;border-top:1px solid rgba(23,107,91,.14)}
.linked-lifestyle-detail.disabled{opacity:.62}
.lifestyle-toggle-card{padding:22px 26px}
.lifestyle-toggle-card .segmented-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lifestyle-toggle-card .segmented-choice span{min-width:0;min-height:52px;padding:10px 14px;font-size:18px}
.lifestyle-toggle-card .segmented-choice span::before{width:18px;height:18px;box-shadow:inset 0 0 0 5px #fff}
.smoking-status-card,.self-health-card,.meal-count-card{grid-column:span 2}
.smoking-status-card .segmented-choice{grid-template-columns:repeat(3,minmax(0,1fr))}
.lifestyle-drinking-card{grid-column:1/-1}
.lifestyle-activity-card{grid-column:1/-1}
.lifestyle-drinking-card{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(240px,1fr) minmax(320px,1.5fr);align-items:end;gap:16px 20px}
.lifestyle-drinking-card .choice-title,.lifestyle-drinking-card .linked-lifestyle-detail{margin:0!important}
.lifestyle-drinking-card .linked-lifestyle-detail{padding-top:0;border-top:0}
.activity-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.activity-detail-grid .form-row{margin:0}
.exercise-detail-card,.exercise-detail-grid{display:contents}
.exercise-detail-card.disabled{opacity:.62}
.exercise-detail-card.disabled input{opacity:.62}
.health-input-panel .exercise-detail-grid .form-row input{min-height:52px}
.lifestyle-wide-card{min-height:132px}
.review-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:22px;margin:28px 0}
.review-card{border:2px solid var(--line);border-radius:16px;background:#fff;padding:24px 28px;min-height:280px}
.review-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px}
.review-card-title h4{font-size:25px;line-height:1.2;margin:0}
.review-card-title .link-button{background:var(--mint);border-radius:10px;padding:8px 14px;white-space:nowrap}
.review-card dl{display:grid;gap:0;margin:0}
.review-card dl div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:11px 0}
.review-card dt{color:var(--muted);font-weight:800}
.review-card dd{margin:0;text-align:right;font-weight:900;color:var(--ink)}
.review-submit-actions{justify-content:center;margin-top:42px}
.review-submit-actions .primary{width:min(760px,100%);min-height:76px;border-radius:18px;font-size:26px;box-shadow:0 14px 28px rgba(23,107,91,.18)}
.health-input-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 24px}
.health-input-guide article{border:1px solid var(--line);border-radius:18px;background:#fff;padding:18px 20px;box-shadow:0 10px 22px rgba(20,33,61,.05)}
.health-input-guide strong{display:block;margin-bottom:8px;color:var(--green-dark);font-size:18px}
.health-input-guide p{margin:0;color:var(--muted);line-height:1.75}
.result-confirmation-lead{display:grid;gap:8px}
.result-confirmation-lead p{margin:0}
.result-safety-card{margin:24px 0 22px}
.prediction-status-card{width:100%;max-width:none;margin:16px 0 26px;padding:64px clamp(36px,7vw,96px) 46px;border:2px solid #9fc9bd;border-radius:24px;background:#fff;text-align:center}
.prediction-mascot{display:block;width:220px;height:220px;object-fit:contain;margin:0 auto 18px;animation:glucose-float 3.2s ease-in-out infinite;filter:drop-shadow(0 14px 18px rgba(18,52,43,.14))}
.status-demo-panel{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0 6px;padding:14px 16px;border:1px dashed #b8c9c4;border-radius:14px;background:#f8fbfa}
.status-demo-panel span{font-size:15px;font-weight:900;color:var(--muted);margin-right:4px}
.status-demo-panel button{min-height:42px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-weight:900;padding:8px 15px;cursor:pointer}
.status-demo-panel button:hover,.status-demo-panel button.active{border-color:var(--green);background:var(--mint);color:var(--green-dark)}
.status-demo-panel button:focus-visible{outline:3px solid #2f7f73;outline-offset:2px}
.prediction-status-card[data-status="queued"]{border-color:#92bfe8}
.prediction-status-card[data-status="failed"]{border-color:#e79a93}
.prediction-status-card[data-status="failed"][data-error-code="TIMEOUT"],.prediction-status-card[data-status="failed"][data-error-code="MODEL_NOT_READY"],.prediction-status-card[data-status="failed"][data-error-code="ML_MODEL_UNAVAILABLE"],.prediction-status-card[data-status="failed"][data-error-code="ML_MODEL_CONTRACT_ERROR"]{border-color:#e2b84d}
.status-symbol{display:grid;place-items:center;width:112px;height:112px;margin:0 auto 16px;border:5px solid var(--green);border-radius:50%;background:var(--mint);color:var(--green);font-size:42px;font-weight:900}
.prediction-status-card[data-status="queued"] .status-symbol{border-color:#3279bd;color:#3279bd;background:#eef7ff}
.prediction-status-card[data-status="failed"] .status-symbol{border-color:#b5443c;color:#b5443c;background:#fff4f2}
.prediction-status-card[data-status="failed"][data-error-code="TIMEOUT"] .status-symbol,.prediction-status-card[data-status="failed"][data-error-code="MODEL_NOT_READY"] .status-symbol,.prediction-status-card[data-status="failed"][data-error-code="ML_MODEL_UNAVAILABLE"] .status-symbol,.prediction-status-card[data-status="failed"][data-error-code="ML_MODEL_CONTRACT_ERROR"] .status-symbol{border-color:#d8a313;color:#9c760a;background:#fff8df}
.prediction-status-card h3{font-size:38px;margin:0 0 14px;color:var(--green-dark)}
.prediction-status-card[data-status="failed"] h3{color:#b5443c}
.prediction-status-card[data-status="failed"][data-error-code="TIMEOUT"] h3,.prediction-status-card[data-status="failed"][data-error-code="MODEL_NOT_READY"] h3,.prediction-status-card[data-status="failed"][data-error-code="ML_MODEL_UNAVAILABLE"] h3,.prediction-status-card[data-status="failed"][data-error-code="ML_MODEL_CONTRACT_ERROR"] h3{color:#8a6400}
.prediction-status-card p{color:var(--muted);font-size:22px;margin:0 0 34px}
.prediction-status-track{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:34px auto 0;padding:26px 0 0;border-top:1px solid var(--line);max-width:940px}
.prediction-status-track li{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:19px;font-weight:900}
.prediction-status-track span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#dce7e3;color:#64736e;font-weight:900}
.prediction-status-track li.done{color:var(--green-dark)}
.prediction-status-track li.done span{background:var(--green);color:#fff}
.prediction-status-track li.failed{color:#b5443c}
.prediction-status-track li.failed span{background:#b5443c;color:#fff}
.prediction-status-track li.warning{color:#8a6400}
.prediction-status-track li.warning span{background:#d8a313;color:#fff}
.screen.analysis-room-screen{max-width:none;margin-inline:0}
.screen.analysis-room-screen.active{
  position:relative;
  display:grid;
  place-items:center;
  min-height:calc(100svh - 170px);
  margin:-28px clamp(-76px,-4vw,-24px) -58px;
  padding:clamp(70px,8svh,108px) clamp(18px,5vw,78px) clamp(40px,6svh,76px);
  overflow:hidden;
  isolation:isolate;
}
.analysis-room-screen::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url('/static/assets/health-review-desk-20260909.png') center center/cover no-repeat;
}
.analysis-room-screen::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(52,25,8,.06),rgba(52,25,8,.18));
}
.analysis-room-screen .status-demo-panel{
  position:absolute;
  top:18px;
  left:50%;
  z-index:2;
  transform:translateX(-50%);
  width:min(720px,calc(100% - 36px));
  margin:0;
  border-color:#b88950;
  background:rgba(255,248,232,.92);
}
.analysis-room-screen .prediction-status-card{
  position:relative;
  display:grid;
  justify-items:center;
  grid-template-areas:
    "mascot"
    "message"
    "track";
  grid-template-rows:190px auto auto;
  align-items:start;
  gap:12px;
  width:min(980px,100%);
  height:auto;
  min-height:620px;
  margin:0;
  padding:clamp(24px,4vw,42px) clamp(18px,5vw,58px);
  border:10px solid #75441f;
  border-radius:24px;
  background:
    linear-gradient(180deg,rgba(255,252,239,.96),rgba(248,224,184,.95)),
    #fff3d0;
  box-shadow:0 18px 0 #4f2d18,0 34px 58px rgba(23,44,36,.26),inset 0 0 0 4px rgba(255,255,255,.58);
  text-align:center;
}
.analysis-room-screen .prediction-status-card[data-status="failed"]{
  border-color:#75441f;
}
.analysis-room-screen .prediction-status-card[data-status="queued"]{
  border-color:#75441f;
}
.analysis-room-screen .prediction-status-card[data-status="failed"][data-error-code="TIMEOUT"],
.analysis-room-screen .prediction-status-card[data-status="failed"][data-error-code="MODEL_NOT_READY"],
.analysis-room-screen .prediction-status-card[data-status="failed"][data-error-code="ML_MODEL_UNAVAILABLE"],
.analysis-room-screen .prediction-status-card[data-status="failed"][data-error-code="ML_MODEL_CONTRACT_ERROR"]{
  border-color:#75441f;
}
.analysis-room-screen .prediction-status-card::before{
  content:"";
  position:absolute;
  inset:22px;
  pointer-events:none;
  border:2px dashed rgba(151,103,61,.36);
  border-radius:16px;
}
.analysis-room-screen .prediction-mascot{
  grid-area:mascot;
  align-self:end;
  width:190px;
  height:190px;
  object-fit:contain;
  margin:0 auto;
  filter:drop-shadow(0 18px 18px rgba(47,25,13,.22));
}
.analysis-room-screen .status-symbol{
  display:none;
}
.analysis-room-screen .prediction-status-message-card{
  grid-area:message;
  display:grid;
  justify-items:center;
  align-content:center;
  align-self:start;
  width:min(620px,100%);
  height:auto;
  min-height:230px;
  margin:0 auto;
  padding:24px clamp(28px,4vw,46px);
  border:3px solid #c98e52;
  border-radius:14px;
  background:
    linear-gradient(180deg,#fffaf0 0%,#fff2d6 100%),
    #fff5dd;
  box-shadow:0 8px 0 rgba(83,45,22,.56),0 16px 24px rgba(47,25,13,.16),inset 0 0 0 2px rgba(255,255,255,.72);
  text-align:center;
}
.analysis-room-screen .prediction-status-message-card #retry-analysis{
  margin:14px 0 0;
  min-width:0;
  max-width:100%;
  min-height:54px;
  border:3px solid #75441f;
  border-radius:14px;
  background:#0b5a4d;
  color:#fffbe8;
  font-size:20px;
  font-weight:950;
  box-shadow:0 5px 0 #4f2d18;
}
.analysis-room-screen .prediction-status-card h3{
  margin:0;
  color:#4b240f;
  font-size:clamp(34px,4.6vw,54px);
  letter-spacing:-.04em;
  line-height:1.1;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.analysis-room-screen .prediction-status-card p{
  display:grid;
  place-items:center;
  max-width:760px;
  margin:18px 0 0;
  color:#5f3a20;
  font-size:clamp(20px,2.2vw,28px);
  font-weight:850;
  line-height:1.55;
  white-space:pre-line;
  text-align:center;
}
.analysis-room-screen .prediction-status-track{
  grid-area:track;
  position:relative;
  align-self:end;
  width:min(760px,100%);
  max-width:100%;
  margin:0;
  padding:16px 0 0;
  border-top:2px dashed rgba(151,103,61,.36);
  gap:14px;
  overflow:visible;
}
.analysis-room-screen .prediction-status-track li{
  color:#7a5a39;
  font-size:16px;
  line-height:1.25;
  min-width:0;
}
.analysis-room-screen .prediction-status-track span{
  background:#efe4c8;
  color:#7a5a39;
  width:34px;
  height:34px;
  flex:0 0 34px;
}
.analysis-room-screen .prediction-status-track li.done{
  color:#0b4d42;
}
.analysis-room-screen .prediction-status-track li.done span{
  background:#0b4d42;
  color:#fffbe8;
}
.risk-confirm-card{border:3px solid var(--green);border-radius:24px;background:#fff;padding:34px 38px;margin:30px 0;box-shadow:0 8px 20px rgba(18,52,43,.05)}
.risk-confirm-main{display:grid;grid-template-columns:190px minmax(0,1fr) 300px;gap:28px;align-items:center}
.screen.result-room-screen{max-width:none;margin-inline:0}
.screen.result-room-screen.active{
  position:relative;
  min-height:calc(100svh - 170px);
  margin:-28px clamp(-76px,-4vw,-24px) -58px;
  padding:clamp(62px,7svh,92px) clamp(18px,5vw,78px) clamp(42px,6svh,76px);
  overflow:hidden auto;
  isolation:isolate;
}
.result-room-screen::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url('/static/assets/health-review-desk-20260909.png') center center/cover no-repeat;
}
.result-room-screen::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(52,25,8,.06),rgba(52,25,8,.19));
}
.result-room-screen>#partial-analysis-notice,
.result-room-screen>#detail-save-notice,
.result-room-screen>#result-unavailable,
.result-room-screen>#development-preview-notice,
.result-room-screen>#current-health-result{
  display:none !important;
}
.result-room-screen>#result-signal-grid{
  width:min(1480px,100%);
  margin:0 auto;
}
.result-room-screen>#result-confirmation-eyebrow,
.result-room-screen>#factors-title,
.result-room-screen>.result-confirmation-lead,
.result-room-screen>#partial-analysis-notice,
.result-room-screen>#detail-save-notice,
.result-room-screen>#result-unavailable,
.result-room-screen>#development-preview-notice,
.result-room-screen>#current-health-result,
.result-room-screen>#risk-confirm-card,
.result-room-screen>#future-prediction-result,
.result-room-screen>.result-safety-card,
.result-room-screen>#medical-guidance-detail,
.result-room-screen>.result-next-actions{
  width:min(1480px,100%);
  margin-left:auto;
  margin-right:auto;
}
.result-room-screen>#result-confirmation-eyebrow{
  display:none;
}
.result-room-screen>#factors-title{
  margin-top:0;
  margin-bottom:16px;
  padding:22px clamp(24px,5vw,52px);
  border:8px solid #75441f;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,252,239,.96),rgba(248,224,184,.96));
  color:#4b240f;
  text-align:center;
  box-shadow:0 12px 0 #4f2d18,0 24px 42px rgba(23,44,36,.18),inset 0 0 0 4px rgba(255,255,255,.58);
}
.result-room-screen>.result-confirmation-lead{
  display:none;
}
.result-room-screen>.result-confirmation-lead p{
  min-height:92px;
  margin:0;
  padding:18px 20px;
  border:2px solid #b88950;
  border-radius:18px;
  background:rgba(255,250,240,.95);
  color:#5f3a20;
  font-size:20px;
  font-weight:850;
  text-align:center;
  box-shadow:0 5px 0 rgba(117,68,31,.24);
}
.result-room-screen>.result-confirmation-lead strong{
  display:block;
  margin-bottom:6px;
  color:#0b4d42;
  font-size:23px;
}
.result-room-screen .current-risk-signal-card,
.result-room-screen .risk-forecast-panel,
.result-room-screen .current-health-result{
  border:8px solid #75441f;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,252,239,.97),rgba(248,224,184,.95));
  box-shadow:0 12px 0 #4f2d18,0 24px 42px rgba(23,44,36,.18),inset 0 0 0 4px rgba(255,255,255,.55);
}
.result-signal-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:34px;
  align-items:start;
}
.result-signal-grid>.result-signal-card,
.result-signal-grid>#future-prediction-result{
  min-width:0;
  min-height:520px;
}
.result-signal-grid .current-risk-signal-card,
.result-signal-grid .risk-forecast-panel,
.result-signal-grid .xai-factor-card,
.result-signal-grid #future-prediction-result{
  height:100%;
  margin:0;
  padding:34px 38px;
  border:2px solid #c8d9d2;
  border-radius:20px;
  background:rgba(255,255,255,.94);
  box-shadow:0 16px 34px rgba(20,33,61,.08);
}
.result-room-screen #result-signal-grid>#future-prediction-result{
  border:8px solid #75441f!important;
  border-radius:22px!important;
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.05) 0 2px,transparent 2px 64px),
    linear-gradient(180deg,#9b6438 0%,#85502b 100%)!important;
  box-shadow:0 12px 0 #4f2d18,0 24px 42px rgba(23,44,36,.18),inset 0 0 0 4px rgba(255,255,255,.22)!important;
  color:#121b36;
}
.result-signal-grid .current-risk-signal-card,
.result-signal-grid #future-prediction-result{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:24px;
}
.result-signal-grid .current-risk-signal-card{
  min-height:520px;
}
.current-signal-content{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
  align-items:stretch;
  min-height:330px;
}
.current-signal-content .current-risk-signal-body,
.current-signal-content .current-xai-slot{
  min-width:0;
  height:100%;
}
.current-signal-content .current-risk-signal-body{
  display:grid;
  place-items:center;
  padding:28px;
  border:2px solid #c8d9d2;
  border-radius:22px;
  background:rgba(255,250,240,.94);
  box-shadow:0 12px 26px rgba(20,33,61,.06);
}
.current-signal-content .current-xai-slot{
  display:grid;
  place-items:center;
  min-height:330px;
  padding:28px;
  border:3px dashed #b88950;
  border-radius:22px;
  background:rgba(255,250,240,.78);
  color:#6b4424;
  text-align:center;
}
.result-signal-grid #future-prediction-result .risk-forecast-panel{
  width:100%;
}
.result-signal-grid #future-prediction-result>.current-health-result{
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto;
  gap:24px;
  min-height:0;
  height:100%;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.result-room-screen #future-prediction-result>.current-health-result{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.result-signal-grid #future-prediction-result .future-risk-signal-heading{
  margin:0;
}
.result-signal-grid #future-prediction-result .future-signal-layout{
  min-height:330px;
  margin:0;
}
.result-signal-grid #future-prediction-result .future-signal-visual,
.result-signal-grid #future-prediction-result .forecast-score-placeholder{
  min-width:0;
  height:100%;
}
.result-signal-grid #future-prediction-result .future-signal-visual{
  display:grid;
  place-items:center;
  padding:28px;
  border:2px solid #c8d9d2;
  border-radius:22px;
  background:rgba(255,250,240,.94);
  box-shadow:0 12px 26px rgba(20,33,61,.06);
}
.result-signal-grid #future-prediction-result .forecast-score-placeholder{
  display:grid;
  place-items:center;
  min-height:330px;
  margin:0;
  padding:28px;
  border:3px dashed #b88950;
  border-radius:22px;
  background:rgba(255,250,240,.78);
  color:#6b4424;
  text-align:center;
  box-shadow:none;
}
.result-xai-card{
  display:grid;
  align-content:stretch;
}
.result-xai-card>.eyebrow{
  align-self:start;
  font-size:24px;
  color:#0b6b5f;
}
.result-xai-waiting{
  display:grid;
  place-items:center;
  align-content:center;
  min-height:260px;
  text-align:center;
}
.result-xai-waiting h3{
  margin:0;
  color:#111827;
  font-size:clamp(26px,2.3vw,34px);
  line-height:1.25;
}
.result-xai-waiting .factor-list{
  width:min(520px,100%);
  margin:18px auto 0;
}
.result-xai-waiting .factor-list li{
  display:none;
}
.result-xai-card.xai-ready{
  place-items:stretch;
  border-style:solid;
  border-color:#b88950;
  background:rgba(255,250,240,.94);
  color:#121b36;
  text-align:left;
}
.result-xai-card.xai-ready .result-xai-waiting{
  place-items:stretch;
  align-content:start;
  text-align:left;
}
.result-xai-card.xai-ready .factor-list{width:100%}
.result-xai-card.xai-ready .factor-list li{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  align-items:center;
  background:#fffaf0;
  border-color:#c79557;
}
.xai-direction-icon{width:54px;height:54px;object-fit:contain}
.result-xai-card .factor-list small{display:block;margin-top:4px;color:#0b6b5f;font-weight:900}
@media(max-width:800px){
  .result-room-screen .current-signal-content,
  .result-room-screen .risk-forecast-panel{grid-template-columns:minmax(0,1fr)!important}
  .result-xai-card.xai-ready .factor-list li{grid-template-columns:48px minmax(0,1fr);padding:14px 12px}
  .xai-direction-icon{width:42px;height:42px}
}
.result-room-screen .current-risk-signal-heading .eyebrow,
.result-room-screen .risk-forecast-heading .eyebrow,
.result-room-screen #future-prediction-result .eyebrow{
  color:#0b6b5f;
  font-size:clamp(22px,2.2vw,28px);
  line-height:1.1;
}
.result-room-screen #future-prediction-result .eyebrow{
  color:#121b36;
}
.result-room-screen .current-risk-signal-heading h3,
.result-room-screen .risk-forecast-heading h3,
.result-room-screen #future-onset-title{
  color:#121b36;
  font-size:clamp(26px,2.4vw,34px);
  line-height:1.3;
  margin:0;
}
.result-room-screen .result-safety-card{
  border-color:#b88950;
  background:rgba(255,248,232,.95);
}
.result-room-screen .risk-forecast-panel{
  display:grid;
  grid-template-columns:minmax(360px,.92fr) minmax(420px,1.08fr);
  grid-template-rows:auto minmax(0,1fr);
  gap:28px;
  align-items:stretch;
}
.result-room-screen .risk-forecast-heading,
.result-room-screen .forecast-state{
  grid-column:1/-1;
}
.result-room-screen .forecast-state[hidden]{
  display:none!important;
}
.result-room-screen .future-risk-category,
.result-room-screen .risk-forecast-description{
  display:none;
}
.result-room-screen .age-risk-chart{
  grid-column:1;
  width:100%;
  min-height:430px;
  margin:0;
  align-self:stretch;
  border:2px solid #c8d9d2;
  border-radius:22px;
  background:rgba(255,250,240,.94);
  box-shadow:0 12px 26px rgba(20,33,61,.06);
}
.result-room-screen .future-signal-layout .age-risk-point{
  min-width:0;
  width:100%;
}
.result-room-screen .forecast-score-placeholder{
  grid-column:2;
  display:grid;
  place-items:center;
  min-height:430px;
  padding:28px;
  border:3px dashed #b88950;
  border-radius:22px;
  background:rgba(255,250,240,.78);
  color:#6b4424;
  font-size:clamp(24px,3vw,34px);
  font-weight:950;
  text-align:center;
}
.result-room-screen .age-risk-chart .age-risk-point{
  width:100%;
  min-width:0;
}
.result-room-screen .age-risk-chart .age-risk-point strong{
  font-size:clamp(36px,4.2vw,58px);
}
.result-room-screen .age-risk-chart .age-risk-point small{
  font-size:clamp(22px,2vw,30px);
}
.result-room-screen .age-risk-chart .age-risk-signal-track{
  width:min(480px,100%);
  height:260px;
}
.result-room-screen .age-risk-chart .age-risk-signal-track img{
  width:104px;
  height:104px;
}
.result-room-screen .age-risk-chart .age-risk-signal-track::before{
  height:184px;
}
.future-signal-layout{
  display:grid;
  grid-template-columns:minmax(260px,.95fr) minmax(300px,1.05fr);
  gap:22px;
  align-items:stretch;
  margin-top:22px;
}
.future-signal-visual{
  display:grid;
  place-items:center;
  min-height:430px;
  padding:28px;
  border:2px solid #c8d9d2;
  border-radius:22px;
  background:linear-gradient(180deg,#fffaf0,#f6ead0);
  box-shadow:0 12px 26px rgba(20,33,61,.06);
}
.future-signal-board{
  display:grid;
  justify-items:center;
  gap:16px;
  width:100%;
  color:var(--ink);
  text-align:center;
}
.future-signal-board strong{
  font-size:clamp(32px,4vw,54px);
  line-height:1.12;
}
.future-signal-board small{
  color:var(--ink);
  font-size:clamp(20px,2vw,28px);
  font-weight:950;
}
.future-signal-board .age-risk-signal-track{
  width:min(420px,100%);
  height:240px;
}
.future-signal-board .age-risk-signal-track img{
  width:104px;
  height:104px;
}
.future-signal-board .age-risk-signal-track::before{
  height:164px;
}
.future-signal-layout .forecast-score-placeholder{
  min-height:430px;
  margin:0;
}
.risk-badge{min-height:160px;border:2px solid var(--green);border-radius:24px;background:var(--mint);display:grid;place-items:center;text-align:center;color:var(--green-dark);padding:20px}
.risk-badge>span{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--green);color:#fff;font-size:30px;font-weight:900;margin-bottom:8px}
.risk-badge strong{display:block;font-size:30px;line-height:1.2}
.risk-badge small{display:block;margin-top:10px;font-size:17px;line-height:1.35;font-weight:900}
.risk-confirm-copy h3{font-size:32px;line-height:1.25;letter-spacing:-.03em;margin:0 0 16px;color:var(--ink)}
.risk-confirm-copy p{margin:6px 0;color:var(--muted);font-size:19px}
.risk-confirm-copy .risk-safety{display:inline-flex;width:auto;margin:18px 0 20px;padding:10px 17px;border:1px solid #e6bf40;border-radius:999px;background:var(--warning-bg);color:#72540b;font-size:16px;font-weight:900}
.risk-confirm-copy .primary{display:block;min-width:250px}
.risk-confirm-card[data-risk="moderate"]{border-color:#d9a20b}
.risk-confirm-card[data-risk="moderate"] .risk-badge{border-color:#d9a20b;background:#fff8df;color:#8a6400}
.risk-confirm-card[data-risk="moderate"] .risk-badge>span{background:#d9a20b}
.risk-confirm-card[data-risk="high"]{border-color:#bd4d43}
.risk-confirm-card[data-risk="high"] .risk-badge{border-color:#bd4d43;background:#fff1ef;color:#8d3029}
.risk-confirm-card[data-risk="high"] .risk-badge>span{background:#bd4d43}
.risk-confirm-card[data-risk="high"] .risk-confirm-copy .primary{background:#a93f37;border-color:#a93f37}
.risk-legend{border:1px solid var(--line);border-radius:16px;background:#fbfdfc;padding:14px 18px;display:grid;gap:12px}
.legend-row{display:grid;grid-template-columns:42px 58px 1fr;gap:10px;align-items:center}
.legend-row span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:#fff;font-weight:900}
.legend-row.low span{background:var(--green)}
.legend-row.caution span{background:#d9a20b}
.legend-row.high span{background:#bd4d43}
.legend-row strong{font-size:18px;color:var(--ink)}
.legend-row small{font-size:15px;color:var(--muted);line-height:1.35}
.notice.safety.medical-guidance-alert{align-items:flex-start;width:100%;margin:0 0 30px;padding:24px 26px;border:2px solid #d35f55;border-radius:20px;background:#fff7f6;box-shadow:0 6px 16px rgba(147,48,40,.08)}
.medical-guidance-alert>span{background:#b83f36;color:#fff}
.medical-guidance-alert>div{flex:1;min-width:0}
.medical-guidance-alert>div>strong{display:block;font-size:24px;line-height:1.35;color:#8d3029}
.medical-guidance-alert>div>p{font-size:18px;line-height:1.6;color:#69413e}
.medical-guidance-alert .medical-facility-list{border-color:#ecc5c1;box-shadow:none}
.medical-guidance-alert .medical-facility-search-heading .primary{border-color:#a93f37;background:#a93f37}
.medical-guidance-alert .medical-facility-search-heading .primary:hover{border-color:#8d3029;background:#8d3029}
.result-room-screen #medical-guidance-detail:not([hidden]){
  position:fixed;
  inset:0;
  z-index:40;
  display:grid;
  place-items:center;
  width:100%;
  max-width:none;
  margin:0;
  padding:clamp(16px,4vw,42px);
  border:0;
  border-radius:0;
  background:rgba(36,20,9,.48);
  box-shadow:none;
}
.result-room-screen #medical-guidance-detail>span{
  display:none;
}
.result-room-screen #medical-guidance-detail>div{
  position:relative;
  width:min(900px,100%);
  max-height:min(760px,calc(100svh - 40px));
  overflow:auto;
  padding:clamp(30px,4vw,44px);
  border:8px solid #75441f;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,252,239,.98),rgba(248,224,184,.97));
  box-shadow:0 16px 0 #4f2d18,0 34px 58px rgba(23,44,36,.28),inset 0 0 0 4px rgba(255,255,255,.58);
}
.result-room-screen #medical-guidance-detail>div::before{
  content:"";
  position:absolute;
  inset:18px;
  pointer-events:none;
  border:2px dashed rgba(151,103,61,.34);
  border-radius:16px;
}
.result-room-screen .medical-guidance-close{
  position:absolute;
  top:18px;
  right:18px;
  z-index:1;
  min-height:42px;
  padding:8px 14px;
  border-color:#b88950;
  background:#fff8e8;
  color:#4b240f;
}
.result-room-screen #medical-guidance-detail>div>strong{
  display:block;
  padding-right:70px;
  color:#4b240f;
  font-size:clamp(26px,3vw,36px);
  text-align:center;
}
.result-room-screen #medical-guidance-detail>div>p{
  color:#5f3a20;
  font-size:20px;
  font-weight:800;
  text-align:center;
}
.factor-panel{margin-top:24px;padding:22px 24px;border:2px solid #bf8a4c;border-radius:18px;background:rgba(255,250,240,.94);display:grid;grid-template-columns:310px minmax(0,1fr);gap:22px;align-items:start;box-shadow:0 7px 0 rgba(117,68,31,.15)}
.factor-panel h3{font-size:25px;line-height:1.25;margin:0 0 8px;color:#17372f}
.factor-panel p{margin:0;color:var(--muted)}
.factor-panel .factor-list{margin:0}
.factor-panel .factor-list li{background:#fffdf7;grid-template-columns:1fr;border-color:#c79557}
.factor-panel .factor-list small{display:inline-block;margin:4px 0 0;color:#0c5f52;font-size:14px;font-weight:900}
.xai-ready-panel{grid-template-columns:1fr;gap:18px}
.factor-panel-heading{text-align:center;max-width:980px;margin:0 auto}
.xai-factor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.xai-factor-card{min-width:0;padding:20px;border:2px solid #c79557;border-radius:16px;background:rgba(255,253,247,.96)}
.xai-factor-label{display:inline-flex;align-items:center;min-height:34px;padding:5px 12px;border-radius:999px;background:#e7f3ef;color:#0a5f52;font-size:15px;font-weight:900}
.xai-factor-card h4{margin:12px 0 14px;color:#2e170a;font-size:22px;line-height:1.25}
.xai-factor-card .factor-list li{min-height:112px}
.current-risk-signal-card{margin:22px 0 30px;padding:24px 28px;border:2px solid var(--line);border-radius:20px;background:#fff}
.current-risk-signal-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}
.current-risk-signal-heading .eyebrow{margin:0 0 4px}
.current-risk-signal-heading h3{margin:0;font-size:25px;line-height:1.35;color:var(--ink)}
.current-signal-status{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 15px;border:1px solid #b9c9c4;border-radius:999px;background:#f4f7f6;color:#53635e;font-size:16px;font-weight:900;white-space:nowrap}
.risk-preview-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:-8px 0 16px}
.risk-preview-controls[hidden]{display:none}
.risk-preview-controls span{margin-right:4px;color:#72540b;font-size:14px;font-weight:900}
.risk-preview-controls button{min-height:40px;padding:8px 14px;border:1px solid #a8bbb4;border-radius:999px;background:#fff;color:var(--ink);font-weight:900}
.risk-preview-controls button.active{border-color:var(--green);background:var(--mint);color:var(--green-dark)}
.current-risk-signal-body{width:100%}
.risk-traffic-light{display:grid;grid-template-columns:repeat(2,minmax(74px,1fr));gap:14px;width:100%;padding:12px 18px;border-radius:24px;background:transparent;border:0;box-shadow:none}
.traffic-signal{display:grid;justify-items:center;gap:8px;color:var(--ink);font-size:15px;font-weight:900;opacity:.36;transition:opacity .2s,transform .2s}
.traffic-signal i{display:grid;place-items:center;width:clamp(92px,9.5vw,132px);height:clamp(92px,9.5vw,132px);border-radius:50%;background:transparent}
.traffic-signal i img{width:100%;height:100%;border-radius:50%;object-fit:contain;opacity:.5;filter:saturate(.82) brightness(.9);transition:opacity .2s,filter .2s,transform .2s}
.current-risk-signal-card[data-risk="high"] .traffic-signal.high,
.current-risk-signal-card[data-risk="low"] .traffic-signal.low{opacity:1;transform:scale(1.05)}
.current-risk-signal-card[data-risk="high"] .traffic-signal.high img,
.current-risk-signal-card[data-risk="low"] .traffic-signal.low img{opacity:1;filter:none;transform:none;box-shadow:none}
.current-risk-signal-card[data-risk="high"]{border-color:#d7847d}
.current-risk-signal-card[data-risk="low"]{border-color:#82bdaa}
.current-risk-signal-card[data-risk="high"] .current-signal-status{border-color:#d7847d;background:#fff1ef;color:#8d3029}
.current-risk-signal-card[data-risk="low"] .current-signal-status{border-color:#c8d9d2;background:#fffaf0;color:var(--ink)}
.lifestyle-summary-card{border:2px solid var(--line);border-radius:20px;background:#fff;padding:22px 24px;margin:24px 0}
.lifestyle-summary-heading{display:flex;align-items:center;gap:18px;margin-bottom:18px}
.lifestyle-summary-heading img{flex:0 0 82px;width:82px;height:82px;border-radius:50%;object-fit:contain;background:var(--mint)}
.lifestyle-summary-heading h3{font-size:26px;line-height:1.3;margin:2px 0 4px}
.lifestyle-summary-heading p{margin:0}.lifestyle-summary-heading p:last-child{color:var(--muted);font-size:16px}
.lifestyle-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.lifestyle-summary-toggle{width:100%;min-height:64px;padding:12px 10px;border:1px solid #c7d7d2;border-radius:14px;background:#fff;color:var(--ink);font-size:19px;font-weight:900;text-align:center;cursor:pointer;box-shadow:0 3px 10px rgba(25,69,57,.05);transition:border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease}
.lifestyle-summary-toggle:hover{border-color:#7ea99d;background:#f5faf8}.lifestyle-summary-toggle:focus-visible{outline:4px solid #bce6dc;outline-offset:2px}.lifestyle-summary-toggle[aria-expanded="true"]{border-color:var(--green);background:var(--green);color:#fff;box-shadow:0 6px 16px rgba(25,92,74,.18)}
.lifestyle-summary-details{margin-top:12px}
.lifestyle-summary-panel{padding:20px 22px;border:1px solid #c7d7d2;border-radius:14px;background:#f6faf8;color:#40534d}.lifestyle-summary-panel p{margin:0;font-size:17px;line-height:1.65}.lifestyle-summary-panel p+p{margin-top:14px;padding-top:14px;border-top:1px solid #d9e4e0}
.correction-summary{border:2px solid #e37166;border-radius:16px;background:#fff8f6;padding:24px;margin:28px 0}
.correction-summary h3{font-size:30px;margin:0 0 8px}
.correction-summary>p:not(.eyebrow){color:var(--muted);margin:0 0 16px}
.correction-summary ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.correction-summary li{margin:0}
.correction-summary .link-button{display:block;width:100%;text-align:left;border:1px solid #efb4ad;border-radius:12px;background:#fff;padding:14px 16px}
.correction-summary strong,.correction-summary small{display:block}
.correction-summary small{color:#b5443c;margin-top:4px}
.challenge-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#challenge-list{grid-auto-rows:1fr}
#challenge-list .challenge-card{display:block;height:100%}
#challenge-list .challenge-card span{display:flex;height:100%;align-items:center;gap:22px}
#challenge-list .challenge-card-copy{min-width:0;flex:1}
.challenge-add-card{min-height:190px;border:2px dashed #86aaa0;border-radius:18px;background:#f7fbf9;color:var(--green-dark);display:grid;place-content:center;justify-items:center;gap:6px;padding:24px;cursor:pointer}.challenge-add-card:hover{border-color:var(--green);background:var(--mint)}.challenge-add-card b{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:var(--green);color:#fff;font-size:34px;line-height:1}.challenge-add-card strong{font-size:23px}.challenge-add-card small{color:var(--muted)}.custom-challenge-slot{position:relative}.custom-challenge-slot label{display:block;height:100%}.custom-challenge-slot>button{position:absolute;right:16px;bottom:14px;z-index:2;min-height:40px;padding:7px 14px;border-radius:10px;font-size:16px}.custom-challenge-icon{display:grid!important;place-items:center;flex:0 0 76px!important;width:76px;height:76px!important;min-height:76px!important;padding:0!important;border:0!important;border-radius:50%!important;background:var(--mint)!important;color:var(--green-dark);font-size:38px;font-weight:900}.custom-challenge-slot em{display:inline-block;margin-top:9px;color:var(--green-dark);font-size:15px;font-style:normal;font-weight:800}
.rag-challenge-generator{margin:22px 0;padding:28px;border:2px solid #c9d8d3;border-radius:20px;background:#fff}.rag-challenge-generator-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.rag-challenge-generator-heading>div{min-width:0}.rag-challenge-generator-heading .text-button{flex:0 0 auto;min-height:44px;padding:8px 14px}.rag-challenge-generator h3{font-size:28px;margin:4px 0 6px}.rag-challenge-generator-heading p:last-child{color:var(--muted)}.rag-challenge-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:12px;margin-top:18px}.rag-challenge-controls .form-row{margin:0}.rag-challenge-state{margin-top:16px;padding:18px 20px;border:2px dashed #b9cbc5;border-radius:16px;background:#f8fbfa}.rag-challenge-state strong{display:block;font-size:20px;color:var(--ink)}.rag-challenge-state p{margin:6px 0 0;color:var(--muted);font-size:16px;line-height:1.55}.rag-challenge-state[data-state="loading"]{border-color:#8bb7ab;background:var(--mint)}.rag-challenge-state[data-state="done"]{border-style:solid;border-color:var(--green);background:#f4fbf8}.rag-challenge-state[data-state="failed"]{border-color:#e1a08c;background:#fff6f2}.rag-challenge-draft{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center;margin-top:14px;padding:20px;border:2px solid var(--green);border-radius:16px;background:var(--mint)}.rag-challenge-draft strong{font-size:22px;color:var(--ink)}.rag-challenge-draft p{margin:0;color:var(--ink);font-size:17px}.rag-challenge-draft small{color:var(--muted)}.rag-challenge-draft button{grid-column:2;grid-row:1/4}
.rag-challenge-candidates{margin-top:16px;padding:20px;border:2px solid var(--green);border-radius:18px;background:#f7fcfa}.rag-challenge-candidate-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.rag-challenge-candidate-heading h4{margin:2px 0 0;font-size:24px}.rag-challenge-candidate-heading>span{flex:0 0 auto;padding:6px 11px;border-radius:999px;background:var(--green);color:#fff;font-weight:900}.rag-challenge-candidate-fieldset{margin:18px 0 0;padding:0;border:0}.rag-challenge-candidate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.rag-challenge-candidate{position:relative;display:block;height:100%;cursor:pointer}.rag-challenge-candidate>input{position:absolute;left:16px;top:18px;width:22px;height:22px;accent-color:var(--green)}.rag-challenge-candidate-card{display:flex;flex-direction:column;height:100%;min-height:390px;padding:54px 18px 18px;border:2px solid #c9d8d3;border-radius:16px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.rag-challenge-candidate:hover .rag-challenge-candidate-card{border-color:#7fa99e;transform:translateY(-2px)}.rag-challenge-candidate>input:focus-visible+.rag-challenge-candidate-card{outline:4px solid #bce6dc;outline-offset:3px}.rag-challenge-candidate>input:checked+.rag-challenge-candidate-card{border-color:var(--green);box-shadow:0 0 0 3px #cce9e1;background:#f4fbf8}.rag-challenge-candidate-number{position:absolute;right:14px;top:14px;color:var(--green-dark);font-size:14px;font-weight:900}.rag-challenge-candidate-card h5{margin:0;font-size:21px;line-height:1.3}.rag-challenge-candidate-goal{margin:10px 0;color:var(--ink);font-size:16px;line-height:1.55}.rag-challenge-candidate-reason{margin:0 0 12px;color:var(--muted);font-size:15px}.rag-challenge-meta{display:grid;gap:8px;margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}.rag-challenge-meta strong{font-size:15px}.rag-challenge-caution{margin:0;padding:10px 12px;border-radius:10px;background:#fff7e6;color:#6d541a;font-size:14px;line-height:1.5}.rag-challenge-sources{margin:0;padding-left:20px}.rag-challenge-sources li+li{margin-top:6px}.rag-challenge-sources a{color:var(--green-dark);font-size:14px;font-weight:800;text-underline-offset:3px}.rag-challenge-selection-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.rag-challenge-selection-actions p{margin:0;color:var(--muted);font-weight:800}.rag-challenge-selection-actions .primary{flex:0 0 auto;min-height:52px}
.rag-challenge-candidate{display:flex;flex-direction:column;cursor:default}.rag-challenge-candidate-choice{position:relative;display:block;flex:1;cursor:pointer}.rag-challenge-candidate-choice>input{position:absolute;left:16px;top:18px;width:22px;height:22px;accent-color:var(--green)}.rag-challenge-candidate-choice>input:focus-visible~.rag-challenge-candidate-card{outline:4px solid #bce6dc;outline-offset:3px}.rag-challenge-candidate-choice>input:checked~.rag-challenge-candidate-card{border-color:var(--green);box-shadow:0 0 0 3px #cce9e1;background:#f4fbf8}.rag-challenge-candidate-title{font-size:21px;line-height:1.3}.rag-challenge-source-panel{margin-top:10px;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff}.rag-challenge-source-panel>strong{font-size:15px}.rag-challenge-source-panel .rag-challenge-sources{margin-top:8px}
.medical-facility-list{margin-top:16px;padding:20px;border:1px solid #d6e1dd;border-radius:16px;background:#fff}.medical-facility-search-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.medical-facility-search-heading>div{min-width:0}.medical-facility-list strong{font-size:19px}.medical-facility-list p{margin:6px 0 12px}.medical-facility-search-heading .primary{flex:0 0 auto;min-height:52px}.medical-facility-status{margin-top:14px;padding:15px 17px;border-radius:13px;background:#f3f7f5}.medical-facility-status strong{display:block}.medical-facility-status p{margin:5px 0 0}.medical-facility-status[data-state="loading"]{background:var(--mint)}.medical-facility-status[data-state="done"]{background:#edf8f1}.medical-facility-status[data-state="permission"],.medical-facility-status[data-state="unavailable"],.medical-facility-status[data-state="empty"]{background:#fff8e8}.medical-facility-status[data-state="failed"]{background:#fff1ed}.medical-facility-meta{margin-top:12px;padding:12px 14px;border-left:4px solid #9dbcb4;background:#f7faf9;color:var(--muted);font-size:14px}.medical-facility-meta p{margin:0}.medical-facility-meta p+p{margin-top:5px}.medical-facility-results{display:grid;gap:12px;margin-top:14px}.medical-facility-card{padding:18px;border:1px solid #d6e1dd;border-radius:14px;background:#fff}.medical-facility-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.medical-facility-card-heading>span{flex:0 0 auto;padding:4px 9px;border-radius:999px;background:var(--mint);color:var(--green-dark);font-weight:900}.medical-facility-address{color:var(--muted)}.facility-actions{display:flex;flex-wrap:wrap;gap:10px}.facility-actions .secondary{display:inline-flex;align-items:center;justify-content:center;min-width:96px;min-height:48px;padding:9px 16px;text-decoration:none}.facility-action-unavailable{display:inline-flex;align-items:center;min-height:48px;padding:9px 14px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:15px}.rag-citation-title{margin-top:14px!important;font-weight:900}#rag-result[data-state="failed"]{background:#fff1ed}#rag-result[data-state="refused"]{background:#fff8e8}
#rag-result[data-state="emergency"]{border:2px solid #c0392b;background:#fff1ed;color:#7a1f16}
.medical-facility-status[data-state="timeout"]{background:#fff8e8}
.facility-address-form{margin-top:14px}.facility-address-form label{display:block;margin-bottom:8px;font-weight:800}.facility-address-form>div{display:flex;gap:8px}.facility-address-form input{flex:1;min-width:180px;padding:12px 14px;border:1px solid #cbd8d3;border-radius:10px;font:inherit}.facility-address-form button{white-space:nowrap}.facility-map{width:100%;height:280px;margin:14px 0;border:1px solid #d6e1dd;border-radius:14px;overflow:hidden;background:#eef2f0}.facility-map-label{padding:6px 10px;font-size:13px;white-space:nowrap}
.education-overview-card{display:flex;flex-direction:column;min-height:250px;padding:22px;border:1px solid var(--line);border-radius:17px;background:#fff}.education-overview-card[data-completed="true"]{border:2px solid var(--green);background:#f7fcfa}.education-overview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.education-overview-heading strong{font-size:20px}.education-status-badge{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#eef3f1;color:var(--muted);font-size:13px;font-weight:900}.education-overview-card[data-completed="true"] .education-status-badge{background:var(--mint);color:var(--green-dark)}.education-overview-card>p{color:var(--muted);line-height:1.6}.education-overview-card .secondary{width:100%;margin-top:auto}.education-learning-flow{margin-top:20px;padding:26px;border:2px solid var(--green);border-radius:20px;background:#f8fcfa}.education-learning-flow[open]{width:min(720px,calc(100vw - 32px));max-height:min(820px,calc(100vh - 32px));margin:auto;overflow:auto;box-shadow:0 24px 80px rgba(15,30,27,.28)}.education-learning-flow::backdrop{background:rgba(15,30,27,.48)}.education-flow-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.education-flow-heading h4{margin:2px 0 0;font-size:27px}.education-reading-card,.education-quiz-card,.education-feedback-card{margin-top:18px;padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff}.education-reading-card>strong,.education-feedback-card>strong{display:block;font-size:21px}.education-reading-card>p,.education-feedback-card>p{line-height:1.65}.education-reading-card>a{display:inline-flex;margin-bottom:18px;color:var(--green-dark);font-weight:900;text-underline-offset:3px}.education-reading-card>.primary,.education-feedback-card>.primary{display:block;min-width:180px}.education-medical-notice{padding:12px 14px;border-left:4px solid #d5a63d;background:#fff8e8;color:#674f18}.education-quiz-progress{display:flex;align-items:center;gap:14px;margin-bottom:20px}.education-quiz-progress span{flex:0 0 auto;font-weight:900}.education-quiz-progress progress{width:100%;height:12px;accent-color:var(--green)}.education-quiz-card fieldset{margin:0;padding:0;border:0}.education-quiz-card legend{font-size:23px;font-weight:900;line-height:1.45}.education-answer-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.education-answer-options label{cursor:pointer}.education-answer-options input{position:absolute;opacity:0;pointer-events:none}.education-answer-options span{display:grid;place-items:center;min-height:58px;border:2px solid var(--line);border-radius:14px;background:#fff;font-size:19px;font-weight:900}.education-answer-options input:focus-visible+span{outline:4px solid #bce6dc;outline-offset:3px}.education-answer-options input:checked+span{border-color:var(--green);background:var(--mint);color:var(--green-dark)}.education-feedback-card[data-result="correct"]{border:2px solid var(--green);background:#f3fbf7}.education-feedback-card[data-result="incorrect"]{border:2px solid #d5a63d;background:#fffaf0}.education-feedback-source{padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:15px}
.challenge-category-card{min-height:190px;border:2px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);display:flex;align-items:center;justify-content:center;gap:22px;padding:24px;text-align:left;cursor:pointer;transition:border-color .2s ease,background .2s ease,transform .2s ease}.challenge-category-card:hover{border-color:#86aaa0;transform:translateY(-2px)}.challenge-category-card.active{border-color:var(--green);background:var(--mint);box-shadow:0 0 0 3px rgba(22,116,94,.1)}.challenge-category-card>img{flex:0 0 104px;width:104px;height:104px;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(23,70,58,.1))}.challenge-category-copy{flex:0 1 230px;display:flex;min-width:0;flex-direction:column;justify-content:center}.challenge-category-card strong,.challenge-category-card small,.challenge-category-card em{display:block}.challenge-category-card strong{font-size:23px;line-height:1.25}.challenge-category-card small{margin-top:7px;color:var(--muted);font-size:17px}.challenge-category-card em{margin-top:8px;color:var(--green-dark);font-size:15px;font-style:normal;font-weight:900}.challenge-category-panel{margin:22px 0;padding:28px;border:2px solid var(--green);border-radius:20px;background:linear-gradient(135deg,#f2faf7,#fff)}.challenge-category-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.challenge-category-heading h3{margin:4px 0 0;font-size:28px}.challenge-category-heading>span{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 14px;border-radius:999px;background:var(--green);color:#fff;font-size:17px;font-weight:900}.challenge-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.challenge-detail-option{position:relative;cursor:pointer}.challenge-detail-option input{position:absolute;opacity:0;pointer-events:none}.challenge-detail-option>span{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:108px;padding:18px 20px;border:2px solid var(--line);border-radius:15px;background:#fff;transition:border-color .2s ease,background .2s ease}.challenge-detail-option>span::after{content:"";grid-column:2;grid-row:1/3;width:26px;height:26px;border:2px solid #9aaba5;border-radius:7px;background:#fff}.challenge-detail-option input:focus-visible+span{outline:3px solid rgba(22,116,94,.28);outline-offset:2px}.challenge-detail-option input:checked+span{border-color:var(--green);background:var(--mint)}.challenge-detail-option input:checked+span::after{content:"✓";display:grid;place-items:center;border-color:var(--green);background:var(--green);color:#fff;font-size:18px;font-weight:900}.challenge-detail-option strong,.challenge-detail-option small,.challenge-detail-option em{display:block;grid-column:1}.challenge-detail-option strong{font-size:20px;line-height:1.35}.challenge-detail-option small{margin-top:6px;color:var(--muted);font-size:16px}.challenge-detail-option em{justify-self:start;margin-top:8px;padding:4px 9px;border-radius:999px;background:#fff3d9;color:#8a5b00;font-size:13px;font-style:normal;font-weight:900}
.challenge-safety-copy{max-width:1060px;margin:0 0 34px;color:var(--muted);font-size:21px}
.challenge-safety-copy p{margin:0}
.challenge-safety-copy p+p{margin-top:16px}
.screen.challenge-forest-screen{max-width:none;margin-inline:0}
.screen.challenge-forest-screen.active{
  position:relative;
  min-height:calc(100svh - 170px);
  margin:-28px clamp(-76px,-4vw,-24px) -58px;
  padding:clamp(66px,8svh,104px) clamp(18px,5vw,78px) clamp(42px,6svh,76px);
  overflow:hidden auto;
  isolation:isolate;
}
.challenge-forest-screen::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url('/static/assets/challenge-forest-background-20260909.png') center center/cover no-repeat;
}
.challenge-forest-screen::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(8,35,23,.04),rgba(8,35,23,.24));
}
.challenge-forest-screen>.eyebrow,
.challenge-forest-screen>#challenge-title,
.challenge-forest-screen>.challenge-safety-copy,
.challenge-forest-screen>#challenge-follow-up,
.challenge-forest-screen>#challenge-form{
  width:min(1080px,100%);
  margin-left:auto;
  margin-right:auto;
}
.challenge-forest-screen>.eyebrow{
  display:none;
}
.challenge-forest-screen>#challenge-title{
  margin-top:0;
  margin-bottom:22px;
  padding:22px clamp(28px,5vw,56px);
  border:8px solid #75441f;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,252,239,.97),rgba(248,224,184,.96));
  color:#4b240f;
  text-align:center;
  box-shadow:0 12px 0 #4f2d18,0 24px 42px rgba(23,44,36,.22),inset 0 0 0 4px rgba(255,255,255,.58);
}
.challenge-forest-screen>.challenge-safety-copy{
  margin-bottom:22px;
  padding:18px 22px;
  border:2px solid #b88950;
  border-radius:18px;
  background:rgba(255,250,240,.9);
  color:#5f3a20;
  text-align:center;
  box-shadow:0 5px 0 rgba(117,68,31,.22);
}
.challenge-forest-screen>#challenge-form{
  padding:clamp(20px,3vw,34px);
  border:8px solid #75441f;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,252,239,.95),rgba(248,224,184,.94));
  box-shadow:0 16px 0 #4f2d18,0 34px 58px rgba(23,44,36,.26),inset 0 0 0 4px rgba(255,255,255,.55);
}
.challenge-forest-screen .challenge-v3-controls,
.challenge-forest-screen .challenge-selection-summary,
.challenge-forest-screen .challenge-v3-card,
.challenge-forest-screen .challenge-category-panel,
.challenge-forest-screen .rag-challenge-generator,
.challenge-forest-screen .walking-level-picker{
  border-color:#b88950;
  background:rgba(255,250,240,.92);
}
.challenge-forest-screen #challenge-list .challenge-v3-card,
.challenge-forest-screen .challenge-category-card{
  box-shadow:0 7px 0 rgba(117,68,31,.18);
}
.challenge-v3-control-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:end;
  gap:16px;
}
.challenge-v3-control-row .form-row{
  margin:0;
}
.challenge-v3-control-row #challenge-v3-refresh{
  min-height:58px;
  width:100%;
}
.screen[data-step="8"]:has(#workspace-panel-home.active){
  max-width:none;
  position:relative;
  min-height:calc(100svh - 170px);
  margin:-28px clamp(-76px,-4vw,-24px) -58px;
  padding:clamp(28px,4svh,54px) clamp(18px,4vw,62px) clamp(32px,4svh,54px);
  overflow:hidden auto;
  isolation:isolate;
}
.screen[data-step="8"]:has(#workspace-panel-home.active)::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url('/static/assets/dashboard-home-background-20260910.png') center center/cover no-repeat;
}
.screen[data-step="8"]:has(#workspace-panel-home.active)::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(8,35,23,.02),rgba(8,35,23,.20));
}
.screen[data-step="8"]:has(#workspace-panel-home.active) .dashboard-hero,
.screen[data-step="8"]:has(#workspace-panel-home.active) .workspace-nav,
.screen[data-step="8"]:has(#workspace-panel-home.active) #workspace-panel-home{
  width:min(980px,100%);
  margin-left:auto;
  margin-right:auto;
}
.screen[data-step="8"]:has(#workspace-panel-home.active) .dashboard-hero{
  padding:14px clamp(18px,3vw,30px);
  border:6px solid #75441f;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,252,239,.96),rgba(248,224,184,.94));
  color:#4b240f;
  box-shadow:0 8px 0 #4f2d18,0 18px 32px rgba(23,44,36,.2),inset 0 0 0 3px rgba(255,255,255,.56);
}
.screen[data-step="8"]:has(#workspace-panel-home.active) .dashboard-hero .lead{
  color:#6d472a;
}
.screen[data-step="8"]:has(#workspace-panel-home.active) .profile-menu summary,
.screen[data-step="8"]:has(#workspace-panel-home.active) .workspace-nav{
  border:2px solid #b88950;
  background:rgba(255,250,240,.9);
  box-shadow:0 3px 0 rgba(117,68,31,.18);
}
.screen[data-step="8"]:has(#workspace-panel-home.active) .workspace-tab.active{
  background:#fff8e8;
  color:#4b240f;
  box-shadow:0 3px 0 rgba(117,68,31,.24);
}
.screen[data-step="8"]:has(#workspace-panel-home.active) #workspace-panel-home{
  padding:clamp(16px,2.2vw,24px);
  border:6px solid #75441f;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,252,239,.94),rgba(248,224,184,.92));
  box-shadow:0 10px 0 #4f2d18,0 24px 42px rgba(23,44,36,.24),inset 0 0 0 3px rgba(255,255,255,.55);
}
.screen[data-step="8"]:has(#workspace-panel-home.active) .today-card,
.screen[data-step="8"]:has(#workspace-panel-home.active) .dashboard-grid article,
.screen[data-step="8"]:has(#workspace-panel-home.active) .home-feature-card,
.screen[data-step="8"]:has(#workspace-panel-home.active) .dashboard-safety-note{
  border-color:#b88950;
  background:rgba(255,250,240,.93);
  box-shadow:0 4px 0 rgba(117,68,31,.15);
}
.screen[data-step="8"]:has(#workspace-panel-challenge.active){
  max-width:none;
  position:relative;
  min-height:calc(100svh - 170px);
  margin:-28px clamp(-76px,-4vw,-24px) -58px;
  padding:clamp(46px,6svh,82px) clamp(18px,5vw,78px) clamp(42px,6svh,76px);
  overflow:hidden auto;
  isolation:isolate;
}
.screen[data-step="8"]:has(#workspace-panel-challenge.active)::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url('/static/assets/challenge-forest-background-20260909.png') center center/cover no-repeat;
}
.screen[data-step="8"]:has(#workspace-panel-challenge.active)::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(8,35,23,.04),rgba(8,35,23,.27));
}
.screen[data-step="8"]:has(#workspace-panel-challenge.active) .dashboard-hero,
.screen[data-step="8"]:has(#workspace-panel-challenge.active) .workspace-nav,
.screen[data-step="8"]:has(#workspace-panel-challenge.active) #workspace-panel-challenge{
  width:min(980px,100%);
  margin-left:auto;
  margin-right:auto;
}
.screen[data-step="8"]:has(#workspace-panel-challenge.active) .dashboard-hero{
  padding:20px clamp(24px,4vw,42px);
  border:8px solid #75441f;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,252,239,.96),rgba(248,224,184,.94));
  color:#4b240f;
  box-shadow:0 12px 0 #4f2d18,0 24px 42px rgba(23,44,36,.22),inset 0 0 0 4px rgba(255,255,255,.56);
}
.screen[data-step="8"]:has(#workspace-panel-challenge.active) .dashboard-hero .lead{
  color:#6d472a;
}
.screen[data-step="8"]:has(#workspace-panel-challenge.active) .profile-menu summary,
.screen[data-step="8"]:has(#workspace-panel-challenge.active) .workspace-nav{
  border:2px solid #b88950;
  background:rgba(255,250,240,.9);
  box-shadow:0 5px 0 rgba(117,68,31,.18);
}
.screen[data-step="8"]:has(#workspace-panel-challenge.active) .workspace-tab.active{
  background:#fff8e8;
  color:#4b240f;
  box-shadow:0 3px 0 rgba(117,68,31,.24);
}
.screen[data-step="8"]:has(#workspace-panel-challenge.active) #workspace-panel-challenge{
  padding:clamp(22px,3vw,34px);
  border:8px solid #75441f;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,252,239,.95),rgba(248,224,184,.94));
  box-shadow:0 16px 0 #4f2d18,0 34px 58px rgba(23,44,36,.26),inset 0 0 0 4px rgba(255,255,255,.55);
}
.screen[data-step="8"]:has(#workspace-panel-challenge.active) .daily-record-panel,
.screen[data-step="8"]:has(#workspace-panel-challenge.active) .daily-record-list article{
  border-color:#b88950;
  background:rgba(255,250,240,.93);
}
.screen[data-step="8"]:has(#workspace-panel-challenge.active) .daily-record-panel{
  box-shadow:0 7px 0 rgba(117,68,31,.18);
}
.barrier-inline-form{
  display:grid;
  grid-template-columns:minmax(260px,1.2fr) minmax(220px,1fr) minmax(180px,.55fr);
  align-items:end;
  gap:16px;
  margin-top:18px;
}
.barrier-inline-form .form-row{
  min-width:0;
  margin:0;
}
.barrier-inline-form label{
  font-size:18px;
  font-weight:950;
  color:#4b240f;
}
.barrier-inline-form select,
.barrier-inline-form button{
  width:100%;
  min-height:64px;
  font-size:20px;
  font-weight:900;
}
.barrier-inline-form button{
  border:3px solid #75441f;
  border-radius:14px;
  background:#0b5a4d;
  color:#fffbe8;
  box-shadow:0 5px 0 #4f2d18;
}
.barrier-suggestion-card{
  display:grid;
  justify-items:center;
  gap:8px;
  margin:26px auto 0;
  padding:26px clamp(22px,4vw,42px);
  border:7px solid #75441f;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,252,239,.98),rgba(248,224,184,.96));
  color:#4b240f;
  text-align:center;
  box-shadow:0 9px 0 #4f2d18,0 20px 34px rgba(23,44,36,.18),inset 0 0 0 3px rgba(255,255,255,.58);
}
.barrier-suggestion-card[hidden]{display:none}
.barrier-suggestion-card>span{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border:2px solid #b88950;
  border-radius:50%;
  background:#fff8e8;
  font-size:28px;
}
.barrier-suggestion-card strong{
  font-size:clamp(28px,3vw,38px);
  line-height:1.2;
}
.barrier-suggestion-card p{
  max-width:720px;
  margin:0;
  color:#5f3a20;
  font-size:clamp(22px,2.4vw,30px);
  font-weight:900;
  line-height:1.35;
}
@media(max-width:820px){
  .barrier-inline-form{
    grid-template-columns:1fr;
  }
}
.screen[data-step="8"]:has(#workspace-panel-report.active){
  max-width:none;
  position:relative;
  min-height:calc(100svh - 170px);
  margin:-28px clamp(-76px,-4vw,-24px) -58px;
  padding:clamp(46px,6svh,82px) clamp(18px,5vw,78px) clamp(42px,6svh,76px);
  overflow:hidden auto;
  isolation:isolate;
}
.screen[data-step="8"]:has(#workspace-panel-report.active)::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url('/static/assets/report-forest-background-20260910.png') center center/cover no-repeat;
}
.screen[data-step="8"]:has(#workspace-panel-report.active)::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(8,35,23,.02),rgba(8,35,23,.22));
}
.screen[data-step="8"]:has(#workspace-panel-report.active) .dashboard-hero,
.screen[data-step="8"]:has(#workspace-panel-report.active) .workspace-nav,
.screen[data-step="8"]:has(#workspace-panel-report.active) #workspace-panel-report{
  width:min(1040px,100%);
  margin-left:auto;
  margin-right:auto;
}
.screen[data-step="8"]:has(#workspace-panel-report.active) .dashboard-hero{
  justify-content:flex-start;
  gap:12px;
  padding:20px clamp(24px,4vw,42px);
  border:8px solid #75441f;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,252,239,.96),rgba(248,224,184,.94));
  color:#4b240f;
  box-shadow:0 12px 0 #4f2d18,0 24px 42px rgba(23,44,36,.22),inset 0 0 0 4px rgba(255,255,255,.56);
}
.screen[data-step="8"]:has(#workspace-panel-report.active) #dashboard-hero-copy{
  margin-right:auto;
}
.screen[data-step="8"]:has(#workspace-panel-report.active) .dashboard-hero .lead{
  color:#6d472a;
}
.screen[data-step="8"]:has(#workspace-panel-report.active) .profile-menu summary,
.screen[data-step="8"]:has(#workspace-panel-report.active) .workspace-nav{
  border:2px solid #b88950;
  background:rgba(255,250,240,.9);
  box-shadow:0 5px 0 rgba(117,68,31,.18);
}
.screen[data-step="8"]:has(#workspace-panel-report.active) .workspace-tab.active{
  background:#fff8e8;
  color:#4b240f;
  box-shadow:0 3px 0 rgba(117,68,31,.24);
}
.screen[data-step="8"]:has(#workspace-panel-report.active) #workspace-panel-report{
  position:relative;
  padding:clamp(22px,3vw,34px);
  border:8px solid #75441f;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,252,239,.95),rgba(248,224,184,.94));
  box-shadow:0 16px 0 #4f2d18,0 34px 58px rgba(23,44,36,.26),inset 0 0 0 4px rgba(255,255,255,.55);
}
.screen[data-step="8"]:has(#workspace-panel-report.active) #workspace-panel-report::after{
  content:none;
  display:none;
}
.screen[data-step="8"]:has(#workspace-panel-report.active) .report-hero-card,
.screen[data-step="8"]:has(#workspace-panel-report.active) .report-summary-stats,
.screen[data-step="8"]:has(#workspace-panel-report.active) .report-detail-card,
.screen[data-step="8"]:has(#workspace-panel-report.active) .report-insight-card,
.screen[data-step="8"]:has(#workspace-panel-report.active) .report-pdf-card{
  border-color:#b88950;
  background:rgba(255,250,240,.94);
  box-shadow:0 7px 0 rgba(117,68,31,.15);
}
.screen[data-step="8"]:has(#workspace-panel-tools.active){
  max-width:none;
  position:relative;
  min-height:calc(100svh - 170px);
  margin:-28px clamp(-76px,-4vw,-24px) -58px;
  padding:clamp(46px,6svh,82px) clamp(18px,5vw,78px) clamp(42px,6svh,76px);
  overflow:hidden auto;
  isolation:isolate;
}
.screen[data-step="8"]:has(#workspace-panel-tools.active)::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url('/static/assets/health-tools-background-20260910.png') center center/cover no-repeat;
}
.screen[data-step="8"]:has(#workspace-panel-tools.active)::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(8,35,23,.02),rgba(8,35,23,.20));
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .dashboard-hero,
.screen[data-step="8"]:has(#workspace-panel-tools.active) .workspace-nav,
.screen[data-step="8"]:has(#workspace-panel-tools.active) #workspace-panel-tools{
  width:min(1080px,100%);
  margin-left:auto;
  margin-right:auto;
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .dashboard-hero{
  padding:20px clamp(24px,4vw,42px);
  border:8px solid #75441f;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,252,239,.96),rgba(248,224,184,.94));
  color:#4b240f;
  box-shadow:0 12px 0 #4f2d18,0 24px 42px rgba(23,44,36,.22),inset 0 0 0 4px rgba(255,255,255,.56);
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .dashboard-hero{
  display:none;
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .dashboard-hero .lead{
  color:#6d472a;
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .profile-menu summary,
.screen[data-step="8"]:has(#workspace-panel-tools.active) .workspace-nav{
  border:2px solid #b88950;
  background:rgba(255,250,240,.9);
  box-shadow:0 5px 0 rgba(117,68,31,.18);
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .workspace-tab.active{
  background:#fff8e8;
  color:#4b240f;
  box-shadow:0 3px 0 rgba(117,68,31,.24);
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) #workspace-panel-tools{
  padding:clamp(22px,3vw,34px);
  border:8px solid #75441f;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,252,239,.94),rgba(248,224,184,.92));
  box-shadow:0 16px 0 #4f2d18,0 34px 58px rgba(23,44,36,.26),inset 0 0 0 4px rgba(255,255,255,.55);
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .lifestyle-map-detail,
.screen[data-step="8"]:has(#workspace-panel-tools.active) .health-tool-section,
.screen[data-step="8"]:has(#workspace-panel-tools.active) .health-tool-card,
.screen[data-step="8"]:has(#workspace-panel-tools.active) .education-carousel{
  border-color:#b88950;
  background:rgba(255,250,240,.93);
  box-shadow:0 7px 0 rgba(117,68,31,.15);
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .health-tool-section:not(.is-coming-soon){
  border-color:transparent;
  background:transparent;
  box-shadow:none;
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .health-tool-section{
  position:relative;
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .health-tool-card:not([inert]){
  opacity:1;
}
.health-tools-pending-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
  align-items:start;
}
.health-tool-picker{
  margin:0 0 28px;
  padding:22px;
  border:2px solid #b88950;
  border-radius:20px;
  background:rgba(255,250,240,.93);
  box-shadow:0 7px 0 rgba(117,68,31,.15);
}
.health-tool-picker h3{
  margin:0 0 16px;
  color:#4b240f;
  font-size:clamp(25px,3vw,34px);
}
.health-tool-picker-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
}
.health-tool-picker-card{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  align-items:center;
  gap:14px;
  min-height:126px;
  padding:16px;
  border:2px solid #b88950;
  border-radius:16px;
  background:linear-gradient(180deg,#fffaf0,#f7e6c4);
  color:#4b240f;
  text-align:left;
  cursor:pointer;
  box-shadow:0 5px 0 rgba(117,68,31,.18);
}
.health-tool-picker-card:hover,
.health-tool-picker-card:focus-visible{
  border-color:#176b5b;
  background:#edf6e5;
}
.health-tool-picker-card img{
  width:64px;
  height:64px;
  object-fit:contain;
}
.health-tool-picker-card strong,
.health-tool-picker-card small{
  display:block;
}
.health-tool-picker-card strong{
  font-size:19px;
  line-height:1.25;
}
.health-tool-picker-card small{
  margin-top:5px;
  color:#6b4424;
  font-size:14px;
  line-height:1.35;
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .upload-checkup-button{
  opacity:1;
  cursor:pointer;
}
.screen[data-step="8"]:has(#workspace-panel-together.active){
  max-width:none;
  position:relative;
  min-height:calc(100svh - 170px);
  margin:-28px clamp(-76px,-4vw,-24px) -58px;
  padding:clamp(46px,6svh,82px) clamp(18px,5vw,78px) clamp(42px,6svh,76px);
  overflow:hidden auto;
  isolation:isolate;
}
.screen[data-step="8"]:has(#workspace-panel-together.active)::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url('/static/assets/together-forest-background-20260910.png') center center/cover no-repeat;
}
.screen[data-step="8"]:has(#workspace-panel-together.active)::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(8,35,23,.02),rgba(8,35,23,.22));
}
.screen[data-step="8"]:has(#workspace-panel-together.active) .dashboard-hero,
.screen[data-step="8"]:has(#workspace-panel-together.active) .workspace-nav,
.screen[data-step="8"]:has(#workspace-panel-together.active) #workspace-panel-together{
  width:min(1080px,100%);
  margin-left:auto;
  margin-right:auto;
}
.screen[data-step="8"]:has(#workspace-panel-together.active) .dashboard-hero{
  padding:20px clamp(24px,4vw,42px);
  border:8px solid #75441f;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,252,239,.96),rgba(248,224,184,.94));
  color:#4b240f;
  box-shadow:0 12px 0 #4f2d18,0 24px 42px rgba(23,44,36,.22),inset 0 0 0 4px rgba(255,255,255,.56);
}
.screen[data-step="8"]:has(#workspace-panel-together.active) .dashboard-hero .lead{
  color:#6d472a;
}
.screen[data-step="8"]:has(#workspace-panel-together.active) .profile-menu summary,
.screen[data-step="8"]:has(#workspace-panel-together.active) .workspace-nav{
  border:2px solid #b88950;
  background:rgba(255,250,240,.9);
  box-shadow:0 5px 0 rgba(117,68,31,.18);
}
.screen[data-step="8"]:has(#workspace-panel-together.active) .workspace-tab.active{
  background:#fff8e8;
  color:#4b240f;
  box-shadow:0 3px 0 rgba(117,68,31,.24);
}
.screen[data-step="8"]:has(#workspace-panel-together.active) #workspace-panel-together{
  padding:clamp(22px,3vw,34px);
  border:8px solid #75441f;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,252,239,.93),rgba(248,224,184,.9));
  box-shadow:0 16px 0 #4f2d18,0 34px 58px rgba(23,44,36,.26),inset 0 0 0 4px rgba(255,255,255,.55);
}
.screen[data-step="8"]:has(#workspace-panel-together.active) .forest-preview,
.screen[data-step="8"]:has(#workspace-panel-together.active) .forest-today-card,
.screen[data-step="8"]:has(#workspace-panel-together.active) .together-member,
.screen[data-step="8"]:has(#workspace-panel-together.active) .together-empty,
.screen[data-step="8"]:has(#workspace-panel-together.active) .forest-invite-summary,
.screen[data-step="8"]:has(#workspace-panel-together.active) .forest-invite-card{
  border-color:#b88950;
  background:rgba(255,250,240,.93);
  box-shadow:0 7px 0 rgba(117,68,31,.15);
}
.screen[data-step="8"]:has(#workspace-panel-together.active) .forest-preview{
  border:2px solid #b88950;
}
.result-next-actions{display:grid;grid-template-columns:1fr minmax(280px,720px) 1fr;align-items:center;gap:18px;margin-top:42px}
.result-next-actions .back{justify-self:start}
.result-next-actions .primary{grid-column:2;width:100%;min-height:74px;border-radius:18px;font-size:25px;box-shadow:0 14px 28px rgba(23,107,91,.18)}
.challenge-start-actions{justify-content:center;margin-top:14px;width:100%}
.challenge-start-actions .primary{width:min(980px,100%);min-height:74px;border-radius:18px;font-size:25px;box-shadow:0 14px 28px rgba(23,107,91,.18)}
.walking-level-picker{border:2px solid var(--green);border-radius:18px;background:#f7fbf9;padding:24px;margin:28px 0}
.walking-level-picker legend{padding:0 10px;font-size:26px;color:var(--green-dark)}
.walking-level-picker>p{margin:0 0 20px;color:var(--muted)}
.walking-level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.walking-level-grid label{position:relative;cursor:pointer}
.walking-level-grid input{position:absolute;opacity:0}
.walking-level-grid span{display:block;height:100%;border:2px solid var(--line);border-radius:15px;background:#fff;padding:18px}
.walking-level-grid input:checked+span{border-color:var(--green);background:var(--mint);box-shadow:0 0 0 3px rgba(22,116,94,.12)}
.walking-level-grid strong,.walking-level-grid small,.walking-level-grid em{display:block}
.walking-level-grid strong{font-size:22px;margin-bottom:8px}
.walking-level-grid small{font-size:18px;font-weight:800;color:var(--green-dark)}
.walking-level-grid em{font-size:16px;color:var(--muted);font-style:normal;margin-top:8px}
.walking-level-picker .walking-level-safety{margin:20px 0 0;padding-top:16px;border-top:1px solid var(--line);font-size:17px;color:#8a5b00}
.challenge-card span{min-height:190px;border-radius:18px;padding:22px;background:#fff}
.challenge-card strong{font-size:23px;line-height:1.25;margin-bottom:10px}
.challenge-card small{line-height:1.45}
.record-type-badge{display:inline-flex;align-items:center;align-self:flex-start;min-height:28px;margin:0 0 12px;padding:3px 10px;border-radius:999px;background:var(--mint);color:var(--green-dark);font-size:14px;font-style:normal;font-weight:900;line-height:1.2}
.record-type-badge.photo{background:var(--warning-bg);color:#8a5b00}
.daily-record-panel{margin:24px 0 28px;padding:24px;border:1px solid var(--line);border-radius:20px;background:#fff}
.daily-record-panel h4{font-size:26px;margin:0 0 16px;color:var(--ink)}
.daily-record-list{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.daily-record-card{display:flex;flex-direction:column;align-items:flex-start;gap:20px;width:100%;min-width:0;padding:26px;border:2px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.daily-record-card:not(:disabled):hover{border-color:var(--green);background:#f5fbf8;box-shadow:0 6px 18px rgba(23,107,91,.08)}
.daily-record-card:not(:disabled):active{background:var(--mint)}
.daily-record-copy{display:flex;flex:1;flex-direction:column;width:100%;gap:6px}
.daily-record-copy .record-type-badge{margin-top:auto;margin-bottom:0}
.daily-record-card:disabled{cursor:default;opacity:1}
.daily-record-card.done{border-color:#bfe0c6;background:#eef8f1}
.daily-record-card.record-load-failed{border-style:dashed;background:#fffaf2}
.daily-record-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--soft);font-size:26px}
.daily-record-icon b{font:inherit;line-height:1}
.daily-record-icon svg{display:block;width:30px;height:30px}
.daily-record-card.done .daily-record-icon{background:#d9efe4}
.daily-record-card.done .daily-record-icon b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--green);color:#fff;font-size:20px;font-weight:900}
.daily-record-card.record-load-failed .daily-record-icon{background:#f7ead6}
.daily-record-card strong{display:block;font-size:22px;line-height:1.25;margin:0 0 6px;color:var(--ink)}
.daily-record-card small{display:block;color:var(--muted);font-size:17px;line-height:1.45;margin-bottom:8px}
.record-error-badge{background:#fff2dc;color:#7a4a00}
.daily-record-empty{grid-column:1/-1;border:1px dashed var(--line);border-radius:16px;padding:22px;background:var(--soft)}
.daily-record-empty strong,.daily-record-empty p{display:block;margin:0}
.daily-record-empty p{margin-top:4px;color:var(--muted)}
.record-modal[hidden]{display:none}
.record-modal{position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(8,20,18,.48)}
.record-modal-card{position:relative;width:min(520px,100%);max-height:calc(100vh - 48px);overflow:auto;border-radius:24px;background:#fff;padding:34px;box-shadow:0 24px 70px rgba(6,32,27,.24)}
.record-modal-close{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--muted);font-size:28px;font-weight:900;cursor:pointer}
.record-modal-card h4{font-size:30px;line-height:1.22;margin:6px 0 8px;color:var(--ink)}
.record-modal-card p:not(.eyebrow){color:var(--muted);margin:0 0 22px}
.simple-record-visual{position:relative;display:grid;place-items:center;width:132px;height:132px;margin:4px auto 22px;border:2px solid var(--line);border-radius:34px;background:var(--soft);overflow:hidden}
.simple-record-emoji{position:relative;z-index:2;font-size:58px;line-height:1;transition:transform .35s ease}
.simple-record-emoji svg{display:block;width:62px;height:62px}
.simple-record-emoji svg{display:block;width:62px;height:62px}
.simple-record-water{display:none;position:absolute;inset:14px 30px 18px;border:4px solid var(--green);border-top-width:2px;border-radius:12px 12px 28px 28px;overflow:hidden;background:#fff}
.simple-record-water i{position:absolute;left:0;right:0;bottom:0;height:var(--water-level,18%);background:#8bd1e8;transition:height .45s ease}
.simple-record-water i::before{content:"";position:absolute;top:-8px;left:-10%;width:120%;height:16px;border-radius:50%;background:#a8dfef}
.simple-record-done{position:absolute;z-index:3;right:8px;bottom:8px;display:grid;place-items:center;min-width:48px;height:30px;padding:0 8px;border-radius:999px;background:var(--green);color:#fff;font-size:14px;font-weight:900;opacity:0;transform:scale(.75);transition:opacity .25s ease,transform .25s ease}
.simple-record-visual[data-kind="water"] .simple-record-emoji{display:none}
.simple-record-visual[data-kind="water"] .simple-record-water{display:block}
.simple-record-visual.completed{border-color:#86bea8;background:#eef8f3}
.simple-record-visual.completed .simple-record-emoji{transform:translateY(-4px) scale(1.12)}
.simple-record-visual.completed .simple-record-water i{height:var(--water-level,88%)}
.simple-record-visual.completed .simple-record-done{opacity:1;transform:scale(1)}
.water-serving-control{display:grid;gap:14px;margin:0 auto 22px;padding:18px;border:2px solid #b7d6d5;border-radius:18px;background:#f2fbfd;color:var(--ink);text-align:center}
.water-serving-control[hidden]{display:none!important}
.water-serving-control label{font-weight:900}
.water-serving-stepper{display:grid;grid-template-columns:56px minmax(90px,1fr) 56px;align-items:center;gap:10px}
.water-serving-stepper button{display:grid;place-items:center;width:56px;height:56px;border:2px solid #0b6b74;border-radius:16px;background:#fff;color:#0b5d65;font-size:30px;font-weight:950;cursor:pointer}
.water-serving-stepper output{min-height:56px;display:grid;place-items:center;border:2px solid #9bcfd3;border-radius:16px;background:#fff;color:#0b4d42;font-size:26px;font-weight:950}
.water-serving-control input[type="range"]{width:100%;accent-color:#0b6b74}
.record-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.record-modal-actions button,.record-modal-card>section>button{width:100%;min-height:58px}
.photo-upload-box{display:grid;place-items:center;gap:8px;width:100%;min-height:178px;margin:18px 0 14px;border:2px dashed #b9c5c1;border-radius:18px;background:var(--soft);color:var(--muted);cursor:pointer}
.photo-upload-box span{font-size:42px}
.photo-upload-box span svg{display:block;width:42px;height:42px}
.photo-upload-box span svg{display:block;width:42px;height:42px}
.photo-upload-box strong{font-size:19px;color:var(--ink)}
.photo-upload-box small{display:block;max-width:320px;font-size:14px;line-height:1.5;color:#5f6965}
.photo-upload-preview{display:block;width:min(100%,360px);max-height:260px;object-fit:contain;border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(32,65,51,.16)}
.photo-change-label{display:inline-flex!important;align-items:center;justify-content:center;min-height:38px;margin-top:4px;padding:6px 14px;border-radius:999px;background:#174c3d;color:#fff!important;font-size:14px!important;font-weight:900}
.photo-change-label[hidden]{display:none!important}
.photo-validation{margin:-4px 0 16px;color:#52635c;font-size:14px;text-align:center}.photo-upload-box:has(.photo-upload-preview:not([hidden])){border-style:solid;border-color:#24765f;background:#eaf6ef}.photo-upload-box.invalid{border-style:solid;border-color:var(--danger);background:#fff5f5}.photo-validation.error{color:var(--danger);font-weight:900}#v3-meal-count-field.invalid .meal-count-options,#v3-photo-minutes-field.invalid #v3-photo-minutes{border:2px solid var(--danger);border-radius:12px}#v3-meal-count-field.invalid legend,#v3-photo-minutes-field.invalid label{color:var(--danger)}
.record-modal-card{border:5px solid #704522;background:linear-gradient(160deg,#d7a45f 0%,#a96832 52%,#81502b 100%);box-shadow:inset 0 0 0 3px rgba(255,222,157,.42),0 24px 70px rgba(38,20,8,.38)}
.record-modal-card>section{border:3px solid #b97936;border-radius:20px;background:#fff8e7;padding:24px;box-shadow:inset 0 0 18px rgba(111,69,34,.08)}
#record-photo-panel #photo-state-upload>.eyebrow{color:#17120c!important}
.meal-count-fieldset{margin:18px 0;padding:0;border:0}
.meal-count-fieldset legend,#v3-photo-minutes-field label{display:block;margin-bottom:10px;font-weight:800;color:var(--ink)}
.meal-count-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.meal-count-options label{cursor:pointer}
.meal-count-options input{position:absolute;opacity:0;pointer-events:none}
.meal-count-options span{display:grid;min-height:52px;place-items:center;border:2px solid #b9c5c1;border-radius:14px;background:#fff;color:var(--ink);font-weight:800}
.meal-count-options input:focus-visible+span{outline:3px solid rgba(28,112,91,.3);outline-offset:2px}
.meal-count-options input:checked+span{border-color:#24765f;background:#e2f2e9;color:#174c3d}
#v3-photo-minutes-field{margin:18px 0}
#v3-photo-minutes{width:100%}
.demo-photo-gallery{margin:14px 0}.demo-photo-gallery>p{margin:6px 0;color:var(--muted)}.demo-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.demo-photo-card{position:relative;padding:8px;border:1px solid #d8e0dd;border-radius:14px;background:#fff;text-align:left;cursor:pointer}.demo-photo-card:hover,.demo-photo-card:focus-visible{border-color:var(--primary);box-shadow:0 0 0 2px rgba(27,122,85,.12)}.demo-photo-card[aria-pressed="true"]{padding:6px;border:3px solid #24765f;background:#e7f5ed;box-shadow:0 0 0 3px rgba(36,118,95,.2)}.demo-photo-card[aria-pressed="true"]::after{content:"✓ 선택";position:absolute;top:12px;right:12px;padding:4px 8px;border-radius:999px;background:#174c3d;color:#fff;font-size:12px;font-weight:900;line-height:1.2}.demo-photo-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:9px}.demo-photo-card strong,.demo-photo-card span{display:block;margin-top:5px}.demo-photo-card span{font-size:13px;color:var(--muted)}
.photo-state{text-align:center;padding:22px 0 8px}
.photo-state h4{margin-top:14px}
.photo-state.success>span{display:grid;place-items:center;width:76px;height:76px;margin:0 auto;border-radius:50%;background:var(--mint);color:var(--green);font-size:40px;font-weight:900}
.photo-state.fail{margin:-10px;padding:26px;border:2px solid #e6bd66;border-radius:18px;background:var(--warning-bg)}
.photo-state.fail h4{color:#8a5b00}
.photo-state.pending{margin:-10px;padding:26px;border:2px solid #8bb7ab;border-radius:18px;background:#f2faf7}
.photo-state.pending h4{color:var(--green-dark)}
.record-spinner{display:block;width:76px;height:76px;margin:0 auto;border:7px solid #dfe8e4;border-top-color:var(--green);border-radius:50%;animation:record-spin .8s linear infinite}
@keyframes record-spin{to{transform:rotate(360deg)}}
.ocr-confirm-form{margin-top:18px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
.ocr-confirm-form>p{margin:0 0 8px;color:var(--muted)}
.ocr-confirm-form>p strong{color:var(--ink)}
.ocr-confirm-form{margin-top:18px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
.ocr-confirm-form>p{margin:0 0 8px;color:var(--muted)}
.ocr-confirm-form>p strong{color:var(--ink)}

@media(max-width:1000px){.eligibility-grid{grid-template-columns:1fr}.eligibility-card{min-height:auto}.eligibility-card .single-line-copy{white-space:normal}.eligibility-profile-fields{grid-template-columns:1fr}.eligibility-actions{flex-direction:column-reverse;align-items:stretch}.eligibility-actions .primary,.eligibility-actions .secondary{width:100%}.branch-result-grid{grid-template-columns:1fr}.branch-result .actions{flex-direction:column-reverse}.branch-result .actions button{width:100%}.status-demo-panel button{flex:1 1 30%}}
@media(max-width:1000px){.eligibility-card{padding:28px 26px}.eligibility-card legend,.eligibility-card h3{font-size:26px}.eligibility-card p{font-size:20px}.segmented-choice{grid-template-columns:1fr}.segmented-choice span{min-height:68px;font-size:22px;padding:16px 20px}}
@media(max-width:1000px){.emergency-questionnaire-modal,.diagnosis-help-modal{align-items:flex-end;padding:10px}.emergency-questionnaire-modal-card,.diagnosis-help-modal-card{max-height:calc(100vh - 20px);padding:28px 18px 22px;border-radius:22px 22px 0 0}.diagnosis-help-row{grid-template-columns:1fr;gap:8px}.diagnosis-help-label{min-height:52px;justify-content:flex-start}.emergency-stage{padding:22px 18px}.emergency-symptom-list{grid-template-columns:1fr}.emergency-summary-choices{grid-template-columns:1fr}.emergency-questionnaire-modal-actions{grid-template-columns:1fr}.emergency-guidance-actions{grid-template-columns:1fr}.emergency-do-not-feed{grid-column:auto}}
@media(max-width:1000px){.challenge-grid,.challenge-detail-grid{grid-template-columns:1fr}.challenge-card span{min-height:auto}#challenge-list{grid-auto-rows:auto}#challenge-list .challenge-card span{height:auto}.challenge-category-heading{align-items:flex-start}.challenge-category-card{min-height:160px}.rag-challenge-controls,.rag-challenge-draft{grid-template-columns:1fr}.rag-challenge-draft button{grid-column:auto;grid-row:auto;width:100%}.rag-challenge-candidate-grid{grid-template-columns:1fr}.rag-challenge-candidate-card{min-height:0}.rag-challenge-selection-actions{align-items:stretch;flex-direction:column}.rag-challenge-selection-actions .primary{width:100%}}
@media(max-width:1000px){.result-next-actions{display:flex;flex-direction:column-reverse;align-items:stretch}.result-next-actions .primary{grid-column:auto;width:100%}.result-next-actions .back{justify-self:auto;width:100%}}
@media(max-width:1000px){.returning-route-grid{grid-template-columns:1fr}.returning-route{min-height:auto}.dashboard-account-actions{align-items:stretch;flex-direction:column}.dashboard-account-buttons{width:100%;flex-direction:column}.dashboard-account-buttons button{width:100%}}
@media(max-width:1000px){.walking-level-grid{grid-template-columns:1fr}}
@media(max-width:1000px){.daily-record-card{padding:22px;gap:16px}.daily-record-icon{width:48px;height:48px}.record-modal{align-items:flex-end;padding:12px}.record-modal-card{border-radius:22px 22px 0 0;padding:30px 22px 24px}.record-modal-actions{grid-template-columns:1fr}.photo-upload-box{min-height:150px}}
@media(max-width:1000px){.risk-confirm-main,.factor-panel{grid-template-columns:1fr}.risk-legend{grid-template-columns:1fr}.risk-confirm-copy .primary{width:100%}.scenario-grid{grid-template-columns:1fr}}
@media(max-width:1000px){.medical-facility-search-heading{align-items:stretch;flex-direction:column}.medical-facility-search-heading .primary{width:100%}.facility-actions{display:grid;grid-template-columns:1fr}.facility-actions .secondary,.facility-action-unavailable{width:100%}.medical-facility-card-heading{align-items:flex-start;flex-direction:column}.medical-facility-card-heading>span{align-self:flex-start}}
@media(max-width:640px){.facility-address-form>div{flex-direction:column}.facility-address-form button{width:100%}.facility-map{height:240px}}
@media(max-width:1000px){.prediction-mascot{width:132px;height:132px}}
@media(max-width:1000px){.health-input-guide,.health-input-panel.two-column,.lifestyle-question-grid,.detail-health-grid,.review-grid,.prediction-status-track{grid-template-columns:1fr}.smoking-status-card,.exercise-detail-card{grid-column:auto}.exercise-detail-grid{grid-template-columns:1fr}.health-input-panel .actions{flex-direction:column-reverse}.health-input-panel .actions button{width:100%}.prediction-status-card{padding:34px 22px 28px}.status-symbol{width:92px;height:92px;font-size:34px}.prediction-status-card h3{font-size:30px}.prediction-status-card p{font-size:18px}.prediction-status-track li{font-size:17px}}
@media(prefers-reduced-motion:reduce){.prediction-mascot{animation:none!important}}
@media(forced-colors:active){.risk-traffic-light,.traffic-signal i{border:2px solid CanvasText}.current-risk-signal-card[data-risk="high"] .traffic-signal.high,.current-risk-signal-card[data-risk="low"] .traffic-signal.low{outline:4px solid Highlight;outline-offset:3px}}

/* 모바일 헤더 보정: 서비스명이 "간당 / 간당"처럼 줄바꿈되지 않도록 유지 */
.brand,
.brand .brand-mark,
.service-area{
  white-space:nowrap;
}

@media(max-width:640px){
  .education-learning-flow{padding:20px 16px}
  .education-flow-heading{flex-direction:column}
  .education-flow-heading .text-button{align-self:flex-start}
  .education-reading-card,.education-quiz-card,.education-feedback-card{padding:18px 16px}
  .education-answer-options{grid-template-columns:1fr}
  .education-reading-card>.primary,.education-feedback-card>.primary,.education-quiz-card>.primary{width:100%}
}

@media(max-width:640px){
  .topbar{
    min-height:72px;
    padding:0 18px;
    gap:14px;
    flex-wrap:nowrap;
  }

  .brand{
    display:inline-flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
    font-size:24px;
    line-height:1;
    letter-spacing:-.04em;
  }

  .brand-mark{
    width:30px;
    height:30px;
    border-radius:9px;
    font-size:20px;
  }

  .service-area{
    flex:1 1 auto;
    min-width:0;
    margin-right:0;
    font-size:18px;
    line-height:1.2;
    text-align:center;
  }

  .text-button{
    flex:0 0 auto;
    padding:10px 14px;
    border-radius:14px;
    font-size:18px;
    line-height:1.1;
  }
}

@media(max-width:420px){
  .topbar{
    padding:0 12px;
    gap:10px;
  }

  .brand{
    font-size:21px;
    gap:6px;
  }

  .brand-mark{
    width:28px;
    height:28px;
    font-size:18px;
  }

  .service-area{
    font-size:16px;
  }

  .text-button{
    padding:9px 11px;
    font-size:16px;
  }
}

/* 모바일 공통 보정: 큰 글씨 MVP 화면이 작은 폭에서도 깨지지 않도록 정리 */
@media(max-width:640px){
  body{
    font-size:18px;
    overflow-x:hidden;
  }

  .app-shell{
    width:100%;
    grid-template-columns:minmax(0,1fr);
    padding:22px 16px 44px;
    gap:22px;
    margin:0 auto;
  }

  .content{
    padding:0;
    min-height:auto;
  }

  .step-panel,
  .content,
  .screen,
  .screen>*,
  #future-prediction-result{
    min-width:0;
    max-width:100%;
  }

  .screen h1,
  .screen h2,
  .screen h3,
  .screen p{
    overflow-wrap:anywhere;
  }

  .risk-preview-controls{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:stretch;
    width:100%;
  }

  .risk-preview-controls span{
    grid-column:1/-1;
    margin:0;
  }

  .risk-preview-controls button{
    width:100%;
    min-width:0;
    min-height:48px;
    padding:9px 6px;
  }

  .risk-traffic-light{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
    padding:18px 10px;
  }

  .current-risk-signal-card{
    width:100%;
    max-width:100%;
  }

  h1{
    font-size:clamp(34px,10vw,42px);
    line-height:1.15;
    letter-spacing:-.045em;
    word-break:keep-all;
    overflow-wrap:break-word;
  }

  h2,
  .health-input-panel h3,
  .section-heading h3,
  .returning-user-panel h3,
  .branch-result h3{
    font-size:clamp(28px,8.4vw,36px);
    line-height:1.18;
    letter-spacing:-.04em;
    word-break:keep-all;
    overflow-wrap:break-word;
  }

  .lead,
  .challenge-safety-copy{
    font-size:18px;
    line-height:1.55;
    margin-bottom:24px;
  }

  .eyebrow{
    font-size:14px;
  }

  .step-count{
    font-size:18px;
  }

  .progress-track{
    margin-bottom:16px;
  }

  .step-panel{
    overflow:hidden;
  }

  .step-panel ol{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:2px 2px 8px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }

  .step-panel li{
    flex:0 0 auto;
    min-width:86px;
    scroll-snap-align:start;
    font-size:13px;
  }

  .notice,
  .intro-notice,
  .health-input-notice,
  .branch-safety{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:14px 14px;
    margin:18px 0;
    line-height:1.5;
  }

  .notice>span,
  .intro-notice>span,
  .health-input-notice>span{
    flex:0 0 auto;
    max-width:100%;
    white-space:nowrap;
    font-size:16px;
    line-height:1.35;
  }

  .notice p,
  .intro-notice p,
  .health-input-notice p{
    font-size:17px;
    line-height:1.55;
  }

  .feature-grid,
  .dashboard-grid,
  .quick-grid,
  .returning-route-grid,
  .auth-mode-switch,
  .health-input-panel.two-column,
  .lifestyle-question-grid,
  .detail-health-grid,
  .review-grid,
  .branch-result-grid,
  .factor-panel{
    grid-template-columns:1fr!important;
    gap:16px;
  }

  .feature-grid,
  .dashboard-grid{
    margin:22px 0;
  }

  .feature-grid li,
  .dashboard-grid article,
  .returning-user-panel,
  .returning-route,
  .eligibility-card,
  .branch-result,
  .review-card,
  .choice-block,
  .risk-confirm-card,
  .factor-panel,
  .lifestyle-summary-card,
  .walking-level-picker{
    padding:20px;
    border-radius:16px;
  }

  .feature-grid li,
  .dashboard-grid article,
  .returning-route,
  .review-card{
    min-height:auto;
  }

  .consent-card{
    align-items:flex-start;
    padding:16px;
  }

  .consent-card span{
    grid-template-columns:1fr;
    gap:8px;
  }

  .consent-card em{
    grid-row:auto;
    grid-column:auto;
    width:max-content;
    min-width:58px;
    min-height:32px;
    font-size:15px;
  }

  .inner-step-tabs{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin:18px 0 24px;
  }

  .inner-step-tabs button{
    width:100%;
    justify-content:center;
    font-size:20px;
    padding:12px 16px;
  }

  .health-input-panel .form-row label,
  .choice-block legend,
  .choice-title{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
    font-size:19px;
  }

  .health-input-panel .form-row input,
  .choice-block select,
  .form-row.compact input{
    min-height:58px;
    font-size:19px;
  }

  .segmented-choice,
  .choice-block .segmented-choice,
  .lifestyle-toggle-card .segmented-choice{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  .segmented-choice span,
  .choice-block .segmented-choice span,
  .lifestyle-toggle-card .segmented-choice span{
    min-width:0;
    width:100%;
    min-height:54px;
    font-size:18px;
  }

  .eligibility-card .segmented-choice span{
    min-height:66px;
    font-size:22px;
    padding:16px 20px;
  }

  .eligibility-card .segmented-choice span::before{
    width:26px;
    height:26px;
  }

  .eligibility-actions,
  .actions,
  .dashboard-account-actions,
  .dashboard-account-buttons{
    flex-direction:column-reverse;
    align-items:stretch;
  }

  .actions button,
  .eligibility-actions .primary,
  .eligibility-actions .secondary,
  .dashboard-account-buttons button{
    width:100%;
    min-width:0;
  }

  .prediction-status-card{
    margin:22px 0;
    padding:28px 18px 22px;
  }

  .prediction-status-track{
    grid-template-columns:1fr;
    text-align:left;
  }

  .prediction-status-track li{
    justify-content:flex-start;
  }

  .risk-confirm-card{
    margin:22px 0;
  }

  .risk-confirm-main{
    grid-template-columns:1fr;
    gap:18px;
  }

  .risk-badge{
    min-height:130px;
  }

  .risk-confirm-copy h3,
  .lifestyle-summary-heading h3{
    font-size:26px;
  }

  .legend-row{
    grid-template-columns:38px 48px 1fr;
    gap:8px;
  }

  .lifestyle-summary-heading{align-items:flex-start}
  .lifestyle-summary-heading img{flex-basis:68px;width:68px;height:68px}
  .lifestyle-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .lifestyle-summary-toggle{min-height:58px;padding:10px 4px;font-size:16px}
  .lifestyle-summary-panel{padding:17px 16px}

  .walking-level-grid,
  .challenge-grid,
  #challenge-list{
    grid-template-columns:1fr!important;
    grid-auto-rows:auto;
  }

  .challenge-card span,
  #challenge-list .challenge-card span{
    height:auto;
    min-height:auto;
  }

  .workspace-nav{
    margin:20px -4px 24px;
    padding:6px;
  }

  .workspace-tab{
    flex:0 0 auto;
    min-width:112px;
    text-align:center;
  }

  .dashboard-hero{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media(max-width:380px){
  .service-area{
    display:none;
  }

  h1{
    font-size:32px;
  }

  h2,
  .health-input-panel h3,
  .section-heading h3,
  .returning-user-panel h3,
  .branch-result h3{
    font-size:27px;
  }

  .app-shell{
    padding-inline:14px;
  }

  .screen.challenge-forest-screen.active{
    margin-right:-14px;
    margin-left:-14px;
  }

  .notice,
  .intro-notice,
  .health-input-notice{
    flex-direction:column;
  }
}

/* Dashboard home: today-first information hierarchy */
body.dashboard-mode .step-panel{display:none}
body.dashboard-mode .app-shell{padding-top:22px}
.dashboard-hero h2{margin-bottom:4px}
.dashboard-title-row{display:flex;align-items:center;gap:14px;min-width:0}
.dashboard-title-row h2{min-width:0}
#dashboard-together-mascot{width:84px;height:84px;flex:0 0 84px;object-fit:contain}
#dashboard-together-mascot[hidden]{display:none}
@media(max-width:520px){.dashboard-title-row{gap:10px}#dashboard-together-mascot{width:60px;height:60px;flex-basis:60px}}
.dashboard-hero .lead{margin:0;color:var(--muted)}
.workspace-nav{margin:16px 0 20px;padding:5px;border-radius:12px}
.workspace-tab{min-height:42px;padding:8px 14px;font-size:17px;border-radius:9px}
.workspace-panel[data-workspace-panel="home"] .today-card{margin:8px 0 18px;padding:22px 30px;border:2px solid var(--green);background:linear-gradient(135deg,var(--mint),#f8fcfa);border-radius:18px}
.workspace-panel[data-workspace-panel="home"] .today-card .eyebrow{font-size:16px;color:var(--green-dark)}
.workspace-panel[data-workspace-panel="home"] .today-card h3{font-size:26px;letter-spacing:0;margin:4px 0}
.workspace-panel[data-workspace-panel="home"] .today-card p:not(.eyebrow){font-size:17px;margin:0 0 16px;max-width:760px;line-height:1.45}
.workspace-panel[data-workspace-panel="home"] .today-card .primary{min-width:180px;min-height:46px;background:var(--green);border-color:var(--green);font-size:18px;padding:10px 20px}
.workspace-panel[data-workspace-panel="home"] .summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 16px}
.workspace-panel[data-workspace-panel="home"] .summary-grid article{min-height:0;padding:8px 20px 10px;border:0;border-radius:0;background:transparent}
.workspace-panel[data-workspace-panel="home"] .summary-grid article+article{border-left:1px solid var(--line)}
.workspace-panel[data-workspace-panel="home"] .summary-grid small{display:block;color:#7a817e;font-size:14px}
.workspace-panel[data-workspace-panel="home"] .summary-grid strong{font-size:25px;margin:2px 0 0}
.workspace-panel[data-workspace-panel="home"] .summary-grid p{display:none}
.workspace-panel[data-workspace-panel="home"] .quick-grid{gap:14px;margin:8px 0 24px}
.workspace-panel[data-workspace-panel="home"] .quick-link{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;min-height:112px;padding:20px 24px}
.workspace-panel[data-workspace-panel="home"] .quick-link .quick-link-icon{grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;color:#5f6663;font-size:27px;font-weight:500;margin:0}
.workspace-panel[data-workspace-panel="home"] .quick-link>span:not(.quick-link-icon){font-size:20px;margin:0}
.workspace-panel[data-workspace-panel="home"] .quick-link small{font-size:16px;line-height:1.35}
.dashboard-account-actions{display:block;border:1px solid var(--line);border-radius:18px;background:#fff;padding:0;margin:24px 0 0}
.dashboard-account-actions summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:18px 28px;cursor:pointer;font-size:21px;font-weight:900;list-style:none}
.dashboard-account-actions summary::-webkit-details-marker{display:none}
.dashboard-account-actions summary::after{content:"⌄";display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border:1px solid var(--line);border-radius:999px;color:var(--green-dark);font-size:22px;font-weight:900;line-height:1}
.dashboard-account-actions[open] summary::after{content:"^"}
.dashboard-account-content{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 28px 24px;border-top:1px solid var(--line)}
.dashboard-account-content>p{margin:20px 0 0;color:var(--muted)}
.dashboard-account-buttons{margin-top:20px}
.dashboard-management-grid{display:block;margin-top:24px}
.dashboard-management-grid .dashboard-account-actions{margin:0}
.dashboard-management-content{padding:0 28px 24px;border-top:1px solid var(--line)}
.dashboard-management-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0}
.dashboard-management-heading p{margin:0;color:var(--muted)}
.dashboard-management-heading button{flex:0 0 auto}
.health-history-section{padding-top:18px;border-top:1px solid var(--line)}
.health-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.health-history-heading h4{margin:0;font-size:19px}
.health-history-heading span{padding:5px 10px;border-radius:999px;background:var(--soft);color:var(--green-dark);font-size:14px;font-weight:900}
.health-history-list{display:grid;gap:10px}
.health-history-empty{margin:0;padding:18px;border-radius:14px;background:#f7faf9;color:var(--muted);text-align:center}
.health-history-empty.error{background:#fff5f3;color:#a33a32}
.health-history-item{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff}
.health-history-item summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:14px 16px;cursor:pointer;list-style:none}
.health-history-item summary::-webkit-details-marker{display:none}
.health-history-item summary span{display:flex;align-items:baseline;gap:10px}
.health-history-item summary strong{font-size:18px}
.health-history-item summary small{color:var(--muted);font-weight:800}
.health-history-item summary::after{content:"⌄";display:grid;place-items:center;flex:0 0 auto;width:32px;height:32px;border:1px solid var(--line);border-radius:999px;color:var(--green-dark);font-size:20px;font-weight:900;line-height:1}
.health-history-item[open] summary::after{content:"^"}
.health-history-latest{margin-left:auto;padding:4px 8px;border-radius:999px;background:#e5f5ee;color:var(--green-dark);font-size:13px;font-style:normal;font-weight:900}
.health-history-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:16px;border-top:1px solid var(--line);background:#f9fbfa}
.health-history-values div{min-width:0;padding:10px;border-radius:10px;background:#fff}
.health-history-values dt{color:var(--muted);font-size:13px;font-weight:800}
.health-history-values dd{margin:4px 0 0;color:var(--ink);font-size:16px;font-weight:900;overflow-wrap:anywhere}
.health-history-values .health-history-result-action{display:flex;align-items:flex-end;justify-content:flex-end;background:transparent}
.health-history-result-action button{min-height:44px;padding:10px 16px;border:1px solid var(--green);border-radius:10px;background:var(--green);color:#fff;font:inherit;font-weight:900;cursor:pointer}
.health-history-result-action button:hover{background:var(--green-dark);border-color:var(--green-dark)}
.health-history-result-action button:focus-visible{outline:3px solid rgba(19,119,94,.24);outline-offset:2px}
.health-history-result-action button:disabled{cursor:wait;opacity:.7}
.dashboard-safety-note{display:flex;align-items:center;gap:9px;margin:26px 6px 0;color:#777f7c;font-size:15px}
.dashboard-safety-note p{margin:0}
.dashboard-safety-note strong{font-weight:800}

/* Intro screen: risk check and four-week challenge */
.intro-progress-groups{display:none;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:-48px 0 14px}
.intro-progress-groups span{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border-radius:999px;background:#edf7f3;color:var(--green-dark);font-size:14px;font-weight:900}
.intro-progress-groups span:last-child{background:#fff1bd;color:#79531a}
body.intro-mode .step-panel ol{display:grid}
body.intro-mode .intro-progress-groups{display:flex}
.step-panel ol{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.progress-track span{width:0}
.intro-hero-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(390px,.82fr);gap:clamp(34px,5vw,72px);align-items:stretch;margin-top:8px}
.intro-copy{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:20px 0}
.intro-copy .eyebrow{font-size:17px;margin-bottom:14px}
#intro-title{font-size:clamp(48px,5.3vw,72px);line-height:1.08;white-space:normal;margin:0 0 24px;letter-spacing:-.055em}
#intro-title em{color:var(--green);font-style:normal}
.intro-summary{max-width:720px;margin:0;color:var(--muted);font-size:21px;line-height:1.65}
.intro-summary p{margin:0}
.intro-summary p+p{margin-top:14px}
.intro-screen .intro-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;margin:30px 0 0}
.intro-screen .intro-actions .primary,.intro-screen .intro-actions .secondary{width:auto;min-width:250px;padding:16px 24px;font-size:21px;border-radius:14px}
.intro-safety-note{display:flex;align-items:flex-start;gap:10px;max-width:650px;margin-top:24px;color:#7a6a43;font-size:16px;line-height:1.5}
.intro-safety-note>span{flex:0 0 auto;color:#a87300}
.intro-safety-note p{margin:0}
.intro-safety-note p+p{margin-top:10px}
.intro-challenge-preview{position:relative;display:grid;grid-template-rows:auto minmax(210px,1fr) auto;min-height:450px;overflow:visible;padding:24px 22px 20px;border:0;border-radius:30px;background:transparent;box-shadow:none}
.intro-challenge-preview:focus-visible{outline:4px solid #bce6dc;outline-offset:4px}
.intro-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.intro-preview-heading h2{margin:0;color:var(--green-dark);font-size:22px;line-height:1.25;letter-spacing:-.02em}
.intro-preview-heading p{margin:5px 0 0;color:var(--muted);font-size:14px;font-weight:800}
.intro-preview-heading ol{list-style:none;display:flex;gap:5px;margin:0;padding:0}
.intro-preview-heading li{display:grid;place-items:center;min-width:38px;height:34px;padding:4px 7px;border-radius:9px;background:rgba(255,255,255,.66);color:#708079;font-size:13px;font-weight:900}
.intro-preview-heading li.active{background:var(--green);color:#fff}
#intro-preview-mascot{display:block;align-self:center;justify-self:center;width:min(260px,72%);height:250px;object-fit:contain;filter:drop-shadow(0 18px 16px rgba(19,89,68,.17));transition:transform .35s cubic-bezier(.2,1.2,.35,1)}
#intro-preview-mascot.is-changing{transform:translateY(-7px) scale(1.035) rotate(-1deg)}
.intro-habit-orbit{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0;padding:0}
.intro-habit-orbit li{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 13px;border:1px solid rgba(255,255,255,.7);border-radius:999px;background:rgba(255,255,255,.72);color:var(--green-dark);font-size:15px;font-weight:900;box-shadow:0 10px 24px rgba(11,72,54,.12);backdrop-filter:blur(8px)}
.intro-habit-orbit span{font-size:18px}
.intro-process-grid{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0;margin:28px 0 0}
.intro-process-grid li{display:grid;place-items:center;gap:8px;min-height:148px;padding:18px;border:2px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 8px 22px rgba(40,84,69,.04);text-align:center}
.intro-process-grid img{display:block;width:92px;height:92px;object-fit:contain}
.intro-process-grid strong{font-size:20px;color:var(--ink)}
body.intro-mode .app-shell{max-width:none;padding:0}
body.intro-mode .content{min-height:calc(100vh - 86px)}
body.intro-mode .intro-screen{position:relative;min-height:calc(100vh - 86px);overflow:hidden;background:linear-gradient(110deg,rgba(9,70,54,.92) 0%,rgba(22,111,86,.82) 42%,rgba(238,249,243,.7) 100%)}
body.intro-mode .intro-screen::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 28%,rgba(255,255,255,.68),transparent 24%),radial-gradient(circle at 82% 82%,rgba(255,214,142,.32),transparent 28%),linear-gradient(90deg,rgba(5,31,29,.54),rgba(5,31,29,.08) 62%,rgba(255,255,255,.28));pointer-events:none}
body.intro-mode .intro-screen::after{content:none}
body.intro-mode .intro-hero-grid{position:relative;z-index:1;grid-template-columns:minmax(0,.9fr) minmax(360px,.68fr);min-height:calc(100vh - 210px);max-width:1640px;margin:0 auto;padding:clamp(68px,8vw,118px) clamp(52px,7vw,128px) 120px;align-items:center}
body.intro-mode .intro-copy{padding:0;color:#fff}
body.intro-mode .intro-copy .eyebrow{color:#9fe5d5;font-size:clamp(15px,1.25vw,20px);letter-spacing:.16em;text-transform:uppercase}
body.intro-mode #intro-title{max-width:740px;color:#fff;font-size:clamp(54px,6vw,96px);line-height:.96;letter-spacing:-.07em;text-shadow:0 8px 28px rgba(0,0,0,.2)}
body.intro-mode #intro-title em{color:#fff5cf}
body.intro-mode .intro-summary{max-width:780px;color:rgba(255,255,255,.88);font-size:clamp(21px,2vw,31px);line-height:1.45}
body.intro-mode .intro-summary p+p{margin-top:6px}
body.intro-mode .intro-screen .intro-actions{margin-top:34px}
body.intro-mode .intro-screen .intro-actions .primary{min-width:280px;border:0;border-radius:17px;background:#35c7bc;color:#062d2d;box-shadow:0 18px 40px rgba(0,0,0,.2);font-size:22px;letter-spacing:.03em}
body.intro-mode .intro-screen .intro-actions .primary:hover{background:#5addd1}
body.intro-mode .intro-safety-note{max-width:820px;color:rgba(255,255,255,.78)}
body.intro-mode .intro-safety-note>span{color:#fff5cf}
body.intro-mode .intro-challenge-preview{position:relative;z-index:2;display:grid;align-content:end;align-items:start;justify-items:center;gap:18px;min-height:520px;padding:0 0 70px;border:0;background:transparent;box-shadow:none;backdrop-filter:none}
body.intro-mode .intro-challenge-preview::before{content:none}
body.intro-mode .intro-routine-heading{display:grid;grid-template-columns:1fr;justify-items:start;gap:14px;width:min(540px,100%);padding:0 8px;background:transparent;box-shadow:none;backdrop-filter:none}
body.intro-mode .intro-routine-heading h2{margin:0;color:#073f35;font-size:clamp(27px,2.4vw,38px);line-height:1.12;letter-spacing:-.045em;white-space:nowrap;text-shadow:0 2px 12px rgba(255,255,255,.48)}
body.intro-mode .intro-routine-heading p{margin:6px 0 0;color:#335b52;font-size:clamp(15px,1.25vw,19px);font-weight:900;text-shadow:0 1px 10px rgba(255,255,255,.45)}
body.intro-mode .intro-routine-heading ol{display:flex;align-items:center;justify-content:flex-end;gap:7px;width:100%;margin:0;padding:0;list-style:none}
body.intro-mode .intro-routine-heading li{display:grid;place-items:center;min-width:44px;min-height:44px;padding:6px 10px;border-radius:12px;background:rgba(255,255,255,.72);color:#5f746e;font-size:16px;font-weight:900;box-shadow:0 8px 18px rgba(11,72,54,.08)}
body.intro-mode .intro-routine-heading li.active{background:var(--green);color:#fff}
body.intro-mode .intro-habit-orbit{position:relative;align-self:start;display:grid;grid-template-columns:repeat(3,minmax(112px,1fr));align-items:start;justify-items:center;gap:clamp(12px,2vw,28px);width:min(560px,100%);margin:0;padding:0;list-style:none;transform:none}
body.intro-mode .intro-habit-orbit li{position:relative;display:grid;place-items:center;gap:13px;min-height:auto;padding:0;border:0;border-radius:0;background:transparent;color:#073f35;font-size:17px;font-weight:900;box-shadow:none;backdrop-filter:none;text-align:center}
body.intro-mode .intro-habit-orbit li::before{content:"";position:absolute;z-index:0;bottom:48px;left:50%;width:72px;height:13px;transform:translateX(-50%);border-radius:50%;background:rgba(5,45,37,.18);filter:blur(4px)}
body.intro-mode .intro-habit-orbit li:nth-child(-n+2)::after{content:"";position:absolute;z-index:0;top:62px;left:calc(50% + 62px);width:calc(100% - 20px);border-top:3px dotted rgba(7,63,53,.42)}
body.intro-mode .intro-habit-orbit img{position:relative;z-index:1;display:block;width:min(136px,10vw);height:min(136px,10vw);min-width:108px;min-height:108px;object-fit:contain;filter:drop-shadow(0 16px 16px rgba(11,72,54,.16))}
body.intro-mode .intro-habit-orbit strong{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:122px;min-height:42px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.76);box-shadow:0 10px 24px rgba(11,72,54,.12);white-space:nowrap}
body.intro-mode .intro-process-grid{position:absolute;z-index:2;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:18px clamp(26px,8vw,150px);background:rgba(17,29,10,.84);backdrop-filter:blur(10px)}
body.intro-mode .intro-process-grid li{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:center;gap:14px;min-height:76px;padding:8px 18px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#fff;text-align:left}
body.intro-mode .intro-process-grid img{width:46px;height:46px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.18))}
body.intro-mode .intro-process-grid strong{color:#fff;font-size:17px;letter-spacing:.02em}

@media(max-width:1400px) and (min-width:1181px){
  body.intro-mode .intro-hero-grid{grid-template-columns:minmax(0,.82fr) minmax(430px,.74fr);gap:34px;padding-inline:clamp(38px,4.4vw,70px)}
  body.intro-mode #intro-title{max-width:620px;font-size:clamp(58px,5.2vw,78px)}
  body.intro-mode .intro-summary{max-width:620px;font-size:clamp(21px,2vw,26px)}
  body.intro-mode .intro-routine-heading,body.intro-mode .intro-habit-orbit{width:min(520px,100%)}
  body.intro-mode .intro-routine-heading h2{font-size:clamp(28px,2.4vw,34px)}
}

@media(max-width:1180px) and (min-width:721px){
  body.intro-mode .intro-hero-grid{grid-template-columns:minmax(0,.86fr) minmax(330px,.64fr);gap:28px;padding-inline:clamp(34px,4vw,58px)}
  body.intro-mode #intro-title{font-size:clamp(50px,5.7vw,70px)}
  body.intro-mode .intro-summary{font-size:clamp(19px,2vw,24px)}
  body.intro-mode .intro-routine-heading,body.intro-mode .intro-habit-orbit{width:min(460px,100%)}
  body.intro-mode .intro-routine-heading h2{font-size:clamp(24px,2.4vw,30px)}
  body.intro-mode .intro-habit-orbit{grid-template-columns:repeat(3,minmax(96px,1fr));gap:12px}
  body.intro-mode .intro-habit-orbit li{gap:11px}
  body.intro-mode .intro-habit-orbit img{width:min(118px,10vw);height:min(118px,10vw);min-width:96px;min-height:96px}
  body.intro-mode .intro-habit-orbit li::before{bottom:45px;width:62px}
  body.intro-mode .intro-habit-orbit li:nth-child(-n+2)::after{top:50px;left:calc(50% + 52px);width:calc(100% - 10px);border-top-width:2px}
  body.intro-mode .intro-habit-orbit strong{width:108px;font-size:15px}
}

.screen-title-with-mascot{display:flex;align-items:center;gap:18px;margin:0 0 22px}
.screen-title-with-mascot>img{flex:0 0 100px;width:100px;height:100px;object-fit:contain}
.screen-title-with-mascot .eyebrow{margin-bottom:4px}
.screen-title-with-mascot h2{margin:0}
#intro-title{font-size:clamp(42px,4.25vw,60px);white-space:nowrap}
.challenge-mascot{display:block;flex:0 0 142px;width:142px;height:142px;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(23,107,91,.12))}
.today-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 112px;column-gap:16px;overflow:hidden}
.today-card>.eyebrow{grid-column:1;grid-row:1;align-self:end}
.today-card>h3{grid-column:1;grid-row:2;min-width:0;align-self:start;word-break:keep-all;overflow-wrap:anywhere}
.today-card>p:not(.eyebrow),.today-card>button{grid-column:1/-1;min-width:0!important}
.today-card-mascot{position:static;grid-column:2;grid-row:1/3;align-self:center;justify-self:end;width:112px;height:112px;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(23,107,91,.13))}
.section-title-with-mascot{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.section-title-with-mascot img{width:84px;height:84px;object-fit:contain}
.section-title-with-mascot h3{margin:0}
.detail-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:18px;margin-top:18px}
.detail-health-group{display:grid;align-content:start;gap:12px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff}
.detail-health-group h4{margin:0;color:var(--green-dark);font-size:20px}
.detail-health-group .detail-subtitle{margin-top:12px;padding-top:14px;border-top:1px solid rgba(23,107,91,.14)}
.detail-health-group .form-row{margin:0}
.together-mascot{width:92px;height:92px;margin:0;object-fit:contain}
.health-tool-mascot{flex:0 0 88px;width:88px;height:88px;object-fit:contain}
@media(max-width:1200px){
  .lifestyle-question-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .smoking-status-card,.self-health-card,.meal-count-card{grid-column:auto}
  .lifestyle-drinking-card,.lifestyle-activity-card{grid-column:1/-1}
  .lifestyle-drinking-card{grid-template-columns:1fr}
  .detail-health-grid,.review-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
  .lifestyle-question-grid,.detail-health-grid,.review-grid{grid-template-columns:1fr!important}
  .lifestyle-drinking-card{grid-template-columns:1fr}
}
.health-tool-question-mascot{float:right;width:120px;height:120px;margin:0 0 12px 18px;object-fit:contain}
.intro-footer{margin:18px 0 0;text-align:center;color:var(--muted);font-size:15px;font-weight:800}

/* Report tab: period switcher and lightweight summaries */
.report-page{max-width:none;margin:0;padding:0;border:0}
.report-period-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px;margin:16px 0 22px;border-radius:14px;background:var(--soft)}
.report-period-tab{min-height:48px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:17px;font-weight:900;cursor:pointer}
.report-period-tab.active{background:#fff;color:var(--ink);box-shadow:0 1px 8px rgba(13,38,32,.08)}
.report-period-panel[hidden]{display:none}
.report-period-panel{display:grid;gap:22px}
.report-hero-card{display:flex;align-items:center;gap:28px;min-height:180px;padding:30px 34px;border:2px solid #bfe0c6;border-radius:22px;background:linear-gradient(135deg,#e9f7f0 0%,#f8fcfa 100%)}
.report-mascot{width:124px;height:124px;object-fit:contain;border-radius:0;background:transparent;filter:drop-shadow(0 8px 12px rgba(23,107,91,.14))}
.report-hero-card strong{display:block;font-size:34px;line-height:1.25;color:var(--ink);letter-spacing:-.02em}
.report-hero-meta{display:flex;align-items:center;justify-content:flex-start;gap:18px;margin-bottom:10px}
.report-hero-meta .eyebrow{margin:0}
.report-hero-meta span{padding:5px 10px;border-radius:999px;background:#fff;color:var(--muted);font-size:15px;font-weight:800}
.weekly-dot-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.weekly-dot-row span{display:grid;grid-template-columns:1fr auto;align-items:center;min-height:54px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--muted)}
.weekly-dot-row span b{font-size:16px}
.weekly-dot-row span i{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--soft);font-size:14px;font-style:normal;font-weight:900}
.weekly-dot-row span.done{border-color:#bfe0c6;background:#eef8f1;color:var(--green-dark)}
.weekly-dot-row span.done i{background:var(--green);color:#fff}
.report-progress-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0;border:0;background:transparent}
.report-progress-item{display:grid;align-content:space-between;gap:22px;min-height:174px;padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff}
.report-progress-item.complete{border-color:#9ecdb9;background:#f2faf6}
.report-progress-title{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:14px}
.report-progress-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:var(--mint);color:var(--green-dark)}
.report-progress-icon svg{width:30px;height:30px}
.report-progress-title strong,.report-progress-title small{display:block}
.report-progress-title strong{font-size:20px;line-height:1.3;color:var(--ink)}
.report-progress-title small{margin-top:5px;color:var(--muted);font-size:15px}
.report-progress-meter{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.report-progress-meter b{min-width:44px;color:var(--green-dark);font-size:17px;text-align:right}
.report-progress-bar{height:14px;border-radius:999px;background:var(--soft);overflow:hidden}
.report-progress-bar i{display:block;height:100%;border-radius:inherit;background:var(--green)}
.report-progress-list.has-daily-detail{grid-template-columns:1fr}
.report-progress-list.has-daily-detail>.report-legend,.report-progress-list.has-daily-detail>.report-card-note{grid-column:1/-1}
.report-progress-detailed{min-height:0}
.report-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:14px}
.report-legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.report-legend i{display:inline-grid;place-items:center;min-width:31px;height:31px;padding:0 5px;border:1px solid var(--line);border-radius:9px;font-size:16px;font-style:normal;font-weight:900;line-height:1}
.report-week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.report-day{text-align:center;color:var(--muted);font-size:14px;font-weight:800}
.report-day i{display:grid;place-items:center;height:42px;margin:6px auto 0;border:1px solid var(--line);border-radius:10px;font-size:21px;font-style:normal;font-weight:900;line-height:1}
.report-day i.completed,.report-legend i.completed{border-color:#b6d6c6;background:#e2f1e9;color:var(--green-dark)}
.report-day i.not_completed,.report-legend i.not_completed{border-color:#b5a6a6;background:#f0eeee;color:#6a4c4c}
.report-day i.unrecorded,.report-legend i.unrecorded{border-color:#c1cac5;background:#fff;color:#69746f}
.report-day i.pending,.report-day i.future,.report-day i.unavailable,.report-legend i.pending,.report-legend i.future{border-color:#e1e6e2;background:#f3f4f3;color:#626d67;font-size:12px;font-weight:800}
.report-detail-notice,.report-card-note{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
@media(max-width:1000px) and (min-width:721px){.report-progress-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.report-empty{padding:18px;border:1px dashed var(--line);border-radius:14px;background:#fbfdfc}
.report-empty strong,.report-empty p{display:block;margin:0}
.report-empty p{margin-top:4px;color:var(--muted)}
.report-week-bars{display:flex;align-items:flex-end;gap:14px;height:130px;padding:22px 20px;border:1px solid var(--line);border-radius:18px;background:#fff}
.report-week-bars div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;height:100%}
.report-week-bars span{display:block;width:100%;min-height:18px;border-radius:8px 8px 0 0;background:var(--green)}
.report-week-bars small{font-size:14px;color:var(--muted);font-weight:800}
.report-week-bars .future{opacity:.45}
.report-week-bars .future span{background:var(--line)}
.report-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.report-stat-grid article{padding:18px 20px;border-radius:16px;background:var(--soft)}
.report-stat-grid small,.report-stat-grid strong{display:block}
.report-stat-grid small{font-size:15px;color:var(--muted);font-weight:800}
.report-stat-grid strong{font-size:26px;color:var(--ink);margin-top:4px}
.cycle-history-list{display:grid;gap:10px}
.cycle-history-item{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}
.cycle-history-item.active{border-color:#bfe0c6;background:#eef8f1}
.cycle-history-item summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:76px;padding:18px 20px;cursor:pointer;list-style:none}
.cycle-history-item summary::-webkit-details-marker{display:none}
.cycle-history-item summary::after{content:"⌄";color:var(--muted);font-size:24px;font-weight:900;transition:transform .2s}
.cycle-history-item[open] summary::after{transform:rotate(180deg)}
.cycle-history-list strong,.cycle-history-list small{display:block}
.cycle-history-list small{margin-top:3px;color:var(--muted);font-size:15px}
.cycle-history-list b{font-size:24px;color:var(--ink)}
.cycle-history-detail{padding:0 20px 18px;border-top:1px solid rgba(23,107,91,.15)}
.cycle-history-detail strong{margin:16px 0 8px;color:var(--green-dark)}
.cycle-history-detail ul{display:grid;gap:8px;margin:0;padding-left:22px;color:var(--muted)}
.cycle-history-detail li{line-height:1.45}
.report-pdf-card{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:center;gap:18px;padding:20px;border-radius:16px;background:var(--soft)}
.report-pdf-card strong,.report-pdf-card p{display:block;margin:0}
.report-pdf-card p{margin-top:3px;color:var(--muted);font-size:15px}
.report-pdf-control{position:relative;justify-self:end}
.report-pdf-hero-control{display:none;width:auto;min-width:0;padding:0;background:transparent;border:0;border-radius:0;grid-template-columns:auto}
.screen[data-step="8"]:has(#workspace-panel-report.active) .report-pdf-hero-control{display:grid;flex:0 0 auto;width:auto!important;min-width:0!important}
.report-pdf-hero-control .report-pdf-control{justify-self:auto}
.report-pdf-hero-control #download-report{display:flex;align-items:center;justify-content:center;min-height:38px;padding:6px 10px;border:2px solid var(--green);border-radius:10px;background:#fff;box-shadow:none;color:var(--green-dark);font-size:14px;font-weight:900;line-height:1.5;cursor:pointer;white-space:nowrap}
.report-pdf-hero-control #download-report:hover{background:var(--mint)}
.report-pdf-hero-control #download-report:focus-visible{outline:3px solid var(--green);outline-offset:4px}
.screen[data-step="8"]:has(#workspace-panel-report.active) .report-pdf-hero-control{background:transparent;border:0;box-shadow:none}
.report-pdf-options{box-sizing:border-box;position:absolute;z-index:12;top:calc(100% + 10px);right:0;width:280px;max-width:min(320px,calc(100vw - 32px));min-width:min(280px,calc(100vw - 32px));margin:0;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 16px 38px rgba(20,57,48,.18)}
.report-pdf-options legend{display:block;float:left;width:100%;box-sizing:border-box;margin:0 0 10px;padding:0 4px;color:var(--green-dark);font-size:14px;font-weight:900;line-height:1.35;white-space:normal}
.report-pdf-periods{display:grid;grid-template-columns:1fr;gap:8px;width:100%}
.report-pdf-options legend+.report-pdf-periods{clear:both}
.report-pdf-periods label{display:inline-flex;align-items:center;cursor:pointer}
.report-pdf-periods input{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.report-pdf-periods span{display:inline-flex;align-items:center;justify-content:flex-start;width:100%;min-height:52px;padding:0 18px;border:2px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font-size:16px;font-weight:900}
.report-pdf-periods label:hover span{border-color:var(--green);background:var(--mint)}
.report-pdf-periods input:checked + span{border-color:var(--green);background:var(--green);color:#fff}
.report-pdf-periods input:focus-visible + span{outline:3px solid rgba(22,181,169,.28);outline-offset:3px}
.report-period-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:16px}
.report-period-line>strong{color:var(--ink);font-size:18px}
.report-period-pill{display:inline-flex;align-items:center;min-height:32px;padding:3px 12px;border-radius:999px;background:var(--mint);color:var(--green-dark);font-size:14px;font-weight:900}
.report-hero-card>div>p:last-child{margin:8px 0 0;color:var(--muted);font-size:17px}
.report-hero-muted{border-color:var(--line);background:linear-gradient(135deg,#eef3ef 0%,#fafbf9 100%)}
.report-summary-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff}
.report-summary-stat{min-width:0;padding:22px 26px}
.report-summary-stat+.report-summary-stat{border-left:1px solid var(--line)}
.report-summary-stat small,.report-summary-stat strong,.report-summary-stat span{display:block}
.report-summary-stat small{color:var(--muted);font-size:15px;font-weight:800}
.report-summary-stat strong{margin-top:3px;color:var(--ink);font-size:32px;letter-spacing:-.03em}
.report-summary-stat span{margin-top:2px;color:var(--muted);font-size:14px}
.report-summary-stats.is-unavailable{background:#f8faf8}
.report-summary-stats.is-unavailable .report-summary-stat{opacity:.72}
.report-week-layout{display:grid;grid-template-columns:1fr;gap:22px;align-items:start}
.report-detail-card,.report-insight-card,.report-placeholder-card{min-width:0;padding:26px;border:1px solid var(--line);border-radius:18px;background:#fff}
.report-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.report-section-heading h4,.report-insight-card h4,.report-placeholder-card h4{margin:0;color:var(--ink);font-size:24px;letter-spacing:-.03em}
.report-section-heading p,.report-insight-card p,.report-placeholder-card p{margin:6px 0 0;color:var(--muted);font-size:16px;line-height:1.55}
.report-detail-card .report-progress-list{grid-template-columns:1fr;margin:0}
.report-detail-card .report-progress-item{min-height:142px}
.report-insight-stack{display:grid;grid-template-columns:1fr;gap:22px}
.report-insight-section+.report-insight-section{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.report-overline{margin:0 0 7px!important;color:var(--green-dark)!important;font-size:15px!important;font-weight:900}
.report-next-action{background:#eef4ef}
.report-next-action .primary{width:100%;margin-top:18px}
.report-placeholder-grid{display:grid;grid-template-columns:1fr;gap:22px}
.report-placeholder-grid .report-period-unavailable{grid-column:1/-1}
.report-placeholder-bars{display:flex;align-items:end;gap:14px;height:150px;margin-top:24px;padding:18px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 34px,#edf1ee 35px,#edf1ee 36px)}
.report-placeholder-bars i{display:block;flex:1;height:44%;border-radius:8px 8px 0 0;background:#b8c9c1}
.report-placeholder-bars i:nth-child(2){height:62%}.report-placeholder-bars i:nth-child(3){height:78%}.report-placeholder-bars i:nth-child(4){height:70%;background:#789e90}
.report-cycle-placeholder{width:100%}
.report-cycle-lines{display:grid;gap:10px;margin-top:20px}
.report-cycle-lines i{display:block;height:66px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(90deg,#eef4f0 0 31%,#fff 31%)}
.report-period-unavailable{border-style:solid;background:#f7f9f7}
.report-safety{margin:0;padding:16px 20px;border-radius:12px;background:#f4eee2;color:#665533;font-size:15px;line-height:1.55}
@media(max-width:900px){.report-week-layout{grid-template-columns:1fr}.report-insight-stack{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.report-summary-stats{grid-template-columns:1fr}.report-summary-stat+.report-summary-stat{border-top:1px solid var(--line);border-left:0}.report-summary-stat{padding:18px 20px}.report-week-layout{grid-template-columns:1fr}.report-insight-stack{grid-template-columns:1fr}.report-detail-card,.report-insight-card,.report-placeholder-card{padding:20px}.report-section-heading h4,.report-insight-card h4,.report-placeholder-card h4{font-size:21px}.report-week-grid{gap:4px}.report-day i{height:37px}.report-legend{gap:9px}.report-progress-detailed{padding:18px}}

/* Together tab: Carrot Forest entry */
.together-page{max-width:none;margin:0;padding:0;border:0}
.together-header{display:block;margin-bottom:18px}
.together-header h3{font-size:36px;margin:0;letter-spacing:-.03em}
.together-title-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.together-mascot{flex:0 0 84px;width:84px;height:84px;object-fit:contain}
.together-context-label{color:var(--green-dark);font-size:18px;font-weight:900;white-space:nowrap}
.forest-week-pill{display:inline-flex;align-items:center;min-height:34px;padding:5px 14px;border-radius:999px;background:var(--mint);color:var(--green-dark);font-size:15px;font-weight:900;white-space:nowrap}
.forest-preview{display:block;margin:0 0 20px;padding:0;border:0;text-decoration:none;border-radius:20px;overflow:hidden;background:#d6f0d5;cursor:pointer}
.forest-preview img{display:block;width:100%;height:auto}
.forest-preview.is-coming-soon{cursor:default;filter:saturate(.72);opacity:.82}
.forest-preview:focus-visible{outline:4px solid #bce6dc;outline-offset:4px}
.forest-object{position:absolute;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.78);color:var(--green-dark);font-size:27px;font-weight:900;box-shadow:0 8px 18px rgba(26,70,46,.12)}
.forest-object.flower{top:40px;left:9%;color:#d79c08}
.forest-object.mushroom{top:78px;left:28%;color:#b34437}
.forest-object.rabbit{top:42px;right:12%;color:#527d67}
.forest-object.bench{top:86px;right:30%;color:#8a6334}
.forest-preview-label{position:relative;display:inline-flex;align-items:center;gap:8px;margin-top:auto;border-radius:999px;background:rgba(255,255,255,.88);padding:8px 16px;color:var(--ink);font-size:15px;font-weight:900}
.forest-link-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap}
.forest-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
.forest-action-row .forest-link-button{width:100%;min-height:58px}
.forest-action-row .forest-link-button:disabled{cursor:not-allowed;opacity:.58;box-shadow:none}
.forest-today-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px;margin:0 0 22px;padding:24px;border:2px solid #bfe0c6;border-radius:18px;background:#eef8f1}
.forest-today-card h4{font-size:24px;margin:4px 0 5px;color:var(--ink)}
.forest-today-card p:not(.eyebrow){color:var(--muted);margin:0}
.forest-today-summary{display:flex;align-items:center;justify-content:flex-end}
.forest-today-summary>div{min-width:120px;padding:10px 14px;border:1px solid #bfe0c6;border-radius:14px;background:rgba(255,255,255,.78)}
.forest-today-summary small,.forest-today-summary strong{display:block}
.forest-today-summary small{color:var(--muted);font-size:14px;font-weight:800}
.forest-today-summary strong{margin-top:2px;color:var(--ink);font-size:22px;line-height:1.2}
.together-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 10px;color:var(--muted)}
.together-list-heading strong{color:var(--ink);font-size:18px}
.together-list-heading small{font-size:14px}
.forest-section-heading{display:flex;align-items:center;gap:12px;min-width:0}
.forest-section-mascot{flex:0 0 70px;width:70px;height:70px;object-fit:contain}
.forest-family-mascot{width:88px;flex-basis:88px}
.forest-invite-heading{margin-bottom:8px}
.forest-invite-heading h4{margin:0}
.together-member-list,.forest-group-list{display:grid;gap:10px;margin-bottom:20px}
.together-member{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.member-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#e3e2d9;color:var(--ink);font-size:14px;font-weight:900}
.together-member strong,.together-member p{display:block;margin:0}
.together-member p{color:var(--muted);font-size:15px;line-height:1.45}
.member-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#e3f3e5;color:var(--green-dark);padding:5px 10px;font-size:14px;font-weight:900;white-space:nowrap}
.member-menu-wrap{position:relative;display:flex;align-items:center;justify-content:flex-end}
.member-menu-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--muted);font-size:26px;font-weight:900;line-height:1;cursor:pointer}
.member-menu-button:focus-visible{outline:3px solid rgba(31,111,91,.25);outline-offset:2px}
.member-menu{position:absolute;right:0;top:50px;z-index:10;display:grid;min-width:168px;padding:8px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 14px 30px rgba(13,38,32,.14)}
.member-menu[hidden]{display:none}
.member-menu .text-button{justify-content:flex-start;min-height:40px;width:100%;border-radius:10px;padding:8px 12px;font-size:15px;text-align:left}
.member-menu .text-button.danger{color:var(--danger)}
.forest-invite-card{border:1px solid var(--line);border-radius:18px;background:#fff;padding:22px;margin:18px 0}
.forest-invite-card h4{font-size:23px;margin:0 0 8px;color:var(--ink)}
.forest-invite-card .forest-invite-heading h4{margin:0}
.forest-invite-card>p{color:var(--muted);font-size:17px;margin:0 0 16px}
.forest-invite-form{display:grid;gap:14px}
.invite-inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:4px}
.optional-label{color:var(--muted);font-weight:800}
.invite-code-panel{display:grid;gap:10px}
.invite-code-box{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.invite-code-box strong{font-size:26px;letter-spacing:2px;color:var(--ink)}
.invite-code-note{margin:0;color:var(--muted);font-size:16px;font-weight:800}
.group-leave-button{width:100%;margin-top:8px}
.danger-outline{min-height:48px;border:1px solid var(--danger);border-radius:14px;background:#fff;color:var(--danger);font-size:17px;font-weight:900;cursor:pointer}
.danger-outline:hover{background:#fff5f3}
.forest-group-card,.together-empty{border:1px solid var(--line);border-radius:14px;background:#fbfdfc;padding:16px 18px}
.forest-group-card strong,.forest-group-card p,.forest-group-card small,.together-empty strong,.together-empty p{display:block;margin:0}
.forest-group-card p,.forest-group-card small,.together-empty p{color:var(--muted);font-size:16px;margin-top:4px}
.forest-group-card .text-button{margin-top:12px}
.shared-member-progress{list-style:none;padding:0;margin:14px 0;display:grid;gap:8px}.shared-member-progress li{display:flex;justify-content:space-between;gap:16px;padding:10px 12px;border-radius:10px;background:var(--mint)}.shared-member-progress span{color:var(--green-dark);font-weight:800}

.lifestyle-map-detail[hidden]{display:none}
.lifestyle-map-detail{margin:18px 0 30px;padding:26px;border:2px solid #b8d9cc;border-radius:22px;background:#fbfefc;scroll-margin-top:24px}
.lifestyle-map-detail:focus{outline:none}
.lifestyle-map-actions{display:flex;justify-content:flex-end;margin-bottom:18px}
.lifestyle-map-detail .lifestyle-map{grid-template-columns:repeat(2,minmax(0,1fr));margin:0;border:0;padding:0;background:transparent}
.map-topic-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px}
.map-topic-guide span{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:16px;font-weight:800}
.map-topic-guide b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--soft);color:var(--green-dark)}

.current-health-result{margin:28px 0;padding:30px;border:2px solid var(--green);border-radius:22px;background:linear-gradient(135deg,#f4fbf8,#fff)}
.current-health-result-heading{display:flex;align-items:center;gap:18px;margin-bottom:18px}
.current-health-result-heading h3{margin:2px 0 0;font-size:30px;color:var(--ink)}
.current-health-result-heading .eyebrow{margin:0}
.current-health-result-icon{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:50%;background:var(--green);color:#fff;font-size:28px;font-weight:900}
.current-health-result>p{font-size:20px;line-height:1.65;color:var(--muted)}
.current-health-result-details{display:grid;gap:10px;margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff}
.current-health-result-details strong{font-size:23px;color:var(--ink)}
.current-health-result-details p{margin:0;color:var(--muted);font-size:18px;line-height:1.6}
.risk-forecast-panel{margin:30px 0;padding:32px 34px;border:3px solid var(--green);border-radius:24px;background:linear-gradient(180deg,#fff 0%,#f7fcfa 100%);box-shadow:0 10px 26px rgba(18,52,43,.07)}
.risk-forecast-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.risk-forecast-heading .eyebrow{margin:0 0 6px}
.risk-forecast-heading h3{margin:0;font-size:32px;line-height:1.3;color:var(--ink)}
.future-risk-category{display:block;margin-top:16px;color:var(--ink);font-size:24px}
.risk-forecast-description{margin:14px 0 24px;color:var(--muted);font-size:18px;line-height:1.65}
.forecast-status-badge{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border:1px solid #c3d4ce;border-radius:999px;background:#f4f8f6;color:var(--green-dark);font-size:15px;font-weight:900;white-space:nowrap}
.forecast-status-badge[data-status="approved"]{border-color:var(--green);background:var(--mint)}
.forecast-status-badge[data-status="preview"]{border-color:#d8b95c;background:#fff8df;color:#72540b}
.forecast-status-badge[data-status="failed"]{border-color:#d9aaa7;background:#fff0ee;color:#8d3029}
.forecast-state{min-height:150px;display:grid;place-content:center;text-align:center;padding:24px;border:2px dashed #b9cbc5;border-radius:18px;background:#f8fbfa}
.forecast-state strong{font-size:23px;color:var(--ink)}
.forecast-state p{margin:8px 0 0;color:var(--muted);font-size:17px;line-height:1.55}
.forecast-state[data-state="unavailable"]{border-color:#ddc77e;background:#fffaf0}
.age-risk-chart{display:grid;grid-template-columns:1fr;place-items:center;min-height:300px;padding:28px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fffaf0,#f6ead0)}
.age-risk-chart-scale{display:none}
.age-risk-chart-points{display:flex;align-items:center;justify-content:center;width:100%;min-width:0}
.age-risk-point{display:grid;grid-template-areas:"value" "gauge" "label";justify-items:center;gap:12px;min-width:min(420px,100%);height:auto}
.age-risk-point strong{grid-area:value;font-size:clamp(26px,3vw,36px);color:var(--ink);line-height:1.15}
.age-risk-point small{grid-area:label;max-width:220px;color:var(--ink);font-size:20px;font-weight:950;text-align:center;line-height:1.3}
.age-risk-signal-track{
  --marker-x:50%;
  --marker-y:18%;
  position:relative;
  display:block;
  grid-area:gauge;
  width:min(380px,78vw);
  height:210px;
  border-radius:210px 210px 24px 24px;
  background:
    radial-gradient(circle at 50% 100%,#fffaf0 0 43%,transparent 44%),
    conic-gradient(from 270deg at 50% 100%,#dff5eb 0deg 60deg,#fff2bd 60deg 120deg,#ffe0dd 120deg 180deg,transparent 180deg 360deg);
  border:3px solid #8eaaa0;
  border-bottom:0;
  box-shadow:inset 0 0 0 8px rgba(255,255,255,.68),0 12px 24px rgba(20,33,61,.12);
  overflow:visible;
}
.age-risk-signal-track::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:18px;
  width:6px;
  height:150px;
  border-radius:999px;
  background:#9fb9b1;
  transform:translateX(-50%) rotate(var(--needle-rotation,0deg));
  transform-origin:50% calc(100% - 3px);
}
.age-risk-signal-track::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:12px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#0b4d42;
  transform:translateX(-50%);
  box-shadow:0 0 0 6px #fff8e8;
}
.age-risk-signal-track img{position:absolute;left:var(--marker-x);top:var(--marker-y);z-index:1;width:86px;height:86px;border:6px solid #fff;border-radius:50%;object-fit:cover;transform:translate(-50%,-50%);box-shadow:0 8px 18px rgba(20,33,61,.3)}
.age-risk-signal-track[data-level="pending"]::before,
.age-risk-signal-track[data-level="pending"]::after{display:none}
.age-risk-signal-track[data-level="low"]{--marker-x:24%;--marker-y:61%;--needle-rotation:-54deg}
.age-risk-signal-track[data-level="low"] img{background:#dff5eb}
.age-risk-signal-track[data-level="moderate"]{--marker-x:50%;--marker-y:18%;--needle-rotation:0deg}
.age-risk-signal-track[data-level="moderate"] img{background:#fff2bd}
.age-risk-signal-track[data-level="high"]{--marker-x:76%;--marker-y:61%;--needle-rotation:54deg}
.age-risk-signal-track[data-level="high"] img{background:#ffe0dd}

@media(max-width:800px){
  .risk-forecast-panel{padding:24px 18px}
  .risk-forecast-heading{flex-direction:column;gap:12px}
  .forecast-status-badge{align-self:flex-start}
  .current-signal-content{grid-template-columns:1fr}
  .result-room-screen .risk-forecast-panel{grid-template-columns:1fr}
  .result-room-screen .age-risk-chart,
  .result-room-screen .forecast-score-placeholder{grid-column:1}
  .result-room-screen .forecast-score-placeholder{min-height:180px}
  .age-risk-chart{grid-template-columns:1fr;padding:22px 12px 18px}
  .age-risk-point{min-width:0;width:100%}
  .age-risk-point strong{font-size:17px}
  .age-risk-point small{font-size:15px}
  .age-risk-signal-track{width:min(300px,76vw);height:170px}
  .age-risk-signal-track img{width:70px;height:70px}
  .age-risk-signal-track::before{height:116px}
  body.dashboard-mode .app-shell{padding-top:20px}
  .workspace-panel[data-workspace-panel="home"] .today-card{padding:26px 22px;margin-top:8px}
  .workspace-panel[data-workspace-panel="home"] .today-card h3{font-size:27px}
  .workspace-panel[data-workspace-panel="home"] .summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
  .workspace-panel[data-workspace-panel="home"] .summary-grid article{padding:8px 12px 12px}
  .workspace-panel[data-workspace-panel="home"] .summary-grid small{font-size:14px}
  .workspace-panel[data-workspace-panel="home"] .summary-grid strong{font-size:23px}
  .dashboard-account-content{align-items:stretch;flex-direction:column;padding:0 20px 20px}
  .dashboard-account-buttons{width:100%;flex-direction:column}
  .dashboard-account-buttons button{width:100%}
  .dashboard-management-grid{grid-template-columns:1fr}
  .dashboard-management-content{padding:0 20px 20px}
  .dashboard-management-heading{align-items:stretch;flex-direction:column}
  .dashboard-management-heading button{width:100%}
  .health-history-values{grid-template-columns:repeat(2,minmax(0,1fr))}
  .health-history-values .health-history-result-action{grid-column:1/-1}
  .health-history-result-action button{width:100%}
}

@media(max-width:520px){
  .workspace-panel[data-workspace-panel="home"] .summary-grid{grid-template-columns:1fr}
  .workspace-panel[data-workspace-panel="home"] .summary-grid article{display:grid;grid-template-columns:1fr auto;align-items:center;padding:12px 4px;border-left:0!important;border-bottom:1px solid var(--line)}
  .workspace-panel[data-workspace-panel="home"] .summary-grid strong{margin:0}
  .dashboard-safety-note{align-items:flex-start}
  .health-history-item summary span{align-items:flex-start;flex-direction:column;gap:2px}
  .health-history-values{grid-template-columns:1fr}
}

@media(max-width:1000px){
  .intro-hero-grid{grid-template-columns:1fr;gap:28px}
  .intro-copy{padding-bottom:0}
  .intro-challenge-preview{min-height:430px}
  .intro-progress-groups{justify-content:flex-start;margin:0 0 14px}
}

@media(max-width:720px){
  body.intro-mode .step-panel ol{display:grid;grid-template-columns:1fr;overflow:visible}
  body.intro-mode .intro-hero-grid{grid-template-columns:1fr;min-height:auto;padding:46px 20px 128px}
  body.intro-mode .intro-copy{display:grid;justify-items:center;text-align:center}
  body.intro-mode #intro-title{max-width:calc(100vw - 40px);font-size:clamp(38px,10.2vw,46px);line-height:1.05;white-space:normal}
  body.intro-mode .intro-summary{max-width:calc(100vw - 40px)}
  body.intro-mode .intro-safety-note{justify-content:center;text-align:left}
  body.intro-mode .intro-challenge-preview{min-height:auto;gap:20px;margin-top:20px;padding-bottom:0}
  body.intro-mode .intro-routine-heading{justify-items:center;width:min(420px,100%);padding:0 4px;text-align:center}
  body.intro-mode .intro-routine-heading ol{width:100%;justify-content:center}
  body.intro-mode .intro-routine-heading li{min-width:0;min-height:40px;flex:1;font-size:14px}
  body.intro-mode .intro-habit-orbit{grid-template-columns:repeat(3,minmax(86px,1fr));gap:10px;width:100%;transform:none}
  body.intro-mode .intro-habit-orbit li{gap:9px}
  body.intro-mode .intro-habit-orbit li::before{bottom:39px;width:54px;height:10px}
  body.intro-mode .intro-habit-orbit li:nth-child(-n+2)::after{top:39px;left:calc(50% + 46px);width:calc(100% - 16px);border-top-width:2px}
  body.intro-mode .intro-habit-orbit img{width:88px;height:88px;min-width:78px;min-height:78px}
  body.intro-mode .intro-habit-orbit strong{width:auto;min-height:34px;padding:5px 8px;font-size:14px;box-shadow:0 8px 18px rgba(11,72,54,.1)}
  body.intro-mode .intro-process-grid{grid-template-columns:1fr;padding:14px 20px}
  body.intro-mode .intro-process-grid li{grid-template-columns:auto auto;justify-content:center;min-height:56px;padding:6px 8px;text-align:center}
  .intro-progress-groups{display:grid!important;grid-template-columns:1fr;gap:6px}
  .intro-progress-groups span{justify-content:center;min-height:32px;font-size:13px}
  #intro-title{font-size:clamp(40px,12vw,54px)}
  .intro-summary{font-size:18px}
  .intro-screen .intro-actions{align-items:stretch;flex-direction:column}
  .intro-screen .intro-actions .primary,.intro-screen .intro-actions .secondary{width:100%;min-width:0;font-size:18px}
  .intro-safety-note{font-size:15px}
  .intro-challenge-preview{grid-template-rows:auto minmax(180px,1fr) auto;min-height:390px;padding:20px 16px 16px;border-radius:22px}
  .intro-preview-heading{align-items:flex-start;flex-direction:column;gap:12px}
  .intro-preview-heading ol{width:100%}
  .intro-preview-heading li{flex:1}
  #intro-preview-mascot{width:210px;height:190px}
  .intro-habit-orbit{gap:6px}
  .intro-habit-orbit li{min-height:38px;padding:6px 10px;font-size:13px}
  .intro-habit-orbit span{font-size:16px}
  .intro-process-grid{gap:7px}
  .intro-process-grid li{min-height:118px;gap:4px;padding:10px 5px;border-radius:15px}
  .intro-process-grid img{width:66px;height:66px}
  .intro-process-grid strong{font-size:15px;line-height:1.25}
  .screen-title-with-mascot{align-items:flex-start;gap:12px;margin-bottom:18px}
  .screen-title-with-mascot>img{flex-basis:78px;width:78px;height:78px}
  .today-card{grid-template-columns:minmax(0,1fr) 88px;column-gap:12px}
  .today-card-mascot{width:88px;height:88px}
  .together-mascot{width:76px;height:76px}
  .health-tool-question-mascot{float:none;display:block;width:100px;height:100px;margin:0 auto 12px}
  #challenge-list .challenge-card span{gap:14px;padding:16px}
  .challenge-mascot{flex-basis:96px;width:96px;height:96px}
  .report-period-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .report-period-tab{padding-inline:6px;font-size:15px}
  .report-hero-card{align-items:flex-start;flex-direction:column;min-height:auto;padding:24px}
  .report-mascot{width:100px;height:100px}
  .report-hero-card strong{font-size:28px}
  .report-hero-meta{align-items:flex-start;flex-direction:column;gap:2px}
  .weekly-dot-row{grid-template-columns:repeat(7,minmax(42px,1fr));gap:6px;overflow-x:auto}
  .weekly-dot-row span{grid-template-columns:1fr;justify-items:center;gap:5px;padding:8px 4px}
  .report-progress-list{grid-template-columns:1fr}
  .report-progress-item{min-height:auto}
  .report-stat-grid{grid-template-columns:1fr}
  .report-pdf-card{grid-template-columns:1fr;align-items:stretch}
  .report-pdf-control{justify-self:stretch}
  .report-pdf-options{width:min(280px,100%)}
  .report-pdf-periods{grid-template-columns:1fr}
  .report-pdf-card .secondary{width:100%}
  .together-page{max-width:none}
  .forest-today-card{grid-template-columns:1fr;gap:18px}
  .forest-action-row{grid-template-columns:1fr}
  .forest-today-summary{display:block;width:100%}
  .forest-today-summary .forest-link-button{width:100%}
  .health-tool-status-row{grid-template-columns:1fr}
  .health-tool-inline-action{width:100%}
  .invite-inline-fields{grid-template-columns:1fr}
  .lifestyle-map-detail{padding:18px}
  .lifestyle-map-actions .primary{width:100%}
  .lifestyle-map-detail .lifestyle-map{grid-template-columns:1fr}
  .map-topic-guide{grid-template-columns:1fr}
  .together-member{grid-template-columns:42px minmax(0,1fr)}
  .member-status{grid-column:2;justify-self:start}
  .member-menu-wrap{grid-column:1/3;justify-content:flex-end}
  .member-menu{right:0}
  .forest-object{width:38px;height:38px;font-size:23px}
  .current-risk-signal-card{padding:20px 16px}
  .current-risk-signal-heading{align-items:flex-start;flex-direction:column;gap:10px}
  .current-risk-signal-body{grid-template-columns:1fr;gap:14px}
  .risk-traffic-light{padding:16px 12px;gap:10px}
  .traffic-signal i{width:78px;height:78px}
  .medical-facility-list{padding:16px}
  .medical-facility-search-heading{align-items:stretch;flex-direction:column}
  .medical-facility-search-heading .primary{width:100%}
  .medical-facility-card-heading{align-items:flex-start;flex-direction:column}
  .facility-actions{display:grid;grid-template-columns:1fr;width:100%}
  .facility-actions .secondary,.facility-action-unavailable{width:100%}
}

/* 기본 이용 흐름: 상단 서비스 안내 배너 */
@media(min-width:801px){
  .app-shell{width:100%;max-width:none;grid-template-columns:minmax(0,1fr);align-items:start;gap:28px;padding-inline:clamp(32px,4vw,88px)}
  .step-panel{position:static;padding:24px 28px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 16px 36px rgba(31,74,62,.08)}
  .step-panel ol,body.intro-mode .step-panel ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .step-panel li{justify-content:center;min-height:74px;padding:12px 14px;font-size:20px}
  .step-panel li span{min-width:32px;height:32px;border-radius:10px}
  body.dashboard-mode .app-shell{grid-template-columns:minmax(0,1fr)}
}

@media(max-width:800px){
  .app-shell{width:100%;max-width:none;margin:0 auto}
  .step-panel ol,body.intro-mode .step-panel ol{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px}
  .step-panel li{flex:0 0 auto;min-width:160px}
}

/* 이용 가능 연령·의료 안전 분기 안내 팝업 */
#eligibility-guidance[hidden]{display:none}
#eligibility-guidance{
  position:fixed;
  z-index:46;
  top:50%;
  left:50%;
  width:min(820px,calc(100vw - 40px));
  max-height:calc(100vh - 48px);
  margin:0;
  overflow-y:auto;
  transform:translate(-50%,-50%);
  background:#fff;
  border:2px solid #efb4ad;
  border-top:8px solid #c34d43;
  border-left:2px solid #efb4ad;
  border-radius:24px;
  padding:34px 38px;
  box-shadow:0 0 0 100vmax rgba(8,20,18,.58),0 24px 70px rgba(6,32,27,.28);
}

@media(max-width:720px){
  #eligibility-guidance{
    top:auto;
    bottom:0;
    left:0;
    width:100%;
    max-height:calc(100vh - 12px);
    padding:28px 18px 22px;
    transform:none;
    border-radius:24px 24px 0 0;
  }
}

/* 상단 당근의 숲 바로가기와 숫자 없는 기본 이용 흐름 */
.forest-shortcut{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:50px;
  margin-right:auto;
  padding:5px 14px 5px 6px;
  border:1px solid #e7dcc5;
  border-radius:15px;
  background:#fffaf0;
  color:var(--ink);
  font-size:17px;
  font-weight:900;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}
.forest-shortcut:hover{border-color:#d2b67b;background:#fff5df}
.topbar{gap:18px;padding-inline:clamp(16px,3vw,52px)}
.topbar .brand{flex:0 0 auto;font-size:26px;white-space:nowrap}
.topbar nav[hidden]{display:none!important}
.topbar .service-flow-panel{flex:1 1 auto;display:flex;align-items:center;justify-content:flex-start;min-width:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body.dashboard-mode .topbar .service-flow-panel{display:flex}
.topbar .service-flow-panel .eyebrow,.topbar .service-flow-panel .progress-track{display:none}
.topbar .service-flow-panel ol,body.intro-mode .topbar .service-flow-panel ol{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:8px;width:max-content;max-width:100%;overflow:visible}
.topbar .service-flow-panel li{display:flex;flex:0 0 auto;align-items:center;justify-content:center;width:auto;min-width:0;min-height:48px;padding:7px 8px;border-radius:12px;color:var(--muted);font-size:15px;font-weight:900;white-space:nowrap}
.topbar .service-flow-panel li.active{background:transparent;color:var(--green-dark)}
.topbar .service-flow-panel li.complete{color:var(--green-dark)}
.topbar .service-flow-panel li[aria-disabled="true"]{opacity:.45}
.topbar .service-flow-panel li:not([aria-disabled="true"]){cursor:pointer}
.topbar .service-flow-panel li.topbar-extra{padding:0}
.topbar .service-flow-panel li.topbar-extra:not([aria-disabled="true"]){cursor:default}
.topbar .service-flow-panel li[data-auth-entry]{padding:0;background:transparent}
.topbar .service-flow-panel li[data-auth-entry] button{width:auto;min-width:0;min-height:48px;padding:7px 8px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:15px;font-weight:900;cursor:pointer}
.topbar .service-flow-panel li[data-auth-entry] button:hover,.topbar .service-flow-panel li[data-auth-entry] button[aria-current="page"],.topbar .service-flow-panel li[data-auth-entry].active button{background:var(--mint);color:var(--green-dark)}
.workspace-top-nav{flex:1 1 auto;display:flex;align-items:center;justify-content:flex-start;min-width:0}
.workspace-top-nav ol{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%;margin:0;padding:0;overflow:visible;list-style:none}
.workspace-top-nav li{flex:0 0 auto}
.workspace-top-nav button{min-width:48px;min-height:48px;padding:7px 10px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:15px;font-weight:900;white-space:nowrap;cursor:pointer}
.workspace-top-nav button:hover,.workspace-top-nav button.active{background:transparent;color:var(--green-dark)}
.workspace-top-nav button:focus-visible{outline:4px solid #bce6dc;outline-offset:3px}
body.dashboard-mode .topbar{
  min-height:64px;
  gap:14px;
  padding-inline:clamp(16px,2.6vw,44px);
}
body.dashboard-mode .topbar .brand{
  font-size:22px;
}
body.dashboard-mode .brand-mark{
  width:28px;
  height:28px;
  border-radius:8px;
}

/* 공통 심볼 로고: 서비스명 글자 대신 투명 배경 엠블럼만 사용한다. */
.brand:has(.brand-emblem){
  display:inline-flex;
  align-items:center;
  gap:0;
  line-height:0;
}

.brand-emblem{
  display:block;
  width:50px;
  height:50px;
  object-fit:contain;
}

/* Production wordmark: preserve source proportions and remain readable on every viewport. */
.topbar .brand:has(.brand-logo){display:flex;align-items:center;flex:0 0 auto;min-height:48px;line-height:0}
.topbar .brand-logo{display:block;width:clamp(150px,14vw,220px);height:auto;max-height:62px;object-fit:contain}
@media(max-width:760px){.topbar .brand-logo{width:clamp(126px,38vw,168px);max-height:52px}}
body.dashboard-mode .workspace-top-nav ol{
  gap:6px;
}
body.dashboard-mode .workspace-top-nav button{
  min-height:38px;
  min-width:42px;
  padding:6px 9px;
  border-radius:10px;
  font-size:14px;
}
body.dashboard-mode .header-my-page>summary,
body.dashboard-mode .topbar .text-button{
  min-height:38px;
  padding:6px 10px;
  border-radius:10px;
  font-size:14px;
}
body.dashboard-mode .profile-menu summary{
  width:48px;
  height:48px;
  font-size:24px;
}
body.dashboard-mode .profile-menu-panel{
  top:58px;
}
.forest-shortcut:focus-visible{outline:4px solid #bce6dc;outline-offset:3px}
.forest-shortcut{flex:0 0 auto;min-height:48px;padding:7px 8px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:15px;font-weight:900;white-space:nowrap}
.forest-shortcut:hover{background:transparent;color:var(--green-dark)}
.forest-shortcut img{display:none}
.topbar .text-button{flex:0 0 auto;min-height:48px;padding:9px 12px;border-radius:14px;font-size:15px;white-space:nowrap}
.my-page-button{min-height:48px}
.topbar .my-page-button{border:0;background:transparent;color:var(--muted);padding:7px 8px;border-radius:12px;font-size:15px}
.topbar .my-page-button:hover{background:transparent;color:var(--green-dark)}
.font-toggle-button{margin-left:auto}
.topbar .font-toggle-button{border:2px solid #9cadab;background:#fff;color:var(--ink);padding:9px 12px}
.step-panel li{justify-content:center;padding-left:14px;text-align:center}
.step-panel li[data-auth-entry]{padding:0;background:transparent}
.step-panel li[data-auth-entry].active{background:transparent}
.step-panel li[data-auth-entry] button{width:100%;min-height:74px;padding:12px 14px;border:2px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);font-size:20px;font-weight:900;cursor:pointer}
.step-panel li[data-auth-entry] button:hover,.step-panel li[data-auth-entry] button[aria-current="page"]{border-color:var(--green);background:var(--mint);color:var(--green-dark)}
.step-panel li[data-auth-entry] button:focus-visible{outline:3px solid #bce6dc;outline-offset:2px}
.workspace-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.workspace-panel-header .section-heading{margin-bottom:0}
@media(max-width:720px){.workspace-panel-header{flex-direction:column}}
@media(max-width:760px){.topbar{align-items:flex-start;flex-wrap:wrap;padding-top:14px;padding-bottom:14px}.topbar .service-flow-panel,.topbar .workspace-top-nav{order:5;flex:1 1 100%;min-width:0}.topbar .service-flow-panel ol,.workspace-top-nav ol{justify-content:flex-start;overflow-x:auto;padding-bottom:4px}}
.profile-bell-icon{display:block;width:28px;height:28px}
.analysis-retry-actions{justify-content:center}
[data-challenge-v2]>.v2-collapsible{border:1px solid var(--line);border-radius:18px;background:#fff;margin:0 0 28px;padding:0;overflow:hidden}
[data-challenge-v2]>.v2-collapsible>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:74px;padding:20px 24px;cursor:pointer;list-style:none;background:linear-gradient(135deg,var(--mint),#fff)}
[data-challenge-v2]>.v2-collapsible>summary::-webkit-details-marker{display:none}
[data-challenge-v2]>.v2-collapsible>summary span:first-child{display:grid;gap:3px}
[data-challenge-v2]>.v2-collapsible>summary strong{font-size:22px;color:var(--ink)}
[data-challenge-v2]>.v2-collapsible>summary small{font-size:15px;color:var(--muted);font-weight:700}
.v2-collapsible-indicator{font-size:28px;font-weight:900;color:var(--green-dark);transition:transform .2s ease}
[data-challenge-v2]>.v2-collapsible[open]>summary .v2-collapsible-indicator{transform:rotate(180deg)}
[data-challenge-v2]>.v2-collapsible>header,[data-challenge-v2]>.v2-collapsible>p,[data-challenge-v2]>.v2-collapsible>form,[data-challenge-v2]>.v2-collapsible>.v2-cards,[data-challenge-v2]>.v2-collapsible>a,[data-challenge-v2]>.v2-collapsible>button,[data-challenge-v2]>.v2-collapsible>small{margin-left:20px;margin-right:20px}
[data-challenge-v2] .v2-home-link,[data-challenge-v2] .v2-dashboard-link{display:inline-flex;align-items:center;justify-content:center;min-height:58px;padding:15px 28px;text-decoration:none;margin-top:18px;margin-bottom:20px;border-radius:16px;font-size:19px;font-weight:900}
[data-challenge-v2] .v2-home-link{border:2px solid var(--line);background:#fff;color:var(--ink)}
[data-challenge-v2] .v2-dashboard-link{border:2px solid var(--green);background:var(--green);color:#fff}

.profile-editor{position:fixed;z-index:60;inset:0;display:grid;place-items:center;padding:24px;background:rgba(8,20,18,.58)}
.profile-editor-card{position:relative;width:min(720px,100%);max-height:calc(100vh - 48px);overflow-y:auto;border:1px solid var(--line);border-top:7px solid var(--green);border-radius:24px;background:#fff;padding:34px 38px;box-shadow:0 24px 70px rgba(6,32,27,.28)}
.profile-editor-card h2{font-size:36px;margin:4px 0 8px}
.profile-editor-card .lead{margin:0 0 18px;font-size:18px}
.profile-editor-close{position:absolute;top:16px;right:18px;width:48px;min-height:48px;border:0;border-radius:50%;background:#f1f5f3;color:var(--ink);font-size:28px;cursor:pointer}
.profile-editor-message{margin:8px 0 0;padding:13px 15px;border-radius:12px;background:#ffeded;color:var(--danger);font-weight:900}
/* Authentication is a reading task; keep it narrow without narrowing workspace pages. */
.screen[data-step="2"]{max-width:800px;margin-inline:auto}
.screen.signup-house-screen{max-width:none;margin-inline:0}
.signup-house-stage{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-height:calc(100vh - 132px);
  overflow:hidden;
  border:1px solid rgba(64,95,48,.36);
  border-radius:28px;
  padding:clamp(30px,4vw,54px) clamp(18px,4.8vw,64px);
  background:
    linear-gradient(145deg,#d7e3df 0%,#d5e7af 100%);
  box-shadow:0 20px 50px rgba(45,57,30,.18);
}
.signup-house-stage::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(246,255,227,.18) 0%,rgba(246,255,227,.06) 48%,rgba(246,255,227,.02) 100%),
    url('/static/assets/signup-forest-background-20260909-v2.png') center center/cover no-repeat,
    linear-gradient(145deg,#d7e3df 0%,#d5e7af 100%);
  transform:translateZ(0);
  will-change:auto;
}
.signup-house-stage::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(12,45,32,.14),rgba(12,45,32,.02) 54%,rgba(12,45,32,.1)),
    linear-gradient(180deg,rgba(255,248,218,.04),rgba(35,75,42,.14));
}
.signup-house-board{
  position:relative;
  z-index:1;
  width:100%;
  max-width:min(760px,58vw);
  margin-inline:auto;
  padding:18px 20px 20px;
  border:8px solid #4f3019;
  border-radius:14px;
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.04) 0 2px,transparent 2px 38px),
    linear-gradient(135deg,#96613a,#734523 55%,#8a5730);
  box-shadow:inset 0 0 0 3px #bc8551,0 28px 42px rgba(39,27,16,.34);
}
body.account-mode .signup-house-board{
  max-width:min(680px,92vw);
  margin-inline:auto;
}
/* Enlarge the registration board, without stretching the login screen or artwork. */
@media(min-width:1000px){
  .signup-house-stage:has(#signup-form:not([hidden])){padding-top:24px;padding-bottom:48px}
  .signup-house-stage .signup-house-board:has(#signup-form:not([hidden])){
    width:100%;
    max-width:clamp(760px,46vw,1360px);
    min-height:calc(100svh - 200px);
    padding:clamp(24px,2vw,48px);
    display:flex;
    flex-direction:column;
  }
  .signup-house-board:has(#signup-form:not([hidden])) .signup-house-heading{
    width:90%;
    padding:20px 24px;
    margin-bottom:24px;
  }
  .signup-house-stage .signup-house-board #signup-form:not([hidden]){
    display:flex;
    flex:1;
    flex-direction:column;
    justify-content:space-between;
    gap:12px;
  }
  .signup-house-stage .signup-house-board #signup-form>.form-row{
    grid-template-columns:minmax(150px,24%) minmax(0,1fr);
    padding:14px 20px;
    min-height:86px;
  }
  .signup-house-stage .signup-house-board #signup-form>.form-row label,
  .signup-house-stage .signup-house-board #signup-form>.form-row input,
  .signup-house-stage .signup-house-board #signup-form>.form-row select{
    font-size:clamp(18px,1vw,28px);
  }
  .signup-house-stage .signup-house-board #signup-form>.form-row input,
  .signup-house-stage .signup-house-board #signup-form>.form-row select{min-height:58px}
  .signup-house-stage .signup-house-board #signup-form .consent-card{padding:16px 20px;min-height:84px}
  .signup-house-stage .signup-house-board #signup-form .consent-card strong{font-size:clamp(18px,.95vw,26px)}
  .signup-house-stage .signup-house-board #signup-form .consent-card small{font-size:clamp(14px,.75vw,20px)}
  .signup-house-stage .signup-house-board #signup-form .signup-door-button{min-width:65%;min-height:80px}
}
.signup-house-visual{
  display:none;
}
.signup-house-board::before,.signup-house-board::after{
  content:"";
  position:absolute;
  top:20px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#ffe19b,#9b601e 68%,#573412);
  box-shadow:0 1px 2px rgba(0,0,0,.35);
}
.signup-house-board::before{left:18px}.signup-house-board::after{right:18px}
.signup-house-heading{
  position:relative;
  justify-content:center;
  align-items:center;
  margin:-8px auto 14px;
  width:min(500px,88%);
  padding:12px 20px 14px;
  border:4px solid #5c351b;
  border-radius:10px;
  background:
    linear-gradient(90deg,rgba(255,255,255,.12),transparent 24%,rgba(255,255,255,.08) 70%,transparent),
    linear-gradient(180deg,#c8894f,#ad6f3c);
  box-shadow:inset 0 0 0 2px #e1b275,0 7px 0 #4d2f18,0 14px 22px rgba(46,26,11,.22);
  text-align:center;
}
.signup-house-heading::before,.signup-house-heading::after{
  content:"";
  position:absolute;
  top:-34px;
  width:14px;
  height:38px;
  border-radius:9px;
  background:linear-gradient(#5c351b,#2f1c0f);
  box-shadow:inset 0 0 0 3px rgba(255,211,129,.18);
}
.signup-house-heading::before{left:42px}.signup-house-heading::after{right:42px}
.signup-house-heading img{display:none}
.signup-house-heading .eyebrow{
  margin:0;
  color:#2d251b;
  font-size:clamp(17px,1.8vw,22px);
  font-weight:1000;
  text-shadow:0 1px 0 rgba(255,231,177,.55);
}
.signup-house-heading h2{
  position:static;
  width:auto;
  transform:none;
  margin:8px 0 0;
  color:#12392f;
  font-size:clamp(30px,2.8vw,48px);
  line-height:1.08;
  white-space:nowrap;
  word-break:keep-all;
  text-shadow:0 2px 0 rgba(255,248,220,.68);
  scroll-margin-top:160px;
}
.signup-house-board #signup-form,.signup-house-board #account-recovery-form{
  grid-template-columns:1fr;
  gap:6px;
}
.signup-house-board #signup-form>.form-row,.signup-house-board #account-recovery-form>.form-row{
  display:grid;
  grid-template-columns:155px minmax(0,1fr);
  align-items:center;
  column-gap:14px;
  margin:5px 0;
  padding:9px 14px 9px 18px;
  border:2px solid #c9a574;
  border-radius:10px;
  background:linear-gradient(180deg,#fff7df,#f7e6c4);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 2px 0 rgba(83,47,20,.18);
}
.signup-house-board #signup-form>.form-row.full,.signup-house-board #account-recovery-form>.form-row.full{grid-column:1/-1}
.signup-house-board #signup-form>.form-row label,.signup-house-board #account-recovery-form>.form-row label{color:#173a31;font-size:18px}
.signup-house-board #signup-form>.form-row label::before,.signup-house-board #account-recovery-form>.form-row label::before{content:"🥕";margin-right:8px;font-size:18px}
.signup-house-board #signup-form>.form-row input,.signup-house-board #signup-form>.form-row select,.signup-house-board #account-recovery-form>.form-row input,.signup-house-board #account-recovery-form>.form-row select{
  min-height:44px;
  border-color:#bea47e;
  border-radius:8px;
  background:#fffdf5;
  font-size:16px;
}
.signup-house-board #signup-form .form-row>small:not(.sr-only),.signup-house-board #account-recovery-form .form-row>small:not(.sr-only){grid-column:2;font-size:13px;line-height:1.35;color:#695f53}
.signup-house-board .consent-list{gap:8px;margin:8px 0}
.signup-house-board .consent-card{min-height:58px;margin:0;padding:9px 14px;border-color:#c9a574;border-radius:10px;background:linear-gradient(180deg,#fff7df,#f7e6c4)}
.signup-house-board #account-recovery-form .consent-card span{grid-template-columns:minmax(0,1fr) auto;gap:4px 16px}
.signup-house-board #account-recovery-form .consent-card small{grid-column:1}
.signup-house-board #account-recovery-form .consent-card em{grid-column:2;grid-row:1/3}
.signup-house-board .consent-card:has(input:checked){border-color:#176b5b;background:#edf6e5}
.signup-house-board .consent-card strong{font-size:17px}
.signup-house-board .consent-card small{font-size:13px}
.signup-house-board .consent-card em{min-width:54px;min-height:30px;font-size:13px}
.signup-house-board .actions{justify-content:center;align-items:center;margin-top:10px}
.signup-house-board .actions .secondary{border-color:#dbc7a7;background:#fff8e8}
.signup-house-board .signup-door-button{min-width:min(100%,460px);min-height:70px;border:4px solid #123e32;border-radius:13px;background:#0b4d42;font-size:28px;box-shadow:inset 0 0 0 2px #2f7967,0 7px 0 #12372e}
.signup-house-board .signup-door-button:hover{background:#176b5b;transform:translateY(1px);box-shadow:inset 0 0 0 2px #3d8a77,0 4px 0 #12372e}
.signup-login-shortcut{justify-self:center;margin:8px 0 0;color:#fff7df;text-decoration:underline;text-underline-offset:4px}
.signup-house-board #login-form{padding:24px;border:2px solid #c9a574;background:#fff8e8}
#signup-form,#login-form .two-column{grid-template-columns:minmax(0,1fr)}
.password-control{display:flex;align-items:stretch;gap:8px;min-width:0}
.password-control input{flex:1;min-width:0;width:0}
.password-control .password-toggle{flex:0 0 auto;padding:10px 14px;font-size:16px;min-height:48px}
.password-control-icon{position:relative}
.password-control-icon input{padding-right:64px}
.password-control .password-toggle-icon{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:10px;border:0;background:transparent;color:#73767a;box-shadow:none}
.password-toggle-icon svg{width:28px;height:28px}
.password-toggle-icon .eye-closed,.password-toggle-icon[aria-pressed="true"] .eye-open{display:none}
.password-toggle-icon[aria-pressed="true"] .eye-closed{display:block}
#signup-form .form-row>small,#login-form .form-row>small{font-size:16px;line-height:1.6}
.auth-error-summary,.field-error{color:#982d25}
.auth-error-summary{border:2px solid #982d25;background:#fff2ef;border-radius:12px;padding:16px}
[aria-invalid="true"]{border-color:#982d25}

/* Desktop density pass: keep signup usable at the browser's real 100% zoom. */
@media(min-width:801px){
  body:not(.intro-mode){
    font-size:18px;
  }

  body:not(.intro-mode) .topbar{
    min-height:74px;
  }

  body:not(.intro-mode) .app-shell{
    padding-top:18px;
    padding-bottom:30px;
  }

  body:not(.intro-mode) .content{
    min-height:calc(100vh - 122px);
  }

  .screen[data-step="2"]{
    width:100%;
    max-width:none;
  }

  .signup-house-stage{
    min-height:calc(100vh - 122px);
    padding:16px clamp(16px,3vw,44px);
  }

  .signup-house-stage .signup-house-board:has(#signup-form:not([hidden])){
    width:min(1120px,100%);
    max-width:1120px;
    min-height:0;
    padding:14px 16px 16px;
    display:block;
  }

  .signup-house-board:has(#signup-form:not([hidden])) .signup-house-heading,
  .signup-house-heading{
    width:min(430px,82%);
    padding:9px 16px 10px;
    margin:-5px auto 10px;
  }

  .signup-house-heading::before,
  .signup-house-heading::after{
    top:-26px;
    height:30px;
  }

  .signup-house-heading .eyebrow{
    font-size:15px;
  }

  .signup-house-heading h2{
    margin-top:5px;
    font-size:30px;
  }

  .signup-house-stage .signup-house-board #signup-form:not([hidden]),
  .signup-house-board #signup-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px 10px;
  }

  .signup-house-stage .signup-house-board #signup-form>.form-row,
  .signup-house-board #signup-form>.form-row{
    grid-template-columns:112px minmax(0,1fr);
    column-gap:10px;
    min-height:0;
    margin:0;
    padding:7px 10px 7px 12px;
  }

  .signup-house-stage .signup-house-board #signup-form>.signup-nickname-row{
    grid-column:1/-1;
  }

  .signup-house-stage .signup-house-board #signup-form>.form-row label,
  .signup-house-board #signup-form>.form-row label{
    font-size:15px;
  }

  .signup-house-board #signup-form>.form-row label::before{
    margin-right:5px;
    font-size:14px;
  }

  .signup-house-stage .signup-house-board #signup-form>.form-row input,
  .signup-house-stage .signup-house-board #signup-form>.form-row select,
  .signup-house-board #signup-form>.form-row input,
  .signup-house-board #signup-form>.form-row select{
    min-height:38px;
    padding:7px 10px;
    font-size:15px;
  }

  .signup-house-board #signup-form .password-control-icon input{
    padding-right:48px;
  }

  .signup-house-board #signup-form .password-control .password-toggle-icon{
    right:3px;
    width:36px;
    height:36px;
    min-height:36px;
    padding:8px;
  }

  .signup-house-board #signup-form .password-toggle-icon svg{
    width:22px;
    height:22px;
  }

  .signup-house-board #signup-form .consent-list{
    gap:6px;
    margin:2px 0;
  }

  .signup-house-stage .signup-house-board #signup-form .consent-card,
  .signup-house-board #signup-form .consent-card{
    min-height:0;
    padding:7px 10px;
  }

  .signup-house-board #signup-form .consent-card input{
    width:18px;
    height:18px;
  }

  .signup-house-board #signup-form .consent-card span{
    gap:2px 10px;
  }

  .signup-house-stage .signup-house-board #signup-form .consent-card strong,
  .signup-house-board #signup-form .consent-card strong{
    font-size:15px;
    line-height:1.28;
  }

  .signup-house-stage .signup-house-board #signup-form .consent-card small,
  .signup-house-board #signup-form .consent-card small{
    font-size:12px;
    line-height:1.35;
  }

  .signup-house-board #signup-form .consent-card em{
    min-width:46px;
    min-height:24px;
    font-size:12px;
  }

  .signup-house-board .signup-login-shortcut{
    min-height:34px;
    margin:0;
    padding:4px 8px;
    font-size:14px;
  }

  .signup-house-board #signup-form .actions{
    justify-content:space-between;
    margin-top:2px;
  }

  .signup-house-stage .signup-house-board #signup-form .signup-door-button,
  .signup-house-board .signup-door-button{
    min-width:280px;
    min-height:50px;
    border-width:3px;
    font-size:20px;
  }

  .signup-house-board .actions .secondary{
    min-height:48px;
    padding:9px 18px;
  }
}
.challenge-selection-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:24px 0 16px;padding:16px 20px;background:var(--mint);border-radius:16px;color:var(--green-dark)}
.challenge-selection-summary p{margin:0}
.challenge-selection-summary strong{white-space:nowrap}
.workspace-top-nav button.active{background:var(--mint);text-decoration:underline;text-underline-offset:6px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #176d5c;outline-offset:4px;box-shadow:0 0 0 2px #fff}

/* 2026-09-10: keep the signup board compact enough to show the carrot house. */
@media(min-width:1000px){
  .signup-house-stage .signup-house-board:has(#signup-form:not([hidden])){
    width:min(900px,56vw);
    max-width:900px;
  }
}
@media(max-width:480px){
  .activity-detail-grid{grid-template-columns:minmax(0,1fr)}
  #signup-form .actions,#login-form .actions{display:flex;flex-direction:column-reverse;align-items:stretch}
  #signup-form .actions button,#login-form .actions button,#retry-challenges{width:100%}
  .password-control{flex-wrap:wrap}
  .password-control input{flex-basis:100%;width:100%}
  .password-control .password-toggle{margin-left:auto}
}
@media(max-width:900px){
  .signup-house-stage{min-height:0;padding:28px 14px 18px}
  .signup-house-stage::before{background-position:68% center}
  .signup-house-visual{display:none}
  .signup-house-board{width:100%;max-width:680px;margin:auto;padding:14px;border-width:6px;border-radius:18px}
  .signup-house-heading{margin-top:-2px;padding:12px 16px}
  .signup-house-board #signup-form,.signup-house-board #account-recovery-form{grid-template-columns:1fr}
  .signup-house-board #signup-form>.form-row,.signup-house-board #account-recovery-form>.form-row{grid-column:1}
  .signup-house-board .actions{flex-direction:column-reverse;align-items:stretch}
  .signup-house-board .actions button,.signup-house-board .signup-door-button{width:100%;min-width:0}
}
@media(max-width:520px){
  .signup-house-stage{margin-inline:-12px;border-radius:0}
  .signup-house-heading{width:92%}
  .signup-house-heading h2{font-size:clamp(22px,7vw,29px)}
  .signup-house-nameplate{width:92%;padding:12px 14px}
  .signup-house-nameplate strong{font-size:clamp(20px,6vw,25px)}
  .signup-house-board #signup-form>.form-row,.signup-house-board #account-recovery-form>.form-row{grid-template-columns:1fr;gap:8px}
  .signup-house-board #signup-form .form-row>small,.signup-house-board #account-recovery-form .form-row>small{grid-column:1}
  .signup-house-board .consent-card span{grid-template-columns:1fr auto;gap:4px 8px}
  .signup-house-board .consent-card strong{font-size:16px}
  .signup-house-board .consent-card small{grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
body.dialog-open{overflow:hidden}

@media(max-width:640px){
  .forest-shortcut{gap:5px;min-height:44px;padding:4px 8px 4px 4px;font-size:15px}
  .forest-shortcut img{width:32px;height:32px;border-radius:9px}
  .my-page-button,#font-toggle{min-height:44px;padding:9px 10px;font-size:15px}
  .profile-editor{align-items:end;padding:0}
  .profile-editor-card{width:100%;max-height:calc(100vh - 12px);padding:28px 18px 22px;border-radius:24px 24px 0 0}
  .profile-editor-card .two-column{grid-template-columns:1fr}
}

@media(max-width:420px){
  .topbar{gap:8px;padding-inline:12px}
  .brand{font-size:20px}
  .forest-shortcut{font-size:14px}
  .forest-shortcut img{width:29px;height:29px}
  .forest-shortcut span{display:none}
  .my-page-button,#font-toggle{padding-inline:8px;font-size:14px}
}

/* Guide 3-1: guest authentication actions belong on the right, not by the logo. */
.topbar #guest-flow-panel{justify-content:flex-end;margin-left:auto}
.topbar #guest-flow-panel ol{justify-content:flex-end}
#guest-flow-panel #sidebar-login,#guest-flow-panel #sidebar-signup{min-height:48px;font-size:16px;padding:10px 16px}
#guest-flow-panel #sidebar-signup{background:var(--green);color:#fff;border:2px solid var(--green)}
#guest-flow-panel #sidebar-signup:hover{background:var(--green-dark);border-color:var(--green-dark)}
#guest-flow-panel #sidebar-signup[aria-current="page"]{text-decoration:underline;text-underline-offset:4px}

/* Home shortcuts and account controls share one clear, responsive row. */
.service-story{position:relative;z-index:1;background:#fff;color:#172b29}
.story-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 32px;padding:24px;border-bottom:1px solid #e2ebe7;background:#fff}
.story-nav a{display:inline-flex;align-items:center;min-height:44px;color:#365b52;text-decoration:none;font-size:17px;font-weight:800}
.story-nav a:hover{text-decoration:underline;text-underline-offset:6px}
.service-story h2{margin:16px 0 28px;color:#172b29;font-size:clamp(32px,3.6vw,58px);line-height:1.3;letter-spacing:-.045em;word-break:keep-all}
.service-story p{font-size:clamp(18px,1.5vw,23px);line-height:1.75;word-break:keep-all}
.service-story .story-kicker{margin:0;color:#176d5c;font-size:18px;font-weight:850}
.service-story .story-note{font-size:16px;line-height:1.8;color:#52665f;margin-top:26px}
.story-opening,.story-closing{text-align:center;padding:clamp(80px,10vw,160px) 24px}
.story-opening p{color:#52665f}
.story-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(32px,6vw,100px);padding:clamp(64px,9vw,140px) max(28px,calc((100% - 1200px)/2));scroll-margin-top:120px}
.story-copy{min-width:0}
.story-soft{background:#f4f8f6}
.story-reverse .story-copy{order:2}
.story-visual{min-width:0;padding:36px;border-radius:32px;background:#eaf5f0}
.story-input-visual{display:flex;align-items:center;gap:24px;background:linear-gradient(140deg,#e4f4ef,#fbf7e9)}
.story-input-visual img{width:36%;height:auto}
.story-input-visual ol{padding:0;list-style:none;flex:1;display:grid;gap:16px}
.story-input-visual li{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:800}
.story-input-visual li span{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:#176d5c;color:#fff}
.story-example{display:block;color:#52665f;font-size:14px;margin-bottom:20px}
.story-result-visual{background:transparent;padding:0}
.story-result-visual article{padding:28px;margin-top:18px;background:#fff;border:1px solid #dbe8e2;border-radius:24px}
.story-result-visual article>span{font-size:16px;font-weight:800;color:#176d5c}
.service-story h3{font-size:24px;line-height:1.4;margin:12px 0;word-break:keep-all}
.story-result-visual article p{font-size:17px;margin:0}
.story-habits{display:flex;align-items:flex-end;gap:12px;padding:40px 20px;background:#f5f7ed}
.story-habits figure{flex:1;min-width:0;margin:0;text-align:center}
.story-habits img{display:block;width:100%;height:180px;object-fit:contain}
.story-habits figcaption{font-size:17px;font-weight:800;margin-top:20px;word-break:keep-all}
.story-report-visual{background:#fff;border:1px solid #dbe8e2}
.story-report-visual img{float:right;width:110px;height:130px;object-fit:contain}
.story-report-visual ul{padding-left:24px;line-height:2.2;font-size:18px}
.story-forest{padding:100px max(24px,calc((100% - 1280px)/2));background:#edf4e8;scroll-margin-top:100px}
.story-forest-heading{text-align:center;margin-bottom:48px}
.story-forest-image{display:block;width:100%;height:auto;border-radius:28px}
.story-forest-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:30px}
.service-story .primary{min-height:60px;padding:18px 30px;font-size:20px;border-radius:16px;white-space:normal}
.story-closing{background:#123e34;color:#fff}
.service-story .story-closing h2{color:#fff}
.service-story .story-closing .story-kicker,.service-story .story-closing .story-note{color:#c2dfd4}
.story-closing .primary{margin:10px 0 24px;background:#d9f7a7;color:#123e34}
@media(max-width:760px){.story-section{grid-template-columns:minmax(0,1fr);padding:64px 24px;gap:28px}.story-reverse .story-copy{order:0}.story-visual{padding:24px}.story-habits{padding:28px 12px;gap:8px}.story-habits img{height:120px}.story-habits figcaption{font-size:16px}.story-input-visual{gap:14px}.story-input-visual li{font-size:16px}.story-forest{padding:64px 20px}.story-forest-footer{flex-direction:column;align-items:stretch}.story-forest-image{border-radius:16px}.story-nav{gap:4px 20px}.service-story h2{font-size:34px}.story-result-visual{padding:0}}
html:has(body.intro-mode){scroll-snap-type:y mandatory;scroll-padding-top:var(--landing-header-height,86px)}
html.landing-transitioning:has(body.intro-mode){scroll-snap-type:none;scroll-behavior:auto!important}
body.intro-mode .intro-screen{overflow:clip}
body.intro-mode .landing-first,body.intro-mode .service-story>section{min-height:calc(100svh - var(--landing-header-height,86px));scroll-snap-align:start;scroll-snap-stop:always;scroll-margin-top:0}
body.intro-mode .landing-first{position:relative;display:flex;flex-direction:column;justify-content:center}
body.intro-mode .landing-first .intro-hero-grid{min-height:0;flex:1;padding-block:40px;max-width:none;width:100%}
body.intro-mode .landing-first .intro-process-grid{position:relative;inset:auto;margin:0}
body.intro-mode .story-nav{display:none}
body.intro-mode .story-opening,body.intro-mode .story-closing{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-block:60px}
body.intro-mode .story-section{padding-block:60px}
body.intro-mode .story-forest{display:flex;flex-direction:column;justify-content:center;padding-block:40px}
body.intro-mode .story-forest-heading{margin-bottom:24px}
body.intro-mode .story-forest-heading h2{font-size:clamp(30px,3vw,46px);margin:8px 0 14px}
body.intro-mode .story-forest-image{max-height:44svh;object-fit:contain}
.landing-pager{position:fixed;right:24px;bottom:18px;z-index:8;display:flex;align-items:center;gap:12px;padding:6px 10px;border:1px solid #bdd2ca;border-radius:40px;background:rgba(255,255,255,.96);color:#173f35;box-shadow:0 4px 20px #143d3420}
.landing-pager button{width:44px;min-height:44px;border:0;border-radius:50%;background:#e6f1ec;color:#173f35;font-size:24px;cursor:pointer}
.landing-pager button:disabled{opacity:.35;cursor:default}
.landing-pager #landing-position{width:auto;min-width:136px;padding:8px 16px;border-radius:24px;font-size:15px;font-weight:800;background:transparent;color:var(--landing-ink,#292e32)}
.landing-picker{position:absolute;bottom:calc(100% + 12px);right:0;width:300px;max-width:calc(100vw - 32px);max-height:60svh;overflow-y:auto;overscroll-behavior:contain;padding:10px;border:1px solid #bdd2ca;border-radius:20px;background:var(--landing-paper,#f5f4ef);box-shadow:0 12px 32px #143d3426;display:grid;gap:4px}
.landing-picker[hidden]{display:none}
.landing-pager .landing-picker button{width:100%;min-height:48px;border-radius:12px;background:transparent;text-align:left;padding:10px 16px;font-size:17px;color:var(--landing-ink,#292e32)}
.landing-pager .landing-picker button:hover,.landing-pager .landing-picker button[aria-current]{background:#e1e9e2;color:#236657}
@media(max-width:760px){body.intro-mode .story-section,body.intro-mode .story-forest{padding-bottom:90px}.landing-pager{right:12px;bottom:10px;gap:6px}body.intro-mode .landing-first .intro-hero-grid{padding-bottom:32px}}
@media(prefers-reduced-motion:reduce){html:has(body.intro-mode){scroll-snap-type:none}}
/* Minimal opening; feature illustrations remain on the following slides. */
body.intro-mode .landing-first{z-index:1;background:linear-gradient(180deg,#f5faf7 0%,#edf6f1 55%,#fff 100%)}
body.intro-mode .landing-first .intro-hero-grid{display:flex;align-items:center;justify-content:center;padding:64px 24px 96px}
body.intro-mode .landing-first .intro-copy{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:960px;color:#173f35}
body.intro-mode .landing-first .eyebrow{color:#376e5e;letter-spacing:.04em;font-size:17px}
body.intro-mode .landing-first #intro-title{max-width:none;margin:22px 0;color:#163e34;font-size:clamp(38px,5.5vw,78px);line-height:1.25;letter-spacing:-.055em;text-shadow:none;word-break:keep-all}
body.intro-mode .landing-first #intro-title em{color:#187460}
body.intro-mode .landing-first .intro-summary{color:#52665f;font-size:clamp(18px,1.6vw,24px);line-height:1.75}
body.intro-mode .landing-first .intro-actions{justify-content:center;margin-top:32px}
body.intro-mode .landing-first .intro-actions .primary{min-width:210px;padding:16px 32px;font-size:20px;background:#176d5c;color:#fff;box-shadow:none;border-radius:16px}
body.intro-mode .landing-first .intro-actions .primary:hover{background:#105443}
body.intro-mode .landing-first .intro-safety-note{margin-top:32px;max-width:560px;text-align:center;justify-content:center;color:#52665f;font-size:15px;line-height:1.7}
/* Adjacent sections share their edge color, so scrolling reads as one scene. */
body.intro-mode .story-soft{background:linear-gradient(180deg,#fff 0%,#f4f8f6 25%,#f4f8f6 75%,#fff 100%)}
body.intro-mode .story-forest{background:linear-gradient(180deg,#fff 0%,#edf4e8 30%,#edf4e8 100%)}
body.intro-mode .story-closing{background:linear-gradient(180deg,#edf4e8,#dfeee6);color:#173f35}
body.intro-mode .story-closing h2{color:#173f35}
body.intro-mode .story-closing .story-kicker,body.intro-mode .story-closing .story-note{color:#52665f}
body.intro-mode .story-closing .primary{background:#176d5c;color:#fff}
@supports(animation-timeline:view()){
  @media(prefers-reduced-motion:no-preference){
    .service-story .story-copy,.service-story .story-visual,.story-forest-heading,.story-forest-image{animation:story-arrive linear both;animation-timeline:view();animation-range:entry 0% entry 85%}
    @keyframes story-arrive{from{opacity:.8;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
  }
}
/* Landing palette: warm off-white surfaces, neutral reading text, one brand accent. */
body.intro-mode{--landing-paper:#f5f4ef;--landing-surface:#eeeee8;--landing-ink:#292e32;--landing-muted:#51595d;--landing-accent:#236657;background:var(--landing-paper)}
body.intro-mode .topbar,body.intro-mode .topbar .text-button,body.intro-mode .landing-pager{background:var(--landing-paper);color:var(--landing-ink)}
body.intro-mode .service-story{background:var(--landing-paper);color:var(--landing-ink)}
body.intro-mode .landing-first{background:linear-gradient(180deg,#eeeee8,var(--landing-paper))}
body.intro-mode .landing-first #intro-title,body.intro-mode .service-story h2,body.intro-mode .service-story h3{color:var(--landing-ink)}
body.intro-mode .landing-first #intro-title em,body.intro-mode .landing-first .eyebrow,body.intro-mode .service-story .story-kicker,body.intro-mode .story-result-visual article>span{color:var(--landing-accent)}
body.intro-mode .landing-first .intro-summary,body.intro-mode .landing-first .intro-safety-note,body.intro-mode .service-story p,body.intro-mode .service-story .story-note,body.intro-mode .service-story .story-example{color:var(--landing-muted)}
body.intro-mode .story-soft{background:linear-gradient(180deg,var(--landing-paper),var(--landing-surface) 35%,var(--landing-surface) 65%,var(--landing-paper))}
body.intro-mode .story-forest{background:linear-gradient(180deg,var(--landing-paper),#e6ece5 45%)}
body.intro-mode .story-closing{background:#e6ece5;color:var(--landing-ink)}
body.intro-mode .story-result-visual article,body.intro-mode .story-report-visual{background:var(--landing-paper)}
body.intro-mode .story-input-visual,body.intro-mode .story-habits{background:var(--landing-surface)}
body.intro-mode .landing-first .intro-actions .primary,body.intro-mode .service-story .primary,body.intro-mode .story-input-visual li span{background:var(--landing-accent);color:var(--landing-paper)}
body.intro-mode .landing-first .intro-actions .primary:hover,body.intro-mode .service-story .primary:hover{background:#194f43}
/* Image-led introductions: short centered copy, a large scene, then safety detail. */
body.intro-mode .story-section{display:flex;flex-direction:column;justify-content:center;gap:24px;padding:40px max(24px,calc((100% - 1200px)/2)) 80px}
body.intro-mode .story-section .story-copy{order:0;text-align:center;width:100%;max-width:900px}
body.intro-mode .story-section h2{font-size:clamp(30px,3vw,46px);margin:10px 0 16px;line-height:1.3}
body.intro-mode .story-section .story-copy>p:not(.story-kicker){margin:0;font-size:clamp(18px,1.5vw,22px);line-height:1.65}
body.intro-mode .story-section>.story-note{max-width:960px;margin:0;text-align:center;font-size:15px;line-height:1.7}
body.intro-mode .story-scene{width:100%;min-height:300px;height:clamp(300px,38svh,420px);padding:28px 48px;display:flex;align-items:center;justify-content:center;gap:clamp(24px,5vw,76px);border:0;border-radius:28px;overflow:hidden}
body.intro-mode .story-scene>img{display:block;float:none;width:38%;height:100%;max-width:340px;object-fit:contain;filter:drop-shadow(0 18px 14px #244a3520)}
body.intro-mode .story-result-visual{gap:20px}
body.intro-mode .story-habits{align-items:stretch}
body.intro-mode .service-story .story-scene{background:transparent;border-radius:0;box-shadow:none}
.story-signal-label{color:var(--landing-ink);font-size:clamp(16px,1.8vw,26px);font-weight:800;line-height:1.5;text-align:center;word-break:keep-all;max-width:230px}
body.intro-mode .story-result-visual>img{width:32%}
body.intro-mode .story-habits figure{max-width:260px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
body.intro-mode .story-habits img{width:100%;height:calc(100% - 48px);min-height:0;object-fit:contain;filter:drop-shadow(0 15px 12px #244a351a)}
body.intro-mode .story-habits figcaption{font-size:20px;margin-top:12px;color:var(--landing-ink)}
.story-paper-art{width:240px;padding:30px;border-radius:18px;background:#f5f4ef;transform:rotate(-7deg);box-shadow:0 20px 35px #244a3515}
.paper-art-heading{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#236657;color:#f5f4ef;font-size:32px;margin-bottom:28px}
.story-paper-art i{display:block;height:12px;background:#c4d3ca;margin-top:22px;border-radius:6px}
.story-paper-art i:last-child{width:65%}
.story-calendar-art{width:300px;padding:24px;background:#f5f4ef;border-radius:20px;transform:rotate(-5deg);box-shadow:0 20px 35px #244a3515}
.story-calendar-art>span{display:block;width:45%;height:14px;background:#b3cabc;border-radius:7px;margin-bottom:28px}
.story-calendar-art>div{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.story-calendar-art i{display:grid;place-items:center;aspect-ratio:1;background:#e2e9e3;border-radius:7px;font-size:18px;font-style:normal;color:#236657}
@media(max-width:760px){body.intro-mode .story-section{padding:40px 20px 90px;gap:22px}body.intro-mode .story-scene{height:280px;min-height:280px;padding:24px 16px;gap:18px;border-radius:20px}body.intro-mode .story-scene>img{width:45%;max-width:200px}.story-paper-art{width:42%;padding:18px}.story-paper-art i{margin-top:18px;height:8px}.paper-art-heading{width:42px;height:42px;font-size:26px;margin-bottom:18px}.story-calendar-art{width:48%;padding:16px}.story-calendar-art>div{grid-template-columns:repeat(4,1fr);gap:5px}.story-calendar-art i{font-size:13px}.story-calendar-art>span{margin-bottom:16px}body.intro-mode .story-result-visual{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) auto;gap:12px}body.intro-mode .story-result-visual>img{grid-row:1;grid-column:1 / -1;justify-self:center;width:100%;height:100%}.story-signal-label{font-size:16px;grid-row:2}body.intro-mode .story-habits{gap:10px}body.intro-mode .story-habits figcaption{font-size:16px;min-height:48px}}
body.intro-mode .service-story .story-description{margin:0;text-align:center;font-size:clamp(18px,1.5vw,22px);line-height:1.65}
body.intro-mode .story-forest>.story-description{margin-top:24px}
.story-record-preview,.story-practice-preview{flex:0 1 420px;min-width:0;margin:0;padding:32px;border-radius:24px;background:#f9f8f0;box-shadow:0 16px 35px #244a3512;color:var(--landing-ink)}
body.intro-mode .story-record-preview h3,.story-practice-preview figcaption{margin:0 0 22px;font-size:clamp(22px,2.2vw,32px);font-weight:850;line-height:1.4;word-break:keep-all}
body.intro-mode .story-record-preview p{font-size:24px;line-height:1.9;margin:0}
.story-record-categories{list-style:none;padding:0;margin:0;text-align:center;font-size:clamp(17px,2vw,24px);line-height:1.6;color:var(--landing-muted)}
.story-record-categories li{padding:12px 0;text-align:center}
.story-record-categories li+li{border-top:1px solid #dce0d6}
.story-practice-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.story-practice-days span{display:grid;place-items:center;aspect-ratio:1;border-radius:50%;background:#e9ede4;color:#53604e;font-size:20px;line-height:1}
.story-practice-days .is-complete{background:#bfd4ae;color:#345b43}
body.intro-mode .story-forest-footer{justify-content:center;text-align:center;margin-top:18px}
@media(max-width:760px){body.intro-mode .story-input-visual,body.intro-mode .story-report-visual{gap:12px;padding-inline:0}.story-record-preview,.story-practice-preview{flex-basis:62%;padding:16px;border-radius:18px}body.intro-mode .story-record-preview h3,.story-practice-preview figcaption{font-size:19px;margin-bottom:16px}body.intro-mode .story-record-preview p{font-size:16px;line-height:1.8}.story-practice-days{gap:4px}.story-practice-days span{font-size:12px}body.intro-mode .story-input-visual>img,body.intro-mode .story-report-visual>img{width:34%}}
body.intro-mode .story-record-preview h3{text-align:center}
body.intro-mode .story-input-visual{position:relative;isolation:isolate}
.story-input-visual .story-record-preview{position:relative;z-index:2;border:1px solid #a6c1b3}
.story-zoom-connector{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:visible}
.story-zoom-connector .zoom-guides{fill:none;stroke:#7f9e8e;stroke-width:1.5;stroke-dasharray:5 6}
.story-zoom-connector .zoom-source{fill:none;stroke:#236657;stroke-width:1.5;rx:8}
.header-utilities{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}
.header-utilities .font-toggle-button{margin-left:0}
.header-my-page{position:relative}
.header-my-page>summary{display:flex;align-items:center;justify-content:center;min-height:48px;padding:9px 12px;border:2px solid var(--green);border-radius:14px;background:#fff;color:var(--green-dark);font-size:15px;font-weight:900;list-style:none;cursor:pointer;white-space:nowrap}
.header-my-page>summary::-webkit-details-marker{display:none}
.header-my-page-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:40;width:220px;padding:10px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 14px 32px rgba(20,56,45,.16)}
.header-my-page-menu button{width:100%;white-space:normal!important;text-align:left}
.home-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 18px}
.home-feature-card{position:relative;isolation:isolate;min-width:0;min-height:132px;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:18px;border:2px solid #bfd4cd;border-radius:18px;text-align:left;color:#103f36;cursor:pointer;box-shadow:0 5px 12px rgba(20,56,45,.06)}
.home-feature-card strong{font-size:20px;line-height:1.25;word-break:keep-all}
.home-feature-card small{max-width:78%;font-size:14px;line-height:1.35;word-break:keep-all}
.home-feature-card img{position:absolute;right:8px;bottom:6px;width:68px;height:76px;object-fit:contain;z-index:-1;opacity:.78}
.health-management[hidden]{display:none!important}
.dashboard-management-grid:has(>.health-management[hidden]){display:none}
.health-management>.dashboard-management-heading{padding:20px 24px;gap:16px}
.health-management>.dashboard-management-heading h3{margin:0}
.health-management-header-actions{display:flex;align-items:center;gap:10px}.health-management-header-actions button{min-height:48px}.medical-facility-shortcut{border:1px solid #a93f37;border-radius:12px;background:#a93f37;color:#fff;padding:10px 18px;font-weight:900;cursor:pointer}.medical-facility-shortcut:hover{border-color:#8d3029;background:#8d3029}.dashboard-risk-summary{display:flex!important;align-items:center!important;justify-content:space-between;gap:12px}.dashboard-risk-summary>div{min-width:0}.dashboard-risk-summary img{width:58px;height:58px;object-fit:contain;flex:0 0 auto}.dashboard-risk-summary[data-risk="low"] strong{color:#277e62}.dashboard-risk-summary[data-risk="moderate"] strong{color:#b57613}.dashboard-risk-summary[data-risk="high"] strong{color:#b23b35}.dashboard-risk-summary[data-risk="pending"] strong{color:var(--muted)}
.health-history-filter{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:14px 0 0;padding:12px;border-radius:12px;background:#f7faf9}.health-history-filter>div{display:grid;gap:4px}.health-history-filter label{color:var(--muted);font-size:13px;font-weight:800}.health-history-filter input{min-height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px 10px}.health-history-filter button{min-height:44px}.health-history-edit,.health-history-delete{border:0;background:transparent;padding:3px 0;font:inherit;font-size:14px;font-weight:900;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.health-history-edit{color:var(--green-dark)}.health-history-delete{color:#b42318}.health-history-item summary span{gap:10px}.health-history-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:14px}.health-history-pagination button{display:grid;place-items:center;min-width:40px;min-height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--green-dark);font-weight:900;cursor:pointer}.health-history-pagination button[aria-current="page"]{border-color:var(--green);background:var(--green);color:#fff}
@media(max-width:700px){.health-management-header-actions{width:100%;align-items:stretch;flex-direction:column}.health-history-filter>div{width:100%}.health-history-filter button{flex:1}}
/* Both actions share the available space, including the 700–900px tablet range. */
.health-management > .dashboard-management-heading:not(.health-record-actions){display:grid;grid-template-columns:minmax(0,1fr)}
.health-management > .dashboard-management-heading h3{min-width:0;max-width:100%}
.health-management .health-management-header-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;min-width:0;max-width:100%;width:100%;align-items:stretch}
.health-management .health-management-header-actions button{min-width:0;max-width:100%;width:100%;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
.health-management #close-health-management{width:auto;white-space:nowrap}
.feature-report{background:linear-gradient(120deg,#e1f1ec,#f5faf6)}
.challenge-v3-controls{padding:24px;background:#f1f7f4;border:1px solid #c4dbd2;border-radius:20px;margin:20px 0;color:#153d32}
.challenge-v3-controls h3{font-size:26px;margin:8px 0 14px}.challenge-v3-controls>small{display:block;margin:10px 0;line-height:1.6}
.challenge-v3-controls select{min-height:48px;font-size:18px}.challenge-v3-controls .medical-notice{font-size:16px;line-height:1.7}
.challenge-v3-card{border:1px solid #bbd4cb;border-radius:20px;padding:22px;background:#fff;min-width:0;overflow-wrap:anywhere;text-align:center}
.challenge-v3-card>img{display:block;width:88px;height:88px;object-fit:contain;margin:0 auto}.challenge-v3-card h4{font-size:22px;line-height:1.35;margin:12px 0;min-height:60px}
.challenge-v3-card>.eyebrow{font-size:clamp(18px,1.7vw,24px);line-height:1.25;text-align:center}
.challenge-v3-card>strong{display:block;min-height:56px;font-size:18px;line-height:1.45;color:#12654d}.challenge-v3-card p{line-height:1.7;font-size:16px;text-align:center}
.challenge-v3-card .record-type-badge{display:inline-block;white-space:normal;font-size:15px;margin:8px auto}
.challenge-v3-safety{padding:12px;background:#fff7df;border-radius:10px;color:#624817}
.challenge-v3-card details{border-top:1px solid #dde7e2;padding-top:12px}.challenge-v3-card summary{cursor:pointer;min-height:44px;padding:8px 0}
.challenge-v3-card a{color:#07583f;text-decoration:underline}.challenge-v3-controls :focus-visible,.challenge-v3-card :focus-visible{outline:3px solid #14664c;outline-offset:3px}
#v3-photo-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;text-align:left;overflow-wrap:anywhere}#v3-photo-fields input{width:100%;min-width:0;max-width:100%;min-height:44px;font-size:18px}#v3-photo-fields[hidden]{display:none}
@media(max-width:760px){#challenge-list:has(.challenge-v3-card){grid-template-columns:1fr}.challenge-v3-controls{padding:18px}.challenge-v3-card{padding:18px}}
.feature-together{background:linear-gradient(120deg,#f9edd9,#fff9ee);border-color:#e4d4b8}
.feature-tools{background:linear-gradient(120deg,#e1edf7,#f3f8fc);border-color:#c0d3e4}
.feature-health{background:linear-gradient(120deg,#eee8f6,#faf7fd);border-color:#d5c7e2}
.home-feature-card:hover{border-color:var(--green);box-shadow:0 8px 22px rgba(20,56,45,.13)}
.home-feature-card:focus-visible,.header-my-page>summary:focus-visible{outline:3px solid var(--green);outline-offset:4px}
@media(max-width:1000px){.home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.header-utilities{gap:6px}.header-my-page>summary,.header-utilities #font-toggle{font-size:14px;padding:8px}.home-feature-grid{grid-template-columns:1fr;gap:12px}.home-feature-card{min-height:150px;padding:20px}.home-feature-card strong{font-size:24px}.home-feature-card img{width:96px;height:106px}}
.challenge-start-reason{max-width:min(980px,100%);margin:28px auto 0;text-align:center;color:#6b4d13;font-size:17px;font-weight:800;white-space:pre-line}
.challenge-start-reason[data-state="ready"]{color:var(--green-dark)}
.challenge-start-actions .primary:disabled{background:#aebbb7;border-color:#aebbb7;box-shadow:none;cursor:not-allowed}
@media(max-width:860px){
  .challenge-v3-control-row{
    grid-template-columns:1fr;
  }
}
.active-challenge-panel{margin:32px 0;padding:clamp(24px,4vw,44px);border:2px solid #a9cfc4;border-radius:28px;background:linear-gradient(135deg,#edf8f4,#fff);box-shadow:0 16px 34px rgba(23,107,91,.1)}
.active-challenge-heading{display:flex;align-items:center;gap:28px;margin-bottom:28px}
.active-challenge-heading img{flex:0 0 124px;width:124px;height:124px;object-fit:contain}
.active-challenge-heading h3{margin:6px 0 8px;font-size:clamp(28px,3vw,40px)}
.active-challenge-heading p{margin:0;color:var(--muted)}
.active-challenge-heading .active-challenge-status{display:inline-flex;padding:7px 13px;border-radius:999px;background:var(--green);color:#fff;font-size:16px;font-weight:900}
.active-challenge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.active-challenge-item{display:flex;align-items:flex-start;gap:14px;min-height:132px;padding:22px;border:2px solid var(--line);border-radius:18px;background:#fff}
.active-challenge-item>span{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:var(--mint);color:var(--green-dark);font-weight:900}
.active-challenge-item strong,.active-challenge-item small{display:block}
.active-challenge-item strong{font-size:21px;line-height:1.4}
.active-challenge-item small{margin-top:8px;color:var(--muted);font-size:16px;line-height:1.5}
.active-challenge-actions{justify-content:center}
.active-challenge-actions .secondary{width:min(560px,100%);min-height:62px;font-size:20px}
@media(max-width:900px){.active-challenge-grid{grid-template-columns:1fr}.active-challenge-heading{align-items:flex-start}.active-challenge-heading img{flex-basis:96px;width:96px;height:96px}}
@media(max-width:520px){.active-challenge-panel{padding:22px 18px;border-radius:20px}.active-challenge-heading{gap:14px}.active-challenge-heading img{flex-basis:76px;width:76px;height:76px}.active-challenge-heading h3{font-size:28px}}
.health-tool-section.is-coming-soon{position:relative;padding:24px;border:2px dashed #bcc8c4;border-radius:24px;background:#f3f5f3}
.health-tool-section.is-coming-soon .health-tool-coming-soon{display:block;margin:0 0 14px;color:#47645c;font-size:clamp(32px,4vw,48px);font-weight:950;line-height:1;text-align:center;letter-spacing:-.04em}
.health-tool-section.is-coming-soon>h3{color:#71817c;text-align:center}
.health-tool-section.is-coming-soon .health-tool-card{opacity:.38;filter:grayscale(.65);pointer-events:none;user-select:none}
.health-tool-section.is-coming-soon .health-tool-card button,.health-tool-section.is-coming-soon .health-tool-card input,.health-tool-section.is-coming-soon .health-tool-card summary{cursor:not-allowed}
@media(max-width:520px){.health-tool-section.is-coming-soon{padding:18px 14px}.health-tool-section.is-coming-soon .health-tool-coming-soon{font-size:34px}}

/* Account, invitation, and multi-period report integration */
.profile-menu-panel .text-button.danger,.header-my-page-menu .text-button.danger{color:#9d2c2c}
.account-delete-dialog{width:min(560px,calc(100% - 32px));padding:0;border:0;border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(20,33,61,.28)}
.account-delete-dialog::backdrop{background:rgba(15,30,27,.5)}
.account-delete-card{position:relative;display:grid;gap:18px;padding:clamp(26px,5vw,42px)}
.account-delete-card h2{margin:0;font-size:clamp(27px,4vw,36px)}
.account-delete-card>p:not(.eyebrow){margin:0;color:var(--muted);line-height:1.65}
.dialog-close{position:absolute;top:16px;right:16px;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);font-size:25px;cursor:pointer}
.account-delete-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.danger-button{min-height:54px;border:0;border-radius:12px;background:#a62f2f;color:#fff;font:inherit;font-weight:900;cursor:pointer}
.danger-button:disabled{background:#c9cfcd;color:#68736f;cursor:not-allowed}
.consent-settings-dialog{width:min(620px,calc(100% - 32px))}
.consent-status-card{display:grid;gap:10px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:#f3f7f5}
.consent-status-card[data-status="active"]{border-color:#8fc6b6;background:#edf8f4}
.consent-status-card[data-status="withdrawn"],.consent-status-card[data-status="missing"]{border-color:#e4c985;background:#fff8e8}
.consent-status-card p,.consent-policy-copy{margin:0;line-height:1.65}
.consent-status-badge{justify-self:start;padding:6px 11px;border-radius:999px;background:#dde8e4;color:var(--green-dark);font-weight:900}
.consent-status-card[data-status="withdrawn"] .consent-status-badge,.consent-status-card[data-status="missing"] .consent-status-badge{background:#f1dfb7;color:#6b4d13}
.consent-settings-actions{grid-template-columns:1fr 1fr}
.consent-settings-actions>*:only-child{grid-column:1/-1}
.forest-entry-dialog{width:min(680px,calc(100% - 32px))}
.forest-entry-list{display:grid;gap:10px;max-height:340px;overflow:auto}
.forest-entry-option{display:flex;align-items:center;gap:14px;padding:16px 18px;border:2px solid var(--line);border-radius:16px;background:#fff;cursor:pointer}
.forest-entry-option:has(input:checked){border-color:var(--green);background:#edf8f4}
.forest-entry-option input{width:22px;height:22px;accent-color:var(--green)}
.forest-entry-option span,.forest-entry-option strong,.forest-entry-option small{display:block}
.forest-entry-option small{margin-top:5px;color:var(--muted);line-height:1.45}
.received-invite-card{display:grid;gap:16px}
.received-invite-card .forest-invite-heading>div p{margin:5px 0 0;color:var(--muted)}
.received-invitation-list{display:grid;gap:10px}
.received-invitation-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.received-invitation-item.is-pending{border-color:#9fcabe;background:#f0f8f5}
.received-invitation-item strong,.received-invitation-item p{display:block;margin:0}
.received-invitation-item p{margin-top:4px;color:var(--muted)}
.invitation-accept-form{padding-top:4px;border-top:1px solid var(--line)}
.report-muted-copy{margin:0;color:var(--muted)}
.report-history-list{display:grid;gap:10px;margin-top:16px}
.report-history-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-top:1px solid var(--line)}
.report-history-row:first-child{border-top:0}
.report-history-row strong,.report-history-row small{display:block}
.report-history-row small{margin-top:4px;color:var(--muted)}
.report-history-row p{margin:0;color:var(--green-dark);font-weight:850;text-align:right}
.report-trend-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:16px;margin:22px 0 0;padding:0;list-style:none}
.report-trend-list li{display:grid;grid-template-rows:150px auto auto auto;justify-items:center;gap:8px;min-width:0;padding:16px 10px;border:1px solid #d8e5df;border-radius:18px;background:#fbfdfb;text-align:center}
.report-trend-list li>strong{color:var(--ink);font-size:18px;line-height:1.25;word-break:keep-all}
.report-trend-list li>b{color:var(--green-dark);font-size:22px;line-height:1.2}
.report-trend-list li>small{color:var(--muted);font-size:14px;line-height:1.3}
.report-trend-meter{align-self:end;display:flex;align-items:flex-end;justify-content:center;width:54px;height:150px;padding:6px;border-radius:999px;background:#e2ebe7}
.report-trend-meter i{display:block;width:100%;min-height:8px;border-radius:999px;background:linear-gradient(180deg,#2b917e,#0b5a4d)}
.report-trend-list li.report-trend-pending{opacity:.86}
.report-trend-list li.report-trend-pending .report-trend-meter{background:#e2ebe7}
.report-trend-list li.report-trend-pending .report-trend-meter i{display:none}
.report-trend-list li.report-trend-pending b{color:var(--muted);font-size:18px}
.report-page .report-hero-card .report-mascot{display:block}
.report-page .report-hero-card{min-height:unset}
.report-all-content{display:grid;gap:16px}
.report-cycle-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.report-cycle-card{padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff}
.report-cycle-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.report-cycle-heading small,.report-cycle-heading strong{display:block}
.report-cycle-heading small{color:var(--green-dark);font-weight:900}
.report-cycle-heading strong{margin-top:5px;font-size:20px}
.report-cycle-card>p{color:var(--muted)}
.report-cycle-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 0}
.report-cycle-card dl>div{padding:10px;border-radius:10px;background:var(--soft)}
.report-cycle-card dt{color:var(--muted);font-size:13px;font-weight:800}
.report-cycle-card dd{margin:4px 0 0;font-weight:900}
.report-load-more{justify-self:center;width:min(480px,100%)}
@media(max-width:760px){.account-delete-actions,.report-cycle-list{grid-template-columns:1fr}.received-invitation-item,.report-history-row{align-items:flex-start;flex-direction:column}.report-history-row p{text-align:left}.report-trend-list{grid-template-columns:repeat(2,minmax(0,1fr))}.report-cycle-card dl{grid-template-columns:1fr}}
@media(max-width:420px){.report-trend-list{grid-template-columns:1fr}.report-trend-list li{grid-template-rows:120px auto auto auto}.report-trend-meter{height:120px}}

/* Final result/tool layout overrides for the 2026-09-10 XAI and health-tool handoff. */
.result-room-screen .current-signal-content,
.result-room-screen .risk-forecast-panel{
  grid-template-columns:minmax(0,1fr) minmax(0,2fr) !important;
}
@media(max-width:760px){
  .result-room-screen .current-signal-content,
  .result-room-screen .risk-forecast-panel{
    grid-template-columns:minmax(0,1fr) !important;
  }
}
.result-room-screen .current-signal-content .current-risk-signal-body,
.result-room-screen .current-signal-content .current-xai-slot,
.result-room-screen .risk-forecast-panel .age-risk-chart,
.result-room-screen .risk-forecast-panel .forecast-score-placeholder{
  width:100%;
  min-height:330px;
}
.result-room-screen .current-signal-content .current-xai-slot{
  border:3px dashed #b88950 !important;
  background:rgba(255,250,240,.78) !important;
  color:#6b4424;
  box-shadow:none !important;
}
@media(max-width:800px){
  .result-room-screen .current-signal-content,
  .result-room-screen .risk-forecast-panel{grid-template-columns:minmax(0,1fr)!important}
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .health-tools-pending-grid{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:26px !important;
}
.screen[data-step="8"]:has(#workspace-panel-tools.active) .health-tools-pending-grid>.health-tool-section{
  grid-column:1/-1 !important;
  width:100%;
}

/* Challenge empty state: choose before recording. */
.daily-record-empty-selection{text-align:center;padding:clamp(32px,6vw,72px) 20px;border-style:solid;background:#fff}
.daily-record-empty-selection strong{font-size:clamp(22px,3vw,30px);word-break:keep-all}
.daily-record-empty-selection p{margin-top:12px;word-break:keep-all}
.daily-record-empty-selection .primary{margin-top:28px;max-width:100%}

@page{
  size:A4;
  margin:5mm;
}
@media print{
  html,body{
    width:auto !important;
    min-height:0 !important;
    background:#fff !important;
    color:#111827 !important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
  body *{
    visibility:hidden !important;
  }
  #workspace-panel-report,
  #workspace-panel-report *{
    visibility:visible !important;
  }
  .topbar,
  .step-panel,
  .dashboard-hero,
  .workspace-nav,
  .workspace-tabs,
  .report-pdf-card,
  .message,
  footer{
    display:none !important;
  }
  .app-shell,
  .content,
  .screen[data-step="8"],
  #workspace-panel-report{
    display:block !important;
    position:static !important;
    width:100% !important;
    max-width:none !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:#fff !important;
    box-shadow:none !important;
    overflow:visible !important;
  }
  #workspace-panel-report{
    page-break-inside:auto;
    transform-origin:top left;
    transform:scale(1.28);
    width:78.125% !important;
  }
  #workspace-panel-report [data-report-panel]:not(.active){
    display:none !important;
  }
  #workspace-panel-report .report-period-tabs{
    display:none !important;
  }
  #workspace-panel-report .dashboard-section,
  #workspace-panel-report .report-page,
  #workspace-panel-report .report-period-panel{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }
  #workspace-panel-report .report-period-line{
    margin:0 0 6px !important;
  }
  #workspace-panel-report .report-period-line strong{
    font-size:15px !important;
  }
  #workspace-panel-report .report-period-pill{
    min-height:22px !important;
    padding:1px 8px !important;
    font-size:10px !important;
  }
  #workspace-panel-report :is(.report-hero-card,.report-detail-card,.report-insight-card,.report-placeholder-card,.report-summary-stats,.report-cycle-card){
    break-inside:avoid;
    page-break-inside:avoid;
    box-shadow:none !important;
  }
  #workspace-panel-report :is(.report-hero-card,.report-detail-card,.report-insight-card,.report-placeholder-card,.report-cycle-card){
    padding:10px 12px !important;
    border-radius:10px !important;
  }
  #workspace-panel-report .report-hero-card{
    display:grid !important;
    grid-template-columns:30px minmax(0,1fr) !important;
    gap:8px !important;
    align-items:center !important;
    min-height:0 !important;
    margin:0 0 6px !important;
  }
  #workspace-panel-report .report-mascot{
    display:block !important;
    width:30px !important;
    height:30px !important;
    object-fit:contain !important;
  }
  #workspace-panel-report .report-hero-card .eyebrow,
  #workspace-panel-report .report-overline{
    margin:0 0 2px !important;
    font-size:8px !important;
  }
  #workspace-panel-report .report-hero-card strong,
  #workspace-panel-report .report-detail-card h4,
  #workspace-panel-report .report-insight-card h4,
  #workspace-panel-report .report-placeholder-card h4{
    margin:0 !important;
    font-size:12px !important;
    line-height:1.18 !important;
  }
  #workspace-panel-report p,
  #workspace-panel-report small,
  #workspace-panel-report span,
  #workspace-panel-report li{
    font-size:8.5px !important;
    line-height:1.22 !important;
  }
  #workspace-panel-report .report-week-layout,
  #workspace-panel-report .report-insight-stack,
  #workspace-panel-report .report-placeholder-grid,
  #workspace-panel-report .report-cycle-list{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:6px !important;
  }
  #workspace-panel-report .report-summary-stats{
    grid-template-columns:repeat(3,1fr) !important;
    margin:0 0 6px !important;
    border-radius:8px !important;
  }
  #workspace-panel-report .report-summary-stat{
    padding:8px 8px !important;
  }
  #workspace-panel-report .report-summary-stat strong{
    margin-top:1px !important;
    font-size:12px !important;
  }
  #workspace-panel-report .report-trend-list{
    grid-template-columns:repeat(4,1fr) !important;
    gap:4px !important;
    margin-top:5px !important;
  }
  #workspace-panel-report .report-trend-list li{
    grid-template-rows:54px auto auto auto !important;
    gap:2px !important;
    padding:5px 4px !important;
    border-radius:8px !important;
  }
  #workspace-panel-report .report-trend-meter{
    width:24px !important;
    height:54px !important;
    padding:2px !important;
  }
  #workspace-panel-report .report-trend-list li>strong{
    font-size:8px !important;
  }
  #workspace-panel-report .report-trend-list li>b{
    font-size:9px !important;
  }
  #workspace-panel-report .report-progress-list,
  #workspace-panel-report .report-history-list{
    gap:6px !important;
    margin-top:6px !important;
  }
  #workspace-panel-report .report-progress-list.has-daily-detail{
    grid-template-columns:1fr !important;
    align-items:stretch !important;
  }
  #workspace-panel-report .report-legend,
  #workspace-panel-report .report-card-note,
  #workspace-panel-report .report-detail-notice{
    display:none !important;
  }
  #workspace-panel-report .report-progress-item,
  #workspace-panel-report .report-history-row{
    padding:8px !important;
    gap:6px !important;
    min-height:0 !important;
  }
  #workspace-panel-report .report-progress-title{
    grid-template-columns:22px minmax(0,1fr) !important;
    gap:5px !important;
  }
  #workspace-panel-report .report-progress-icon{
    width:22px !important;
    height:22px !important;
    border-radius:7px !important;
    font-size:13px !important;
  }
  #workspace-panel-report .report-progress-icon svg{
    width:14px !important;
    height:14px !important;
  }
  #workspace-panel-report .report-progress-title strong{
    margin:0 !important;
    font-size:9px !important;
    line-height:1.15 !important;
  }
  #workspace-panel-report .report-progress-title small{
    margin:1px 0 0 !important;
    font-size:7px !important;
    line-height:1.12 !important;
  }
  #workspace-panel-report .report-progress-meter{
    gap:4px !important;
  }
  #workspace-panel-report .report-progress-meter b{
    min-width:24px !important;
    font-size:8px !important;
  }
  #workspace-panel-report .report-progress-bar{
    height:7px !important;
  }
  #workspace-panel-report .report-week-grid{
    gap:2px !important;
  }
  #workspace-panel-report .report-day{
    font-size:6px !important;
  }
  #workspace-panel-report .report-day i{
    height:20px !important;
    margin-top:3px !important;
    border-radius:4px !important;
    font-size:8px !important;
  }
  #workspace-panel-report .weekly-dot-grid{
    gap:3px !important;
  }
  #workspace-panel-report .report-insight-card{
    padding:5px 8px !important;
  }
  #workspace-panel-report .report-insight-section+.report-insight-section{
    margin-top:4px !important;
    padding-top:4px !important;
  }
  #workspace-panel-report .report-next-action .primary{
    display:none !important;
  }
  #workspace-panel-report .report-safety{
    margin-top:3px !important;
    padding:5px !important;
    font-size:7px !important;
  }
}

/* Keep the three V3 domains together on desktop and readable on small screens. */
#challenge-list:has(.challenge-v3-card){grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}

/* Service-story CTA: Originkit-style expanding arrow, adapted to the product palette. */
body.intro-mode .service-story .story-arrow-reveal{
  position:relative;
  isolation:isolate;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:min(100%,340px);
  min-height:68px;
  margin:10px 0 24px;
  padding:15px 30px 15px 82px;
  overflow:hidden;
  border:2px solid var(--green);
  border-radius:999px;
  background:var(--green);
  color:#fff;
  box-shadow:0 10px 24px rgba(20,33,61,.14);
  white-space:nowrap;
  transform:scale(1);
  transition:transform .18s ease,background-color .46s cubic-bezier(.44,0,.56,1),border-color .46s cubic-bezier(.44,0,.56,1);
}
.story-arrow-reveal .story-arrow-label{
  position:relative;
  z-index:1;
  transition:transform .46s cubic-bezier(.44,0,.56,1);
}
.story-arrow-reveal .story-arrow-badge{
  position:absolute;
  left:8px;
  top:50%;
  z-index:2;
  width:50px;
  height:50px;
  border-radius:50%;
  background:var(--green-dark);
  pointer-events:none;
  transform:translateY(-50%) scale(1);
  transform-origin:center;
  transition:transform .46s cubic-bezier(.44,0,.56,1);
}
.story-arrow-reveal .story-arrow-icon{
  position:absolute;
  left:33px;
  top:50%;
  z-index:3;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  color:#fff;
  font-size:25px;
  line-height:1;
  pointer-events:none;
  transform:translate(-50%,-52%);
  transition:left .46s cubic-bezier(.44,0,.56,1),transform .46s cubic-bezier(.44,0,.56,1);
}
body.intro-mode .service-story .story-arrow-reveal:hover,
body.intro-mode .service-story .story-arrow-reveal:focus-visible{
  border-color:var(--green-dark);
  background:var(--green-dark);
}
.story-arrow-reveal:hover .story-arrow-badge,
.story-arrow-reveal:focus-visible .story-arrow-badge{transform:translateY(-50%) scale(14)}
.story-arrow-reveal:hover .story-arrow-icon,
.story-arrow-reveal:focus-visible .story-arrow-icon{left:50%;transform:translate(-50%,-52%) rotate(0deg)}
.story-arrow-reveal:hover .story-arrow-label,
.story-arrow-reveal:focus-visible .story-arrow-label{transform:translateX(8px)}
.story-arrow-reveal:active{transform:scale(.97)}
@media(max-width:800px){
  body.intro-mode .service-story .story-arrow-reveal{width:min(100%,340px);min-width:0;padding-inline:74px 22px;font-size:18px}
}
@media(prefers-reduced-motion:reduce){
  .story-arrow-reveal,.story-arrow-reveal *{transition:none!important}
  .story-arrow-reveal:hover .story-arrow-badge,.story-arrow-reveal:focus-visible .story-arrow-badge{transform:translateY(-50%) scale(1)}
  .story-arrow-reveal:hover .story-arrow-icon,.story-arrow-reveal:focus-visible .story-arrow-icon{left:33px}
}

/* Compact invitation hub: two choices share one full-width disclosure area. */
.forest-invite-hub{margin:22px 0}
.forest-invite-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.forest-invite-summary{display:flex;align-items:center;gap:18px;min-height:116px;padding:18px 22px;border:2px solid var(--line);border-radius:20px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,transform .2s ease}
.forest-invite-summary:hover{border-color:var(--support);transform:translateY(-2px)}
.forest-invite-summary.active{border-color:var(--green);background:var(--selected)}
.forest-invite-summary img{flex:0 0 76px;width:76px;height:76px;object-fit:contain}
.forest-invite-summary span,.forest-invite-summary strong,.forest-invite-summary small{display:block;min-width:0}
.forest-invite-summary strong{font-size:22px;line-height:1.3}
.forest-invite-summary small{margin-top:6px;color:var(--muted);font-size:16px;font-weight:800}
.forest-invite-detail{margin:16px 0 0}
.forest-invite-detail:focus{outline:none}
.forest-invite-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
.forest-invite-detail-heading h4,.forest-invite-detail-heading p{margin:0}
.forest-invite-detail-heading p{margin-top:6px;color:var(--muted);font-size:17px}
.forest-invite-detail-heading .secondary{flex:0 0 auto}

/* Daily challenge addition is visible now, but does not pretend an absent API succeeded. */
@media(max-width:700px){
  .forest-invite-card-grid{grid-template-columns:1fr}
  .forest-invite-summary{min-height:100px;padding:16px 18px}
  .forest-invite-summary img{flex-basis:64px;width:64px;height:64px}
  .forest-invite-detail-heading{align-items:stretch;flex-direction:column}
  .forest-invite-detail-heading .secondary{width:100%}
}

/* Compatibility names for newer controls, using the pre-unification colors. */
:root{--paper:var(--surface);--section:var(--bg);--selected:var(--mint);--support:#9cadab}


/* Intro version switch: keeps the current 8022 intro and the retro 8033 intro selectable. */
.intro-version-switch{display:none}
body.intro-mode .topbar .intro-version-switch{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:42px;padding:9px 14px;border:1px solid #9eb8aa;border-radius:999px;background:#fffdf1;color:#176b5b;text-decoration:none;font-size:14px;font-weight:900;letter-spacing:-.02em;box-shadow:0 8px 18px rgba(16,75,58,.08);white-space:nowrap}
body.intro-mode .topbar .intro-version-switch:hover,body.intro-mode .topbar .intro-version-switch:focus-visible{border-color:#176b5b;background:#e8f3ed;color:#0b473a}
@media(max-width:760px){body.intro-mode .topbar .intro-version-switch{min-height:36px;padding:7px 10px;font-size:12px;order:2}}

/* Eligibility entrance: carrot-house safety checkpoint */
.screen.eligibility-forest-screen{max-width:none;margin-inline:0}
.eligibility-forest-stage{
  position:relative;
  display:flex;
  align-items:center;
  min-height:calc(100svh - 126px);
  margin:-28px clamp(-76px,-4vw,-24px) -58px;
  padding:clamp(34px,4svh,58px) clamp(24px,6vw,96px) clamp(34px,5svh,58px);
  overflow:hidden;
  isolation:isolate;
  background:url('/static/assets/eligibility-forest-entrance-20260909.png') center center/cover no-repeat;
}
.eligibility-forest-stage::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(13,39,30,.22),rgba(255,248,225,.12) 45%,rgba(255,248,225,.02) 75%);
}
.eligibility-forest-board{
  width:min(680px,48vw);
  padding:18px 22px 24px;
  border:8px solid #6f4021;
  border-radius:26px;
  background:linear-gradient(180deg,rgba(255,251,232,.96),rgba(246,225,185,.95));
  box-shadow:0 24px 0 rgba(72,42,21,.28),0 34px 58px rgba(23,44,36,.34),inset 0 0 0 3px rgba(255,255,255,.55);
}
.eligibility-forest-heading{
  justify-content:center;
  text-align:center;
  margin:0 0 14px;
  padding:18px 18px 16px;
  border:3px solid #8b5a2e;
  border-radius:18px;
  background:linear-gradient(180deg,#fff6d7,#f4d9a6);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.58);
}
.eligibility-forest-heading img{display:none}
.eligibility-forest-heading h2{
  margin:0;
  color:#173a31;
  font-size:clamp(32px,3.7vw,50px);
  line-height:1.14;
  letter-spacing:-.06em;
  white-space:normal;
  text-shadow:0 2px 0 #fff2c8;
}
.eligibility-forest-board .eligibility-lead{margin:0 0 10px;text-align:center}
.eligibility-forest-board .eligibility-lead p{
  margin:0;
  color:#51351f;
  font-size:16px;
  font-weight:800;
}
.eligibility-forest-board .intro-notice{
  display:block;
  margin:10px 0 12px;
  padding:10px 14px;
  border:2px dashed #b4854b;
  border-radius:13px;
  background:#fff7dd;
}
.eligibility-forest-board .intro-notice>span{display:none}
.eligibility-forest-board .intro-notice p{
  margin:0;
  color:#6b4424;
  font-size:14px;
  font-weight:900;
  text-align:center;
}
.eligibility-forest-board .eligibility-grid{gap:10px;margin:12px 0 0}
.eligibility-forest-board .eligibility-card{
  margin:0;
  padding:12px 14px;
  border:2px solid #b88950;
  border-radius:14px;
  background:linear-gradient(180deg,#fff8e4,#f8e2bd);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72);
}
.eligibility-forest-board .eligibility-card legend,
.eligibility-forest-board .eligibility-card h3{
  margin:0 0 8px;
  color:#351d12;
  font-size:20px;
  letter-spacing:-.035em;
}
.eligibility-forest-board .card-title-row{gap:8px}
.eligibility-forest-board .card-icon{
  width:30px;
  height:30px;
  flex-basis:30px;
  background:transparent;
  color:inherit;
  font-size:22px;
}
.eligibility-forest-board .eligibility-profile-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}
.eligibility-forest-board .form-row.compact{margin:0;min-width:0}
.eligibility-forest-board .form-row.compact label{font-size:15px;color:#51351f}
.eligibility-forest-board .form-row.compact input,
.eligibility-forest-board .form-row.compact select{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;
  height:50px;
  min-height:50px;
  border:2px solid #b88950;
  border-radius:11px;
  background:#fffaf0;
  font-size:16px;
  line-height:1.2;
}
.eligibility-age-check{
  grid-column:1/-1;
  margin:4px 0 0;
  padding:8px 10px;
  border:1px dashed #b88950;
  border-radius:10px;
  background:#fff7dd;
  color:#6b4424;
  font-size:14px;
  font-weight:900;
}
.eligibility-age-check[hidden]{display:none!important}
.eligibility-age-check[data-state="ok"]{
  border-color:#92b2a2;
  background:#edf6e5;
  color:#0b4d42;
}
.eligibility-age-check[data-state="warning"]{
  border:2px solid #c34d43;
  background:#fff0ee;
  color:#8e2f28;
}
.eligibility-forest-board .segmented-choice{gap:10px;margin:0}
.eligibility-forest-board .segmented-choice span{
  min-height:52px;
  padding:10px 16px;
  border-color:#b88950;
  border-radius:12px;
  background:#fffaf0;
  color:#3c2416;
  font-size:19px;
}
.eligibility-forest-board .segmented-choice span::before{
  width:20px;
  height:20px;
  border-color:#8b5a2e;
}
.eligibility-forest-board .segmented-choice input:checked+span{
  border-color:#0b4d42;
  background:#e9f4dd;
  color:#0b4d42;
}
.eligibility-forest-board .urgent-title-row .emergency-questionnaire-open,
.eligibility-forest-board .diagnosis-title-row .diagnosis-help-open{
  min-height:40px;
  min-width:0;
  padding:7px 12px;
  border-color:#b88950;
  border-radius:999px;
  background:#fffaf0;
  color:#51351f;
  font-size:13px;
}
.eligibility-forest-board .link-button{
  min-height:32px;
  margin-top:6px;
  color:#0b4d42;
  font-size:14px;
}
.eligibility-forest-board .help-text{font-size:14px!important}
.eligibility-forest-board .eligibility-actions{
  justify-content:center;
  margin-top:14px;
}
.eligibility-forest-board .eligibility-actions .secondary{
  min-width:120px;
  min-height:54px;
  border-color:#b88950;
  background:#fff8e8;
  color:#4b2d19;
  font-size:18px;
}
.eligibility-forest-board .eligibility-actions .primary{
  min-width:min(100%,360px);
  min-height:64px;
  border:4px solid #123e32;
  border-radius:14px;
  background:#0b4d42;
  color:#fffbe8;
  font-size:24px;
  box-shadow:inset 0 0 0 2px #2f7967,0 6px 0 #12372e;
}
.eligibility-forest-board .eligibility-actions .primary:hover{background:#176b5b}
/* Fill the left-hand sign area while leaving the carrot-house doorway visible. */
@media(min-width:1051px){
  .eligibility-forest-board{
    width:min(660px,40vw);
    min-height:0;
    padding:18px 20px 20px;
    display:block;
  }
  .eligibility-forest-heading{padding:12px 16px;margin-bottom:12px}
  .eligibility-forest-heading h2{font-size:32px;white-space:normal}
  .eligibility-forest-board #eligibility-form{display:grid;gap:12px}
  .eligibility-forest-board .eligibility-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    margin:10px 0 0;
  }
  .eligibility-forest-board .eligibility-card{
    min-width:0;
    padding:12px;
  }
  .eligibility-forest-board .eligibility-card:first-child{grid-column:1/-1}
  .eligibility-forest-board .eligibility-card legend,
  .eligibility-forest-board .eligibility-card h3{font-size:18px;margin-bottom:8px}
  .eligibility-forest-board .form-row.compact label{font-size:14px}
  .eligibility-forest-board .form-row.compact input,
  .eligibility-forest-board .form-row.compact select,
  .eligibility-forest-board .segmented-choice span{min-height:42px;font-size:15px}
  .eligibility-forest-board .urgent-card,
  .eligibility-forest-board .diagnosis-card{
    display:grid;
    grid-template-rows:auto 1fr;
    align-items:start;
  }
  .eligibility-forest-board .urgent-title-row,
  .eligibility-forest-board .diagnosis-title-row{
    flex-wrap:nowrap;
    gap:10px;
  }
  .eligibility-forest-board .urgent-title-row>span:not(.card-icon),
  .eligibility-forest-board .diagnosis-title-row>span:not(.card-icon){
    flex:1 1 auto;
    min-width:0;
  }
  .eligibility-forest-board .urgent-title-row .emergency-questionnaire-open,
  .eligibility-forest-board .diagnosis-title-row .diagnosis-help-open{
    flex:0 0 auto;
    margin-left:auto;
    white-space:nowrap;
  }
  .eligibility-forest-board .urgent-answer-row{
    align-self:start;
    margin-top:8px;
  }
  .eligibility-forest-board .diagnosis-card .segmented-choice{
    align-self:start;
    margin-top:8px;
  }
  .eligibility-forest-board .urgent-title-row .emergency-questionnaire-open,
  .eligibility-forest-board .diagnosis-title-row .diagnosis-help-open,
  .eligibility-forest-board .link-button,
  .eligibility-forest-board .eligibility-age-check{font-size:13px}
  .eligibility-forest-board .help-text{font-size:13px!important}
  .eligibility-forest-board .eligibility-actions{margin-top:10px}
  .eligibility-forest-board .eligibility-actions .primary{min-width:48%;min-height:54px;font-size:18px}
  .eligibility-forest-board .eligibility-actions .secondary{min-height:48px;font-size:16px}
}
@media(max-width:1050px){
  .eligibility-forest-stage{justify-content:center;background-position:62% center}
  .eligibility-forest-board{width:min(680px,94vw)}
}
@media(max-width:720px){
  .eligibility-forest-board .eligibility-profile-fields{grid-template-columns:1fr}
}
@media(max-width:620px){
  .eligibility-forest-stage{margin-inline:-12px;padding:82px 12px 28px;background-position:66% center}
  .eligibility-forest-board{padding:12px;border-width:6px;border-radius:20px}
  .eligibility-forest-heading h2{font-size:clamp(24px,7vw,32px);white-space:normal}
  .eligibility-forest-board .eligibility-profile-fields,
  .eligibility-forest-board .segmented-choice{grid-template-columns:1fr}
  .eligibility-forest-board .urgent-title-row,
  .eligibility-forest-board .diagnosis-title-row{flex-wrap:wrap}
  .eligibility-forest-board .urgent-title-row .emergency-questionnaire-open,
  .eligibility-forest-board .diagnosis-title-row .diagnosis-help-open{width:100%;margin-left:38px}
  .eligibility-forest-board .eligibility-actions{flex-direction:column-reverse;align-items:stretch}
  .eligibility-forest-board .eligibility-actions .primary,
  .eligibility-forest-board .eligibility-actions .secondary{width:100%;min-width:0}
}

/* Safety branch popups inherit the carrot-house signboard mood. */
#eligibility-guidance.branch-result{
  width:min(900px,calc(100vw - 40px));
  padding:42px 42px 34px;
  border:8px solid #6f4021;
  border-top:8px solid #6f4021;
  border-left:8px solid #6f4021;
  border-radius:26px;
  background:
    linear-gradient(180deg,rgba(255,251,232,.98),rgba(246,225,185,.97));
  box-shadow:0 0 0 100vmax rgba(8,20,18,.62),0 24px 0 rgba(72,42,21,.26),0 36px 72px rgba(6,32,27,.32),inset 0 0 0 3px rgba(255,255,255,.58);
  color:#351d12;
  text-align:center;
}
#eligibility-guidance.branch-result::before{
  content:none!important;
  display:none!important;
}
#eligibility-guidance h3{
  margin:0 0 10px;
  color:#173a31;
  font-size:clamp(32px,3.2vw,48px);
  line-height:1.2;
  text-shadow:0 2px 0 #fff2c8;
}
#eligibility-guidance .eligibility-guidance-message{
  margin:0 auto 28px;
  max-width:760px;
  color:#51351f;
  font-size:clamp(20px,2.2vw,30px);
  line-height:1.35;
  font-weight:800;
  white-space:pre-line;
}
#eligibility-guidance .eligibility-guidance-sections{
  display:grid;
  gap:14px;
  margin:0 auto 22px;
  max-width:760px;
}
#eligibility-guidance .eligibility-guidance-section{
  display:grid;
  grid-template-columns:minmax(116px,150px) minmax(0,1fr);
  gap:18px;
  align-items:stretch;
  padding:0;
  background:transparent;
  box-shadow:none;
}
#eligibility-guidance .eligibility-guidance-label{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:92px;
  padding:18px 16px;
  border-radius:16px;
  background:rgba(255,248,228,.84);
  box-shadow:inset 0 0 0 2px rgba(184,137,80,.3);
  color:#4b2d19;
  font-size:clamp(18px,2vw,24px);
  line-height:1.25;
  font-weight:900;
  word-break:keep-all;
}
#eligibility-guidance .eligibility-guidance-copy{
  display:grid;
  align-content:center;
  gap:8px;
  min-height:92px;
  padding:18px 20px;
  border-radius:16px;
  background:rgba(255,248,228,.74);
  box-shadow:inset 0 0 0 2px rgba(184,137,80,.24);
  text-align:center;
}
#eligibility-guidance .eligibility-guidance-section strong{
  color:#173a31;
  font-size:18px;
  line-height:1.4;
  word-break:keep-all;
}
#eligibility-guidance .eligibility-guidance-section p{
  margin:0;
  color:#4b2d19;
  font-size:18px;
  line-height:1.55;
  font-weight:800;
  white-space:pre-line;
  word-break:keep-all;
  overflow-wrap:break-word;
}
#eligibility-guidance .eligibility-guidance-action .eligibility-guidance-copy{
  background:rgba(255,234,224,.82);
  box-shadow:inset 0 0 0 2px rgba(195,77,67,.18);
}
#eligibility-guidance .eligibility-guidance-buttons{
  display:grid;
  gap:14px;
  margin:0 auto 22px;
  width:100%;
  max-width:760px;
}
#eligibility-guidance .emergency-guidance-actions{
  grid-template-columns:1fr;
  gap:12px;
  margin:0;
}
#eligibility-guidance .emergency-guidance-actions a,
#eligibility-guidance .emergency-guidance-actions button,
#eligibility-guidance .actions button{
  min-height:58px;
  font-size:18px;
  word-break:keep-all;
}
#eligibility-guidance .eligibility-guidance-primary-actions{
  display:grid;
  width:100%;
  max-width:760px;
  margin:0 auto;
  justify-items:stretch;
}
#eligibility-guidance .eligibility-guidance-primary-actions .primary,
#eligibility-guidance .eligibility-guidance-primary-actions .secondary{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:760px;
}
#eligibility-guidance .branch-safety,
#eligibility-guidance .emergency-do-not-feed{
  margin:0 auto;
  max-width:760px;
  border:0;
  border-radius:14px;
  background:rgba(255,255,255,.76);
  color:#6b4424!important;
  font-size:16px;
  line-height:1.5;
  font-weight:800;
  word-break:keep-all;
  overflow-wrap:break-word;
}
#eligibility-guidance .emergency-do-not-feed{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  box-sizing:border-box;
  min-height:58px;
  padding:14px 18px;
  border:2px dashed #b88950;
  background:#fff7dd;
}
#eligibility-guidance .actions{
  justify-content:center;
  margin-top:0;
}
#eligibility-guidance .eligibility-guidance-close-actions{
  margin-top:18px;
}
#eligibility-guidance .eligibility-guidance-buttons,
#eligibility-guidance .eligibility-guidance-buttons .eligibility-guidance-primary-actions{
  width:760px;
  max-width:100%;
}
#eligibility-guidance .eligibility-guidance-buttons .eligibility-guidance-primary-actions button{
  width:100%;
  min-width:0;
}
#eligibility-guidance #eligibility-edit-answer{
  min-width:180px;
  border-color:#b88950;
  background:#fff8e8;
  color:#4b2d19;
}
#eligibility-guidance #eligibility-guidance-primary{
  display:flex;
  align-items:center;
  justify-content:center;
  width:760px;
  max-width:100%;
  min-width:0;
  margin:0 auto;
  background:#0b4d42;
  border-color:#123e32;
  color:#fffbe8;
}
#eligibility-guidance[data-variant="age-band-mismatch"]{
  width:min(760px,calc(100vw - 40px));
  min-height:320px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:18px;
}
#eligibility-guidance[data-variant="age-band-mismatch"] .eligibility-guidance-sections,
#eligibility-guidance[data-variant="age-band-mismatch"] .branch-safety{
  display:none;
}
#eligibility-guidance[data-variant="age-band-mismatch"] h3{
  margin:0;
  max-width:100%;
  white-space:nowrap;
  font-size:clamp(28px,2.8vw,38px);
}
#eligibility-guidance[data-variant="age-band-mismatch"] .eligibility-guidance-message{
  margin:0;
  max-width:620px;
  color:#4b2d19;
  font-size:clamp(26px,2.5vw,34px);
  line-height:1.5;
}
#eligibility-guidance[data-variant="age-band-mismatch"] .actions{
  width:100%;
  justify-content:center;
  margin-top:8px;
}
@media(max-width:720px){
  #eligibility-guidance.branch-result{
    width:100%;
    padding:30px 18px 24px;
    border-width:6px;
    border-radius:24px 24px 0 0;
  }
  #eligibility-guidance.branch-result::before{
    margin-top:-52px;
  }
  #eligibility-guidance .eligibility-guidance-section{
    grid-template-columns:1fr;
    gap:10px;
  }
  #eligibility-guidance .eligibility-guidance-label,
  #eligibility-guidance .eligibility-guidance-copy{
    min-height:auto;
  }
  #eligibility-guidance[data-variant="age-band-mismatch"] h3{
    font-size:clamp(20px,5vw,28px);
  }
  #eligibility-guidance .eligibility-guidance-section p{
    font-size:16px;
  }
  #eligibility-guidance[data-variant="age-band-mismatch"] .eligibility-guidance-message{
    font-size:clamp(22px,5.2vw,28px);
  }
}

/* Health input room: combined health + lifestyle entry with review before analysis. */
.screen.health-room-screen{max-width:none;margin-inline:0}
.health-room-stage{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1040px);
  place-items:center;
  min-height:calc(100svh - 170px);
  margin:-28px clamp(-76px,-4vw,-24px) -58px;
  padding:clamp(72px,7svh,96px) clamp(18px,4vw,62px) clamp(36px,5svh,66px);
  overflow:hidden;
  isolation:isolate;
  background:none;
}
.health-room-stage::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url('/static/assets/health-room-background-20260909.png') center center/cover no-repeat;
}
.health-room-stage::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(255,247,221,.1),rgba(255,247,221,.22) 48%,rgba(46,24,12,.18));
}
.health-room-stage:has(#health-review-panel:not([hidden]))::before{
  background:url('/static/assets/health-review-desk-20260909.png') center center/cover no-repeat;
}
.health-room-stage:has(#health-review-panel:not([hidden]))::after{
  background:linear-gradient(180deg,rgba(39,19,8,.12),rgba(39,19,8,.06) 46%,rgba(39,19,8,.18));
}
.health-room-board{
  width:min(1040px,100%);
  min-width:0;
  padding:16px 28px 28px;
  border:12px solid #6f4021;
  border-radius:18px;
  background:
    linear-gradient(90deg,rgba(137,82,39,.18) 0 10px,transparent 10px calc(100% - 10px),rgba(137,82,39,.18) calc(100% - 10px)),
    linear-gradient(180deg,rgba(255,247,220,.98),rgba(245,220,178,.97));
  box-shadow:0 18px 0 #4f2d18,0 34px 58px rgba(23,44,36,.28),inset 0 0 0 4px rgba(255,255,255,.5);
}
.health-room-stage:has(#health-review-panel:not([hidden])) .health-room-board{
  width:min(1120px,100%);
  padding:clamp(18px,3vw,34px);
  border-color:transparent;
  background:transparent;
  box-shadow:none;
}
.health-room-stage:has(#health-review-panel:not([hidden])) .health-room-heading,
.health-room-stage:has(#health-review-panel:not([hidden])) .health-input-carousel{
  display:none;
}
.health-room-board #health-form{
  display:grid;
  justify-items:stretch;
  width:100%;
  min-width:0;
}
.health-room-board .health-input-panel{
  width:100%;
  min-width:0;
  margin-inline:auto;
}
.health-room-heading{
  justify-content:center;
  width:max-content;
  max-width:100%;
  margin:-78px auto 18px;
  padding:15px 44px 14px;
  border:5px solid #7a441f;
  border-radius:16px;
  background:linear-gradient(180deg,#ffe9b6,#d8954d);
  text-align:center;
  box-shadow:0 7px 0 #4f2d18,inset 0 0 0 2px rgba(255,255,255,.55);
}
.health-room-heading img{width:76px;height:76px;margin-left:-20px}
.health-room-heading h2{
  color:#51280e;
  font-size:clamp(40px,4vw,62px);
  line-height:1.08;
  text-shadow:0 3px 0 #fff0bf;
}
.health-room-board .health-input-carousel{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:8px 0 20px;
  padding:12px;
  border:3px dashed rgba(111,64,33,.34);
  border-radius:24px;
  background:rgba(255,248,224,.66);
}
.health-room-board .health-input-carousel button{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:88px;
  padding:14px 14px;
  border:3px solid #b88950;
  border-radius:20px;
  background:linear-gradient(180deg,#fff7db,#f3d8a6);
  color:#6b4424;
  font-size:15px;
  text-align:left;
  box-shadow:0 5px 0 rgba(111,64,33,.28),0 10px 18px rgba(68,42,19,.08);
  transform:translateY(0) scale(.96);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.health-room-board .health-input-carousel button:hover,
.health-room-board .health-input-carousel button:focus-visible{
  transform:translateY(-2px) scale(.98);
  border-color:#0b4d42;
}
.health-room-board .health-input-carousel button.active{
  z-index:1;
  border-color:#0b4d42;
  background:linear-gradient(180deg,#eaf6df,#cfe7bd);
  color:#0b4d42;
  box-shadow:0 7px 0 #1f4a2a,0 15px 24px rgba(15,77,66,.18);
  transform:translateY(-4px) scale(1.04);
}
.health-room-board .health-input-carousel button:not(.active){
  opacity:.78;
}
.health-room-board .health-input-carousel .carousel-icon{
  display:grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:16px;
  background:rgba(255,255,255,.66);
  font-size:24px;
  box-shadow:inset 0 0 0 2px rgba(184,137,80,.28);
}
.health-room-board .health-input-carousel .carousel-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.health-room-board .health-input-carousel .carousel-copy strong{
  font-size:clamp(17px,1.6vw,22px);
  line-height:1.08;
  white-space:nowrap;
}
.health-room-board .health-input-carousel .carousel-copy small{
  color:inherit;
  font-size:12px;
  line-height:1.25;
  opacity:.78;
}
.health-room-board .correction-summary{
  margin:0 0 16px;
  border:2px solid #b88950;
  border-radius:16px;
  background:#fff7dd;
}
#health-metrics-panel.health-combined-panel,
#health-vitals-panel.health-combined-panel{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));
  gap:20px;
  width:100%;
  max-width:none;
  margin-inline:auto;
}
.health-room-board #health-form > #health-metrics-panel.health-combined-panel,
.health-room-board #health-form > #health-vitals-panel.health-combined-panel{
  inline-size:100%!important;
  max-inline-size:100%!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  box-sizing:border-box;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.health-room-board #health-form > #health-metrics-panel.health-combined-panel > .form-row,
.health-room-board #health-form > #health-vitals-panel.health-combined-panel > .form-row{
  min-inline-size:0;
  inline-size:100%;
}
#lifestyle-input-panel.health-combined-panel{display:grid;grid-template-columns:1fr;gap:20px;max-width:none}
#health-habits-panel.health-combined-panel{display:grid;grid-template-columns:1fr;gap:20px;max-width:none}
#health-activity-panel.health-combined-panel{display:grid;grid-template-columns:1fr;gap:20px;max-width:none}
.health-room-board .health-input-panel .form-row,
.health-room-board .choice-block{
  padding:18px 20px;
  border:2px solid #b88950;
  border-radius:14px;
  background:linear-gradient(180deg,#fff8e4,#f8e2bd);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);
}
.health-room-board .choice-title::after{
  content:"";
  width:30px;
  height:1px;
  display:none;
}
.health-room-board .health-input-panel .form-row{margin:0}
.health-room-board .health-input-panel .form-row label,
.health-room-board .choice-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:0 0 14px;
  color:#351d12;
  font-size:21px;
  font-weight:900;
  text-align:center;
  background:transparent;
}
.health-room-board .health-input-panel .form-row label{
  position:relative;
  min-height:28px;
  padding-inline:0;
}
.health-room-board .health-input-panel .form-row label small{
  position:static;
  flex:0 0 auto;
  transform:none;
  color:#b4403a;
  font-size:15px;
  white-space:nowrap;
}
.health-room-board #alcohol-frequency-row label{
  white-space:nowrap;
  font-size:clamp(20px,1.12vw,30px);
}
.health-room-board .health-input-panel .form-row input,
.health-room-board .choice-block select{
  min-height:64px;
  border:2px solid #b88950;
  border-radius:10px;
  background:#fffaf0;
  color:#2f2118;
  font-size:26px;
  font-weight:850;
  text-align:center;
  box-shadow:inset 0 2px 0 rgba(80,45,24,.08);
}
.health-room-board .health-input-panel .form-row input::placeholder{
  text-align:center;
}
.health-room-board .health-input-panel select{
  text-align:center;
  text-align-last:center;
}
#health-metrics-panel .form-row input,
#health-vitals-panel .form-row input{
  text-align:center!important;
}
.health-room-board .segmented-choice{gap:12px}
.health-room-board .choice-block .segmented-choice{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(110px,1fr));
  width:100%;
}
.health-room-board .choice-block .segmented-choice label{
  flex:none;
}
.health-room-board .segmented-choice span{
  min-height:64px;
  padding:12px 14px;
  border-color:#b88950;
  border-radius:10px;
  background:transparent;
  color:#3c2416;
  font-size:22px;
  font-weight:900;
  justify-content:center;
  text-align:center;
}
.health-room-board .segmented-choice span::before{
  background:transparent;
}
.health-room-board .segmented-choice input:checked+span{
  border-color:#0b4d42;
  background:#e9f4dd;
  color:#0b4d42;
}
.health-combined-lifestyle{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin:0;
}
.health-room-board #lifestyle-input-panel .health-combined-lifestyle{
  grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));
  width:100%;
}
.health-room-board .smoking-status-card,
.health-room-board .self-health-card,
.health-room-board .meal-count-card{grid-column:auto}
.health-room-board #lifestyle-input-panel .health-combined-lifestyle,
.health-room-board #health-habits-panel .health-combined-lifestyle{
  grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));
  align-items:stretch;
  width:100%;
}
.health-room-board #lifestyle-input-panel .smoking-status-card{order:1}
.health-room-board #lifestyle-input-panel .meal-count-card{order:2}
.health-room-board #lifestyle-input-panel .lifestyle-drinking-card{order:3}
.health-room-board #lifestyle-input-panel #alcohol-frequency-row{order:4}
.health-room-board #lifestyle-input-panel .self-health-card{order:5}
.health-room-board #lifestyle-input-panel #health-satisfaction-score{order:6}
.health-room-board #lifestyle-input-panel #economic-satisfaction-score{order:7}
.health-room-board #lifestyle-input-panel #overall-quality-of-life-score{order:8}
.health-room-board #lifestyle-input-panel :is(#health-satisfaction-score,#economic-satisfaction-score,#overall-quality-of-life-score){
  display:block;
}
.health-room-board #lifestyle-input-panel .form-row:has(#health-satisfaction-score){order:6}
.health-room-board #lifestyle-input-panel .form-row:has(#economic-satisfaction-score){order:7}
.health-room-board #lifestyle-input-panel .form-row:has(#overall-quality-of-life-score){order:8}
.health-room-board #lifestyle-input-panel .smoking-status-card,
.health-room-board #lifestyle-input-panel .self-health-card,
.health-room-board #health-habits-panel .smoking-status-card,
.health-room-board #health-habits-panel .self-health-card{
  display:grid;
  grid-template-rows:auto 1fr;
  min-height:178px;
}
.health-room-board #lifestyle-input-panel .segmented-choice,
.health-room-board #lifestyle-input-panel .self-health-card select,
.health-room-board #health-habits-panel .segmented-choice,
.health-room-board #health-habits-panel .self-health-card select{
  align-self:end;
}
.health-room-board #lifestyle-input-panel .lifestyle-drinking-card,
.health-room-board #lifestyle-input-panel #alcohol-frequency-row{
  display:grid;
  grid-template-rows:auto 1fr;
  align-content:stretch;
  min-height:178px;
}
.health-room-board #lifestyle-input-panel .lifestyle-drinking-card .segmented-choice,
.health-room-board #lifestyle-input-panel #alcohol-frequency-row select{
  align-self:end;
}
.health-room-board #lifestyle-input-panel .health-combined-lifestyle{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.health-room-board #lifestyle-input-panel .health-combined-lifestyle>*{
  min-width:0;
}
.health-room-board #lifestyle-input-panel .smoking-status-card{order:1}
.health-room-board #lifestyle-input-panel .lifestyle-drinking-card{order:2}
.health-room-board #lifestyle-input-panel #alcohol-frequency-row{order:3}
.health-room-board #lifestyle-input-panel .form-row:has(#health-satisfaction-score){order:4}
.health-room-board #lifestyle-input-panel .form-row:has(#economic-satisfaction-score){order:5}
.health-room-board #lifestyle-input-panel .form-row:has(#overall-quality-of-life-score){order:6}
.health-room-board .lifestyle-drinking-card{
  grid-column:auto;
  display:grid;
  grid-template-columns:1fr;
  align-content:start;
  gap:14px;
  min-height:168px;
}
.health-room-board .lifestyle-activity-card{
  grid-column:auto;
  display:grid;
  grid-template-columns:1fr;
  align-content:start;
  gap:14px;
}
.health-room-board .linked-lifestyle-detail{
  margin-top:0!important;
  padding-top:0;
  border-top:0;
}
.health-room-board #health-activity-panel .health-combined-lifestyle{
  grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));
  width:100%;
}
.health-room-board #health-activity-panel .exercise-detail-card{
  display:contents;
}
.health-room-board .detail-health-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  width:100%;
}
.health-room-board .detail-health-group{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
}
#health-nutrition-panel .detail-health-group,
#health-socioeconomic-panel .detail-health-group{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#detail-health-panel,
#health-nutrition-panel,
#health-socioeconomic-panel{
  max-width:none;
}
.health-room-board .health-input-panel .actions{
  display:grid;
  grid-template-columns:minmax(260px,1fr);
  margin-top:42px;
}
.health-room-board .health-review-screen{
  width:min(980px,100%);
  margin-inline:auto;
  padding:clamp(22px,3vw,34px);
  border:6px solid #6f4021;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,247,220,.96),rgba(245,220,178,.95));
  box-shadow:0 12px 0 #4f2d18,0 24px 56px rgba(34,16,6,.28),inset 0 0 0 3px rgba(255,255,255,.48);
}
.health-room-board .health-review-screen .eyebrow,
.health-room-board .health-review-screen h3,
.health-room-board .health-review-screen .lead,
.health-room-board .health-review-screen .review-grid,
.health-room-board .health-review-screen .health-input-notice,
.health-room-board .health-review-screen .review-submit-actions{
  width:min(980px,100%);
}
.health-room-board .health-review-screen h3,
.health-room-board .health-review-screen .lead{
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}
.health-room-board .health-review-screen .eyebrow{
  margin:0 auto 8px;
  text-align:center;
}
.health-room-board .health-review-screen .review-grid,
.health-room-board .health-review-screen .health-input-notice,
.health-room-board .health-review-screen .review-submit-actions{
  margin-left:auto;
  margin-right:auto;
}
.health-room-board .review-grid{
  grid-template-columns:1fr;
  gap:18px;
  margin:22px 0;
}
.health-room-board .review-card{
  min-height:0;
  border:2px solid #b88950;
  background:linear-gradient(180deg,#fff8e4,#f8e2bd);
}
.health-room-board .review-card-title{margin-bottom:10px}
.health-room-board .review-card-title h4{font-size:21px}
.health-room-board .health-review-screen .review-card dl{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:12px;
}
.health-room-board .health-review-screen #review-health,
.health-room-board .health-review-screen #review-lifestyle{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.health-room-board .health-review-screen #review-detail-health{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.health-room-board .health-review-screen .review-card dl div{
  display:grid;
  gap:8px;
  min-height:96px;
  padding:15px 16px;
  border:2px solid #b88950;
  border-radius:14px;
  background:#fffaf0;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72);
}
.health-room-board .health-review-screen .review-card dt{
  color:#6b4424;
  font-size:15px;
  font-weight:900;
  text-align:left;
}
.health-room-board .health-review-screen .review-card dd{
  align-self:end;
  margin:0;
  color:#2f2118;
  font-size:22px;
  font-weight:950;
  line-height:1.2;
  text-align:left;
}
.health-room-board .review-submit-actions{
  display:grid;
  grid-template-columns:minmax(140px,220px) minmax(220px,1fr);
  gap:14px;
  margin-top:22px;
}
.health-room-board .review-submit-actions .secondary,
.health-room-board .health-input-panel .actions .secondary{
  min-height:58px;
  border-color:#b88950;
  background:#fff8e8;
  color:#4b2d19;
  font-size:19px;
}
.health-room-board .review-submit-actions .primary,
.health-room-board .health-input-panel .actions .primary{
  width:100%;
  min-height:64px;
  border:4px solid #123e32;
  border-radius:14px;
  background:#0b4d42;
  color:#fffbe8;
  font-size:24px;
  box-shadow:inset 0 0 0 2px #2f7967,0 6px 0 #12372e;
}
.health-room-guide{
  position:absolute;
  right:clamp(22px,4vw,72px);
  bottom:clamp(24px,5svh,72px);
  z-index:1;
  display:grid;
  justify-items:center;
  gap:8px;
  margin:0;
}
.health-room-guide img{
  width:min(220px,18vw);
  filter:drop-shadow(0 18px 20px rgba(40,20,9,.26));
}
.health-room-guide p{
  position:relative;
  max-width:260px;
  margin:0 0 -8px -20px;
  padding:14px 18px;
  border:3px solid #8b5a2e;
  border-radius:18px;
  background:#fff8e4;
  color:#4b2d19;
  font-size:18px;
  font-weight:900;
  line-height:1.35;
  text-align:center;
  box-shadow:0 10px 18px rgba(40,20,9,.16);
}
@media(max-width:1180px){
  .health-room-stage{
    grid-template-columns:minmax(0,1fr);
  }
  .health-room-board .health-input-carousel{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .health-room-guide{
    right:20px;
    bottom:14px;
    margin:0;
  }
  .health-room-guide img{width:150px}
  .health-room-guide p{display:none}
}
@media(max-width:860px){
  .health-room-stage{margin-inline:-12px;padding:82px 12px 28px}
  .health-room-board{padding:12px;border-width:6px;border-radius:20px}
  .health-room-board #health-form > #health-metrics-panel.health-combined-panel,
  .health-room-board #health-form > #health-vitals-panel.health-combined-panel{
    grid-template-columns:1fr!important;
  }
  #health-metrics-panel.health-combined-panel,
  #health-vitals-panel.health-combined-panel,
  .health-combined-panel,
  .health-combined-lifestyle,
  .health-room-board .review-grid{grid-template-columns:1fr}
  .health-room-board .smoking-status-card,
  .health-room-board .self-health-card,
  .health-room-board .meal-count-card,
  .health-room-board .lifestyle-drinking-card,
  .health-room-board .lifestyle-activity-card{grid-column:auto}
  .health-room-board .lifestyle-drinking-card,
  .health-room-board .lifestyle-activity-card,
  .health-room-board .activity-detail-grid,
  .health-room-board .review-submit-actions{grid-template-columns:1fr}
  .health-room-board #lifestyle-input-panel .health-combined-lifestyle{
    grid-template-columns:1fr!important;
  }
  .health-room-board .health-input-carousel{
    grid-template-columns:1fr;
    padding:8px;
  }
  .health-room-board .health-input-carousel button{
    min-height:76px;
    transform:none;
  }
  .health-room-board .health-input-carousel button.active{
    transform:none;
  }
  .health-room-guide{display:none}
}

/* Login shares the wide registration sign, with larger readable controls. */
@media(min-width:1000px){
  body.account-mode .signup-house-board:has(#login-form:not([hidden])){
    max-width:clamp(760px,46vw,1360px);
    min-height:min(900px,calc(100svh - 200px));
    padding:clamp(28px,2vw,56px);
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:30px;
  }
  .signup-house-board:has(#login-form:not([hidden])) .signup-house-heading{
    width:90%;
    padding:24px;
  }
  .signup-house-board #login-form:not([hidden]){
    width:100%;
    padding:clamp(28px,2.4vw,64px);
    margin:0;
    border-radius:14px;
  }
  .signup-house-board #login-form .two-column{gap:28px}
  .signup-house-board #login-form .form-row{margin:0}
  .signup-house-board #login-form .form-row label{font-size:clamp(24px,1.2vw,34px);margin-bottom:14px}
  .signup-house-board #login-form input{min-height:80px;font-size:clamp(24px,1.2vw,34px)}
  .signup-house-board #login-form .actions{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,3fr);gap:20px;margin-top:38px}
  .signup-house-board #login-form .actions button{width:100%;min-height:84px;font-size:clamp(24px,1.2vw,34px)}
}

/* Main workspaces share the registration board's desktop size ceiling. */
@media(min-width:1000px){
  .screen[data-step="8"] :is(.dashboard-hero,.workspace-nav,
    #workspace-panel-home,#workspace-panel-challenge,#workspace-panel-report,#workspace-panel-together,#workspace-panel-tools){
    width:min(980px,100%) !important;
    max-width:980px;
    margin-inline:auto;
  }
}

/* Larger review sign, preserving the input order and existing card columns. */
@media(min-width:1200px){
  .health-room-stage:has(#health-review-panel:not([hidden])){
    grid-template-columns:minmax(0,clamp(1040px,50vw,1480px));
    padding-top:24px;
    padding-left:clamp(24px,5vw,160px);
  }
  .health-room-stage:has(#health-review-panel:not([hidden])) .health-room-board{
    width:100%;
    padding:0;
    border-width:0;
  }
  .health-room-board #health-review-panel{
    width:100%;
    min-height:calc(100svh - 140px);
    padding:24px;
  }
  .health-room-board #health-review-panel > :is(.eyebrow,h3,.review-grid,.health-input-notice,.review-submit-actions){
    width:100%;
    max-width:none;
  }
  #health-review-panel #health-review-title{font-size:clamp(30px,1.6vw,46px);line-height:1.3}
  .health-room-board #health-review-panel>.eyebrow{font-size:clamp(18px,.8vw,24px)}
  .health-room-board #health-review-panel .review-card{padding:14px 20px}
  .health-room-board #health-review-panel .review-card-title h4{font-size:clamp(22px,1vw,28px)}
  .health-room-board #health-review-panel .review-card dl{gap:12px}
  .health-room-board #health-review-panel #review-detail-health{grid-template-columns:repeat(3,minmax(0,1fr))}
  .health-room-board #health-review-panel .review-card dl div{min-height:96px;padding:12px 18px}
  .health-room-board #health-review-panel .review-card dt{font-size:clamp(17px,.75vw,22px);line-height:1.2}
  .health-room-board #health-review-panel .review-card dd{font-size:clamp(24px,1vw,30px);overflow-wrap:anywhere}
  .health-room-board #health-review-panel .health-input-notice{font-size:clamp(17px,.85vw,24px)}
  .health-room-board #health-review-panel .review-submit-actions button{min-height:80px;font-size:clamp(24px,1.1vw,32px)}
  .health-room-board #health-review-panel .review-submit-actions{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,3fr);margin-top:22px}
  .health-room-board #health-review-panel .review-submit-actions .primary{width:100%}
}

/* Larger health-entry sign on wide displays; review keeps its own layout. */
@media(min-width:1200px){
  .health-room-stage:not(:has(#health-review-panel:not([hidden]))){
    grid-template-columns:minmax(0,min(1600px,calc(100vw - clamp(48px,8vw,160px))));
    padding-left:clamp(24px,4vw,96px);
    padding-right:clamp(24px,4vw,96px);
    padding-top:clamp(100px,12svh,190px);
  }
  .health-room-stage:not(:has(#health-review-panel:not([hidden]))) .health-room-board{
    width:100%;
    min-height:calc(100svh - 360px);
    padding:24px clamp(28px,2vw,56px) 40px;
    display:flex;
    flex-direction:column;
  }
  .health-room-stage:not(:has(#health-review-panel:not([hidden]))) #health-form{
    display:flex;
    flex:1;
    flex-direction:column;
    justify-content:space-between;
    align-items:stretch;
    width:100%;
    gap:24px;
  }
  .health-room-board .health-room-heading{padding:24px 48px}
  .health-room-board .health-room-heading h2{font-size:clamp(48px,2.8vw,80px)}
  .health-room-board .health-input-carousel{gap:18px;padding:22px;margin-bottom:12px}
  .health-room-board .health-input-carousel button{min-height:clamp(96px,8svh,132px);padding:20px}
  .health-room-board .health-input-carousel .carousel-copy strong{font-size:clamp(22px,1.2vw,34px);white-space:normal}
  .health-room-board .health-input-carousel .carousel-copy small{font-size:clamp(14px,.8vw,22px)}
  .health-room-board .health-input-carousel .carousel-icon{flex-basis:52px;width:52px;height:52px;font-size:30px}
  .health-room-board .health-input-panel:not(#health-review-panel){max-width:none;flex:1;align-content:center}
  .health-room-board .health-input-panel .form-row,
  .health-room-board .health-input-panel .choice-block{padding:28px;min-height:210px}
  .health-room-board .health-input-panel .form-row label,
  .health-room-board .health-input-panel .choice-title{font-size:clamp(23px,1.3vw,36px);margin-bottom:22px}
  .health-room-board .health-input-panel .form-row label small{font-size:clamp(15px,.8vw,22px)}
  .health-room-board .health-input-panel .form-row input,
  .health-room-board .health-input-panel select,
  .health-room-board .health-input-panel .segmented-choice span{min-height:80px;font-size:clamp(24px,1.3vw,36px)}
  .health-room-board .health-input-panel .actions .primary{min-height:90px;font-size:clamp(26px,1.5vw,42px)}
}

/* Let family, nutrition, and socioeconomic detail inputs size like the other health cards. */
#detail-health-panel,
#health-nutrition-panel,
#health-socioeconomic-panel{
  width:100%;
  justify-self:stretch;
}
#detail-health-panel .detail-health-grid,
#health-nutrition-panel .detail-health-grid,
#health-socioeconomic-panel .detail-health-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  width:100%;
}
#detail-health-panel .detail-health-group,
#health-nutrition-panel .detail-health-group,
#health-socioeconomic-panel .detail-health-group{
  display:contents;
}
#detail-health-panel .detail-health-group>.form-row,
#health-nutrition-panel .detail-health-group>.form-row,
#health-socioeconomic-panel .detail-health-group>.form-row{
  min-width:0;
  width:100%;
}
#detail-health-panel .detail-health-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
#health-socioeconomic-panel .detail-health-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(max-width:860px){
  #detail-health-panel .detail-health-grid,
  #health-nutrition-panel .detail-health-grid,
  #health-socioeconomic-panel .detail-health-grid{
    grid-template-columns:1fr;
  }
  #detail-health-panel .detail-health-group,
  #health-nutrition-panel .detail-health-group,
  #health-socioeconomic-panel .detail-health-group{
    display:contents;
  }
}

.result-room-screen.medical-guidance-only > :not(#medical-guidance-detail){
  display:none!important;
}
.result-room-screen.medical-guidance-only{
  width:min(100%,1120px)!important;
  margin-inline:auto!important;
}
.result-room-screen.medical-guidance-only #medical-guidance-detail{
  position:static!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

.auth-entry-instant .screen.active,
.auth-entry-instant .signup-house-stage,
.auth-entry-instant .signup-house-board,
.auth-entry-instant #signup-form,
.auth-entry-instant #login-form,
.auth-entry-instant .signup-house-heading,
.auth-entry-instant .signup-house-visual{
  animation:none!important;
  transition:none!important;
}

#workspace-panel-home{
  --home-card-height:150px;
}
#workspace-panel-home .summary-grid article,
#workspace-panel-home .home-feature-card{
  box-sizing:border-box;
  min-height:var(--home-card-height);
}
#workspace-panel-home .summary-grid article{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:18px 20px;
}
#workspace-panel-home .health-management{
  background:#f5eee3;
  border-color:#b88950;
}
#workspace-panel-home .health-record-actions{
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
}
#workspace-panel-home .health-record-actions p{
  flex:1 1 260px;
  min-width:0;
}
#workspace-panel-home #dashboard-edit-health{
  background:var(--green);
  color:#fff;
  max-width:100%;
  white-space:normal;
}

.health-room-board .health-input-panel .form-row label small,
.health-room-board .health-input-panel .choice-title small,
.health-room-board .health-input-panel legend small{
  font-size:15px;
  font-weight:900;
  line-height:1.4;
  color:#b4403a;
}

.result-room-screen .current-signal-content .current-risk-signal-body,
.result-room-screen .current-signal-content .current-xai-slot.xai-ready{
  background:rgba(255,250,240,.94) !important;
}
.result-room-screen .current-signal-content .current-xai-slot.xai-ready{
  border:2px solid #c8d9d2 !important;
  place-items:stretch;
  text-align:left;
}
.result-xai-card.xai-ready .result-xai-waiting{
  place-items:stretch;
  align-content:start;
  text-align:left;
}
.result-xai-card.xai-ready .factor-list{
  width:100%;
}
.result-xai-card.xai-ready .factor-list li{
  display:block;
}

#challenge-v3-policy{margin:16px 0;padding:12px 16px;border-radius:12px;background:#fff7df;color:#624817;line-height:1.5}

/* Keep page feedback readable without tying it to the top-left content edge. */
.message{top:50%;transform:translate(-50%,-50%);text-align:center}
dialog .message{top:0;transform:none}

/* Keep Korean labels readable in narrow health forms and review cards. */
@media (max-width: 900px) {
  .health-room-board #health-review-panel .review-grid,
  .health-room-board #health-review-panel .review-card dl,
  .health-room-board #health-activity-panel .health-combined-lifestyle {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .health-room-board #health-review-panel .review-card { min-width: 0; padding: 16px; }
  .health-room-board #health-review-panel .review-card dl div { min-width: 0; min-height: 0; padding: 12px 14px; }
  .health-room-board #health-review-panel .review-card :is(dt,dd) {
    min-width: 0; word-break: keep-all; overflow-wrap: break-word; line-height: 1.5;
  }
  .health-room-board #health-review-panel .review-card dt { font-size: 17px; }
  .health-room-board #health-review-panel .review-card dd { font-size: 22px; margin: 0; }
  .health-room-board .segmented-choice { display: flex; flex-wrap: wrap; gap: 10px; }
  .health-room-board .segmented-choice label { flex: 1 1 100px; min-width: 0; }
  .health-room-board .segmented-choice span { white-space: nowrap; padding: 12px 8px; }
  .health-room-board :is(.choice-title,.form-row label) { word-break: keep-all; overflow-wrap: break-word; }
}

/* A saved-record notice stays visible without jumping to the page header. */
.record-notice:not([hidden]) {
  min-height: 0 !important; padding: 16px 20px !important;
  border: 2px solid #16705d; border-radius: 14px; background: #edf8ec !important;
  color: #173b30 !important; box-shadow: 0 8px 24px #0003;
  font-size: 18px; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .health-room-stage:has(#health-review-panel:not([hidden])) .health-room-board { padding: 0; border-width: 0; }
  .health-room-board #health-review-panel { padding: 14px; }
  .health-room-board #health-review-title { font-size: 24px; line-height: 1.4; word-break: keep-all; }
}

/* Completion feedback stays centered, including inside top-layer reward dialogs. */
.message.record-notice,
dialog .message.record-notice {
  position: fixed; top: 50%; left: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%); margin: 0;
  width: min(560px, calc(100vw - 32px)); max-width: calc(100vw - 32px);
  z-index: 10000; text-align: center; box-sizing: border-box;
  word-break: keep-all; overflow-wrap: anywhere; pointer-events: none;
}

/* Keep photo-review messages readable in a narrow native viewport. */
.photo-state h4,.photo-state p{min-width:0;word-break:keep-all;overflow-wrap:anywhere;}
.v3-photo-context{display:grid;gap:8px;margin:14px 0;padding:14px;border:1px solid var(--line, #dfe7df);border-radius:12px;min-width:0}
.v3-photo-context[hidden]{display:none}
.v3-photo-context legend{font-weight:700;padding:0 4px}
.v3-photo-context p{margin:0 0 4px;font-size:13px}
.v3-photo-context label{font-size:14px}
.v3-photo-context select{width:100%;min-height:44px;padding:8px;border:1px solid var(--line, #dfe7df);border-radius:8px;background:#fff;color:#24352a;font:inherit}
