:root{--brand: #ae0b2a;--brand-hover: #8f0922;--brand-tint: #fbf1f3;--brand-border: #ebccd2;--bg: #f3f4f6;--surface: #ffffff;--surface-subtle: #eef0f4;--surface-hover: #e5e8ee;--ink: #0f172a;--ink-secondary: #475569;--muted: #64748b;--line: #e2e5eb;--line-strong: #cbd5e1;--line-subtle: #edf0f4;--selection-bg: #f8dbe0;--selection-ink: #5b0616;--ok: #0d7a5f;--ok-bg: #edf8f4;--ok-border: #c6ece0;--warn: #9a5b13;--warn-bg: #fdf6ec;--warn-border: #f3dfb8;--font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;--font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;--text-display: 22px;--text-lg: 16px;--text-base: 14.5px;--text-sm: 12.5px;--r-badge: 6px;--r-control: 8px;--r-card: 10px;--r-dialog: 12px;--r-pill: 999px;--scrim: rgba(15, 23, 42, .36);color:var(--ink);background:var(--bg);font-family:var(--font-sans);font-size:var(--text-base);line-height:1.65;font-synthesis:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);text-wrap:pretty}button,input,textarea,select{font:inherit;color:inherit}select{appearance:none;-webkit-appearance:none;background-color:var(--surface);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:14px 14px;padding-right:36px}button{cursor:pointer;border:0;background:none;padding:0}button:disabled{cursor:not-allowed;opacity:.48}button,a,input,textarea,select{outline-offset:2px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--brand)}h1,h2,h3,p,ul,dl,dd{margin:0}h1,h2,h3{font-family:var(--font-display);font-weight:600;color:var(--ink);text-wrap:balance}p{overflow-wrap:anywhere}time{font-variant-numeric:tabular-nums}input,textarea{caret-color:var(--brand)}::selection{background:var(--selection-bg);color:var(--selection-ink)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.app-boot{min-height:100dvh;background:var(--bg)}.skip-link{position:fixed;top:-100px;left:16px;z-index:100;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-control);padding:8px 14px;font-size:var(--text-sm);font-weight:500}.skip-link:focus{top:12px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 16px;border-radius:var(--r-control);font-size:var(--text-base);font-weight:500;line-height:1.4;min-height:38px;white-space:nowrap;font-variant-numeric:tabular-nums;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.primary{background:var(--brand);border:1px solid var(--brand);color:#fff}.primary:hover:not(:disabled){background:var(--brand-hover);border-color:var(--brand-hover)}.secondary{background:var(--surface);border:1px solid var(--line);color:var(--ink)}.secondary:hover:not(:disabled){background:var(--surface-subtle);border-color:var(--line-strong)}.full{width:100%}.muted{color:var(--muted)}.text-btn{color:var(--brand);font-size:var(--text-sm);font-weight:500;display:inline-flex;align-items:center;gap:4px;padding:4px 0;text-align:left}.text-btn:hover:not(:disabled){color:var(--brand-hover);text-decoration:underline;text-underline-offset:3px}.icon-button{width:32px;height:32px;border-radius:var(--r-badge);display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}.icon-button:hover{background:var(--surface-subtle);color:var(--ink)}.info-icon{width:16px;height:16px;flex-shrink:0}.form-stack{display:flex;flex-direction:column;gap:12px}.field{display:flex;flex-direction:column;gap:5px}.field label{display:flex;flex-direction:column;gap:6px}.field label>span{font-size:var(--text-sm);font-weight:500;color:var(--ink-secondary)}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line-strong);border-radius:var(--r-control);background-color:var(--surface);color:var(--ink);padding:0 12px;transition:border-color .14s ease}.field input,.field select{height:40px;line-height:38px}.field select{padding-right:36px}.field textarea{padding:10px 12px;line-height:1.55;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand)}.field small{font-size:var(--text-sm);color:var(--muted)}.error,.success,.notice{border-radius:var(--r-control);padding:10px 12px;font-size:var(--text-sm);line-height:1.5}.error{background:var(--brand-tint);border:1px solid var(--brand-border);color:var(--selection-ink)}.success{background:var(--ok-bg);border:1px solid var(--ok-border);color:var(--ok)}.notice{background:var(--warn-bg);border:1px solid var(--warn-border);color:var(--warn)}.empty{text-align:center;max-width:440px}.empty h3{font-size:var(--text-lg);margin-bottom:6px}.empty h3:last-child{margin-bottom:0}.empty p{font-size:var(--text-base);color:var(--muted)}.skeleton{display:flex;flex-direction:column;gap:10px;width:100%;max-width:360px}.skeleton span{display:block;height:14px;border-radius:var(--r-badge);background:var(--surface-subtle)}.skeleton span:nth-child(2){width:78%}.skeleton span:nth-child(3){width:56%}.avatar{width:38px;height:38px;border-radius:var(--r-pill);background:var(--surface-subtle);border:1px solid var(--line);color:var(--ink-secondary);display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:var(--text-base);overflow:hidden;flex-shrink:0}.avatar-image{width:100%;height:100%;object-fit:cover}.status-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px}.status-card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-dialog);padding:24px;display:flex;flex-direction:column;align-items:stretch;gap:14px}.overlay-layer{position:fixed;inset:0;z-index:60;background:var(--scrim);display:flex}.overlay-sheet{align-items:center;justify-content:center;padding:20px}.overlay-left{justify-content:flex-start}.overlay-right{justify-content:flex-end}.sheet{width:100%;max-width:480px;max-height:min(88dvh,720px);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-dialog);display:flex;flex-direction:column;overflow:hidden}.case-drawer{width:min(300px,86vw);height:100%;background:var(--bg);border-right:1px solid var(--line);display:flex;flex-direction:column;overflow:hidden}.case-info-drawer{border-right:0;border-left:1px solid var(--line);background:var(--surface)}.sheet-head{height:54px;padding:0 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.sheet-head h2{font-size:var(--text-lg);display:inline-flex;align-items:center;gap:8px}.sheet-head h2>svg{width:24px;height:14px;color:var(--brand)}.sheet-head-quiet{justify-content:flex-end}.language-picker{padding:12px;display:flex;flex-direction:column;gap:4px;overflow-y:auto}.language-option{width:100%;height:42px;padding:0 14px;border-radius:var(--r-control);display:flex;align-items:center;justify-content:space-between;font-size:var(--text-base);color:var(--ink)}.language-option:hover{background:var(--surface-subtle)}.language-option.active{background:var(--brand-tint);color:var(--brand);font-weight:600}.login-screen{min-height:100dvh;display:flex;flex-direction:column;background:var(--bg)}.login-topbar{height:60px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.login-brand{display:inline-flex;align-items:center;gap:10px;font-size:var(--text-lg);font-weight:600;color:var(--ink)}.login-brand svg{width:32px;height:17px;color:var(--brand)}.lang-trigger{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;border-radius:var(--r-badge);font-size:var(--text-sm);font-weight:500;color:var(--ink-secondary);border:1px solid transparent}.lang-trigger:hover{background:var(--surface);border-color:var(--line);color:var(--ink)}.login-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:20px 28px 52px;outline:0}.login-panel{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-dialog);padding:30px 28px 24px;display:flex;flex-direction:column;gap:14px}.login-panel h1{font-size:var(--text-display);line-height:1.3;letter-spacing:-.02em}.verify-form{padding-top:0;border-top:0}.otp-input-row{display:flex;align-items:stretch;gap:8px}.otp-input-row input{flex:1;min-width:0;height:40px;line-height:38px;border:1px solid var(--line-strong);border-radius:var(--r-control);background-color:var(--surface);color:var(--ink);padding:0 12px;transition:border-color .14s ease}.otp-input-row input:focus{border-color:var(--brand)}.otp-resend-btn{flex-shrink:0;height:40px;min-height:40px;padding:0 12px;font-size:var(--text-sm)}.local-code{display:inline-block;padding:6px 10px;border-radius:var(--r-badge);background:var(--surface-subtle);font-size:var(--text-sm);font-variant-numeric:tabular-nums}.terms-checkbox-row{display:inline-flex;align-items:center;gap:8px;cursor:pointer}.terms-checkbox-row input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand);margin:0;cursor:pointer}.login-terms{max-width:380px;text-align:center;font-size:var(--text-sm);line-height:1.55;color:var(--ink-secondary)}.terms-link-btn{display:inline;color:var(--ink);font-size:inherit;font-weight:500;text-decoration:underline;text-underline-offset:3px}.terms-link-btn:hover{color:var(--brand)}.login-portals{margin-top:4px;padding-top:14px;border-top:1px solid var(--line-subtle);display:flex;align-items:center;justify-content:center;gap:16px}.login-portal-switch{font-size:var(--text-sm);font-weight:500;color:var(--ink-secondary);padding:4px 8px;border-radius:var(--r-badge);transition:color .14s ease,background-color .14s ease}.login-portal-switch:hover{color:var(--brand);background:var(--brand-tint)}.terms-modal-body{padding:18px 20px 20px;overflow-y:auto;display:flex;flex-direction:column;gap:14px}.terms-version{font-size:var(--text-sm);color:var(--muted)}.terms-section{display:flex;flex-direction:column;gap:4px}.terms-section h3{font-size:var(--text-base)}.terms-section p{font-size:var(--text-sm);color:var(--ink-secondary);line-height:1.6}.terms-modal-foot{padding-top:8px;display:flex;justify-content:flex-end}.account-modal{padding:18px 20px 22px;overflow-y:auto;display:flex;flex-direction:column;gap:16px}.account-email-row{display:flex;flex-direction:column;gap:2px;padding:10px 12px;background:var(--bg);border:1px solid var(--line);border-radius:var(--r-control)}.account-meta-label{font-size:var(--text-sm);color:var(--muted)}.account-meta-value{font-size:var(--text-base);font-weight:500;color:var(--ink)}.account-form-actions{display:flex;justify-content:flex-end}.danger-zone{margin-top:4px;padding-top:16px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}.danger-zone-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.danger-btn{align-self:flex-start;color:var(--brand);border-color:var(--brand-border)}.danger-btn:hover:not(:disabled){background:var(--brand-tint);border-color:var(--brand)}.danger-confirm-box{background:var(--brand-tint);border:1px solid var(--brand-border);border-radius:var(--r-control);padding:12px;display:flex;flex-direction:column;gap:10px}.danger-confirm-prompt{font-size:var(--text-sm);color:var(--selection-ink);font-weight:500}.danger-confirm-actions{display:flex;flex-wrap:wrap;gap:8px}.app-shell{height:100dvh;display:grid;grid-template-columns:268px minmax(0,1fr);overflow:hidden;background:var(--bg)}.desktop-sidebar{height:100%;background:var(--bg);border-right:1px solid var(--line);display:flex;flex-direction:column;overflow:hidden}.mobile-sidebar-wrap{display:flex;flex-direction:column;height:100%;overflow:hidden}.sidebar-head{height:58px;padding:0 18px;display:flex;align-items:center;flex-shrink:0}.sidebar-brand{display:inline-flex;align-items:center;gap:9px;font-size:var(--text-lg);font-weight:600;color:var(--ink)}.sidebar-brand svg{width:30px;height:16px;color:var(--brand)}.sidebar-portal-tag{font-size:var(--text-sm);font-weight:500;color:var(--ink-secondary);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-badge);padding:1px 6px}.sidebar-actions{padding:2px 14px 10px;display:flex;flex-direction:column;gap:4px;flex-shrink:0}.sidebar-new-case{width:100%;height:38px;padding:0 12px;margin-bottom:4px;border-radius:var(--r-control);background:var(--brand);color:#fff;font-size:var(--text-base);font-weight:500;display:flex;align-items:center;gap:8px;transition:background-color .14s ease}.sidebar-new-case:hover{background:var(--brand-hover)}.sidebar-portal-nav{padding:4px 14px;display:flex;flex-direction:column;gap:4px;flex:1;overflow-y:auto}.sidebar-nav-item{text-decoration:none;width:100%;min-height:36px;padding:6px 11px;border-radius:var(--r-badge);display:flex;align-items:center;gap:9px;font-size:var(--text-base);font-weight:500;color:var(--ink-secondary);text-align:left;border:1px solid transparent;transition:background-color .14s ease,color .14s ease}.sidebar-nav-item:hover{background:var(--surface-subtle);color:var(--ink)}.sidebar-nav-item.active{background:var(--surface);color:var(--ink);font-weight:600;border-color:var(--line)}.sidebar-scroll{flex:1;min-height:0;overflow-y:auto;padding:4px 14px 16px;display:flex;flex-direction:column;gap:14px}.sidebar-group{display:flex;flex-direction:column;gap:4px}.sidebar-section-head{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 2px 6px}.sidebar-section-label{font-size:var(--text-sm);font-weight:600;color:var(--ink-secondary)}.sidebar-search{display:block;margin:4px 2px 6px}.sidebar-search input{width:100%;height:34px;padding:0 10px;border:1px solid var(--line-strong);border-radius:var(--r-badge);background:var(--surface);font-size:var(--text-sm)}.sidebar-empty{padding:6px 8px;font-size:var(--text-sm);color:var(--muted);line-height:1.5}.case-tree{display:flex;flex-direction:column;gap:4px}.case-row-wrap{display:flex;align-items:center;gap:2px;border-radius:var(--r-badge);border:1px solid transparent;transition:background-color .14s ease,border-color .14s ease}.case-row-wrap:hover{background:var(--surface-subtle)}.case-row-wrap.active{background:var(--surface);border-color:var(--line)}.case-row{text-decoration:none;flex:1;min-width:0;padding:8px 6px 8px 10px;border-radius:var(--r-badge);text-align:left;display:flex;align-items:center;justify-content:space-between;color:var(--ink-secondary)}.case-row-wrap:hover .case-row,.case-row-wrap.active .case-row{text-decoration:none;color:var(--ink)}.case-row-title{font-size:var(--text-sm);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.case-row-delete{width:28px;height:28px;margin-right:4px;border-radius:var(--r-badge);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted);opacity:0;transition:opacity .14s ease,background-color .14s ease,color .14s ease}.case-row-wrap:hover .case-row-delete,.case-row-wrap:focus-within .case-row-delete,.case-row-wrap.active .case-row-delete{opacity:1}.case-row-delete:hover{background:var(--brand-tint);color:var(--brand)}@media(hover:none){.case-row-delete{opacity:1}}.case-delete-modal-body{padding:18px 20px 20px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}.case-delete-modal-title{font-size:var(--text-base);font-weight:600;color:var(--ink);line-height:1.45;overflow-wrap:anywhere}.case-delete-modal-desc{font-size:var(--text-sm);color:var(--ink-secondary);line-height:1.6}.case-delete-modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:6px}.sidebar-foot{border-top:1px solid var(--line);padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}.sidebar-user-btn{min-width:0;flex:1;padding:4px 6px;border-radius:var(--r-badge);display:flex;flex-direction:column;text-align:left}.sidebar-user-btn:hover{background:var(--surface-subtle)}.sidebar-user-btn .account-name{font-size:var(--text-sm);font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-btn .account-sub{font-size:var(--text-sm);color:var(--muted)}.sidebar-foot-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}.sidebar-icon-btn{width:30px;height:30px;border-radius:var(--r-badge);display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}.sidebar-icon-btn:hover{background:var(--surface-subtle);color:var(--ink)}.main-pane{height:100%;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}.mobile-topbar{display:none;height:54px;padding:0 12px;background:var(--surface);border-bottom:1px solid var(--line);align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}.mobile-icon-btn{width:36px;height:36px;border-radius:var(--r-badge);display:inline-flex;align-items:center;justify-content:center;color:var(--ink)}.mobile-icon-btn:hover{background:var(--surface-subtle)}.mobile-title{font-size:var(--text-lg);font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-spacer{width:36px}.framed-content{flex:1;min-height:0;padding:12px;display:flex;flex-direction:column;overflow:hidden}.framed-sheet{flex:1;min-height:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);overflow:auto}.workspace-panel-inner{max-width:960px;margin:0 auto;padding:28px 28px 48px}.centered-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:40px 24px}.feature-placeholder{display:flex;flex-direction:column;gap:12px}.feature-placeholder h1{font-size:var(--text-display)}.feature-meta{font-size:var(--text-sm);color:var(--ink-secondary)}.feature-actions{padding-top:6px;display:flex;gap:10px}@media(max-width:900px){.login-topbar{padding:0 16px}.login-center{justify-content:flex-start;align-items:center;padding:16px 16px 40px}.login-panel{padding:24px 20px 20px}.app-shell{grid-template-columns:minmax(0,1fr)}.desktop-sidebar{display:none}.mobile-topbar{display:flex}.icon-button,.sidebar-icon-btn{min-width:38px;min-height:38px}.case-row-delete{opacity:1;width:34px;height:34px}.framed-content{padding:0}.framed-sheet{border:0;border-radius:0}.workspace-panel-inner{padding:20px 16px 36px}}.status-card>a.primary{text-align:center;text-decoration:none}
