:root{--bg:#f5f5f7;--surface:#fff;--surface-2:#fbfbfd;--line:#11111114;--line-strong:#1111111f;--text:#111;--text-2:#5f6368;--text-3:#8f949b;--blue:#0071e3;--action-blue:#539bf5;--green:#21834a;--orange:#c46b14;--red:#c63c3c;--overlay:#0f0f124d;--seg-bg:#0000000d;--card-shadow:0 12px 30px #0f172a0d}[data-theme=dark]{--bg:#22272e;--surface:#2d333b;--surface-2:#373e47;--line:#adbac71f;--line-strong:#adbac72e;--text:#adbac7;--text-2:#909dab;--text-3:#768390;--blue:#539bf5;--action-blue:#539bf5;--green:#57ab5a;--orange:#c69026;--red:#e5534b;--overlay:#010409ad;--seg-bg:#373e47;--card-shadow:none}
*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){html{--lightningcss-light: ;--lightningcss-dark:initial}}body{background:radial-gradient(circle at top, #ffffffe0, transparent 28rem), var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;min-height:100vh;padding:48px 24px 72px;font-family:DM Sans,system-ui,sans-serif;transition:background .2s,color .2s}[data-theme=dark] body{background:var(--bg)}button,input,select{font:inherit}
.app{max-width:1180px;margin:0 auto}.content-grid{grid-template-columns:320px minmax(0,1fr);align-items:start;gap:24px;display:grid}.content-sidebar,.content-main{min-width:0}.sidebar-panel{padding-top:44px}
.header{flex-direction:column;gap:18px;margin-bottom:34px;display:flex}.header-main{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:20px;display:grid}.header-copy{min-width:0}.header-kicker{letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);margin-bottom:10px;font-size:12px;font-weight:600}.header h1{letter-spacing:-.06em;color:var(--text);font-size:clamp(2rem,5vw,2.7rem);font-weight:700;line-height:1.02}.header-subtitle{max-width:520px;color:var(--text-2);margin-top:10px;font-size:15px;line-height:1.6}.header-meta{background:var(--surface-2);color:var(--text-2);border-radius:8px;align-items:center;gap:10px;padding:10px 14px;font-size:13px;display:inline-flex}.header-bar{background:var(--surface);box-shadow:var(--card-shadow);border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.header-actions{flex-wrap:wrap;align-items:center;gap:10px;margin-left:auto;display:flex}.header-actions .segment-control{background:var(--seg-bg);min-height:34px}.header-actions .segment-control:before{box-shadow:0 1px 2px #0f172a14}.header-actions .toggle-btn{min-height:28px}.header-meta-divider{background:var(--text-3);border-radius:999px;width:4px;height:4px}.header-meta-active{color:var(--action-blue)}.header-toolbar{justify-self:end}.theme-btn{min-width:36px;min-height:36px;color:var(--text-2);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;padding:0;transition:background .15s,color .15s;display:inline-flex}.theme-btn:hover{color:var(--text);background:#f1f3f6}[data-theme=dark] .theme-btn:hover{background:var(--surface-2)}[data-theme=dark] .header-bar,[data-theme=dark] .header-actions .segment-control:before{box-shadow:none}.theme-icon{width:16px;height:16px;display:inline-flex}.theme-icon svg{width:100%;height:100%}.theme-icon-sun{display:none}[data-theme=dark] .theme-icon-sun{display:inline-flex}[data-theme=dark] .theme-icon-moon{display:none}.add-btn{background:var(--surface);width:100%;min-height:48px;color:var(--blue);cursor:pointer;box-shadow:var(--card-shadow);border:none;border-radius:8px;margin-top:12px;font-weight:500;transition:background .15s}.add-btn:hover{background:#f1f3f6}.add-btn-header{background:var(--action-blue);color:#fff;width:auto;min-height:34px;margin-top:0;padding:0 14px;font-size:12px}.add-btn-header:hover{background:var(--action-blue);color:#fff;opacity:.92}[data-theme=dark] .add-btn{box-shadow:none}
.segment-control{background:0 0;border-radius:8px;gap:0;padding:3px;display:flex;position:relative}.segment-control:before{content:"";width:calc((100% - 6px) / var(--segment-count));background:var(--surface);transform:translateX(calc(var(--segment-active,0) * 100%));border-radius:6px;transition:transform .22s;position:absolute;top:3px;bottom:3px;left:3px}.segment-btn{z-index:1;min-width:96px;min-height:34px;color:var(--text-2);cursor:pointer;background:0 0;border:none;border-radius:6px;flex:1 1 0;justify-content:center;align-items:center;padding:0 16px;transition:color .18s;display:inline-flex;position:relative}.segment-btn:hover,.segment-btn.active,.filter-tab.active{color:var(--text)}.toggle-group{min-width:192px}.toggle-btn{font-size:12px}.filter-tabs{min-width:284px}.filter-tab{min-width:0;min-height:28px;padding:0 10px;font-size:11px}
.summary-grid{background:var(--surface);box-shadow:var(--card-shadow);border-radius:10px;grid-template-columns:repeat(4,1fr);gap:0;margin-bottom:18px;display:grid;overflow:hidden}.stat{min-height:128px;padding:24px 22px;position:relative}.stat+.stat:before{content:"";background:var(--line);width:1px;position:absolute;top:22px;bottom:22px;left:0}.stat .label,.section-label{letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);font-size:11px;font-weight:600}.stat .label{margin-bottom:14px}.stat .value,.cat-amount,.sub-amount{font-variant-numeric:tabular-nums;font-family:DM Mono,monospace}.stat .value{letter-spacing:-.04em;color:var(--text);font-size:30px;font-weight:500;line-height:1.05}.stat .sub{color:var(--text-2);margin-top:8px;font-size:12px;line-height:1.45}.section-label{margin-bottom:8px;padding-left:2px}.categories,.subs-list{background:var(--surface);box-shadow:var(--card-shadow);border-radius:10px;overflow:hidden}.categories{margin-bottom:0}.categories-sidebar{box-shadow:none;background:0 0;border-radius:0;flex-direction:column;gap:10px;display:flex;overflow:visible}.cat-row{text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:16px;width:100%;padding:16px 20px;transition:background .15s,transform .15s;display:flex}.cat-row+.cat-row{border-top:1px solid var(--line)}.cat-row:hover,.cat-row.active{background:var(--surface-2)}.categories-sidebar .cat-row{color:var(--text);background:#fff;border-radius:8px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px 12px;padding:14px 16px;transition:background .15s,color .15s,transform .15s,box-shadow .15s;display:grid;box-shadow:0 10px 24px #0f172a0a}[data-theme=dark] .categories-sidebar .cat-row{background:var(--surface);box-shadow:none}.categories-sidebar .cat-row+.cat-row{border-top:none}.categories-sidebar .cat-row:hover{background:#eef2f8;transform:translateY(-1px)}.categories-sidebar .cat-row.active{box-shadow:none;background:#e3ebf8}.categories-sidebar .cat-row.active:hover{background:#dbe5f5}[data-theme=dark] .categories-sidebar .cat-row:hover{background:var(--surface-2);box-shadow:none}[data-theme=dark] .categories-sidebar .cat-row.active{box-shadow:none;background:#20242b}[data-theme=dark] .categories-sidebar .cat-row.active:hover{background:#232830}.categories-sidebar .cat-row.active .cat-name,.categories-sidebar .cat-row.active .cat-count,.categories-sidebar .cat-row.active .cat-amount{color:var(--text)}.categories-sidebar .cat-name{flex:none;width:auto;min-width:0}.categories-sidebar .cat-count{text-align:right;white-space:nowrap;width:auto;min-width:56px}.categories-sidebar .progress-bar{grid-column:1/-1;margin-top:2px}.categories-sidebar .cat-row:hover .progress-bar,.categories-sidebar .cat-row.active .progress-bar{background:var(--seg-bg)}.categories-sidebar .cat-row.active .progress-fill,.categories-sidebar .progress-fill{background:var(--cat-color,#666)}.categories-sidebar .cat-row.active .progress-fill{opacity:.92}.categories-sidebar .cat-amount{width:auto;min-width:64px}.cat-name{width:120px;color:var(--text);flex-shrink:0;font-size:14px;font-weight:500}.cat-count{width:48px;color:var(--text-3);flex-shrink:0;font-size:12px}.progress-bar{background:var(--seg-bg);border-radius:6px;flex:1;height:4px;overflow:hidden}.progress-fill{border-radius:inherit;opacity:.76;height:100%;transition:width .35s}.cat-amount{text-align:right;width:72px;color:var(--text-2);flex-shrink:0;font-size:13px;font-weight:500}.table-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;display:flex}.table-header-copy{align-items:center;gap:8px;margin-left:-344px;display:flex}.table-count{color:var(--text-3);font-size:12px}.sub-item{overflow:hidden}.sub-row{text-align:left;background:0 0;grid-template-columns:minmax(0,1fr) 110px 78px 68px 56px;align-items:center;gap:18px;width:100%;padding:16px 20px;transition:background .12s;display:grid}.sub-row:hover{background:#f3f5f7}[data-theme=dark] .sub-row:hover{background:var(--surface-2)}.sub-info{min-width:0}.sub-name{color:var(--text);font-size:15px;font-weight:600}.sub-notes{color:var(--text-3);margin-top:3px;font-size:12px}.sub-actions{opacity:0;justify-content:flex-end;align-items:center;gap:2px;transition:opacity .15s;display:flex}.sub-item:hover .sub-actions{opacity:1}.sub-action-btn{width:26px;height:26px;color:var(--text-3);cursor:pointer;background:0 0;border:none;border-radius:5px;justify-content:center;align-items:center;padding:0;transition:background .12s,color .12s;display:inline-flex}.sub-action-btn:hover{background:var(--surface-2);color:var(--text)}.sub-action-btn.btn-delete-sub:hover{background:color-mix(in srgb, var(--red) 10%, transparent);color:var(--red)}.sub-action-btn svg{pointer-events:none;width:13px;height:13px}.sub-status{white-space:nowrap;text-align:center;background:0 0;border-radius:6px;justify-content:center;justify-self:stretch;align-items:center;gap:8px;padding:6px 10px;font-size:12px;font-weight:500;display:inline-flex;position:relative}.sub-status:before{content:"";transform-origin:50%;background:currentColor;border-radius:999px;width:8px;height:8px;box-shadow:0 0 #0000}.sub-status.active{color:var(--green);background:color-mix(in srgb, var(--green) 10%, transparent)}.sub-status.active:before{animation:1.4s ease-in-out infinite status-pulse}.sub-status.paused{color:var(--orange);background:color-mix(in srgb, var(--orange) 10%, transparent)}.sub-status.cancelled{color:var(--text-3);background:color-mix(in srgb, var(--text-3) 10%, transparent)}@keyframes status-pulse{0%{transform:scale(.95);box-shadow:0 0 #21834a66}60%{transform:scale(1.18);box-shadow:0 0 0 6px #21834a00}to{transform:scale(.95);box-shadow:0 0 #21834a00}}.sub-renewal{text-align:right;white-space:nowrap}.sub-renewal-date{color:var(--text-2);font-size:12px;font-weight:500;display:block}.sub-renewal-meta{color:var(--text-3);margin-top:5px;font-size:11px;display:block}.renewal-soon{color:var(--orange)}.sub-amount{text-align:right;min-width:68px;color:var(--text);font-size:14px;font-weight:500}.sub-empty{text-align:center;padding:40px 20px}.sub-empty-title{color:var(--text);font-size:15px;font-weight:600}.sub-empty-copy{color:var(--text-2);margin-top:6px;font-size:13px}[data-theme=dark] .summary-grid,[data-theme=dark] .categories,[data-theme=dark] .subs-list{box-shadow:none}
.site-footer{border-top:1px solid var(--line);color:var(--text-2);grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin-top:28px;padding:18px 4px 4px;display:grid}.site-footer-copy{letter-spacing:.01em;justify-self:center;align-items:center;gap:10px;margin:0;font-size:13px;display:inline-flex}.site-footer-dot{color:var(--text-3)}.site-footer-credit{align-items:center;gap:4px;display:inline-flex}.site-footer-brand{width:auto;height:13px;display:block}[data-theme=dark] .site-footer-brand{filter:brightness(0)invert()}.site-footer-socials{justify-self:end;align-items:center;gap:8px;display:inline-flex}.site-footer-social{width:36px;height:36px;color:var(--text-2);background:0 0;border-radius:8px;justify-content:center;align-items:center;transition:background .15s,color .15s;display:inline-flex}.site-footer-social:hover{color:var(--text);background:#f1f3f6}[data-theme=dark] .site-footer-social:hover{background:var(--surface-2)}.site-footer-social svg{width:16px;height:16px}
.modal-overlay{z-index:100;background:var(--overlay);-webkit-backdrop-filter:blur(12px);justify-content:center;align-items:center;padding:16px;display:none;position:fixed;inset:0;overflow-y:auto}.modal-overlay.open{display:flex}.modal{background:var(--surface);border-radius:10px;width:min(420px,94vw);max-height:calc(100vh - 32px);padding:28px;overflow-y:auto;box-shadow:0 28px 60px #00000029}[data-theme=dark] .modal{box-shadow:none}.modal h2{letter-spacing:-.03em;color:var(--text);margin-bottom:20px;font-size:18px;font-weight:600}.modal-copy{color:var(--text-2);margin-top:-6px;font-size:14px;line-height:1.6}.form-group{margin-bottom:14px}.form-group label{letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);margin-bottom:6px;font-size:11px;font-weight:600;display:block}.field-shell{background:var(--surface-2);border-radius:6px;align-items:center;min-height:44px;transition:box-shadow .15s,background .15s;display:flex;position:relative}.field-shell input,.field-shell select{width:100%;min-height:44px;color:var(--text);appearance:none;background:0 0;border:none;border-radius:6px;outline:none;padding:0 12px;transition:color .15s}.field-shell input[type=number]{appearance:textfield}.field-shell input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.field-shell input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.field-shell input::placeholder{color:var(--text-3)}.field-shell:focus-within{background:var(--surface);box-shadow:0 0 0 3px #0071e324}.field-icon{width:16px;height:16px;color:var(--text-3);pointer-events:none;justify-content:center;align-items:center;display:inline-flex;position:absolute;right:12px}.field-icon svg{width:100%;height:100%}.field-shell-stepper{gap:2px;padding:2px}.field-shell-stepper input{text-align:center;padding:0 8px}.stepper-btn{min-height:40px;color:var(--text-2);cursor:pointer;background:0 0;border:none;border-radius:4px;flex:0 0 38px;font-size:18px;line-height:1;transition:background .15s,color .15s}.stepper-btn:hover{color:var(--text);background:#f1f3f6}[data-theme=dark] .stepper-btn:hover{background:var(--surface-2)}.custom-select,.custom-datepicker{position:relative}.custom-select-trigger,.custom-datepicker-trigger{background:var(--surface-2);width:100%;min-height:44px;color:var(--text);text-align:left;cursor:pointer;border:none;border-radius:6px;align-items:center;padding:0 12px;transition:box-shadow .15s,background .15s;display:flex;position:relative}.custom-select.open .custom-select-trigger,.custom-datepicker.open .custom-datepicker-trigger{background:var(--surface);box-shadow:0 0 0 3px #0071e324}.custom-select-value,.custom-datepicker-value{min-width:0;padding-right:26px}.custom-datepicker-value{white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:14px;overflow:hidden}.custom-datepicker-value.placeholder{color:var(--text-3)}.custom-select-menu,.custom-datepicker-menu{z-index:20;background:var(--surface);border-radius:8px;display:none;position:absolute;top:calc(100% + 6px)}.custom-select-menu{box-shadow:0 12px 32px #0f172a1f, inset 0 0 0 1px var(--line);padding:6px;left:0;right:0}.custom-datepicker-menu{z-index:30;min-width:256px;box-shadow:0 12px 32px #0f172a1f, inset 0 0 0 1px var(--line);padding:12px;left:auto;right:0}.custom-select.open .custom-select-menu,.custom-datepicker.open .custom-datepicker-menu{display:block}[data-theme=dark] .custom-select-menu,[data-theme=dark] .custom-datepicker-menu{box-shadow:inset 0 0 0 1px var(--line)}.custom-select-option{width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:6px;padding:9px 10px;transition:background .15s,color .15s;display:block}.custom-select-option:hover,.custom-select-option.selected{background:#f1f3f6}[data-theme=dark] .custom-select-option:hover,[data-theme=dark] .custom-select-option.selected{background:var(--surface-2)}.datepicker-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.datepicker-heading{align-items:center;gap:8px;min-width:0;display:flex}.datepicker-month-label{color:var(--text);letter-spacing:-.01em;font-size:13px;font-weight:600}.datepicker-year-label{min-width:40px;color:var(--text);text-align:right;font-size:12px;font-weight:600}.datepicker-nav{width:26px;height:26px;color:var(--text-2);cursor:pointer;background:0 0;border:none;border-radius:5px;justify-content:center;align-items:center;padding:0;transition:background .12s,color .12s;display:inline-flex}.datepicker-nav:hover{background:var(--surface-2);color:var(--text)}.datepicker-nav svg{pointer-events:none;width:14px;height:14px}.datepicker-weekdays{grid-template-columns:repeat(7,1fr);margin-bottom:4px;display:grid}.datepicker-weekdays span{text-align:center;letter-spacing:.04em;text-transform:uppercase;color:var(--text-3);padding:4px 0;font-size:10px;font-weight:600}.datepicker-grid{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.datepicker-day{aspect-ratio:1;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:5px;justify-content:center;align-items:center;font-size:12px;transition:background .12s,color .12s;display:flex}.datepicker-day:hover:not(:disabled){background:var(--surface-2)}.datepicker-day.today{color:var(--action-blue);font-weight:600}.datepicker-day.selected,.datepicker-day.today.selected{background:var(--action-blue);color:#fff;font-weight:600}.datepicker-day.other-month{color:var(--text-3);opacity:.4;cursor:default}.form-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.modal-error{background:color-mix(in srgb, var(--red) 14%, transparent);color:var(--red);border-radius:6px;margin-top:12px;padding:10px 12px;font-size:13px;line-height:1.4}.modal-actions{gap:8px;margin-top:20px;display:flex}.btn-cancel,.btn-add{cursor:pointer;border:none;border-radius:6px;flex:1;min-height:44px}.btn-cancel{background:var(--surface-2);color:var(--text-2)}.btn-cancel:hover{color:var(--text);background:#f1f3f6}.btn-add{background:var(--action-blue);color:#fff;font-weight:600}.btn-add:hover{opacity:.84}.btn-danger{background:var(--red)}.btn-danger:hover{opacity:.9}[data-theme=dark] .btn-cancel:hover{background:var(--surface)}
@media (max-width:900px){.content-grid{grid-template-columns:1fr;gap:20px}.sidebar-panel{padding-top:0}.table-header-copy{margin-left:0}}@media (max-width:700px){body{padding:32px 16px 56px}.header{margin-bottom:28px}.header-main{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}.header-toolbar{width:auto}.header-bar{padding:12px}.header-actions{gap:8px;width:100%;margin-left:0}.header-meta{justify-content:center;width:100%}.summary-grid{grid-template-columns:repeat(2,1fr)}.toggle-group,.filter-tabs{width:100%;min-width:0}.toggle-btn,.filter-tab{min-width:0}.header-actions .toggle-group{flex:1 1 0}.add-btn-header{flex:none;min-width:88px}.table-header-copy{justify-content:space-between;width:100%}.stat:nth-child(3):before{display:none}.stat:nth-child(-n+2):after{content:"";background:var(--line);height:1px;position:absolute;bottom:0;left:20px;right:20px}}@media (max-width:600px){.site-footer{grid-template-columns:1fr;justify-items:center}.site-footer-spacer{display:none}.site-footer-copy,.site-footer-socials{justify-self:center}.header-actions{flex-direction:column}.header-actions .toggle-group,.header-actions .add-btn-header,.filter-tabs{width:100%}.header-bar{gap:10px}.add-btn-header{min-height:40px}.categories-sidebar .cat-row{grid-template-columns:minmax(0,1fr) auto;row-gap:6px}.cat-name{width:auto}.categories-sidebar .cat-count{text-align:left;grid-column:1/2;min-width:0}.categories-sidebar .cat-amount{grid-column:2/3}.progress-bar{flex-basis:100%;order:4;width:100%}.sub-row{grid-template-columns:minmax(0,1fr) auto auto;gap:12px;padding:14px 16px}.sub-info{grid-area:1/1/2/2;min-width:0}.sub-status{grid-area:2/1/3/2;justify-self:start}.sub-renewal{text-align:right;grid-area:1/2/2/3;align-items:baseline;gap:6px;display:inline-flex}.sub-amount{text-align:right;grid-area:1/3/2/4;min-width:0;font-size:13px;font-weight:600}.sub-actions{opacity:1;grid-area:2/2/3/4;place-self:center end;display:flex}.sub-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sub-notes{display:none}.sub-renewal-date,.sub-renewal-meta{margin-top:0;font-size:11px;display:inline}.sub-renewal-date{font-weight:600}.sub-action-btn{width:30px;height:30px}.modal-overlay{align-items:center;padding:12px}.modal{width:min(100%,420px);max-height:calc(100dvh - 24px);padding:18px 16px}.modal h2{margin-bottom:14px;font-size:17px}.form-group{margin-bottom:10px}.field-shell,.field-shell input,.field-shell select,.custom-select-trigger,.custom-datepicker-trigger{min-height:40px}.stepper-btn{min-height:36px}.modal-actions{margin-top:14px}.btn-cancel,.btn-add{min-height:40px}.custom-datepicker-menu{min-width:0;left:0;right:0}}@media (max-width:420px){.form-row{grid-template-columns:1fr;gap:8px}.site-footer-copy{text-align:center;flex-wrap:wrap;justify-content:center;gap:6px}body{padding-inline:12px}.header h1{font-size:1.9rem}.header-subtitle{font-size:14px}.stat{min-height:116px;padding:20px 18px}.stat .value{font-size:26px}.table-header-copy{flex-direction:column;align-items:flex-start;gap:6px}.sub-row{grid-template-columns:minmax(0,1fr) auto auto;gap:10px}.sub-name{font-size:14px}.sub-renewal{gap:4px}.sub-renewal-date,.sub-renewal-meta{font-size:10px}.sub-amount{font-size:12px}.sub-actions{justify-self:end}}@media (hover:none){.sub-actions{opacity:1}}

