:root{color:#14233b;background:#f3f6fb;font-family:Inter,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{padding:9px 14px;border:1px solid #cfd9e7;border-radius:9px;background:#fff;color:#233653;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}.primary-button{border-color:#326df5;background:#326df5;color:#fff}label{color:#53657f}input,select,textarea{padding:10px 12px;border:1px solid #d4ddea;border-radius:9px;background:#fff;color:#182b46}table{width:100%;margin-top:20px;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}th{padding:14px 16px;background:#f2f5f9;color:#5b6b83;text-align:left;white-space:nowrap}td{padding:15px 16px;border-top:1px solid #e8edf4;vertical-align:middle}tbody tr:hover{background:#f8fbff}footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:18px 0}.app-shell{min-height:100vh;display:grid;grid-template-columns:220px 1fr}.app-shell aside{position:sticky;top:0;height:100vh;padding:28px 20px;background:#fff;border-right:1px solid #e4e9f1;display:flex;flex-direction:column}.app-shell aside .brand-name,.app-shell aside h2{margin:0 0 28px}.brand-name-editable{width:100%;padding:0;border:0;background:transparent;color:#10243f;font:inherit;font-size:1.5rem;font-weight:700;text-align:left}.brand-name-editable small{display:block;margin-top:4px;color:#8a99ad;font-size:12px;font-weight:400;opacity:0;transition:opacity .15s ease}.brand-name-editable:focus-visible small,.brand-name-editable:hover small{opacity:1}.brand-name-empty{color:#8a99ad;font-size:1rem}.app-shell nav{display:grid;gap:8px}.app-shell nav a{padding:11px 14px;border-radius:10px}.app-shell nav a:hover{background:#eef4ff;color:#2468e8}.app-shell main{min-width:0;padding:30px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.page-heading h1{margin:6px 0}.page-heading p{margin:0;color:#718096}.correction-form>button,.page-heading>button{border-color:#326df5;background:#326df5;color:#fff}.back-link{color:#3972d8;font-size:14px}.contract-cell{white-space:nowrap;font-weight:600}.matter-name-cell{min-width:280px;font-weight:650}.matter-name-cell a:hover{color:#2d6eea}.status-message{padding:12px 15px;border-radius:10px;background:#eef6ff;color:#3165ad}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}.detail-grid article{min-height:96px;padding:18px;border:1px solid #e2e8f1;border-radius:13px;background:#fff;display:grid;gap:8px}.detail-grid span{color:#728198;font-size:14px}.detail-grid strong{font-size:18px}.correction-form{margin:20px 0;padding:24px;background:#fff;border:1px solid #dfe7f2;border-radius:15px}.matter-party-fields{border:0;padding:0;margin:0;min-width:0}.matter-party-fields>button{margin-top:16px}.correction-form h2{margin-top:0}.correction-form>p{color:#718096}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.form-grid label{display:grid;gap:7px;font-weight:600}.form-grid .wide{grid-column:1/-1}.form-grid textarea{min-height:90px;resize:vertical}.party-list{display:flex;flex-wrap:wrap;gap:12px}.party-list article{min-width:220px;padding:14px 16px;border-radius:12px;background:#fff;border:1px solid #e2e8f1;display:grid;gap:6px}.party-list span{color:#718096;font-size:14px}.party-list .text-danger{width:max-content;padding:4px 0;border:0;background:transparent;color:#c84b55;font-size:13px}.matter-workflow-section{margin:26px 0}.matter-workflow-heading{margin-bottom:13px}.matter-workflow-heading h2{margin:0 0 6px}.matter-workflow-heading p{margin:0;color:#7b899c;font-size:14px;line-height:1.55}.matter-finance-section{margin:26px 0}.matter-finance-section>button{margin-bottom:14px}.case-finance-form{padding:22px;border:1px solid #dfe6ef;border-radius:16px;background:#fff}.ledger-account-picker{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 22px;margin:0 0 14px;border:1px solid #cfe0f5;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#eef5ff)}.ledger-account-picker div{display:grid;gap:4px}.ledger-account-picker strong{font-size:18px;color:#183653}.ledger-account-picker span{color:#74869a;font-size:14px}.ledger-account-picker select{min-width:260px;font-weight:650;background:#fff}.ledger-filter-bar{display:flex;align-items:end;gap:14px;margin:0 0 18px;padding:14px 18px;border:1px solid #e0e7f0;border-radius:14px;background:#fff}.ledger-filter-bar label{display:grid;gap:6px;color:#607289;font-size:14px}.ledger-filter-bar input{min-width:360px}.matter-action-form{margin:0;padding:22px;border:1px solid #dce6f2;border-radius:15px;background:linear-gradient(145deg,#fff,#f8fbff);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:16px}.matter-action-form label{min-width:0;display:grid;grid-template-rows:22px 46px 18px;align-content:start;gap:7px;font-weight:600}.matter-action-form input,.matter-action-form select{width:100%;height:46px;min-height:46px}.matter-action-form small{min-height:18px;color:#8795a7;font-weight:400}.matter-action-form>button{grid-column:1/-1;justify-self:end;min-width:150px;min-height:44px;margin-top:2px;border-color:#326df5;background:#326df5;color:#fff}.matter-files{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.matter-timeline-table{table-layout:auto}.matter-timeline-table .timeline-tax-column{min-width:90px;white-space:nowrap}.matter-timeline-table .timeline-summary-column{width:auto;min-width:280px}.matter-timeline-table .timeline-attachment-column{width:240px;min-width:210px}.matter-timeline-table .timeline-attachment-column .matter-files{margin-top:0}.attachment-add-button{display:block;margin-top:8px;padding:6px 10px;border-color:#b8d7f0;background:#f7fbff;color:#237eb8;white-space:nowrap}.matter-timeline-table .timeline-action-column{width:90px;min-width:90px;text-align:center;white-space:nowrap}.panel{padding:0 18px 18px;border:1px solid #e2e8f1;border-radius:15px;background:#fff;overflow-x:auto}.seal-form{margin-bottom:20px;padding:22px;border:1px solid #dfe7f2;border-radius:15px;background:#fff;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.seal-form label{display:grid;gap:7px;font-weight:600}.seal-form .wide{grid-column:1/-1}.seal-form small{color:#7b8a9e;font-weight:400}.seal-form button{width:max-content;border-color:#326df5;background:#326df5;color:#fff}.seal-summary{line-height:1.6;font-weight:650;overflow-wrap:anywhere}.attachment-link{display:inline-block;max-width:165px;padding:7px 11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #b8d7f0;border-radius:8px;background:#f3f9fe;color:#237eb8}.muted{color:#9aa8b8}.danger-button{padding:7px 12px;border-color:#f0b8b8;background:#fff7f7;color:#c53b3b}.archive-form{margin-bottom:20px;padding:22px;border:1px solid #dfe7f2;border-radius:15px;background:#fff;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.archive-form label{display:grid;align-content:start;gap:7px;font-weight:600}.archive-form .wide{grid-column:1/-1}.archive-form textarea{min-height:76px;resize:vertical}.archive-form small{color:#7b8a9e;font-weight:400}.archive-form>button{width:max-content;border-color:#326df5;background:#326df5;color:#fff}.archive-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 12px;padding:8px;border:1px solid #dfe6ef;border-radius:13px;background:#fff}.archive-tabs button{display:flex;align-items:center;gap:8px;border-color:transparent}.archive-tabs button.active{border-color:#2f6ef2;background:#2f6ef2;color:#fff}.archive-tabs small{min-width:22px;padding:2px 6px;border-radius:999px;background:rgba(120,142,174,.13);text-align:center}.archive-tabs button.active small{background:rgba(255,255,255,.2)}.archive-filters{display:flex;align-items:center;gap:12px;margin-bottom:14px}.archive-filters input{min-width:280px;margin-left:auto}.archive-filters span{color:#748399;white-space:nowrap}.archive-panel{padding-top:0}.archive-title{min-width:180px;max-width:360px;line-height:1.55;font-weight:650;overflow-wrap:anywhere}.archive-files{display:flex;max-width:280px;flex-wrap:wrap;gap:7px}.credential-cell{min-width:150px;display:grid;gap:7px}.credential-cell code{width:max-content;max-width:220px;padding:6px 8px;border-radius:7px;background:#fff5dc;color:#8a5b00;overflow-wrap:anywhere}.credential-cell button{width:max-content;padding:6px 10px;color:#2f67c9}.external-link{color:#2c6ed7;text-decoration:underline;text-underline-offset:3px}.access-denied{padding:40px;color:#a34040;text-align:center}.party-form{margin-bottom:20px;padding:22px;border:1px solid #dfe7f2;border-radius:15px;background:#fff;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.party-form label{display:grid;gap:7px;font-weight:600}.party-form .wide{grid-column:1/-1}.party-form>button{width:max-content;border-color:#326df5;background:#326df5;color:#fff}.form-tip{padding:12px 14px;border-left:4px solid #69b9df;border-radius:8px;background:#eef8fe;color:#416a83}.party-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.party-stats article{padding:18px;border:1px solid #e1e8f1;border-radius:14px;background:#fff;display:grid;gap:7px}.party-stats small,.party-stats span{color:#748399}.party-stats strong{font-size:27px}.party-filters{display:grid;grid-template-columns:repeat(5,max-content) minmax(220px,1fr);gap:10px;margin-bottom:14px}.party-panel{padding-top:0}.party-list-top{scroll-margin-top:16px}.party-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0;color:#52647d}.party-pagination label,.party-pagination-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.party-pagination select{width:auto;min-width:64px}.party-pagination button:disabled{opacity:.45;cursor:not-allowed}.party-name{min-width:180px;max-width:330px;font-weight:650;line-height:1.55;overflow-wrap:anywhere}.type-pill{display:inline-block;padding:6px 10px;border-radius:999px;background:#eaf8f2;color:#278264;white-space:nowrap}.identity-cell{min-width:165px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:20px 0 28px}.summary-grid article{padding:18px;border:1px solid #e1e8f1;border-radius:14px;background:#fff;display:grid;gap:8px}.summary-grid small,.summary-grid span{color:#748399}.summary-grid strong{color:#132643;font-size:23px}.summary-card-button{padding:18px;border:1px solid #e1e8f1;border-radius:14px;background:#fff;display:grid;gap:8px;text-align:left;color:inherit}.summary-card-button small,.summary-card-button span{color:#748399}.summary-card-button strong{color:#132643;font-size:23px}.summary-card-button.active,.summary-card-button:hover{border-color:#6d9df8;background:linear-gradient(145deg,#fff,#f1f6ff);box-shadow:0 10px 26px rgba(46,99,195,.1);transform:translateY(-1px)}.dashboard-account-section{margin-top:8px}.dashboard-section-heading{margin-bottom:14px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.dashboard-section-heading h2{margin:0 0 6px}.dashboard-section-heading p{margin:0;color:#7b899d}.analytics-page{display:grid;gap:20px}.analytics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.analytics-kpi-group{padding:17px;border:1px solid #dfe7f1;border-radius:17px;background:rgba(255,255,255,.6)}.analytics-kpi-group-heading{margin:0 2px 14px;display:flex;align-items:baseline;justify-content:space-between;gap:16px}.analytics-kpi-group-heading h2{margin:0;font-size:18px}.analytics-kpi-group-heading span{color:#8290a3;font-size:13px}.analytics-line-panel{overflow:hidden}.analytics-line-chart{width:100%;overflow-x:auto}.analytics-line-chart svg{display:block;width:100%;min-width:760px;height:270px}.analytics-line-chart .grid-line{stroke:#e8edf4;stroke-width:1}.analytics-line-chart .axis-line{stroke:#cad5e2;stroke-width:1.2}.analytics-line-chart .metric-line{fill:none;stroke:#3977f6;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 5px 5px rgba(57,119,246,.16))}.analytics-line-chart .metric-point{fill:#fff;stroke:#3977f6;stroke-width:4}.analytics-line-chart text{fill:#7b899b;font-size:13px}.trend-current{color:#8290a3;font-size:13px}.analytics-kpi{min-height:132px;padding:19px 20px;display:grid;align-content:start;gap:10px;text-align:left;border:1px solid #e0e7f0;border-radius:15px;background:#fff;box-shadow:0 9px 30px rgba(28,50,82,.045)}.analytics-kpi.selected,.analytics-kpi:hover{border-color:#78a5ff;box-shadow:0 10px 30px rgba(49,105,225,.11);transform:translateY(-1px)}.analytics-kpi.selected{background:linear-gradient(145deg,#fff,#f2f7ff)}.analytics-kpi>span{color:#718198}.analytics-kpi strong{color:#12243f;font-size:clamp(21px,1.45vw,28px);white-space:nowrap}.analytics-kpi small{color:#94a0b0;line-height:1.45}.analytics-kpi.warn strong{color:#d94a56}.analytics-panel{padding:23px;border:1px solid #e1e8f0;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 12px 34px rgba(32,48,63,.045)}.analytics-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}.analytics-heading h2{margin:0 0 5px;font-size:20px}.analytics-heading p{margin:0;color:#8996a6;font-size:13px}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.trend-legend{display:flex;gap:16px;color:#718194;font-size:12px}.trend-legend span:before{content:"";display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:3px}.trend-legend .income:before{background:#3977f6}.trend-legend .cost:before{background:#ffad43}.trend-legend .profit:before{background:#43b581}.trend-chart{height:260px;padding:18px 8px 0;display:grid;grid-template-columns:repeat(12,minmax(34px,1fr));align-items:end;gap:10px;border-bottom:1px solid #dfe7ec;background:repeating-linear-gradient(0deg,transparent 0,transparent 54px,rgba(114,139,157,.11) 55px)}.trend-month{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:9px}.trend-month>span{color:#7c8b98;font-size:12px}.trend-bars{width:100%;height:202px;display:flex;align-items:flex-end;justify-content:center;gap:3px}.trend-bars i{display:block;width:22%;min-width:5px;border-radius:6px 6px 2px 2px;box-shadow:0 4px 10px rgba(31,64,105,.1);transition:.2s}.trend-month:hover i{transform:translateY(-3px)}.trend-bars .income{background:linear-gradient(180deg,#62a1ff,#3977f6)}.trend-bars .cost{background:linear-gradient(180deg,#ffd083,#ffad43)}.trend-bars .profit{background:linear-gradient(180deg,#73d4a5,#43b581)}.trend-bars .loss{background:linear-gradient(180deg,#ff9b9f,#ef6b73)}.efficiency-list,.ranking-list{display:grid;gap:14px}.ranking-row{display:grid;grid-template-columns:30px 1fr 125px;align-items:center;gap:12px}.ranking-row>b{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#edf4ff;color:#3977f6}.ranking-row>div span{display:flex;justify-content:space-between;font-weight:600}.ranking-row>div small{color:#8694a5;font-weight:400}.ranking-row>div i{display:block;height:8px;margin-top:8px;border-radius:8px;background:linear-gradient(90deg,#3977f6,#72c5e8)}.ranking-row>strong{text-align:right}.structure-visual{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:25px}.donut{position:relative;width:170px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center}.donut:after{content:"";position:absolute;inset:27px;border-radius:50%;background:#fff}.donut>div{position:relative;z-index:1;display:grid;text-align:center}.donut strong{font-size:28px}.donut span{color:#8996a5;font-size:12px}.structure-legend{display:grid;gap:11px}.structure-legend>div{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:8px}.structure-legend i{width:10px;height:10px;border-radius:4px}.structure-legend small{color:#8996a5}.conversion-visual{display:grid;grid-template-columns:160px 1fr;align-items:center;gap:25px}.conversion-ring{position:relative;width:154px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center}.conversion-ring:after{content:"";position:absolute;inset:23px;border-radius:50%;background:#fff}.conversion-ring>div{position:relative;z-index:1;display:grid;text-align:center}.conversion-ring strong{font-size:27px}.conversion-ring span{color:#8996a5;font-size:12px}.conversion-cards{display:grid;gap:9px}.conversion-cards>button,.conversion-cards>div{padding:12px 14px;border:0;border-radius:11px;background:#f5f8fb;display:flex;justify-content:space-between;gap:8px;text-align:left}.conversion-cards>button:hover{background:#edf4ff}.efficiency-list span{display:flex;justify-content:space-between}.efficiency-list>div>i{height:11px;margin-top:8px;display:block;overflow:hidden;border-radius:10px;background:#edf1f3}.efficiency-list em{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#3977f6,#26c6b8)}.analytics-details{min-width:0}.analytics-detail-table{overflow-x:auto}.analytics-detail-table table{min-width:1050px;margin-top:0}.analytics-summary{min-width:260px;max-width:500px;line-height:1.55;overflow-wrap:anywhere}.negative-money{color:#dc4856}.positive-money{color:#148a68}.ledger-balance-strip{margin:5px 0 14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ledger-balance-strip article,.ledger-balance-strip>button{padding:14px 17px;border:1px solid #dfe7f1;border-radius:13px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;color:inherit;font:inherit}.ledger-balance-strip>button{cursor:pointer}.ledger-balance-strip>button.active,.ledger-balance-strip>button:hover{border-color:#75a3ff;box-shadow:0 8px 24px rgba(48,103,219,.12)}.ledger-balance-strip span{color:#77869a}.ledger-balance-strip article>span:last-child,.ledger-balance-strip button>span:last-child,.ledger-balance-strip strong{color:#18304f;font-size:18px;font-weight:700}.ledger-balance-label{display:grid;gap:3px}.ledger-balance-label small{color:#98a5b7;font-size:12px;font-weight:400}.ledger-summary-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.ledger-summary-section{display:grid;gap:12px}.ledger-summary-section+.ledger-summary-section{margin-top:22px}.ledger-summary-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.ledger-summary-section-heading h2{margin:0 0 4px;font-size:19px}.ledger-summary-section-heading p{margin:0;color:#8492a4;font-size:13px}.ledger-business-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ledger-flow-cards{grid-template-columns:repeat(5,minmax(0,1fr))}.ledger-summary-card{min-height:122px;padding:16px;border:1px solid #dfe7f1;border-radius:14px;background:#fff;display:grid;align-content:start;gap:10px;text-align:left;box-shadow:0 8px 24px rgba(29,50,83,.04)}.ledger-summary-card.active,.ledger-summary-card:hover{border-color:#72a0fb;background:linear-gradient(145deg,#fff,#f1f6ff);transform:translateY(-1px)}.ledger-summary-card>span{min-height:38px;color:#718096;line-height:1.4}.ledger-summary-card>span:nth-child(2){min-height:0;color:#172d4a;font-size:20px;font-weight:750;white-space:nowrap}.ledger-summary-card small{color:#98a5b5}.ledger-summary-card>.ledger-other-flow-values{min-height:44px;display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:5px 10px;font-size:14px;white-space:normal}.ledger-other-flow-values>small{color:#8492a4;font-size:12px;font-weight:500}.ledger-other-flow-values>span{justify-self:end;font-size:14px;font-weight:750;white-space:nowrap}.ledger-unclassified-alert{width:100%;padding:13px 16px;border:1px solid #efbd73;border-radius:12px;background:#fff9ec;color:#8b5b16;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left}.ledger-unclassified-alert.active,.ledger-unclassified-alert:hover{border-color:#dd9a38;box-shadow:0 6px 18px rgba(164,106,21,.1)}.ledger-unclassified-alert>span:first-child{display:grid;gap:3px;font-weight:700}.ledger-unclassified-alert small{color:#a77b3b;font-weight:400}.ledger-unclassified-alert>span:last-child{font-weight:750;white-space:nowrap}.ledger-detail-heading{margin:24px 0 10px;display:flex;align-items:flex-end;justify-content:space-between;gap:15px}.ledger-detail-heading h2{margin:0 0 5px}.ledger-detail-heading p{margin:0;color:#8492a4;font-size:13px}.ledger-detail-heading>span{color:#748399}.ledger-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #e0e7f0;border-radius:15px}.ledger-table-wrap table{min-width:1080px;margin-top:0;border-radius:0}.ledger-operation-column{width:92px;text-align:center}.ledger-correction-button{padding:7px 13px;border:1px solid #8eb0f4;border-radius:9px;background:#fff;color:#2f6edb;white-space:nowrap}.ledger-correction-button:hover{border-color:#4f82e4;background:#f3f7ff}.ledger-correction-form{margin-bottom:14px;padding:18px;border:1px solid #a9c2f4;border-radius:14px;background:#f8fbff;display:grid;gap:15px}.ledger-correction-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.ledger-correction-heading h3,.ledger-correction-heading p{margin:0}.ledger-correction-heading p{margin-top:5px;color:#7d8ca1;font-size:13px}.ledger-correction-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ledger-correction-fields label{display:grid;gap:7px;color:#5f7087}.ledger-correction-fields .wide{grid-column:span 2}.ledger-correction-fields textarea{min-height:74px;resize:vertical}.ledger-correction-form>button{justify-self:start}.ledger-summary{min-width:300px;max-width:600px;line-height:1.55;overflow-wrap:anywhere}.firm-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.firm-overview article{min-height:132px;padding:19px;border:1px solid #dfe7f1;border-radius:15px;background:#fff;display:grid;align-content:start;gap:10px;box-shadow:0 9px 28px rgba(27,49,80,.045)}.firm-overview article>span:first-child,.firm-overview small{color:#7a899c}.firm-overview article>span:nth-child(2),.firm-overview strong{color:#172c49;font-size:23px;font-weight:750}.firm-year-filter{display:flex;align-items:center;gap:10px;white-space:nowrap}.firm-overview-groups,.firm-reconciliation-sections{margin:18px 0;display:grid;gap:16px}.firm-reconciliation-sections{grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr)}.firm-reconciliation-panel{padding:20px;border:1px solid #dfe7f1;border-radius:16px;background:rgba(255,255,255,.82)}.firm-fund-structure{min-width:0}.firm-fund-bar{height:12px;margin:20px 0 17px;border-radius:999px;background:#e8eef6;display:flex;overflow:hidden}.firm-fund-bar i{display:block;min-width:3px}.firm-fund-bar .lawyer,.firm-fund-items i.lawyer{background:#3977f6}.firm-fund-bar .branch,.firm-fund-items i.branch{background:#68b7a3}.firm-fund-bar .head-office,.firm-fund-items i.head-office{background:#e4af61}.firm-fund-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.firm-fund-items article{padding:16px;border-radius:12px;background:#f7f9fc;display:grid;gap:10px}.firm-fund-items article>span:first-child{color:#748399}.firm-fund-items article>span:first-child i{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%}.firm-fund-items article>span:nth-child(2){font-size:20px;font-weight:750}.firm-result-list{display:grid}.firm-result-list>div{min-height:54px;border-bottom:1px solid #e1e8f1;display:flex;align-items:center;justify-content:space-between;gap:18px}.firm-result-list>div:last-child{border-bottom:0}.firm-result-list>div>span:first-child{color:#718096}.firm-result-list>div>span:last-child{font-size:19px;font-weight:700}.firm-funds-check{grid-column:1/-1}.firm-check-table{overflow-x:auto}.firm-check-head,.firm-check-row{min-width:760px;display:grid;grid-template-columns:minmax(160px,.8fr) minmax(280px,1.7fr) minmax(170px,.7fr) 90px;align-items:center;gap:18px}.firm-check-head{padding:13px 16px;background:#f4f7fb;color:#718096}.firm-check-row{padding:16px;border-bottom:1px solid #e1e8f1}.firm-check-row:last-child{border-bottom:0}.firm-check-row>span:nth-child(2){color:#7a899c}.firm-check-row em,.firm-check-row>span:nth-child(3){text-align:right}.firm-check-row em{font-style:normal}.firm-check-row em.checked{color:#07875d}.firm-overview-group{padding:18px;border:1px solid #dfe7f1;border-radius:16px;background:rgba(255,255,255,.72)}.firm-overview-group-heading{margin-bottom:14px;display:flex;align-items:baseline;justify-content:space-between;gap:15px}.firm-overview-group-heading h2{margin:0;font-size:19px}.firm-overview-group-heading span{color:#8290a3;font-size:13px}.firm-overview-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.firm-overview-row article{min-height:118px;padding:17px;border:1px solid #e2e9f2;border-radius:13px;background:#fff;display:grid;align-content:start;gap:9px}.firm-overview-row article>span:first-child,.firm-overview-row small{color:#7a899c}.firm-overview-row article>span:nth-child(2){font-size:21px;font-weight:750}.system-account-grid{margin:16px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.branch-category-cards{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.system-account-grid article{padding:19px;border:1px solid #dfe7f1;border-radius:15px;background:linear-gradient(145deg,#fff,#f8fbff);display:grid;gap:16px}.system-account-entry>div{display:flex;justify-content:space-between;gap:10px}.system-account-grid article small{color:#8795a6}.system-account-entry>span{font-size:22px;font-weight:750}.system-account-entry{display:grid;gap:12px;text-decoration:none;color:inherit;border-radius:8px}.system-account-entry:focus-visible,.system-account-entry:hover{color:#2563eb}.system-account-back{display:inline-block;margin-bottom:16px}.system-account-grid footer{padding:12px 0 0;justify-content:space-between;border-top:1px solid #e7edf4;color:#718096;font-size:12px}.system-account-grid footer>a{display:grid;gap:5px;padding:6px 8px;margin:-6px -8px;border-radius:8px;color:inherit;text-decoration:none}.system-account-grid footer>a:hover{background:#edf4ff;color:#2563eb}.system-account-grid footer a>span{color:#213752;font-weight:650}.system-account-grid footer a>small{font-size:11px}.firm-lawyer-panel{padding-top:18px}.firm-table-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.firm-table-heading h2{margin:0 0 5px}.firm-table-heading p{margin:0;color:#8492a4;font-size:13px}.firm-table-heading>span{color:#748399}.firm-lawyer-tools{display:flex;align-items:center;gap:12px;color:#748399}.firm-lawyer-tools input{width:230px}.firm-lawyer-panel table{min-width:1450px}.firm-lawyer-name{min-width:180px;display:grid;gap:5px}.firm-lawyer-name small{color:#8997a8}.firm-money-link{display:inline-block;padding:6px 8px;border-radius:8px;white-space:nowrap}.firm-money-link:hover{background:#eef5ff;box-shadow:inset 0 0 0 1px #c8dcff}.case-create-form{margin-bottom:24px;overflow:hidden;border:1px solid #d9e3f0;border-radius:18px;background:#fff;box-shadow:0 18px 48px rgba(29,54,88,.08)}.case-form-header{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;color:#fff;background:linear-gradient(115deg,#2456a8,#3977f6)}.case-form-header span{color:#aeddff;font-size:13px}.case-form-header h2{margin:4px 0 0}.case-form-header button{color:#fff;border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.12)}.case-form-grid{padding:24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.case-form-grid>label{display:grid;align-content:start;gap:7px;font-weight:600}.case-form-grid .wide{grid-column:1/-1}.case-form-grid>h3{margin:10px 0 0;padding:10px 0;border-bottom:1px solid #e2e8f1;color:#213956}.embedded-table{min-width:0;padding:14px;border:1px solid #e1e8f1;border-radius:13px;background:#fafdff;overflow-x:auto}.embedded-table table{min-width:720px;margin:8px 0 12px;border:1px solid #e4eaf1}.embedded-table td,.embedded-table th{padding:10px}.embedded-table input,.embedded-table select{width:100%;min-width:120px}.embedded-table>button{color:#2766cf}.embedded-table>small{margin-left:12px;color:#7f8da0}.subheading{display:flex;justify-content:space-between;gap:12px}.subheading span{color:#7e8d9f;font-size:13px}.case-create-form>footer{padding:17px 24px;border-top:1px solid #e2e8f1;background:#fbfcfe}.case-list-filter{margin:15px 0;display:flex;align-items:center;flex-wrap:wrap;gap:15px}.case-list-filter label{display:flex;align-items:center;gap:10px}.case-list-filter span{color:#748399;margin-left:auto}.case-list-filter input{min-width:220px}.case-list-panel table{min-width:1080px;table-layout:fixed}.case-list-panel .case-signed-date,.case-list-panel th:first-child{width:130px;min-width:130px;white-space:nowrap}.case-list-panel td:nth-child(2),.case-list-panel th:nth-child(2){width:220px}.case-list-panel td:nth-child(3),.case-list-panel th:nth-child(3){width:34%;min-width:320px}.case-list-panel td:nth-child(4),.case-list-panel th:nth-child(4){width:110px}.case-list-panel td:nth-child(5),.case-list-panel th:nth-child(5){width:120px}.case-list-panel td:nth-child(6),.case-list-panel th:nth-child(6){width:18%;min-width:170px}.session-action,.session-control,.session-status{margin-top:auto;color:#64748b}.session-control{display:grid;gap:8px}.session-control button{padding:7px 10px;border:1px solid #d8e0ec;background:#fff;border-radius:8px;cursor:pointer}.account-panel{padding-top:0}.account-panel table{margin-top:0}.account-name{font-weight:700}.account-panel code{padding:6px 9px;border-radius:7px;background:#f3f6fa;color:#29415f}.account-actions{display:flex;flex-wrap:wrap;gap:8px}.account-actions button{padding:7px 10px}.data-backup-panel{margin-top:24px;padding:22px;border:1px solid #dfe7f1;border-radius:16px;background:#fff}.data-backup-panel .dashboard-section-heading{margin-bottom:16px}.data-backup-panel .dashboard-section-heading h2{margin:0 0 5px}.backup-empty,.data-backup-panel .dashboard-section-heading p{margin:0;color:#7a899c}.backup-list{display:grid;gap:8px}.backup-list article{padding:13px 15px;border:1px solid #e4eaf2;border-radius:11px;background:#f9fbfe;display:grid;grid-template-columns:minmax(250px,1.3fr) 100px minmax(210px,1fr) 100px 80px;align-items:center;gap:14px}.backup-list article>div{display:grid;gap:3px}.backup-list small{color:#7a899c}.backup-list code{color:#49617e;white-space:nowrap}.backup-storage-strip{margin:15px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.backup-storage-strip article{padding:15px;border:1px solid #e2e9f2;border-radius:12px;background:#f8fbff;display:grid;gap:5px}.backup-storage-strip small,.backup-storage-strip span{color:#78889d}.backup-storage-strip strong{font-size:20px}.restore-panel{margin-top:20px;padding-top:20px;border-top:1px solid #e1e8f1}.restore-panel h3{margin:0 0 5px}.restore-panel>div>p{margin:0;color:#7a899c}.restore-warning{padding:11px 13px;border:1px solid #f2d49e;border-radius:9px;background:#fff8e8;color:#8b5e13}.restore-confirm-form,.restore-upload-form{margin-top:14px;display:grid;gap:12px}.restore-upload-form{grid-template-columns:minmax(0,1fr) auto;align-items:end}.restore-confirm-form label,.restore-upload-form label{display:grid;gap:7px;font-weight:600}.restore-upload-form input{width:100%}.restore-preview{padding:14px;border:1px solid #cfe0f7;border-radius:11px;background:#f5f9ff;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 16px}.restore-preview code{grid-column:1/-1;overflow-wrap:anywhere;color:#49617e}.account-active,.account-disabled{display:inline-block;padding:5px 9px;border-radius:999px}.account-active{background:#e9f8f1;color:#21815e}.account-disabled{background:#fff0f0;color:#bd4949}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#edf4ff,#f8fafc 55%,#eef8f6)}.login-card{width:min(430px,100%);padding:36px;background:rgba(255,255,255,.96);border:1px solid #e0e7f1;border-radius:18px;box-shadow:0 24px 70px rgba(31,60,110,.12);display:grid;gap:20px}.login-card h1{margin:6px 0;font-size:28px}.login-card p,.login-card span{color:#718096}.login-card label{display:grid;gap:8px;font-weight:600}.login-card input{width:100%;padding:12px 14px;border:1px solid #ccd7e6;border-radius:10px;outline:none}.login-card input:focus{border-color:#3978f6;box-shadow:0 0 0 3px rgba(57,120,246,.12)}.login-card button{padding:12px;border:0;border-radius:10px;color:#fff;background:#326df5;font-weight:700;cursor:pointer}.login-card button:disabled{opacity:.65}.login-card .form-error{margin:0;color:#d14343}@media (max-width:1200px){.analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.matter-action-form{grid-template-columns:repeat(2,minmax(0,1fr))}.matter-action-form>button{width:max-content}.ledger-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.firm-overview,.firm-overview-row,.ledger-business-cards,.ledger-correction-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.firm-reconciliation-sections{grid-template-columns:1fr}.firm-funds-check{grid-column:auto}}@media (max-width:1100px){.party-filters{grid-template-columns:repeat(3,1fr)}.party-stats{grid-template-columns:repeat(2,1fr)}.analytics-grid{grid-template-columns:1fr}}@media (max-width:760px){.app-shell{grid-template-columns:1fr}.app-shell aside{position:static;height:auto}.app-shell main{padding:18px}.archive-form,.case-form-grid,.detail-grid,.form-grid,.matter-action-form,.party-form,.seal-form{grid-template-columns:1fr}.matter-action-form>button{width:100%}.archive-form .wide,.case-form-grid .wide,.form-grid .wide,.party-form .wide,.seal-form .wide{grid-column:auto}.archive-filters,.page-heading{flex-direction:column}.archive-filters{align-items:stretch}.archive-filters input{min-width:0;width:100%;margin-left:0}.analytics-kpis,.firm-overview,.ledger-balance-strip,.ledger-business-cards,.ledger-flow-cards,.ledger-summary-cards,.party-filters,.party-stats,.summary-grid,.system-account-grid{grid-template-columns:1fr}.ledger-correction-heading,.ledger-summary-section-heading,.ledger-unclassified-alert{align-items:stretch;flex-direction:column}.ledger-correction-fields{grid-template-columns:1fr}.ledger-correction-fields .wide{grid-column:auto}.firm-fund-items,.firm-overview-row{grid-template-columns:1fr}.firm-lawyer-tools,.firm-overview-group-heading,.firm-table-heading{align-items:stretch;flex-direction:column}.trend-chart{overflow-x:auto;grid-template-columns:repeat(12,48px)}.conversion-visual,.structure-visual{grid-template-columns:1fr;justify-items:center}.conversion-cards,.structure-legend{width:100%}.ranking-row{grid-template-columns:30px 1fr}.ranking-row>strong{grid-column:2;text-align:left}.case-list-filter{align-items:stretch;flex-direction:column}.backup-list article,.backup-storage-strip,.restore-preview,.restore-upload-form{grid-template-columns:1fr}}.ledger-filtered-total{display:flex;flex-direction:column;gap:4px;padding:8px 12px;border:1px solid #c8d8ff;border-radius:10px;background:#f3f7ff}.ledger-filtered-total small{color:#7d8da6;font-size:12px}.ledger-filtered-total .money-value{font-weight:600}.ledger-row-actions{display:flex;gap:6px;flex-wrap:wrap}.ledger-delete-button{color:#dc3545;border:1px solid #f0b9bf;background:white;padding:6px 10px;border-radius:8px}.search-select{position:relative;min-width:0}.search-select-trigger{width:100%;display:flex;justify-content:space-between;gap:12px;text-align:left}.search-select-trigger span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-select-validation{position:absolute;width:1px!important;height:1px!important;opacity:0;padding:0!important;pointer-events:none}.search-select-panel{z-index:10000;background:white;border:1px solid #cbd9ed;border-radius:10px;box-shadow:0 8px 28px #243d6526;padding:8px;display:flex;flex-direction:column;gap:6px;box-sizing:border-box}.search-select-panel input{width:100%;box-sizing:border-box;flex-shrink:0}.search-select-options{overflow:auto;min-height:35px}.search-select-options button{display:block;width:100%;border:0;border-radius:5px;text-align:left;padding:9px 12px;white-space:normal}.search-select-options button:hover,.search-select-options button[aria-selected=true]{background:#edf4ff;color:#235ac7}