:root{font-family:Microsoft YaHei UI,PingFang SC,Noto Sans SC,system-ui,sans-serif;color:#17383b;background:#edf3f2;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#17383b;--muted:#698083;--teal:#0b5c63;--teal-2:#14777d;--mint:#dff1ee;--line:#d6e2e0;--paper:#fff;--warning:#b86711;--danger:#a83a3a;--shadow:0 12px 32px rgba(28,66,69,.08)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#e8f1ef 0,#f6f8f7 260px,#f4f7f6)}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit}.app-shell{min-height:100vh}.topbar{height:68px;position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;padding:0 max(20px,calc((100vw - 1100px)/2));background:#f4f8f7f0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid rgba(130,157,157,.2)}.topbar>div:nth-child(2){display:flex;flex-direction:column}.topbar strong{font-size:1rem;letter-spacing:.02em}.topbar span{font-size:.74rem;color:var(--muted)}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#fff;background:var(--teal);box-shadow:0 7px 18px #0b5c6338}.privacy-chip{margin-left:auto!important;display:flex!important;flex-direction:row!important;align-items:center;gap:6px;padding:7px 10px;border-radius:99px;background:#e3efed;color:var(--teal);font-size:.78rem}.main-content{width:min(1100px,calc(100% - 32px));margin:0 auto;padding:34px 0 104px}.narrow,.scale-page{width:min(760px,100%);margin:0 auto}.bottom-nav{position:fixed;z-index:30;bottom:0;left:50%;transform:translate(-50%);display:flex;width:min(580px,calc(100% - 24px));padding:7px 10px calc(7px + env(safe-area-inset-bottom));background:#fffffff5;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -8px 30px #1e44451a}.bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 4px;color:#708486;text-decoration:none;border-radius:11px;font-size:.72rem}.bottom-nav a.active{color:var(--teal);background:#e7f2f0}.page-heading,.subject-hero,.visit-header,.scale-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.page-heading h1,.subject-hero h1,.visit-header h1,.scale-header h1{margin:2px 0 6px;font-size:clamp(1.9rem,5vw,2.65rem);line-height:1.12;letter-spacing:-.035em}.page-heading p,.subject-hero p,.scale-header p{margin:0;color:var(--muted);line-height:1.55}.eyebrow{color:var(--teal)!important;font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 17px;border:0;border-radius:12px;text-decoration:none;font-weight:700;cursor:pointer}.button.primary{background:var(--teal);color:#fff;box-shadow:0 7px 18px #0b5c632e}.button.secondary{background:#dff0ee;color:var(--teal)}.button.ghost{background:#fff;color:var(--teal);border:1px solid var(--line)}.button.danger-outline{background:#fff;color:var(--danger);border:1px solid #e5bcbc}.filter-bar{display:flex;gap:10px;margin-bottom:18px}.search{flex:1;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:0 14px}.search input{width:100%;height:46px;border:0;outline:0;background:transparent}.filter-bar select{min-width:145px;padding:0 12px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink)}.subject-list,.timeline,.module-list,.question-list,.data-actions,.settings-list{display:grid;gap:11px}.subject-card,.time-card,.module-card{display:flex;align-items:center;gap:14px;padding:15px 16px;background:var(--paper);border:1px solid var(--line);border-radius:15px;text-decoration:none;box-shadow:0 5px 16px #193d3f09;transition:transform .15s,border-color .15s}.subject-card:hover,.time-card:hover,.module-card:not(.na):hover{transform:translateY(-1px);border-color:#9ebfbb}.avatar{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:13px;background:#dcecea;color:var(--teal);font-weight:800}.subject-main{min-width:0;flex:1}.subject-title{display:flex;align-items:center;gap:10px;margin-bottom:9px}.subject-title strong{font-size:1.08rem}.group-badge,.missing-tag{padding:3px 8px;border-radius:99px;font-size:.72rem;font-weight:700}.group-badge.g1{background:#dff0ee;color:#075860}.group-badge.g2{background:#e8e9f5;color:#52558b}.progress-row{display:flex;align-items:center;gap:10px}.progress{height:6px;flex:1;overflow:hidden;border-radius:9px;background:#e6eeed}.progress span,.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--teal),#36a59b);border-radius:9px}.progress-row small{width:36px;color:var(--muted)}.empty-state{display:flex;min-height:290px;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px;border:1px dashed #b9cecb;border-radius:18px;color:var(--muted);background:#ffffff8c}.empty-state h2{margin:12px 0 4px;color:var(--ink)}.empty-state p{margin:0 0 20px}.empty-state.success svg{color:#2a8a65}.crumb{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.crumb>a{display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:var(--teal);font-weight:700}.save-state{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:.78rem}.form-card{padding:22px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field-grid label,.visit-header label,.numeric-entry{display:flex;flex-direction:column;gap:7px}.field-grid label>span,.visit-header label span,.numeric-entry span,.vital-card>span{font-size:.82rem;color:#536d70;font-weight:700}.field-grid label.full{grid-column:1/-1}.field-grid input,.field-grid select,.field-grid textarea,.visit-header input,.numeric-entry input{width:100%;border:1px solid #cbdad8;border-radius:11px;background:#fbfcfc;color:var(--ink);padding:11px 12px;outline:0}.field-grid input:focus,.field-grid select:focus,.field-grid textarea:focus,.visit-header input:focus,.numeric-entry input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #0b5c631a}.field-grid input[readonly]{background:#eef3f2}.form-actions{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.error-text{color:var(--danger);font-size:.86rem}.subject-hero{align-items:center;padding:24px;background:linear-gradient(125deg,#0b5c63,#164d59);border-radius:20px;color:#fff;box-shadow:0 18px 40px #0b484f2e}.subject-hero p,.subject-hero .eyebrow{color:#cfe4e2!important}.section-title{display:flex;justify-content:space-between;margin:28px 0 12px}.section-title h2{margin:0 0 3px}.section-title p{margin:0;color:var(--muted);font-size:.85rem}.time-card .status-dot,.module-card .status-dot{flex:0 0 auto}.time-card>div,.module-card>div{display:flex;min-width:0;flex:1;flex-direction:column}.time-card>div span,.module-card>div span{color:var(--muted);font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time-card>small,.module-card>small{color:var(--muted)}.status-dot{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#edf1f0;color:#fff;font-size:.82rem;font-weight:900}.status-dot.done{background:#2d906c}.status-dot.partial{background:#d58227}.status-dot.empty{border:2px solid #c7d3d2;background:transparent}.visit-header{align-items:end}.visit-header label{min-width:190px}.module-card.na{background:#f4f7f6a6;box-shadow:none;color:#849394}.module-card.na svg{color:#aebbb9}.scale-header{align-items:center}.scale-header>div:first-child{max-width:650px}.scale-header p{font-size:.86rem}.score-pill{display:flex!important;min-width:82px;flex-direction:column;align-items:center;padding:11px;border-radius:15px;background:#dcefeb;color:var(--teal)}.score-pill strong{font-size:1.6rem}.score-pill span{font-size:.72rem}.scale-progress{position:sticky;top:78px;z-index:10;display:flex;align-items:center;gap:15px;margin-bottom:12px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#fffffff0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--muted);font-size:.8rem}.scale-progress .progress{height:7px}.question-card{scroll-margin-top:145px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 5px 17px #1c3c3e09}.question-card.answered{border-color:#afd0ca}.question-heading{display:flex;align-items:flex-start;gap:11px}.question-heading>span{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border-radius:9px;background:#e4efed;color:var(--teal);font-size:.78rem;font-weight:800}.question-heading>div{flex:1}.question-heading h2{margin:2px 0 0;font-size:1rem;line-height:1.5}.question-heading p{margin:5px 0 0;color:var(--muted);font-size:.8rem}.question-heading>svg{color:#2d906c}.score-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px;margin-top:15px}.score-options button{min-height:62px;padding:8px 5px;border:1px solid #c9dbd8;border-radius:11px;background:#f8fbfa;color:var(--ink);cursor:pointer}.score-options button b{display:block;font-size:1.2rem}.score-options button small{display:block;min-height:14px;margin-top:2px;color:var(--muted);font-size:.68rem;line-height:1.2}.score-options button.selected{border-color:var(--teal);background:var(--teal);color:#fff;box-shadow:0 5px 14px #0b5c6333}.score-options button.selected small{color:#d6efec}.anchors{margin-top:12px;border-top:1px solid #edf1f0;padding-top:9px;color:var(--muted);font-size:.8rem}.anchors summary{display:flex;align-items:center;gap:6px;cursor:pointer;color:var(--teal);font-weight:700}.anchors p{display:flex;gap:8px;margin:7px 0}.anchors p b{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;border-radius:6px;background:#e5efed;color:var(--teal)}.clear-button{margin-top:9px;padding:4px 0;border:0;background:none;color:#89999a;font-size:.75rem;text-decoration:underline;cursor:pointer}.numeric-entry{margin-top:15px}.numeric-entry input{font-size:1.15rem}.na-callout{margin-top:14px;padding:12px;border-radius:10px;background:#f0f3f3;color:#607476;font-weight:700}.na-callout small{display:block;margin-top:4px;font-weight:400}.completion-banner{scroll-margin-top:140px;display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:18px;border-radius:16px;background:#fff4e7;color:#87500e}.completion-banner.complete{background:#e2f2eb;color:#176547}.completion-banner div{display:flex;flex-wrap:wrap;gap:7px;margin-top:6px}.completion-banner small{padding:3px 7px;border-radius:7px;background:#fff9}.vitals-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.vital-card{padding:15px;background:#fff;border:1px solid var(--line);border-radius:15px}.vital-card>div{display:flex;align-items:end;gap:8px;margin-top:8px}.vital-card input{width:100%;min-width:0;border:0;border-bottom:2px solid #c8d9d6;background:transparent;font-size:1.5rem;font-weight:700;outline:0}.vital-card b{font-size:.75rem;color:var(--muted);white-space:nowrap}.warning{display:flex;gap:5px;margin-top:9px;color:var(--warning);line-height:1.4}.warning svg{flex:0 0 auto}.delta-card{margin-top:14px;padding:18px;background:#173f46;color:#fff;border-radius:17px}.delta-card h2{margin:0 0 14px;font-size:1rem}.delta-card>div{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.delta-card span{display:flex;flex-direction:column;padding:9px;border-radius:10px;background:#ffffff14}.delta-card small{color:#bdd2d1}.delta-card strong{font-size:1.25rem}.delta-card p{margin:13px 0 0;color:#bdd2d1;font-size:.77rem}.count-badge{display:grid;place-items:center;min-width:58px;height:58px;border-radius:16px;font-size:1.35rem;font-weight:800}.count-badge.warn{background:#fff0df;color:#aa5f0c}.count-badge.ok{background:#e1f1e9;color:#237357}.notice{display:flex;align-items:flex-start;gap:10px;margin:12px 0;padding:13px 15px;border:1px solid #e9cfaa;border-radius:12px;background:#fff9ef;color:#78501f}.notice>div{display:flex;flex-direction:column}.notice span{font-size:.84rem}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:15px;background:#fff}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{padding:11px 13px;text-align:left;border-bottom:1px solid #e8eeee;font-size:.82rem}th{position:sticky;top:0;background:#edf4f2;color:#526b6d;font-size:.73rem;text-transform:uppercase}td a{color:var(--teal);font-weight:700}.missing-tag{background:#fff0df;color:#a05d14}.stat-strip{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:16px;border:1px solid var(--line);border-radius:15px;background:#fff}.stat-strip span{display:flex;flex-direction:column;padding:16px 18px}.stat-strip span+span{border-left:1px solid var(--line)}.stat-strip strong{font-size:1.5rem}.stat-strip small{color:var(--muted)}.data-actions article{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:15px;padding:17px;background:#fff;border:1px solid var(--line);border-radius:16px}.data-actions h2{margin:0 0 4px;font-size:1rem}.data-actions p{margin:0;color:var(--muted);font-size:.82rem;line-height:1.5}.action-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:13px}.action-icon.excel{background:#e2f1e9;color:#24704f}.action-icon.json{background:#e5ebf5;color:#485f8e}.action-icon.restore{background:#fff0df;color:#a86719}.security-note{margin-top:18px;padding:18px;border-left:4px solid var(--teal);border-radius:0 13px 13px 0;background:#e4efed}.security-note p{margin:5px 0 0;color:#587174;line-height:1.55;font-size:.86rem}.settings-list article{display:flex;align-items:flex-start;gap:14px;padding:17px;background:#fff;border:1px solid var(--line);border-radius:15px}.settings-list svg{color:var(--teal)}.settings-list div{display:flex;flex-direction:column;gap:4px}.settings-list span{color:var(--muted);font-size:.84rem;line-height:1.5}.loading{display:grid;place-items:center;min-height:280px;color:var(--muted)}@media(max-width:700px){.topbar{height:60px;padding:0 16px}.privacy-chip{display:none!important}.main-content{width:min(100% - 20px,1100px);padding-top:22px}.page-heading,.subject-hero,.scale-header{gap:12px}.page-heading h1,.subject-hero h1,.visit-header h1,.scale-header h1{font-size:1.8rem}.field-grid,.vitals-grid{grid-template-columns:1fr}.field-grid label.full{grid-column:auto}.filter-bar{align-items:stretch}.filter-bar select{min-width:116px}.subject-hero{align-items:flex-start;padding:19px}.subject-hero .button{padding:0 12px;font-size:.8rem}.visit-header{align-items:flex-start;flex-direction:column}.visit-header label{width:100%}.score-pill{min-width:68px}.scale-progress{top:68px}.question-card{padding:15px}.score-options{grid-template-columns:repeat(4,1fr)}.score-options button{min-height:58px}.data-actions article{grid-template-columns:46px 1fr}.data-actions article .button{grid-column:1/-1;width:100%}.action-icon{width:43px;height:43px}.delta-card>div{grid-template-columns:repeat(2,1fr)}.table-wrap{margin-left:-10px;margin-right:-10px;border-radius:0}.bottom-nav{width:100%;border-left:0;border-right:0;border-radius:16px 16px 0 0}.form-card{padding:16px}.form-actions{align-items:stretch;flex-direction:column;gap:10px}.form-actions .button{width:100%}}@media(max-width:420px){.filter-bar{flex-direction:column}.filter-bar select{height:44px}.score-options{grid-template-columns:repeat(3,1fr)}.question-heading h2{font-size:.95rem}.time-card,.module-card{padding:14px 12px}.time-card>small,.module-card>small{font-size:.7rem}.stat-strip span{padding:12px}.page-heading>svg{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.entry-banner{position:relative;z-index:25;padding:9px 16px;text-align:center;background:#fff1cf;color:#714b08;font-size:.84rem;font-weight:700}.entry-banner.danger{background:#ffe2e2;color:#8a2626}.entry-block{display:flex;min-height:320px;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:28px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:18px}.entry-block h1,.entry-block p{margin:0}.safety-overlay{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:20px;background:#0c2225b8;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.safety-dialog{width:min(460px,100%);padding:25px;background:#fff;border-radius:20px;box-shadow:0 24px 70px #00000047}.safety-dialog h1{margin:3px 0 15px}.safety-dialog p{line-height:1.55;color:var(--muted)}.safety-dialog .safety-emphasis{padding:12px;border-radius:12px;background:#e2f2ef;color:var(--teal);font-weight:800}.safety-dialog .button{width:100%;margin-top:8px}.button:disabled{cursor:not-allowed;opacity:.5}.stat-strip.five{grid-template-columns:repeat(5,1fr)}.action-buttons{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.data-actions .restore-confirm{border-color:#e1ad69;background:#fffaf2}.restore-confirm label,.inline-input{display:flex;flex-direction:column;gap:5px;margin-top:9px}.restore-confirm input,.inline-input input{border:1px solid #cbdad8;border-radius:9px;padding:9px 10px;outline:0}.text-button{width:max-content;padding:3px 0;border:0;background:none;color:var(--teal);font-weight:700;text-decoration:underline;cursor:pointer}.security-note .button{margin-top:12px}.security-note p strong{color:var(--ink);overflow-wrap:anywhere}@media(max-width:700px){.stat-strip.five{grid-template-columns:repeat(5,minmax(62px,1fr));overflow-x:auto}.stat-strip.five span{padding:10px}.stat-strip.five strong{font-size:1.15rem}.data-actions .action-buttons{grid-column:1/-1}.action-buttons .button{flex:1}.restore-confirm>button{grid-column:1/-1;width:100%}}.scale-page .crumb,.scale-page .scale-header{margin-bottom:14px}.scale-page .question-list{gap:7px}.scale-page .question-card{padding:11px 12px;border-radius:13px}.scale-page .question-heading{align-items:center;gap:8px}.scale-page .question-heading>span{width:25px;height:25px;flex-basis:25px;border-radius:7px}.scale-page .question-heading h2{margin:0;font-size:.94rem;line-height:1.35}.scale-page .question-heading p{margin-top:2px}.scale-page .score-options{grid-template-columns:repeat(auto-fit,minmax(42px,1fr));gap:5px;margin-top:8px}.scale-page .score-options button{min-height:46px;padding:4px 3px;border-radius:9px}.scale-page .score-options button b{font-size:1.05rem;line-height:1.1}.scale-page .score-options button small{min-height:0;margin-top:1px;font-size:.62rem}.scale-page .score-options button small:empty{display:none}.scale-page .anchors{margin-top:6px;padding-top:5px;font-size:.75rem}.scale-page .anchors summary{min-height:24px}.scale-page .anchors p{margin:5px 0}.scale-page .clear-button{margin-top:3px}.scale-page .numeric-entry{margin-top:8px}@media(max-width:700px){.scale-page .crumb,.scale-page .scale-header{margin-bottom:10px}.scale-page .scale-header h1{font-size:1.38rem}.scale-page .scale-header p{font-size:.76rem;line-height:1.35}.scale-page .score-pill{min-width:58px;padding:7px;border-radius:11px}.scale-page .score-pill strong{font-size:1.3rem}.scale-page .scale-progress{margin-bottom:7px;padding:7px 10px}.scale-page .question-card{padding:9px 10px}.scale-page .question-heading h2{font-size:.9rem}.scale-page .question-heading>svg{width:17px;height:17px}.scale-page .score-options{grid-template-columns:repeat(auto-fit,minmax(40px,1fr));gap:4px;margin-top:7px}.scale-page .score-options button{min-height:44px}}.scale-page .score-options button{min-width:44px;padding:0 1px;border:0;border-radius:8px;background:transparent;box-shadow:none}.scale-page .score-options button b{display:grid;place-items:center;width:42px;height:42px;margin:0 auto;border:1.5px solid #b9d0cc;border-radius:50%;background:#f8fbfa;transition:background .15s,border-color .15s,transform .15s}.scale-page .score-options button:hover b{border-color:var(--teal)}.scale-page .score-options button:active b{transform:scale(.94)}.scale-page .score-options button.selected{border:0;background:transparent;color:var(--ink);box-shadow:none}.scale-page .score-options button.selected b{border-color:var(--teal);background:var(--teal);color:#fff;box-shadow:0 4px 11px #0b5c6338}.scale-page .score-options button.selected small{color:var(--teal);font-weight:700}.scale-page .score-options button:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
