:root{--home-blue:#207aff;--home-violet:#b56bff;--home-hot:#ff922a;--home-green:#08d77f;--home-yellow:#f7d82f;--home-orange:#ff8f25;--home-red:#ff3659}
:root[data-theme="dark"]{--home-blue:#4cbcff;--home-violet:#d18bff;--home-hot:#ffb33d;--home-green:#43ffaf;--home-yellow:#ffef60;--home-orange:#ffaf40;--home-red:#ff5c7c}
body{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.home-overview{display:grid;grid-template-columns:minmax(0,1fr);gap:17px;max-width:540px;margin:0 auto}.home-overview *{box-sizing:border-box}.home-overview button{touch-action:manipulation}.home-budget-tile{padding:12px 21px 17px;background:var(--panel);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);min-width:0}.home-data{border:0;background:transparent;color:var(--ink);padding:0;min-height:44px;text-align:left}.home-budget-title{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;font-size:16px;font-weight:550}.home-budget-title>span:last-child{color:var(--muted);font-size:22px}.home-budget-body{display:flex;justify-content:space-between;align-items:center;gap:16px}.home-budget-copy{min-width:0}.home-budget-number{display:block;font-size:clamp(24px,7.5vw,34px);line-height:1.25;letter-spacing:-.8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.home-budget-number strong{font-weight:550}.home-unit{font-size:12px;letter-spacing:0;font-weight:400}.home-budget-caption{display:block;font-size:12px;color:var(--muted);margin-top:3px;line-height:1.5}.home-over .home-budget-number{color:var(--red)}.home-budget-breakdown{display:flex;align-items:center;flex-wrap:wrap;gap:5px;color:var(--muted)}.home-budget-breakdown .home-data{font-size:12px;color:var(--muted);padding:0 2px}.home-ring-button{display:block;border:0;background:transparent;padding:0;width:72px;height:72px;flex:0 0 72px;border-radius:50%}.home-ring{--home-used:0%;width:72px;height:72px;border-radius:50%;position:relative;isolation:isolate;background:transparent;display:grid;place-items:center}.home-ring-drawing{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.home-ring-track,.home-ring-progress{fill:none;stroke-width:3.2}.home-ring-track{stroke:var(--line)}.home-ring-progress{stroke:var(--home-ring-color,var(--home-green));stroke-linecap:butt;filter:drop-shadow(0 0 .6px var(--home-ring-color,var(--home-green)))}.home-ring-hole{position:relative;z-index:1;display:grid;place-items:center;width:57px;height:57px;border-radius:50%;background:var(--panel);font-size:12px;font-weight:550;color:var(--ink);font-variant-numeric:tabular-nums}.home-ring-unknown::before{display:none}.home-history-nav{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:0;color:var(--muted)}.home-history-nav>div{text-align:center;font-size:12px}.home-history-nav small{display:block;font-size:10px;margin-top:2px}.home-history-nav small[hidden]{display:none}.home-history-nav button{width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--ink);font-size:24px}.home-history-nav button:disabled{opacity:.25}.home-rhythm-wrap{position:relative;margin:6px -6px 0}.home-rhythm-scroll{overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:thin;scrollbar-color:var(--line) transparent;touch-action:pan-x pan-y}.home-rhythm-scroll:focus-visible{outline:2px solid var(--home-blue);outline-offset:2px}.home-rhythm{position:relative;height:144px;min-width:100%;isolation:isolate}.home-curve{position:absolute;inset:0 0 24px;width:100%;height:120px;overflow:visible;pointer-events:none}.home-curve-line,.home-curve-glow{fill:none;stroke:url(#homeCurveColor);stroke-linecap:round;stroke-linejoin:round}.home-curve-line{stroke-width:3.5}.home-curve-glow{stroke-width:5;opacity:.22;filter:url(#homeBloom)}.home-curve-point{fill:var(--muted)}.home-tone-under{fill:url(#homeCurveColor)}.home-tone-over{fill:url(#homeCurveColor)}.home-tone-limit{fill:url(#homeCurveColor)}.home-curve-limit{stroke:var(--muted);stroke-opacity:.4;stroke-width:1;stroke-dasharray:3 5}.home-no-budget .home-curve-point{fill:var(--muted)}.home-no-budget .home-curve-line,.home-no-budget .home-curve-glow{stroke:var(--muted)}.home-rhythm-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:100%;position:relative;z-index:1}.home-rhythm-days button{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;border:0;border-radius:12px;background:transparent;padding:0;min-width:0;color:var(--muted)}.home-rhythm-days button:focus-visible{outline:2px solid var(--home-blue);outline-offset:-2px}.home-day-label{display:block;font-size:11px;font-weight:500;line-height:24px;font-variant-numeric:tabular-nums}.home-day-missing{font-size:8px;line-height:20px;white-space:nowrap}.home-day-unknown .home-day-label{font-weight:400}.home-rhythm-empty{position:absolute;inset:20px 10px 28px;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);font-size:12px;pointer-events:none}.home-rhythm-empty[hidden]{display:none}.home-money-tile{width:100%;padding:19px 22px 20px;border:0;border-radius:24px;background:linear-gradient(120deg,#146dff,#4932d3);color:#fff;text-align:left;display:grid;gap:6px;box-shadow:0 6px 24px #448bff25;min-width:0}.home-money-title{display:flex;justify-content:space-between;align-items:center;font-size:14px}.home-money-title>span{font-size:22px}.home-money-value{font-size:clamp(30px,10vw,49px);line-height:1.15;letter-spacing:-1.7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.home-money-value strong{font-weight:500}.home-money-unit{font-size:15px;font-weight:400;letter-spacing:0;white-space:nowrap}.home-money-caption{font-size:12px;line-height:1.5;color:#e5edff}.home-date{font-size:12px;color:var(--muted);margin:3px 0 0}.home-menu{margin-left:auto;flex-shrink:0}.app-identity{min-width:0}#welcome{font-size:17px;letter-spacing:2px}.home-monthly-report{margin:20px 0;border:1px solid var(--line);border-radius:20px;background:var(--panel);padding:0 18px}.home-monthly-report>summary{padding:18px 0;cursor:pointer;color:var(--muted);min-height:44px}.home-detail-list{margin:20px 0}.home-detail-list>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.home-detail-list dt{color:var(--muted);font-size:14px}.home-detail-list dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}.home-detail-number{font-size:30px;letter-spacing:-.7px}.home-detail .muted{line-height:1.7}.home-detail .btn{margin-top:12px}.home-warning{color:var(--amber)}#budgets>.daily-tracker{margin:20px 0}#budgets>.settings-section{margin-bottom:20px}#budgets>.tracking-tabs{margin-top:20px}#homeDetailContent{min-width:0}#homeDetailContent .movement-row{width:100%}
@media(min-width:1001px){.shell[data-view="dashboard"] .app-header{max-width:540px;margin-inline:auto}.shell[data-view="dashboard"] .main{padding-top:40px}.home-budget-tile{padding:16px 26px 22px}.home-money-tile{padding:22px 26px 24px}.home-budget-number{font-size:38px}}
@media(max-width:360px){.home-budget-tile{padding-inline:16px}.home-budget-body{gap:10px}.home-money-tile{padding-inline:18px}.home-budget-breakdown{gap:3px}.home-budget-breakdown .home-data{font-size:11px}.home-ring-button,.home-ring{width:66px;height:66px}.home-ring-button{flex-basis:66px}.home-ring-hole{width:51px;height:51px}.app-header{gap:10px}}
@media(prefers-reduced-motion:reduce){.home-overview *{transition:none!important;animation:none!important}}

.home-detail .dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.home-detail .dialog-head h2{margin:0}.home-detail .dialog-head .icon-button{flex-shrink:0}

.home-rhythm-limit{position:absolute;left:3px;z-index:2;padding:0 4px;background:var(--panel);color:var(--muted);font-size:10px;line-height:14px;pointer-events:none}.home-rhythm-limit[hidden]{display:none}.home-day-today .home-day-label{color:var(--ink);font-weight:700}.home-curve-today{stroke:var(--panel);stroke-width:1.5}.home-history-incomplete{display:block;width:100%;min-height:32px;padding:5px 0;border:0;background:transparent;color:var(--muted);font:inherit;font-size:10px;text-align:center}.home-history-incomplete[hidden]{display:none}.home-incomplete-day{display:grid;gap:6px;width:100%;text-align:left;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink)}.home-incomplete-day small{color:var(--muted)}

.home-ring-progress{transition:stroke .35s ease,stroke-dasharray .35s ease}@media(prefers-reduced-motion:reduce){.home-ring-progress{transition:none}}

/* Sweep through budget colors along the consumed arc; the remaining arc stays neutral. */
.home-ring-drawing{visibility:hidden}
.home-ring::after{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;background:conic-gradient(transparent 0 var(--home-used),var(--line) var(--home-used) 100%),conic-gradient(var(--home-green) 0%,var(--home-yellow) 50%,var(--home-orange) 75%,var(--home-red) 100%);-webkit-mask:radial-gradient(circle closest-side,transparent 92.8%,#000 92.8% 99.2%,transparent 99.2%);mask:radial-gradient(circle closest-side,transparent 92.8%,#000 92.8% 99.2%,transparent 99.2%)}
.home-ring.home-ring-unknown::after{background:var(--line)}
