/* 盐肆口 · 砂岩与铜 / Design System 2.0 */
:root{--canvas:#f4f0e8;--surface:#fffefa;--surface-soft:#ece5d9;--brand:#8f5d3b;--brand-deep:#70452d;--brand-soft:#f0e4d7;--ink:#302c27;--muted:#71695e;--line:#ded6cb;--line-strong:#c4b8a9;--success:#4f765b;--success-soft:#edf3ec;--danger:#ac4b3d;--danger-soft:#faeeea;--warning:#946822;--warning-soft:#f7eedc;--info:#5f7081;--info-soft:#edf1f4;--radius:16px;--shadow:0 3px 14px #493b2910;--sidebar-width:240px;--green:var(--brand);--green2:var(--brand-deep);--mint:var(--brand-soft);--gold:var(--brand);--gold-light:var(--warning-soft);--paper:var(--canvas);--white:var(--surface);--red:var(--danger);--blue:var(--info);font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;color:var(--ink);background:var(--canvas);font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
*{box-sizing:border-box}[hidden]{display:none!important}html{scroll-padding-top:96px}body{margin:0;min-width:320px;line-height:1.6}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--brand);outline-offset:4px}input:focus,select:focus,textarea:focus{outline:3px solid #8f5d3b28;outline-offset:1px;border-color:var(--brand)}svg{display:block;width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:650;line-height:1.35;letter-spacing:-.03em}h2{font-size:18px;font-weight:650;line-height:1.5}h3{font-size:16px;font-weight:600;line-height:1.5}small{font-size:12px}strong{font-weight:650}form{margin:0}
input,select,textarea{min-height:46px;width:100%;border:1px solid var(--line-strong);background:var(--surface);border-radius:9px;padding:10px 13px;color:var(--ink);transition:border-color .16s,box-shadow .16s}textarea{min-height:96px;resize:vertical;line-height:1.7}input::placeholder,textarea::placeholder{color:#81776b;opacity:1}input[type=checkbox],input[type=radio]{min-height:20px;width:20px;accent-color:var(--brand);padding:0}input[type=file]{padding:11px;min-height:48px}input[type=file]::file-selector-button{border:1px solid var(--line-strong);padding:6px 10px;margin-right:10px;border-radius:6px;background:var(--canvas);color:var(--ink)}label{display:block;font-size:14px;font-weight:550;line-height:1.5}label>input,label>select,label>textarea{margin-top:8px}label em{color:var(--danger);font-style:normal}summary{cursor:pointer;padding:10px 0;color:var(--muted);min-height:44px}details[open]>summary{margin-bottom:12px}.muted,.small{color:var(--muted)}.small{font-size:13px}.positive{color:var(--success)}.negative{color:var(--danger)}.num,.amount,.metric-value,.balance-value{font-variant-numeric:tabular-nums}.mono{font-family:"Cascadia Code",Consolas,monospace}.nowrap{white-space:nowrap}.skip-link{position:fixed;top:-80px;left:16px;z-index:150;background:var(--surface);padding:14px 18px;border:2px solid var(--brand);border-radius:8px}.skip-link:focus{top:16px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);border:0;white-space:nowrap}.noscript{padding:24px}.offline-banner{position:sticky;top:0;z-index:100;padding:12px 24px;background:var(--warning-soft);color:#704c16;border-bottom:1px solid #dcc69d;text-align:center;font-size:14px}.boot-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;color:var(--muted)}
/* Brand and controls */
.brand-mark{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border:1px solid var(--brand);color:var(--brand);background:var(--surface);border-radius:9px;font-family:"Songti SC","STSong","SimSun",serif;font-size:26px;font-weight:600}.brand-mark img,.brand-icon{width:43px;height:43px;object-fit:contain}.btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;border-radius:9px;background:var(--brand);color:var(--surface);border:1px solid var(--brand);font-size:14px;line-height:1.5;font-weight:600;text-align:center;transition:background .16s,border-color .16s,box-shadow .16s}.btn:hover:not(:disabled){background:var(--brand-deep);border-color:var(--brand-deep);box-shadow:0 3px 7px #70452d18}.btn svg{width:18px;height:18px}.btn.secondary{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}.btn.secondary:hover:not(:disabled){background:var(--canvas);border-color:#ab9984;box-shadow:none}.btn.ghost{color:var(--brand);background:transparent;border-color:transparent}.btn.ghost:hover:not(:disabled){background:var(--brand-soft);box-shadow:none}.btn.danger{color:var(--danger);background:var(--surface);border-color:#dab8af}.btn.danger:hover:not(:disabled){background:var(--danger-soft);border-color:var(--danger);box-shadow:none}.btn.small-btn{min-height:40px;padding:8px 12px;font-size:13px}.btn.full{width:100%}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:9px;color:var(--muted);background:var(--surface)}.icon-button:hover{background:var(--brand-soft);border-color:var(--line-strong);color:var(--brand)}.text-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 2px;background:none;color:var(--brand);font-size:13px;font-weight:600;text-underline-offset:4px}.text-button:hover{text-decoration:underline}.pill,.status{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:28px;padding:4px 9px;border-radius:6px;font-size:12px;font-weight:550;line-height:1.4;white-space:nowrap}.pill{background:var(--surface-soft);color:#625749;border:1px solid var(--line)}.pill svg{width:13px;height:13px}.demo-badge{color:#78531e;background:var(--warning-soft);border-color:#e4d5b5}.status{background:#eeebe6;color:#686057}.status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status.pending,.status.planned{background:var(--warning-soft);color:#80581b}.status.approved,.status.in_progress{background:var(--info-soft);color:#52687a}.status.paid,.status.received,.status.completed{background:var(--success-soft);color:#446d4f}.status.rejected,.status.overdue{background:var(--danger-soft);color:#9d4236}.status.reversed{background:#eeebe7;color:#6c645b}.label-line{display:flex;align-items:center;gap:10px}.eyebrow,.section-kicker{font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:600;color:var(--brand)}.section-kicker{margin-bottom:8px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-grid .span-2{grid-column:1/-1}.field-note,.required-note{font-size:12px;color:var(--muted);line-height:1.7;margin-top:7px;font-weight:400}.form-error{padding:12px 14px;border:1px solid #e3bbb2;border-radius:8px;color:#973d32;background:var(--danger-soft);font-size:14px;line-height:1.7;margin-bottom:18px}.form-error:empty{display:none}.box-note{padding:14px 16px;border:1px solid var(--line);border-radius:9px;color:var(--muted);background:#f8f5ef;font-size:13px;line-height:1.8}.box-note.warning{background:var(--warning-soft);border-color:#e3d0ab;color:#79551e}.box-note p+p{margin-top:7px}.divider{height:1px;background:var(--line);margin:24px 0}
/* Sign-in */
.login-shell{min-height:100dvh;display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(430px,.92fr);background:var(--canvas)}.login-story{padding:52px clamp(36px,6vw,104px);display:flex;flex-direction:column;justify-content:space-between;color:var(--ink);background:#e9e0d2;min-height:760px;border-right:1px solid #dacebc}.login-brand{display:flex;align-items:center;gap:14px;font-size:26px;font-family:"Songti SC","STSong","SimSun",serif;font-weight:600;letter-spacing:2px}.login-brand .brand-mark{background:transparent;width:46px;height:46px;border-color:#a47754}.login-brand .eyebrow{font-family:"Segoe UI",sans-serif;letter-spacing:.14em;margin-top:5px;font-size:10px;color:#7c6048}.story-main{max-width:480px;margin:64px 0 60px}.story-main h1{font-family:"Songti SC","STSong","SimSun",serif;font-size:clamp(34px,3.8vw,54px);line-height:1.5;font-weight:500;letter-spacing:.03em;margin:20px 0 24px}.story-main>p{max-width:400px;color:#695e50;font-size:15px;line-height:2}.story-rule{width:56px;height:2px;background:var(--brand);margin:32px 0}.story-ledger{border-top:1px solid #cdbca6;padding:25px 0 0;margin-top:36px}.story-ledger .caption{font-size:13px;color:#6d5e4b}.story-ledger .figure{font-size:32px;font-weight:500;color:var(--brand-deep);letter-spacing:-.03em;margin:10px 0;font-variant-numeric:tabular-nums}.story-ledger .figure span{font-size:14px;margin-left:8px}.story-foot{border-top:1px solid #cdbca6;padding-top:23px;font-size:13px;line-height:1.9;color:#705e4a}.login-points{display:grid;gap:18px;margin-top:36px;padding-top:28px;border-top:1px solid #cdbca6}.login-point{display:flex;gap:12px;align-items:flex-start;font-size:14px;color:#6e5a45}.login-point svg{color:var(--brand);margin-top:2px}.login-point strong{display:block;color:var(--ink);margin-bottom:2px}.login-panel{display:flex;align-items:center;justify-content:center;padding:48px;background:#f8f5ef}.login-card{width:100%;max-width:390px}.login-card .login-mobile-brand{display:none}.login-card h2{font-size:28px;letter-spacing:-.02em;margin-bottom:10px}.login-card .intro{color:var(--muted);font-size:14px;line-height:1.8;margin-bottom:32px}.login-card label{margin-bottom:21px}.login-card .btn.full{min-height:49px;margin-top:7px}.login-footer{font-size:12px;color:var(--muted);line-height:1.9;margin-top:28px;text-align:center}.demo-login{margin-top:30px;padding-top:22px;border-top:1px solid var(--line)}.demo-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;font-size:13px;color:var(--muted)}.demo-users{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.demo-users button{min-height:42px;padding:8px 5px;color:#6b5949;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:12px}.demo-users button:hover{border-color:#b99c80;background:var(--brand-soft)}
/* Shell */
.app-layout{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);z-index:40;background:#f9f6f0;border-right:1px solid var(--line);padding:30px 16px 22px;display:flex;flex-direction:column;overflow-y:auto}.sidebar .brand{display:flex;align-items:center;gap:12px;padding:0 13px}.sidebar .brand-name{font-family:"Songti SC","STSong","SimSun",serif;color:var(--ink);font-size:25px;letter-spacing:3px;font-weight:600}.sidebar .brand-caption{color:var(--muted);font-size:11px;margin-top:4px;letter-spacing:.02em}.sidebar .brand-mark{background:transparent;border-color:#b79270;width:40px;height:42px;border-radius:7px}.sidebar-project{margin:27px 10px 19px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.sidebar-project .label{font-size:12px;color:var(--muted);margin-bottom:7px}.sidebar-project strong{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:13px;font-weight:600}.sidebar-project strong:before{content:"";width:6px;height:6px;background:var(--brand);border-radius:50%}.nav-section{color:#7d7161;font-size:11px;font-weight:600;padding:0 16px;margin:17px 0 8px;letter-spacing:.08em}.nav{display:flex;flex-direction:column;gap:4px}.nav a{display:flex;align-items:center;gap:12px;min-height:45px;padding:11px 14px;color:#655d52;font-size:14px;border-radius:8px;border:1px solid transparent;transition:background .14s,color .14s}.nav a svg{width:19px;height:19px;color:#8b7d6a}.nav a:hover{color:var(--ink);background:#f0eade}.nav a.active{background:#ede2d3;color:var(--brand-deep);border-color:#e4d4c0;font-weight:650}.nav a.active svg{color:var(--brand)}.nav .nav-count{margin-left:auto;min-width:22px;border-radius:5px;background:#e2c8a9;color:#624125;font-size:12px;padding:1px 5px;text-align:center}.sidebar-bottom{margin-top:auto;padding:28px 12px 0}.sidebar-bottom .status-line{display:flex;align-items:center;gap:7px;color:#6e624f;font-size:12px;margin-bottom:12px}.sidebar-bottom .status-line:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--success)}.sidebar-bottom .copyright{font-size:11px;line-height:1.9;color:var(--muted)}.workspace{grid-column:2;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);background:#fbf9f4;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 36px}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.breadcrumb svg{width:14px;height:14px;color:#9a8e7d}.breadcrumb .current{color:var(--ink)}.topbar-right{display:flex;gap:18px;align-items:center}.date-label{font-size:12px;color:var(--muted)}.user-menu{display:flex;align-items:center;gap:10px;min-height:44px;background:transparent;color:var(--ink);padding:0}.avatar{width:35px;height:35px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e9ddcc;color:#785134;font-size:13px;font-weight:600;flex-shrink:0}.user-name,.user-role{display:block}.user-name{font-size:13px;font-weight:600}.user-role{color:var(--muted);font-size:11px;margin-top:2px}.mobile-menu-btn,.mobile-nav,.mobile-records{display:none}.mobile-shade{display:none}.page{max-width:1560px;margin:auto;padding:32px 36px 35px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:25px}.page-heading h1{font-size:29px}.page-heading .subtitle{color:var(--muted);margin-top:10px;font-size:14px;line-height:1.7}.heading-actions{display:flex;align-items:center;gap:10px;padding-top:2px;flex-wrap:wrap;justify-content:flex-end}.heading-actions input,.heading-actions select{min-height:44px;width:auto;max-width:200px}.page-footer{margin-top:28px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px;line-height:1.7}.demo-notice{display:flex;align-items:center;gap:9px;background:#f7efdf;border:1px solid #e7d8bb;color:#785b2c;border-radius:8px;padding:10px 14px;font-size:12px;line-height:1.6;margin-bottom:24px}.demo-notice svg{width:16px;height:16px}.demo-notice strong{font-weight:650}.demo-notice .text-button{margin-left:auto;color:#79551e;flex-shrink:0}
/* Brand details and overview */
.brand-symbol{width:43px;height:43px;object-fit:contain;flex-shrink:0}.login-brand .brand-symbol{width:49px;height:49px}.brand-values{display:flex;gap:24px;color:#6d5c49;font-size:14px;letter-spacing:.1em}.brand-values span+span{border-left:1px solid #bfae97;padding-left:24px}.login-security{margin:-6px 0 18px}.login-security summary{font-size:13px;padding:5px 0;min-height:34px}.login-security label{margin-top:12px}.nav-management{margin-top:26px}.user-menu>svg{width:16px;height:16px;color:var(--muted)}
.overview-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr);gap:24px;margin-bottom:24px;align-items:stretch}.balance-panel{border:1px solid #d8c8b2;border-radius:var(--radius);background:#e9ddcc;padding:28px 30px 24px;display:flex;flex-direction:column;min-width:0}.balance-label{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:600;color:#5d4b37}.definition-button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:transparent;color:#806044}.definition-button:hover{background:#ddcbb4;color:var(--brand-deep)}.definition-button svg{width:17px;height:17px}.balance-amount{font-size:clamp(36px,3.4vw,52px);letter-spacing:-.04em;font-weight:550;line-height:1.25;margin:18px 0 12px;color:#6d452c;overflow-wrap:anywhere}.balance-amount>span{font-size:.52em;margin-right:9px;font-weight:400;vertical-align:baseline}.balance-panel>p{font-size:13px;color:#6e5c47;margin-bottom:24px}.balance-footer{border-top:1px solid #d2bfa7;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;font-size:12px;color:#6e5c47}.balance-footer strong{display:block;font-size:17px;font-weight:600;margin-top:3px;color:#574430;font-variant-numeric:tabular-nums}.balance-footer .text-button{color:#70452d;white-space:nowrap}.context-panel{min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:24px 23px 12px}.context-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:15px}.context-heading .section-kicker{margin-bottom:5px;font-size:11px}.context-heading h2{font-size:18px}.task-list{display:flex;flex-direction:column}.task-item{display:flex;align-items:center;gap:10px;min-height:67px;border-top:1px solid #e9e2d7;background:transparent;text-align:left;padding:12px 0;color:var(--ink);width:100%}.task-item:hover{background:#f8f4ec}.task-icon{width:33px;height:33px;border-radius:8px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;flex-shrink:0}.task-icon svg{width:17px;height:17px}.task-copy{min-width:0;flex:1}.task-copy strong{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.task-copy small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.task-item>.num{font-size:13px;white-space:nowrap}.task-item>svg{width:15px;height:15px;color:var(--muted)}.task-empty{padding:12px 0 8px}.task-empty>svg{width:28px;height:28px;color:var(--success);margin-bottom:10px}.task-empty>strong{display:block;font-size:14px;margin-bottom:6px}.task-empty p{font-size:13px;color:var(--muted);line-height:1.8}.task-empty .text-button{margin-top:9px}
.summary-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:22px 0;margin-bottom:24px;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius)}.summary-item{min-width:0;padding:0 23px}.summary-item+.summary-item{border-left:1px solid var(--line)}.summary-item>span{display:block;font-size:13px;color:var(--muted);line-height:1.65}.summary-item>strong{display:block;font-size:clamp(21px,1.8vw,27px);font-weight:600;line-height:1.3;letter-spacing:-.035em;margin:10px 0 8px;overflow-wrap:anywhere}.summary-item>small{display:block;font-size:12px;color:var(--muted);line-height:1.6}.workbench-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;align-items:start;margin-bottom:24px}.panel{min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 2px 7px #5b493508;overflow:hidden}.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 21px}.panel-header h2{font-size:18px;line-height:1.5}.panel-header>.text-button{white-space:nowrap}.panel-subtitle{color:var(--muted);font-size:12px;line-height:1.7;margin-top:5px}.panel-body{padding:0 24px 24px}.panel-body .panel-body{padding:0}.panel .empty-state{padding:35px 24px}.month-picker input{min-height:37px;width:139px;padding:6px 9px;font-size:13px;background:#fbf8f2;border-color:var(--line)}.monthly-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:0 24px 22px}.monthly-summary>div{min-width:0}.monthly-summary span{display:block;color:var(--muted);font-size:12px}.monthly-summary strong{display:block;font-size:18px;letter-spacing:-.03em;line-height:1.4;margin-top:7px;font-weight:600;overflow-wrap:anywhere}.month-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;padding:10px 0 0;min-height:160px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 49px,#ebe5db 49px,#ebe5db 50px);background-size:100% calc(100% - 31px);background-repeat:no-repeat}.month-group{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0}.month-bars{height:145px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:6px;padding:0 3px}.month-bar{width:18px;max-width:42%;border-radius:4px 4px 0 0;min-height:2px;background:#b29270}.month-bar.income{background:#799078}.month-bar.expense{background:#b17e58}.month-bar.capital{background:#c7b494}.month-group>span{font-size:12px;color:var(--muted);margin-bottom:9px}.chart-legend{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding-top:16px;font-size:12px;color:var(--muted)}.chart-legend>span{display:flex;align-items:center;gap:6px}.chart-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;background:#b17e58}.chart-legend i.income{background:#799078}.chart-legend>small{font-size:11px;flex-basis:100%;margin-top:-5px}.chart-empty{padding:28px 16px 25px;text-align:center;border:1px dashed var(--line-strong);border-radius:10px;min-height:193px}.chart-empty>svg{margin:0 auto 12px;color:#9c8165;width:28px;height:28px}.chart-empty h3{font-size:15px}.chart-empty p{font-size:13px;color:var(--muted);max-width:330px;margin:8px auto 13px;line-height:1.8}.signed-month-list{font-size:12px}.signed-month-list>div{display:grid;grid-template-columns:80px 1fr 1fr;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}
.receivable-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:22px}.receivable-pair button{background:#f6f2ea;border:1px solid #e6ddd0;border-radius:10px;padding:18px 14px;text-align:left;color:var(--ink);min-width:0}.receivable-pair button:hover{border-color:#b99c80;background:var(--brand-soft)}.receivable-pair span{display:block;font-size:13px;color:var(--muted)}.receivable-pair strong{display:block;font-size:22px;letter-spacing:-.035em;font-weight:600;line-height:1.4;margin:9px 0 5px;overflow-wrap:anywhere}.receivable-pair small{color:var(--muted);font-size:12px}.definition-note{font-size:12px;line-height:1.8;color:var(--muted);border-left:2px solid #bc9976;padding-left:12px;margin:22px 0}.funding-caption{border-top:1px solid var(--line);padding-top:20px;display:grid;grid-template-columns:1fr auto;gap:10px;font-size:13px}.funding-caption>span{color:var(--muted)}.funding-caption>strong{font-weight:600}.funding-caption>.progress-track,.funding-caption>small{grid-column:1/-1}.funding-caption>small{font-size:12px;color:var(--muted)}.progress-track{height:6px;border-radius:10px;background:#e7e0d5;overflow:hidden}.progress-fill{height:100%;background:#ab8260;border-radius:10px;max-width:100%}.progress-fill.over{background:var(--danger)}.budget-list{display:grid;gap:24px}.budget-row-top,.budget-row-foot{display:flex;justify-content:space-between;gap:12px;font-size:13px}.budget-row-top{margin-bottom:11px}.budget-row-top .value{font-size:12px;color:var(--muted)}.budget-row-foot{margin-top:8px;font-size:12px;color:var(--muted)}
/* Lists, workbenches and project records */
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 23px;border-bottom:1px solid var(--line)}.filter-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}.filter-group label{margin:0}.filter-group select{min-height:42px;width:auto;max-width:160px;background:#fbf8f2;font-size:13px;padding:8px 28px 8px 11px;border-color:var(--line)}.search-input{position:relative;min-width:220px;max-width:100%}.search-input input{min-height:42px;padding:9px 12px 9px 36px;font-size:13px;background:#fbf8f2;border-color:var(--line)}.search-input>svg{position:absolute;width:16px;height:16px;left:12px;top:13px;color:#8b7d6a}.table-scroll{width:100%;max-width:100%;overflow:auto;position:relative;overscroll-behavior-x:contain}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:12px;color:var(--muted);font-weight:500;background:#f9f6ef;white-space:nowrap;padding:12px 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:16px 22px;border-bottom:1px solid #ebe4da;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#faf7f0}td.amount{font-size:14px;font-weight:600;white-space:nowrap}.align-right{text-align:right}.cell-subtitle{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.5}.record-title-button{display:block;width:100%;max-width:340px;min-width:80px;text-align:left;font-size:13px;font-weight:550;background:none;padding:3px 0;line-height:1.6;color:var(--ink);overflow-wrap:anywhere}.record-title-button:hover{color:var(--brand);text-decoration:underline;text-underline-offset:4px}.row-detail{display:flex;align-items:center;justify-content:center;color:var(--muted);background:#f4f0e8;width:36px;height:36px;border-radius:8px}.row-detail:hover{color:var(--brand);background:var(--brand-soft)}.row-detail svg{width:16px;height:16px}.table-footer{padding:16px 22px;color:var(--muted);font-size:12px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.pagination{display:flex;align-items:center;gap:10px}.pagination .small-btn{font-size:12px;min-height:36px}.panel+.panel{margin-top:24px}.workbench-grid>.panel+.panel{margin-top:0}.ledger-panel{margin-top:20px}.project-list{padding:0 24px}.project-record{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 0;border-top:1px solid var(--line)}.project-record:first-child{border-top:0;padding-top:0}.project-record h3{font-size:15px;margin-top:9px;overflow-wrap:anywhere}.project-record p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:7px}.project-record small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.record-main{min-width:0;flex:1}.record-eyebrow{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.record-side{text-align:right;min-width:128px;max-width:48%}.record-side>span{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}.record-side>strong{display:block;font-size:20px;font-weight:600;letter-spacing:-.035em;line-height:1.4;overflow-wrap:anywhere}.record-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}.record-actions .text-button{font-size:12px;min-height:32px;justify-content:flex-start}.record-side .record-actions{justify-content:flex-end}.project-record>.text-button{white-space:nowrap}.milestone-list{display:grid;gap:0;padding:0 24px 8px}.milestone{padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid var(--line)}.milestone:last-child{border-bottom:0;margin-bottom:0}.milestone-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-bottom:10px}.milestone h3{font-size:15px}.milestone-progress{display:flex;align-items:center;gap:14px;margin:15px 0 10px}.milestone-progress .progress-track{flex:1}.milestone-progress strong{font-size:13px;color:var(--brand)}.milestone p{font-size:13px;color:var(--muted);line-height:1.8}.milestone .text-button{font-size:12px}.module-tabs,.tabs{display:flex;align-items:center;gap:5px;overflow-x:auto;margin-bottom:23px;border-bottom:1px solid var(--line);scrollbar-width:thin}.module-tabs button,.tabs button{background:transparent;white-space:nowrap;color:var(--muted);font-size:14px;min-height:48px;border-bottom:2px solid transparent;padding:11px 20px 13px}.module-tabs button.active,.tabs button.active{color:var(--brand-deep);font-weight:600;border-color:var(--brand)}.module-tabs button:hover,.tabs button:hover{color:var(--brand);background:#eee7dc}.cards-grid,.data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.data-grid{padding:0 24px 24px;gap:16px}.party-card{border:1px solid var(--line);background:#fbf8f2;border-radius:10px;padding:20px}.party-card h3{font-size:16px;margin:8px 0}.party-card p{font-size:13px;color:var(--muted);line-height:1.8}.party-card .record-actions{margin-top:12px}.budget-card{padding:25px 27px}.budget-card+.budget-card{margin-top:0}.card-top{display:flex;align-items:center;gap:12px}.category-icon{width:43px;height:43px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--brand-soft);color:var(--brand)}.budget-amount{font-size:35px;letter-spacing:-.04em;font-weight:550;line-height:1.4;margin:25px 0 21px}.budget-amount small{font-size:14px;color:var(--muted);margin-left:8px}.budget-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;margin-top:20px}.budget-meta>span{color:var(--muted)}.budget-meta+.budget-meta{padding-top:15px;margin-top:15px;border-top:1px solid var(--line)}.info-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start}.account-card{padding:26px}.account-card .intro{font-size:13px;color:var(--muted);margin:9px 0 23px;line-height:1.8}.profile-summary{display:flex;align-items:center;gap:14px;padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}.profile-summary .avatar{width:52px;height:52px;font-size:21px}.profile-summary .pill{margin-top:7px}.info-list{margin:0}.info-list>div{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;font-size:13px;margin-top:15px}.info-list dt{color:var(--muted);flex-shrink:0}.info-list dd{margin:0;overflow-wrap:anywhere;text-align:right}.account-card .mono{font-size:12px}.secret-box{background:var(--canvas);border:1px solid var(--line);padding:14px;border-radius:8px;margin:16px 0;overflow-wrap:anywhere;font-family:Consolas,monospace;font-size:14px}
/* Dialogs and financial workflows */
dialog{padding:0;border:1px solid #d7cdbf;border-radius:16px;background:var(--surface);color:var(--ink);width:calc(100% - 48px);max-width:690px;max-height:90dvh;overflow:auto;box-shadow:0 24px 85px #382d2440;overscroll-behavior:contain}dialog::backdrop{background:#3c322b5c;backdrop-filter:blur(2px)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 27px 21px;border-bottom:1px solid var(--line);background:var(--surface)}.modal-header h2{font-size:20px}.modal-header .subtitle{font-size:13px;color:var(--muted);margin-top:6px;line-height:1.7}.modal-header .icon-button{width:36px;height:36px;border-color:transparent;flex-shrink:0;background:#f3eee5}.modal-header .icon-button svg{width:18px;height:18px}.modal-body,.modal-form-body{padding:25px 27px 27px}.modal-form-body .box-note{margin-top:22px}.modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:18px 27px;border-top:1px solid var(--line);background:#faf7f0;position:sticky;bottom:0;z-index:4}.modal-footer .btn{min-height:44px}.drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(610px,90vw);max-width:610px;height:100dvh;max-height:100dvh;border-radius:0;border-width:0 0 0 1px;box-shadow:-12px 0 55px #382d2426}.drawer .modal-header{position:sticky;top:0;z-index:5}.entry-context{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;margin-bottom:24px}.amount-field input{font-size:25px;min-height:60px;padding:8px 13px;font-weight:550;letter-spacing:-.02em;line-height:1.35;font-variant-numeric:tabular-nums;background:#fbf7ef}.optional-fields{border-top:1px solid var(--line);margin-top:23px;padding-top:7px}.optional-fields summary{font-size:13px}.optional-fields label{font-size:13px}.upload-zone{border:1px dashed #c9b49a;border-radius:10px;padding:20px;background:#faf7ef;margin-top:24px}.upload-zone h3{font-size:15px}.attachments-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.attachments-header>svg{color:var(--brand);width:20px;height:20px}.upload-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.upload-controls .btn{font-size:13px;min-height:42px;padding:9px 12px;margin:0;cursor:pointer}.upload-previews{display:grid;gap:10px;margin-top:15px}.upload-previews:empty{display:none}.upload-preview-item{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px;min-width:0}.upload-preview-item>img{width:45px;height:45px;object-fit:cover;border-radius:5px}.upload-preview-item>svg{width:32px;height:32px;padding:4px;color:var(--brand)}.upload-preview-item>div{min-width:0}.upload-preview-item strong{font-size:13px;font-weight:550;display:block;overflow-wrap:anywhere}.upload-preview-item small{display:block;font-size:12px;color:var(--muted);margin-top:2px}.entry-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:3px 0 23px;border-bottom:1px solid var(--line)}.entry-hero .amount{font-size:36px;letter-spacing:-.04em;line-height:1.3;color:var(--ink);font-weight:550;overflow-wrap:anywhere}.entry-hero .number{color:var(--muted);font-size:13px;margin-top:10px}.entry-description{font-size:18px;line-height:1.7;margin:24px 0 22px;overflow-wrap:anywhere}.entry-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 26px;margin:0}.entry-details dt{font-size:12px;color:var(--muted);margin-bottom:7px}.entry-details dd{font-size:14px;margin:0;line-height:1.8;overflow-wrap:anywhere}.entry-details .span-2{grid-column:1/-1}.entry-timeline{margin-top:28px;padding-top:25px;border-top:1px solid var(--line)}.entry-timeline h3{font-size:15px}.stepper{display:grid;gap:0;margin-top:20px}.step{display:flex;align-items:flex-start;gap:14px;position:relative;padding-bottom:23px}.step:before{content:"";position:absolute;left:14px;top:28px;bottom:0;width:1px;background:var(--line)}.step:last-child{padding-bottom:0}.step:last-child:before{display:none}.step-dot{width:29px;height:29px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid var(--line);border-radius:50%;color:#8a7d6b;background:#f4f0e7;z-index:1}.step-dot svg{width:14px;height:14px}.step.done .step-dot{background:var(--brand-soft);border-color:#d3b99d;color:var(--brand)}.step>div{padding-top:2px}.step strong{font-size:13px;display:block;font-weight:600}.step span:not(.step-dot){display:block;font-size:13px;color:var(--muted);margin-top:4px}.step small{font-size:12px;color:var(--muted);display:block;margin-top:4px}.entry-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:26px}.attachments{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.attachments h3{font-size:16px}.attachments>.btn{margin-top:17px}.attachment-item{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:10px;font-size:13px}.attachment-item>svg{color:var(--brand)}.attachment-item>div{min-width:0;flex:1}.attachment-item strong,.attachment-item a{font-size:13px;overflow-wrap:anywhere}.attachment-item small{color:var(--muted);display:block;font-size:12px;margin-top:4px}.attachment-item .text-button{margin-left:auto;white-space:nowrap}.attachment-thumb{width:44px;height:44px;object-fit:cover;border-radius:5px}.discard-warning{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:var(--warning-soft);padding:15px 20px;border-bottom:1px solid #e0cca8;color:#79551e;font-size:13px;position:sticky;top:0;z-index:9}.discard-warning>span{flex-basis:100%}.discard-warning .btn{font-size:12px;min-height:36px}.confirm-amount{font-size:28px;margin:15px 0 22px;font-variant-numeric:tabular-nums;color:var(--brand-deep)}.modal-body>p{font-size:14px;line-height:1.9}.modal-body>form{margin-top:20px}.modal-form-body>label{margin-bottom:20px}.form-section{border-top:1px solid var(--line);margin-top:24px;padding-top:23px}
/* Audit, feedback and empty states */
.audit-overview{display:flex;align-items:center;gap:15px;margin:0 0 20px;font-size:13px;color:var(--muted)}.audit-timeline{padding:10px 25px}.audit-event{display:flex;align-items:flex-start;gap:16px;padding:22px 0;border-bottom:1px solid var(--line)}.audit-event:last-child{border-bottom:0}.audit-event-icon{display:flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:9px;background:#f0e8db;color:var(--brand);flex-shrink:0}.audit-event-icon svg{width:18px;height:18px}.audit-event-main{min-width:0;flex:1}.audit-event-main>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}.audit-event-main>div strong{font-size:14px}.audit-event-main>div span{color:var(--muted)}.audit-event-main time{color:var(--muted);margin-left:auto;font-size:12px}.audit-event-main>p{font-size:13px;color:var(--muted);margin-top:8px;line-height:1.8}.audit-event-main>.text-button{font-size:12px;margin-top:5px}.audit-technical{margin-top:9px;font-size:12px}.audit-technical summary{font-size:12px;min-height:32px;padding:4px 0}.audit-technical code{display:block;background:var(--canvas);padding:10px;border-radius:5px;overflow-wrap:anywhere;color:var(--muted)}.audit-technical pre{background:var(--canvas);border:1px solid var(--line);padding:14px;border-radius:7px;overflow:auto;max-height:250px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.empty-state,.loading-state,.error-state{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px;min-height:220px;padding:36px 25px}.empty-state>svg,.error-state>svg{width:34px;height:34px;color:#a58a6b;margin-bottom:4px}.empty-state h3,.empty-state h2,.error-state h2{font-size:16px}.empty-state p,.error-state p{max-width:360px;color:var(--muted);font-size:13px;line-height:1.9}.empty-state .btn,.error-state .btn{margin-top:8px}.loading-state{color:var(--muted);font-size:14px;min-height:300px}.spinner{width:24px;height:24px;border:2px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite;display:inline-block}.btn .spinner{width:16px;height:16px;border-top-color:currentColor}.offline-banner{background:var(--warning-soft);color:#78551c;padding:12px 20px;font-size:13px;text-align:center;border-bottom:1px solid #dfc99f}.toast-container,#toasts{position:fixed;z-index:200;right:28px;bottom:26px;display:grid;gap:10px;max-width:min(430px,calc(100% - 40px));pointer-events:none}.toast{display:flex;align-items:center;gap:12px;pointer-events:auto;background:var(--surface);border:1px solid var(--line-strong);border-left:3px solid var(--success);border-radius:10px;padding:15px 18px;font-size:14px;line-height:1.7;box-shadow:0 8px 28px #493b292b;animation:toast-in .2s ease-out;color:var(--ink)}.toast.error{border-left-color:var(--danger)}.toast>svg{width:20px;height:20px;color:var(--success)}.toast.error>svg{color:var(--danger)}.install-banner{display:flex;align-items:center;gap:14px;padding:17px 20px;background:#efe5d6;border:1px solid #d8c6ae;border-radius:10px;margin-top:22px;font-size:13px}.install-banner p{color:var(--muted);font-size:12px;margin-top:3px}.install-banner>.btn{margin-left:auto;white-space:nowrap}.install-banner>svg{color:var(--brand)}.install-banner .icon-button{width:34px;height:34px;flex-shrink:0;background:transparent;border-color:transparent}.install-hint{font-size:12px;color:var(--muted);line-height:1.8}.form-help{font-size:13px;line-height:1.9;color:var(--muted)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
/* Responsive rules: desktop 1440, narrow desktop and mobile 390 */
@media(min-width:1450px){.page{padding:36px 44px 40px}.topbar{padding:0 44px}.overview-hero{grid-template-columns:minmax(0,1.5fr) minmax(370px,1fr)}.balance-panel{padding:31px 35px 25px}.balance-amount{font-size:52px}.workbench-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.summary-item{padding:0 27px}}
@media(max-width:1190px){:root{--sidebar-width:218px}.sidebar{padding:27px 13px 20px}.sidebar .brand{padding:0 10px}.sidebar .brand-name{font-size:24px}.sidebar .brand-symbol{width:39px;height:39px}.nav a{padding:10px 12px;gap:10px}.page{padding:29px 27px 32px}.topbar{padding:0 27px}.heading-actions{gap:8px}.page-heading{gap:18px}.page-heading h1{font-size:27px}.heading-actions .btn{padding:10px 13px}.overview-hero{grid-template-columns:minmax(0,1.2fr) minmax(290px,1fr);gap:20px}.balance-panel{padding:25px 25px 21px}.balance-amount{font-size:40px}.balance-footer{gap:8px}.balance-footer strong{font-size:15px}.context-panel{padding:23px 20px 10px}.context-heading{gap:8px}.context-heading h2{font-size:17px}.context-heading .pill{font-size:11px;padding:4px 7px}.summary-item{padding:0 17px}.summary-item>strong{font-size:22px}.summary-item>span{font-size:12px}.summary-item>small{font-size:11px}.workbench-grid{gap:20px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.panel-header{padding:21px 21px 19px;gap:10px}.panel-body{padding:0 21px 22px}.panel-header h2{font-size:17px}.panel-header>.text-button{font-size:12px}.monthly-summary{padding:0 21px 20px;gap:12px}.monthly-summary strong{font-size:17px}.month-picker input{width:126px;font-size:12px}.month-chart{gap:11px}.month-bars{gap:5px}.month-bar{width:16px}.receivable-pair{gap:10px}.receivable-pair button{padding:17px 11px}.receivable-pair strong{font-size:19px}.funding-caption{font-size:12px}.budget-row-top{flex-wrap:wrap;gap:4px}.budget-row-top .value{margin-left:auto}.budget-row-foot{font-size:11px}.project-list,.milestone-list{padding-left:21px;padding-right:21px}.project-record{gap:12px}.record-side{min-width:105px}.record-side>strong{font-size:18px}.record-side>span{font-size:11px}.project-record p{font-size:12px}.record-actions{gap:5px}.record-actions .text-button{font-size:11px}.data-grid{padding:0 21px 21px}.party-card{padding:17px}.toolbar{padding:18px 20px}.filter-group{gap:8px}.filter-group select{max-width:132px}.search-input{min-width:200px}.cards-grid{gap:20px}.budget-card{padding:24px}.login-story{padding:43px 40px;min-height:720px}.login-panel{padding:44px}.login-card h2{font-size:26px}.brand-values{gap:19px;font-size:13px}.brand-values span+span{padding-left:19px}th{padding:12px 17px}td{padding:15px 17px}.record-title-button{font-size:13px}}
@media(min-width:721px) and (max-width:1000px){:root{--sidebar-width:205px}.page{padding:26px 24px 30px}.topbar{padding:0 24px}.page-heading{display:block}.heading-actions{justify-content:flex-start;margin-top:20px}.overview-hero{grid-template-columns:1fr}.balance-amount{font-size:47px}.balance-footer{padding-top:18px}.balance-footer strong{display:inline;margin-left:8px;font-size:17px}.context-panel{padding:23px 24px 17px}.task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.task-item>.num{font-size:12px}.task-item>svg{display:none}.task-copy strong{font-size:12px}.task-empty{display:grid;grid-template-columns:30px 1fr;gap:5px 12px}.task-empty>svg{grid-row:1/3;margin:4px 0}.task-empty>p{grid-column:2}.task-empty>.text-button{grid-column:2;justify-content:flex-start;margin-top:3px}.summary-strip{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}.summary-item{padding:20px 22px}.summary-item:nth-child(3){border-left:0}.summary-item:nth-child(n+3){border-top:1px solid var(--line)}.summary-item>strong{font-size:25px}.summary-item>span,.summary-item>small{font-size:12px}.workbench-grid,.info-layout{grid-template-columns:1fr;gap:22px}.workbench-grid>.panel+.panel{margin:0}.monthly-summary strong{font-size:21px}.month-chart{gap:22px}.month-bar{width:22px}.month-bars{height:155px}.receivable-pair strong{font-size:25px}.cards-grid,.data-grid{grid-template-columns:1fr}.project-record{gap:20px}.record-side{min-width:130px}.record-side>strong{font-size:22px}.project-record p{font-size:13px}.record-actions .text-button{font-size:12px}.login-shell{grid-template-columns:minmax(300px,.9fr) minmax(380px,1.1fr)}.login-story{padding:40px 32px}.story-main h1{font-size:37px}.story-main>p{font-size:14px}.brand-values{gap:13px;font-size:12px}.brand-values span+span{padding-left:13px}.login-panel{padding:36px}.login-card h2{font-size:24px}.login-brand{font-size:24px}.login-brand .brand-symbol{width:44px;height:44px}.page-footer{flex-direction:column;gap:7px}.audit-event-main time{margin-left:0}.table-footer{flex-wrap:wrap}.search-input{min-width:220px}.filter-group{width:100%}.toolbar{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:720px){:root{font-size:14px;--sidebar-width:260px}.app-layout{display:block;min-height:100dvh}.sidebar{transform:translateX(-100%);transition:transform .2s ease;z-index:90;width:260px;padding:27px 19px 26px;box-shadow:none}.sidebar .brand{padding:0 10px}.sidebar .brand-name{font-size:26px}.sidebar .brand-caption{font-size:12px}.sidebar .brand-symbol{width:43px;height:43px}.nav a{min-height:47px;padding:11px 14px;font-size:14px}.nav-section{font-size:12px;margin-top:17px}.nav-management{margin-top:24px}.sidebar-project strong{font-size:14px}.sidebar-bottom .copyright{font-size:12px}.menu-open .sidebar{transform:translateX(0);box-shadow:8px 0 45px #30271e24}.menu-open .mobile-shade{display:block;position:fixed;inset:0;background:#30271e66;z-index:80;border:0;width:100%;height:100%;backdrop-filter:blur(1px)}.workspace{width:100%;min-width:0}.topbar{position:sticky;top:0;z-index:35;height:66px;padding:0 18px;background:#fbf9f4f5;backdrop-filter:blur(12px)}.mobile-menu-btn{display:flex;width:40px;height:40px;background:transparent;border-color:var(--line)}.breadcrumb{display:none}.topbar-right{gap:13px}.demo-badge{font-size:11px}.user-menu{gap:9px}.user-menu .avatar{width:32px;height:32px;font-size:12px}.user-name{font-size:13px}.user-role{display:none}.user-menu>svg{width:14px;height:14px}.page{padding:24px 18px calc(104px + env(safe-area-inset-bottom));max-width:680px}.page-heading{display:block;margin-bottom:20px}.page-heading .section-kicker{font-size:10px;letter-spacing:.12em;margin-bottom:8px}.page-heading h1{font-size:26px;line-height:1.4}.page-heading .subtitle{font-size:14px;margin-top:8px;line-height:1.8}.heading-actions{justify-content:flex-start;gap:9px;margin-top:18px;padding:0;flex-wrap:wrap}.heading-actions .btn{min-height:44px;padding:10px 15px;font-size:14px}.heading-actions .icon-button{width:44px;height:44px}.demo-notice{align-items:flex-start;gap:9px;font-size:12px;line-height:1.7;padding:11px 12px;margin-bottom:20px}.demo-notice>svg{margin-top:3px;flex-shrink:0}.demo-notice .text-button{font-size:12px;min-height:34px;white-space:nowrap;margin-top:-3px}.demo-notice span{min-width:0}.overview-hero{grid-template-columns:1fr;gap:18px;margin-bottom:18px}.balance-panel{border-radius:14px;padding:23px 22px 20px}.balance-label{font-size:14px}.balance-amount{font-size:38px;margin:16px 0 12px;letter-spacing:-.045em}.balance-panel>p{font-size:12px;line-height:1.9;margin-bottom:21px}.balance-footer{padding-top:16px;align-items:flex-end;font-size:12px;gap:10px}.balance-footer strong{font-size:16px;margin-top:5px}.balance-footer .text-button{font-size:12px;min-height:36px}.context-panel{padding:21px 20px 12px;border-radius:14px}.context-heading{margin-bottom:13px}.context-heading h2{font-size:18px}.context-heading .section-kicker{font-size:11px}.context-heading .pill{font-size:12px}.task-item{min-height:73px;padding:14px 0;gap:10px}.task-copy strong{font-size:14px}.task-copy small{font-size:12px}.task-item>.num{font-size:13px}.task-item>svg{display:none}.task-empty p{font-size:13px}.summary-strip{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;border-radius:14px;margin-bottom:20px}.summary-item{padding:20px 17px}.summary-item+.summary-item{border-left:1px solid var(--line)}.summary-item:nth-child(3){border-left:0}.summary-item:nth-child(n+3){border-top:1px solid var(--line)}.summary-item>span{font-size:12px;line-height:1.7}.summary-item>strong{font-size:23px;line-height:1.35;margin:9px 0 7px}.summary-item>small{font-size:12px;line-height:1.7}.workbench-grid,.info-layout{grid-template-columns:1fr;gap:20px;margin-bottom:20px}.workbench-grid>.panel+.panel{margin-top:0}.panel{border-radius:14px}.panel-header{padding:20px 20px 19px;gap:12px;align-items:flex-start}.panel-header h2{font-size:18px}.panel-subtitle{font-size:12px;line-height:1.8;margin-top:6px}.panel-header>.text-button{font-size:12px;white-space:nowrap;padding-top:0;min-height:32px}.panel-body{padding:0 20px 23px}.monthly-summary{padding:0 20px 20px;gap:13px}.monthly-summary span{font-size:12px}.monthly-summary strong{font-size:17px;letter-spacing:-.04em;overflow-wrap:anywhere;line-height:1.6;margin-top:6px}.month-picker input{width:116px;font-size:12px;padding:6px;min-height:37px}.month-chart{gap:8px;min-height:150px;padding-top:8px}.month-bars{height:125px;gap:5px;padding:0}.month-bar{width:14px;border-radius:3px 3px 0 0}.month-group{gap:10px}.month-group>span{font-size:12px}.chart-legend{gap:9px 15px;padding-top:15px;font-size:12px;line-height:1.8}.chart-legend>small{font-size:11px;margin-top:0}.chart-empty{padding:25px 15px;min-height:200px}.chart-empty p{font-size:13px}.receivable-pair{gap:12px;margin-bottom:22px}.receivable-pair button{padding:18px 13px}.receivable-pair strong{font-size:23px}.definition-note{font-size:13px;margin:20px 0}.funding-caption{font-size:13px;gap:10px}.funding-caption>small{font-size:12px}.budget-list{gap:24px}.budget-row-top{font-size:14px;gap:7px}.budget-row-top .value{font-size:12px}.budget-row-foot{font-size:12px}.page-footer{margin-top:25px;padding-top:18px;flex-direction:column;gap:8px;font-size:12px}.desktop-records{display:none}.mobile-records{display:grid;gap:12px;padding:0 16px 18px}.record-card{display:block;min-width:0;width:100%;border:1px solid var(--line);border-radius:10px;background:#fffefa;text-align:left;padding:17px 16px;color:var(--ink);font-size:14px;line-height:1.65}.record-card:hover{border-color:#c5a886;background:#faf6ee}.record-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}.record-card-top>.status{font-size:11px;padding:4px 7px;min-height:26px}.record-card-title{display:block;font-size:15px;line-height:1.75;font-weight:600;margin:12px 0 11px;overflow-wrap:anywhere}.record-card-bottom{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:11px;font-size:13px;color:var(--muted)}.record-card-bottom>span{min-width:0;flex:1;overflow-wrap:anywhere}.record-card-bottom>.num{font-size:21px;line-height:1.3;white-space:nowrap;font-weight:550;letter-spacing:-.04em}.record-card-bottom>svg{width:15px;height:15px;color:var(--muted)}.record-card>small{display:block;font-size:11px;color:var(--muted);margin-top:10px}.record-card>p{color:var(--muted);font-size:13px;margin:10px 0}.toolbar{display:block;padding:19px 16px 17px;border-bottom:0}.filter-group{gap:9px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.filter-group label{min-width:0}.filter-group select{max-width:none;width:100%;font-size:13px;min-height:43px;padding:9px 8px}.search-input{grid-column:1/-1;min-width:0;max-width:none;width:100%;margin-top:2px}.search-input input{min-height:44px;font-size:14px}.search-input>svg{top:14px}.toolbar>#entry-count{display:block;margin-top:13px;font-size:12px}.ledger-panel{margin-top:20px}.table-footer{padding:16px;display:block;font-size:12px}.pagination{justify-content:space-between;margin-top:14px;gap:9px}.pagination .small-btn{min-height:42px;padding:9px 12px;font-size:13px}.table-scroll:not(.desktop-records){overflow:auto}table{font-size:13px;min-width:550px}th,td{padding:13px 16px}.project-list{padding:0 20px}.project-record{padding:22px 0;gap:16px;flex-wrap:wrap}.record-main{flex:1;min-width:135px}.project-record h3{font-size:16px;margin-top:9px;line-height:1.7}.project-record p{font-size:13px}.record-side{min-width:120px;max-width:100%}.record-side>span{font-size:12px}.record-side>strong{font-size:21px}.record-side small{font-size:12px}.record-actions{gap:10px}.record-actions .text-button{font-size:13px;min-height:40px}.record-eyebrow{font-size:12px}.project-record>.text-button{font-size:13px}.milestone-list{padding:0 20px 0}.milestone-heading{font-size:12px}.milestone h3{font-size:16px}.milestone p{font-size:13px}.milestone .text-button{font-size:13px;min-height:40px}.module-tabs,.tabs{gap:0;margin-bottom:20px}.module-tabs button,.tabs button{padding:11px 16px;min-height:48px;font-size:14px}.data-grid,.cards-grid{grid-template-columns:1fr;gap:18px}.data-grid{padding:0 20px 20px}.party-card{padding:20px}.party-card p{font-size:14px}.budget-card{padding:23px 22px}.card-top{gap:11px}.card-top h2{font-size:17px}.card-top>.text-button{font-size:12px}.budget-amount{font-size:34px}.budget-meta{font-size:14px}.account-card{padding:23px 20px}.account-card .intro{font-size:14px}.info-layout .form-grid{grid-template-columns:1fr;gap:19px}.info-list>div{font-size:14px}.key-box,.secret-box{font-family:Consolas,monospace;letter-spacing:.02em;font-size:15px;overflow-wrap:anywhere;border:1px solid var(--line);background:var(--canvas);padding:15px;border-radius:8px;margin:18px 0}.audit-overview{align-items:flex-start;flex-direction:column;gap:10px;font-size:13px;margin-bottom:19px}.audit-timeline{padding:0 18px}.audit-event{gap:12px;padding:21px 0}.audit-event-icon{width:33px;height:33px}.audit-event-icon svg{width:17px;height:17px}.audit-event-main>div{gap:5px 12px}.audit-event-main>div strong{width:100%;font-size:14px}.audit-event-main time{margin:0;font-size:11px}.audit-event-main>p{font-size:13px}.audit-event-main>.text-button{font-size:13px}.audit-technical summary{min-height:40px;font-size:12px}
.mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;position:fixed;z-index:60;bottom:0;left:0;right:0;border-top:1px solid var(--line);padding:8px 14px calc(8px + env(safe-area-inset-bottom));background:#fffdf8f8;backdrop-filter:blur(14px)}.mobile-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:49px;font-size:11px;line-height:1.5;color:#766b5c;border-radius:10px}.mobile-nav a svg{width:21px;height:21px;stroke-width:1.7}.mobile-nav a.active{color:var(--brand-deep);background:#f0e5d7;font-weight:600}.mobile-nav a.active svg{color:var(--brand)}
.login-shell{display:block;background:#f8f5ef;min-height:100dvh}.login-story{display:none}.login-panel{padding:35px 26px 38px;align-items:flex-start;min-height:100dvh}.login-card{max-width:430px;margin:0 auto}.login-card .login-mobile-brand{display:flex;align-items:center;gap:13px;padding-bottom:29px;margin-bottom:32px;border-bottom:1px solid var(--line)}.login-mobile-brand .brand-symbol{width:47px;height:47px}.login-mobile-brand strong{font-family:"Songti SC","STSong","SimSun",serif;font-size:26px;font-weight:600;letter-spacing:3px}.login-mobile-brand p{font-size:12px;color:var(--muted);margin-top:4px;letter-spacing:.06em}.login-card>.section-kicker{font-size:11px;margin-bottom:13px;letter-spacing:.05em}.login-card h2{font-size:25px;line-height:1.5;margin-bottom:10px}.login-card .intro{font-size:14px;margin-bottom:29px}.login-card label{font-size:14px;margin-bottom:21px}.login-card input{font-size:16px;min-height:49px}.login-security summary{font-size:14px;min-height:42px}.login-card .btn.full{min-height:49px;font-size:15px}.login-footer{font-size:12px;line-height:1.9;margin-top:27px}.demo-login{margin-top:27px;padding-top:15px}.demo-login summary{font-size:13px}.demo-users{gap:8px}.demo-users button{min-height:45px;font-size:12px}.brand-values{gap:16px}
dialog,.drawer{inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none}.modal-header{padding:19px 20px 18px;gap:15px;position:sticky;top:0;z-index:6;min-height:90px}.modal-header h2{font-size:19px}.modal-header .subtitle{font-size:13px;margin-top:5px;line-height:1.8}.modal-header .icon-button{width:36px;height:36px}.modal-body,.modal-form-body{padding:22px 20px 25px}.modal-footer{padding:15px 20px calc(15px + env(safe-area-inset-bottom));gap:10px;justify-content:stretch}.modal-footer .btn{flex:1;font-size:14px;min-height:47px;padding:10px 13px}.form-grid{gap:20px 14px}.form-grid label{font-size:14px}input,select,textarea{font-size:16px;min-height:48px;padding:11px 12px}.amount-field input{font-size:25px;min-height:60px}.field-note,.required-note{font-size:12px}.optional-fields summary{font-size:14px;min-height:46px}.entry-context{gap:12px;font-size:12px;margin-bottom:23px}.entry-hero .amount{font-size:33px}.entry-hero .number{font-size:13px}.entry-hero .status{font-size:12px}.entry-description{font-size:18px;margin:24px 0 21px}.entry-details{gap:23px 20px}.entry-details dt{font-size:13px}.entry-details dd{font-size:14px}.entry-timeline h3{font-size:16px}.stepper{margin-top:20px}.step strong{font-size:14px}.step span:not(.step-dot){font-size:13px}.step small{font-size:12px}.entry-actions{gap:10px;margin-top:26px}.entry-actions .btn{font-size:14px;min-height:46px}.upload-zone{padding:19px 16px;margin-top:23px}.upload-zone h3{font-size:16px}.upload-controls{gap:9px}.upload-controls .btn{min-height:44px;font-size:13px;padding:10px 13px}.upload-preview-item strong{font-size:13px}.attachments{margin-top:28px;padding-top:23px}.attachments .btn{min-height:45px}.discard-warning{padding:15px 20px;top:0}.discard-warning .btn{min-height:40px;font-size:13px}.toast-container,#toasts{right:18px;left:18px;bottom:calc(86px + env(safe-area-inset-bottom));max-width:none}.toast{font-size:14px;padding:14px 16px;box-shadow:0 6px 24px #493b2926}.install-banner{padding:16px;flex-wrap:wrap;gap:12px;font-size:13px}.install-banner>.btn{margin-left:0}.install-banner>span{flex:1;min-width:200px}.empty-state,.error-state{padding:35px 20px;min-height:235px}.empty-state p,.error-state p{font-size:14px}.loading-state{font-size:14px}.box-note{font-size:13px;padding:14px 15px}.signed-month-list>div{grid-template-columns:70px 1fr;gap:7px;font-size:12px}.signed-month-list>div>span:last-child{grid-column:2}.confirm-amount{font-size:31px}.modal-form-body .info-list{margin-bottom:24px}.modal-body .info-list>div{display:block}.modal-body .info-list dd{text-align:left;margin-top:7px}
}
@media(max-width:380px){.page{padding-left:15px;padding-right:15px}.topbar{padding:0 15px}.balance-panel{padding:23px 20px 20px}.balance-amount{font-size:34px}.balance-footer strong{font-size:15px}.summary-item{padding:18px 15px}.summary-item>strong{font-size:21px}.summary-item>small{font-size:11px}.context-panel{padding:20px 17px 11px}.context-heading .pill{font-size:11px}.task-item>.num{font-size:12px}.task-icon{display:none}.monthly-summary{gap:10px;padding-left:17px;padding-right:17px}.monthly-summary strong{font-size:16px}.panel-header{padding-left:17px;padding-right:17px}.panel-body{padding-left:17px;padding-right:17px}.month-picker input{width:111px}.receivable-pair strong{font-size:21px}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.entry-details{gap:22px 15px}.entry-hero .amount{font-size:29px}.record-card-bottom>.num{font-size:20px}.record-side{min-width:105px}.record-side>strong{font-size:20px}.login-panel{padding-left:23px;padding-right:23px}.login-card h2{font-size:23px}.filter-group{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-group>label:last-of-type{grid-column:1/-1}.summary-item>span{font-size:12px}.brand-values{gap:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.sidebar,.topbar,.mobile-nav,.heading-actions,.demo-notice,.install-banner,.page-footer,#toasts{display:none!important}.app-layout{display:block}.workspace{margin:0}.page{max-width:none;padding:0}.panel,.balance-panel,.summary-strip,.context-panel{box-shadow:none;break-inside:avoid;border-color:#aaa}.overview-hero,.workbench-grid{gap:15px}.balance-panel{background:white}.desktop-records{display:block!important}.mobile-records{display:none!important}body{background:white;color:black}}
/* Content fidelity and shared utility fallbacks */
.attachment{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:13px;border-radius:8px;margin-bottom:10px;font-size:13px}.attachment>svg{width:19px;height:19px;color:var(--brand)}.attachment .name{min-width:0;flex:1;overflow-wrap:anywhere}.attachment-meta{font-size:12px;color:var(--muted);margin-top:5px}.attachment .text-button{font-size:12px;flex-shrink:0}.key-box{font-family:Consolas,monospace;font-size:15px;letter-spacing:.03em;background:var(--canvas);border:1px solid var(--line);padding:16px;margin:18px 0;border-radius:8px;overflow-wrap:anywhere}.noscript{max-width:600px;margin:50px auto;padding:20px;font-size:16px}.workbench-stat{padding:22px 24px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.workbench-stat>span{font-size:13px;color:var(--muted)}.workbench-stat>strong{font-size:28px;display:block;font-weight:600;margin:11px 0;line-height:1.3}.workbench-stat>small{font-size:12px;color:var(--muted)}.record-title-button{font-size:14px}.cell-subtitle{font-size:12px}.task-copy strong{font-size:14px}td.amount{font-size:14px}.mobile-records:empty{display:none}
/* Finance: frequent tasks stay beside the numbers they affect */
.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--line);margin:0 0 24px}.quick-action{display:flex;align-items:center;justify-content:center;gap:10px;min-height:62px;padding:15px 12px;background:var(--surface);color:var(--ink);font-size:14px;font-weight:550;line-height:1.6;text-align:center}.quick-action>svg{width:19px;height:19px;color:var(--brand)}.quick-action:hover{background:var(--brand-soft);color:var(--brand-deep)}.quick-action:focus-visible{outline:3px solid var(--brand);outline-offset:-4px;border-radius:6px}table{font-size:14px}.record-title-button{line-height:1.7}
@media(max-width:1000px) and (min-width:721px){.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:22px}}
@media(max-width:720px){.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:20px;border-radius:12px}.quick-action{min-height:62px;padding:14px 12px;gap:9px;font-size:14px}.quick-action>svg{width:19px;height:19px}.attachment{flex-wrap:wrap;padding:13px;font-size:14px}.attachment .name{font-size:14px}.attachment .text-button{min-height:42px;font-size:13px;margin-left:auto}.info-layout .form-grid input{font-size:16px}.form-grid input[readonly]{color:var(--muted);background:#f3eee6}}
.upload-error-list{list-style:none;margin:15px 0;padding:0;border-top:1px solid #dfc9a1}.upload-error-list li{display:flex;align-items:flex-start;gap:14px;padding:14px 0;border-bottom:1px solid #dfc9a1;font-size:14px;line-height:1.8}.upload-error-list li>div{min-width:0;flex:1}.upload-error-list strong,.upload-error-list span{display:block;overflow-wrap:anywhere}.upload-error-list strong{font-weight:600}.upload-error-list span{margin-top:4px;font-size:14px;color:#79551e}.upload-error-list .text-button{flex-shrink:0;min-height:40px;font-size:13px;line-height:1.7;white-space:normal}
@media(max-width:720px){.upload-error-list li{flex-wrap:wrap;gap:7px;padding:15px 0}.upload-error-list li>div{flex-basis:100%}.upload-error-list .text-button{min-height:44px;font-size:14px;justify-content:flex-start}}
/* Role-aware mobile creation: fixed task entry without covering the final record */
.mobile-create{display:none}.mobile-entry-choices{display:grid;gap:12px}.entry-choice{display:flex;align-items:center;gap:15px;width:100%;min-height:82px;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-align:left;line-height:1.7}.entry-choice:hover{background:var(--brand-soft);border-color:#b89a7c}.entry-choice>svg:first-child{width:23px;height:23px;color:var(--brand);flex-shrink:0}.entry-choice>div{min-width:0;flex:1}.entry-choice strong{display:block;font-size:15px;font-weight:600}.entry-choice span{display:block;font-size:13px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.entry-choice>svg:last-child{width:17px;height:17px;color:var(--muted);flex-shrink:0}
@media(max-width:720px){.page{padding-bottom:calc(164px + env(safe-area-inset-bottom))}.mobile-create{display:inline-flex;align-items:center;justify-content:center;gap:8px;position:fixed;right:18px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:65;min-height:48px;min-width:128px;padding:12px 19px;border:1px solid var(--brand-deep);border-radius:999px;background:var(--brand);color:var(--surface);font-size:14px;font-weight:600;line-height:1.5;box-shadow:0 4px 14px #70452d30}.mobile-create>svg{width:20px;height:20px;stroke-width:1.8}.mobile-create:hover{background:var(--brand-deep)}.mobile-create:focus-visible{outline:3px solid var(--brand-deep);outline-offset:4px}body:has(dialog[open]) .mobile-create,.menu-open .mobile-create{display:none}.mobile-entry-choices{gap:13px}.entry-choice{padding:18px 16px;min-height:88px;gap:14px}.entry-choice strong{font-size:16px}.entry-choice span{font-size:14px;line-height:1.8}.entry-choice>svg:first-child{width:23px;height:23px}}
@media print{.mobile-create{display:none!important}}
/* Summary records use readable rows instead of squeezing a full ledger into a card */
.record-summary-list{padding:0 24px 8px}.record-summary{display:flex;align-items:center;gap:14px;min-height:88px;width:100%;padding:17px 0;border-top:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;line-height:1.7}.record-summary:first-child{border-top:0}.record-summary:hover{background:#faf6ee}.record-summary:focus-visible{outline:3px solid var(--brand);outline-offset:-3px;border-radius:8px}.record-summary-main{min-width:0;flex:1}.record-summary-main>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:1.75}.record-summary-main>span{display:block;font-size:12px;line-height:1.8;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.record-summary-main>small{display:block;font-size:11px;line-height:1.7;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.record-summary-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0;max-width:50%;text-align:right}.record-summary-side>strong{font-size:15px;font-weight:600;line-height:1.5;letter-spacing:-.02em;white-space:nowrap;font-variant-numeric:tabular-nums}.record-summary-side>.status{font-size:11px;min-height:25px;padding:4px 7px}.record-summary>svg{flex-shrink:0;width:15px;height:15px;color:var(--muted)}.entry-details dd>small{display:block;color:var(--muted);font-size:13px;font-weight:400;line-height:1.8;margin-top:6px;overflow-wrap:anywhere}
@media(max-width:1190px){.record-summary-list{padding:0 21px 8px}.record-summary{gap:11px}.record-summary>svg{width:13px;height:13px}.record-summary-side>strong{font-size:14px}}
@media(max-width:720px){.record-summary-list{padding:0 20px 8px}.record-summary{min-height:98px;gap:12px;padding:18px 0}.record-summary-main>strong{font-size:15px;line-height:1.75}.record-summary-main>span{font-size:13px;line-height:1.8}.record-summary-main>small{font-size:11px}.record-summary-side{gap:9px}.record-summary-side>strong{font-size:16px;line-height:1.5}.record-summary-side>.status{font-size:11px;min-height:26px}.record-summary>svg{width:14px;height:14px}.entry-details dd>small{font-size:13px}}
@media(max-width:380px){.record-summary-list{padding:0 17px 8px}.record-summary{gap:10px}.record-summary>svg{display:none}.record-summary-side>strong{font-size:16px}}
/* Mobile QA refinements: touch targets, full amounts and one scroll surface */
html:has(dialog[open]),body:has(dialog[open]){overflow:hidden}
@media(max-width:720px){.mobile-menu-btn{width:44px;height:44px;min-width:44px;flex-shrink:0}.topbar{gap:12px}.topbar-right{min-width:0;gap:10px}.topbar .demo-badge{flex-shrink:0;padding:4px 7px}.user-menu{min-width:0;gap:8px}.user-menu>span:not(.avatar){min-width:0}.user-name{max-width:126px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-menu>svg{flex-shrink:0}.demo-notice .text-button{min-width:56px;min-height:44px;margin:0;align-self:center;padding:4px 2px;font-size:12px}.mobile-nav a{font-size:12px;line-height:1.5}.summary-item>strong{font-size:20px;line-height:1.4;letter-spacing:-.04em;white-space:nowrap;overflow-wrap:normal}.summary-item .currency-unit{font-size:.8em;letter-spacing:0}.form-dialog[open],.drawer[open]{display:flex;flex-direction:column;overflow:hidden;inset:0;margin:0;width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0}.form-dialog>form,.drawer>form{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}.form-dialog .modal-form-body,.form-dialog>.modal-body,.drawer .modal-form-body,.drawer>.modal-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.modal-header,.modal-footer{position:relative;top:auto;bottom:auto;flex-shrink:0}.modal-header .icon-button{width:44px;height:44px;min-width:44px}.modal-header{min-height:94px}.discard-warning{position:relative;top:auto;flex-shrink:0}.mobile-entry-choices{align-content:start}}
@media(max-width:380px){.summary-item>strong{font-size:18px}.user-name{max-width:112px}.topbar-right{gap:8px}.topbar{gap:10px}}
@media(max-width:340px){.summary-item>strong{font-size:17px}.user-name{max-width:83px}.topbar .demo-badge{font-size:10px;padding:4px 6px}.topbar{gap:8px}}
@media print{.page{padding:0}}
/* Panel heading actions keep their verb intact while descriptive text may wrap */
.panel-header>div:first-child,.card-top>div{min-width:0}.panel-header>.btn,.panel-header>.text-button,.card-top>.btn,.card-top>.text-button{flex-shrink:0;white-space:nowrap}.panel-header>.month-picker{flex-shrink:0}
@media(max-width:720px){.panel-header>.btn,.card-top>.btn{padding-left:12px;padding-right:12px;min-height:44px;font-size:14px}.panel-header>.btn>svg,.card-top>.btn>svg{width:17px;height:17px}.panel-header>div:first-child{flex:1}.panel-header h2,.panel-header .panel-subtitle,.card-top h2{overflow-wrap:anywhere}.panel-header>.text-button,.card-top>.text-button{min-height:44px}}

/* Supplied transparent logo: original geometry, two-line brand alignment. */
.brand-symbol,.login-brand .brand-symbol,.login-mobile-brand .brand-symbol,.sidebar .brand-symbol{display:block;width:50px;height:48px;object-fit:contain;flex-shrink:0;border:0;border-radius:0;background:transparent;padding:0}
.login-brand .brand-copy,.login-mobile-brand .brand-copy,.sidebar .brand-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;height:48px;min-width:0}
.login-brand .brand-copy>strong,.login-mobile-brand .brand-copy>strong,.sidebar .brand-copy>.brand-name{display:block;line-height:32px;margin:0}
.login-brand .brand-copy>.eyebrow{display:block;line-height:14px;margin:2px 0 0}
.login-mobile-brand .brand-copy>p,.sidebar .brand-copy>.brand-caption{display:block;line-height:14px;margin:2px 0 0}
