:root{--ah-bg: #f2f2f7;--ah-surface: #ffffff;--ah-ink: #0d0d0d;--ah-text-secondary: #6e6e73;--ah-text-muted: #8e8e93;--ah-line: #e5e5ea;--ah-blue: #007aff;--ah-blue-soft: #eaf4ff;--ah-red: #ff3b30;--ah-red-soft: #fff0f0;--ah-amber: #ff9500;--ah-amber-soft: #fff6e6;--ah-green: #34c759;--ah-green-soft: #e8f9ec;--gpt-bg: #ffffff;--gpt-backdrop: #ccccd1;--gpt-ink: #0d0d0d;--gpt-stroke: #dbdbdf;--gpt-field-bg: #f7f7f8;--radius-card: 14px;--radius-sheet: 24px;--radius-input: 14px;--radius-pill: 999px;--sidebar-width: 224px;--tabbar-height: 64px;--font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;--font-num: "Inter", -apple-system, BlinkMacSystemFont, sans-serif}*,*:before,*:after{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100%;background:var(--ah-bg);color:var(--ah-ink);font-family:var(--font-sans);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}.gpt-auth-viewport{min-height:100vh;background:var(--gpt-bg);display:flex;justify-content:center;align-items:stretch}.gpt-auth-viewport.is-sheet-mode{background:var(--gpt-backdrop);align-items:flex-end;padding-top:36px}@media(min-width:900px){.gpt-auth-viewport{background:var(--ah-bg);align-items:center;padding:32px}.gpt-auth-viewport.is-sheet-mode{background:#0d0d0d38;align-items:center;padding:32px}}.gpt-auth-card{width:100%;max-width:440px;min-height:100vh;background:var(--gpt-bg);padding:28px 24px 32px;display:flex;flex-direction:column;justify-content:space-between}.gpt-auth-viewport.is-sheet-mode .gpt-auth-card{min-height:calc(100vh - 36px);border-radius:28px 28px 0 0;padding:20px 24px 32px}@media(min-width:900px){.gpt-auth-card,.gpt-auth-viewport.is-sheet-mode .gpt-auth-card{min-height:auto;border-radius:28px;border:1px solid var(--ah-line);box-shadow:0 20px 60px #00000014;padding:28px 32px 32px}}.gpt-sheet-topbar{display:flex;align-items:center;justify-content:space-between;min-height:40px;margin-bottom:12px}.gpt-circle-btn{width:38px;height:38px;border-radius:999px;border:1px solid var(--gpt-stroke);background:var(--gpt-bg);color:var(--gpt-ink);display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0000000f}.gpt-circle-btn:hover{background:var(--gpt-field-bg)}.gpt-brand-center{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;margin:24px 0}.gpt-brand-mark{width:46px;height:46px;border-radius:999px;border:2px solid var(--gpt-ink);display:inline-flex;align-items:center;justify-content:center;color:var(--gpt-ink)}.gpt-title{margin:0;font-size:26px;font-weight:700;letter-spacing:-.02em;color:var(--gpt-ink)}.gpt-subtitle{margin:0;font-size:14px;color:var(--ah-text-secondary);max-width:320px}.gpt-field{position:relative;border:1px solid var(--gpt-stroke);border-radius:var(--radius-input);background:var(--gpt-bg);padding:10px 14px;transition:border-color .15s ease}.gpt-field:focus-within{border-color:var(--gpt-ink);border-width:1.5px;padding:9.5px 13.5px}.gpt-field-label{display:block;font-size:12px;color:var(--ah-text-secondary);margin-bottom:3px}.gpt-field-input,.gpt-field-textarea,.gpt-field-select{width:100%;border:none;outline:none;background:transparent;font-size:16px;color:var(--gpt-ink);padding:0}.gpt-field-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.gpt-btn-black{width:100%;height:52px;border:none;border-radius:var(--radius-pill);background:var(--gpt-ink);color:#fff;font-size:16px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.gpt-btn-black:disabled{opacity:.45;cursor:not-allowed}.gpt-btn-outline{width:100%;height:50px;border:1px solid var(--gpt-stroke);border-radius:var(--radius-pill);background:var(--gpt-bg);color:var(--gpt-ink);font-size:15px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px}.gpt-btn-outline:hover{background:var(--gpt-field-bg)}.gpt-divider{display:flex;align-items:center;gap:12px;color:var(--ah-text-muted);font-size:13px;margin:16px 0}.gpt-divider:before,.gpt-divider:after{content:"";flex:1;height:1px;background:var(--ah-line)}.gpt-footer-links{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:20px;font-size:13px;color:var(--ah-text-secondary)}.gpt-link-btn{border:none;background:none;padding:4px;color:var(--ah-text-secondary);text-decoration:underline;font-size:13px}.gpt-summary-box{border:1px solid var(--ah-line);border-radius:14px;background:var(--gpt-field-bg);padding:12px 14px;display:flex;flex-direction:column;gap:8px}.gpt-summary-row{display:flex;justify-content:space-between;align-items:center;font-size:14px;gap:12px}.ah-shell{min-height:100vh;background:var(--ah-bg);display:flex}.ah-sidebar{display:none}@media(min-width:900px){.ah-sidebar{position:sticky;top:0;height:100vh;width:var(--sidebar-width);flex-shrink:0;background:var(--ah-surface);border-right:1px solid var(--ah-line);padding:20px 14px;display:flex;flex-direction:column;justify-content:space-between;transition:width .18s ease}.ah-sidebar.is-collapsed{width:72px;padding:20px 10px}}.ah-brand{display:flex;align-items:center;gap:10px;border:none;background:none;padding:4px 6px;text-align:left;width:100%}.ah-brand-square{width:34px;height:34px;border-radius:10px;background:var(--ah-ink);color:#fff;font-weight:700;font-size:16px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.ah-brand-meta{display:flex;flex-direction:column;min-width:0}.ah-brand-name{font-size:15px;font-weight:700;color:var(--ah-ink);white-space:nowrap}.ah-brand-sub{font-size:12px;color:var(--ah-text-muted)}.ah-status-chip{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;border-radius:10px;background:var(--ah-bg);border:1px solid var(--ah-line);margin:14px 0;font-size:13px}.ah-rail-nav{display:flex;flex-direction:column;gap:4px}.ah-rail-btn{width:100%;border:none;background:transparent;border-radius:10px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--ah-ink);font-size:14px;font-weight:500}.ah-rail-btn:hover{background:var(--ah-bg)}.ah-rail-btn.is-active{background:var(--ah-blue-soft);color:var(--ah-blue);font-weight:600}.ah-rail-btn-left{display:flex;align-items:center;gap:10px;min-width:0}.ah-badge-pill{min-width:22px;height:20px;padding:0 7px;border-radius:999px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;background:var(--ah-bg);color:var(--ah-text-secondary)}.ah-badge-pill.is-red{background:var(--ah-red);color:#fff}.ah-badge-pill.is-blue{background:var(--ah-blue);color:#fff}.ah-body{flex:1;min-width:0;display:flex;flex-direction:column;padding-bottom:calc(var(--tabbar-height) + env(safe-area-inset-bottom,0px) + 12px)}@media(min-width:900px){.ah-body{padding-bottom:24px}}.ah-desktop-topbar{display:none}@media(min-width:900px){.ah-desktop-topbar{height:58px;background:var(--ah-surface);border-bottom:1px solid var(--ah-line);padding:0 24px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}}.ah-main{width:100%;max-width:1240px;margin:0 auto;padding:16px 16px 20px}@media(min-width:900px){.ah-main{padding:20px 24px}}.ah-page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.ah-page-title{margin:0;font-size:28px;font-weight:700;letter-spacing:-.02em;color:var(--ah-ink)}@media(min-width:900px){.ah-page-title{font-size:24px}}.ah-section-label{display:flex;align-items:center;justify-content:space-between;margin:18px 4px 8px;font-size:14px;font-weight:600;color:var(--ah-text-secondary)}.ah-card{background:var(--ah-surface);border-radius:var(--radius-card);overflow:hidden;border:1px solid rgba(0,0,0,.04)}.ah-card-pad{padding:16px}.ah-list-row{width:100%;border:none;background:var(--ah-surface);padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;position:relative}.ah-list-row+.ah-list-row:before{content:"";position:absolute;top:0;left:16px;right:0;height:1px;background:var(--ah-line)}.ah-list-row:hover{background:#fafafa}.ah-list-row.is-selected{background:#f5f9ff}.ah-dot{width:8px;height:8px;border-radius:999px;display:inline-block;flex-shrink:0}.ah-dot.red{background:var(--ah-red)}.ah-dot.amber{background:var(--ah-amber)}.ah-dot.blue{background:var(--ah-blue)}.ah-dot.green{background:var(--ah-green)}.ah-dot.muted{background:var(--ah-text-muted)}.ah-segment{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:#e5e5ea;border-radius:10px;padding:3px;gap:3px}.ah-segment-btn{border:none;background:transparent;border-radius:8px;padding:7px 10px;font-size:14px;font-weight:500;color:var(--ah-text-secondary)}.ah-segment-btn.is-active{background:var(--ah-surface);color:var(--ah-ink);font-weight:600;box-shadow:0 1px 3px #00000014}.ah-pills{display:flex;flex-wrap:wrap;gap:8px}.ah-pill{border:1px solid var(--ah-line);background:var(--ah-surface);color:var(--ah-ink);border-radius:var(--radius-pill);padding:6px 14px;font-size:14px;font-weight:500}.ah-pill.is-active{background:var(--ah-ink);border-color:var(--ah-ink);color:#fff}.ah-btn-primary{border:none;border-radius:var(--radius-pill);background:var(--ah-blue);color:#fff;font-size:15px;font-weight:600;padding:11px 20px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.ah-btn-primary:disabled{opacity:.5;cursor:not-allowed}.ah-btn-secondary{border:1px solid var(--ah-line);border-radius:var(--radius-pill);background:var(--ah-surface);color:var(--ah-ink);font-size:15px;font-weight:500;padding:10px 18px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.ah-btn-danger-soft{border:1px solid #ffd5d2;border-radius:var(--radius-pill);background:var(--ah-red-soft);color:var(--ah-red);font-size:15px;font-weight:600;padding:10px 18px}.ah-text-btn{border:none;background:none;color:var(--ah-blue);font-size:14px;font-weight:500;padding:4px 6px}.ah-text-btn.danger{color:var(--ah-red)}.ah-switch{width:50px;height:30px;border-radius:999px;border:none;background:#d1d1d6;position:relative;padding:0;transition:background .18s ease;flex-shrink:0}.ah-switch.is-on{background:var(--ah-green)}.ah-switch-knob{width:26px;height:26px;border-radius:999px;background:#fff;position:absolute;top:2px;left:2px;box-shadow:0 2px 4px #0000002e;transition:transform .18s ease}.ah-switch.is-on .ah-switch-knob{transform:translate(20px)}.ah-check-circle{width:22px;height:22px;border-radius:999px;border:1.5px solid #c7c7cc;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#fff;color:#fff;font-size:12px;font-weight:700}.ah-check-circle.is-checked{background:var(--ah-blue);border-color:var(--ah-blue)}.ah-split-workbench{display:flex;flex-direction:column;gap:16px}@media(min-width:900px){.ah-split-workbench{display:grid;grid-template-columns:372px minmax(0,1fr);gap:20px;align-items:start}.ah-split-patient{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.95fr);gap:20px;align-items:start}.ah-split-clinic{display:grid;grid-template-columns:1fr 1fr;gap:16px}}.ah-kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ah-meta-grid-4{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}@media(min-width:640px){.ah-meta-grid-4{grid-template-columns:repeat(4,1fr)}}.ah-metric-tile{background:var(--ah-bg);border-radius:12px;padding:10px 12px}.ah-tabbar{position:fixed;left:0;right:0;bottom:0;height:calc(var(--tabbar-height) + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:#fffffff0;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-top:1px solid var(--ah-line);display:grid;grid-template-columns:repeat(4,1fr);z-index:40}@media(min-width:900px){.ah-tabbar{display:none}}.ah-tabbar-btn{border:none;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:500;color:var(--ah-text-muted);position:relative}.ah-tabbar-btn.is-active{color:var(--ah-blue);font-weight:600}.ah-tabbar-badge{position:absolute;top:6px;right:calc(50% - 22px);min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--ah-red);color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.ah-sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000005c;z-index:60;display:flex;align-items:flex-end;justify-content:center}@media(min-width:900px){.ah-sheet-backdrop{align-items:center;padding:24px}}.ah-sheet-panel{width:100%;max-width:540px;max-height:88vh;overflow-y:auto;background:var(--ah-bg);border-radius:22px 22px 0 0;padding:18px 18px 28px}@media(min-width:900px){.ah-sheet-panel{border-radius:20px;padding:20px 22px 24px}}.ah-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.ah-footnote{font-size:13px;color:var(--ah-text-secondary);margin:8px 4px 0;line-height:1.5}.ah-body.is-subpage{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 20px)}.ah-toast{position:fixed;bottom:82px;left:50%;transform:translate(-50%);z-index:100;background:var(--ah-ink);color:#fff;padding:9px 16px;border-radius:999px;font-size:13px;font-weight:500;box-shadow:0 8px 24px #00000029;max-width:90vw;white-space:nowrap;cursor:pointer}@media(min-width:900px){.ah-toast{bottom:auto;left:auto;right:24px;top:70px;transform:none}}.ah-toast.is-error{background:var(--ah-red)}.ah-chat-card{background:var(--ah-surface);border-radius:var(--radius-card);border:1px solid var(--ah-line);display:flex;flex-direction:column;min-height:520px;overflow:hidden}.ah-chat-stream{flex:1;padding:16px;display:flex;flex-direction:column;gap:12px;max-height:460px;overflow-y:auto}.ah-bubble{max-width:84%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5;white-space:pre-wrap}.ah-bubble.from-patient{align-self:flex-start;background:var(--ah-bg);color:var(--ah-ink)}.ah-bubble.from-therapist{align-self:flex-end;background:var(--ah-blue);color:#fff}.ah-bubble.is-order{align-self:flex-end;background:var(--ah-surface);border:1px solid var(--ah-blue);color:var(--ah-ink)}.ah-bubble.is-request{align-self:flex-start;background:var(--ah-surface);border:1px solid var(--ah-amber);color:var(--ah-ink)}.ah-clinic-hud{background:#111827;color:#fff;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}.ah-clinic-coach{background:var(--ah-surface);border:1px solid var(--ah-line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}.ah-three-stage{width:100%;height:310px;border-radius:12px;overflow:hidden;background:#f7f8fa;border:1px solid var(--ah-line);position:relative}
