:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#08090b;--bg-raised:#0d0f12;--surface:#121418;--surface-strong:#171a1f;--surface-hover:#1c2026;--text:#f7f7f8;--text-soft:#c8cbd0;--muted:#858a93;--line:#262a31;--line-strong:#353a43;--accent:#ef3340;--accent-hover:#ff4652;--accent-soft:#ef334024;--danger:#ff5964;--warning:#f2ad4f;--success:#44cc8b;--focus:#ff727b;--shadow:0 20px 60px #00000052;background:var(--bg);color:var(--text);font-synthesis:none;text-rendering:optimizelegibility;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:var(--bg);min-width:320px;min-height:100%}body{background:radial-gradient(circle at 50% -20%, #251014 0, var(--bg) 34rem);min-width:320px;min-height:100vh;margin:0;overflow-x:hidden}body:before{z-index:-1;content:"";pointer-events:none;background-image:linear-gradient(#ffffff05 1px,#0000 1px),linear-gradient(90deg,#ffffff05 1px,#0000 1px);background-size:40px 40px;position:fixed;inset:0;-webkit-mask-image:linear-gradient(#000,#0000 55%);mask-image:linear-gradient(#000,#0000 55%)}button,input,select,textarea{font:inherit}button{color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--focus);outline-offset:3px}button:disabled{cursor:wait;opacity:.58}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.055em;margin-bottom:0;font-size:clamp(30px,7vw,44px);line-height:1.02}h2{letter-spacing:-.03em;margin-bottom:14px;font-size:20px}h3{letter-spacing:-.02em}small,.muted{color:var(--muted)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.icon{flex:none;width:21px;height:21px}.app-shell{width:min(100%,1120px);min-height:100vh;padding:calc(22px + env(safe-area-inset-top)) 16px calc(112px + env(safe-area-inset-bottom));margin:0 auto}.app-shell.focused{max-width:920px;padding-bottom:calc(30px + env(safe-area-inset-bottom))}.app-shell>main{max-width:100%}.eyebrow{color:var(--muted);letter-spacing:.13em;text-transform:uppercase;margin-bottom:7px;font-size:11px;font-weight:800;display:block}.brand-line{color:var(--text-soft);letter-spacing:.16em;text-transform:uppercase;align-items:center;gap:8px;margin-bottom:9px;font-size:11px;font-weight:850;display:inline-flex}.brand-line i{background:var(--accent);border-radius:2px;width:8px;height:8px;transform:rotate(45deg);box-shadow:0 0 18px #ef334099}.page-intro{max-width:420px;color:var(--muted);margin:10px 0 0;font-size:14px;line-height:1.5}.topline,.page-title,.section-heading,.priority-row,.metric-row,.history-row,.switch-row{justify-content:space-between;align-items:center;gap:14px;display:flex}.topline,.page-title{margin-bottom:26px}.topline{align-items:flex-start}.live-pill{border:1px solid var(--line);color:var(--muted);text-transform:uppercase;background:#ffffff05;border-radius:999px;flex:none;align-items:center;gap:7px;padding:8px 11px;font-size:11px;font-weight:750;display:inline-flex}.live-pill i{background:var(--success);border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 4px #44cc8b1f}.button,.secondary-button,.danger-button{cursor:pointer;border:0;border-radius:14px;justify-content:center;align-items:center;gap:9px;min-height:50px;padding:0 19px;font-weight:820;transition:background .16s,border-color .16s,transform .16s;display:inline-flex}.button{background:var(--accent);color:#fff;box-shadow:0 10px 28px #ef334033}.button:hover{background:var(--accent-hover)}.button.secondary,.secondary-button{border:1px solid var(--line);background:var(--surface);box-shadow:none;color:var(--text)}.secondary-button:hover{border-color:var(--line-strong);background:var(--surface-hover)}.danger-button{color:var(--danger);background:#ff59641a;border:1px solid #ff596440}.full-width{width:100%}.button:active,.secondary-button:active,.danger-button:active,.add-button:active{transform:scale(.98)}.priority-card{box-shadow:var(--shadow);background:linear-gradient(145deg,#211114,#121418 60%);border:1px solid #3a2428;border-radius:24px;padding:20px;position:relative;overflow:hidden}.priority-card:after{content:"";pointer-events:none;background:radial-gradient(circle,#ef334033,#0000 68%);border-radius:50%;width:180px;height:180px;position:absolute;top:-65px;right:-45px}.priority-card.tone-overdue{background:linear-gradient(145deg,#2a1014,#121418 66%);border-color:#ff59646b}.priority-heading{z-index:1;justify-content:space-between;align-items:flex-start;gap:12px;display:flex;position:relative}.priority-open{z-index:1;text-align:left;cursor:pointer;background:0 0;border:0;width:100%;padding:8px 0 0;display:block;position:relative}.priority-row{align-items:flex-end}.priority-row h2{margin:0 0 5px;font-size:clamp(27px,8vw,38px)}.priority-row p{color:var(--muted);margin:0;font-size:13px}.priority-row>strong{letter-spacing:-.045em;font-size:clamp(20px,5vw,27px)}.priority-date{color:var(--text-soft);border-top:1px solid #ffffff14;justify-content:space-between;align-items:center;margin-top:22px;padding-top:16px;font-size:14px;display:flex}.priority-date .icon{color:var(--accent)}.priority-action{z-index:1;width:100%;margin-top:16px;position:relative}.status-badge{border:1px solid var(--line);min-height:28px;color:var(--text-soft);letter-spacing:.02em;white-space:nowrap;background:#ffffff08;border-radius:999px;align-items:center;gap:7px;padding:5px 9px;font-size:10px;font-weight:850;display:inline-flex}.status-badge i{background:var(--success);border-radius:50%;width:7px;height:7px}.status-badge.tone-overdue{color:#ff9097;background:#ff596417;border-color:#ff59643d}.status-badge.tone-overdue i{background:var(--danger)}.status-badge.tone-soon,.status-badge.tone-today{color:#f5c477;background:#f2ad4f17;border-color:#f2ad4f3d}.status-badge.tone-soon i,.status-badge.tone-today i{background:var(--warning)}.status-badge.tone-paused{color:var(--muted)}.status-badge.tone-paused i{background:var(--muted)}.dashboard-grid{gap:12px;margin:14px 0;display:grid}.panel,.empty-card{border:1px solid var(--line);background:linear-gradient(145deg, #ffffff05, transparent), var(--surface);border-radius:20px;padding:19px}.panel h2{margin-bottom:16px}.count-badge{background:var(--accent-soft);color:#ff7c85;border:1px solid #ef33402e;border-radius:12px;place-items:center;min-width:38px;height:38px;font-weight:850;display:grid}.totals>div{border-bottom:1px solid var(--line);justify-content:space-between;align-items:baseline;padding:11px 0;display:flex}.totals>div:last-child{border:0}.totals span{color:var(--muted);font-size:12px;font-weight:800}.totals strong{font-size:16px}.metric-row>div{flex-direction:column;flex:1;gap:4px;display:flex}.metric-row strong{letter-spacing:-.04em;font-size:27px}.metric-row span{color:var(--muted);font-size:11px}.danger-text,.danger-text strong{color:var(--danger)}.list-section{margin-top:30px}.list-section>.section-heading{margin-bottom:13px}.list-section .section-heading h2{margin-bottom:0}.card-list,.history-list{gap:10px;display:grid}.resource-card{border:1px solid var(--line);background:var(--surface);border-radius:18px;transition:border-color .16s,transform .16s;position:relative;overflow:hidden}.resource-card:hover{border-color:var(--line-strong)}.resource-card:before{background:var(--success);content:"";width:3px;position:absolute;top:0;bottom:0;left:0}.resource-card.tone-overdue:before{background:var(--danger)}.resource-card.tone-soon:before,.resource-card.tone-today:before{background:var(--warning)}.resource-card.tone-paused:before{background:var(--muted)}.card-open{text-align:left;cursor:pointer;background:0 0;border:0;width:100%;padding:16px 16px 14px 18px;display:block}.resource-card-top,.resource-card-bottom,.resource-identity{justify-content:space-between;align-items:center;gap:12px;display:flex}.resource-card-top>.icon{color:var(--muted)}.resource-identity{justify-content:flex-start;min-width:0}.resource-identity>div{flex-direction:column;gap:4px;min-width:0;display:flex}.resource-identity strong{text-overflow:ellipsis;white-space:nowrap;font-size:17px;overflow:hidden}.resource-identity small{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.resource-mark{border:1px solid var(--line);background:var(--bg-raised);width:42px;height:42px;color:var(--text-soft);letter-spacing:.06em;border-radius:13px;flex:none;place-items:center;font-size:11px;font-weight:900;display:grid}.resource-card-bottom{align-items:flex-end;margin-top:17px}.resource-money{flex-direction:column;align-items:flex-end;gap:3px;display:flex}.resource-money strong{font-size:16px}.resource-money small{font-size:11px}.provider{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin:11px 0 0 54px;font-size:12px;overflow:hidden}.compact-button{background:var(--accent-soft);color:#ff7c85;cursor:pointer;border:1px solid #ef334033;border-radius:12px;justify-content:center;align-items:center;gap:8px;width:calc(100% - 34px);min-height:44px;margin:0 16px 14px 18px;font-size:12px;font-weight:850;display:flex}.compact-button .icon{width:17px;height:17px}.segmented{border:1px solid var(--line);background:var(--surface);border-radius:15px;grid-template-columns:repeat(3,1fr);margin-bottom:14px;padding:4px;display:grid}.segmented button,.chips button{min-height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;font-weight:750}.segmented button{border-radius:11px;padding:9px 5px;font-size:12px}.segmented button.active{background:var(--surface-hover);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}.chips{scrollbar-width:none;gap:8px;padding:2px 1px 17px;display:flex;overflow-x:auto}.chips::-webkit-scrollbar{display:none}.chips button{border:1px solid var(--line);border-radius:999px;min-width:max-content;padding:9px 14px;font-size:12px}.chips button.active{background:var(--accent-soft);color:#ff8991;border-color:#ef334052}.history-row{border-bottom:1px solid var(--line);padding:15px 2px}.history-row>div{flex-direction:column;flex:1;gap:4px;display:flex}.history-row span{color:var(--muted);font-size:12px}.history-check{background:#44cc8b1a;border-radius:50%;flex:none;place-items:center;width:36px;height:36px;display:grid;color:var(--success)!important}.history-check .icon{width:18px}.payment-history{justify-content:flex-start}.search{border:1px solid var(--line);background:var(--surface);border-radius:15px;align-items:center;gap:10px;min-height:52px;margin-bottom:13px;padding:0 13px;transition:border-color .16s;display:flex}.search:focus-within{border-color:var(--line-strong)}.search>.icon{color:var(--muted)}.search input{width:100%;color:var(--text);background:0 0;border:0;outline:0;padding:14px 0}.search input::placeholder{color:#686d76}.search button{width:36px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;flex:none;place-items:center;display:grid}.search button .icon{width:18px}.add-button{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:15px;flex:none;place-items:center;width:50px;height:50px;display:grid;box-shadow:0 10px 28px #ef334038}.settings-form,.resource-form{gap:14px;display:grid}.settings-form label,.resource-form label{color:var(--text-soft);flex-direction:column;gap:8px;font-size:12px;font-weight:750;display:flex}.settings-form label>small,.resource-form label>small{font-weight:450}.settings-form input,.resource-form input,.resource-form select,.resource-form textarea{border:1px solid var(--line);background:var(--bg-raised);width:100%;min-height:50px;color:var(--text);border-radius:12px;outline:0;padding:13px 14px;transition:border-color .16s,background .16s}.settings-form input:focus,.resource-form input:focus,.resource-form select:focus,.resource-form textarea:focus{border-color:var(--focus);background:#111318}.resource-form textarea{resize:vertical;min-height:112px}.settings-form .switch-row,.resource-form .switch-row{flex-direction:row;align-items:center;padding:8px 0}.switch-row>span{flex-direction:column;gap:4px;display:flex}.switch-row small{font-weight:400}.switch-row input[type=checkbox]{width:48px;min-height:28px;accent-color:var(--accent)}.form-section-title{padding-bottom:2px}.form-section-title span{color:var(--text);font-size:17px;font-weight:850}.form-section-title p{color:var(--muted);margin:4px 0 0;font-size:12px;font-weight:450}.about{margin-top:14px}.about h3{margin:18px 0 5px}.about p{color:var(--muted);margin:0;line-height:1.55}.form-grid{gap:15px;display:grid}.form-grid .wide{grid-column:1/-1}.advanced-toggle{text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;width:100%;min-height:62px;padding:10px 2px;display:flex}.advanced-toggle>span{flex-direction:column;gap:4px;display:flex}.advanced-toggle small{font-size:11px;font-weight:450}.advanced-toggle b{border:1px solid var(--line);border-radius:10px;place-items:center;width:34px;height:34px;font-size:20px;display:grid}.form-error{color:#ff858d;background:#ff596417;border:1px solid #ff59643d;border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.45}.sticky-submit{z-index:4;bottom:calc(10px + env(safe-area-inset-bottom));width:100%;position:sticky;box-shadow:0 14px 35px #00000073,0 10px 28px #ef33402e}.detail .back-link,.form-page .back-link{margin-bottom:20px}.back-link,.sheet-cancel{min-height:44px;color:var(--text-soft);cursor:pointer;background:0 0;border:0;padding:8px 0;font-weight:750}.detail-hero{border:1px solid var(--line);background:linear-gradient(145deg, #1d1113, var(--surface) 58%);border-radius:24px;flex-direction:column;gap:8px;margin-bottom:14px;padding:23px;display:flex}.detail-hero.tone-overdue{border-color:#ff596459}.detail-status{justify-content:space-between;align-items:center;margin-bottom:9px;display:flex}.detail-status>span:last-child{color:var(--muted);text-transform:uppercase;font-size:11px;font-weight:800}.detail-hero h1{margin:0}.detail-hero>p{color:var(--muted);margin:0}.detail-payment{border-top:1px solid var(--line);justify-content:space-between;align-items:flex-end;gap:12px;margin-top:20px;padding-top:18px;display:flex}.detail-payment>div,.detail-payment>span{flex-direction:column;gap:5px;display:flex}.detail-payment>div strong{letter-spacing:-.04em;font-size:27px}.detail-payment>span{color:var(--text-soft);align-items:flex-end;font-weight:750}.detail-grid{gap:14px;margin-bottom:14px;display:grid}.info-row{border-bottom:1px solid var(--line);padding:12px 0}.info-row:last-child{border:0}.info-row span{color:var(--muted);font-size:11px}.info-row p{white-space:pre-wrap;margin:5px 0 0;line-height:1.5}.external-link{border-bottom:1px solid var(--line);color:#ff7c85;justify-content:space-between;align-items:center;min-height:48px;text-decoration:none;display:flex}.detail-actions{z-index:5;bottom:calc(8px + env(safe-area-inset-bottom));border:1px solid var(--line);background:#0d0f12f0;border-radius:18px;grid-template-columns:1fr 1fr;gap:9px;margin:14px -4px 0;padding:10px;display:grid;position:sticky;box-shadow:0 16px 40px #0000007a}.detail-actions .button{grid-column:1/-1}.detail-actions .danger-button{grid-column:1/-1;min-height:44px}.sheet-backdrop{z-index:40;background:#000000b8;justify-content:center;align-items:flex-end;padding:12px;display:flex;position:fixed;inset:0}.sheet{width:min(100%,520px);padding:10px 20px calc(14px + env(safe-area-inset-bottom));border:1px solid var(--line-strong);background:#14171b;border-radius:25px;animation:.2s ease-out slide-up;box-shadow:0 -20px 70px #00000080}.sheet-handle{background:var(--line-strong);border-radius:9px;width:40px;height:4px;margin:0 auto 22px}.sheet h2{margin-bottom:20px;font-size:28px}.sheet-copy{color:var(--muted);margin-bottom:22px;line-height:1.55}.payment-summary{grid-template-columns:1fr 1fr;gap:9px;margin-bottom:20px;display:grid}.payment-summary>div{border:1px solid var(--line);background:var(--bg-raised);border-radius:14px;flex-direction:column;gap:6px;padding:14px;display:flex}.payment-summary small,.field-caption{color:var(--muted);font-size:11px}.field-caption{text-transform:uppercase;margin-bottom:9px;font-weight:750}.cycle-picker{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px;display:grid}.cycle-picker button{border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:13px;min-height:48px;padding:12px}.cycle-picker button.active{background:var(--accent-soft);color:#ff858d;border-color:#ef334061}.sheet .button{width:100%}.sheet-cancel{width:100%;color:var(--muted);margin-top:5px}.bottom-nav{z-index:20;width:min(100% - 20px,560px);padding:7px 8px calc(7px + env(safe-area-inset-bottom));border:1px solid var(--line);background:#0d0f12f7;border-bottom:0;border-radius:20px 20px 0 0;grid-template-columns:repeat(4,1fr);margin:0 auto;display:grid;position:fixed;bottom:0;left:10px;right:10px;box-shadow:0 -14px 35px #0000004d}.bottom-nav button{min-height:54px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:5px 2px;font-size:10px;font-weight:750;display:flex;position:relative}.bottom-nav button span{place-items:center;display:grid}.bottom-nav .icon{width:20px;height:20px}.bottom-nav button.active{background:var(--accent-soft);color:#ff7f88}.bottom-nav button.active:after{background:var(--accent);content:"";border-radius:2px;width:14px;height:2px;position:absolute;top:4px}.skeletons{gap:12px;display:grid}.skeleton{background:linear-gradient(90deg, var(--surface), var(--surface-hover), var(--surface));background-size:220% 100%;border-radius:20px;height:116px;animation:1.35s infinite shimmer}.skeleton.hero{height:210px}.skeletons.compact .hero{height:120px}.center-state,.empty-card{text-align:center}.center-state{align-content:center;place-items:center;max-width:420px;min-height:54vh;margin:0 auto;display:grid}.center-state.compact{min-height:320px}.center-state h2,.empty-card h3{margin-bottom:7px}.center-state p,.empty-card p{max-width:330px;color:var(--muted);margin-bottom:18px;margin-left:auto;margin-right:auto;line-height:1.5}.state-icon{border:1px solid var(--line);background:var(--bg-raised);width:54px;height:54px;color:var(--muted);border-radius:17px;place-items:center;margin:0 auto 16px;font-size:22px;display:grid}.state-icon.danger{color:var(--danger);background:#ff596417;border-color:#ff596440}.empty-card .button{margin-top:2px}.toast{z-index:60;top:calc(12px + env(safe-area-inset-top));min-height:48px;box-shadow:var(--shadow);color:#dff8eb;opacity:0;pointer-events:none;background:#15201b;border:1px solid #44cc8b40;border-radius:14px;align-items:center;gap:10px;padding:9px 14px 9px 9px;font-size:13px;font-weight:750;transition:opacity .18s,transform .18s;display:flex;position:fixed;left:50%;transform:translate(-50%,-18px)}.toast.visible{opacity:1;transform:translate(-50%)}.toast>span{width:30px;height:30px;color:var(--success);background:#44cc8b24;border-radius:9px;place-items:center;display:grid}.toast .icon{width:17px}.dev-badge{z-index:70;background:var(--warning);color:#1c1605;letter-spacing:.08em;border-radius:7px;padding:4px 7px;font-size:9px;font-weight:900;position:fixed;top:8px;right:8px}@keyframes shimmer{to{background-position:-220% 0}}@keyframes slide-up{0%{opacity:0;transform:translateY(24px)}}@media (max-width:420px){.app-shell{padding-left:13px;padding-right:13px}.topline .live-pill{padding:7px 9px;font-size:9px}.topline h1{max-width:270px}.priority-card{padding:18px}.priority-heading{align-items:flex-start}.priority-row{flex-direction:column;align-items:flex-start;gap:14px}.detail-payment>div strong{font-size:23px}.status-badge{font-size:9px}}@media (min-width:720px){.app-shell{padding:34px 28px 126px}.dashboard-grid,.detail-grid,.form-grid{grid-template-columns:1fr 1fr}.priority-card{padding:28px}.priority-action{width:auto;min-width:220px}.card-list{grid-template-columns:repeat(2,minmax(0,1fr))}.list-section .card-list{grid-template-columns:1fr}.compact-button{width:auto;min-width:140px;margin-left:auto}.bottom-nav{border-bottom:1px solid var(--line);border-radius:20px;bottom:16px}.sticky-submit{justify-self:end;width:auto;min-width:240px;position:static}.detail-actions{box-shadow:none;background:0 0;border:0;grid-template-columns:1.4fr 1fr 1fr auto;padding:0;position:static}.detail-actions .button,.detail-actions .danger-button{grid-column:auto}}@media (min-width:980px){.dashboard-grid{grid-template-columns:1.35fr 1fr}.list-section .card-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
