:root{--ink:#183044;--muted:#61717e;--green:#087f65;--green-dark:#06634f;--canvas:#f5f6f5;--border:#e3e8e7;--navy:#142c3c;--red:#b34444;--shadow:0 3px 12px #18304404;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas);font-size:14px;line-height:1.5;color-scheme:light}
*{box-sizing:border-box}
body{margin:0}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button,summary{cursor:pointer}
button{border:0}
input,select{width:100%;height:44px;padding:10px 12px;border:1px solid #cfd8d7;background:#fff;border-radius:7px;color:var(--ink);min-width:0}
input::placeholder{color:#85929b}
input[type=checkbox]{width:17px;height:17px;accent-color:var(--green);flex-shrink:0}
input[type=file]{height:auto;padding:12px;font-size:13px}
input[type=file]::file-selector-button{border:0;border-radius:4px;background:#edf4f1;color:var(--green);padding:8px 10px;margin-right:12px;cursor:pointer}
input:focus,select:focus{border-color:var(--green);outline:3px solid #087f651c}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #46a38c;outline-offset:4px;border-radius:4px}
label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#435666}
label small{font-weight:400;color:var(--muted);font-size:11px;line-height:1.5}
h1,h2,h3,p{margin:0}
h1{font-size:30px;line-height:1.2;letter-spacing:-1px;font-weight:650}
h2{font-size:17px;line-height:1.4;font-weight:650;letter-spacing:-.3px}
h3{font-size:14px}
p{line-height:1.65}
strong{font-weight:600}
small{font-size:11px}
.icon{flex-shrink:0;vertical-align:middle}
.muted{color:var(--muted)}
.subtle{font-size:11px;color:var(--muted)}
.text-danger{color:var(--red)}
.text-link{color:var(--green);font-size:12px;font-weight:600}
.text-link:hover{text-decoration:underline}
.danger-link{color:var(--red)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;left:20px;top:-80px;padding:12px 20px;background:var(--navy);color:white;z-index:99;border-radius:8px}
.skip-link:focus{top:12px}
.sidebar{width:232px;background:#fff;border-right:1px solid var(--border);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:20;padding:33px 19px 17px}
.brand{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:750;line-height:1.1;letter-spacing:-.3px}
.brand-mark{display:flex;align-items:center;justify-content:center;background:var(--green);color:white;width:38px;height:42px;border-radius:10px;font-size:31px;font-weight:700;letter-spacing:-7px;padding-right:6px;position:relative}
.brand-mark span{color:#9ad7be}
.brand-sub{display:block;font-size:9px;letter-spacing:3px;font-weight:500;margin-top:6px;color:var(--muted)}
.nav-heading{display:block;font-size:9px;letter-spacing:1.4px;color:#89969f;margin:43px 14px 14px;font-weight:650}
.sidebar nav{display:flex;flex-direction:column;gap:5px}
.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;color:#657480;border-radius:7px;font-size:12px;font-weight:500;white-space:nowrap}
.nav-link:hover{background:#f5f8f7;color:var(--green)}
.nav-link.active{background:#eaf5f0;color:var(--green);font-weight:650}
.sidebar-bottom{margin-top:auto}
.profile{border-top:1px solid var(--border);padding:22px 1px 0;margin-top:20px;display:flex;gap:10px;align-items:center}
.profile strong{display:block;font-size:12px;max-width:100px;overflow:hidden;text-overflow:ellipsis}
.profile small{display:block;font-size:10px;color:var(--muted)}
.profile form{margin-left:auto}
.avatar{display:grid;place-items:center;border-radius:50%;height:34px;width:34px;background:#e6efe9;color:#426b56;font-size:12px;font-weight:600;flex-shrink:0}
.avatar.large{height:48px;width:48px;font-size:18px;margin-bottom:14px}
.logout{background:none;color:#687985;font-size:22px;padding:4px 5px}
.app-shell{margin-left:232px;min-width:0}
.topbar{height:72px;border-bottom:1px solid var(--border);padding:0 38px;display:flex;justify-content:space-between;align-items:center;background:#ffffffa6;font-size:11px}
.topbar-label{color:#6c7b85}
.private-label{display:flex;align-items:center;gap:7px;color:#718277;font-size:10px}
.status-dot{display:inline-block;flex-shrink:0;height:5px;width:5px;background:currentColor;border-radius:50%}
main{max-width:1560px;margin:auto;padding:35px 38px 0;outline:0;min-height:calc(100vh - 72px)}
.eyebrow{display:block;color:var(--green);font-size:9px;letter-spacing:1.7px;font-weight:700;margin-bottom:10px}
.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:0 0 29px}
.page-heading p{font-size:12px;color:var(--muted);margin-top:9px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;border-radius:7px;padding:11px 17px;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;transition:background .15s,box-shadow .15s}
.button .icon{width:16px;height:16px}
.button.primary{background:var(--green);color:#fff;box-shadow:0 2px 3px #087f6510}
.button.primary:hover{background:var(--green-dark)}
.button.secondary{background:#fff;color:#425867;border:1px solid #d8e1de}
.button.secondary:hover{background:#f4f8f6}
.button.danger{background:var(--red);color:#fff}
.button.small{min-height:36px;padding:8px 12px;font-size:11px}
.button.full{width:100%}
.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.actions.center{justify-content:center}
.month-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.section-kicker{display:block;font-size:9px;letter-spacing:1.3px;color:#849098;font-weight:650;margin-bottom:5px}
.month-toolbar h2{font-size:20px}
.month-picker{display:flex;gap:8px;align-items:center}
.month-picker input{width:157px;height:36px;font-size:11px;background:#fff}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
.metric{padding:20px 20px 18px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}
.metric-label{font-size:11px;color:#647784;display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:15px}
.metric>strong{font-size:26px;display:block;letter-spacing:-.9px;line-height:1.3;font-weight:650;overflow-wrap:anywhere}
.metric>small{display:block;font-size:10px;color:#86929b;margin-top:8px}
.metric-symbol{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;background:#eff3f6;color:#688499;font-size:15px;line-height:1}
.metric-symbol.green{background:#eaf5ef;color:#22856c}
.metric-symbol.amber{background:#fbf4e8;color:#bb9254}
.metric-symbol.red{background:#faf0ed;color:#bb7770}
.panel{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}
.dashboard-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:22px;margin-bottom:22px}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px 23px 16px}
.panel-heading p{font-size:11px;color:var(--muted);margin-top:6px}
.category-chart{padding:0 23px 25px}
.category-row{margin-top:16px}
.category-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;margin-bottom:8px}
.category-title>span{display:flex;align-items:center;gap:8px}
.category-0{--category-color:#16846b}
.category-1{--category-color:#4d7293}
.category-2{--category-color:#a9814a}
.category-3{--category-color:#7e8fba}
.category-4{--category-color:#5b958e}
.category-5{--category-color:#ad7676}
.category-dot{height:7px;width:7px;flex-shrink:0;background:var(--category-color);border-radius:3px}
.category-meter{display:block;width:100%;height:6px;border:0;background:#f0f3f2;border-radius:6px;overflow:hidden;margin-bottom:3px}
.category-meter::-webkit-meter-bar{background:#f0f3f2;border:0;border-radius:6px;box-shadow:none}
.category-meter::-webkit-meter-optimum-value{background:var(--category-color);border-radius:6px}
.category-meter::-moz-meter-bar{background:var(--category-color);border-radius:6px}
.monthly-chart{display:flex;align-items:stretch;gap:16px;overflow-x:auto;padding:12px 23px 0;min-height:225px}
.month-bar-group{display:flex;flex:1;min-width:60px;max-width:140px;align-items:center;flex-direction:column;font-size:9px}
.bar-track{height:145px;width:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--border);margin-bottom:12px}
.month-bar{width:36px;max-width:75%;height:100%;display:block;color:#b6cfc4;fill:currentColor}
.month-bar line{stroke:currentColor;stroke-width:2}
.selected .month-bar,.month-bar-group:hover .month-bar{color:var(--green)}
.bar-value{font-size:9px;font-weight:650;white-space:nowrap;margin-bottom:10px}
.bar-label{text-align:center;color:var(--muted);line-height:1.3;min-height:27px}
.selected .bar-label{color:var(--green);font-weight:700}
.chart-caption{font-size:10px;color:#8b969e;padding:12px 23px 21px}
.chart-empty{padding:25px 30px 42px;display:flex;align-items:center;justify-content:center;gap:24px;min-height:210px}
.chart-empty p{font-size:12px;color:#829099;max-width:230px}
.chart-ghost{display:flex;gap:8px;height:65px;align-items:flex-end;flex-shrink:0}
.chart-ghost i{display:block;width:15px;border-radius:3px;background:#e8f0eb;height:35%}
.chart-ghost i:nth-child(2){height:75%}
.chart-ghost i:nth-child(3){height:52%}
.chart-ghost i:nth-child(4){height:100%}
.upcoming-panel{margin-bottom:18px}
.compact-list{padding:0 23px 8px}
.compact-row{display:flex;align-items:center;gap:15px;padding:15px 0;border-top:1px solid #edf0ef}
.compact-row:hover .compact-detail>strong{color:var(--green)}
.date-tile{width:43px;min-width:43px;border:1px solid #e6ece8;border-radius:8px;display:flex;align-items:center;flex-direction:column;padding:4px;background:#f9fbfa}
.date-tile>strong{font-size:17px;font-weight:650}
.date-tile>small{font-size:8px;color:#87948d}
.compact-detail{flex:1;min-width:0}
.compact-detail>strong{display:block;font-size:12px;overflow-wrap:anywhere}
.compact-detail>small{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.compact-money{font-size:13px;min-width:110px;text-align:right}
.row-arrow{color:#9aa7a6;font-size:15px}
.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;font-size:9px;font-weight:600;line-height:1.4;white-space:nowrap}
.badge.paid{color:#25846a;background:#eaf5ef}
.badge.pending{color:#9c772e;background:#faf4e7}
.badge.overdue{color:#b25c52;background:#fbefec}
.inline-empty{display:flex;align-items:center;justify-content:center;gap:10px;color:#82918b;min-height:100px;padding:24px;font-size:12px}
.check-circle{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#edf5ef;color:#6f9e80}
.source-note{font-size:10px;color:#83918f;max-width:850px;margin-bottom:18px}
.page-footer{border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:15px;padding:21px 0 25px;margin-top:35px;font-size:9px;color:#93a09e}
.page-footer>span:first-child{font-weight:600}
.empty-state{text-align:center;padding:40px 28px;margin-bottom:22px}
.empty-illustration{margin:0 auto 18px;width:52px;height:52px;border-radius:16px;background:#edf5f0;display:grid;place-items:center;color:var(--green);font-size:25px}
.empty-illustration .icon{width:25px;height:25px}
.empty-state h2{font-size:21px;margin-bottom:10px}
.empty-state p{max-width:470px;margin:0 auto 20px;font-size:12px;color:var(--muted)}
.empty-state>.button{margin-top:3px}
.history-links{border-top:1px solid var(--border);margin:28px auto -10px;padding-top:18px;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px;max-width:700px}
.history-links>span{width:100%;font-size:10px;color:var(--muted);margin-bottom:5px}
.history-links a{font-size:11px;border:1px solid #e0e8e3;border-radius:5px;padding:6px 10px;color:var(--green);background:#fafcfb}
.notice{font-size:12px;line-height:1.7;border:1px solid #dce9e2;padding:14px 17px;border-radius:8px;background:#eff6f2;color:#476f5b;margin-bottom:20px}
.notice.error{background:#fff0ee;border-color:#efd1cc;color:#963c34}
.notice.warning{background:#fffbef;border-color:#eee2bd;color:#886c2f}
.notice.info{background:#edf4f7;border-color:#d6e4eb;color:#4e7083}
.notice.success{background:#eaf5ef;color:#2b795d;border-color:#cfe5d6}
.notice h3{font-size:12px}
.notice ul{margin:8px 0 0;padding-left:20px}
.notice p{margin:5px 0}
.notice label{color:inherit;margin-top:12px;font-size:12px}
.filter-panel{padding:21px 23px;margin-bottom:22px}
.filter-grid{display:grid;grid-template-columns:145px minmax(150px,1.3fr) repeat(3,minmax(100px,1fr)) auto;gap:13px;align-items:end}
.filter-grid input,.filter-grid select{height:39px;font-size:11px}
.filter-grid .button{min-height:39px;padding:10px 16px}
.filter-grid label{font-size:10px}
.filter-reset{display:inline-block;margin-top:13px;font-size:10px}
.list-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:11px;color:var(--muted);margin-bottom:14px}
.list-summary .actions{gap:20px}
.list-summary .text-link{font-size:10px}
.table-panel{margin-bottom:20px}
.table-scroll{overflow-x:auto;min-width:0;padding-bottom:8px}
table{border-collapse:collapse;width:100%;text-align:left}
thead{background:#fafbf9}
th{font-weight:500;font-size:10px;color:#7d8b92;padding:14px 20px;border-bottom:1px solid var(--border);white-space:nowrap}
td{padding:19px 20px;border-bottom:1px solid #edf0ee;font-size:11px;vertical-align:top}
tbody tr:last-child td{border-bottom:0}
.account-title{font-weight:650;display:block;font-size:12px;min-width:150px;max-width:300px;overflow-wrap:anywhere}
.account-title:hover{color:var(--green)}
.cell-sub{display:block;font-size:9px;color:#87958f;margin-top:5px;max-width:250px}
.money-cell{font-weight:650;white-space:nowrap}
.review-label{display:block;font-size:9px;color:#a5823d;margin-top:5px}
.row-actions{white-space:nowrap;min-width:165px}
.row-actions>.text-link,.row-actions summary{font-size:10px}
.row-actions>.text-link{margin-right:10px}
.action-details{display:inline-block;position:relative;margin-right:10px;white-space:normal}
.action-details:last-child{margin-right:0}
.action-details summary{list-style:none}
.action-details summary::-webkit-details-marker{display:none}
.action-popover{position:absolute;z-index:10;width:230px;right:0;top:26px;border:1px solid var(--border);background:#fff;border-radius:9px;box-shadow:0 8px 35px #18304424;padding:17px}
.action-popover p{font-size:11px;margin-bottom:12px;white-space:normal}
.action-popover strong{display:block;font-size:12px;margin-bottom:10px}
.action-popover label{font-size:10px;margin-bottom:12px}
.action-popover input{font-size:11px;height:38px}
.table-scroll:has(.action-details[open]){padding-bottom:230px;margin-bottom:-8px}
.back-link{display:inline-block;font-size:11px;color:var(--muted);margin-bottom:20px}
.back-link:hover{color:var(--green)}
.form-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(240px,1fr);gap:34px;align-items:start;max-width:1050px}
.form-panel{padding:27px}
.form-stack{display:flex;flex-direction:column;gap:23px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px 20px}
.required{display:inline;color:var(--green)}
.form-footer{border-top:1px solid var(--border);padding-top:23px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:7px}
.form-footer .muted{font-size:12px}
.help-panel{padding:23px 4px}
.help-symbol{display:grid;place-items:center;font-family:Georgia,serif;border:1px solid #b9d5c7;background:#ecf4ef;width:26px;height:26px;border-radius:50%;font-size:16px;font-weight:600;color:#578e73;flex-shrink:0;margin-bottom:15px}
.help-panel h2{font-size:15px;margin-bottom:12px}
.help-panel p{font-size:12px;color:#7d8c93;margin-bottom:17px}
.help-panel .text-link{font-size:11px}
.provenance{margin-top:30px;padding-top:23px;border-top:1px solid var(--border)}
.provenance p{font-size:11px}
.steps{display:flex;align-items:center;gap:16px;max-width:500px;margin:0 0 25px;color:#9aa49f;font-size:11px}
.steps>span{display:flex;gap:8px;align-items:center;white-space:nowrap}
.steps b{display:grid;place-items:center;height:23px;width:23px;border-radius:50%;background:#e8ece9;font-size:10px}
.steps .current{color:var(--green);font-weight:600}
.steps .current b{background:var(--green);color:#fff}
.steps>i{height:1px;background:#dde5df;flex:1;min-width:30px}
.copy-month-select{display:flex;align-items:end;gap:24px;max-width:800px}
.copy-month-select label{flex:1}
.copy-arrow{align-self:center;margin-top:25px;color:#8b9e94;font-size:20px}
.copy-preview{margin-top:34px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.section-heading h2{font-size:19px}
.section-heading p{font-size:11px;margin-top:5px}
.checkbox-label{display:flex;flex-direction:row;align-items:center;gap:9px;font-size:12px;font-weight:500}
.select-all{font-size:11px}
.copy-list{display:flex;flex-direction:column;gap:12px}
.copy-row{display:grid;grid-template-columns:18px minmax(0,1fr) 155px 170px;align-items:center;gap:20px;padding:20px 23px}
.copy-row label{font-size:10px}
.copy-row input{font-size:12px;height:40px}
.copy-row .copy-check{display:block}
.copy-check input{height:17px}
.copy-description>strong{display:block;font-size:12px;overflow-wrap:anywhere}
.copy-description>small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.copy-description>.copy-already{color:var(--green);font-weight:600}
.sticky-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:23px;padding:20px 0}
.sticky-actions .muted{font-size:11px}
.help-strip{display:flex;align-items:flex-start;gap:16px;max-width:660px;padding:30px 4px}
.help-strip p{font-size:12px;color:var(--muted);margin-top:5px}
.help-strip h3{font-size:13px}
.upload-panel{padding:37px;max-width:650px}
.upload-panel h2{font-size:21px}
.upload-panel>p{font-size:12px;margin:10px 0 26px}
.upload-panel>p:last-child{font-size:10px;text-align:center;margin:18px 0 0}
.upload-icon{display:grid;place-items:center;background:#edf6f0;color:var(--green);height:60px;width:60px;border-radius:16px;margin-bottom:26px}
.upload-icon .icon{height:27px;width:27px}
.filename{overflow-wrap:anywhere;font-size:20px}
.import-metrics{margin-top:24px}
.import-metrics .metric>strong{font-size:32px}
.import-months{padding:0 24px 10px}
.import-months>div{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid var(--border);padding:18px 0;font-size:13px}
.import-months small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.import-months>div>strong{text-align:right}
.import-table{margin-top:23px}
.import-table .table-scroll{max-height:540px;overflow:auto}
.import-table th{position:sticky;top:0;background:#f7f9f6}
.import-confirm{padding:24px;margin-top:23px}
.import-confirm .form-footer{border:0;padding:0;margin:0}
.import-confirm>.notice{margin-bottom:22px}
.catalog-grid{grid-template-columns:1fr 1fr;align-items:start}
.count-pill{display:grid;place-items:center;min-width:29px;height:27px;border-radius:7px;background:#eff4f0;color:#6d8c7a;font-size:11px;padding:0 8px}
.catalog-form{display:flex;gap:9px;padding:4px 23px 22px;border-bottom:1px solid var(--border)}
.catalog-form input{font-size:12px}
.catalog-list{margin:0;padding:0 23px;list-style:none;max-height:600px;overflow:auto}
.catalog-list li{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #eef1ed;font-size:12px}
.catalog-list li:last-child{border:0}
.catalog-avatar{display:grid;place-items:center;width:29px;height:29px;border-radius:7px;background:#f0f5f0;color:#799284;font-size:11px;flex-shrink:0}
.catalog-list strong{overflow-wrap:anywhere}
.inset-heading{padding:0 0 25px}
.wrap-anywhere{overflow-wrap:anywhere}
.error-state{max-width:700px;margin:60px auto}
.error-state h1{font-size:25px;margin-bottom:15px}
.error-state .eyebrow{margin-bottom:16px}
.public-page{background:#fff}
.public-page .app-shell{margin:0}
.public-page main{padding:0;max-width:none;min-height:100vh}
.public-page .flash-stack{position:fixed;top:20px;left:50%;transform:translateX(-50%);width:min(90%,550px);z-index:50}
.login-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}
.login-story{background:var(--navy);color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:52px 65px;position:relative;overflow:hidden}
.login-story:after{content:"";position:absolute;width:400px;height:400px;border:1px solid #ffffff0b;right:-180px;bottom:-170px;border-radius:50%;box-shadow:0 0 0 50px #ffffff03,0 0 0 100px #ffffff02;pointer-events:none}
.login-story .brand-sub{color:#a2b4bb}
.login-story .eyebrow{color:#8bcab1;font-size:10px}
.login-story h1{font-size:clamp(38px,4.2vw,66px);font-weight:550;letter-spacing:-2px;line-height:1.15;margin:21px 0 26px}
.login-story h1 span{color:#9bc9ae}
.login-story p{color:#9fb3bd;max-width:300px;font-size:13px;line-height:1.8}
.story-foot{font-size:10px;color:#91a7b3}
.login-panel{display:flex;align-items:center;justify-content:center;padding:65px 40px}
.login-form{width:100%;max-width:350px}
.login-form h2{font-size:27px;letter-spacing:-.9px;line-height:1.3}
.login-form>.muted{font-size:12px;margin:14px 0 33px}
.login-form .form-stack{gap:21px}
.login-form .button{margin-top:6px;justify-content:space-between}
.login-form input{height:47px}
.login-note{font-size:10px;color:#9aa59f;text-align:center;margin-top:23px}

@media(min-width:1450px){main{padding-left:48px;padding-right:48px}
.metric{padding:24px}
.metric>strong{font-size:30px}
.metric-label{font-size:12px}
.compact-row{padding:18px 0}
.monthly-chart{min-height:250px}
.bar-track{height:170px}
}

@media(max-width:1190px){.sidebar{width:205px;padding-left:14px;padding-right:14px}
.app-shell{margin-left:205px}
main{padding:28px 25px 0}
.topbar{padding:0 25px}
.metric-grid{gap:11px}
.metric{padding:17px 14px}
.metric>strong{font-size:23px}
.metric>small{font-size:9px}
.metric-label{font-size:10px}
.dashboard-grid{gap:16px;grid-template-columns:1fr 1fr}
.filter-grid{grid-template-columns:145px 1fr 1fr}
.filter-grid .button{align-self:end}
.filter-reset{margin-top:16px}
.copy-row{grid-template-columns:18px minmax(0,1fr) 130px 150px;gap:14px;padding:18px}
.form-layout{gap:25px;grid-template-columns:minmax(0,1.7fr) minmax(200px,1fr)}
.compact-money{min-width:90px}
.compact-row{gap:10px}
.login-story{padding:45px}
.metric-symbol{height:23px;width:23px}
.table-scroll td,.table-scroll th{padding-left:15px;padding-right:15px}
}

@media(max-width:950px){.sidebar{width:180px;padding:25px 10px 15px}
.app-shell{margin-left:180px}
.brand{font-size:14px;gap:8px}
.brand-mark{width:32px;height:37px;font-size:28px}
.brand-sub{font-size:8px}
.nav-link{padding:11px 10px;gap:9px;font-size:11px}
.nav-link .icon{width:18px;height:18px}
.nav-heading{font-size:8px;margin:35px 10px 13px}
.topbar{height:60px}
.page-heading{align-items:flex-start}
.page-heading>.actions{justify-content:flex-end}
.page-heading h1{font-size:27px}
.page-heading .button{padding:10px 12px;font-size:11px}
.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.metric>strong{font-size:28px}
.metric-label{font-size:11px}
.dashboard-grid{grid-template-columns:1fr}
.monthly-chart{justify-content:space-around}
.month-bar-group{max-width:85px}
.chart-empty{min-height:155px}
.form-layout{grid-template-columns:1fr}
.help-panel{padding:10px 5px;max-width:550px}
.help-panel p{font-size:11px}
.copy-month-select{gap:13px;flex-wrap:wrap}
.copy-month-select .button{margin-top:10px}
.copy-row{grid-template-columns:18px 1fr 1fr;gap:15px}
.copy-description{grid-column:2 / -1}
.copy-row>label:not(.copy-check){grid-column:auto}
.copy-row>label:nth-last-child(2){grid-column:2}
.copy-check{grid-row:1}
.sticky-actions{align-items:flex-start}
.sticky-actions .button{white-space:normal;text-align:center}
.catalog-grid{grid-template-columns:1fr 1fr}
.catalog-form{flex-wrap:wrap}
.catalog-form .button{width:100%}
.catalog-grid .panel-heading{align-items:flex-start}
.catalog-grid .panel-heading p{max-width:200px}
.profile{gap:7px}
.profile strong{max-width:70px}
.topbar-label{font-size:10px}
.private-label{font-size:9px}
.login-story{padding:40px}
.login-panel{padding:45px 32px}
.login-form h2{font-size:24px}
}

@media(max-width:700px){:root{font-size:13px}
.sidebar{position:relative;inset:auto;width:100%;padding:18px 19px 0;border-right:0;border-bottom:1px solid var(--border);display:block}
.sidebar .brand{font-size:15px}
.brand-mark{height:34px;width:31px;font-size:26px;border-radius:8px}
.brand-sub{font-size:7px;letter-spacing:2.6px;margin-top:4px}
.nav-heading{display:none}
.sidebar nav{flex-direction:row;gap:4px;overflow-x:auto;padding:17px 0 11px;margin-right:-19px;scrollbar-width:thin}
.nav-link{padding:9px 10px;font-size:10px;gap:6px;border-radius:6px}
.nav-link .icon{width:15px;height:15px}
.sidebar-bottom{position:absolute;right:18px;top:20px;display:flex;align-items:center;gap:10px}
.sidebar-bottom>.nav-link{padding:4px}
.sidebar-bottom>.nav-link span{display:none}
.profile{padding:0;margin:0;border:0;gap:5px}
.profile>div{display:none}
.profile .avatar{height:27px;width:27px;font-size:10px}
.logout{padding:0 3px;font-size:20px}
.app-shell{margin-left:0}
.topbar{display:none}
main{padding:25px 19px 0;min-height:calc(100vh - 120px)}
.page-heading{gap:18px;flex-wrap:wrap;margin-bottom:24px}
.page-heading h1{font-size:27px}
.page-heading p{font-size:11px;max-width:330px}
.page-heading>.actions{justify-content:flex-start}
.eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:8px}
.button{font-size:11px;min-height:40px;padding:10px 14px}
.month-toolbar{align-items:flex-end;gap:10px;margin-bottom:18px}
.month-toolbar h2{font-size:17px}
.section-kicker{font-size:8px;letter-spacing:1px}
.month-picker{gap:5px}
.month-picker input{width:128px;font-size:10px;padding:6px 7px;height:34px}
.month-picker .button{padding:7px 9px;min-height:34px;font-size:10px}
.month-picker .button span{display:none}
.metric-grid{gap:11px;margin-bottom:17px}
.metric{padding:16px 13px;border-radius:11px}
.metric>strong{font-size:24px;letter-spacing:-.6px}
.metric-label{font-size:10px;margin-bottom:11px}
.metric>small{font-size:8px;line-height:1.6;margin-top:6px}
.metric-symbol{width:21px;height:21px;font-size:12px}
.panel{border-radius:11px}
.panel-heading{padding:20px 18px 15px;gap:10px}
.panel-heading h2{font-size:16px}
.panel-heading>.subtle{font-size:9px;text-align:right}
.dashboard-grid{gap:17px;margin-bottom:17px}
.category-chart{padding:0 18px 22px}
.category-title{font-size:11px}
.monthly-chart{gap:10px;padding:10px 18px 0}
.chart-caption{font-size:9px;padding:14px 18px 20px}
.bar-value{font-size:8px}
.bar-track{height:135px}
.chart-empty{padding:18px 22px 30px;gap:20px}
.chart-empty p{font-size:11px}
.compact-list{padding:0 18px 8px}
.compact-row{display:grid;grid-template-columns:38px 1fr auto;gap:5px 11px;padding:15px 0}
.date-tile{grid-row:1 / 3;min-width:38px;width:38px}
.compact-detail{grid-column:2}
.compact-detail>strong{font-size:11px}
.compact-detail>small{font-size:9px}
.compact-row>.badge{grid-row:2;grid-column:2;justify-self:start;margin-top:2px}
.compact-money{grid-column:3;grid-row:1 / 3;min-width:0;font-size:11px}
.row-arrow{display:none}
.badge{font-size:8px}
.inline-empty{min-height:100px;padding:22px 18px;font-size:11px}
.source-note{font-size:9px}
.page-footer{font-size:8px;margin-top:28px;padding:19px 0 23px}
.empty-state{padding:30px 18px}
.empty-state h2{font-size:18px}
.empty-state p{font-size:11px}
.history-links{gap:7px}
.history-links a{font-size:10px;padding:6px 8px}
.notice{font-size:11px;padding:13px 14px}
.filter-panel{padding:18px}
.filter-grid{grid-template-columns:1fr 1fr;gap:13px 12px}
.filter-grid .search-field{grid-column:2}
.filter-grid .button{min-height:39px}
.filter-grid select{padding-left:9px}
.filter-reset{font-size:10px}
.list-summary{font-size:10px;align-items:flex-start;gap:10px}
.list-summary .actions{gap:10px}
.list-summary .text-link{font-size:9px}
.accounts-table,.accounts-table tbody,.accounts-table tr,.accounts-table td,.import-records,.import-records tbody,.import-records tr,.import-records td{display:block;width:100%}
.accounts-table thead,.import-records thead{display:none}
.table-scroll{padding:0;overflow:visible}
.accounts-table tr,.import-records tr{padding:15px 18px;display:grid;grid-template-columns:1fr 1fr;gap:12px 15px;border-bottom:1px solid var(--border)}
.accounts-table tr:last-child,.import-records tr:last-child{border:0}
.accounts-table td,.import-records td{padding:0;border:0;font-size:11px;min-width:0}
.accounts-table td:before,.import-records td:before{content:attr(data-label);display:block;font-size:8px;color:#89948f;font-weight:400;letter-spacing:.2px;margin-bottom:4px}
.accounts-table td:first-child,.import-records td:first-child{grid-column:1/-1}
.accounts-table td:first-child:before,.import-records td:first-child:before{display:none}
.account-title{font-size:13px;max-width:none;min-width:0}
.cell-sub{font-size:9px}
.accounts-table td.money-cell{grid-column:2;grid-row:2}
.accounts-table td:nth-child(4){grid-column:1/-1}
.accounts-table td:nth-child(4):before{display:none}
.accounts-table td.row-actions{grid-column:1/-1;display:flex;align-items:center;gap:18px;border-top:1px solid #f0f2ef;padding-top:11px;min-width:0}
.row-actions:before{display:none!important}
.row-actions>.text-link,.row-actions summary{font-size:11px}
.row-actions>.text-link,.action-details{margin:0}
.action-details{position:static}
.accounts-table tr{position:relative}
.action-popover{right:12px;top:auto;margin-top:10px;max-width:calc(100% - 24px);width:260px}
.table-scroll:has(.action-details[open]){padding-bottom:0;margin-bottom:0}
.accounts-table tr:has(.action-details[open]){padding-bottom:250px}
.accounts-table tr:has(.action-details[open]) .action-popover{position:absolute}
.form-panel{padding:21px 18px}
.form-stack{gap:21px}
.form-grid{gap:20px 14px}
.form-layout{gap:25px}
.form-grid label:first-child{grid-column:1/-1}
.form-footer{padding-top:20px;align-items:flex-start;flex-wrap:wrap}
.form-footer>.subtle{width:100%;font-size:10px}
.form-footer>.actions{width:100%;justify-content:flex-end}
.form-footer .button{flex:1}
.help-panel{padding:0 3px}
.help-panel p{font-size:11px}
.back-link{font-size:10px;margin-bottom:18px}
.form-stack label{font-size:11px}
.form-stack input,.form-stack select{font-size:12px}
.form-stack label small{font-size:10px}
.copy-month-select{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.copy-arrow{display:none}
.copy-month-select label{font-size:11px;min-width:0}
.copy-month-select input{font-size:12px;padding:9px}
.copy-month-select .button{grid-column:1/-1;margin:0}
.steps{font-size:10px;gap:10px}
.steps>i{min-width:10px}
.section-heading{align-items:flex-start;flex-wrap:wrap;gap:13px}
.section-heading h2{font-size:17px}
.copy-row{grid-template-columns:17px 1fr 1fr;padding:17px 14px;gap:14px 10px}
.copy-row input{font-size:11px;padding:9px}
.copy-description>strong{font-size:11px}
.copy-description>small{font-size:9px}
.copy-row label{font-size:9px}
.sticky-actions{flex-direction:column;gap:13px;padding-top:0}
.sticky-actions .button{width:100%}
.copy-preview{margin-top:27px}
.help-strip{padding-top:23px}
.help-strip p{font-size:11px}
.upload-panel{padding:27px 22px}
.upload-panel h2{font-size:20px}
.import-table .table-scroll{max-height:650px;overflow-y:auto}
.import-records td:nth-child(4){grid-row:2;grid-column:2}
.import-records td:nth-child(2){grid-column:1/-1}
.import-records td:nth-child(3){grid-row:3;grid-column:1}
.import-records td:nth-child(5){grid-column:2;grid-row:3}
.import-records td:nth-child(4){grid-row:2;grid-column:2}
.import-records td:nth-child(2){grid-row:2;grid-column:1}
.import-confirm{padding:20px 18px}
.import-confirm .form-footer{align-items:stretch;flex-direction:column}
.import-confirm .form-footer .button{white-space:normal}
.import-confirm .checkbox-label{font-size:11px;align-items:flex-start}
.import-confirm .checkbox-label input{margin-top:2px}
.import-months{padding:0 18px 8px}
.import-months>div{font-size:11px}
.import-months small{font-size:9px}
.catalog-grid{grid-template-columns:1fr}
.catalog-form{flex-wrap:nowrap;padding:0 18px 19px}
.catalog-form .button{width:auto}
.catalog-form input{font-size:11px}
.catalog-list{padding:0 18px;max-height:none}
.catalog-grid .panel-heading p{max-width:none}
.inset-heading{padding:0 0 23px}
.error-state{margin:25px 0}
.public-page .error-state{margin:35px 20px}
.login-layout{display:flex;flex-direction:column}
.login-story{padding:27px 26px 32px;min-height:290px}
.login-story .brand{font-size:15px}
.login-story>div{margin-top:33px}
.login-story h1{font-size:37px;letter-spacing:-1.5px;margin:13px 0 15px}
.login-story h1 br:nth-child(2){display:none}
.login-story h1 span:before{content:" "}
.login-story p{font-size:11px;max-width:280px}
.login-story .eyebrow{font-size:8px}
.story-foot{display:none}
.login-panel{padding:36px 26px 45px;justify-content:flex-start}
.login-form{max-width:none}
.login-form h2{font-size:24px}
.login-form>.muted{margin:10px 0 26px}
.public-page .flash-stack{top:10px}
.login-note{font-size:9px}
.login-form .eyebrow{font-size:8px}
}

@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}
}

.month-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px;padding:13px 18px;border:1px solid var(--border);border-radius:9px;background:#f9fbfa}

.month-totals>div{display:flex;flex-direction:column;gap:4px;min-width:0}

.month-totals span{font-size:11px;color:var(--muted)}

.month-totals strong{font-size:14px;overflow-wrap:anywhere}

.monthly-chart{justify-content:flex-start}

.month-bar-group{flex:1 0 70px}

.account-title{font-size:13px}

.row-actions .text-link{font-size:11px}

.cell-sub{font-size:10px}

@media(max-width:700px){.month-totals{grid-template-columns:1fr 1fr;gap:13px}
.month-totals span{font-size:10px}
.month-totals strong{font-size:12px}
.form-stack input,.form-stack select,.copy-row input:not([type=checkbox]){font-size:16px}
}

.ledger-heading{margin-bottom:22px}
.ledger-filter-disclosure{margin-bottom:16px}
.ledger-filter-trigger{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:9px 13px;
  color:#294b40;
  font-weight:650;
  list-style:none;
}
.ledger-filter-trigger::-webkit-details-marker{display:none}
.ledger-filter-trigger .icon{width:18px;height:18px}
.ledger-filter-chevron{margin-left:auto}
.ledger-filter-disclosure[open] .ledger-filter-chevron{transform:rotate(180deg)}
.ledger-filter-count{
  padding:2px 7px;
  border-radius:10px;
  background:#e9f5ef;
  color:#05614d;
  font-size:10px;
  white-space:nowrap;
}
.ledger-filters{padding:15px 18px;margin-bottom:0}
.ledger-filters .filter-grid{gap:10px}
.ledger-panel{overflow:hidden}
.ledger-scroll{
  overflow:auto;
  max-height:min(58vh, 620px);
  padding-bottom:0;
  scrollbar-gutter:stable;
}
.ledger-scroll:has(.action-details[open]){padding-bottom:0;margin-bottom:0}
.ledger-scroll:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.ledger-table th{
  position:sticky;
  z-index:2;
  top:0;
  background:#f7f9f8;
  box-shadow:0 1px var(--border);
}
.ledger-table th,.ledger-table td{padding:12px 14px}
.ledger-table td{vertical-align:middle}
.ledger-table tbody tr:hover{background:#fbfcfb}
.ledger-table .ledger-amount{text-align:right}
.ledger-table .ledger-actions{min-width:196px;width:230px;white-space:normal}
.ledger-action-group{display:flex;align-items:flex-start;gap:6px;flex-wrap:wrap}
.ledger-action-details{margin:0}
.ledger-action-details[open]{flex-basis:100%}
.ledger-action{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:5px;
  min-height:33px;
  padding:5px 9px;
  border:1px solid #d7e3dd;
  border-radius:7px;
  background:#fff;
  color:#294b40;
  font-size:11px;
  font-weight:650;
  white-space:nowrap;
}
.ledger-action .icon{width:14px;height:14px}
.ledger-action:hover{border-color:#90b8a9;background:#f2f8f5}
.ledger-settle{color:#05614d;background:#e9f5ef;border-color:#c9e4d9}
.ledger-more{min-width:34px;color:var(--muted);letter-spacing:1px}
.ledger-popover{
  position:static;
  width:100%;
  max-width:none;
  margin-top:7px;
  padding:10px;
  box-shadow:none;
  background:#f8faf9;
}
.ledger-popover form+form{margin-top:9px;padding-top:9px;border-top:1px solid var(--border)}
.ledger-popover p{margin-bottom:8px}
.ledger-popover label{margin-bottom:8px}
.ledger-recurring{
  display:inline-block;
  margin-top:4px;
  color:#276a59;
  font-size:10px;
  font-weight:600;
}
.ledger-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 14px;
  border-top:1px solid var(--border);
  padding:10px 13px;
  color:var(--muted);
  font-size:11px;
}
.ledger-pagination>div{display:flex;align-items:center;gap:8px}
.ledger-pagination .disabled{opacity:.48}
.ledger-page-number{white-space:nowrap}
.recurrence-option{
  align-items:flex-start;
  border:1px solid #d8e8df;
  background:#f4f9f6;
  border-radius:8px;
  padding:12px 13px;
}
.recurrence-option input{margin:2px 0 0}
.recurrence-option small{display:block;margin-top:3px}
.ledger-metric:hover{border-color:#a6cbbd;background:#fcfefc}
.dashboard-balances{margin-bottom:22px}

@media(min-width:701px){
  .ledger-filter-disclosure[open] .ledger-filter-trigger{display:none}
}
@media(max-width:700px){
  .ledger-filter-disclosure[open] .ledger-filter-trigger{border-bottom:1px solid var(--border)}
  .ledger-filters input,.ledger-filters select{font-size:16px}
  .ledger-scroll{max-height:min(64vh, 575px);scrollbar-gutter:auto}
  .ledger-table tr{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 13px}
  .ledger-table td{padding:0}
  .ledger-table td.money-cell{grid-column:2;grid-row:2;text-align:left;white-space:normal}
  .ledger-table td:nth-child(4){grid-column:3;grid-row:2}
  .ledger-table td:nth-child(4):before{display:block}
  .ledger-table td.ledger-actions{grid-column:1/-1;display:block;width:auto;min-width:0;padding-top:8px}
  .ledger-table tr:has(.action-details[open]){padding-bottom:12px}
  .ledger-table tr:has(.action-details[open]) .ledger-popover{position:static}
  .ledger-action{min-height:40px;padding:6px 10px}
  .ledger-more{min-width:40px}
  .ledger-popover input{font-size:16px}
  .ledger-pagination>div{flex-wrap:wrap}
}
.import-sheet-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
.import-sheet-months label { display: grid; gap: .35rem; }
.import-table .table-scroll { max-height: 28rem; overflow: auto; }
[data-preview-items] > [hidden] { display: none !important; }
.ledger-quick-settle { margin: 0; }
.ledger-pagination button[aria-disabled="true"] { opacity: .48; cursor: default; }
