@font-face{font-family:Inter;src:url('/static/fonts/inter-latin.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;src:url('/static/fonts/inter-cyrillic.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
:root{color-scheme:light;--bg:#f4f6f2;--surface:#fff;--surface-2:#f7f9f5;--ink:#1b3027;--muted:#5d6e63;--line:#dfe5dd;--green:#176c51;--green-hover:#11543e;--mint:#e7f1e9;--red:#a64e36;--red-soft:#faeee9;--amber:#8b641e;--amber-soft:#fbf3df;--sidebar:#153d30;--sidebar-ink:#f0f6ef;--shadow:0 18px 60px #142b2426;--radius:14px;font-family:Inter,sans-serif;font-size:14px;line-height:1.5}
:root[data-theme=dark]{color-scheme:dark;--bg:#101b16;--surface:#16261e;--surface-2:#1c2c24;--ink:#e7eee5;--muted:#adbdaf;--line:#304337;--green:#81d6b3;--green-hover:#a2e2c8;--mint:#203f31;--red:#f0a88e;--red-soft:#3f2b23;--amber:#e4c385;--amber-soft:#3c3424;--sidebar:#0e1d16;--sidebar-ink:#e9f3e9;--shadow:0 18px 60px #0006}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:var(--green);text-underline-offset:3px}button,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--green)}::selection{background:#b9dfcc;color:#153d30}input,textarea{caret-color:var(--green)}*{scrollbar-width:thin;scrollbar-color:#9aafa2 transparent}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.03em;line-height:1.2;font-weight:650;text-wrap:balance}h2{font-size:17px;letter-spacing:-.015em;font-weight:650}h3{font-size:15px;font-weight:650}p{max-width:70ch}svg.icon{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button .icon{width:17px;height:17px}.muted,.help{color:var(--muted)}.help{font-size:12px;line-height:1.5}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.positive{color:var(--green)}.negative{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(--surface);z-index:100}.skip-link:focus{top:10px}.boot{height:100vh;display:flex;align-items:center;justify-content:center;gap:18px;color:var(--muted)}
.layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{min-width:0;position:sticky;top:0;height:100vh;background:var(--sidebar);color:var(--sidebar-ink);padding:30px 18px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;padding:0 10px 34px}.brand img{width:34px;height:42px}.brand strong{font-size:17px;font-weight:650;letter-spacing:-.02em}.brand small{display:block;color:#aec8b8;font-size:12px;margin-top:1px}.navigation{display:flex;flex-direction:column;gap:6px}.nav-button{display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#c4d8cb;padding:12px 14px;border-radius:8px;font-weight:500;text-align:left;transition:background .16s,color .16s}.nav-button:hover{background:#ffffff0d;color:white}.nav-button[aria-current=page]{background:#d2eddb;color:#173e2c}.navigation .separated{margin-top:24px}.sidebar-bottom{margin-top:auto;padding:24px 12px 0}.workspace{border-top:1px solid #c4d8cb30;padding-top:20px;display:flex;align-items:center;gap:10px}.workspace-avatar{width:32px;height:32px;display:grid;place-items:center;border:1px solid #82b89b;border-radius:50%;color:#d1ead8;font-size:12px;font-weight:600}.workspace strong{display:block;font-size:12px}.workspace small{font-size:11px;color:#b0c8b9}.logout{margin-left:auto;background:transparent;border:0;color:#bad2c2;padding:7px}.main-wrap{min-width:0}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--line);gap:16px}.topbar-title{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}.topbar-title strong{color:var(--ink);font-weight:500}.topbar-right{display:flex;align-items:center;gap:16px}.base-currency{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.currency-dot{width:7px;height:7px;background:var(--green);border-radius:50%}.icon-button{background:transparent;border:1px solid var(--line);color:var(--muted);height:34px;width:34px;display:grid;place-items:center;border-radius:7px}.icon-button:hover{background:var(--mint);color:var(--ink)}main{padding:34px 36px 44px;max-width:1560px;margin:auto}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:26px}.page-heading p{color:var(--muted);margin-top:9px;font-size:13px}.heading-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:9px 14px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;text-decoration:none;font-weight:550;font-size:13px;line-height:1.35;transition:background .15s,border-color .15s}.button:hover{background:var(--surface-2);border-color:var(--muted)}.button.primary{background:var(--green);color:var(--surface);border-color:transparent}.button.primary:hover{background:var(--green-hover)}.button.quiet{border-color:transparent;background:transparent;color:var(--green);padding-left:0;padding-right:0}.button.quiet:hover{text-decoration:underline;text-underline-offset:4px}.button.danger{color:var(--red);border-color:var(--red)}.button.small{min-height:32px;font-size:12px;padding:6px 10px}.month-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.month-picker{display:flex;align-items:center;gap:6px}.month-picker input{border:0;padding:7px 8px;width:177px;font-size:14px;font-weight:550;background:transparent;color:var(--ink)}.period-state{font-size:12px;display:flex;align-items:center;gap:7px;color:var(--muted)}.period-state.closed{color:var(--green)}.tag{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;background:var(--surface-2);font-size:11px;font-weight:550;white-space:nowrap}.tag.green{background:var(--mint);color:var(--green)}.tag.amber{background:var(--amber-soft);color:var(--amber)}.tag.red{background:var(--red-soft);color:var(--red)}
.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:22px;padding:25px 0}.summary-item{padding:0 26px;min-width:0}.summary-item+.summary-item{border-left:1px solid var(--line)}.summary-label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-bottom:9px}.summary-number{font-size:29px;font-weight:600;letter-spacing:-.03em;line-height:1.2;overflow-wrap:anywhere;white-space:normal}.summary-item .help{margin-top:8px;min-height:18px}.reminder{display:flex;align-items:center;gap:14px;padding:16px 18px;background:var(--mint);border-radius:10px;margin-bottom:24px}.reminder>.icon{color:var(--green)}.reminder-text{flex:1}.reminder strong{font-size:13px;font-weight:600}.reminder p{font-size:12px;color:var(--muted);margin-top:2px}.reminder .button{background:var(--surface);white-space:nowrap}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(265px,1fr);gap:22px;margin-bottom:22px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0;overflow:hidden}.panel-head{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head .help{margin-top:4px}.panel-body{padding:0 22px 22px}.legend{display:flex;gap:14px;font-size:11px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:5px}.legend i{height:7px;width:7px;border-radius:2px;background:var(--green)}.legend .cost{background:#b48c67}.chart{height:180px;display:flex;align-items:stretch;gap:18px;border-bottom:1px solid var(--line);padding:12px 8px 0}.chart-group{display:flex;flex-direction:column;flex:1;min-width:0;justify-content:flex-end;position:relative}.bars{height:140px;display:flex;align-items:flex-end;justify-content:center;gap:6px}.bar{background:var(--green);width:24px;max-width:42%;border-radius:4px 4px 0 0;min-height:1px}.bar.expense{background:#b48c67}.bar.negative-income{background:var(--red)}.chart-month{text-align:center;color:var(--muted);font-size:11px;line-height:28px;white-space:nowrap}.chart-group:last-child .chart-month{color:var(--ink);font-weight:650}.chart-note{font-size:11px;color:var(--muted);margin-top:14px}.category-row{padding:10px 0}.category-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:7px}.category-track{height:5px;background:var(--surface-2);border-radius:3px;overflow:hidden}.category-fill{height:100%;background:var(--green);border-radius:3px}.category-row:nth-child(2) .category-fill{background:#7c9761}.category-row:nth-child(3) .category-fill{background:#b48c67}.category-row:nth-child(4) .category-fill{background:#6c9293}.category-total{border-top:1px solid var(--line);margin-top:16px;padding-top:16px;display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.due-list{padding:0 22px 10px}.due-row{padding:13px 0;display:flex;align-items:center;gap:12px;border-top:1px solid var(--line)}.date-square{background:var(--surface-2);border-radius:8px;width:40px;height:43px;display:flex;align-items:center;justify-content:center;flex-direction:column;flex:none}.date-square b{font-size:16px;font-weight:600;line-height:1.2}.date-square small{font-size:9px;color:var(--muted)}.due-description{min-width:0;flex:1}.due-description strong{font-size:12px;font-weight:550;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.due-description small{display:block;font-size:11px;color:var(--muted)}.due-right{text-align:right}.due-right .money{font-size:12px;font-weight:600}.due-right small{display:block;color:var(--muted);font-size:10px}.due-footer{border-top:1px solid var(--line);padding:14px 22px;display:flex;justify-content:space-between;align-items:center;font-size:12px}.mini-icon{height:31px;width:31px;border-radius:7px;background:var(--surface-2);color:var(--muted);display:grid;place-items:center;flex:none}
.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{background:var(--surface-2);font-size:11px;font-weight:500;color:var(--muted);text-align:left;padding:11px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap}td{padding:15px 20px;border-bottom:1px solid var(--line);vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--surface-2)}td strong{font-size:12px;font-weight:550}td small{display:block;font-size:11px;color:var(--muted);margin-top:3px}td.numeric,th.numeric{text-align:right}td .money{font-weight:550}.table-title{display:flex;gap:11px;align-items:center;min-width:180px}.table-title>div{min-width:0;overflow-wrap:anywhere}.table-action{background:transparent;border:0;color:var(--muted);padding:5px;border-radius:4px}.table-action:hover{background:var(--mint);color:var(--green)}.row-actions{display:flex;gap:5px;justify-content:flex-end}.table-footer{padding:13px 20px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;display:flex;justify-content:space-between;gap:12px}.filters{display:flex;align-items:center;gap:12px;padding:16px 20px}.search{position:relative;flex:1;max-width:380px}.search .icon{position:absolute;top:10px;left:12px;color:var(--muted);width:16px;height:16px}.search input{width:100%;padding-left:36px}.filters select{max-width:230px}.empty{padding:38px 24px 42px;text-align:center;display:flex;flex-direction:column;align-items:center}.empty-graphic{width:50px;height:50px;display:grid;place-items:center;background:var(--mint);color:var(--green);border-radius:12px;margin-bottom:15px}.empty-graphic .icon{width:25px;height:25px}.empty h3{margin-bottom:7px}.empty p{font-size:12px;color:var(--muted);max-width:350px;line-height:1.7}.empty .button{margin-top:18px}.empty.compact{padding:30px 18px}.empty.compact .empty-graphic{height:38px;width:38px;margin-bottom:12px}.empty.compact .empty-graphic .icon{width:20px;height:20px}.empty.compact h3{font-size:13px}.month-note{display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 22px;margin-bottom:22px}.month-note p{color:var(--muted);font-size:12px;margin-top:4px}.month-note strong{font-size:13px}.month-note .actions{display:flex;gap:8px;flex-wrap:wrap}.recurring-list{display:flex;flex-direction:column;gap:16px}.recurring-item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.recurring-header{padding:20px 22px;display:flex;align-items:flex-start;gap:12px}.recurring-info{flex:1;min-width:0}.recurring-info h3{overflow-wrap:anywhere}.recurring-info p{font-size:12px;color:var(--muted);margin-top:3px}.recurring-prices{display:grid;grid-template-columns:1fr 1fr 1fr;border-top:1px solid var(--line);padding:18px 22px;background:var(--surface-2);gap:22px}.price-block span{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.price-block strong{font-size:17px;font-weight:600}.price-block .help{margin-top:6px}.recurring-footer{padding:15px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px}.recurring-footer .actions{display:flex;gap:9px;flex-wrap:wrap}.settings-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);gap:22px}.setting-row{padding:17px 22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:14px}.setting-row strong{font-size:12px}.setting-row p{font-size:12px;color:var(--muted);margin-top:4px}.setting-row .button{white-space:nowrap}.audit-description{max-width:440px;overflow-wrap:anywhere}.info-block{font-size:13px;line-height:1.8;color:var(--muted)}.info-block p+p{margin-top:13px}.loading{padding:45px;display:flex;flex-direction:column;gap:18px}.skeleton{height:18px;background:var(--line);border-radius:6px;width:65%}.skeleton:nth-child(2){width:92%;height:90px}.skeleton:nth-child(3){width:75%}.error-banner{padding:16px 20px;background:var(--red-soft);color:var(--red);border-radius:10px;margin-bottom:20px;font-size:13px;display:flex;align-items:center;gap:12px;justify-content:space-between}
input,select,textarea{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:9px 11px;min-height:38px;width:100%;transition:border-color .15s}input:hover,select:hover,textarea:hover{border-color:var(--muted)}textarea{resize:vertical;min-height:82px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label{font-size:12px;font-weight:550}.field.full{grid-column:1/-1}.field .help{font-size:11px}.form-section{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.form-section h3{font-size:13px;margin-bottom:5px}.form-section>p{font-size:12px;color:var(--muted);margin-bottom:16px}.form-error{color:var(--red);background:var(--red-soft);padding:12px 14px;border-radius:8px;font-size:12px;margin-bottom:16px}.form-error:empty{display:none}.conversion{background:var(--mint);color:var(--ink);border-radius:8px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin-top:18px}.conversion strong{font-size:17px}.conversion small{display:block;color:var(--muted);font-size:11px}.drawer{padding:0;margin:0 0 0 auto;inset:0;max-height:100dvh;height:100dvh;width:min(520px,100vw);max-width:100vw;border:0;background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}dialog::backdrop{background:#0a1e1775}.drawer[open]{display:flex;flex-direction:column;animation:drawer-in .2s ease-out}.drawer-header{display:flex;align-items:flex-start;justify-content:space-between;padding:26px 26px 22px;border-bottom:1px solid var(--line);gap:16px}.drawer-header h2{font-size:21px}.drawer-header p{font-size:12px;color:var(--muted);margin-top:6px}.drawer form{display:flex;flex-direction:column;flex:1;min-height:0}.drawer-content{padding:24px 26px;overflow-y:auto;flex:1}.drawer-footer{display:flex;align-items:center;justify-content:flex-end;padding:18px 26px;border-top:1px solid var(--line);gap:10px;background:var(--surface)}.drawer-footer .primary{min-width:150px}.confirmation{padding:28px;max-width:min(440px,calc(100vw - 32px));border:0;border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}.confirmation h2{font-size:20px;margin-bottom:12px}.confirmation p{font-size:13px;color:var(--muted);line-height:1.8}.confirmation .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:var(--ink);color:var(--surface);border-radius:9px;padding:13px 20px;font-size:13px;z-index:100;max-width:calc(100vw - 32px);transition:opacity .18s,transform .18s}.toast.show{opacity:1;transform:translate(-50%,0)}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:var(--sidebar);color:var(--sidebar-ink);display:flex;flex-direction:column;padding:48px 12%;justify-content:center;position:relative}.auth-story .brand{position:absolute;top:42px;left:12%;padding:0}.auth-story h1{font-size:38px;max-width:420px;line-height:1.2;letter-spacing:-.035em}.auth-story>p{color:#c0d6c5;font-size:14px;line-height:1.8;margin-top:23px;max-width:370px}.auth-points{margin-top:40px;display:flex;flex-direction:column;gap:18px}.auth-points div{display:flex;align-items:center;gap:12px;color:#d2e6d5;font-size:13px}.auth-points .icon{color:#9dd8b8}.auth-panel{display:flex;align-items:center;justify-content:center;padding:40px}.auth-form{width:100%;max-width:350px}.auth-form h2{font-size:25px;letter-spacing:-.025em;margin-bottom:10px}.auth-form>p{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:28px}.auth-form .field{margin-top:16px}.auth-form .button{width:100%;margin-top:24px;min-height:44px}.auth-form>.help{margin-top:20px;font-size:11px}.auth-badge{font-size:12px;color:var(--green);display:flex;gap:7px;align-items:center;margin-bottom:26px}.auth-badge .icon{width:16px;height:16px}@keyframes drawer-in{from{transform:translateX(30px);opacity:.7}to{transform:translateX(0);opacity:1}}
@media(min-width:1600px){main{padding-top:44px}.dashboard-grid{grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr)}}
@media(max-width:1150px){.layout{grid-template-columns:192px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.brand{padding-left:6px}.brand strong{font-size:15px}.nav-button{font-size:12px;padding:12px 10px;gap:10px}main{padding:26px 24px}.topbar{padding:0 24px}.page-heading{gap:16px}.summary-item{padding:0 20px}.summary-number{font-size:25px}.dashboard-grid{grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr);gap:16px}.chart{gap:10px}.legend{gap:8px}.settings-grid{grid-template-columns:1fr}.recurring-prices{gap:12px}.price-block strong{font-size:15px}th,td{padding-left:14px;padding-right:14px}.table-title{min-width:140px}}
@media(max-width:900px){.layout{grid-template-columns:minmax(0,1fr)}.sidebar{position:static;height:auto;padding:16px 20px 0}.brand{padding:0 0 16px}.brand img{width:28px;height:32px}.brand small{display:none}.sidebar-bottom{display:none}.navigation{flex-direction:row;overflow-x:auto;margin:0 -8px;gap:4px;padding-bottom:12px}.nav-button{white-space:nowrap;flex:none;padding:9px 11px;font-size:12px}.navigation .separated{margin:0}.topbar{height:54px}.topbar-title{font-size:11px}main{padding-top:24px}.page-heading h1{font-size:25px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr)}.auth-story{padding:36px 10%}.auth-story .brand{left:10%}.auth-story h1{font-size:32px}.auth-panel{padding:32px}}
@media(max-width:680px){.sidebar{padding:14px 16px 0}.topbar{padding:0 18px;height:48px}.topbar-title>span{display:none}.topbar-title .icon{display:none}.topbar-right{gap:10px}.base-currency{font-size:11px}main{padding:22px 16px 32px}.page-heading{flex-direction:column;gap:17px;margin-bottom:20px}.page-heading h1{font-size:24px}.page-heading p{font-size:12px}.heading-actions{width:100%}.heading-actions .primary{flex:1}.heading-actions .button{font-size:12px}.month-bar{gap:8px}.month-picker input{width:151px;font-size:13px;padding-left:3px;padding-right:3px}.month-picker .icon-button{width:28px;height:30px}.period-state{font-size:10px;gap:4px}.period-state .icon{width:13px;height:13px}.summary{padding:18px 0;margin-bottom:16px}.summary-item{padding:0 12px}.summary-label{font-size:10px;gap:4px;line-height:1.4;min-height:28px;margin-bottom:5px}.summary-label .icon{width:13px;height:13px}.summary-number{font-size:19px;letter-spacing:-.025em}.summary-item .help{font-size:9px;line-height:1.5;margin-top:6px}.reminder{padding:14px;gap:10px;flex-wrap:wrap;margin-bottom:18px}.reminder>.icon{width:16px;height:16px}.reminder-text{flex-basis:calc(100% - 40px)}.reminder .button{margin-left:26px;font-size:11px}.reminder strong{font-size:12px}.reminder p{font-size:11px}.dashboard-grid{grid-template-columns:1fr;gap:18px}.panel-head{padding:18px}.panel-body{padding:0 18px 18px}.panel-head h2{font-size:15px}.panel-head .button{font-size:11px}.legend{font-size:10px}.chart{gap:14px;height:158px;padding-top:0}.bars{height:126px}.due-list{padding-left:18px;padding-right:18px}.filters{padding:14px;gap:10px;flex-wrap:wrap}.search{max-width:none;flex-basis:100%}.filters select{width:100%;max-width:none}table.responsive thead{display:none}table.responsive,table.responsive tbody{display:block}table.responsive tr{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:15px 16px;border-top:1px solid var(--line);position:relative}table.responsive td{padding:0;border:0}table.responsive td:first-child{grid-column:1;grid-row:2;font-size:10px;color:var(--muted);padding-left:42px}table.responsive td:nth-child(2){grid-column:1;grid-row:1}table.responsive td:nth-child(3){display:none}table.responsive td:nth-child(4){grid-column:2;grid-row:1;align-self:center}table.responsive td:nth-child(5){grid-column:2;grid-row:2}table.responsive td small{font-size:10px}.table-title{min-width:0;gap:10px}.table-title strong{font-size:11px}.table-title .mini-icon{width:32px;height:32px}.table-action{padding:2px 4px}.table-action .icon{width:14px;height:14px}.table-footer{font-size:10px;padding:12px 16px}.month-note{padding:16px;align-items:flex-start;flex-direction:column;gap:13px}.month-note .actions{width:100%}.month-note .actions .button{flex:1}.recurring-header{padding:17px 16px;gap:10px}.recurring-info h3{font-size:13px}.recurring-info p{font-size:11px}.recurring-prices{padding:16px;grid-template-columns:1fr 1fr;gap:16px}.recurring-prices .price-block:last-child{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.price-block:last-child .help{flex-basis:100%;margin-top:2px}.price-block span{font-size:10px}.price-block strong{font-size:16px}.recurring-footer{flex-direction:column;align-items:flex-start;padding:15px 16px;gap:12px}.recurring-footer .actions{width:100%}.recurring-footer .button{flex:1;white-space:nowrap;font-size:11px}.setting-row{padding:16px;flex-wrap:wrap}.drawer-header{padding:22px 20px 18px}.drawer-content{padding:20px}.drawer-footer{padding:16px 20px}.drawer-header h2{font-size:20px}.form-grid{gap:14px}.auth-page{grid-template-columns:1fr}.auth-story{padding:26px 24px 30px}.auth-story .brand{position:static;margin-bottom:34px;padding:0}.auth-story .brand small{display:block}.auth-story h1{font-size:27px;max-width:340px}.auth-story>p{font-size:12px;margin-top:14px}.auth-points{display:none}.auth-panel{padding:32px 24px 42px;align-items:flex-start}.auth-form{max-width:400px}.auth-form h2{font-size:22px}.auth-badge{margin-bottom:18px}.toast{bottom:16px;text-align:center;font-size:12px}.audit-table td,.audit-table th{padding:12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}
.workbook{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;min-width:0}
.sheet-tabs{display:flex;gap:22px;padding:0 20px;border-bottom:1px solid var(--line);overflow-x:auto;background:var(--surface-2)}
.sheet-tabs>button{display:flex;align-items:center;gap:9px;flex:none;padding:17px 2px 14px;background:transparent;border:0;border-bottom:3px solid transparent;color:var(--muted);font-size:13px;font-weight:550}
.sheet-tabs>button[aria-pressed=true]{border-bottom-color:var(--green);color:var(--green)}
.sheet-tabs>button>span{font-size:11px;font-variant-numeric:tabular-nums;padding:1px 6px;border-radius:4px;background:var(--line);color:var(--ink)}
.sheet-tabs .icon{width:16px;height:16px}.sheet-toolbar{display:flex;align-items:center;gap:12px;padding:14px 18px}.sheet-toolbar select{width:190px;flex:none}.sheet-toolbar .search{max-width:340px}.sheet-hint{font-size:11px;color:var(--muted);margin-left:auto;max-width:190px}
.sheet-scroll{overflow:auto;max-height:calc(100dvh - 365px);min-height:245px;overscroll-behavior:contain;scrollbar-width:auto;scrollbar-color:var(--muted) var(--surface-2)}
.sheet-grid{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:12px;table-layout:fixed}
.sheet-grid th,.sheet-grid td{padding:11px 13px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:110px;max-width:270px;vertical-align:middle;background:var(--surface);overflow-wrap:anywhere}
.sheet-grid thead th{position:sticky;top:0;z-index:3;background:var(--surface-2);box-shadow:0 1px 0 var(--line);font-weight:550}
.sheet-grid thead button{border:0;padding:2px 0;background:none;color:var(--ink);font-size:11px;font-weight:600;display:inline-flex;gap:7px;align-items:center;white-space:nowrap;text-align:inherit}
.sheet-grid tbody tr:nth-child(even)>*{background:var(--surface-2)}.sheet-grid tbody tr:hover>*{background:var(--mint)}
.sheet-grid .sheet-index{position:sticky;left:0;min-width:40px;max-width:40px;width:40px;text-align:center;color:var(--muted);font-size:10px;font-weight:500;background:var(--surface-2);z-index:2}
.sheet-grid .sheet-frozen{position:sticky;left:40px;width:225px;min-width:225px;max-width:225px;z-index:2;box-shadow:2px 0 0 var(--line)}
.sheet-grid thead .sheet-index,.sheet-grid thead .sheet-frozen{z-index:4;background:var(--surface-2)}
.sheet-name{border:0;background:none;padding:2px 0;text-align:left;color:var(--ink);font-weight:550;line-height:1.6;font-size:12px;max-width:100%;overflow-wrap:anywhere}.sheet-name:hover{color:var(--green);text-decoration:underline;text-underline-offset:3px}.sheet-grid .sheet-notes{width:270px;min-width:200px;font-size:11px;line-height:1.6}.sheet-grid .numeric{white-space:nowrap;font-variant-numeric:tabular-nums}
.sheet-sort-mark{display:flex;transform:rotate(90deg);color:var(--green)}.sheet-sort-mark.up{transform:rotate(-90deg)}.sheet-sort-mark .icon{width:12px;height:12px}.sheet-status{font-size:11px;white-space:nowrap}
.sheet-grid .sheet-empty{height:210px;text-align:left;vertical-align:top;padding:36px 28px;background:var(--surface)}.sheet-empty strong{display:block;font-size:14px}.sheet-empty span{display:block;font-size:12px;color:var(--muted);margin-top:8px;max-width:280px;white-space:normal}
.sheet-totals{display:flex;justify-content:flex-end;align-items:center;gap:24px;flex-wrap:wrap;padding:15px 20px;background:var(--mint);border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.sheet-totals>span:first-child{margin-right:auto}.sheet-totals strong{display:block;color:var(--ink);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;margin-top:3px}.sheet-totals strong.positive{color:var(--green)}
.sheet-note{padding:13px 20px;color:var(--muted);font-size:11px;line-height:1.65}.sheet-note>span{display:block;margin-top:3px}
@media(max-width:1150px){.sheet-hint{display:none}.sheet-toolbar .search{max-width:none}.sheet-grid .sheet-frozen{width:190px;min-width:190px;max-width:190px}}
@media(max-width:680px){.sheet-tabs{gap:18px;padding:0 14px}.sheet-tabs>button{font-size:12px;padding:14px 0 11px}.sheet-tabs .icon{display:none}.sheet-toolbar{flex-wrap:wrap;padding:12px;gap:8px}.sheet-toolbar .search{flex-basis:100%}.sheet-toolbar select{width:100%}.sheet-scroll{max-height:55dvh;min-height:230px}.sheet-grid .sheet-frozen{width:150px;min-width:150px;max-width:150px}.sheet-grid th,.sheet-grid td{padding:10px;font-size:11px}.sheet-name{font-size:11px}.sheet-totals{padding:13px;gap:14px 20px;justify-content:flex-start}.sheet-totals>span:first-child{flex-basis:100%}.sheet-totals strong{font-size:13px}.sheet-note{padding:12px 14px;font-size:10px}.sheet-grid .sheet-empty{padding:26px 16px}}

.sheet-scroll-hint{padding:0 18px 10px;color:var(--muted);font-size:11px;max-width:none}

.salary-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:-8px 0 24px;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.salary-summary>div{margin-right:auto}.salary-summary>div>strong{display:block;font-weight:550}.salary-summary>div>span{display:block;font-size:11px;color:var(--muted);margin-top:3px}.salary-summary>.money{font-size:17px;font-weight:600}@media(max-width:680px){.salary-summary{gap:12px}.salary-summary>.button{flex-basis:100%}.salary-summary>.money{font-size:16px}}

#payment-notices{padding:0 36px}#payment-notices:empty{display:none}.payment-notices{max-width:1400px;margin:20px auto 0;border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:8px;background:var(--surface)}.payment-notices>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:14px 18px;font-size:13px}.payment-notices>summary::-webkit-details-marker{display:none}.payment-notices>summary>span:first-of-type{flex:1}.payment-notices small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.payment-notices[open]>summary>.icon:last-child{transform:rotate(90deg)}.notice-count{background:var(--amber-soft);padding:2px 8px;border-radius:5px;font-size:12px}.notice-list{padding:0 18px 14px;max-height:360px;overflow:auto}.notice-row{display:flex;align-items:center;gap:18px;padding:14px 0;border-top:1px solid var(--line);font-size:12px}.notice-row>div:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.notice-row .negative{color:var(--red)}.notice-row>.button{flex:none}.notice-list>.help{margin-top:10px}.payroll-table td{vertical-align:middle}.payroll-table td:first-child{min-width:150px;max-width:280px;overflow-wrap:anywhere}.payroll-table .row-actions{flex-wrap:wrap}.payroll-table .button{white-space:nowrap}
@media(max-width:1150px){#payment-notices{padding:0 24px}}
@media(max-width:680px){#payment-notices{padding:0 16px}.payment-notices>summary{padding:12px;gap:8px}.payment-notices>summary strong{font-size:12px}.payment-notices small{font-size:10px}.notice-list{padding:0 12px 12px}.notice-row{flex-wrap:wrap;gap:10px}.notice-row>.button{width:100%}.payroll-table thead{display:none}.payroll-table,.payroll-table tbody{display:block}.payroll-table tr{display:grid;grid-template-columns:1fr auto;gap:12px;padding:18px;border-top:1px solid var(--line)}.payroll-table td{padding:0;border:0;min-width:0!important}.payroll-table td:nth-child(2){text-align:right}.payroll-table td:nth-child(4){text-align:right}.payroll-table td:last-child{grid-column:1/-1}.payroll-table .row-actions{justify-content:flex-end}.payroll-table .row-actions>.button{margin-right:auto}}
