:root{--surface-shell:color-mix(in srgb, var(--foreground) 10%, var(--card));--control-surface:color-mix(in srgb, var(--foreground) 9%, var(--card));--control-hover:color-mix(in srgb, var(--foreground) 14%, var(--card));--button:linear-gradient(0deg, var(--primary), color-mix(in srgb, var(--primary) 86%, var(--primary-foreground)));--button-hover:linear-gradient(0deg, color-mix(in srgb, var(--primary) 92%, var(--primary-foreground)), color-mix(in srgb, var(--primary) 80%, var(--primary-foreground)));--button-foreground:var(--primary-foreground);--button-edge:color-mix(in srgb, var(--foreground) 16%, transparent);--button-shadow:0 1px 2px color-mix(in srgb, var(--foreground) 14%, transparent);--button-secondary:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 14%, var(--card)), var(--control-surface));--button-secondary-hover:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 18%, var(--card)), var(--control-hover));--control-edge:color-mix(in srgb, var(--foreground) 12%, transparent)}.dark{--surface-shell:color-mix(in srgb, var(--foreground) 7%, var(--card));--control-surface:color-mix(in srgb, var(--foreground) 5%, var(--card));--control-hover:color-mix(in srgb, var(--foreground) 9%, var(--card));--button-edge:color-mix(in srgb, var(--foreground) 14%, transparent);--button-shadow:0 1px 2px color-mix(in srgb, var(--foreground) 12%, transparent);--button-secondary:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 10%, var(--card)), var(--control-surface));--button-secondary-hover:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 14%, var(--card)), var(--control-hover));--control-edge:color-mix(in srgb, var(--foreground) 9%, transparent)}.home-grid,.home-top-stack,.home-left-stack,.home-middle-stack,.home-right-stack{gap:18px}.finance-card.tuff-finance-shell{background:var(--surface-shell);box-shadow:none;border:0;border-radius:22px;flex-direction:column;gap:0;padding:6px;display:flex}.home-distribution.tuff-finance-shell{flex:auto;height:100%;min-height:0}.tuff-finance-body{background:var(--card);border-radius:16px;flex:1;min-width:0;min-height:0;position:relative;overflow:hidden}.tuff-finance-shell>[data-slot=surface-header]{gap:10px;min-height:48px;padding:6px 10px 12px 6px}.tuff-finance-shell>[data-slot=surface-header] h2{color:var(--foreground);letter-spacing:-.2px;font-size:13px;font-weight:550}.tuff-finance-shell>[data-slot=surface-header]>:first-child{background:color-mix(in srgb, var(--foreground) 6%, transparent);border-radius:10px;width:30px;height:30px}.tuff-finance-shell>[data-slot=surface-header] .type-switch{gap:2px;margin:0;padding:3px}.tuff-finance-shell>[data-slot=surface-header] .type-switch>button{padding:5px 10px;font-size:11px}.home-forecast>.tuff-finance-body,.home-wealth>.tuff-finance-body,.home-investments>.tuff-finance-body,.home-cards>.tuff-finance-body,.home-market>.tuff-finance-body,.home-distribution>.tuff-finance-body{flex-direction:column;flex:auto;display:flex}.home-market .market-ticker-list,.home-wealth .home-wealth-chart{flex:auto}.home-cards .home-cards-entries{min-height:0}.home-result>.tuff-finance-body{padding:18px 18px 20px}.home-wealth>.tuff-finance-body,.home-investments>.tuff-finance-body{padding:18px 18px 0}.home-distribution>.tuff-finance-body{flex:auto;min-height:0;padding:14px 28px 18px 14px}@media (max-width:700px){.home-distribution>.tuff-finance-body{padding:18px}}.home-cards>.tuff-finance-body{padding:18px 18px 16px}.home-market>.tuff-finance-body{gap:12px;padding:18px 12px 14px}.home-forecast-body{padding:16px 18px 10px}.home-grid .home-amount{letter-spacing:-1.1px;font-weight:550}.mini-stat.tuff-stat{flex-direction:column;align-items:stretch;display:flex}.mini-stat.tuff-stat:not(:has(>[data-slot=surface-header])){min-height:144px}.mini-stat.tuff-stat.tuff-stat-with-chart{z-index:0;min-height:176px;overflow:visible}.mini-stat.tuff-stat.tuff-stat-with-chart:hover,.mini-stat.tuff-stat.tuff-stat-with-chart:focus-within{z-index:3}.mini-stat.tuff-stat.tuff-stat-with-chart>.tuff-finance-body{overflow:visible}.tuff-stat>.tuff-finance-body{flex-direction:column;align-items:stretch;gap:14px;padding:18px;display:flex}.tuff-stat:has(>[data-slot=surface-header])>.tuff-finance-body{flex:none;gap:0;padding:12px 18px 14px}.tuff-stat:has(>[data-slot=surface-header]) .tuff-stat-value{margin:0;line-height:1.1}.tuff-stat-with-chart>.tuff-finance-body{gap:12px}.tuff-stat-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.tuff-stat-heading p,.tuff-stat-hint{color:var(--muted-foreground);margin:0;font-size:12px;line-height:1.5}.tuff-stat-chart{flex:auto;align-items:center;width:100%;min-width:0;height:56px;min-height:48px;display:flex}.tuff-stat-chart>*{width:100%;min-width:0;display:block}.tuff-stat .tuff-stat-value{letter-spacing:-1px;font-size:clamp(24px,2.1vw,30px);font-weight:550;line-height:1.15}.setup-card>.tuff-finance-body,.accounts-card>.tuff-finance-body,.full-table>.tuff-finance-body,.investment-page>.tuff-finance-body{flex-direction:column;display:flex}:is(.setup-card>.tuff-finance-body:has(.empty-state),.accounts-card>.tuff-finance-body:has(.empty-state),.active-goals-card>.tuff-finance-body:has(.empty-state),.categories-card>.tuff-finance-body:has(.empty-state),.completed-goals-card>.tuff-finance-body:has(.empty-state),.investment-page>.tuff-finance-body:has(.empty-state)){padding:8px 0 12px}.active-goals-card>.tuff-finance-body,.categories-card>.tuff-finance-body{flex-direction:column;padding:18px;display:flex}.categories-card.full-table>.tuff-finance-body,.full-table>.tuff-finance-body{padding:0}.full-table .transactions-table th:first-child,.full-table .transactions-table td:first-child{padding-left:18px}.full-table .transactions-table th:last-child,.full-table .transactions-table td:last-child{padding-right:18px}.tuff-finance-shell .transactions-table thead th,.tuff-finance-shell .category-rules-table thead th,.tuff-finance-shell .completed-goals-table thead th{background:var(--control-surface)}.category-card,.goal-card{box-shadow:inset 0 0 0 5px var(--surface-shell);border:0;border-radius:22px}.category-card{padding:22px}.goal-card{--goal-padding:24px;--goal-ring:5px}.add-button[data-slot=button],[data-slot=button][data-variant=outline]{border-radius:999px}.add-button[data-slot=button]{height:36px;padding-inline:16px;font-size:12px}.finance-dialog [data-slot=button]{border-radius:999px}.finance-dialog [data-slot=input],.finance-dialog [data-slot=number-input-control],.finance-dialog [data-slot=textarea]{background:var(--control-surface);min-height:36px;box-shadow:none;border-color:#0000;border-radius:12px}.finance-dialog [data-slot=input]:focus-visible,.finance-dialog [data-slot=number-input-control]:focus-visible,.finance-dialog [data-slot=textarea]:focus-visible{border-color:var(--ring)}.field-select-trigger{background:var(--control-surface);border-color:#0000;border-radius:12px}.page-heading .field-select-trigger{border-radius:999px;padding-inline:12px}.page-heading .category-filter{background:var(--control-surface);border-radius:999px;min-height:0;padding:3px 10px 3px 8px}.page-heading .category-filter-select.field-select-trigger{background:0 0;border-radius:999px;height:auto;min-height:28px;padding-inline:4px 6px}.period-picker{background:var(--control-surface);border:0;border-radius:999px;padding:3px}.period-picker>.icon-button{border-radius:999px}.type-switch.motion-segments{background:var(--control-surface);border:0;border-radius:999px;gap:3px;padding:4px}.type-switch.motion-segments>button,.type-switch.motion-segments .segment-indicator{border-radius:999px}.type-switch.motion-segments .segment-indicator{box-shadow:0 1px 3px var(--control-edge)}.finance-dialog{box-shadow:0 0 0 6px var(--surface-shell), 0 24px 80px color-mix(in srgb, var(--foreground) 14%, transparent);border-radius:24px}.clara-select-content.t-dropdown{border:0;border-radius:16px;padding:6px}.clara-select-content .clara-select-item{border-radius:10px;min-height:32px}.sidebar-search{background:var(--control-surface);border-color:#0000;border-radius:12px;min-height:36px;padding:0 12px}.sidebar-search:hover,.sidebar-search:focus-visible{background:var(--control-hover)}.sidebar .theme-switch.type-switch.motion-segments{background:var(--control-surface);border:0;border-radius:999px;gap:3px;margin:0;padding:4px}.sidebar .theme-switch.type-switch.motion-segments>button,.sidebar .theme-switch.type-switch.motion-segments .segment-indicator{border-radius:999px}.sidebar .theme-switch.type-switch.motion-segments .segment-indicator{box-shadow:0 1px 3px var(--control-edge)}.nav-item svg{opacity:.88;flex-shrink:0}.nav-item.active svg,.nav-item:hover svg{opacity:1}@media (max-width:600px){.add-button[data-slot=button]{gap:0;width:36px;height:36px;padding:0;font-size:0}.home-grid,.home-top-stack,.home-left-stack,.home-middle-stack,.home-right-stack{gap:14px}.finance-card.tuff-finance-shell{border-radius:20px;padding:5px}.tuff-finance-shell>[data-slot=surface-header] h2{font-size:12px}.tuff-stat>.tuff-finance-body{padding:14px}.tuff-stat:has(>[data-slot=surface-header])>.tuff-finance-body{padding:10px 14px 12px}.tuff-stat .tuff-stat-value{font-size:24px}}.home-forecast .home-card-heading{margin-bottom:4px}.home-forecast .home-forecast-body{padding:16px 16px 8px}.budget-overview{flex-direction:column;flex:1;align-items:stretch;gap:14px;padding:12px 0 16px;display:flex}.budget-gauge{width:min(100%,280px);min-width:0;margin:0 auto;position:relative}.budget-gauge>svg{width:100%;display:block;overflow:visible}.budget-gauge-value{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:7px;display:flex;position:absolute;inset:44% 0 8%}.budget-gauge-label,.budget-gauge-limit{color:var(--muted-foreground);font-size:10px}.budget-gauge-amount{letter-spacing:-.9px;white-space:nowrap;font-size:clamp(20px,1.8vw,29px);font-weight:600}.budget-facts{flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:12px 28px;width:100%;min-width:0;display:flex}.budget-fact{min-width:0;color:var(--muted-foreground);justify-content:center;align-items:flex-start;gap:8px;display:flex}.budget-fact>svg{flex-shrink:0;width:16px;height:16px;margin-top:1px}.budget-fact>div{text-align:left;flex-direction:column;gap:2px;min-width:0;display:flex}.budget-fact strong,.budget-fact>div>span{line-height:1.25;display:block}.budget-fact strong{color:var(--foreground);font-size:11px;font-weight:550}.budget-fact>div>span{font-size:9px}.budget-past-result{flex:1;padding-top:12px}.home-result-overview{grid-template-columns:minmax(0,1fr) minmax(72px,30%);align-items:center;gap:10px;display:grid}.home-result-headline{min-width:0}.home-result .home-value-line{gap:5px}.home-result .home-amount{font-size:clamp(20px,1.8vw,29px)}.tuff-chart{width:100%;min-width:0}.home-donut>.tuff-chart{place-items:center;width:100%;height:100%;display:grid;position:absolute;inset:0}.market-ticker-chart .tuff-chart{display:block}@media (max-width:600px){.budget-overview{gap:12px;padding:8px 0 12px}.budget-gauge{width:min(100%,250px)}.budget-gauge-amount{font-size:25px}.budget-fact>svg{display:none}.budget-fact strong{font-size:10px}}.dashboard-info-copy{gap:8px;padding:4px;line-height:1.5;display:grid}.dashboard-info-copy strong{font-weight:600}.dashboard-info-copy p{margin:0}.tuff-tooltip{box-shadow:0 4px 16px color-mix(in srgb, var(--foreground) 12%, transparent);transition:opacity .125s cubic-bezier(.23,1,.32,1),scale .125s cubic-bezier(.23,1,.32,1)}.tuff-tooltip[data-starting-style],.tuff-tooltip[data-ending-style]{opacity:0;scale:.97}@media (prefers-reduced-motion:reduce){.tuff-tooltip{transition:none}}.home-forecast .budget-pace{z-index:1;background:var(--control-surface);width:calc(100% - 16px);height:auto;min-height:66px;color:var(--foreground);text-align:left;white-space:normal;--pace-color:var(--success);border-radius:12px;align-items:center;gap:10px;margin:0 8px 8px;padding:12px;display:flex;position:relative}.home-forecast .budget-pace:hover,.home-forecast .budget-bills-clear,.home-forecast .budget-bills-clear:hover{background:var(--control-surface)}.budget-pace.is-warning{--pace-color:var(--warning)}.budget-pace.is-negative{--pace-color:var(--destructive)}.budget-pace.is-neutral{--pace-color:var(--muted-foreground)}.budget-pace.is-positive{--pace-color:var(--success)}.budget-insight{overflow:hidden}.budget-insight-slide{flex:1;min-width:0}.budget-insight-main{width:100%;color:inherit;text-align:left;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;margin:0;padding:0;display:flex}.budget-insight-nav{flex-shrink:0;gap:2px;display:flex}.budget-insight-nav .icon-button{width:28px;height:28px;color:var(--muted-foreground);border-radius:999px}.budget-insight-nav .icon-button:hover{color:var(--foreground);background:color-mix(in srgb, var(--foreground) 6%, transparent)}.budget-pace-icon{background:color-mix(in srgb, var(--pace-color) 12%, transparent);width:28px;height:28px;color:var(--pace-color);border-radius:9px;flex-shrink:0;place-items:center;display:grid}.budget-pace-copy{flex:1;gap:2px;min-width:0;display:grid}.budget-pace-copy>strong{font-size:11px;font-weight:550;line-height:1.35}.budget-pace-copy>strong>span{color:var(--pace-color)}.budget-pace-copy>span{color:var(--muted-foreground);font-size:10px;font-weight:400;line-height:1.4}.budget-insight .budget-pace-copy>strong,.budget-insight .budget-pace-copy>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.budget-pace>svg{color:var(--muted-foreground);flex-shrink:0}
