*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%}body{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;background:#f6f7fb;color:#21252b;font-size:17px}.app-shell{height:100%;display:flex;flex-direction:column}.page-area{flex:1;min-height:0;display:flex;flex-direction:column}.chat-top{background:#fff;padding:calc(env(safe-area-inset-top,0px) + 14px) 18px 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef0f4}.chat-title{font-size:21px;font-weight:700;display:flex;align-items:center;gap:9px}.chat-title:before{content:"";width:12px;height:12px;border-radius:50%;background:linear-gradient(135deg,#4f8cff,#8b5cf6)}.identity-chip{font-size:14px;background:#eef3ff;color:#3b6ef5;padding:5px 13px;border-radius:999px}.back-btn{border:none;background:none;color:#3b6ef5;font-size:17px}.chat-page{flex:1;min-height:0;display:flex;flex-direction:column;background:#f6f7fb}.msg-list{flex:1;overflow-y:auto;padding:20px 16px 26px;-webkit-overflow-scrolling:touch}.welcome{text-align:center;margin-top:18vh;padding:0 10px}.welcome-avatar{width:72px;height:72px;margin:0 auto 14px;border-radius:50%;background:linear-gradient(135deg,#4f8cff,#8b5cf6);color:#fff;font-size:30px;font-weight:600;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px #4f8cff47}.welcome-title{font-size:22px;font-weight:700;color:#22262d}.welcome-sub{font-size:16px;color:#99a1ad;margin-top:6px}.suggestions{margin-top:26px;display:flex;flex-direction:column;gap:12px;align-items:center}.suggestion{width:100%;max-width:340px;border:1px solid #e6e9f2;background:#fff;border-radius:14px;padding:13px 16px;font-size:16.5px;color:#3a4150;text-align:left;box-shadow:0 2px 8px #1e285a0a}.suggestion:active{background:#f0f4ff;border-color:#c9d9ff}.msg-row{display:flex;margin-bottom:18px;align-items:flex-start}.msg-row.right{justify-content:flex-end}.msg-row.left{gap:10px}.ai-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#4f8cff,#8b5cf6);color:#fff;font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}.bubble{max-width:82%;border-radius:14px;font-size:17.5px;line-height:1.62;word-break:break-word;white-space:pre-wrap}.bubble.user{background:linear-gradient(160deg,#5f95ff,#3d6ef6);color:#fff;padding:12px 16px;border-top-right-radius:4px;box-shadow:0 4px 14px #3d6ef640}.bubble.user .bubble-time{color:#ffffffb8}.bubble.ai{max-width:100%;flex:1;background:none;padding:2px 2px 0;color:#262b33}.bubble-text{white-space:pre-wrap}.bubble-time{font-size:12px;color:#21252b52;text-align:right;margin-top:6px}.bubble.ai .bubble-time{text-align:left}.att-img{max-width:100%;max-height:300px;border-radius:12px;display:block;margin-bottom:8px}.att-audio{width:260px;height:42px;margin-bottom:8px;display:block}.typing-bubble{background:#fff;border:1px solid #eef0f4;border-radius:14px;padding:14px 16px;box-shadow:0 2px 10px #1e285a0d;max-width:250px}.typing-dots{display:flex;gap:5px}.typing-dots span{width:8px;height:8px;border-radius:50%;background:#9db4e8;animation:bounce 1.2s infinite ease-in-out}.typing-dots span:nth-child(2){animation-delay:.15s}.typing-dots span:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}.typing-stage{font-size:14px;color:#8a93a5;margin-top:8px}.att-preview-bar{display:flex;gap:10px;padding:10px 14px;overflow-x:auto;background:#fff;border-top:1px solid #eef0f4}.att-thumb-wrap{position:relative;flex-shrink:0}.att-thumb{width:60px;height:60px;object-fit:cover;border-radius:10px;display:block}.audio-thumb{display:flex;align-items:center;justify-content:center;background:#eef1f7;font-size:26px}.att-remove{position:absolute;top:-7px;right:-7px;width:20px;height:20px;border-radius:50%;border:none;background:#14182299;color:#fff;font-size:13px;line-height:20px;text-align:center}.input-bar{display:flex;align-items:flex-end;gap:8px;padding:10px 12px calc(env(safe-area-inset-bottom,0px) + 10px);background:#fff;border-top:1px solid #eef0f4}.icon-btn{width:44px;height:44px;border:none;border-radius:50%;background:#f1f3f8;font-size:21px;flex-shrink:0}.icon-btn:active{background:#e6eaf3}.rec-btn{height:44px;border:none;border-radius:22px;background:#ffecec;font-size:16px;color:#d64545;padding:0 14px;display:flex;align-items:center;gap:7px;flex-shrink:0}.rec-dot{width:9px;height:9px;background:#d64545;border-radius:50%;animation:blink 1s infinite}@keyframes blink{50%{opacity:.2}}.text-input{flex:1;min-height:44px;max-height:120px;border:1.5px solid #e6e9f2;border-radius:22px;padding:11px 16px;font-size:17.5px;font-family:inherit;background:#fbfcfe;resize:none;outline:none}.text-input:focus{border-color:#9db9ff;background:#fff}.text-input{scrollbar-width:none}.text-input::-webkit-scrollbar{display:none}.send-btn{height:44px;width:44px;padding:0;border:none;border-radius:50%;background:linear-gradient(135deg,#4f8cff,#6d6bff);color:#fff;font-size:18px;flex-shrink:0}.sheet-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f142266;display:flex;align-items:flex-end;z-index:50}.sheet{width:100%;background:#f2f3f7;border-radius:18px 18px 0 0;padding:10px 10px calc(env(safe-area-inset-bottom,0px) + 10px)}.sheet button{width:100%;border:none;background:#fff;padding:18px;font-size:17px;text-align:center;border-radius:14px;margin-bottom:8px}.sheet .sheet-cancel{color:#8a93a5}.mine-page,.master-page{flex:1;min-height:0;display:flex;flex-direction:column;background:#f6f7fb;overflow-y:auto}.section{background:#fff;border-radius:14px;margin:14px 14px 0;padding:8px 0}.section-title{font-size:15px;color:#99a1ad;padding:10px 16px 4px}.id-item{width:100%;border:none;background:none;text-align:left;padding:14px 16px;display:block;position:relative;border-bottom:1px solid #f3f4f8}.id-item.active{background:#f4f7ff}.id-name{font-size:18px;font-weight:500}.id-desc{font-size:14px;color:#99a1ad;margin-top:3px}.id-check{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#3b6ef5;font-size:14px}.hint{font-size:14px;color:#a3abba;padding:10px 16px 12px;line-height:1.65}.plain-btn{width:100%;border:none;background:none;padding:16px;font-size:17px;color:#d64545;text-align:left}.footer-note{text-align:center;font-size:13px;color:#adb4c2;padding:8px 0 18px}.admin-page{height:100%;display:flex;flex-direction:column;background:#f6f7fb}.admin-table{width:calc(100% - 32px);margin:0 16px;border-collapse:collapse;font-size:15px}.admin-table th,.admin-table td{border-bottom:1px solid #f3f4f8;padding:12px 6px;text-align:left}.admin-table th{color:#99a1ad;font-weight:400;font-size:14px}.admin-scroll{flex:1;min-height:0;overflow-y:auto;padding-bottom:24px}.monitor-block{padding:12px 16px;border-bottom:1px solid #f3f4f8}.monitor-head{font-size:16px;font-weight:600;margin-bottom:8px}.monitor-user{font-size:14px;font-weight:400;color:#99a1ad}.monitor-count{font-size:14px;font-weight:400;color:#99a1ad;margin-left:8px}.monitor-empty{font-size:14px;color:#b0b7c5}.monitor-msg{display:flex;gap:8px;font-size:14.5px;line-height:1.6;color:#3a404c;padding:3px 0}.monitor-role{color:#3b6ef5;flex-shrink:0;font-weight:500}.monitor-text{flex:1;word-break:break-all;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.monitor-time{color:#b0b7c5;flex-shrink:0;font-size:13px}.tabbar{display:flex;background:#fff;border-top:1px solid #eef0f4;padding-bottom:env(safe-area-inset-bottom,0px)}.tab{flex:1;border:none;background:none;padding:9px 0 8px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12.5px;color:#99a1ad}.tab .tab-ico{font-size:24px;filter:grayscale(1) opacity(.5)}.tab.active{color:#3b6ef5;font-weight:500}.tab.active .tab-ico{filter:none}.login-page{height:100%;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(180deg,#f0f4ff,#f6f7fb 55%);padding:0 30px}.login-card{background:#fff;border-radius:20px;padding:34px 24px;text-align:center;box-shadow:0 10px 40px #3c5ab414}.login-logo{width:68px;height:68px;margin:0 auto 12px;border-radius:50%;background:linear-gradient(135deg,#4f8cff,#8b5cf6);color:#fff;font-size:28px;font-weight:600;display:flex;align-items:center;justify-content:center}.login-title{font-size:24px;font-weight:700}.login-sub{font-size:15px;color:#99a1ad;margin:8px 0 24px}.login-input{width:100%;height:50px;border:1.5px solid #e5e9f2;border-radius:12px;padding:0 14px;font-size:17.5px;margin-bottom:14px;outline:none;background:#fafbfe}.login-input:focus{border-color:#9db9ff;background:#fff}.login-error{color:#d64545;font-size:14.5px;text-align:left;margin:-4px 0 10px 2px}.login-btn{width:100%;height:50px;border:none;border-radius:12px;background:linear-gradient(135deg,#4f8cff,#6d6bff);color:#fff;font-size:18px;box-shadow:0 6px 16px #4f8cff4d}.login-page .footer-note{margin-top:20px}.menu-btn{margin-right:10px;flex-shrink:0}.mem-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eef4ff;color:#33537e;font-size:14px;padding:9px 16px;border-bottom:1px solid #e2ebfb}.mem-banner button{border:none;background:none;color:#3b6ef5;font-size:14px;flex-shrink:0}.drawer-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f142266;z-index:60;display:flex}.drawer{width:78%;max-width:320px;height:100%;background:#fff;border-radius:0 18px 18px 0;display:flex;flex-direction:column;padding:14px 12px calc(env(safe-area-inset-bottom,0px) + 12px)}.drawer-new{border:none;background:#f1f4fb;color:#3b6ef5;font-size:16px;padding:13px;border-radius:12px;margin-bottom:12px}.drawer-list{flex:1;overflow-y:auto}.drawer-item{width:100%;border:none;background:none;text-align:left;padding:12px;border-radius:10px;margin-bottom:4px}.drawer-item.active{background:#eef3ff}.drawer-title{font-size:15.5px;color:#2a2f38;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drawer-item.active .drawer-title{color:#3b6ef5;font-weight:600}.drawer-meta{font-size:12px;color:#a3abba;margin-top:2px}.drawer-empty{font-size:14px;color:#b0b7c5;text-align:center;padding:24px 0}.drawer-foot{font-size:12px;color:#a3abba;text-align:center;padding-top:10px;border-top:1px solid #f0f1f5}.case-page{flex:1;min-height:0;display:flex;flex-direction:column;background:#f6f7fb}.case-scroll{flex:1;min-height:0;overflow-y:auto;padding:14px 14px calc(env(safe-area-inset-bottom,0px) + 18px)}.case-card{background:#fff;border-radius:14px;padding:16px;margin-bottom:14px;box-shadow:0 2px 10px #1e285a0a}.case-card-title{font-size:17px;font-weight:700;color:#22262d;margin-bottom:10px;display:flex;align-items:center;gap:8px}.recovery-row{display:flex;align-items:center;gap:16px}.recovery-score{text-align:center;flex-shrink:0}.score-num{font-size:40px;font-weight:700;color:#4f8cff}.score-unit{font-size:16px;color:#99a1ad}.score-label{font-size:13px;color:#99a1ad;margin-top:2px}.spark{flex:1;height:80px}.case-hint{font-size:13px;color:#a3abba;margin-top:10px;line-height:1.6}.ai-card{border:1px solid #dfe8ff;background:linear-gradient(180deg,#f5f8ff,#fff)}.ai-opinion{font-size:15px;line-height:1.7;color:#3a4150;white-space:pre-wrap}.register-btn{width:100%;border:none;border-radius:14px;padding:16px;font-size:16.5px;color:#fff;background:linear-gradient(135deg,#4f8cff,#6d6bff);box-shadow:0 6px 16px #4f8cff4d;margin-bottom:14px}.timeline-count{font-size:13px;font-weight:400;color:#99a1ad}.timeline-clear{margin-left:auto;border:none;background:none;color:#d64545;font-size:13px}.timeline{max-height:46vh;overflow-y:auto}.timeline-day{font-size:14px;color:#6d7686;background:#f1f3f8;border-radius:8px;padding:6px 10px;margin:10px 0 8px;display:inline-block}.timeline-entry{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #f3f4f8}.entry-time{font-size:13px;color:#a3abba;flex-shrink:0;width:44px;padding-top:3px}.entry-body{flex:1;min-width:0}.entry-imgs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}.entry-img{width:108px;height:108px;object-fit:cover;border-radius:10px}.entry-note{font-size:15px;line-height:1.6;color:#2a2f38;white-space:pre-wrap}.entry-ai{font-size:13px;color:#8a93a5;background:#f6f8fc;border-radius:8px;padding:7px 10px;margin-top:6px}.register-sheet{width:100%;background:#f4f5f9;border-radius:18px 18px 0 0;padding:16px 16px calc(env(safe-area-inset-bottom,0px) + 16px)}.register-title{font-size:18px;font-weight:700;text-align:center;margin-bottom:12px}.pending-audio-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}.att-remove.inline{position:static}.register-note{width:100%;border-radius:12px;margin-bottom:10px}.register-actions,.register-footer{display:flex;gap:8px;margin-bottom:8px}.half-btn{flex:1;border:none;border-radius:12px;padding:13px 6px;font-size:15px;background:#fff;color:#2a2f38}.half-btn.primary{background:linear-gradient(135deg,#4f8cff,#6d6bff);color:#fff}.half-btn.ghost{background:#fff;color:#8a93a5}.input-bar{box-shadow:0 -8px 24px #1e285a0d}.text-input{min-height:48px;border-radius:24px;padding:12px 16px}.icon-btn{width:48px;height:48px;font-size:22px}.rec-btn{height:48px;border-radius:24px}.send-btn{width:48px;height:48px;font-size:19px;box-shadow:0 6px 16px #4f8cff52}.tabbar{box-shadow:0 -6px 20px #1e285a0a}.tab{padding:10px 0 9px}.entry-ai{border-left:3px solid #9db9ff;background:#f6f8ff;border-radius:0 10px 10px 0;padding:9px 12px;margin-top:8px}.entry-ai-title{font-size:13.5px;font-weight:600;color:#3b6ef5;margin-bottom:3px}.entry-ai-text{font-size:13.5px;line-height:1.6;color:#7c8698}.summary-card{border:1px solid #e3ebff;background:linear-gradient(180deg,#f3f7ff,#fff)}.summary-stats{display:flex;gap:12px;margin-bottom:10px}.stat{flex:1;background:#fff;border:1px solid #edf1fa;border-radius:12px;text-align:center;padding:12px 6px}.stat-num{font-size:24px;font-weight:700;color:#3b6ef5;display:block}.stat-label{font-size:13px;color:#99a1ad}.summary-btn{width:100%;border:1.5px dashed #b9c9f2;border-radius:12px;background:none;color:#7d90bd;font-size:15.5px;padding:13px;margin-top:4px}.login-logo{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#4f8cff,#8b5cf6);color:#fff;font-weight:600;display:flex;align-items:center;justify-content:center;font-size:26px;padding-top:0}.tab .tab-svg{width:22px;height:22px}.round-indicator{font-size:13px;color:#99a1ad;margin-left:auto;margin-right:12px}.chat-top .identity-chip{margin-left:0}.chat-top{gap:8px}.suggestion{display:flex;align-items:center;gap:10px}.sug-dot{width:7px;height:7px;border-radius:50%;background:linear-gradient(135deg,#4f8cff,#8b5cf6);flex-shrink:0}.absorbing{text-align:center;margin-top:26vh;padding:0 24px}.absorb-spinner{width:46px;height:46px;margin:0 auto 16px;border-radius:50%;border:3px solid #dfe8ff;border-top-color:#4f8cff;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.absorb-title{font-size:19px;font-weight:700;color:#22262d}.absorb-sub{font-size:15px;color:#99a1ad;margin-top:8px;line-height:1.7}.chat-shell{flex:1;min-height:0;display:flex}.sidebar{width:264px;flex-shrink:0;background:#f0f2f6;border-right:1px solid #e8eaee;display:flex;flex-direction:column;padding:12px 10px calc(env(safe-area-inset-bottom,0px) + 12px)}.sidebar-new{width:100%;border:none;border-radius:10px;padding:12px;font-size:15.5px;background:#fff;color:#2a2f38;box-shadow:0 1px 4px #1e285a12;margin-bottom:10px}.sidebar-list{flex:1;overflow-y:auto}.sidebar-item{width:100%;border:none;background:none;text-align:left;padding:11px 12px;border-radius:10px;margin-bottom:3px}.sidebar-item.active{background:#e4ebfb}.sidebar-title{font-size:14.5px;color:#2a2f38;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-item.active .sidebar-title{color:#2f6bff;font-weight:600}.absorb-tag{font-size:11px;color:#8a93a5;background:#eef1f7;border-radius:6px;padding:1px 5px;margin-right:5px}@media (min-width: 768px){.mobile-only{display:none!important}}@media (max-width: 767px){.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:70;transform:translate(-105%);transition:transform .22s ease;box-shadow:8px 0 24px #0f14221f}.sidebar.open{transform:none}}.greeting-card{background:linear-gradient(135deg,#eef4ff,#f6f9ff 60%,#fbf7ff);border:1px solid #dfe8ff}.greeting-title{font-size:21px;font-weight:700;color:#2a2f38}.greeting-text{font-size:17px;line-height:1.7;color:#4a5568;margin-top:8px;animation:fadeIn .8s ease}.greeting-fade{animation:fadeIn .8s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.metric-empty{text-align:center;padding:8px 0 4px}.metric-empty p{font-size:15px;color:#3a4150;line-height:1.7}.metric-empty-sub{font-size:13px!important;color:#99a1ad!important;margin-top:4px}.metric-empty-btn{border:1.5px dashed #b9c9f2;border-radius:10px;background:none;color:#3b6ef5;font-size:15px;padding:10px 18px;margin-top:12px}.metric-rows{display:flex;flex-direction:column;gap:8px}.metric-row{display:flex;align-items:center;gap:12px;background:#fafbfe;border:1px solid #eef1f7;border-radius:12px;padding:10px 12px}.metric-info{flex:1.2;min-width:0}.metric-name{font-size:15.5px;font-weight:600;color:#2a2f38}.metric-ref{font-size:12px;color:#99a1ad;margin-top:2px}.metric-val{flex:1;font-size:19px;font-weight:700;color:#22262d;white-space:nowrap}.metric-unit{font-size:12px;font-weight:400;color:#99a1ad;margin-left:2px}.metric-badge{display:inline-block;font-size:11.5px;border-radius:999px;padding:2px 8px;margin-left:8px;font-weight:500;vertical-align:2px}.st-normal{background:#e7f6ec;color:#1f8a4c}.st-high,.st-low{background:#fff3e0;color:#c07a12}.st-none{background:#f0f1f5;color:#99a1ad}.metric-spark{width:120px;height:36px;flex-shrink:0}.metric-times{font-size:12px;color:#99a1ad;flex-shrink:0;width:56px;text-align:right}.entry-metrics{font-size:13.5px;color:#33537e;background:#f0f5ff;border-radius:8px;padding:6px 10px;margin:6px 0 2px}.metric-input-block{margin:8px 0 10px}.metric-input-title{font-size:13.5px;color:#7d90bd;margin-bottom:6px}.metric-input-row{display:flex;gap:6px;align-items:center;margin-bottom:6px}.metric-input-row input{height:38px;border:1.5px solid #e5e9f2;border-radius:8px;padding:0 8px;font-size:14px;outline:none;background:#fff;min-width:0}.metric-input-row .mi-name{flex:1.4}.metric-input-row .mi-value{flex:1}.metric-input-row .mi-unit{flex:.8}.metric-input-row .mi-ref{flex:1.2}.metric-add-row{width:100%;border:1.5px dashed #b9c9f2;border-radius:8px;background:none;color:#3b6ef5;font-size:14px;padding:9px}.summary-stats .stat{min-width:0}.quota-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 14px;background:#eef4ff;border-bottom:1px solid #dfe8ff}.quota-pill{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dbe6fb;border-radius:999px;padding:5px 12px;font-size:13px}.quota-src{font-weight:600;color:#2f6bff}.quota-num{color:#3a4150}.quota-num b{color:#1f8a4c;font-size:14px}.quota-reset{color:#99a1ad;font-size:12px}.quota-note{font-size:12px;color:#7d90bd}.history-card{border:1px solid #efe7d8;background:linear-gradient(180deg,#fffdf7,#fff)}.history-timeline{display:flex;flex-direction:column;gap:10px;margin:4px 0 12px}.history-item{display:flex;gap:12px}.history-date{flex-shrink:0;width:86px;font-size:13px;font-weight:600;color:#8a6d3b;padding-top:2px}.history-body{flex:1;min-width:0;border-left:2px solid #ece0c8;padding-left:12px}.history-title{font-size:15px;font-weight:600;color:#2a2f38;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.history-detail{font-size:13.5px;line-height:1.65;color:#4a5568;margin-top:3px}.ev-badge{font-size:11px;border-radius:6px;padding:1px 6px;font-weight:500}.ev-A{background:#e7f6ec;color:#1f8a4c}.ev-B{background:#eef4ff;color:#2f6bff}.ev-C{background:#f5f1e8;color:#8a6d3b}.history-baseline{border-top:1px dashed #ece0c8;padding-top:10px}.baseline-row{display:grid;grid-template-columns:130px 110px auto 1fr;gap:8px;font-size:13px;padding:4px 0;border-bottom:1px solid #f7f2e8;align-items:baseline}.baseline-name{font-weight:600;color:#2a2f38}.baseline-val{color:#b3541e;font-weight:600}.baseline-ref{color:#99a1ad;font-size:12px}.baseline-note{color:#8a93a5;font-size:12px}@media (max-width: 640px){.baseline-row{grid-template-columns:1fr auto;grid-auto-rows:auto}.baseline-ref,.baseline-note{grid-column:1 / -1}}
