:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#1f2933;background:#f6f7f9;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:16px}*{box-sizing:border-box}body{background:#f6f7f9;min-height:100vh;margin:0}a{color:#2563eb;text-decoration:none}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}.app-shell{max-width:720px;min-height:100vh;margin:0 auto;padding:24px 20px 56px}.page-header{justify-content:space-between;align-items:center;padding:12px 4px 20px;display:flex}.brand{color:#2563eb;font-size:20px;font-weight:700}.back-link{color:#2563eb;background:0 0;border:0;padding:6px 10px;font-size:14px}.back-link:hover{text-decoration:underline}.page-title{color:#111827;margin:0 0 8px;font-size:28px;font-weight:700}.page-subtitle{color:#5b6472;margin:0 0 20px;font-size:14px;line-height:1.55}.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin:16px 0;padding:20px}.card .section-title{color:#111827;margin:0 0 12px;font-size:16px;font-weight:700}.muted{color:#667085;font-size:14px;line-height:1.55}.stack{flex-direction:column;gap:12px;display:flex}.row{align-items:center;gap:10px;display:flex}.btn{border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;min-height:44px;padding:0 18px;font-size:15px;font-weight:600;transition:background .15s,border-color .15s;display:inline-flex}.btn.primary{color:#fff;background:#2563eb;border-color:#2563eb}.btn.primary:hover:not(:disabled){background:#1d4ed8}.btn.secondary{color:#1f2933;background:#fff;border-color:#cbd5e1}.btn.secondary:hover:not(:disabled){background:#f3f4f6}.btn.danger{color:#fff;background:#dc2626;border-color:#dc2626}.btn.full{width:100%}.btn-link.danger{color:#b42318;background:0 0;border:0;border-radius:6px;padding:6px 10px;font-size:14px}.btn-link.danger:hover:not(:disabled){background:#fef3f2}.error{color:#b42318;background:#fef3f2;border:1px solid #fecdca;border-radius:8px;margin:12px 0;padding:12px 14px;font-size:14px;line-height:1.5}.hint{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;margin:12px 0;padding:12px 14px;font-size:14px}.dropzone{text-align:center;color:#475569;cursor:pointer;background:#fff;border:2px dashed #cbd5e1;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:28px 16px;transition:border-color .15s,background .15s;display:flex}.dropzone.dragging,.dropzone:hover{background:#eff6ff;border-color:#2563eb}.dropzone input[type=file]{display:none}.preview{background:#f6f7f9;border:1px solid #e5e7eb;border-radius:12px;max-width:100%;max-height:320px;margin-top:16px}.consent-row{color:#1f2933;align-items:flex-start;gap:10px;font-size:14px;display:flex}.consent-row input{margin-top:3px}.score-box{align-items:baseline;gap:12px;margin-bottom:8px;display:flex}.score-value{color:#2563eb;font-size:56px;font-weight:800;line-height:1}.score-label{color:#5b6472;font-size:14px}.confidence{color:#475569;margin-top:6px;font-size:13px}.observation-item{border-top:1px solid #eef2f7;padding:14px 0}.observation-item:first-of-type{border-top:0}.observation-title{margin-bottom:6px;font-weight:700}.bullet{margin:0;padding:0;list-style:none}.bullet li{color:#4b5563;padding:6px 0 6px 18px;font-size:14px;line-height:1.55;position:relative}.bullet li:before{content:"";background:#2563eb;border-radius:50%;width:6px;height:6px;position:absolute;top:14px;left:0}.card.risk{background:#fff7ed;border-color:#fed7aa}.history-row{cursor:pointer;border-top:1px solid #eef2f7;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;display:flex}.history-row:first-of-type{border-top:0}.history-row .meta{flex:1}.history-row .status{font-weight:700}.history-row .time{color:#667085;margin-top:2px;font-size:13px}.spinner{border:2px solid;border-bottom-color:#0000;border-radius:50%;width:18px;height:18px;animation:1s linear infinite rotate;display:inline-block}@keyframes rotate{to{transform:rotate(360deg)}}.diagnosis-card{color:#fff;background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 100%);border:none}.diagnosis-card .diagnosis-label{color:#93c5fd;letter-spacing:.05em;font-size:13px}.diagnosis-card .diagnosis-title{margin-top:6px;font-size:22px;font-weight:700}.diagnosis-card .diagnosis-en{color:#cbd5e1;margin-top:2px;font-size:13px;font-style:italic}.diagnosis-card .diagnosis-score{align-items:baseline;gap:8px;margin-top:14px;display:flex}.diagnosis-card .score-value{color:#fff;font-size:44px;font-weight:800}.diagnosis-card .score-label{color:#cbd5e1;font-size:13px}.diagnosis-card .confidence{color:#cbd5e1;margin-top:10px}.chip-row{flex-wrap:wrap;gap:8px;display:flex}.chip{color:#334155;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:4px 12px;font-size:13px}.formula{color:#713f12;background:#fefce8;border:1px solid #fde68a;border-radius:8px;padding:12px 14px;font-size:14px;line-height:1.7}.routine-block{margin-top:14px}.routine-block-title{color:#1f2933;margin-bottom:8px;font-weight:700}.routine-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.routine-list li{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;gap:12px;padding:12px;display:flex}.routine-icon{background:#fff;border:1px solid #e5e7eb;border-radius:50%;flex:0 0 36px;justify-content:center;align-items:center;width:36px;height:36px;font-size:18px;display:flex}.routine-body{flex:1;min-width:0}.routine-head{align-items:baseline;gap:10px;margin-bottom:4px;display:flex}.routine-stage{color:#fff;background:#2563eb;border-radius:999px;padding:2px 8px;font-size:11px}.routine-title{color:#111827;font-weight:700}.routine-product{color:#1f2933;margin-bottom:2px;font-size:14px}.disclaimer{border-top:1px dashed #cbd5e1;padding-top:12px;font-size:13px}.progress-bar{background:#e5e7eb;border-radius:999px;width:100%;height:8px;overflow:hidden}.progress-fill{background:linear-gradient(90deg,#2563eb 0%,#60a5fa 100%);border-radius:999px;height:100%;transition:width .4s}.progress-meta{color:#5b6472;text-align:right;margin-top:10px;font-size:13px}.phase-list{flex-direction:column;gap:8px;margin:0;padding:14px 0 0;list-style:none;display:flex}.phase-list li{color:#6b7280;align-items:center;gap:10px;font-size:14px;display:flex}.phase-list li .phase-dot{background:#e5e7eb;border-radius:50%;flex:0 0 10px;width:10px;height:10px}.phase-list li.done{color:#15803d}.phase-list li.done .phase-dot{background:#15803d}.phase-list li.current{color:#2563eb;font-weight:600}.phase-list li.current .phase-dot{background:#2563eb;animation:1.4s ease-in-out infinite pulse-dot;box-shadow:0 0 0 4px #2563eb2e}@keyframes pulse-dot{0%,to{box-shadow:0 0 0 4px #2563eb2e}50%{box-shadow:0 0 0 7px #2563eb0f}}.stream-card{background:#0f172a;border-color:#1e293b}.stream-card .muted{color:#94a3b8}.stream-text{color:#e2e8f0;white-space:pre-wrap;word-break:break-word;max-height:260px;margin:0;font-family:SF Mono,Menlo,Consolas,PingFang SC,monospace;font-size:13px;line-height:1.7;overflow-y:auto}.caret{vertical-align:text-bottom;background:#60a5fa;width:7px;height:14px;margin-left:2px;animation:1s step-end infinite blink;display:inline-block}@keyframes blink{50%{opacity:0}}.banner{color:#1e3a8a;background:#eff6ff;border:1px solid #bfdbfe;border-left:4px solid #2563eb;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px;padding:12px 14px;font-size:14px;display:flex}.banner.banner-warn{color:#92400e;background:#fef3c7;border-color:#fde68a #fde68a #fde68a #d97706}.banner button{color:inherit;background:0 0;border:0;flex:none;padding:4px 8px;font-size:13px;text-decoration:underline}.copy-btn{color:#1f2933;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:6px 10px;font-size:12px;position:absolute;top:12px;right:12px}.copy-btn:hover:not(:disabled){background:#f3f4f6}.card.report-actions{position:relative}.history-thumb{object-fit:cover;background:#f1f5f9;border:1px solid #e5e7eb;border-radius:10px;flex:0 0 56px;width:56px;height:56px}.share-readonly-notice{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;margin:0 0 12px;padding:10px 12px;font-size:13px}.image-preview-overlay{z-index:1000;overscroll-behavior:contain;background:#000000db;flex-direction:column;align-items:center;padding:12px;display:flex;position:fixed;inset:0;overflow-y:auto}.image-preview-tip{color:#fff;z-index:1;background:#2563ebf2;border-radius:8px;flex:none;margin-bottom:12px;padding:10px 14px;font-size:14px;position:sticky;top:0}.image-preview-img{-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto;pointer-events:auto;background:#fff;border-radius:6px;width:100%;max-width:720px;height:auto;display:block}.image-preview-actions{background:0 0;flex:none;gap:12px;padding:14px 0 8px;display:flex;position:sticky;bottom:0}.image-preview-actions .btn{flex:1;min-width:120px}@media (width>=920px){.app-shell{padding-top:40px}}
