:root{--ink:#121212;--paper:#fff;--muted:#707070;--rule:#dedede;--wash:#f5f5f3;--inverse:#fff;--shadow:0 18px 50px #0000000a;color-scheme:light;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif}html[data-theme="dark"]{--ink:#f3f3f0;--paper:#121212;--muted:#9d9d99;--rule:#383838;--wash:#1b1b1a;--inverse:#121212;--shadow:0 18px 50px #00000033;color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--paper);color:var(--ink);font-size:14px;line-height:1.55;transition:background .28s,color .28s}button,input{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}.site-header{height:72px;max-width:1200px;margin:0 auto;padding:0 28px;display:flex;align-items:center;border-bottom:1px solid var(--rule);gap:24px}.wordmark{display:flex;align-items:center;font-size:17px;font-weight:700;letter-spacing:-.03em}.wordmark img{width:94px;height:30px;display:block;object-fit:contain;object-position:left center}.site-header nav{display:flex;align-items:center;gap:20px;margin-left:auto}.site-header nav a{font-size:13px;color:var(--muted);transition:color .15s}.site-header nav a:hover,.site-header nav a.active{color:var(--ink)}.site-header nav a.active,.nav-strong{font-weight:680}.nav-strong{color:var(--ink)!important}.theme-toggle,.logout-button{border:0;background:transparent;color:var(--muted);font-size:11px;padding:5px 0}.logout-button{margin-left:-12px}.theme-toggle:hover,.logout-button:hover{color:var(--ink)}.kicker,.panel-index{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;letter-spacing:.12em;color:var(--muted);margin:0;text-transform:uppercase}.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 17px;border:1px solid var(--ink);font-weight:650;font-size:13px;transition:transform .15s,background .15s,color .15s}.button:hover{transform:translateY(-1px)}.button-fill{background:var(--ink);color:var(--inverse)}.button-plain{background:transparent;color:var(--ink);border-color:var(--rule)}.button-plain:hover{border-color:var(--ink)}.home-main{max-width:1200px;padding:0 28px;margin:auto}.hero{min-height:calc(100vh - 146px);display:grid;grid-template-columns:1.08fr .92fr;gap:44px;align-items:center}.hero-copy{max-width:540px}.hero h1,.auth-intro h1,.page-head h1{font-weight:520;letter-spacing:-.065em;line-height:1.02;margin:14px 0 22px}.hero h1{font-size:clamp(48px,6.4vw,84px)}.hero h1 em{font-family:ui-serif,"Songti SC",serif;font-weight:400}.hero-text{max-width:410px;color:var(--muted);font-size:15px;margin:0}.hero-actions{display:flex;gap:10px;margin-top:29px}.particle-stage{position:relative;width:min(38vw,450px);aspect-ratio:1;margin-left:auto;border:1px solid var(--rule);overflow:hidden;cursor:crosshair}.particle-stage canvas{width:100%;height:100%;display:block}.particle-stage p{position:absolute;left:15px;bottom:12px;margin:0;font-family:ui-monospace,monospace;font-size:9px;letter-spacing:.12em;color:var(--muted);pointer-events:none}.home-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--rule);padding:17px 0 24px;font-size:10px;color:var(--muted)}.home-footer p{margin:0}.auth-main{max-width:1010px;margin:0 auto;min-height:calc(100vh - 72px);padding:68px 28px;display:grid;grid-template-columns:1fr 390px;gap:105px;align-items:center}.auth-intro h1{font-size:clamp(40px,4.9vw,62px)}.auth-intro>p:not(.kicker){max-width:350px;color:var(--muted);font-size:15px;margin:0}.auth-panel{border-top:2px solid var(--ink);padding-top:15px}.auth-panel h2{font-size:24px;font-weight:560;letter-spacing:-.05em;margin:8px 0 25px}.form-stack{display:grid;gap:15px}.form-stack label{display:grid;gap:6px;font-size:12px;font-weight:650}.form-stack input{height:43px;padding:0 11px;border:1px solid var(--rule);border-radius:0;background:transparent;color:var(--ink);outline:none}.form-stack input:focus{border-color:var(--ink)}.input-action{position:relative}.input-action input{width:100%;padding-right:52px}.password-toggle{position:absolute;right:0;top:0;height:43px;border:0;border-left:1px solid var(--rule);background:transparent;color:var(--muted);font-size:11px;padding:0 11px}.form-message{min-height:17px;color:#b52929;font-size:12px;margin:0}.form-footnote{font-size:12px;color:var(--muted);margin:19px 0 0}.form-footnote a{color:var(--ink);border-bottom:1px solid var(--ink)}.app-main{max-width:1080px;margin:0 auto;padding:58px 28px 38px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:38px}.page-head h1{font-size:43px;margin:7px 0 0}.page-head>p{max-width:245px;font-size:13px;color:var(--muted);margin:0}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--ink);border-bottom:1px solid var(--rule);margin-bottom:34px}.metric-row article{padding:16px 0 17px;border-right:1px solid var(--rule)}.metric-row article+article{padding-left:20px}.metric-row article:last-child{border:0}.metric-row span{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.metric-row strong{font-size:31px;font-weight:520;letter-spacing:-.055em}.dashboard-grid{display:grid;grid-template-columns:1.38fr .62fr;gap:18px}.paper-block{border:1px solid var(--rule);padding:18px;min-height:180px}.block-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--rule);font-size:12px}.block-head p{margin:0;color:var(--muted)}.block-head a{border-bottom:1px solid var(--ink)}.block-label{font-family:ui-monospace,monospace;font-size:10px;letter-spacing:.12em;color:var(--muted);margin:0}.quiet-block{background:var(--wash)}.quiet-block h2{font-size:21px;font-weight:550;letter-spacing:-.05em;margin:23px 0 8px}.quiet-block>p:not(.block-label){font-size:13px;color:var(--muted);margin:0 0 22px}.text-link{font-size:13px;border-bottom:1px solid var(--ink)}.latest-record{padding-top:15px}.latest-card{display:grid;grid-template-columns:100px 1fr;gap:16px}.latest-card img,.record-thumb{width:100px;height:84px;object-fit:cover;filter:grayscale(1)}.latest-card h3,.record-text h3{font-size:15px;font-weight:620;margin:0}.latest-card p,.record-text p{font-size:12px;color:var(--muted);margin:5px 0}.status{font-family:ui-monospace,monospace;font-size:10px;letter-spacing:.04em;color:var(--muted)}.medical-note{border-top:1px solid var(--rule);margin:42px 0 0;padding-top:14px;color:var(--muted);font-size:11px}.medical-note code{font-family:ui-monospace,monospace;color:var(--ink)}.device-table,.record-list{display:grid}.device-row{display:grid;grid-template-columns:1.3fr 1fr auto;gap:16px;align-items:center;padding:17px 0;border-bottom:1px solid var(--rule)}.device-row:last-child{border-bottom:0}.device-row h3{font-size:14px;font-weight:620;margin:0}.device-row p{font-family:ui-monospace,monospace;font-size:10px;color:var(--muted);margin:3px 0 0;word-break:break-all}.device-row span{font-size:11px;color:var(--muted)}.text-button{border:0;border-bottom:1px solid var(--rule);background:transparent;color:var(--muted);padding:0;font-size:11px}.text-button:hover{color:var(--ink);border-color:var(--ink)}.record-row{display:grid;grid-template-columns:124px 1fr auto;gap:18px;align-items:center;padding:15px 0;border-bottom:1px solid var(--rule)}.record-row:last-child{border-bottom:0}.record-thumb{width:124px;height:90px}.record-text h3{font-size:14px}.record-date{font-family:ui-monospace,monospace;font-size:10px;color:var(--muted);text-align:right}.modal{width:min(460px,calc(100vw - 32px));border:1px solid var(--rule);padding:0;background:var(--paper);color:var(--ink);box-shadow:var(--shadow)}.modal::backdrop{background:#0008}.modal form,.modal section{display:grid;gap:14px;padding:24px}.modal h2{font-size:24px;font-weight:560;letter-spacing:-.05em;margin:0}.modal p:not(.panel-index){font-size:13px;color:var(--muted);margin:0}.modal label{display:grid;gap:6px;font-size:12px;font-weight:650}.modal input{height:43px;border:1px solid var(--rule);background:transparent;color:var(--ink);padding:0 11px;outline:0}.modal input:focus{border-color:var(--ink)}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:7px}.token-value{display:block;overflow-wrap:anywhere;background:var(--wash);padding:12px;font-family:ui-monospace,monospace;font-size:12px;color:var(--ink)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}.particle-stage canvas{display:none}.particle-stage:after{content:"TOOTH / RECORD";position:absolute;inset:0;display:grid;place-items:center;font:10px ui-monospace,monospace;letter-spacing:.12em;color:var(--muted)}}@media(max-width:780px){.site-header{height:62px;padding:0 18px;gap:13px}.wordmark img{width:78px;height:25px}.site-header nav{gap:14px}.site-header nav a{font-size:12px}.theme-toggle{font-size:10px}.logout-button{display:none}.home-main,.app-main{padding-left:18px;padding-right:18px}.hero{grid-template-columns:1fr;min-height:auto;padding:72px 0 75px}.hero h1{font-size:56px}.particle-stage{width:100%;max-width:360px;margin:8px auto 0}.home-footer{display:grid}.auth-main{grid-template-columns:1fr;gap:45px;padding:58px 24px}.auth-intro h1{font-size:48px}.page-head{align-items:flex-start;flex-direction:column;margin-bottom:28px}.page-head h1{font-size:40px}.metric-row{grid-template-columns:1fr}.metric-row article,.metric-row article+article{padding:13px 0;border-right:0;border-bottom:1px solid var(--rule)}.dashboard-grid{grid-template-columns:1fr}.device-row{grid-template-columns:1fr auto}.device-row p{grid-column:1/2}.device-row span{display:none}.record-row{grid-template-columns:82px 1fr}.record-thumb{width:82px;height:73px}.record-date{display:none}.modal-actions{flex-wrap:wrap}.medical-note{margin-top:28px}}
