:root{--ink:#253c3a;--muted:#73847e;--forest:#276960;--forest-deep:#205950;--mint:#e1f0e9;--cream:#f7f8f4;--paper:#fff;--line:#e6ebe5;--gold:#e9c49a;--shadow:0 15px 40px rgba(28,62,52,.055);font-family:system-ui,-apple-system,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:var(--ink);background:var(--cream);font-size:16px}
*{box-sizing:border-box}body{margin:0;min-width:300px;line-height:1.55}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #c88642;outline-offset:3px}a{color:inherit}h1,h2,h3,p{margin-top:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:absolute;z-index:20;top:-70px;left:20px;background:#fff;padding:10px 16px}.skip-link:focus{top:10px}.app-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr);max-width:1600px;margin:auto}
.sidebar{height:100vh;position:sticky;top:0;background:#fff;border-right:1px solid var(--line);padding:37px 22px 26px;display:flex;flex-direction:column;gap:32px}.brand{display:flex;align-items:center;gap:12px;margin-left:7px}.brand-mark{width:43px;height:43px;display:grid;place-items:center;background:#2e7267;color:#fef4dc;border-radius:15px;font-size:32px;font-weight:400;transform:rotate(-8deg)}.brand-mark.small{width:28px;height:28px;border-radius:10px;font-size:23px;display:inline-grid}.brand strong{display:block;letter-spacing:-.06em;font-family:Georgia,serif;font-size:26px;line-height:1.1;color:#1b544c}.brand small{display:block;font-size:10px;color:#8d9a94;letter-spacing:.03em;margin-top:4px}.sidebar-label{color:#71847b;font-size:13px;padding:3px 16px;font-weight:650}.sidebar-label b{color:#3c7a6f;background:#e7f3ed;border-radius:12px;padding:3px 7px;margin-left:6px;font-size:10px}.side-nav{display:flex;flex-direction:column;gap:7px;margin-top:-15px}.nav-item{width:100%;min-height:52px;border:0;background:transparent;border-radius:13px;text-align:left;padding:13px 15px;font-size:14px;color:#5e736b;font-weight:650;display:flex;gap:16px;align-items:center}.nav-item>span{font-size:24px;line-height:1;width:25px;text-align:center;font-weight:400}.nav-item.active,.nav-item:hover{background:#eaf4ef;color:#266d60}.side-tip{margin-top:auto;background:#f3f6f0;border-radius:17px;padding:18px 19px}.tiny-label,.panel-eyebrow{font-size:11px;font-weight:750;letter-spacing:.12em;color:#3d8072}.side-tip p{font-size:12px;line-height:1.9;color:#6f8176;margin:8px 0 0}.side-foot{font-size:10px;color:#a3b1aa;padding-left:7px}
.main-wrap{min-width:0}.topbar{height:84px;border-bottom:1px solid #eef0ec;display:flex;align-items:center;justify-content:flex-end;padding:0 clamp(24px,6vw,98px);background:rgba(255,255,255,.57)}.mobile-brand{display:none}.topbar-right{display:flex;align-items:center;gap:13px}.status-pill{color:#55796e;font-size:12px;font-weight:750;background:#e9f4ee;border:1px solid #d9e9dd;padding:8px 12px;border-radius:50px}.status-dot{display:inline-block;width:7px;height:7px;background:#62a489;border-radius:50%;margin-right:6px}.help-button{border:1px solid #e9c7bd;background:#fff9f6;color:#a25c4b;border-radius:50px;padding:9px 15px;font-weight:800;font-size:12px;min-height:44px}.help-button span{margin-left:7px}main{max-width:1110px;margin:auto;padding:27px clamp(24px,6vw,98px) 90px}.demo-banner{display:flex;gap:12px;background:#fffaf0;border:1px solid #f1e4cb;border-radius:13px;padding:12px 17px;margin-bottom:29px;color:#896e46;font-size:11px}.demo-icon{font-size:22px;line-height:1.1}.demo-banner strong{display:block;margin-bottom:2px}.demo-banner span:last-child{display:block}.view{display:none;animation:fadein .18s ease-out}.view.active{display:block}@keyframes fadein{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.eyebrow{letter-spacing:.19em;font-size:11px;font-weight:800;color:#478a79;margin-bottom:14px}.eyebrow.muted{color:#98a69d}.welcome-line{display:flex;justify-content:space-between;align-items:flex-start;min-height:194px}.welcome-line h1{font-size:clamp(30px,3vw,42px);letter-spacing:-.07em;line-height:1.29;font-weight:750;margin:0 0 18px}.welcome-line h1 em{font-style:normal;color:#368477}.intro{color:#7a8c84;font-size:13px;line-height:1.9}.welcome-art{position:relative;width:170px;height:151px;flex:none;margin:-20px 35px 0 0}.art-sun{position:absolute;width:110px;height:110px;border-radius:50%;background:#fff2db;top:22px;left:38px}.art-leaf{position:absolute;width:38px;height:92px;background:#83b7a2;border-radius:55% 0 55% 0;transform-origin:bottom center;left:81px;bottom:5px}.leaf-1{transform:rotate(-46deg);background:#a5c9b0}.leaf-2{transform:rotate(23deg);height:108px;background:#75a993}.leaf-3{transform:rotate(68deg);height:68px;background:#cbdbc5}.art-heart{position:absolute;top:31px;left:79px;font-family:Georgia,serif;color:#d9918b;font-size:35px;transform:rotate(10deg)}
.primary-panel{background:#2d7368;border-radius:22px;min-height:253px;padding:32px 38px;position:relative;overflow:hidden;color:#fff;display:flex}.panel-content{position:relative;z-index:2;max-width:500px}.panel-eyebrow{color:#bfe3d4}.primary-panel h2{font-size:27px;font-weight:760;letter-spacing:-.06em;margin:7px 0 8px}.primary-panel p{font-size:13px;line-height:1.8;color:#e2f1eb;margin-bottom:19px}.primary-panel small{display:block;color:#c4e1d8;font-size:10px;margin-top:12px}.primary-button{display:inline-flex;gap:20px;justify-content:space-between;align-items:center;border:0;background:#f7f3e6;color:#2e665a;font-weight:800;font-size:14px;min-height:49px;border-radius:11px;padding:12px 19px;box-shadow:0 7px 16px #164a4240}.primary-button:hover{background:#fff}.panel-decoration{position:absolute;right:0;bottom:-30px;width:300px;height:260px}.deco-circle{position:absolute;border:1px solid #ffffff45;border-radius:50%}.deco-circle.one{width:270px;height:270px;right:-30px;top:-3px}.deco-circle.two{width:191px;height:191px;right:9px;top:39px;background:#6da39740}.panel-decoration>span{position:absolute;font-size:150px;color:#e8f7d240;right:51px;top:12px;transform:rotate(-15deg)}
.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0 28px}.action-card{border:1px solid #edf0eb;border-radius:16px;background:#fff;box-shadow:var(--shadow);padding:21px;display:flex;align-items:center;gap:14px;text-align:left;min-height:100px}.action-icon{width:46px;height:46px;display:grid;place-items:center;font-size:24px;border-radius:14px;flex:none}.action-icon.beige{background:#fcf0dc;color:#a4804b}.action-icon.mint{background:#e9f5ed;color:#438873}.action-card strong{display:block;font-size:15px;letter-spacing:-.05em}.action-card small{display:block;color:#8b9a92;font-size:11px;margin-top:4px}.action-arrow{margin-left:auto;color:#b2c0b8;font-size:20px}.surface{background:#fff;border:1px solid #ebefea;border-radius:18px;padding:24px 26px;margin-bottom:18px;box-shadow:var(--shadow)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-heading h2,.surface h2{font-size:17px;letter-spacing:-.05em;margin:0}.section-heading .eyebrow{margin:0 0 5px}.text-link{border:none;background:none;font-size:12px;color:#408a79;font-weight:750;min-height:44px}.latest-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:18px}.latest-title{font-weight:750;font-size:14px}.latest-date{color:#9aaba0;font-size:12px}.latest-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.info-chip{background:#f1f7f2;border-radius:7px;padding:5px 9px;font-size:11px;color:#557a69}.gentle-note{color:#92a198;font-size:12px;text-align:center;padding:8px 0 0}
.page-head{margin:0 0 25px}.page-head h1{font-size:clamp(29px,3vw,39px);letter-spacing:-.065em;line-height:1.3;margin:0 0 9px}.page-head p{font-size:13px;color:#81938a;line-height:1.8;margin:0}.wizard-shell{background:white;border:1px solid var(--line);border-radius:21px;box-shadow:var(--shadow);padding:28px clamp(20px,5vw,42px)}.wizard-progress{font-size:12px;font-weight:750;color:#5b877a;display:flex;flex-direction:column;gap:12px;margin-bottom:32px}.progress-track{height:7px;background:#edf2ec;border-radius:50px;overflow:hidden}.progress-track>div{height:100%;width:20%;background:#4d9b83;transition:width .18s}.question-title{font-size:23px;letter-spacing:-.055em;margin:0 0 8px}.question-help{font-size:13px;color:#809288;margin-bottom:24px}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.choice-grid.single{grid-template-columns:1fr}.choice-card{min-height:62px;text-align:left;border:1px solid #dee8df;border-radius:12px;padding:12px 17px;background:#fff;color:#476058;font-weight:700}.choice-card:hover,.choice-card.selected{background:#eaf5ee;border:2px solid #539e84;padding:11px 16px}.choice-card small{display:block;color:#8b9a91;font-weight:400;font-size:11px}.input-row{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.number-input{width:160px;border:1px solid #d7e3dc;border-radius:12px;padding:13px 17px;font-size:23px;min-height:60px}.input-unit{font-size:14px;color:#748a80}.subtle-button{border:1px solid #d8e2d8;border-radius:10px;background:white;color:#668273;min-height:46px;padding:10px 14px}.checkbox-choice{display:flex;gap:11px;align-items:center;margin-top:18px;font-size:14px;color:#647c70;min-height:48px}.checkbox-choice input{width:22px;height:22px;accent-color:#3d8a71}.pain-scale{display:flex;gap:10px;align-items:center;margin-bottom:14px}.pain-scale input{flex:1;min-width:100px;accent-color:#478a78}.pain-result{min-width:56px;font-size:30px;font-weight:800;color:#2e7867;text-align:center}.scale-labels{display:flex;justify-content:space-between;color:#99a99f;font-size:11px;margin-bottom:17px}.branch-box{padding:18px 0 0;border-top:1px solid #eef1eb;margin-top:16px}.branch-box h3{font-size:14px;margin:0 0 11px}.symptom-choices{display:flex;gap:8px;flex-wrap:wrap}.symptom-chip{border:1px solid #dfebe1;border-radius:50px;padding:10px 14px;background:#fff;color:#657b6f;font-size:13px;min-height:44px}.symptom-chip.selected{background:#2e7867;color:white;border-color:#2e7867}.notes-field{display:block;width:100%;min-height:78px;border:1px solid #dce6dd;border-radius:12px;padding:12px 14px;resize:vertical;margin-top:13px}.review-card{background:#f7faf6;border-radius:13px;padding:16px 18px}.review-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #e5ebe3;padding:12px 0;font-size:13px}.review-row:last-child{border:none}.review-row span:first-child{color:#839589}.review-row strong{text-align:right;overflow-wrap:anywhere}.wizard-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:30px;border-top:1px solid #edf0ea;padding-top:23px}.secondary-button{border:1px solid #d8e5da;color:#487468;background:white;border-radius:10px;padding:11px 17px;font-size:13px;font-weight:750;min-height:46px}.privacy-note,.chart-help{font-size:11px;color:#9baa9d;margin:14px 4px}.success-screen{text-align:center;padding:16px 0}.success-mark{font-size:41px;color:#4c967c;background:#e9f6ed;width:78px;height:78px;display:grid;place-items:center;border-radius:50%;margin:0 auto 15px}.success-screen h2{font-size:22px;letter-spacing:-.05em}.success-screen p{font-size:13px;color:#82948a}.success-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:23px}
.segmented{display:inline-flex;border:1px solid #e3e9e1;background:#ecf2eb;border-radius:12px;padding:4px;margin-bottom:19px}.segmented button,.filter-chip{min-height:40px;border:0;background:transparent;border-radius:9px;padding:8px 18px;color:#8b9b91;font-size:13px;font-weight:750}.segmented button.selected,.filter-chip.selected{background:#fff;color:#387764;box-shadow:0 2px 9px #315b4320}.chart-surface{padding-bottom:15px}.legend{font-size:11px;color:#99a79b}.legend i{width:8px;height:8px;display:inline-block;background:#77af98;border-radius:50%;margin-right:4px}.bar-chart{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(18px,1fr);align-items:end;gap:4px;height:170px;padding:6px 4px 17px;border-bottom:1px solid #edf0eb;overflow-x:auto}.bar-column{height:140px;min-width:12px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;position:relative}.bar-value{font-size:10px;font-weight:800;color:#2b7b68;min-height:15px}.bar-body{width:min(27px,100%);max-height:115px;min-height:2px;background:#85bda5;border-radius:7px 7px 3px 3px}.bar-column.missing .bar-body{height:2px!important;background:#dce5dc;border-radius:4px}.bar-column.missing .bar-value{color:#b2bfb3}.bar-date{font-size:9px;color:#92a295;position:absolute;top:calc(100% + 1px);white-space:nowrap}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px;box-shadow:var(--shadow)}.stat span{font-size:11px;color:#90a196}.stat strong{display:block;font-size:23px;color:#2f7867;margin:6px 0;letter-spacing:-.04em}.stat small{font-size:10px;color:#a4afa4}.counter{font-size:12px;color:#9eaca2}.record-item{border-top:1px solid var(--line);padding:17px 0;display:flex;gap:20px;justify-content:space-between}.record-item strong{font-size:14px}.record-item small{font-size:11px;color:#97a69c;display:block;margin-top:3px}.record-summary{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;align-items:center}.empty-state{padding:25px 10px;text-align:center;color:#889b8d;font-size:13px}
.visit-toolbar{display:flex;align-items:center;gap:9px;margin-bottom:16px;flex-wrap:wrap}.filter-chip{border:1px solid #dce7de;background:#edf3ee}.print-button{margin-left:auto}.summary-sheet{background:#fff;border:1px solid #e3eae3;box-shadow:var(--shadow);padding:35px clamp(20px,4vw,44px);border-radius:16px}.sheet-header{border-bottom:2px solid #2d7a68;padding-bottom:17px;margin-bottom:20px}.sheet-header span{font-size:11px;color:#4b8b77;font-weight:800;letter-spacing:.04em}.sheet-header strong{display:block;font-size:25px;letter-spacing:-.05em;margin-top:6px}.sheet-header small{display:block;font-size:11px;color:#91a196;margin-top:7px}.sheet-range{font-size:12px;color:#8b9d91;margin-bottom:15px}.summary-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.data-item{padding:14px 16px;background:#f7faf7;border:1px solid #edf0eb;border-radius:11px}.data-item span{font-size:11px;color:#8a9b8d}.data-item strong{display:block;font-size:18px;margin-top:5px;letter-spacing:-.03em}.data-item small{display:block;font-size:10px;color:#9aac9f;margin-top:4px}.summary-section{border-top:1px solid #e9ede7;padding:18px 0}.summary-section h3,.questions-card h3{font-size:14px;margin:0 0 10px}.summary-section p{color:#75877d;font-size:12px;line-height:1.9;margin:0}.questions-card{border-top:1px solid #e9ede7;padding-top:19px}.questions-card .section-heading{margin-bottom:10px}.questions-card small{font-size:10px;color:#98aa9d}.question-item{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border:1px solid #edf0ea;border-radius:10px;padding:10px 11px;margin-bottom:8px;font-size:12px}.question-item button{flex:none;border:0;background:#f5f7f3;color:#82948a;padding:5px 10px;border-radius:8px}.question-composer{display:flex;gap:8px;margin-top:13px}.question-composer input{min-width:0;flex:1;border:1px solid #dce8dd;border-radius:10px;padding:10px 12px;font-size:12px}.sheet-disclaimer{margin:22px 0 0;color:#a0ab9d;font-size:10px;border-top:1px solid #e9ede7;padding-top:13px;line-height:1.8}
.setting-card{display:flex;align-items:center;justify-content:space-between;gap:12px}.setting-card h2{font-size:16px;margin-bottom:4px}.setting-card p{font-size:12px;color:#90a097;margin:0;line-height:1.8}.toggle{min-width:60px;height:34px;border:0;border-radius:50px;background:#dbe5dc;padding:4px;display:flex;align-items:center}.toggle span{display:block;width:26px;height:26px;border-radius:50%;background:white;transition:transform .18s}.toggle[aria-pressed=true]{background:#4f9982}.toggle[aria-pressed=true] span{transform:translateX(26px)}.compact{margin:15px 0 0}.danger-button{color:#9f5e52;border-color:#edcfc7}.privacy-card{background:#eaf4ed;border-radius:15px;padding:22px 25px;color:#597c69}.privacy-card h3{font-size:15px}.privacy-card ul{font-size:12px;line-height:2;padding-left:18px;margin:0}
.modal-backdrop{position:fixed;z-index:100;inset:0;background:#1d372d9c;display:grid;place-items:center;padding:16px}.modal-backdrop[hidden]{display:none}.help-dialog{width:min(100%,470px);background:white;border-radius:19px;padding:28px;box-shadow:0 25px 75px #153a3580}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.modal-head h2{font-size:20px;letter-spacing:-.05em}.close-button{border:0;border-radius:9px;background:#f1f4ee;font-size:29px;line-height:1;width:42px;height:42px}.help-dialog p{font-size:13px;color:#6d7b72;line-height:1.9}.emergency-button{display:block;text-decoration:none;text-align:center;background:#ae4e3c;color:white;padding:14px;border-radius:11px;font-weight:800;margin:15px 0 9px}.secondary-button.full{display:block;width:100%}.help-dialog small{display:block;font-size:11px;margin-top:16px;color:#88988d}.toast{position:fixed;bottom:23px;left:50%;transform:translateX(-50%) translateY(20px);background:#244c42;color:#fff;border-radius:12px;padding:12px 18px;box-shadow:0 12px 30px #0a3e364d;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:110}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.bottom-nav{display:none}.large-text{font-size:18px}.large-text .page-head p,.large-text .intro,.large-text .choice-card,.large-text .record-item,.large-text .summary-section p{font-size:1rem}
@media(max-width:900px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.topbar{padding:0 34px}main{padding:26px 34px 90px}.welcome-art{margin-right:0;transform:scale(.85);transform-origin:top right}.panel-decoration{opacity:.5}}
@media(max-width:720px){.app-shell{display:block}.sidebar{display:none}.topbar{height:64px;padding:0 17px;justify-content:space-between}.mobile-brand{display:flex;align-items:center;gap:7px;font-size:13px;color:#5f8576}.mobile-brand b{font-family:Georgia,serif;font-size:17px;color:#235e54}.status-pill{font-size:10px;padding:7px 8px}.help-button{padding:9px 10px;font-size:11px}.topbar-right{gap:6px}main{padding:20px 18px 112px}.demo-banner{font-size:10px;margin-bottom:26px;padding:10px 12px}.welcome-line{min-height:178px}.welcome-line h1{font-size:32px}.intro{font-size:12px;max-width:270px}.welcome-art{width:105px;transform:scale(.63);margin:-4px -7px 0 -29px}.primary-panel{padding:28px 25px;min-height:267px}.primary-panel h2{font-size:25px}.primary-panel p{font-size:12px}.panel-decoration{right:-80px;opacity:.35}.quick-actions{gap:10px}.action-card{padding:13px;gap:9px;min-height:94px}.action-icon{width:40px;height:40px;font-size:20px}.action-card strong{font-size:12px}.action-card small{font-size:10px}.action-arrow{display:none}.surface{padding:19px 17px}.bottom-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;height:73px;display:flex;justify-content:space-evenly;background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0)}.bottom-item{flex:1;border:0;background:none;color:#94a59a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:750}.bottom-item span{font-size:23px;line-height:1.15}.bottom-item.active{color:#317d69}.stats-grid{gap:7px}.stat{padding:14px 10px}.stat strong{font-size:18px}.stat small{font-size:9px}.summary-sheet{padding:23px 17px}.record-item{display:block}.record-summary{justify-content:flex-start;margin-top:12px}.welcome-art .art-heart{font-size:35px}.toast{bottom:84px;width:max-content;max-width:90vw;text-align:center}}
@media(max-width:390px){.welcome-art{margin-left:-48px}.welcome-line h1{font-size:29px}.intro{max-width:225px}.quick-actions{grid-template-columns:1fr}.action-card{min-height:72px}.choice-grid{grid-template-columns:1fr}.summary-data{grid-template-columns:1fr}.wizard-shell{padding:20px 16px}.visit-toolbar .print-button{width:100%;margin:5px 0 0}.status-pill{display:none}}
@media print{body{background:#fff}.sidebar,.topbar,.bottom-nav,.demo-banner,.visit-toolbar,.page-head,.questions-card .question-composer,.question-item button,.skip-link,.toast{display:none!important}.app-shell{display:block}.view{display:none!important}#view-visit{display:block!important}main{max-width:none;padding:0}#print-sheet{box-shadow:none;border:0;padding:0;border-radius:0}.summary-sheet{width:100%}.questions-card{break-inside:avoid}.sheet-disclaimer{color:#444}}
/* Coexist with the original patient notebook without touching its data. */
.original-notebook-link { display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid #c4d9ff;border-radius:12px;color:#246BFE;background:#eff5ff;font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap; }
.original-notebook-link:hover,.original-notebook-link:focus-visible { background:#dfeaff;outline:2px solid #246BFE;outline-offset:2px; }
@media(max-width:680px){.original-notebook-link{font-size:12px;white-space:normal;max-width:125px;line-height:1.4;text-align:center;}}
