/* Afterglow: continuous cash canvas and one shared recording dock. */
body.ui6-theme main{margin-left:224px;padding:34px clamp(24px,4vw,64px) 120px;max-width:1600px}
body.ui6-theme .sidebar{width:224px;padding:32px 20px 24px;background:transparent;border-right:1px solid var(--line);backdrop-filter:none;-webkit-backdrop-filter:none}
body.ui6-theme .brand{gap:12px;font-size:25px;letter-spacing:-.025em}
body.ui6-theme .brand small{font-size:12px;color:var(--secondary);margin-top:6px}
body.ui6-theme .brand-mark{width:42px;height:42px;border:0;background:#a6e7da12;border-radius:12px}
body.ui6-theme .sidebar nav{margin-top:44px;display:grid;gap:8px}
body.ui6-theme .sidebar .nav{border:0;border-radius:12px;padding:14px;min-height:52px;color:var(--secondary)}
body.ui6-theme .sidebar .nav.active{color:var(--ink);background:#a6e7da13;border:0}
body.ui6-theme .sidebar .nav-dot{display:none}
body.ui6-theme .side-foot{font-size:12px;line-height:1.8;color:var(--secondary)}
body.ui6-theme .page-header{margin:0 0 30px;padding:0;border:0;min-height:48px}
body.ui6-theme .page-header h1{font-size:24px;font-weight:500;letter-spacing:-.025em}
body.ui6-theme .page-header p{font-size:13px;color:var(--secondary);margin-top:4px}
body.ui6-theme .page-header .afterglow-brand{display:none}
body.ui6-theme #home{grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);grid-template-areas:"overview capture" "recent capture" "spending spending" "help help" "storage storage";gap:32px 44px}
body.ui6-theme #moneyOverview{padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;backdrop-filter:none;-webkit-backdrop-filter:none}
body.ui6-theme #moneyOverviewTitle{font-size:15px;font-weight:400;color:var(--secondary);line-height:1.6}
body.ui6-theme #moneyCurrent{--money-size:54px;font-size:var(--money-fit,var(--money-size));font-weight:500;letter-spacing:-.035em;line-height:1.25;margin:6px 0 8px;white-space:nowrap}
body.ui6-theme #moneyOverview .money-overview-bottom{margin:0 0 20px;min-height:0}
body.ui6-theme #moneyOverview #moneyChange{display:block;font-size:13px;line-height:1.7;margin:0 0 4px;color:var(--income)}
body.ui6-theme #moneyOverview #moneyChange.negative{color:var(--expense)}
body.ui6-theme #moneyScope{font-size:12px;color:var(--secondary);line-height:1.7}
body.ui6-theme #moneyOverview .balance-trend{padding:0;margin:0;display:block;min-width:0;background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
body.ui6-theme #moneyOverview .trend-change{display:none}
body.ui6-theme:not([data-trend-range=week]) #moneyOverview .trend-change{display:block;color:var(--secondary);font-size:13px;margin:0 0 12px}
body.ui6-theme #moneyOverview .trend-ranges{display:flex;width:max-content;max-width:100%;margin:0 0 8px;padding:0;border:0;border-radius:0;background:none;gap:16px}
body.ui6-theme #moneyOverview .trend-ranges button{min-width:56px;min-height:44px;padding:6px 0;font-size:14px;color:var(--secondary);border-radius:0;background:none;border:0;border-bottom:2px solid transparent}
body.ui6-theme #moneyOverview .trend-ranges button.selected{background:none;color:var(--ink);border-bottom-color:var(--accent)}
body.ui6-theme #moneyOverview .trend-period{float:none;display:flex;width:100%;min-height:44px;justify-content:space-between;margin:0 0 6px;gap:6px}
body.ui6-theme #moneyOverview .trend-period b{font-size:13px;font-weight:400;color:var(--secondary)}
body.ui6-theme #moneyOverview .trend-period .icon-button{height:44px;min-width:44px;flex-basis:44px;background:transparent;border:0;color:var(--secondary)}
body.ui6-theme #trendPlot{margin:0;clear:both;position:relative;min-height:0}
body.ui6-theme #trendPlot svg{display:block;width:100%;height:auto;max-height:280px;overflow:visible}
body.ui6-theme #trendPlot text{fill:var(--secondary);font-size:12px}
body.ui6-theme .trend-grid{stroke:#c2d6ee;stroke-opacity:.08}
body.ui6-theme .trend-line{stroke:var(--accent);stroke-width:2.2;stroke-linejoin:round}
body.ui6-theme .trend-tooltip{background:#1c2b40ed;color:var(--ink);border-radius:12px;padding:9px 12px;box-shadow:0 10px 26px #0004;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body.ui6-theme .trend-tooltip strong{font-size:17px;font-weight:500}
body.ui6-theme .trend-tooltip span{font-size:12px;color:var(--secondary)}
body.ui6-theme #moneyOverview .trend-selection{padding:0;gap:12px;border-color:var(--line)}
body.ui6-theme #moneyOverview #trendCursor{accent-color:var(--accent);min-height:44px;background:none}
body.ui6-theme #moneyOverview #trendOpenDay{font-size:12px;color:var(--accent);min-height:44px}
body.ui6-theme #moneyOverview .trend-help{font-size:12px;color:var(--secondary);margin:0}
body.ui6-theme #moneyOverview .trend-help summary{min-height:44px;line-height:1.7}
body.ui6-theme #moneyOverview .trend-help p{line-height:1.8}
body.ui6-theme #home .recent-card{padding:0;border:0;border-radius:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none}
body.ui6-theme #home .recent-card>.section-heading{padding:0;margin:0 0 4px;border:0}
body.ui6-theme #home .recent-card h2{font-size:20px;font-weight:500}
body.ui6-theme #home .entry{padding:16px 0;gap:12px}
body.ui6-theme #home .entry-icon{width:36px;height:36px;border-radius:12px;background:none}
body.ui6-theme #home .debt-line{padding:14px 0;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0}
body.ui6-theme #home .capture-column{border-left:1px solid var(--line);padding:0 0 0 28px}
body.ui6-theme #home .quick-templates{margin:0 0 32px;padding:0;border:0}
body.ui6-theme #home .quick-templates h3{font-size:20px;font-weight:500}
body.ui6-theme #home .quick-template{padding:14px 0;border-radius:0;background:none;border:0;border-bottom:1px solid var(--line)}
body.ui6-theme #home .quick-template:hover{background:#a6e7da08}
body.ui6-theme #home .spending-card{padding:24px 0;border:0;border-top:1px solid var(--line);background:none;border-radius:0;backdrop-filter:none;-webkit-backdrop-filter:none}
body.ui6-theme #home .sample-banner{padding:0;border:0;background:none;font-size:12px;color:var(--secondary)}
body.ui6-theme #home>.afterglow-help{grid-area:help;min-width:0;color:var(--secondary);font-size:13px;border-top:1px solid var(--line);padding-top:12px}
body.ui6-theme #home>.afterglow-help summary{min-height:44px;cursor:pointer}
body.ui6-theme #home>.afterglow-help p{max-width:72ch;line-height:1.85}
body.ui6-theme #floatingCapture,body.ui6-theme #floatingCapture.compact-calendar{min-height:52px;min-width:150px;right:32px;bottom:30px;border:0;border-radius:12px;background:var(--accent);color:#152e31;box-shadow:0 8px 28px #0004;font-size:16px;transform:none}
body.ui6-theme #floatingCapture:hover{background:#c3f4e9}
body.ui6-theme .ui6-dock{display:none}
@media(max-width:1100px) and (min-width:901px){body.ui6-theme main{margin-left:190px;padding-inline:28px}body.ui6-theme .sidebar{width:190px;padding-inline:14px}body.ui6-theme #home{grid-template-columns:minmax(0,1fr);grid-template-areas:"overview" "recent" "capture" "spending" "help" "storage"}body.ui6-theme #home .capture-column{border:0;padding:0}}
@media(max-width:900px){
 body.ui6-theme main{margin:0;padding:22px 22px calc(190px + env(safe-area-inset-bottom));max-width:720px;margin-inline:auto}
 body.ui6-theme .sidebar{display:none}
 body.ui6-theme .page-header{margin-bottom:16px;min-height:40px}
 body.ui6-theme .page-header h1{font-size:23px}
 body.ui6-theme[data-page=home] .page-header h1{font-size:23px}
 body.ui6-theme[data-page=home] .page-header .afterglow-brand{display:block;font-size:24px;font-weight:500;color:var(--ink)}
 body.ui6-theme[data-page=home] #pageTitle{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 body.ui6-theme[data-page=home] .page-header>div{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%}
 body.ui6-theme[data-page=home] .page-header p{font-size:12px;margin:0;max-width:170px;text-align:right}
 body.ui6-theme #home{grid-template-columns:minmax(0,1fr);grid-template-areas:"overview" "recent" "capture" "spending" "help" "storage";gap:18px}
 body.ui6-theme #moneyCurrent{--money-size:43px;margin:5px 0 8px}
 body.ui6-theme #moneyOverview .money-overview-bottom{margin-bottom:6px}
 body.ui6-theme #moneyOverview #moneyChange{font-size:12px}
 body.ui6-theme #moneyScope{font-size:12px}
 body.ui6-theme #moneyOverview .trend-ranges{margin:0}
 body.ui6-theme #moneyOverview .trend-period{margin-bottom:0}
 body.ui6-theme #trendPlot svg{max-height:none}
 body.ui6-theme #home .capture-column{border:0;padding:4px 0 0}
 body.ui6-theme .ui6-dock{display:flex;flex-direction:column;gap:8px;position:fixed;z-index:30;left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));max-width:500px;margin-inline:auto;padding:8px;background:#1b2b40;border:0;border-radius:16px;box-shadow:0 12px 36px #0006}
 body.ui6-theme .ui6-dock nav{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;padding:0;background:none;border:0;box-shadow:none}
 body.ui6-theme .ui6-dock nav::before{content:"";position:absolute;left:0;top:0;bottom:0;width:25%;border-radius:10px;background:#a6e7da14;transform:translateX(calc(var(--nav-index,0)*100%));transition:transform 340ms cubic-bezier(.16,1,.3,1);pointer-events:none}
 body.ui6-theme .ui6-dock .nav{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:50px;min-width:0;padding:5px 0;font-size:12px;color:var(--secondary);background:none;border:0;border-radius:10px}
 body.ui6-theme .ui6-dock .nav.active{color:var(--ink);background:none;border:0;box-shadow:none}
 body.ui6-theme .ui6-dock .nav .icon{width:20px;height:20px}
 body.ui6-theme .ui6-dock .nav-dot{display:none}
 body.ui6-theme #floatingCapture,body.ui6-theme #floatingCapture.compact-calendar{position:static;inset:auto;width:100%;min-width:0;min-height:46px;margin:0;padding:10px 14px;box-shadow:none;border-radius:10px;font-size:16px}
 body.ui6-theme #toast{bottom:calc(156px + env(safe-area-inset-bottom));max-width:calc(100% - 32px)}
 body.ui6-theme.app-keyboard .ui6-dock{visibility:hidden;pointer-events:none}
}
@media(max-width:360px){body.ui6-theme main{padding-inline:16px}body.ui6-theme #moneyCurrent{--money-size:38px}body.ui6-theme #moneyOverview .trend-period b{font-size:12px}body.ui6-theme #moneyOverview .trend-selection{gap:8px}body.ui6-theme #moneyOverview #trendOpenDay{font-size:12px}}
@supports(backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){body.ui6-theme .ui6-dock{background:#1b2b40bb;backdrop-filter:blur(24px) saturate(130%);-webkit-backdrop-filter:blur(24px) saturate(130%)}}
@media(prefers-reduced-transparency:reduce){body.ui6-theme .ui6-dock{background:#1b2b40;backdrop-filter:none;-webkit-backdrop-filter:none}body.ui6-theme .trend-tooltip{background:#1c2b40;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){body.ui6-theme .ui6-dock nav::before{transition:none}}
/* A single real date is a compact state, not a fabricated trend. */
body.ui6-theme #moneyOverview .trend-sparse-hint{margin:4px 0 0;color:var(--secondary);font-size:14px;line-height:1.8}
body.ui6-theme #moneyOverview .trend-sparse-hint.hidden{display:none}
body.ui6-theme #moneyOverview .balance-trend.is-sparse #trendPlot{max-width:520px}
body.ui6-theme #moneyOverview .balance-trend.is-sparse #trendPlot svg{max-height:160px}
body.ui6-theme #moneyOverview .balance-trend.is-sparse #trendCursor{display:none}
/* Keep the actual selected date/amount readable when its redundant slider is hidden. */
body.ui6-theme #moneyOverview .trend-point-summary{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body.ui6-theme #moneyOverview .balance-trend.is-sparse .trend-selection{justify-content:space-between;flex-wrap:wrap;gap:8px}
body.ui6-theme #moneyOverview :is(#trendOpenDay,#trendSparseExplore){font-size:14px}
body.ui6-theme #moneyOverview #trendNotice{font-size:14px;color:var(--secondary);line-height:1.8}
