:root{--canvas:#f5f5ef;--surface:#fff;--ink:#203d33;--body:#344c42;--muted:#6b7b72;--green:#245d46;--green-deep:#163e31;--green-soft:#eaf2e9;--line:#e2e7df;--warning-bg:#fff7df;--warning:#82611a;--red:#a3403f;--radius:20px;font-family:'Segoe UI',-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:var(--body);background:var(--canvas);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.65}a{color:var(--green);text-decoration-thickness:1px;text-underline-offset:3px}a:hover{color:var(--green-deep)}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}input,select,textarea{max-width:100%}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{color:var(--ink);letter-spacing:-.025em}h1{font-size:clamp(27px,3vw,37px);line-height:1.22;font-weight:650}h2{font-size:19px;line-height:1.4;font-weight:650}h3{font-size:16px;font-weight:650}p{margin-bottom:16px}strong{font-weight:650}small{font-size:12px}:focus-visible{outline:3px solid #a1c6a6;outline-offset:4px}
.app-shell{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr)}.sidebar{background:#fcfcf8;padding:34px 20px 22px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);padding:0 12px;margin-bottom:42px}.brand-mark{width:38px;height:40px;display:grid;place-items:center;color:white;border-radius:13px 13px 13px 4px;background:var(--green);font-size:24px;font-weight:550;flex:0 0 auto}.brand-name{display:block;font-size:24px;font-weight:700;letter-spacing:-.05em;line-height:1.2}.brand-caption{display:block;color:var(--muted);font-size:10px;letter-spacing:.11em;text-transform:uppercase;margin-top:4px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.nav-link{display:flex;align-items:center;gap:13px;padding:11px 14px;color:#647469;text-decoration:none;font-size:13px;font-weight:550;border-radius:12px;transition:background .15s,color .15s}.nav-link svg{width:19px;height:19px;flex:0 0 auto}.nav-link:hover{background:#f0f3eb;color:var(--ink)}.nav-link.active{background:#e8eee2;color:var(--green);font-weight:650}.sidebar-footer{margin-top:auto;padding:18px 12px 0;color:var(--muted);font-size:11px}.sidebar-footer p{margin-bottom:10px}.sidebar-footer .pill{margin-bottom:8px}.main-shell{min-width:0}
.topbar{min-height:81px;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 42px;border-bottom:1px solid var(--line);background:#fcfcf880}.topbar form{margin:0}.topbar .eyebrow{margin:0}.topbar .user-info{display:flex;gap:12px;align-items:center;min-width:0}.topbar .user-info span{overflow:hidden;text-overflow:ellipsis;max-width:250px;white-space:nowrap}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.15em;font-weight:700;color:#819080;margin-bottom:8px}.page-content{padding:36px 42px 52px;max-width:1600px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.page-title{margin-bottom:6px}.page-heading h1{margin-bottom:6px}.page-heading p,.page-heading .lead{margin-bottom:0}.lead{color:var(--muted);font-size:14px;max-width:650px}.page-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px;border:1px solid transparent;border-radius:10px;font-size:12px;font-weight:650;line-height:1.5;text-decoration:none;min-height:42px;white-space:nowrap}.btn svg{width:16px;height:16px}.btn-primary{background:var(--green);color:#fff;box-shadow:0 3px 6px #193d3012}.btn-primary:hover{background:var(--green-deep);color:#fff}.btn-secondary{background:white;border-color:#d6dfd4;color:var(--ink)}.btn-secondary:hover{background:#edf2e9}.btn-small{padding:7px 12px;min-height:34px;font-size:11px;border-radius:8px}.btn-danger{color:var(--red);background:#fff2ef;border-color:#eed4d0}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:22px 22px 20px;box-shadow:0 3px 9px #193d3003;min-width:0}.metric-card:first-child{background:var(--green);border-color:var(--green);color:#fff}.metric-label{color:var(--muted);font-size:11px;font-weight:550;margin-bottom:15px}.metric-value{font-size:clamp(22px,2.1vw,30px);color:var(--ink);line-height:1.3;font-weight:650;letter-spacing:-.045em;font-variant-numeric:tabular-nums;word-break:break-word}.metric-note{font-size:10px;color:var(--muted);margin-top:9px;line-height:1.5}.metric-card:first-child .metric-label,.metric-card:first-child .metric-note{color:#d0e1d2}.metric-card:first-child .metric-value{color:white}.positive{color:#287b50}.negative{color:var(--red)}
.grid-two{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px;align-items:start;margin-bottom:24px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:white;margin-bottom:24px;overflow:hidden;min-width:0}.grid-two>.panel{margin-bottom:0}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 24px 18px;border-bottom:1px solid #edf0e9}.panel-title{margin-bottom:0;font-size:16px}.panel-header h2,.panel-header h3,.panel-header p{margin-bottom:0}.panel-header .muted{font-size:11px}.panel-body{padding:24px}.panel-body>:last-child{margin-bottom:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:28px 0 14px}.section-heading h2{margin-bottom:0}.muted{color:var(--muted)}
.pill{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:7px;background:#f0f3ec;color:#66825c;font-size:10px;font-weight:650;line-height:1.45;white-space:nowrap}.pill.warning{background:var(--warning-bg);color:var(--warning)}.pill.success{background:var(--green-soft);color:var(--green)}.alert{padding:14px 18px;border:1px solid var(--line);border-radius:12px;margin-bottom:20px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.alert p{margin-bottom:8px}.alert>:last-child{margin-bottom:0}.alert-warning{background:var(--warning-bg);border-color:#ecdfb6;color:#7c632d}.alert-success{background:#eaf4e9;border-color:#cadfc7;color:#3b683b}.alert-error{background:#fff1ed;border-color:#efd1c7;color:#954c3e}
.empty-state{text-align:center;padding:32px 24px;color:var(--muted)}.empty-state h2,.empty-state h3{margin:14px 0 8px}.empty-state p{font-size:12px;max-width:410px;margin:0 auto 18px}.empty-icon{display:grid;place-items:center;width:48px;height:48px;background:#eef3e7;border-radius:16px;margin:auto;font-size:23px;color:#668557}.empty-icon svg{width:24px;height:24px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.form-field{min-width:0}.form-field.full{grid-column:1/-1}.field-label,.form-field>label{display:block;margin-bottom:7px;color:#53695b;font-size:11px;font-weight:650}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{width:100%;background:#fff;border:1px solid #dbe2d6;border-radius:9px;padding:10px 12px;min-height:43px;line-height:1.5;font-size:13px;color:var(--ink);transition:border-color .15s,box-shadow .15s}input::placeholder,textarea::placeholder{color:#9aa599;opacity:1}input:focus,select:focus,textarea:focus{border-color:#91b28e;box-shadow:0 0 0 3px #e8f0e4;outline:none}select{padding-right:24px}input[type=checkbox],input[type=radio]{accent-color:var(--green);width:16px;height:16px;margin:0;flex:0 0 auto}.help{color:#869080;font-size:10px;line-height:1.7;margin:6px 0 0}.checkbox-row{display:flex;align-items:center;gap:9px;color:#62715f;font-size:12px;margin-top:6px}.checkbox-row label{margin:0}.form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}.form-actions .help{margin:0}
.validation-summary-errors{border:1px solid #efd1c7;border-radius:10px;background:#fff3ef;padding:12px 18px;color:#954c3e;margin-bottom:18px;font-size:12px}.validation-summary-errors ul{margin:0;padding-left:18px}.validation-summary-valid{display:none}.field-validation-error{display:block;margin-top:4px;font-size:10px;color:var(--red)}.input-validation-error{border-color:#cb8579!important}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:nowrap}th{color:#8a9483;font-weight:550;font-size:10px;letter-spacing:.035em;padding:12px 18px;background:#fafbf7;border-bottom:1px solid var(--line)}td{padding:15px 18px;border-bottom:1px solid #edf0e9;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fdfefb}td strong{font-weight:600}td .muted{font-size:10px}td form{display:flex;align-items:center;gap:8px}td select{min-width:180px;font-size:11px;min-height:34px;padding:6px 10px}.amount{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.stack{display:flex;flex-direction:column;gap:16px}.row-list{display:flex;flex-direction:column}.row-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid #edf0e9}.row-item:first-child{padding-top:0}.row-item:last-child{padding-bottom:0;border-bottom:0}.row-main{min-width:0}.row-main strong{display:block;font-size:12px}.row-main .muted{display:block;font-size:10px;margin-top:3px}.row-side{text-align:right;flex-shrink:0;font-variant-numeric:tabular-nums}.row-side strong{font-size:13px}.row-side .muted{display:block;font-size:10px;margin-top:3px}.account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.account-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;min-width:0}.account-card h2,.account-card h3{margin:14px 0 6px;overflow-wrap:anywhere}.account-card .metric-value{margin-top:18px}.account-kind{font-size:10px;color:var(--muted)}.rule-card{border:1px solid var(--line);border-radius:14px;padding:18px;background:#fcfdf9}.rule-card h3{margin-bottom:5px}.rule-card p{margin-bottom:10px;font-size:12px}.warning-list{margin:0;padding-left:17px;font-size:11px;line-height:1.8}.warning-list li+li{margin-top:7px}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:var(--green-deep);color:#d2dfd0;padding:48px clamp(36px,6vw,100px);display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-story::after{content:'';position:absolute;width:440px;height:440px;border:1px solid #b8d0b21a;border-radius:50%;right:-160px;bottom:-190px;pointer-events:none}.auth-story::before{content:'';position:absolute;width:440px;height:440px;border:1px solid #b8d0b21a;border-radius:50%;right:-95px;bottom:-130px;pointer-events:none}.auth-story h1{color:#fff;font-weight:550;font-size:clamp(35px,4vw,54px);margin:45px 0 24px;letter-spacing:-.045em;max-width:490px}.auth-story p{color:#b4c9b5;font-size:14px;max-width:380px;line-height:1.9}.auth-story .eyebrow{color:#a4c4a6}.auth-story .brand{color:#fff;padding:0;margin-bottom:0;align-self:flex-start}.auth-story .brand-mark{background:#f0f4e9;color:var(--green-deep)}.auth-story .brand-name{color:#fff}.auth-story .brand-caption{color:#9cb59d}.auth-card{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:60px clamp(35px,7vw,120px);background:#fcfcf7}.auth-card h1{font-size:30px;margin-bottom:10px}.auth-card>p{color:var(--muted);font-size:13px;margin-bottom:28px}.auth-brand{display:none}.auth-form{width:100%;max-width:420px;margin:auto 0}.auth-form .form-field{margin-bottom:18px}.auth-form .btn-primary{width:100%;margin-top:8px}.auth-footer{margin-top:22px;color:var(--muted);font-size:11px;line-height:1.8}
.flow-chart{width:100%;height:auto;display:block;min-height:150px}.chart-label{fill:#82907e;font-size:11px}.flow-bar{fill:#85a47d}.flow-chart .chart-line{stroke:#4d7c54;stroke-width:2.5;fill:none}.flow-chart .chart-grid{stroke:#ebefe7;stroke-width:1}.flow-chart .chart-area{fill:#ecf2e7}.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}[hidden]{display:none!important}
@media(min-width:1500px){.page-content{padding-top:44px}.metric-card{padding:26px}}
@media(max-width:1150px){.app-shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:28px 12px 20px}.page-content{padding:28px 26px 42px}.topbar{padding:20px 26px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-two{grid-template-columns:1fr}.metric-value{font-size:28px}}
@media(max-width:800px){.app-shell{display:block}.sidebar{height:auto;position:static;padding:18px 20px 12px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0 0 18px;padding:0}.brand-mark{width:32px;height:34px;border-radius:10px 10px 10px 3px;font-size:21px}.brand-name{font-size:22px}.brand-caption{font-size:9px;margin-top:2px}.sidebar nav{flex-direction:row;flex-wrap:wrap;gap:6px}.nav-link{padding:8px 10px;font-size:11px;gap:7px;border-radius:8px}.nav-link svg{width:16px;height:16px}.sidebar-footer{display:none}.topbar{min-height:60px;padding:12px 22px;background:#fcfcf8}.topbar .eyebrow{font-size:9px}.topbar .user-info span{font-size:11px;max-width:190px}.page-content{padding:26px 22px 40px}.page-heading{gap:18px;align-items:flex-start;margin-bottom:22px}.page-actions{justify-content:flex-end}.panel-header,.panel-body{padding:20px}.auth-shell{grid-template-columns:minmax(0,1fr)}.auth-story{padding:30px 28px 32px}.auth-story h1{font-size:32px;margin:28px 0 14px;max-width:400px}.auth-story p{font-size:12px;max-width:500px;margin-bottom:0}.auth-card{padding:32px 28px 42px;align-items:center}.auth-form{max-width:470px}.auth-card h1{font-size:26px}}
@media(max-width:480px){body{font-size:13px}.sidebar{padding:16px 16px 12px}.sidebar nav{gap:3px}.nav-link{padding:8px;font-size:10px;gap:5px}.nav-link svg{width:14px;height:14px}.topbar{padding:12px 16px;gap:8px}.topbar .user-info{gap:8px}.topbar .user-info span{max-width:145px;font-size:10px}.page-content{padding:23px 16px 36px}.page-heading{flex-direction:column;gap:15px}.page-heading h1{font-size:28px}.lead{font-size:12px}.page-actions{justify-content:flex-start;width:100%}.page-actions .btn{flex:1}.metric-grid{gap:10px;margin-bottom:18px}.metric-card{padding:17px 14px;border-radius:15px}.metric-label{font-size:10px;margin-bottom:12px}.metric-value{font-size:21px}.metric-note{font-size:9px;margin-top:7px}.grid-two{gap:18px;margin-bottom:18px}.panel{border-radius:16px;margin-bottom:18px}.panel-header{padding:17px 17px 15px;gap:12px}.panel-body{padding:18px 17px}.panel-title{font-size:15px}.panel-header .muted{font-size:10px}.form-grid{grid-template-columns:minmax(0,1fr);gap:16px}.form-actions>.btn{width:100%}.account-grid{grid-template-columns:minmax(0,1fr);gap:12px}.account-card{padding:20px;border-radius:16px}.account-card .metric-value{font-size:28px}.row-item{gap:10px}.row-main strong{font-size:11px}.row-side strong{font-size:12px}th,td{padding-left:14px;padding-right:14px}.pill{font-size:9px;padding:4px 7px}.alert{padding:13px 15px;font-size:11px}.auth-story{padding:25px 22px}.auth-story h1{font-size:29px;margin-top:24px}.auth-card{padding:28px 22px 36px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.sidebar,.topbar,.page-actions,.form-actions{display:none}.app-shell{display:block}.page-content{padding:0}body{background:white}.panel,.metric-card{break-inside:avoid;box-shadow:none}}
.inline-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.inline-form select{flex:1 1 160px;min-width:0}.inline-form .btn{flex:0 0 auto}.chart-grid{display:flex;align-items:flex-end;justify-content:space-around;gap:12px;min-height:200px;padding:18px 8px 0;border-bottom:1px solid var(--line)}.chart-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;min-width:0;flex:1;text-align:center}.chart-bar{display:block;width:min(42px,75%);min-width:10px;background:#8eac84;border-radius:6px 6px 0 0;height:7px}.chart-bar.negative{background:#c68172}.chart-month{font-size:10px;color:var(--muted);white-space:nowrap}.chart-amount{font-size:10px;color:#6c7c68;font-variant-numeric:tabular-nums;white-space:nowrap}.chart-height-1{height:7px}.chart-height-2{height:14px}.chart-height-3{height:21px}.chart-height-4{height:28px}.chart-height-5{height:35px}.chart-height-6{height:42px}.chart-height-7{height:49px}.chart-height-8{height:56px}.chart-height-9{height:63px}.chart-height-10{height:70px}.chart-height-11{height:77px}.chart-height-12{height:84px}.chart-height-13{height:91px}.chart-height-14{height:98px}.chart-height-15{height:105px}.chart-height-16{height:112px}.chart-height-17{height:119px}.chart-height-18{height:126px}.chart-height-19{height:133px}.chart-height-20{height:140px}.auth-features{display:flex;flex-direction:column;gap:14px;margin-top:26px;font-size:12px;color:#b8cdb7}.auth-features span{display:flex;align-items:center;gap:10px}.auth-features span::before{content:'✓';width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;background:#395b46;color:#cedfc8;font-size:10px;flex:0 0 auto}@media(max-width:480px){.chart-grid{gap:5px;padding:12px 0 0;overflow-x:auto;justify-content:flex-start}.chart-column{min-width:45px}.chart-amount{font-size:8px}.chart-month{font-size:9px}.auth-features{gap:9px;margin-top:18px;font-size:10px}.inline-form .btn{flex:1 1 auto}}

.metric-label,.metric-value,.metric-note{display:block}.auth-features span::before{content:none}.row-main>span{display:block;font-size:11px;color:var(--muted);margin-top:3px}

.record-actions{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;margin-top:12px}.payload-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:12px}.chart-grid{overflow-x:auto}.chart-column{min-width:55px}.audit-change{white-space:pre-wrap;overflow-wrap:anywhere}
.sidebar{overflow-y:auto}
@media(max-width:800px){input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{font-size:16px}}
