/* Clearer type, calmer surfaces and consistent breathing room across panel pages. */
:root{--brand:#536b3a;--brand-dark:#18242e;--brand-light:#eef2eb;--red:#a84648;--red-light:#fbf0ef;--text:#25323b;--muted:#5f6d75;--border:#dce3e5;--surface:#fff;--bg:#f3f5f6;--sidebar:278px;font-size:16px;line-height:1.6}
body{color:var(--text);background:var(--bg)}
h1{font-size:clamp(30px,2.2vw,38px);line-height:1.18;letter-spacing:-.03em;color:#1d2a33}
h2{font-size:23px;line-height:1.28;letter-spacing:-.02em}
h3{font-size:18px;line-height:1.35;letter-spacing:-.015em}
small{font-size:13px}
.muted{color:#5f6d75}
.sidebar{background:#18242e;color:#e6ebec}
.brand{height:118px}
.workspace-mark{color:#e1e8e6;border-color:#ffffff18;background:#ffffff08}
.workspace-mark small,.user-label small{color:#bdc7c7}
.nav-label{font-size:12px;letter-spacing:.13em;color:#aab8bb}
.nav-item,.nav-group summary{font-size:14px;min-height:46px;color:#d2dbdc}
.nav-item .icon,.nav-group summary>.icon{width:19px;height:19px}
.nav-item:hover,.nav-group summary:hover{background:#ffffff10;color:#fff}
.nav-item.active{background:#405a3b;color:#fff;box-shadow:none}
.nav-child{font-size:13px;color:#c3ced0;padding:9px 12px}
.nav-child:hover,.nav-child.active{background:#ffffff10;color:#fff}
.nav-child.active{color:#e2edcf;font-weight:650}
.sidebar-bottom{border-top-color:#ffffff1c}
.avatar{background:#415448;color:#fff}
.main-content{padding:34px 38px 0}
.topbar{height:76px;padding:0 38px;background:#ffffffed}
.breadcrumbs{font-size:14px}
.command-trigger{min-height:42px;font-size:13px}
.page-heading{margin-bottom:30px;align-items:flex-start}
.page-heading .muted{font-size:15px;line-height:1.55;max-width:760px}
.eyebrow{font-size:12px;letter-spacing:.13em;color:#5c7348}
.button{font-size:14px;min-height:44px;padding:10px 17px}
.button.small{font-size:13px;min-height:40px}
.button.primary{background:#526b3a;border-color:#526b3a}
.button.primary:hover{background:#435a32}
.card{border-color:#dfe5e7;border-radius:16px;box-shadow:0 5px 20px #1d2b3510}
.card-header{padding:24px 27px}
.card-header h2{font-size:19px}
.card-header p{font-size:14px;line-height:1.5;color:#65727a}
.card-body{padding:0 27px 27px}
.stats-grid{gap:18px;margin-bottom:26px}
.stat-card{padding:23px;border-radius:15px;border-color:#e0e6e7;box-shadow:0 4px 16px #1d2b3508}
.stat-top{margin-bottom:19px}
.stat-top>span{font-size:14px;color:#56656e}
.stat-icon{background:#f0f2ed;color:#596d4a}
.stat-value{font-size:clamp(25px,2vw,34px);margin-bottom:13px;letter-spacing:-.035em}
.stat-detail{font-size:12px;color:#66737a;line-height:1.45}
.metric-strip{margin-bottom:27px;background:#fff;border-color:#e0e6e7}
.metric-strip small{font-size:13px;color:#66737a}
.dashboard-grid{gap:22px;margin-bottom:28px}
.chart{height:278px}
.chart-axis{font-size:12px;color:#68767e}
.chart-label{font-size:12px;color:#5e6b72}
.chart-summary{font-size:13px}
.chart-summary strong{font-size:19px;color:#283640}
.chart-bar{background:#71895a}
.chart-bar.expense{background:#bd7772}
.task-content strong{font-size:14px}
.task-content small{font-size:12px;line-height:1.45;color:#68757c}
.task-count{font-size:14px}
.quick-card{padding:17px;border-radius:13px;border-color:#dfe5e7}
.quick-card strong{font-size:14px}
.quick-card small{font-size:12px;color:#67747b;line-height:1.45}
.data-table{font-size:14px;white-space:normal}
.data-table thead{background:#f6f8f8}
.data-table th{font-size:12px;font-weight:700;color:#52616a;padding:15px 20px}
.data-table td{font-size:14px;line-height:1.5;color:#3e4c54;padding:16px 20px;max-width:360px}
.record-count{font-size:13px;color:#5b6971}
.toolbar{padding:18px 22px}
.filter-form{gap:10px}
.filter-form select,.filter-form input[type=date],.search-input input{font-size:14px;min-height:44px}
.form-field>label,.login-form>label:not(.checkbox-line){font-size:14px;color:#44545c}
.form-field input:not([type=checkbox]):not([type=radio]),.form-field select,.form-field textarea{font-size:15px;min-height:46px}
.form-field .help-text,.help-text{font-size:13px;line-height:1.5;color:#5d6c74}
.form-grid{gap:24px;padding:28px}
.form-hint{background:#f4f6f3;color:#48594a;border-color:#dfe6dd}
.form-hint p,.form-hint li{font-size:14px;line-height:1.55}
.form-actions{padding:19px 28px}
.page-footer{font-size:12px;color:#66737b}
.demo-banner{font-size:13px;background:#edf2f7;color:#405360;border-color:#dbe5ec}
.login-story{background:#18242e}
.story-copy h1{font-size:clamp(38px,3.3vw,50px);color:#f8faf8}
.story-copy p{font-size:15px;color:#d3ddda;line-height:1.75}
.story-footer{font-size:12px;color:#bdc9c8}
.login-card h2{font-size:32px}
.login-card>.muted{font-size:14px;line-height:1.6}
.login-form>label:not(.checkbox-line){font-size:14px}
.input-with-icon input{font-size:16px;min-height:50px}
.login-security{font-size:12px;line-height:1.5}
.login-footnote{font-size:12px}
.report-grid{gap:16px}
.report-card{padding:22px;border-radius:14px;border-color:#dfe5e7}
.report-card h3{font-size:17px}
.report-card p{font-size:13px;line-height:1.5;color:#65727a}
.branch-filter{display:flex;align-items:center;gap:8px;padding:4px 6px 4px 12px;border:1px solid #d8e0e2;border-radius:11px;background:#fff;color:#56656d}
.branch-filter>.icon{width:18px;height:18px;color:#5c7348}
.branch-filter select{border:0;background:transparent;min-height:42px;padding:8px 34px 8px 4px;color:#35434b;font-size:14px;font-weight:650;max-width:280px}
.branch-filter select:focus{box-shadow:none}
.branch-scope-note{display:flex;align-items:center;gap:9px;padding:12px 16px;margin:-12px 0 22px;border:1px solid #dfe6df;border-radius:12px;background:#fafcf9;color:#52634d;font-size:13px}
.branch-scope-note .icon{width:18px;height:18px}
.help-shortcut{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:8px 13px;border:1px solid #dce3e5;border-radius:10px;color:#40505a;background:#fff;font-size:13px;font-weight:650}
.help-shortcut:hover{border-color:#b9c8b1;background:#f8faf7;color:#415d34}
.help-shortcut .icon{width:18px;height:18px;color:#5c7348}
.help-heading{margin-bottom:28px}
.help-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.help-main,.help-aside{display:grid;gap:20px}
.help-purpose,.help-section,.help-note,.help-branch-link,.help-global-branch,.help-group{border:1px solid #dfe5e7;border-radius:16px;background:#fff;box-shadow:0 5px 18px #1d2b3509}
.help-purpose{display:flex;gap:18px;padding:24px 27px;align-items:flex-start}
.help-purpose-icon,.help-related-icon,.help-group-icon,.help-branch-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:13px;background:#f0f3ee;color:#526b3a}
.help-purpose-icon .icon,.help-related-icon .icon,.help-group-icon .icon,.help-branch-icon .icon{width:22px;height:22px}
.help-kicker{font-size:12px;font-weight:750;letter-spacing:.12em;color:#667a54}
.help-purpose p{font-size:16px;line-height:1.6;color:#3e4c54;margin:7px 0 0}
.help-section{padding:24px 27px}
.help-section-heading,.help-group-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.help-section-heading h2,.help-group-heading h2{margin:3px 0 0}
.help-count{font-size:12px;color:#617078;background:#f3f6f6;padding:7px 10px;border-radius:99px}
.help-steps{list-style:none;margin:0;padding:0;display:grid;gap:0}
.help-step{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;padding:18px 0;border-top:1px solid #e8edef}
.help-step:first-child{border-top:0;padding-top:2px}
.help-step-number{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#f2f4ef;color:#556d3c;font-size:13px;font-weight:750;font-variant-numeric:tabular-nums}
.help-step h3{margin:0 0 7px;font-size:17px}
.help-step p{font-size:14px;line-height:1.65;color:#5b6870;margin:0;max-width:850px}
.help-note{padding:23px;background:#f7f8f5;box-shadow:none}
.help-note-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:15px;border-radius:12px;background:#e9eee5;color:#556b43}
.help-note-icon .icon{width:21px;height:21px}
.help-note p{font-size:14px;line-height:1.65;color:#48575e;margin:9px 0 0}
.help-branch-link,.help-related-card{display:flex;align-items:center;gap:13px;padding:15px;text-decoration:none}
.help-branch-link strong,.help-related-card strong{display:block;font-size:14px}
.help-branch-link small,.help-related-card small{display:block;font-size:12px;color:#67757b;margin-top:4px;line-height:1.4}
.help-arrow{margin-left:auto;width:18px;height:18px;color:#697b65}
.help-related{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.help-related-card{border:1px solid #e2e8e9;border-radius:12px;background:#fcfdfd}
.help-related-card:hover,.help-branch-link:hover{border-color:#c5d1c1;background:#f9fbf8}
.help-global-branch{display:grid;grid-template-columns:minmax(0,1fr) minmax(350px,.95fr);gap:30px;padding:30px;margin-bottom:28px;align-items:center}
.help-global-copy h2{font-size:27px;margin:8px 0 12px}
.help-global-copy p{font-size:15px;line-height:1.65;color:#5e6b72;max-width:700px}
.branch-diagram{padding:22px;border:1px solid #e2e8e9;border-radius:15px;background:#fafbfb}
.branch-node{display:flex;align-items:center;gap:11px;padding:13px 15px;border:1px solid #dbe3e5;border-radius:12px;background:#fff;color:#34444d;font-weight:700;font-size:14px}
.branch-node .icon{width:20px;height:20px;color:#5b7146}
.branch-node.head{max-width:230px;margin:0 auto;background:#f1f4ee;border-color:#dce5d8}
.branch-connector{height:21px;width:1px;background:#b9c6c9;margin:auto}
.branch-node-row{display:grid;grid-template-columns:1fr 1fr;gap:15px;position:relative}
.branch-node-row:before{content:"";position:absolute;height:1px;background:#b9c6c9;top:-1px;left:25%;right:25%}
.branch-node-row .branch-node{justify-content:center}
.branch-diagram-caption{display:flex;align-items:center;gap:9px;margin-top:17px;padding-top:15px;border-top:1px solid #e2e8e9;font-size:12px;line-height:1.45;color:#5d6b72}
.branch-diagram-caption .icon{width:17px;height:17px;color:#5b7146}
.help-group-list{display:grid;gap:17px}
.help-group{padding:24px}
.help-group-heading{justify-content:flex-start;margin-bottom:15px}
.help-group-heading h2{font-size:20px}
.help-group-heading p{margin:4px 0 0;color:#67757c;font-size:13px}
.help-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.help-module-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:14px;border:1px solid #e4e9ea;border-radius:12px;background:#fcfdfd}
.help-module-card:hover{border-color:#c5d1c1;background:#f8faf7}
.help-module-card strong{display:block;font-size:14px;margin-bottom:4px}
.help-module-card small{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#68757b;font-size:12px;line-height:1.45}
.help-global-branch .button{margin-top:5px}
.report-filter-card{padding:23px 26px;margin-bottom:27px}
.report-filter-intro{display:flex;align-items:center;gap:13px;margin-bottom:20px}
.report-filter-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:#f0f3ee;color:#536b3a}
.report-filter-icon .icon{width:21px;height:21px}
.report-filter-intro strong{font-size:16px}
.report-filter-intro p{margin:3px 0 0;font-size:13px;color:#68757c}
.report-filter-form{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(2,minmax(145px,1fr)) minmax(190px,1.15fr) auto;gap:12px;align-items:end}
.report-filter-form label{display:grid;gap:6px;min-width:0}
.report-filter-form label>span{font-size:12px;font-weight:700;color:#56646b}
.report-filter-form select,.report-filter-form input{width:100%;height:46px;border:1px solid #d7e0e2;border-radius:9px;background:#fff;padding:10px 12px;color:#334149;font-size:14px}
.report-run{height:46px}
.report-scope-strip{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 15px}
.report-scope-tag,.report-scope-count,.report-chart-badge,.report-row-count,.report-library-count{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid #dfe6e7;border-radius:99px;background:#fff;color:#52616a;font-size:12px;font-weight:650}
.report-scope-tag .icon,.report-chart-badge .icon{width:15px;height:15px;color:#61764e}
.report-scope-count{margin-left:auto;background:#edf1f3;border-color:#e3e8ea}
.report-highlights{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:13px;margin-bottom:21px}
.report-highlight{display:grid;gap:8px;padding:17px 19px;border:1px solid #dfe5e7;border-radius:13px;background:#fff;box-shadow:0 3px 13px #1d2b3508}
.report-highlight>span{font-size:12px;font-weight:700;color:#65737a}
.report-highlight>strong{font-size:20px;line-height:1.35;font-variant-numeric:tabular-nums;color:#25343d;overflow-wrap:anywhere}
.report-result-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:21px;align-items:start}
.report-main-column,.report-side-column{display:grid;gap:19px;min-width:0}
.report-chart-card{padding:24px 26px}
.report-chart-heading,.report-table-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
.report-chart-heading h2,.report-table-heading h2{margin:5px 0;font-size:21px}
.report-chart-heading p,.report-table-heading p{margin:0;color:#68757c;font-size:13px;line-height:1.5}
.report-bars{display:grid;gap:15px}
.report-bar-row{display:grid;grid-template-columns:minmax(110px,220px) minmax(80px,1fr) minmax(90px,150px);align-items:center;gap:14px}
.report-bar-label{font-size:13px;font-weight:650;color:#47565e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-bar-track{height:14px;border-radius:99px;background:#eef1f1;overflow:hidden}
.report-bar-fill{display:block;height:100%;border-radius:inherit;background:#6b8155;min-width:2px}
.report-bar-fill.alt{background:#8b9b7a}
.report-bar-value{font-size:13px;text-align:right;font-variant-numeric:tabular-nums;color:#34434b;white-space:nowrap}
.report-table-card{min-width:0}
.report-table-heading{padding:24px 27px 16px;margin:0}
.report-row-count{background:#f5f7f7;white-space:nowrap}
.table-scroll-note{display:none}
.report-empty{padding:50px 20px}
.report-method{margin:0;padding:16px 26px;border-top:1px solid #e5eaeb;background:#fbfcfc}
.report-method summary{display:flex;align-items:center;gap:9px;color:#52616a;font-size:13px;font-weight:700;list-style:none}
.report-method summary::-webkit-details-marker{display:none}
.report-method summary .icon{width:17px;height:17px;color:#62784f}
.report-method p{margin:11px 0 0;color:#68757c;font-size:13px;line-height:1.55}
.report-side-card{padding:23px;border:1px solid #dfe5e7;border-radius:15px;background:#fff;box-shadow:0 4px 16px #1d2b3508}
.report-side-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:#f0f3ee;color:#526b3a;margin-bottom:15px}
.report-side-icon .icon{width:19px;height:19px}
.report-side-card h3{margin:6px 0 17px;font-size:18px}
.report-side-card dl{display:grid;gap:11px;margin:0}
.report-side-card dl>div{display:flex;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #edf0f0}
.report-side-card dt{font-size:12px;color:#65737a}
.report-side-card dd{margin:0;text-align:right;font-size:12px;font-weight:700;color:#33434b}
.report-side-card>p{margin:17px 0 0;font-size:12px;line-height:1.55;color:#68757c}
.report-help-link{display:flex;align-items:center;gap:11px;padding:15px;border:1px solid #dfe5e7;border-radius:13px;background:#fff;color:#43525a}
.report-help-link>.icon:first-child{width:20px;height:20px;color:#596f47}
.report-help-link strong,.report-help-link small{display:block}
.report-help-link strong{font-size:13px}
.report-help-link small{margin-top:3px;font-size:12px;color:#69767d}
.report-help-link>.icon:last-child{width:17px;height:17px;margin-left:auto;color:#71806d}
.report-library-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:34px 0 17px}
.report-library-heading h2{margin:5px 0;font-size:24px}
.report-library-heading p{margin:0;font-size:14px;color:#647179}
.report-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.report-card{position:relative;display:flex;min-height:230px;flex-direction:column;align-items:flex-start;padding:21px 22px;border:1px solid #dfe5e7;border-radius:15px;background:#fff;box-shadow:0 3px 13px #1d2b3508;transition:transform .18s,border-color .18s,box-shadow .18s}
.report-card:hover{transform:translateY(-2px);border-color:#c6d1c3;box-shadow:0 8px 22px #1d2b3512}
.report-card-icon{display:grid;place-items:center;width:40px;height:40px;margin-bottom:12px;border-radius:12px;background:#f0f3ee;color:#536b3a}
.report-card-icon .icon{width:19px;height:19px}
.report-card-group{position:absolute;top:24px;right:20px;color:#728078;font-size:12px;font-weight:700}
.report-card h3{font-size:17px;margin:0 0 7px}
.report-card p{font-size:13px;line-height:1.5;color:#65727a;margin:0 0 14px}
.report-card .text-link{display:inline-flex;align-items:center;gap:6px;margin-top:auto;color:#50683d;font-size:13px;font-weight:700}
.report-card .text-link .icon{width:15px;height:15px}
@media(max-width:1180px){.help-layout{grid-template-columns:minmax(0,1fr) 280px}.help-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main-content{padding:28px 26px 0}.topbar{padding:0 26px}}
@media(max-width:820px){.main-content{padding:22px 18px 0}.topbar{padding:0 16px}.help-shortcut{font-size:0;width:42px;padding:8px;justify-content:center}.help-shortcut .icon{width:20px;height:20px}.help-layout,.help-global-branch{grid-template-columns:1fr}.help-aside{grid-template-columns:1fr 1fr}.help-global-branch{padding:23px}.help-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading .muted{font-size:14px}}
@media(max-width:580px){h1{font-size:29px}.page-heading .muted{font-size:14px}.main-content{padding:19px 14px 0}.topbar{height:64px;padding:0 10px}.breadcrumbs{font-size:13px;min-width:0;flex:1;gap:5px}.breadcrumbs strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-actions{flex-shrink:0}.command-trigger{width:40px;padding:8px;justify-content:center}.command-trigger span,.command-trigger kbd{display:none}.stats-grid{gap:11px}.stat-card{padding:16px 14px}.stat-top>span{font-size:12px}.stat-value{font-size:25px}.stat-detail{font-size:12px}.data-table{font-size:13px}.data-table th{font-size:12px;padding:12px}.data-table td{font-size:13px;padding:13px 12px}.help-aside{grid-template-columns:1fr}.help-purpose,.help-section,.help-note,.help-group{padding:19px}.help-purpose{gap:13px}.help-purpose-icon{width:40px;height:40px;flex-basis:40px}.help-purpose p{font-size:14px}.help-step{grid-template-columns:38px minmax(0,1fr);gap:12px;padding:15px 0}.help-step-number{width:36px;height:36px}.help-step h3{font-size:16px}.help-step p{font-size:13px}.help-related{grid-template-columns:1fr}.help-module-grid{grid-template-columns:1fr}.help-global-branch{padding:19px;gap:20px}.help-global-copy h2{font-size:23px}.branch-diagram{padding:16px}.branch-node-row{gap:9px}.branch-node-row .branch-node{font-size:12px;padding:12px 8px}.branch-diagram-caption{font-size:12px}.branch-filter{width:100%}.branch-filter select{max-width:none;width:100%}}
@media(max-width:1180px){.report-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.report-run{width:100%}.report-result-layout{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:820px){.report-result-layout{grid-template-columns:1fr}.report-side-column{grid-template-columns:1fr 1fr}.report-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.table-scroll-note{display:flex;align-items:center;gap:7px;margin:0;padding:8px 14px;color:#65737a;font-size:12px}.table-scroll-note .icon{width:15px;height:15px;flex:0 0 15px;color:#60764e}.report-table-card .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.report-table-card .data-table{min-width:650px}}
@media(max-width:580px){.report-filter-card{padding:19px}.report-filter-form{grid-template-columns:1fr}.report-scope-count{margin-left:0}.report-highlights{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.report-highlight{padding:14px}.report-highlight>strong{font-size:16px}.report-chart-card{padding:19px}.report-chart-heading,.report-table-heading{padding:19px;flex-direction:column;align-items:flex-start}.report-bar-row{grid-template-columns:minmax(88px,1.1fr) minmax(56px,1fr);gap:8px}.report-bar-track{grid-column:2}.report-bar-value{grid-column:1;grid-row:2;text-align:left;font-size:12px}.report-side-column{grid-template-columns:1fr}.report-grid{grid-template-columns:1fr}.report-card{min-height:200px}.report-library-heading{align-items:flex-start;flex-direction:column}.report-library-heading h2{font-size:21px}.report-bars{gap:13px}}
@media(max-width:760px){.form-field input:not([type=checkbox]):not([type=radio]),.form-field select,.form-field textarea,.input-with-icon input,.search-input input,.filter-form select,.filter-form input[type=date]{font-size:16px}}
.form-section-heading{grid-column:1/-1;display:flex;align-items:center;gap:13px;padding:17px 19px;margin:0 0 -4px;border:1px solid #e3e9e4;border-radius:13px;background:#f8faf7}
.form-section-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:11px;background:#e9efe5;color:#536b3a}
.form-section-icon .icon{width:20px;height:20px}
.form-section-heading h3{margin:0 0 3px;font-size:16px}
.form-section-heading p{margin:0;color:#647179;font-size:13px;line-height:1.45}
.person-picker{display:grid;gap:7px;margin-bottom:9px}
.person-picker-search{display:flex;align-items:center;gap:9px;min-height:46px;padding:0 12px;border:1px solid #d7e0e2;border-radius:10px;background:#fff;color:#65737b}
.person-picker-search:focus-within{border-color:#667d53;box-shadow:0 0 0 3px #536b3a1a}
.person-picker-search>.icon{width:18px;height:18px;flex:0 0 18px;color:#718267}
.person-picker-search input{width:100%;min-width:0;min-height:42px;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;font-size:15px;color:#293840}
.person-picker-search input::placeholder{color:#748188}
.person-picker-status{margin:0;color:#647179;font-size:12px;line-height:1.45}
.person-picker-status[data-state="error"]{color:#9c3f3f}
.person-picker-create{display:inline-flex;align-items:center;gap:6px;width:max-content;color:#4f683c;font-size:12px;font-weight:700}
.person-picker-create .icon{width:14px;height:14px}
[data-field="is_anonymous"] .help-text{display:block;margin-top:8px;padding:10px 12px;border:1px solid #e2e9df;border-radius:10px;background:#f7f9f5;color:#4f5f50}
.dues-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.dues-summary-card{padding:16px 18px;border:1px solid #dfe5e7;border-radius:13px;background:#fff}
.dues-summary-card span{display:block;color:#617078;font-size:12px;font-weight:650}
.dues-summary-card strong{display:block;margin-top:7px;font-size:21px;color:#26353d}
.row-action-button{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.row-action-button .icon{width:15px;height:15px}
#record-actions{scroll-margin-top:95px}
.donation-status-note{display:flex;gap:9px;align-items:flex-start;padding:12px 15px;border:1px solid #e0e7df;border-radius:11px;background:#f7f9f6;color:#4f5f50;font-size:13px;line-height:1.5}
.donation-status-note .icon{width:17px;height:17px;flex:0 0 17px;color:#637b4d}
@media(max-width:580px){.form-section-heading{padding:14px}.dues-summary{grid-template-columns:1fr}.person-picker-search input{font-size:16px}}

/* ==== UX audit pass: navigation, tables, forms, dialogs, accessible states ==== */
:root{--focus:#2d4a14;--ok:#2f6b1b;--ok-bg:#e6f1dc;--warn:#7a5200;--warn-bg:#fbf0d3;--bad:#9b2c2f;--bad-bg:#fbe9e9;--neutral-bg:#eceff0;--neutral:#44535b}
:focus-visible,button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
input:focus,select:focus,textarea:focus{outline:2px solid var(--focus);outline-offset:0;border-color:var(--focus)}
.skip-link{position:absolute;left:12px;top:-60px;background:#fff;color:var(--focus);padding:10px 14px;border-radius:8px;z-index:100;font-weight:600;box-shadow:0 4px 18px #0003}
.skip-link:focus{top:10px}
/* badges: text colours that meet 4.5:1 on their backgrounds */
.badge{font-size:12px;background:var(--neutral-bg);color:var(--neutral);font-weight:600}
.badge.green,.badge.active,.badge.approved,.badge.posted,.badge.completed,.badge.paid,.badge.collected,.badge.delivered,.badge.sent,.badge.matched,.badge.published,.badge.confirmed,.badge.resolved,.badge.ready,.badge.received{background:var(--ok-bg);color:var(--ok)}
.badge.amber,.badge.pending,.badge.draft,.badge.review,.badge.open,.badge.partial,.badge.in_review,.badge.awaiting_count,.badge.queued,.badge.scheduled,.badge.unconfigured,.badge.suggested,.badge.in_progress{background:var(--warn-bg);color:var(--warn)}
.badge.red,.badge.rejected,.badge.cancelled,.badge.overdue,.badge.failed,.badge.reversed,.badge.refunded,.badge.partially_refunded,.badge.expired,.badge.destroyed{background:var(--bad-bg);color:var(--bad)}
.alert.success{color:#2c5a1a}.alert.warning{color:#6f4b00}.alert.error{color:#8f2226}
.alert.info{background:#eaf1ec;border-color:#cfdcd3;color:#2f4a38}
.alert{align-items:flex-start}.alert>span,.alert>div{flex:1;min-width:0}
.alert-close{margin-left:auto;border:0;background:transparent;color:inherit;border-radius:6px;min-width:32px;min-height:32px;display:inline-grid;place-items:center;cursor:pointer;flex:none}
.alert-close:hover{background:#0000000d}
.alert a{text-decoration:underline;font-weight:600}
.alert[data-error-summary]:focus{outline:3px solid var(--focus)}
/* layout helpers replacing inline styles */
.section-gap{margin-bottom:26px}.section-gap-sm{margin-bottom:20px}
.inline-icon{width:13px;height:13px;margin-right:5px;vertical-align:-2px}
.avatar-icon{width:15px}
.empty-state.compact{padding:36px 10px}
.small-note{font-size:12px}.note-top{margin-top:12px;font-size:13px}.btn-gap{margin-top:17px}
.qr-share.spaced{margin:22px 0}
.ack-line{margin-top:14px}
.num{text-align:right;font-variant-numeric:tabular-nums}
th.num .sort-link,th.num .sort-button{justify-content:flex-end}
.flow.in{color:var(--ok)}.flow.out{color:var(--bad)}.flow.transfer{color:var(--neutral)}
.amount.flow{font-weight:650;white-space:nowrap}
/* sidebar */
.nav-search{position:relative;margin:0 14px 10px}
.nav-search .icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:#aebcbe;pointer-events:none}
.nav-search input{width:100%;min-height:40px;border-radius:9px;border:1px solid #ffffff22;background:#ffffff10;color:#f2f6f6;padding:8px 12px 8px 36px;font-size:14px}
.nav-search input::placeholder{color:#b7c3c5}
.nav-search input:focus{outline:2px solid #cfe3b0;border-color:#cfe3b0;background:#ffffff18}
.nav-recents{margin-bottom:10px}.nav-recents[hidden],.nav-recents[data-suppressed]{display:none}
.nav-recent{display:block}
.nav-empty{padding:12px 16px;color:#c3ced0;font-size:13px}
.nav-child[hidden],.nav-group[hidden],.nav-item[hidden]{display:none}
/* topbar */
.breadcrumbs a{color:inherit;text-decoration:none;white-space:nowrap}.breadcrumbs a:hover{text-decoration:underline}
.breadcrumbs>span{white-space:nowrap}
.command-trigger kbd{font-size:11px}
@media (pointer:coarse){.command-trigger kbd{display:none}}
.user-menu{position:relative}
.user-menu>summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:40px;padding:4px 8px;border-radius:10px;cursor:pointer}
.user-menu>summary::-webkit-details-marker,.more-menu>summary::-webkit-details-marker{display:none}
.user-menu>summary:hover{background:#0000000a}
.user-menu-name{font-size:14px;font-weight:600;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menu-panel{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 14px 40px #18242e24;padding:6px;z-index:60;display:flex;flex-direction:column}
.menu-panel a,.menu-panel button{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:8px 12px;border:0;background:transparent;border-radius:8px;font-size:14px;color:var(--text);text-align:left;cursor:pointer}
.menu-panel a:hover,.menu-panel button:hover{background:var(--brand-light)}
.menu-panel .icon{width:17px;height:17px;color:var(--muted)}
.menu-panel form{margin:0}
.menu-head{padding:10px 12px 8px;border-bottom:1px solid var(--border);margin-bottom:4px;display:flex;flex-direction:column}
.menu-head small{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.menu-panel .danger-text,.menu-panel .danger-text .icon{color:var(--bad)}
.menu-note{margin:6px 10px 8px;font-size:13px;color:var(--muted);max-width:240px}
.export-menu a{font-size:14px;color:var(--text)}
.more-menu{position:relative}
.more-menu>summary{list-style:none}
.more-menu .menu-panel{min-width:200px}
@media (max-width:760px){.user-menu-name,.more-label{display:none}.breadcrumbs>a:first-child{display:none}}
/* command palette */
.command-section{display:block;padding:10px 12px 4px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.command-section[hidden],.command-recents[hidden],.command-people[hidden]{display:none}
.command-option strong{font-size:14px}.command-option small{font-size:13px;color:var(--muted)}
.command-action .command-option-icon{background:var(--brand);color:#fff}
/* dialogs */
dialog.confirm-dialog,dialog.action-dialog{border:1px solid var(--border);border-radius:16px;padding:22px;width:min(520px,calc(100vw - 28px));box-shadow:0 30px 90px #18242e44;color:var(--text);background:#fff}
dialog.action-dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto}
dialog.confirm-dialog::backdrop,dialog.action-dialog::backdrop{background:#18242e88}
.confirm-dialog h2{font-size:20px;margin:0 0 8px}.confirm-dialog p{margin:0 0 18px;color:var(--muted);font-size:15px}
.dialog-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.dialog-actions .button{margin-top:0}
.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.dialog-head h2{font-size:20px;margin:0}.dialog-head p{margin:4px 0 0;font-size:14px}
.action-dialog .form-grid{grid-template-columns:1fr}
.action-dialog .button{margin-top:14px}
/* record actions bar and key figures */
.action-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin-bottom:20px}
.action-bar-label{font-size:13px;color:var(--muted);font-weight:600;margin-right:6px}
.action-bar .button{margin-top:0}
.key-figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:0 0 18px;padding:0 20px}
.key-figures>div{background:var(--brand-light);border-radius:10px;padding:12px 14px;min-width:0}
.key-figures dt{font-size:13px;color:var(--muted);margin-bottom:2px}
.key-figures dd{margin:0;font-size:18px;font-weight:650;overflow-wrap:anywhere}
.record-status{margin-left:auto}
.record-id{white-space:nowrap}
.change-list{margin:6px 0 0;padding:0;list-style:none;display:grid;gap:3px;font-size:13px}
.change-list span{font-weight:600}.change-list del{color:var(--bad);text-decoration-thickness:1px}.change-list ins{color:var(--ok);text-decoration:none;font-weight:600}
.row-actions{white-space:nowrap}
/* lists */
.sort-link,.sort-button{display:inline-flex;align-items:center;gap:4px;color:inherit;font:inherit;font-weight:inherit;background:none;border:0;padding:0;cursor:pointer;text-transform:inherit;letter-spacing:inherit}
.sort-link:hover,.sort-button:hover{text-decoration:underline}
.sort-link.sorted,th[aria-sort] .sort-button{color:var(--brand-dark)}
.sort-mark{font-size:10px;width:10px}
.date-range{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.date-range input{min-height:38px;width:auto}
.search-hint{margin:0;padding:0 20px 10px;font-size:13px;color:var(--muted)}
.per-page{margin:0}.per-page label{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.per-page select{min-height:34px;padding:4px 8px;width:auto}
.table-pagination{gap:12px;flex-wrap:wrap}
.table-footnote{margin:12px 20px 18px;font-size:13px;color:var(--muted);display:flex;gap:6px;align-items:center}
.table-footnote .icon{width:14px;height:14px}
.data-table tfoot td{background:var(--brand-light);border-top:2px solid var(--border)}
.data-table caption.sr-only{position:absolute}
.stat-link{display:block;color:inherit;text-decoration:none;transition:box-shadow .15s,transform .15s}
.stat-link:hover{box-shadow:0 8px 24px #18242e14;transform:translateY(-1px)}
@media (prefers-reduced-motion:reduce){.stat-link{transition:none}.stat-link:hover{transform:none}}
.metric-item{color:inherit;text-decoration:none}
a.metric-item:hover{background:var(--brand-light)}
.chart-table{margin-top:12px;font-size:14px}
.chart-table summary{cursor:pointer;color:var(--brand-dark);font-weight:600;min-height:36px;display:flex;align-items:center}
.chart-column:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:6px}
/* forms */
.optional{margin-left:8px;font-size:12px;font-weight:400;color:var(--muted)}
.required{color:var(--bad)}
.field-error{color:var(--bad);font-size:13px;font-weight:600;margin-top:4px;display:block}
.help-text{font-size:13px;color:var(--muted)}
.form-more{margin:0 20px 20px;border:1px dashed var(--border);border-radius:12px;padding:0 16px}
.form-more>summary{cursor:pointer;min-height:48px;display:flex;align-items:center;gap:10px;font-weight:600;color:var(--brand-dark);list-style:none}
.form-more>summary::-webkit-details-marker{display:none}
.form-more>summary .badge{margin-top:0}
.form-more[open]>summary .icon{transform:rotate(180deg)}
.form-more .form-grid{padding:0 0 18px}
.combobox{position:relative}
.combobox-input{display:none;align-items:center;gap:8px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:0 6px 0 12px;min-height:46px}
.combobox-input:focus-within{border-color:var(--focus);outline:2px solid var(--focus)}
.combobox-input .icon{width:17px;height:17px;color:var(--muted);flex:none}
.combobox-input input{flex:1;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent;min-height:42px;padding:0}
.combobox-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 14px 40px #18242e22;max-height:280px;overflow:auto}
.combobox-list[hidden]{display:none}
.combobox-list li{padding:10px 12px;border-radius:8px;cursor:pointer;display:flex;flex-direction:column}
.combobox-list li small{color:var(--muted);font-size:13px}
.combobox-list li:hover,.combobox-list li[aria-selected="true"]{background:var(--brand-light)}
.combobox-status{display:none;margin:6px 0 0;font-size:13px;color:var(--muted)}
.js-ready .combobox-input{display:flex}.js-ready .combobox-status{display:block}
.js-ready .combobox-select{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden}
.donor-identity{border:1px solid var(--border);border-radius:12px;padding:16px;margin:0;min-width:0}
.donor-identity legend{padding:0 8px;font-weight:650;font-size:15px}
.mode-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-bottom:14px}
.mode-option{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--border);border-radius:10px;padding:12px;cursor:pointer;background:#fff}
.mode-option:has(input:checked){border-color:var(--brand);background:var(--brand-light)}
.mode-option:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}
.mode-option input{margin-top:4px}
.mode-option strong{display:block;font-size:15px}.mode-option small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.donor-mode-fields>[data-donor-panel]{display:grid;gap:16px}
.donor-mode-fields>[hidden]{display:none}
.donor-anonymous-note{display:flex;gap:10px;align-items:flex-start;margin:0;color:var(--muted);font-size:14px}
.donor-anonymous-note .icon{width:18px;height:18px;flex:none;margin-top:2px}
.person-picker-create{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:14px;font-weight:600;color:var(--brand-dark)}
.person-picker-create .icon{width:14px;height:14px}
.upload-zone small{font-size:13px}
/* stepper, reports */
.steps{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;margin:0 0 20px;padding:0;font-size:14px;color:var(--muted)}
.steps li{display:flex;align-items:center;gap:8px}
.step-no{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1px solid var(--border);background:#fff;font-weight:650;font-size:13px}
.steps li.current{color:var(--text);font-weight:650}.steps li.current .step-no{background:var(--brand);border-color:var(--brand);color:#fff}
.steps li.done .step-no{background:var(--ok-bg);border-color:var(--ok);color:var(--ok)}
.date-presets{display:flex;flex-wrap:wrap;gap:6px;align-items:center;grid-column:1/-1;font-size:13px;color:var(--muted)}
.chip{font:inherit;font-size:13px;padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--text);cursor:pointer;min-height:34px}
.chip:hover{background:var(--brand-light)}
.report-bars.diverging .report-bar-track{position:relative;background:linear-gradient(90deg,#eef1f1 0 50%,#e3e8e8 50% 100%)}
.report-bars.diverging .report-bar-track::after{content:"";position:absolute;left:50%;top:-3px;bottom:-3px;width:2px;background:#6b7a82}
.report-bars.diverging .report-bar-fill{position:absolute;top:0;bottom:0}
.report-bars.diverging .report-bar-fill.pos{left:50%;border-radius:0 99px 99px 0}
.report-bars.diverging .report-bar-fill.neg{right:50%;background:var(--bad);border-radius:99px 0 0 99px}
.report-bar-fill.neg{background:var(--bad)}
.report-bar-value.neg{color:var(--bad);font-weight:650}
/* login */
.login-help{margin:16px 0 0;font-size:14px;color:var(--muted)}
.login-locale{margin-top:14px;text-align:center}
.login-locale .button{margin-top:0}
/* tables become cards on phones */
@media (max-width:720px){
  .data-table[data-stack]{border:0}
  .data-table[data-stack] thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .data-table[data-stack] tr{display:block;border:1px solid var(--border);border-radius:12px;padding:10px 12px;margin:0 0 12px;background:#fff}
  .data-table[data-stack] td{display:flex;justify-content:space-between;align-items:center;gap:14px;border:0;padding:7px 0;text-align:right}
  .data-table[data-stack] td::before{content:attr(data-label);font-size:13px;color:var(--muted);text-align:left;flex:none;max-width:45%}
  .data-table[data-stack] td.row-actions,.data-table[data-stack] td:not([data-label]){justify-content:flex-end}
  .data-table[data-stack] td.row-actions::before,.data-table[data-stack] td:not([data-label])::before{content:none}
  .data-table[data-stack] td:first-child{font-weight:650}
  .data-table[data-stack] th[scope=row]{display:flex;justify-content:space-between}
  .table-wrap:has(.data-table[data-stack]){overflow:visible}
  .action-bar .button{flex:1 1 150px}
  .key-figures{padding:0 14px}
  .date-range{flex-wrap:wrap}
}
@media print{.skip-link,.action-bar,.nav-search,.alert-close{display:none!important}}
.filter-form{display:flex;flex-wrap:wrap;gap:10px;align-items:center;min-width:0;flex:1}
.filter-form select{width:auto;max-width:210px}
.toolbar{flex-wrap:wrap;gap:12px}
.page-heading>div:first-child{flex:1 1 360px;min-width:0}
.heading-actions{flex:0 0 auto;flex-wrap:wrap}
.chart-table summary::before{content:"▸";margin-right:8px;font-size:12px}
.chart-table[open] summary::before{content:"▾"}
.key-figures{margin-top:14px}
@media (max-width:720px){.data-table[data-stack]{width:100%;min-width:0;display:block}.data-table[data-stack] tbody,.data-table[data-stack] tfoot{display:block}}
.icon-button{min-width:44px;min-height:44px}
