:root{--ink:#243a35;--muted:#7c8a85;--brand:#1a5b48;--deep:#123d32;--accent:#cbb88a;--line:#e7ece9;--canvas:#f5f7f5;--radius:14px;--shadow:0 3px 18px #173a2810;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;font-size:14px;color:var(--ink);background:var(--canvas)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #2f8a6f}button{border:1px solid transparent;background:var(--brand);color:white;border-radius:8px;padding:10px 17px;cursor:pointer;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .16s,box-shadow .16s}button:hover{background:#104a3a;box-shadow:0 3px 8px #193f3014}button:disabled{opacity:.45;cursor:default;box-shadow:none}button.secondary{background:white;color:#556d62;border-color:#dce5df}button.secondary:hover{background:#f1f6f2;border-color:#bdcfc2}button.text-button{background:transparent;color:var(--brand);padding:7px 4px;box-shadow:none;font-size:12px;white-space:nowrap}button.text-button:hover{color:#082e21}svg{width:18px;height:18px;flex-shrink:0}button svg{width:16px;height:16px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #dce4df;border-radius:7px;color:var(--ink);background:white;min-width:0;max-width:100%;transition:border-color .15s}input::placeholder,textarea::placeholder{color:#a1ada6}input:focus,select:focus,textarea:focus{border-color:#77a18b}input[readonly],select:disabled{background:#f3f6f3;color:#7b8c82}label{display:flex;flex-direction:column;gap:9px;margin:16px 0;font-size:13px;color:#53675c}textarea{resize:vertical;min-height:90px;line-height:1.75}select{cursor:pointer}a{color:var(--brand)}h1,h2,h3,p{margin-top:0}h1{font-size:28px;font-weight:600;letter-spacing:-.7px}h2{font-size:17px;letter-spacing:-.25px;font-weight:600}h3{font-size:14px;font-weight:600}small{font-size:11px}.muted{font-size:12px;color:var(--muted);line-height:1.8}.overline{font-size:10px;letter-spacing:2px;color:#8a9b90;display:block;font-weight:500}.eyebrow{font-size:11px;letter-spacing:.5px;color:#7a8e80}.error{color:#ba4a40;font-size:13px;line-height:1.6}.app-layout{min-height:100vh}.sidebar{width:222px;position:fixed;inset:0 auto 0 0;background:var(--deep);padding:30px 18px 100px;color:#c3d3c9;overflow-y:auto;z-index:30;scrollbar-width:thin}.brand-lockup{display:flex;gap:12px;align-items:center;padding:1px 10px 22px}.brand-lockup>svg{width:31px;height:31px;color:#d6c494;stroke-width:1.4}.brand-lockup strong{display:block;font-size:20px;letter-spacing:3px;color:#f6f5ed;font-family:'Songti SC','SimSun',serif;white-space:nowrap}.brand-lockup small{display:block;font-size:9px;letter-spacing:1.1px;color:#98b2a3;margin-top:7px;white-space:nowrap}.nav-section-label{font-size:10px;color:#769987;letter-spacing:2px;margin:26px 0 10px;padding-left:15px}.nav-item{width:100%;justify-content:flex-start;background:transparent;border:0;border-radius:7px;color:#acbfaf;padding:13px 14px;font-size:13px;gap:12px;margin:2px 0;font-weight:400}.nav-item svg{width:17px;height:17px;color:#8bad9a}.nav-item:hover{background:#1e4b3d;box-shadow:none}.nav-item.active{background:#2a5845;color:#f4f5e9}.nav-item.active svg{color:#d5c493}.nav-item em,.court-nav em{font-size:10px;font-style:normal;margin-left:auto;color:#9bb39f}.nav-item.active em{background:#3e6b51;padding:2px 5px;border-radius:3px;color:#dfebdb}.court-nav{border:0;background:transparent;color:#9eb6a6;width:100%;justify-content:flex-start;padding:10px 14px;gap:12px;font-size:12px}.court-nav:hover,.court-nav.selected{background:#1c493a;box-shadow:none}.court-dot{width:5px;height:5px;border-radius:50%;background:#789c81;margin-left:6px;margin-right:5px}.sidebar-footer{position:absolute;bottom:0;left:0;width:100%;padding:22px 30px;background:#10372d;color:#8eae99;font-size:11px}.sidebar-footer small{display:block;color:#658a73;margin:7px 0 0 12px;font-size:9px;letter-spacing:.5px}.env-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8ca47b;margin-right:5px}.workspace{margin-left:222px;min-height:100vh}.topbar{height:76px;background:#ffffffde;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:20px;position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:11px;color:#97a59b}.breadcrumb svg{width:13px;height:13px}.breadcrumb strong{color:#475f50;font-weight:500}.topbar-right{display:flex;align-items:center;gap:24px}.test-badge{font-size:10px;color:#8b9a8c;background:#f3f6ee;border:1px solid #e4eadc;border-radius:4px;padding:5px 8px;white-space:nowrap}.test-badge .env-dot{width:4px;height:4px}.user-chip{display:flex;align-items:center;gap:10px;font-size:11px;color:#3a5144}.user-chip small{display:block;color:#8e9f92;font-size:9px;margin-top:4px}.avatar{width:33px;height:33px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e8eee5;color:#5b765e;font-size:12px;flex-shrink:0;font-weight:500}.avatar.small{width:25px;height:25px;font-size:10px;background:#f0f3ec}.icon-button{border:0;background:transparent;color:#8d9e90;padding:5px;box-shadow:none}.icon-button:hover{background:#f1f4ef;box-shadow:none}.mobile-menu{display:none}.main-content{max-width:1550px;padding:32px 36px 0;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:18px}.page-heading .overline{margin-bottom:10px;font-size:9px}.page-heading h1{margin:0 0 10px}.page-heading p{color:#8c9a90;font-size:12px;margin:0;line-height:1.7}.page-scope{font-size:11px;color:#879989;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.page-scope svg{width:15px;height:15px}.welcome{background:linear-gradient(115deg,#e8f0e5,#edf3e8 55%,#f5f6ed);border:1px solid #e2eadc;border-radius:var(--radius);padding:28px 32px;display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:22px}.welcome .overline{color:#7d977a;font-size:8px;letter-spacing:1.7px}.welcome h2{font-family:'Songti SC','SimSun',serif;font-size:27px;letter-spacing:1px;color:#2e523c;margin:13px 0 12px;font-weight:500}.welcome p{font-size:11px;color:#7c917f;margin:0;line-height:1.8}.welcome-side{display:flex;flex-direction:column;align-items:flex-end;gap:17px}.welcome-date{font-size:11px;color:#7a8f77;white-space:nowrap}.welcome-side button{font-size:11px;padding:9px 13px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0 0 24px}.card{background:white;border:1px solid var(--line);border-radius:11px;padding:21px 22px 18px;box-shadow:0 2px 5px #1f452003}.card-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7c8e80}.metric-icon{background:#f1f6ee;color:#74967b;width:30px;height:30px;border-radius:7px;display:flex;align-items:center;justify-content:center}.metric-icon svg{width:16px;height:16px}.card strong{display:block;font-size:32px;letter-spacing:-1px;font-weight:500;font-variant-numeric:tabular-nums;color:#2c4c37;margin:12px 0 10px;line-height:1.2;overflow-wrap:anywhere}.card small{display:block;color:#a2aea3;font-size:9px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;box-shadow:0 2px 5px #1f452003;min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px}.section-heading h2{margin:0 0 6px;font-size:16px}.section-heading p{margin:0;font-size:10px;color:#97a49a}.section-heading>svg{color:#b3c0b2}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(250px,1fr);gap:22px}.dashboard-grid>.panel:first-child{padding-left:20px;padding-right:20px}.scroll{width:100%;overflow:auto;scrollbar-width:thin}table{border-collapse:collapse;text-align:left;width:100%;font-size:11px}th{font-size:10px;font-weight:400;color:#91a095;background:#fafbf9;white-space:nowrap}th,td{padding:16px 12px;border-bottom:1px solid #edf1ec}td{color:#607564;line-height:1.65}td strong{color:#3c5743;font-weight:500}td>svg{width:13px;height:13px;color:#b4c0b4}tbody tr:last-child td{border-bottom:0}.click{cursor:pointer}.click:hover{background:#f8fbf6}.case-number{font-size:11px;font-variant-numeric:tabular-nums}.cell-sub{display:block;font-size:10px;color:#9aa89b;line-height:1.65;margin-top:4px}.case-title{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-cell{display:flex;gap:8px;align-items:center;white-space:nowrap}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:4px;color:#6b8c67;background:#f0f5e9;border:1px solid #e7efde;padding:4px 7px;font-size:9px;white-space:nowrap}.badge>span{width:3px;height:3px;border-radius:50%;background:#83a16b}.badge.closed{background:#edf2f0;color:#778f80;border-color:#dfe8e1}.badge.paused{background:#fbf4e6;color:#ac905e;border-color:#eee2c8}.access-label{display:flex;gap:5px;align-items:center;color:#98a699;font-size:10px;white-space:nowrap}.access-label svg{width:12px;height:12px}.court-row{display:flex;align-items:center;gap:11px;border:0;border-bottom:1px solid #edf1ea;border-radius:0;background:transparent;color:#516d54;padding:15px 0;width:100%;justify-content:flex-start;text-align:left}.court-row:hover{background:#fbfcf9;box-shadow:none}.court-row .court-avatar{width:34px;height:34px;border-radius:7px;background:#f5f7ee;display:flex;align-items:center;justify-content:center;color:#8ba177}.court-avatar svg{width:16px;height:16px}.court-row strong{font-size:11px;display:block;font-weight:500}.court-row small{font-size:9px;display:block;margin-top:4px;color:#a5b1a0}.court-row em{font-style:normal;margin-left:auto;color:#627b54;font-size:15px;font-weight:500}.court-row>svg{width:11px;height:11px;color:#b2c0a9}.scope-note{display:flex;gap:7px;align-items:center;font-size:9px;color:#a4b19b;background:#fafbf7;border-radius:5px;padding:11px;margin-top:16px;line-height:1.5}.scope-note svg{width:12px;height:12px}.todo-preview{margin-top:24px}.empty{text-align:center;padding:45px 20px;color:#a1aea1;font-size:11px}.empty>svg{width:28px;height:28px;display:block;margin:0 auto 16px;color:#b4c4ac;stroke-width:1.3}.empty h3{font-size:12px;font-weight:400;color:#83967e;margin-bottom:7px}.empty p{font-size:10px;margin:0;line-height:1.8}.compact-empty{padding:30px}.compact-empty>svg{width:25px;height:25px}.todo-row{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.todo-row:last-child{border:0}.todo-row strong{font-size:12px;font-weight:500;color:#4f6c54}.todo-row>div{flex:1}.todo-icon{background:#f0f5e9;border-radius:6px;color:#8da47a;padding:8px;display:flex}.todo-icon svg{width:16px;height:16px}.workspace-footer{display:flex;justify-content:space-between;color:#b1bcb0;font-size:9px;letter-spacing:.4px;padding:26px 0 22px;gap:20px}.toolbar{display:flex;gap:12px;align-items:center;margin:20px 0;flex-wrap:wrap}.toolbar select{width:auto;max-width:200px;font-size:11px;padding:11px}.search-wrap{position:relative;flex:1;min-width:210px}.search-wrap>svg{position:absolute;left:12px;top:12px;width:15px;height:15px;color:#aab7a9}.search-wrap input{padding-left:36px;font-size:11px;min-width:0}.list-toolbar{margin:0 0 18px}.list-summary{display:flex;gap:24px;color:#95a590;font-size:11px;margin:0 0 17px}.list-summary span:first-child{color:#5c7a57}.table-note{font-size:10px;color:#a3afa1;display:flex;align-items:center;gap:7px;margin:20px 0 0;padding-top:14px;border-top:1px solid var(--line);line-height:1.7}.table-note svg{width:12px;height:12px;flex-shrink:0}.case-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:26px 0}.case-heading h2{font-size:24px;margin:10px 0 12px;letter-spacing:-.5px}.case-heading p{margin-bottom:0}.tabs{display:flex;gap:18px;flex-wrap:wrap;margin:22px 0}.tabs button{background:transparent;color:#8e9e8c;border:0;border-radius:0;padding:13px 1px;box-shadow:none;font-size:11px;white-space:nowrap;position:relative;font-weight:400}.tabs button:hover{color:var(--brand)}.tabs button.active{color:var(--brand);font-weight:500}.tabs button.active:after{position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--brand);content:''}.detail-tabs{border-bottom:1px solid #dde6da;margin-bottom:25px;gap:22px}.data-section{margin:24px 0 0;border-top:1px solid var(--line);padding-top:22px}.data-section h3,.data-section summary{font-size:12px;line-height:1.8;color:#57764f;font-weight:500;margin:0 0 18px}.data-section summary{cursor:pointer}.data-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px 30px;margin:0}.data-grid div{min-width:0}.data-grid dt{font-size:10px;color:#9aa796;margin:0 0 7px}.data-grid dd{margin:0;font-size:12px;line-height:1.8;color:#526c4e;overflow-wrap:anywhere}.unfilled{color:#c1cabd;font-size:11px}.wide{grid-column:1/-1}.entry-record{border:1px solid #e4ebe0;border-radius:9px;margin:20px 0;padding:22px;background:#fff}.entry-record .section-heading{margin:0}.entry-record h3{line-height:1.7;margin-bottom:0}.entry-record .section-heading h3{max-width:76%;overflow-wrap:anywhere}.entry-record .section-heading button{flex-shrink:0}.entry-record .muted{font-size:10px}.entry{padding:18px 0;border-bottom:1px solid var(--line)}.entry strong{display:block;margin-bottom:12px;font-size:11px;color:#60775a}.entry p{font-size:12px;color:#84927d}.entry summary{font-size:11px;color:#9ba892;cursor:pointer}.fee-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;padding:24px;background:#f5f8f0;margin:22px 0;border:1px solid #e9efdf;border-radius:9px;font-size:11px;color:#95a484}.fee-summary strong{display:block;font-size:24px;letter-spacing:-.8px;color:#536e44;font-weight:500;margin-top:13px}.admin-stats{display:flex;gap:45px;margin:8px 0 26px;padding:0 1px;flex-wrap:wrap}.admin-stats span{font-size:11px;color:#a0ac9a}.admin-stats strong{font-size:20px;font-weight:500;color:#4c6b44;margin-left:13px}.account-toolbar{padding:18px 0;border-top:1px solid var(--line);margin-top:18px}.account-toolbar .search-wrap{max-width:300px}.account-toolbar select{max-width:160px}.role-label{background:#f0f5ed;border:1px solid #e5ecdf;border-radius:4px;padding:5px 8px;font-size:10px;white-space:nowrap;color:#7e9571}.role-label.admin{background:#f5f1e7;border-color:#ede4cf;color:#a38b5d}.self-tag{font-size:8px;padding:3px 5px;background:#eef3e8;color:#97a584;margin-left:7px;border-radius:3px;white-space:nowrap}.status-label{display:inline-flex;gap:5px;align-items:center;font-size:10px;white-space:nowrap}.status-label>span{width:4px;height:4px;border-radius:50%;background:currentColor}.status-label.enabled{color:#82a170}.status-label.disabled{color:#b4aaa0}.role-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:25px}.role-card{background:white;border:1px solid var(--line);border-radius:11px;padding:22px}.role-card-icon{display:flex;width:33px;height:33px;border-radius:8px;align-items:center;justify-content:center;background:#eff5e8;color:#8aa176;margin-bottom:19px}.role-card h2{font-size:14px;margin:0 0 8px;color:#547149}.role-scope{font-size:9px;color:#98ac8b;border:1px solid #e2e9db;padding:3px 6px;border-radius:4px}.role-card p{font-size:11px;line-height:1.9;color:#9aa992;margin:15px 0 8px;min-height:60px}.permission-table th:not(:first-child),.permission-table td:not(:first-child){text-align:center}.permission-yes{display:inline-flex;color:#7a9c66;background:#f0f6e9;padding:4px;border-radius:50%}.permission-yes svg,.permission-no svg{width:12px;height:12px}.permission-no{color:#c3ccbd}.permission-rule{display:flex;gap:12px;padding:20px;background:#f8faf4;border:1px solid #edf1e6;border-radius:8px;margin-top:20px;color:#849a76}.permission-rule>svg{width:18px;height:18px}.permission-rule strong{font-size:11px;font-weight:500;color:#769067}.permission-rule p{font-size:10px;line-height:1.8;color:#a0ae96;margin:8px 0 0}.fixed-rule{font-size:10px;display:flex;align-items:center;gap:7px;color:#a6b29d}.fixed-rule svg{width:12px;height:12px}.admin-log-row{display:flex;gap:15px;padding:23px 0;border-bottom:1px solid var(--line)}.admin-log-row:last-child{border:0}.log-icon{width:30px;height:30px;background:#f4f7ef;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#96ab82;flex-shrink:0}.log-icon svg{width:15px;height:15px}.admin-log-row strong{font-size:12px;color:#6a825c;font-weight:500}.admin-log-row p{font-size:11px;color:#8d9e82;margin:10px 0;line-height:1.8}.admin-log-row .muted{font-size:9px;color:#b3bdab}.admin-log-row summary{font-size:10px;color:#9ba990;cursor:pointer}.permission-preview{display:flex;gap:12px;padding:17px;border-radius:7px;background:#f1f6eb;margin-top:17px;color:#89a172;border:1px solid #e6eddd}.permission-preview strong{font-size:12px;font-weight:500;color:#718b5d}.permission-preview p{font-size:11px;line-height:1.8;margin:7px 0 0;color:#96a988}.permission-preview>svg{width:17px;height:17px}.login-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-brand{background:var(--deep);padding:45px 60px;display:flex;flex-direction:column}.login-brand .brand-lockup{padding:0}.login-message{margin:auto 0;padding:70px 0;max-width:500px}.login-message .overline{font-size:9px;color:#7f9e86}.login-message h1{font-family:'Songti SC','SimSun',serif;font-size:48px;font-weight:400;color:#ebe8d8;letter-spacing:3px;line-height:1.6;margin:32px 0 22px}.login-message p{font-size:13px;color:#88a58c;line-height:2.2;letter-spacing:.4px}.login-copyright{font-size:10px;color:#65896e;letter-spacing:1px;margin:0}.login-side{display:flex;align-items:center;justify-content:center;padding:40px}.login-form{width:340px;max-width:100%}.env-pill{font-size:9px;color:#8d9e74;background:#f2f5e9;border:1px solid #e4ead7;padding:5px 9px;border-radius:4px}.login-form h2{font-size:27px;letter-spacing:-.6px;margin:26px 0 10px;color:#395732}.login-form .muted{font-size:12px;margin-bottom:35px}.login-form label{font-size:11px;gap:10px;color:#809174;margin:20px 0}.login-form input{font-size:12px;padding:13px;border-color:#e1e8d9;background:#fdfefb}.login-submit{width:100%;padding:13px;margin-top:11px;font-size:12px;justify-content:space-between;background:#24583c;border-color:#24583c}.demo-accounts{margin-top:28px;border-top:1px solid #edf0e6;padding-top:19px;font-size:10px;color:#a0ac90;line-height:1.9}.demo-accounts summary{cursor:pointer}.demo-accounts p{font-size:11px;color:#91a07f;line-height:2}.login-tip{font-size:9px;color:#bcc5b0;margin-top:25px;line-height:1.8}dialog{padding:0;border:1px solid #e0e8d9;border-radius:16px;width:560px;max-width:94vw;max-height:92vh;box-shadow:0 24px 100px #10271945;background:white;color:var(--ink)}dialog::backdrop{background:#0f2c235c;backdrop-filter:blur(4px)}dialog.wide-dialog{width:1000px;max-width:94vw}dialog form{margin:0;display:flex;flex-direction:column;max-height:91vh}.dialog-head{padding:25px 30px 20px;background:#fbfcf8;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:21px;margin:10px 0}.dialog-head p{margin-bottom:0;font-size:11px}.dialog-head .eyebrow{font-size:8px;letter-spacing:1px;color:#a4b295}.dialog-body{padding:0 30px 28px;overflow:auto;min-height:0;scrollbar-width:thin}.dialog-footer{padding:17px 30px;border-top:1px solid var(--line);background:#fff;flex-shrink:0}.dialog-footer .toolbar{margin:0;justify-content:flex-end}.dialog-footer .error{margin:0 0 12px}.dialog-footer .error:empty{display:none}.form-context{margin:22px 0 0;border-radius:7px;background:#f4f7ee;border:1px solid #e8eedf;color:#839674;font-size:11px;padding:16px;line-height:1.8}.form-context p{margin:7px 0 0}.form-context strong{color:#658153;font-weight:500}.form-index{display:flex;gap:8px;flex-wrap:wrap;padding:20px 0 0}.form-index button{font-size:10px;padding:7px 10px;background:#f8faf4;border-color:#e5ecdc;color:#91a27d}.form-section{padding-top:8px;margin-top:20px;scroll-margin-top:15px}.form-section h3{font-size:12px;padding:0 0 14px;border-bottom:1px solid var(--line);color:#73905f;margin-bottom:13px}.form-section h3 span{display:inline-block;padding:2px 5px;background:#f0f6e6;border-radius:4px;color:#95ac7d;font-size:9px;margin-right:6px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px}.form-grid label{font-size:11px;color:#8d9d80;margin:13px 0}.form-grid input,.form-grid select,.form-grid textarea{font-size:12px;min-width:0;border-color:#e0e7d9;padding:10px 11px;background:#fff}.form-grid textarea{min-height:80px}.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus{border-color:#8eac7b}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#2f513b;color:#f2f4eb;padding:13px 22px;border-radius:9px;font-size:12px;box-shadow:0 6px 25px #173c3330;display:none;z-index:100;max-width:90vw;text-align:center;line-height:1.7}
@media(min-width:1600px){.main-content{padding:40px 50px 0}.topbar{padding:0 50px}.sidebar{width:245px;padding:35px 22px 100px}.workspace{margin-left:245px}.sidebar-footer{padding-left:36px}.card{padding:25px 27px}.card strong{font-size:36px}}
@media(max-width:1200px){.sidebar{width:200px;padding-left:13px;padding-right:13px}.workspace{margin-left:200px}.main-content{padding:27px 25px 0}.topbar{padding:0 25px}.brand-lockup{gap:8px}.brand-lockup strong{font-size:18px}.brand-lockup small{font-size:8px}.brand-lockup>svg{width:27px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 260px}.cards{gap:12px}.card{padding:18px 16px}.card strong{font-size:29px}.role-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.role-card p{min-height:40px}.account-toolbar{gap:8px}.account-toolbar select{max-width:140px}.user-chip{max-width:160px}}
@media(max-width:1020px){.dashboard-grid{grid-template-columns:1fr}.court-panel{display:none}.topbar-right{gap:13px}.card strong{font-size:27px}.welcome{padding:24px}.welcome h2{font-size:23px}.welcome-side button{font-size:10px}.data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-tabs{gap:17px}.case-heading h2{font-size:21px}.login-brand{padding:35px}.login-message h1{font-size:37px}.login-side{padding:30px}.admin-stats{gap:27px}}
@media(max-width:760px){.sidebar{left:-220px;transition:left .2s;width:210px;box-shadow:12px 0 35px #1e3c3335}.sidebar.is-open{left:0}.workspace{margin-left:0}.mobile-menu{display:inline-flex}.topbar{height:65px;padding:0 18px}.breadcrumb{gap:7px;font-size:10px}.topbar-right{gap:10px}.user-chip>span:last-child{display:none}.test-badge{font-size:8px}.user-chip .avatar{width:28px;height:28px;font-size:10px}.main-content{padding:24px 18px 0}.page-heading{margin-bottom:22px}.page-heading h1{font-size:24px}.page-heading p{font-size:11px}.page-heading .overline{font-size:8px}.page-scope{font-size:10px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card strong{font-size:29px}.welcome{padding:23px;align-items:flex-start}.welcome h2{font-size:21px}.welcome-side{padding-top:4px;gap:13px}.welcome-date{font-size:9px}.welcome .overline{font-size:7px;letter-spacing:1px}.welcome p{max-width:250px;font-size:10px}.welcome-side button{padding:8px 10px;font-size:9px}.panel{padding:20px 17px}.section-heading h2{font-size:15px}.section-heading p{font-size:9px}.case-heading h2{font-size:20px}.case-heading .muted{font-size:10px}.tabs{gap:16px}.tabs button{font-size:10px}.data-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 20px}.data-grid dt{font-size:10px}.data-grid dd{font-size:11px}.entry-record{padding:18px 15px}.entry-record .section-heading{flex-wrap:wrap;gap:10px}.entry-record .section-heading h3{max-width:100%}.entry-record .section-heading button{font-size:10px;padding:7px 10px}.dialog-head{padding:20px}.dialog-body{padding:0 20px 22px}.dialog-footer{padding:14px 20px}.form-grid{gap:0 20px}.fee-summary{gap:16px;padding:20px}.fee-summary strong{font-size:19px}.fee-summary span{font-size:10px}.admin-stats{gap:22px;justify-content:space-between}.admin-stats span{font-size:9px}.admin-stats strong{font-size:18px;margin-left:9px}.account-toolbar select{flex:1;max-width:none;min-width:90px}.account-toolbar .search-wrap{max-width:none;flex-basis:100%}.role-cards{gap:12px}.role-card{padding:20px 17px}.role-card p{font-size:10px}.permission-table td{font-size:10px}.workspace-footer{font-size:8px}.login-layout{grid-template-columns:1fr}.login-brand{padding:25px;display:none}.login-side{padding:35px 24px;min-height:100vh}.login-form{width:350px}.login-form h2{font-size:28px}}
@media(max-width:450px){.welcome-side .welcome-date{display:none}.welcome-side{align-self:flex-end}.welcome h2{font-size:19px}.welcome p{max-width:210px}.welcome{gap:10px;padding:20px}.welcome-side button{font-size:8px;padding:7px 8px;gap:5px}.welcome-side svg{width:12px;height:12px}.welcome .overline{font-size:6px}.card-label{font-size:10px}.card strong{font-size:26px}.card small{font-size:8px}.card{padding:16px}.page-scope{display:none}.form-grid{grid-template-columns:1fr}.data-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start}.section-heading button{font-size:10px;padding:8px 10px}.workspace-footer span:last-child{display:none}.fee-summary{grid-template-columns:1fr;gap:20px}.fee-summary strong{font-size:23px;margin-top:8px}.role-cards{grid-template-columns:1fr}.role-card p{min-height:0}.admin-stats{gap:12px}.admin-stats span{font-size:9px}.admin-stats strong{font-size:16px;margin-left:5px}.toolbar>select{max-width:none;width:100%}.search-wrap{min-width:100%}.topbar-right{gap:6px}.topbar .test-badge{font-size:7px;padding:4px 6px}.topbar .user-chip{display:none}.case-heading{align-items:flex-start}.case-heading h2{font-size:18px}.case-heading .badge{font-size:8px;padding:3px 5px}.form-context{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Readable business typography at the user's normal window size. */
.nav-item{font-size:13px}.court-nav{font-size:12px}.card-label{font-size:12px;color:#768b77}.card small{font-size:10px;color:#8b9e89}table{font-size:12px}th{font-size:11px;color:#7e927f}td{color:#536d56}.cell-sub{font-size:11px;color:#899c88}.case-number{font-size:12px}.case-title{font-size:11px}.role-label,.status-label{font-size:11px}.self-tag{font-size:9px}.badge{font-size:10px}.access-label{font-size:11px}.section-heading p{font-size:11px;color:#899d86}.search-wrap input,.toolbar select{font-size:12px}.text-button,button.text-button{font-size:12px}.data-grid dt{font-size:12px;color:#8b9e83}.data-grid dd{font-size:13px;color:#496643}.data-section h3,.data-section summary{font-size:13px}.unfilled{font-size:12px;color:#a7b69d}.form-grid label{font-size:12px;color:#7a916c}.form-grid input,.form-grid select,.form-grid textarea{font-size:13px}.scope-note{font-size:10px;color:#8a9f7c}.table-note{font-size:11px;color:#8c9f85}.account-actions{display:flex;gap:16px;align-items:center}.role-card p{font-size:12px;color:#8c9f7f}.role-scope{font-size:10px}.admin-log-row strong{font-size:13px}.admin-log-row p{font-size:12px}.permission-preview p{font-size:12px}.fixed-rule{font-size:11px}.permission-rule strong{font-size:12px}.permission-rule p{font-size:11px}.form-context{font-size:12px}.court-row strong{font-size:12px}.court-row small{font-size:10px}.dialog-head .muted{font-size:11px}.account-toolbar{gap:8px}.topbar .test-badge{font-size:10px}.entry strong{font-size:12px}.entry summary{font-size:12px}.workspace-footer{font-size:10px}.admin-stats span{font-size:12px}.role-card .text-button{font-size:12px}.page-heading p{color:#81967e}.page-heading .overline{color:#84987f}.permission-no{color:#aebea3}.admin-stats strong{color:#4b6b40}.form-grid textarea::placeholder{font-size:12px}.form-section h3{font-size:13px}
@media(max-width:760px){.account-actions{gap:8px}.account-actions .text-button{font-size:11px}.admin-stats{gap:14px}.admin-stats span{font-size:11px}.form-grid label{font-size:12px}.data-grid dd{font-size:12px}.case-title{max-width:150px}.topbar .test-badge{font-size:8px}.workspace-footer{font-size:9px}.scope-note{font-size:10px}}
/* Guided forms: common fields first, optional details retained in place. */
[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.smart-form{margin-top:20px}.smart-form-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0 16px;border-bottom:1px solid var(--line)}.smart-form-bar>span{display:flex;align-items:center;gap:8px;color:#6d8960;font-size:11px;flex-wrap:wrap}.smart-form-bar>span>svg{width:15px;height:15px}.smart-form-bar strong{font-size:11px;font-weight:500}.smart-form-bar small{font-size:10px;color:#9aaa90;margin-left:4px}.smart-form-bar .text-button{font-size:11px;padding:3px}.smart-steps{display:flex;gap:8px;flex-wrap:wrap;padding:20px 0 5px}.smart-steps button{font-size:11px;justify-content:flex-start;background:#f8faf5;color:#91a280;border:1px solid #e5ecdd;border-radius:7px;padding:9px 12px;box-shadow:none}.smart-steps button span{font-size:9px;border-radius:50%;width:17px;height:17px;display:inline-flex;justify-content:center;align-items:center;background:#ecf1e4;color:#9aab86}.smart-steps button.active{border-color:#7d9b70;background:#eef5e7;color:#577847}.smart-steps button.active span{background:#6b8d59;color:white}.smart-panel{padding-top:7px;margin-top:10px}.smart-panel>h3{font-size:14px;margin:12px 0 16px;padding-bottom:15px}.smart-field{min-width:0;align-self:start;padding:12px 0}.smart-field.wide{grid-column:1/-1}.smart-field>label{margin:0 0 9px;font-size:12px;color:#728a64;line-height:1.6}.smart-field input,.smart-field select,.smart-field textarea{font-size:13px;line-height:1.5;padding:11px 12px}.smart-field textarea{min-height:85px}.field-hint{display:block;color:#a1ae97;font-size:10px;line-height:1.7;margin:7px 0 0}.custom-entry{padding:9px 0 0}.custom-entry input,.custom-entry textarea{background:#fdfefb;border-style:dashed}.field-shortcuts{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:8px}.field-shortcuts button{background:#f5f8ef;border:1px solid #e6ecde;color:#92a67e;padding:3px 9px;font-size:10px;border-radius:4px;box-shadow:none;min-height:23px}.field-shortcuts button:hover{background:#eaf2df;border-color:#b5c79f;color:#6c8b51}.field-shortcuts small{font-size:9px;color:#aab69e}.advanced-fields{margin:18px 0 7px;border:1px solid #e6ecdf;border-radius:8px;background:#fcfdf9}.advanced-fields>summary{display:flex;align-items:center;gap:13px;list-style:none;padding:15px 17px;cursor:pointer;color:#91a17e;font-size:11px}.advanced-fields>summary::-webkit-details-marker{display:none}.advanced-fields>summary small{font-size:9px;color:#aeb89f}.advanced-fields>summary svg{width:13px;height:13px;margin-left:auto;transition:transform .15s}.advanced-fields[open]>summary svg{transform:rotate(180deg)}.advanced-fields>.form-grid{padding:4px 17px 12px;border-top:1px solid #edf1e7}.smart-step-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.smart-step-footer button{font-size:11px;padding:8px 13px}.smart-step-footer span{font-size:10px;color:#a4b094;text-align:center}.smart-field.preserved-value>label:after{content:'已有记录';font-size:8px;padding:2px 5px;border-radius:3px;background:#f2f3e8;color:#a1a27a;margin-left:9px}.smart-form[data-mode=all] .smart-panel{padding-top:20px}.smart-form[data-mode=all] .smart-steps{position:sticky;top:-1px;background:#fff;z-index:1;padding-bottom:12px}.smart-field .field-shortcuts+small{font-size:10px}.smart-field input:focus,.smart-field select:focus,.smart-field textarea:focus{background:#fff;border-color:#8ba977}@media(max-width:760px){.smart-form-bar small{display:none}.smart-steps{gap:6px}.smart-steps button{font-size:10px;padding:8px 10px}.smart-step-footer{gap:8px}.smart-step-footer span{font-size:9px}.smart-step-footer button{font-size:10px;padding:8px 10px}.smart-field>label{font-size:12px}.field-hint{font-size:10px}}@media(max-width:450px){.smart-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.smart-steps button{font-size:10px}.smart-step-footer span{display:none}.smart-step-footer button{flex:1}.advanced-fields>.form-grid{padding:4px 13px 10px}.smart-form-bar>span{font-size:10px}.smart-form-bar .text-button{font-size:10px}}
.guided-dialog .dialog-head{padding:18px 30px 16px}.guided-dialog .dialog-head h2{font-size:20px;margin:8px 0}.guided-dialog .dialog-head .eyebrow{font-size:8px}.guided-dialog .form-context{margin-top:16px;padding:11px 14px}.guided-dialog .smart-form{margin-top:12px}.guided-dialog .smart-form-bar{padding:10px 0 12px}.guided-dialog .smart-steps{padding-top:14px}.guided-dialog .smart-panel{margin-top:4px}.guided-dialog .smart-panel>h3{margin:7px 0 10px;padding-bottom:12px}.smart-field{position:relative}.field-shortcuts.label-shortcut{position:absolute;right:0;top:10px;margin:0;gap:4px}.label-shortcut button{border-color:transparent;background:transparent;min-height:20px;padding:1px 4px;font-size:9px}.label-shortcut+*{clear:both}.smart-field:has(.label-shortcut)>label{padding-right:85px}.guided-dialog .dialog-footer{padding-top:13px;padding-bottom:13px}@media(max-width:760px){.guided-dialog .dialog-head{padding:17px 20px}.smart-field .label-shortcut button{font-size:9px}}@media(max-width:450px){.field-shortcuts.label-shortcut{position:static;margin-top:7px}.smart-field:has(.label-shortcut)>label{padding-right:0}}
.dialog-footer.has-steps{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 20px}.dialog-footer.has-steps>.error{grid-column:1/-1}.dialog-footer>.smart-step-footer{margin:0;padding:0;border:0;justify-content:flex-start;gap:10px}.dialog-footer>.smart-step-footer>span{font-size:9px;max-width:180px;line-height:1.5}.dialog-footer .smart-step-footer button{padding:8px 11px;font-size:11px}.dialog-footer.has-steps .toolbar{gap:9px}.dialog-footer.has-steps .toolbar button{font-size:12px;padding:9px 13px}@media(max-width:1050px){.dialog-footer>.smart-step-footer>span{display:none}}@media(max-width:600px){.dialog-footer.has-steps{gap:0 10px}.dialog-footer .smart-step-footer button{font-size:10px;padding:8px 8px}.dialog-footer .smart-step-footer button svg{width:12px;height:12px}.dialog-footer.has-steps .toolbar button{font-size:11px;padding:8px 9px}.dialog-footer.has-steps .toolbar{gap:6px}.dialog-footer>.smart-step-footer{gap:6px}}@media(max-width:390px){.dialog-footer.has-steps{grid-template-columns:1fr;gap:11px}.dialog-footer>.smart-step-footer{justify-content:space-between}.dialog-footer.has-steps .toolbar{width:100%}.dialog-footer.has-steps .toolbar button{flex:1}}
.cards .card strong{overflow-wrap:normal;white-space:nowrap}
.cards .card:last-child strong{font-size:clamp(18px,1.8vw,28px);letter-spacing:-.6px}
@media (min-width:761px) and (max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:450px){.cards .card:last-child strong{font-size:14px}}
.ledger-filter-form{padding:24px 28px;background:linear-gradient(135deg,#f9fbf6,#fff);border-bottom:1px solid var(--line)}
.ledger-date-coverage{font-size:11px;line-height:1.7;color:#667b56;margin:16px 0 0;padding:9px 12px;background:#edf3e7;border-radius:5px}
.court-month-panel{margin-bottom:26px;border:1px solid #dce6dc;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 5px 22px #234d3910}
.court-month-heading{padding:23px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(115deg,#163f34,#285b49);color:#fff}
.court-month-eyebrow{display:flex;align-items:center;gap:7px;color:#bdd0b5;font-size:11px;letter-spacing:2px}.court-month-eyebrow svg{width:14px;height:14px}.court-month-heading h2{font-size:21px;letter-spacing:.5px;font-weight:500;margin:8px 0 0;color:#f6f8ec}
.court-month-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.court-month-controls label{color:#c4d4c3;font-size:11px;margin:0}.court-month-controls input,.court-month-controls select{display:block;background:#f6f8f0;color:#244c3e;font-size:12px;border:1px solid #6b8971;border-radius:6px;padding:8px 10px;min-height:36px;margin:7px 0 0;min-width:140px;width:auto}.court-month-controls .text-button{color:#e0d8ac;padding:9px 1px;font-size:11px}
.court-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(190px,1.4fr);padding:24px 10px 20px;gap:0}
.court-kpi{padding:0 18px;min-width:0;border-right:1px solid #e7ece3}.court-kpi:last-child{border:0}.court-kpi-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#58735d}.court-kpi-label svg{width:16px;height:16px;color:#9baf8e;flex-shrink:0}
.court-kpi-value{display:flex;align-items:baseline;gap:6px;margin:16px 0 11px;white-space:nowrap}.court-kpi-value strong{font-size:31px;font-weight:500;letter-spacing:-.8px;color:#214a3b;line-height:1.2}.court-kpi-value>span{color:#819077;font-size:11px}.court-kpi-money .court-kpi-value strong{font-size:clamp(16px,1.65vw,27px);letter-spacing:-.5px}.court-kpi-money .court-kpi-label{color:#867344}.court-kpi p{font-size:10px;line-height:1.6;margin:0;color:#6c8066}.court-kpi small{font-size:10px;display:block;margin-top:5px;line-height:1.5}.court-kpi .coverage-warning{color:#97733c}.court-kpi .neutral{color:#84957c}
.court-stats-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 26px;background:#f6f8f2;font-size:11px;color:#73816a;line-height:1.7}.court-stats-footer strong{font-size:12px;color:#456743;font-weight:500}.court-stat-separator{margin:0 10px;color:#a6b29a}.court-stat-definitions{padding:12px 26px;color:#728168;font-size:11px;line-height:1.8;border-top:1px solid #eaf0e3}.court-stat-definitions summary{cursor:pointer;color:#58754d}.court-stat-definitions p{margin:10px 0 0}.court-stats-message{padding:40px 26px;text-align:center;font-size:13px;color:#75876b}.court-data-alert{margin:12px 26px;font-size:11px;color:#9a7338;line-height:1.7}
@media(max-width:1150px){.court-kpis{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 12px}.court-kpi{padding:18px 14px;border:0;border-bottom:1px solid #e8eee2}.court-kpi:nth-child(4),.court-kpi:nth-child(5){border-bottom:0}.court-kpi-money{grid-column:span 2}.court-kpi-money .court-kpi-value strong{font-size:28px}.court-month-heading{align-items:flex-start;flex-direction:column}.court-month-controls{width:100%}}
@media(max-width:760px){.court-month-heading{padding:20px}.court-month-heading h2{font-size:19px}.court-kpis{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px}.court-kpi:nth-child(4){border-bottom:1px solid #e8eee2}.court-kpi-money{grid-column:1/-1}.court-kpi-money .court-kpi-value strong{font-size:30px}.court-kpi-value strong{font-size:28px}.court-stats-footer,.court-stat-definitions{padding:12px 20px}.court-month-controls{gap:10px}.court-month-controls label{flex:1;min-width:0}.court-month-controls input,.court-month-controls select{min-width:0;width:100%}.court-month-controls .text-button{margin-left:auto}.court-stat-separator{margin:0 5px}}
.ledger-filter-heading,.ledger-filter-actions,.ledger-result-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ledger-filter-heading{margin-bottom:20px}.ledger-filter-heading h2{display:flex;align-items:center;gap:9px;margin:0;font-size:17px;color:#345c48}.ledger-filter-heading h2 svg{width:18px}.ledger-filter-heading p{font-size:12px;color:#71816c;margin:7px 0 0}
.ledger-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px}.ledger-filter-grid label{margin:0;min-width:0;font-size:12px;color:#536b4b}.ledger-filter-grid input,.ledger-filter-grid select{width:100%;min-width:0;margin-top:7px;font-size:12px;padding:10px 11px;background:#fff;border:1px solid #dce5d5;border-radius:6px;color:#344b38}.ledger-filter-grid input[readonly]{background:#eef3e9}.ledger-filter-actions{margin-top:20px;align-items:flex-end}.ledger-filter-actions>p{font-size:11px;line-height:1.7;max-width:48%;margin:0;color:#71816c}.ledger-filter-actions>div{display:flex;gap:10px;flex-shrink:0}.ledger-filter-actions button{font-size:12px;padding:10px 14px}.ledger-filter-actions .text-button{padding:10px 5px}.ledger-filter-form .error:empty{display:none}.ledger-filter-form .error{margin:12px 0 0}.ledger-result-heading{padding:18px 28px;border-bottom:1px solid var(--line)}.ledger-result-heading strong{font-size:13px;font-weight:500;color:#49633e}.ledger-result-heading em{font-style:normal;font-size:20px;margin:0 7px;color:#275245}.ledger-result-heading>span{font-size:11px;color:#7c8d73}.ledger-panel .table-note{line-height:1.8}
@media(max-width:1100px){.ledger-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ledger-filter-actions{align-items:flex-start;flex-direction:column}.ledger-filter-actions>p{max-width:none}.ledger-filter-actions>div{align-self:flex-end}}
@media(max-width:760px){.ledger-filter-form{padding:20px}.ledger-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ledger-filter-heading h2{font-size:16px}.ledger-filter-heading button{font-size:11px;padding:8px}.ledger-result-heading{padding:16px 20px;align-items:flex-start;flex-direction:column;gap:5px}}
@media(max-width:420px){.ledger-filter-grid{grid-template-columns:minmax(0,1fr)}.ledger-filter-actions>div{gap:6px;align-self:stretch}.ledger-filter-actions button{font-size:11px;padding:10px}.ledger-filter-actions>div>button:last-child{flex:1}.ledger-filter-heading{align-items:flex-start}}
