/* VASTELOR Visual Contract 0.9 — hand-authored, dependency-free. */
:root {
  color-scheme: light;
  --v-canvas: #f3f7f4;
  --v-canvas-deep: #eaf1ed;
  --v-surface-1: #fffefa;
  --v-surface-2: #f9fbf8;
  --v-surface-3: #e8f1ed;
  --v-surface-accent: #e1f0eb;
  --v-chrome: rgb(255 255 252 / 82%);
  --v-nav-glass: rgb(247 252 248 / 86%);
  --v-nav-active: rgb(8 127 117 / 13%);
  --v-nav-border: rgb(83 106 111 / 26%);
  --v-overlay: rgb(10 29 34 / 36%);
  --v-text-1: #09272f;
  --v-text-2: #536a6f;
  --v-text-3: #718489;
  --v-line: #d0ddda;
  --v-line-strong: #7f9794;
  --v-accent: #087f75;
  --v-accent-strong: #05685f;
  --v-accent-ink: #ffffff;
  --v-positive: #087866;
  --v-positive-soft: #e3f2ec;
  --v-danger: #ad4742;
  --v-danger-soft: #f8e9e6;
  --v-warning: #8a641e;
  --v-warning-soft: #f8eed7;
  --v-focus: #0a756c;
  --v-shadow-card: 0 12px 34px rgb(23 58 62 / 7%);
  --v-shadow-float: 0 24px 70px rgb(12 38 44 / 16%);
  --v-shadow-chrome: 0 12px 38px rgb(18 53 58 / 12%);
  --v-shadow-lift: 0 18px 42px rgb(18 53 58 / 13%);
  --v-shadow-control: 0 7px 18px rgb(18 53 58 / 11%);
  --v-blur-chrome: 18px;
  --v-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --v-step-1: 4px;
  --v-step-2: 8px;
  --v-step-3: 12px;
  --v-step-4: 16px;
  --v-step-5: 24px;
  --v-step-6: 32px;
  --v-step-7: 48px;
  --v-radius-control: 14px;
  --v-radius-card: 22px;
  --v-radius-panel: 28px;
  --v-radius-chrome: 24px;
  --v-touch: 48px;
  --v-content: 1320px;
  --v-shell-content: 1180px;
  --v-safe-top: env(safe-area-inset-top, 0px);
  --v-safe-right: env(safe-area-inset-right, 0px);
  --v-safe-bottom: env(safe-area-inset-bottom, 0px);
  --v-safe-left: env(safe-area-inset-left, 0px);
  --v-ease: cubic-bezier(.2,.78,.22,1);
  --v-ease-out: cubic-bezier(.2,.78,.22,1);
  --v-ease-press: cubic-bezier(.2,.8,.2,1);
  --v-motion-fast: 120ms;
  --v-motion-standard: 180ms;
  --v-motion-panel: 220ms;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --v-canvas: #071014;
  --v-canvas-deep: #0a1b20;
  --v-surface-1: #0b171c;
  --v-surface-2: #0e1d23;
  --v-surface-3: #132830;
  --v-surface-accent: #102d31;
  --v-chrome: rgb(7 16 20 / 72%);
  --v-nav-glass: rgb(7 16 20 / 86%);
  --v-nav-active: rgb(32 201 203 / 14%);
  --v-nav-border: rgb(135 162 170 / 34%);
  --v-overlay: rgb(0 8 12 / 62%);
  --v-text-1: #f4f8f9;
  --v-text-2: #a9bec5;
  --v-text-3: #849da5;
  --v-line: #21414b;
  --v-line-strong: #6f8f98;
  --v-accent: #20c9cb;
  --v-accent-strong: #6aead8;
  --v-accent-ink: #002b2d;
  --v-positive: #55d89a;
  --v-positive-soft: #12362d;
  --v-danger: #ff7c86;
  --v-danger-soft: #3c2228;
  --v-warning: #f1c46a;
  --v-warning-soft: #352f22;
  --v-focus: #74e5dc;
  --v-shadow-card: 0 14px 38px rgb(0 0 0 / 18%);
  --v-shadow-float: 0 24px 64px rgb(0 0 0 / 34%);
  --v-shadow-chrome: 0 14px 38px rgb(0 0 0 / 24%);
  --v-shadow-lift: 0 18px 50px rgb(0 0 0 / 22%);
  --v-shadow-control: 0 7px 18px rgb(0 0 0 / 28%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; background-color: var(--v-canvas); scrollbar-gutter: stable; }
body { min-height: 100vh; min-height: 100dvh; margin: 0; overflow-x: clip; background: radial-gradient(circle at 72% -10%,color-mix(in srgb,var(--v-accent) 8%,transparent),transparent 32%),linear-gradient(180deg,var(--v-canvas-deep),var(--v-canvas) 220px); color: var(--v-text-1); font-family: var(--v-font); font-synthesis: none; text-rendering: optimizeLegibility; }
:root[data-theme="dark"] body { background: linear-gradient(180deg,var(--v-canvas-deep),var(--v-canvas) 220px); }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:not(:disabled), a { cursor: pointer; }
img, svg { display: block; }
.v-icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(button, a, input, select, textarea):focus { outline: none; }
:where(button, a, input, select, textarea):focus-visible { outline: 3px solid color-mix(in srgb,var(--v-focus) 84%,transparent); outline-offset: 3px; }

.v-tabular { font-variant-numeric: tabular-nums; }
.v-eyebrow { margin: 0; color: var(--v-text-2); font-size: 12px; font-weight: 720; letter-spacing: .095em; line-height: 1.3; text-transform: uppercase; }
.v-eyebrow--spaced { margin-bottom: 12px; }
.v-positive { color: var(--v-positive); }
.v-danger { color: var(--v-danger); }
.v-display { margin: 0; font-size: clamp(40px,6vw,64px); font-weight: 770; letter-spacing: -.052em; line-height: 1; }
.v-page-title { margin: 0; font-size: clamp(30px,4vw,46px); font-weight: 760; letter-spacing: -.038em; line-height: 1.06; }
.v-section-title { margin: 0; font-size: clamp(22px,2.5vw,30px); font-weight: 745; letter-spacing: -.025em; line-height: 1.13; }
.v-card-title { margin: 0; font-size: 20px; font-weight: 730; letter-spacing: -.018em; line-height: 1.25; }
.v-body { margin: 0; color: var(--v-text-2); font-size: 16px; line-height: 1.55; }
.v-small { margin: 0; color: var(--v-text-2); font-size: 13px; line-height: 1.45; }

.v-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--v-text-1); text-decoration: none; }
.v-brand__mark { width: 30px; height: 30px; flex: 0 0 auto; fill: none; stroke: var(--v-accent); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.v-brand__name { overflow: hidden; font-size: 13px; font-weight: 820; letter-spacing: .18em; text-overflow: ellipsis; white-space: nowrap; }

.v-button, .v-icon-button, .v-segmented button, .v-nav-item {
  border: 0;
  transition: transform var(--v-motion-standard) var(--v-ease-out), background-color var(--v-motion-fast) ease, border-color var(--v-motion-fast) ease, color var(--v-motion-fast) ease, box-shadow var(--v-motion-standard) var(--v-ease-out), opacity var(--v-motion-fast) ease;
}
.v-button { min-height: var(--v-touch); display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--v-radius-control); font-weight: 735; line-height: 1.1; text-decoration: none; }
.v-button__label { min-width: 0; white-space: nowrap; }
.v-button--primary { background: var(--v-accent); color: var(--v-accent-ink); }
.v-button--primary:hover, .v-button--primary.is-hover { background: var(--v-accent-strong); }
.v-button--primary:active, .v-button--primary.is-pressed { background: color-mix(in srgb,var(--v-accent-strong) 88%,var(--v-canvas-deep)); }
.v-button--secondary { border-color: color-mix(in srgb,var(--v-accent) 52%,var(--v-line)); background: color-mix(in srgb,var(--v-accent) 10%,var(--v-surface-1)); color: var(--v-accent-strong); }
.v-button--secondary:hover, .v-button--secondary.is-hover { background: color-mix(in srgb,var(--v-accent) 16%,var(--v-surface-1)); }
.v-button--quiet { background: transparent; color: var(--v-accent-strong); }
.v-button--quiet:hover, .v-button--quiet.is-hover { background: color-mix(in srgb,var(--v-accent) 9%,transparent); }
.v-button--danger { border-color: color-mix(in srgb,var(--v-danger) 44%,var(--v-line)); background: var(--v-danger-soft); color: var(--v-danger); }
.v-button--danger:hover, .v-button--danger.is-hover { background: color-mix(in srgb,var(--v-danger) 14%,var(--v-surface-1)); }
.v-button.is-hover, .v-icon-button.is-hover { box-shadow: var(--v-shadow-control); transform: translateY(-1px); }
.v-button:active, .v-button.is-pressed, .v-icon-button:active, .v-nav-item:active { transform: translateY(0) scale(.975); transition-duration: 90ms; transition-timing-function: var(--v-ease-press); }
.v-button:disabled, .v-button.is-disabled { opacity: .44; pointer-events: none; }
.v-button.is-loading { position: relative; color: transparent; pointer-events: none; }
.v-button.is-loading::after { width: 18px; height: 18px; border: 2px solid color-mix(in srgb,var(--v-accent-ink) 38%,transparent); border-top-color: var(--v-accent-ink); border-radius: 50%; content: ""; animation: v-spin .8s linear infinite; }
@keyframes v-spin { to { transform: rotate(1turn); } }

.v-icon-button { width: var(--v-touch); height: var(--v-touch); display: inline-grid; place-items: center; flex: 0 0 var(--v-touch); border: 1px solid var(--v-line-strong); border-radius: var(--v-radius-control); background: var(--v-surface-1); color: var(--v-text-2); }
.v-icon-button:hover, .v-icon-button.is-hover { border-color: var(--v-line-strong); background: var(--v-surface-3); color: var(--v-text-1); }
.v-icon-button--accent { border-color: color-mix(in srgb,var(--v-accent) 45%,var(--v-line)); background: var(--v-surface-accent); color: var(--v-accent-strong); }

.v-segmented { min-width: 0; display: grid; grid-auto-columns: minmax(0,1fr); grid-auto-flow: column; gap: 4px; padding: 4px; border: 1px solid var(--v-line-strong); border-radius: calc(var(--v-radius-control) + 4px); background: var(--v-surface-2); }
.v-segmented button { min-width: 0; min-height: 40px; padding: 6px 15px; border-radius: var(--v-radius-control); background: transparent; color: var(--v-text-2); font-weight: 690; line-height: 1.15; overflow-wrap: anywhere; }
.v-segmented button[aria-pressed="true"], .v-segmented button.is-active { background: var(--v-surface-1); color: var(--v-accent-strong); box-shadow: 0 4px 14px rgb(17 50 54 / 8%); }

.v-field { display: grid; gap: 8px; min-width: 0; }
.v-field__label { color: var(--v-text-2); font-size: 13px; font-weight: 680; }
.v-field__hint { color: var(--v-text-3); font-size: 12px; line-height: 1.4; }
.v-field__hint--error { color: var(--v-danger); }
.v-field__hint--success { color: var(--v-positive); }
.v-input-wrap { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--v-line-strong); border-radius: var(--v-radius-control); background: var(--v-surface-1); color: var(--v-text-2); }
.v-input-wrap:focus-within { border-color: var(--v-focus); box-shadow: 0 0 0 3px color-mix(in srgb,var(--v-focus) 14%,transparent); }
.v-input-wrap input, .v-input-wrap select, .v-input-wrap textarea { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--v-text-1); }
.v-input-wrap input::placeholder, .v-input-wrap textarea::placeholder { color: var(--v-text-3); opacity: 1; }
.v-input-wrap--amount { min-height: 68px; }
.v-input-wrap--amount input { font-size: 28px; font-weight: 720; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.v-input-wrap--error { border-color: var(--v-danger); }
.v-input-wrap--success { border-color: var(--v-positive); }
.v-field--disabled { opacity: .48; }

.v-badge { min-height: 30px; width: fit-content; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--v-line); border-radius: 999px; color: var(--v-text-2); font-size: 12px; font-weight: 720; letter-spacing: .035em; }
.v-badge--success { border-color: color-mix(in srgb,var(--v-positive) 55%,var(--v-line)); background: var(--v-positive-soft); color: var(--v-positive); }
.v-badge--accent { border-color: color-mix(in srgb,var(--v-accent) 42%,var(--v-line)); background: var(--v-surface-accent); color: var(--v-accent-strong); }

.v-surface { border: 1px solid transparent; border-radius: var(--v-radius-card); }
.v-surface--base { background: var(--v-surface-1); }
.v-surface--section { border-color: color-mix(in srgb,var(--v-line) 72%,transparent); background: var(--v-surface-1); box-shadow: var(--v-shadow-card); }
.v-surface--interactive { border-color: var(--v-line); background: var(--v-surface-2); }
.v-surface--floating { border-color: color-mix(in srgb,var(--v-line) 84%,transparent); background: var(--v-surface-2); box-shadow: var(--v-shadow-float); }
.v-interactive-surface { transition: transform var(--v-motion-standard) var(--v-ease-out), border-color var(--v-motion-fast) ease, box-shadow var(--v-motion-standard) var(--v-ease-out), background-color var(--v-motion-fast) ease; }

.v-list { margin: 0; padding: 0; list-style: none; }
.v-list-row { width: 100%; min-height: 64px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--v-line); background: transparent; color: inherit; text-align: left; transition: transform var(--v-motion-standard) var(--v-ease-out), border-color var(--v-motion-fast) ease, background-color var(--v-motion-fast) ease, box-shadow var(--v-motion-standard) var(--v-ease-out); }
.v-list-row:last-child { border-bottom: 0; }
.v-list-row__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--v-surface-3); color: var(--v-accent-strong); }
.v-list-row__copy { min-width: 0; display: grid; gap: 2px; }
.v-list-row__copy strong { overflow: hidden; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.v-list-row__copy small { min-width: 0; overflow: hidden; color: var(--v-text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.v-list-row__value { font-weight: 730; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-list-row__value--positive { color: var(--v-positive); }
.v-list-row__value--negative { color: var(--v-danger); }

.v-balance-card { container-type: inline-size; padding: clamp(22px,2.5vw,28px); text-align: left; }
.v-balance-card__hero,.v-balance-card__primary-group,.v-balance-card__primary { min-width: 0; }
.v-balance-card__hero { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "primary primary" "income expense"; align-items: center; gap: 10px 8px; }
.v-balance-card__primary-group { position: relative; grid-area: primary; display: grid; justify-items: center; }
.v-balance-card__primary { min-width: 0; width: 100%; display: grid; justify-items: center; padding: 4px 2px; border: 0; background: transparent; color: inherit; text-align: center; }
.v-balance-card__amount { min-width: 0; max-width: 100%; display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 8px 0 6px; white-space: nowrap; transition: transform var(--v-motion-standard) var(--v-ease-out),color var(--v-motion-fast) ease; }
.v-balance-card__amount strong { min-width: 0; font-size: clamp(40px,4vw,52px); font-weight: 770; letter-spacing: -.052em; line-height: 1; font-variant-numeric: tabular-nums; }
.v-balance-card__amount span { color: var(--v-text-2); font-size: 16px; font-weight: 700; }
.v-balance-card__amount.is-long strong { font-size: clamp(38px,10cqi,52px); }
.v-balance-card__amount.is-very-long strong { font-size: clamp(32px,8cqi,44px); }
.v-balance-period { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 4px 7px; border: 0; border-radius: 10px; background: transparent; color: var(--v-text-2); font-size: 11px; font-weight: 720; letter-spacing: .07em; line-height: 1.15; text-transform: uppercase; transition: color var(--v-motion-fast) ease,background-color var(--v-motion-fast) ease,transform var(--v-motion-standard) var(--v-ease-out); }
.v-balance-period .v-icon { width: 16px; height: 16px; }
.v-stat { min-width: 0; min-height: 58px; display: grid; justify-items: start; align-content: center; gap: 4px; padding: 8px 10px; border: 1px solid transparent; border-radius: 13px; background: transparent; text-align: left; transition: transform var(--v-motion-standard) var(--v-ease-out),background-color var(--v-motion-fast) ease,border-color var(--v-motion-fast) ease; }
.v-stat--income { grid-area: income; }
.v-stat--expense { grid-area: expense; }
.v-stat + .v-stat { position: relative; }
.v-stat + .v-stat::before { position: absolute; top: 9px; bottom: 9px; left: -5px; width: 1px; background: var(--v-line); content: ""; }
.v-stat span { color: var(--v-text-2); font-size: 13px; }
.v-stat strong { overflow: hidden; font-size: clamp(18px,2vw,22px); font-weight: 720; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v-goal-create { position: absolute; z-index: 2; top: -4px; right: 0; min-height: 44px; display: none; width: fit-content; margin: 0; padding-inline: 8px; font-size: 12px; }
.v-goal-create .v-icon { width: 17px; height: 17px; }

@container (min-width: 500px) {
  .v-balance-card__hero { grid-template-columns: minmax(104px,1fr) minmax(250px,1.85fr) minmax(104px,1fr); grid-template-areas: "income primary expense"; gap: 8px; }
  .v-balance-card__primary-group { align-self: center; }
  .v-stat { min-height: 76px; justify-items: center; padding-inline: 4px; text-align: center; }
  .v-stat + .v-stat::before { display: none; }
  .v-stat span { font-size: 12px; }
  .v-stat strong { font-size: clamp(18px,3.8cqi,21px); }
}

.v-action-pair { width: min(100%,var(--v-action-group-width,404px)); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-inline: auto; }
.v-action-pair .v-button { min-width: 0; padding-inline: 16px; }
.v-action-pair.is-stacked { width: min(100%,360px); grid-template-columns: minmax(0,1fr); }
.v-action-pair .v-button--income { border-color: color-mix(in srgb,var(--v-positive) 50%,var(--v-line)); background: color-mix(in srgb,var(--v-positive) 9%,var(--v-surface-1)); color: var(--v-positive); }
.v-action-pair .v-button--expense { border-color: color-mix(in srgb,var(--v-danger) 40%,var(--v-line)); background: color-mix(in srgb,var(--v-danger) 7%,var(--v-surface-1)); color: var(--v-danger); }

.v-goal-card { position: relative; min-height: 220px; display: grid; grid-template-columns: minmax(0,260px) 160px; justify-content: center; gap: 28px; align-items: center; padding: 24px 26px; overflow: hidden; transition: border-color var(--v-motion-fast) ease,background-color var(--v-motion-fast) ease,box-shadow var(--v-motion-standard) var(--v-ease-out); }
.v-goal-card__hit { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; }
.v-goal-card__hit:focus-visible { outline: 3px solid color-mix(in srgb,var(--v-focus) 84%,transparent); outline-offset: -4px; }
.v-goal-card__copy { min-width: 0; display: grid; align-content: center; gap: 7px; }
.v-goal-card__name { margin: 2px 0 0; overflow: hidden; display: -webkit-box; font-size: clamp(24px,2.7vw,30px); font-weight: 750; letter-spacing: -.032em; line-height: 1.08; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.v-goal-card__amount { margin: 0; color: var(--v-text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.v-goal-card__pace { min-height: 18px; margin: 0; color: var(--v-text-3); font-size: 12px; line-height: 1.4; }
.v-goal-card__visual { position: relative; min-width: 0; display: grid; place-items: center; align-self: center; padding-bottom: 26px; }
.v-goal-card__visual-button { position: relative; width: 160px; padding: 0 0 26px; border: 0; border-radius: 20px; background: transparent; color: inherit; transition: transform var(--v-motion-standard) var(--v-ease-out); }
.v-goal-card__visual-button:active, .v-popover__option:active { transform: scale(.975); transition-duration: 90ms; }
.v-goal-card__art { position: relative; width: 160px; aspect-ratio: 1; transition: transform var(--v-motion-standard) var(--v-ease-out); }
.v-goal-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: translateX(var(--v-art-x,0)) translateY(var(--v-art-y,0)) scale(var(--v-art-scale,1)); transform-origin: center; }
.v-goal-card__art--vacation { --v-art-x: -4%; --v-art-y: 0; --v-art-scale: 1.06; }
.v-goal-card__art img:first-child { opacity: .22; filter: grayscale(1) saturate(.08) brightness(.8) contrast(.55); }
:root[data-theme="dark"] .v-goal-card__art img:first-child { opacity: .28; filter: grayscale(1) saturate(.05) brightness(.78) contrast(.42); }
.v-goal-card__art img:last-child { clip-path: inset(40% 0 0); }
.v-goal-card__visual-percent { position: absolute; left: 50%; bottom: 0; min-width: 58px; padding: 6px 10px; border: 1px solid color-mix(in srgb,var(--v-accent) 28%,var(--v-line)); border-radius: 999px; background: color-mix(in srgb,var(--v-surface-1) 94%,var(--v-canvas)); color: var(--v-accent-strong); font-size: 18px; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.v-goal-card__percent { color: var(--v-accent-strong); font-size: clamp(42px,6vw,64px); font-weight: 790; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.v-goal-card--no-image { min-height: 146px; grid-template-columns: minmax(0,1fr) auto; justify-content: stretch; }
.v-goal-card--no-image .v-goal-card__visual { align-self: center; padding-left: 18px; border-left: 1px solid var(--v-line); }
.v-goal-card--complete { border-color: color-mix(in srgb,var(--v-positive) 42%,var(--v-line)); }
.v-goal-card__over { margin: 0; color: var(--v-positive); font-size: 12px; font-weight: 700; }

.v-panel { border: 1px solid var(--v-line); border-radius: var(--v-radius-panel); background: var(--v-surface-2); box-shadow: var(--v-shadow-float); }
.v-panel__header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px 10px 22px; }
.v-panel__body { padding: 4px 22px 22px; }
.v-panel__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; }
.v-popover { width: min(340px,100%); padding: 10px; border: 1px solid var(--v-line); border-radius: 20px; background: var(--v-chrome); box-shadow: var(--v-shadow-float); -webkit-backdrop-filter: blur(var(--v-blur-chrome)) saturate(1.08); backdrop-filter: blur(var(--v-blur-chrome)) saturate(1.08); }
.v-popover__option { min-height: 48px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border: 0; border-radius: 13px; background: transparent; text-align: left; transition: transform var(--v-motion-standard) var(--v-ease-out), background-color var(--v-motion-fast) ease, color var(--v-motion-fast) ease; }
.v-popover__option.is-active { background: var(--v-surface-accent); color: var(--v-accent-strong); }
.v-alert { width: min(400px,100%); padding: 22px; border: 1px solid var(--v-line); border-radius: 24px; background: var(--v-surface-2); box-shadow: var(--v-shadow-float); }
.v-alert .v-card-title { margin-bottom: 7px; }
.v-alert__actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 22px; }
.v-sheet { width: min(560px,100%); padding: 8px 18px calc(18px + var(--v-safe-bottom)); border: 1px solid var(--v-line); border-radius: 30px 30px 22px 22px; background: var(--v-surface-2); box-shadow: var(--v-shadow-float); }
.v-sheet__handle { width: 42px; height: 5px; margin: 2px auto 8px; border-radius: 999px; background: var(--v-line-strong); }

.v-lab-toolbar { position: sticky; z-index: 20; top: 0; min-height: calc(68px + var(--v-safe-top)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(10px + var(--v-safe-top)) max(18px,var(--v-safe-right)) 10px max(18px,var(--v-safe-left)); border-bottom: 1px solid color-mix(in srgb,var(--v-line) 84%,transparent); background: var(--v-chrome); -webkit-backdrop-filter: blur(var(--v-blur-chrome)) saturate(1.08); backdrop-filter: blur(var(--v-blur-chrome)) saturate(1.08); }
.v-lab-toolbar__actions { display: flex; align-items: center; gap: 8px; }
.v-lab-toolbar__status { display: none; color: var(--v-text-2); font-size: 12px; }
.v-lab-page { width: min(100%,var(--v-content)); margin: 0 auto; padding: clamp(28px,5vw,68px) clamp(16px,4vw,44px) 90px; }
.v-lab-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: end; padding-bottom: clamp(32px,6vw,70px); }
.v-lab-hero__copy { max-width: 850px; display: grid; gap: 14px; }
.v-lab-hero .v-body { max-width: 720px; }
.v-lab-hero__meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.v-lab-section { display: grid; gap: 20px; padding: clamp(30px,5vw,58px) 0; border-top: 1px solid var(--v-line); }
.v-lab-section__heading { max-width: 760px; display: grid; gap: 8px; }
.v-grid { display: grid; gap: 16px; }
.v-grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.v-grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.v-grid--4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.v-demo { min-width: 0; padding: 20px; border: 1px solid var(--v-line); border-radius: var(--v-radius-card); background: var(--v-surface-1); }
.v-demo__label { margin: 0 0 15px; color: var(--v-text-3); font-size: 11px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.v-demo__stack { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.v-demo__stack--spaced { margin-top: 16px; }
.v-demo__form { display: grid; gap: 16px; }
.v-type-specimen { display: grid; gap: 18px; }
.v-type-row { display: grid; grid-template-columns: 118px minmax(0,1fr); align-items: baseline; gap: 20px; }
.v-type-row > span { color: var(--v-text-3); font-size: 12px; }
.v-swatches { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.v-swatch { min-width: 0; display: grid; gap: 9px; color: var(--v-text-2); font-size: 11px; }
.v-swatch::before { min-height: 76px; border: 1px solid var(--v-line); border-radius: 16px; background: var(--swatch); content: ""; }
.v-swatch--canvas { --swatch: var(--v-canvas); }
.v-swatch--surface-1 { --swatch: var(--v-surface-1); }
.v-swatch--surface-2 { --swatch: var(--v-surface-2); }
.v-swatch--surface-3 { --swatch: var(--v-surface-3); }
.v-swatch--accent { --swatch: var(--v-surface-accent); }
.v-token-line { display: flex; flex-wrap: wrap; gap: 8px; }
.v-space-token { display: inline-flex; align-items: center; gap: 7px; color: var(--v-text-2); font-size: 12px; }
.v-space-token::before { width: var(--size); height: var(--size); max-width: 48px; max-height: 48px; border-radius: 4px; background: var(--v-surface-accent); content: ""; }
.v-space-token--4 { --size: 4px; }
.v-space-token--8 { --size: 8px; }
.v-space-token--12 { --size: 12px; }
.v-space-token--16 { --size: 16px; }
.v-space-token--24 { --size: 24px; }
.v-space-token--32 { --size: 32px; }
.v-space-token--48 { --size: 48px; }
.v-overlay-board { min-height: 520px; position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.7fr); gap: 24px; align-items: center; padding: clamp(18px,4vw,42px); overflow: hidden; border: 1px solid var(--v-line); border-radius: 30px; background: linear-gradient(150deg,var(--v-canvas-deep),var(--v-canvas)); }
.v-overlay-board::before { position: absolute; inset: 0; background: var(--v-overlay); content: ""; }
.v-overlay-board > * { position: relative; z-index: 1; }
.v-overlay-board__side { display: grid; gap: 16px; }
.v-long-copy { display: grid; gap: 14px; }
.v-long-copy__row { padding: 16px; border: 1px solid var(--v-line); border-radius: 16px; background: var(--v-surface-2); }
.v-long-copy__row span { display: block; margin-bottom: 6px; color: var(--v-text-3); font-size: 11px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }

.v-shell-page { min-height: 100dvh; background-color: var(--v-canvas); overscroll-behavior-y: none; }
.v-app-shell { min-height: 100dvh; display: grid; grid-template-columns: 80px minmax(0,1fr); }
.v-side-rail { position: sticky; z-index: 20; top: 0; height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 18px 8px; border-right: 1px solid color-mix(in srgb,var(--v-line) 68%,transparent); background: color-mix(in srgb,var(--v-chrome) 82%,var(--v-canvas)); -webkit-backdrop-filter: blur(8px) saturate(1.04); backdrop-filter: blur(8px) saturate(1.04); }
.v-side-rail .v-brand__name { display: none; }
.v-side-rail__nav { width: 100%; display: grid; gap: 5px; margin-top: 10px; }
.v-nav-item { min-height: 58px; min-width: 0; display: grid; place-items: center; align-content: center; gap: 4px; padding: 6px 3px; border-radius: 16px; background: transparent; color: var(--v-text-2); text-decoration: none; }
.v-nav-item span { max-width: 100%; overflow: hidden; display: -webkit-box; font-size: 10px; font-weight: 650; line-height: 1.08; text-align: center; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.v-nav-item.is-active { background: var(--v-surface-accent); color: var(--v-accent-strong); }
.v-app-main { min-width: 0; }
.v-app-topbar { position: relative; z-index: 15; width: min(calc(100% - 48px),var(--v-shell-content)); min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto; padding: 16px 0 0; background: transparent; }
.v-app-topbar > .v-brand { display: none; }
.v-app-topbar__date { color: var(--v-text-3); font-size: 12px; font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: .035em; }
.v-app-topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.v-sign-in { color: var(--v-accent-strong); }
.v-app-content { width: min(calc(100% - 48px),var(--v-shell-content)); margin: 0 auto; padding: 14px 0 64px; }
.v-money-layout { min-width: 0; display: grid; gap: 18px; align-items: start; }

/* The primary balance stays geometrically centered; secondary values fill the side zones. */
.v-overview { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.v-balance-cluster { min-width: 0; min-height: 248px; display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 10px; padding: 18px 20px; }
.v-overview .v-balance-card { min-height: 0; display: grid; align-content: center; padding: 0; text-align: center; }
.v-overview .v-balance-card__hero { width: 100%; }
.v-overview .v-balance-card__amount { margin: 7px 0 3px; }
.v-overview .v-balance-card__amount strong { font-size: clamp(40px,3.8vw,50px); }
.v-overview .v-balance-card__amount.is-long strong { font-size: clamp(35px,3.35vw,45px); }
.v-overview .v-balance-card__amount.is-very-long strong { font-size: clamp(30px,2.9vw,40px); }
.v-overview .v-stat { justify-items: center; text-align: center; }
.v-overview .v-action-pair { gap: 12px; }
.v-overview .v-action-pair .v-button { min-height: 50px; }
.v-overview > .v-goal-card { min-height: 248px; grid-template-columns: minmax(0,1fr) 188px; justify-content: stretch; gap: 18px; padding: 16px 24px; }
.v-overview > .v-goal-card .v-goal-card__copy { align-content: center; }
.v-overview > .v-goal-card .v-goal-card__name { font-size: clamp(31px,2.65vw,36px); }
.v-overview > .v-goal-card .v-goal-card__amount { font-size: 15px; }
.v-overview > .v-goal-card .v-goal-card__pace { font-size: 13px; }
.v-overview > .v-goal-card .v-goal-card__visual,
.v-overview > .v-goal-card .v-goal-card__art { width: 188px; }

.v-breakdown-card { min-width: 0; min-height: 306px; display: flex; flex-direction: column; padding: 24px 26px 20px; }
.v-breakdown-card__header { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.v-breakdown-card__header > div:first-child { min-width: 150px; display: grid; gap: 7px; }
.v-breakdown-card__total { font-size: 23px; font-weight: 760; letter-spacing: -.025em; white-space: nowrap; }
.v-breakdown-tabs { min-width: 230px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; padding: 3px; border: 1px solid var(--v-line); border-radius: 14px; background: var(--v-surface-2); }
.v-breakdown-tabs button { min-width: 0; min-height: 38px; padding: 5px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--v-text-2); font-size: 12px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; transition: background-color var(--v-motion-fast) ease,color var(--v-motion-fast) ease,transform var(--v-motion-standard) var(--v-ease-out); }
.v-breakdown-tabs button[aria-pressed="true"] { background: var(--v-surface-accent); color: var(--v-accent-strong); }
.v-breakdown-list { min-height: 0; display: grid; margin-top: 12px; }
.v-breakdown-row { min-width: 0; min-height: 42px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 5px 4px; border: 0; border-bottom: 1px solid color-mix(in srgb,var(--v-line) 76%,transparent); background: transparent; color: inherit; text-align: left; transition: background-color var(--v-motion-fast) ease,border-color var(--v-motion-fast) ease; }
.v-breakdown-row:last-child { border-bottom: 0; }
.v-breakdown-row__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--v-surface-3); color: var(--v-accent-strong); }
.v-breakdown-row__icon .v-icon { width: 17px; height: 17px; }
.v-breakdown-row__name { min-width: 0; overflow: hidden; color: var(--v-text-2); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.v-breakdown-row__amount { font-size: 14px; font-weight: 730; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-breakdown-card__all { min-height: 38px; align-self: flex-end; margin: auto -8px -8px 0; padding-inline: 10px; font-size: 13px; }
.v-breakdown-card__all .v-icon,.v-breakdown-dialog__all .v-icon { width: 17px; height: 17px; }
.v-money-layout:is([data-goal-state="hidden"],[data-goal-state="none"]) .v-overview > .v-goal-card { display: none; }
.v-money-layout[data-goal-state="none"] .v-goal-create { display: inline-flex; }
.v-money-layout[data-secondary-state="empty"] .v-overview { grid-template-columns: minmax(0,560px); justify-content: center; }

.v-insight-card { min-width: 0; min-height: 248px; display: grid; align-content: center; gap: 12px; padding: 18px 22px; }
.v-insight-card__header { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.v-insight-card__header > div { min-width: 0; display: grid; gap: 5px; }
.v-insight-card__result { overflow: hidden; font-size: clamp(26px,2.5vw,32px); font-weight: 770; letter-spacing: -.035em; line-height: 1.06; text-overflow: ellipsis; white-space: nowrap; }
.v-insight-card__caption { color: var(--v-text-2); font-size: 12px; }
.v-insight-card__details { min-height: 40px; margin: -6px -9px 0 0; padding-inline: 9px; font-size: 13px; }
.v-insight-card__details .v-icon { width: 17px; height: 17px; }
.v-balance-flow { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); align-items: center; gap: 9px; padding: 10px 12px; border-radius: 15px; background: color-mix(in srgb,var(--v-surface-3) 58%,transparent); }
.v-balance-flow > div { min-width: 0; display: grid; gap: 2px; }
.v-balance-flow > div:last-child { text-align: right; }
.v-balance-flow span { color: var(--v-text-3); font-size: 10px; }
.v-balance-flow strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.v-balance-flow > .v-icon { width: 18px; height: 18px; color: var(--v-text-3); }
.v-insight-card__facts { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; }
.v-insight-card__facts > div { min-width: 0; display: grid; gap: 4px; padding-top: 9px; border-top: 1px solid var(--v-line); }
.v-insight-card__facts dt { color: var(--v-text-3); font-size: 11px; }
.v-insight-card__facts dd { min-width: 0; margin: 0; overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.v-insight-card__facts--wide { grid-template-columns: repeat(2,minmax(0,1fr)); }
.v-insight-card__facts--three { grid-template-columns: repeat(3,minmax(0,1fr)); }

.v-activity-card { min-width: 0; width: min(100%,1000px); margin-inline: auto; padding: 4px 0 0; }
.v-activity-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 4px 13px; }
.v-activity-card__all-link { display: none; }
.v-activity-card .v-list--overview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 12px; }
.v-activity-card .v-list--overview > li { min-width: 0; }
.v-activity-card .v-list--overview .v-list-row { min-height: 74px; padding: 10px 14px; border: 1px solid transparent; border-radius: 16px; background: color-mix(in srgb,var(--v-surface-1) 88%,var(--v-canvas)); box-shadow: 0 7px 20px rgb(23 58 62 / 4%); }
:root[data-theme="dark"] .v-activity-card .v-list--overview .v-list-row { background: color-mix(in srgb,var(--v-surface-1) 92%,var(--v-canvas)); box-shadow: 0 7px 20px rgb(0 0 0 / 12%); }
.v-activity-card .v-list-row__copy strong { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.v-list-row--more { grid-template-columns: 44px minmax(0,1fr) 22px; color: var(--v-accent-strong); }
.v-list-row__chevron { width: 18px; height: 18px; justify-self: end; }
.v-bottom-nav { display: none; }

.v-breakdown-dialog { width: min(460px,calc(100% - 32px)); max-height: min(720px,calc(100dvh - 32px)); padding: 0; border: 0; overflow: visible; background: transparent; color: var(--v-text-1); opacity: 0; transform: translateY(8px) scale(.985); transform-origin: var(--v-panel-origin,50% 50%); }
.v-breakdown-dialog[open] { animation: v-panel-in var(--v-motion-panel) var(--v-ease-out) forwards; }
.v-breakdown-dialog.is-closing { animation: v-panel-out 140ms ease forwards; }
.v-breakdown-dialog::backdrop { background: var(--v-overlay); animation: v-backdrop-in var(--v-motion-standard) ease both; }
.v-breakdown-dialog.is-closing::backdrop { animation: v-backdrop-out 140ms ease both; }
.v-breakdown-dialog__surface { max-height: min(720px,calc(100dvh - 32px)); overflow: auto; padding: 22px; border: 1px solid var(--v-line); border-radius: 25px; background: var(--v-surface-1); box-shadow: var(--v-shadow-float); }
.v-breakdown-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.v-breakdown-dialog__header > div { display: grid; gap: 5px; }
.v-breakdown-dialog__total { display: block; margin: 18px 0 14px; font-size: 29px; font-weight: 770; letter-spacing: -.035em; }
.v-breakdown-dialog .v-breakdown-tabs { width: 100%; }
.v-breakdown-dialog .v-breakdown-list { margin-top: 14px; }
.v-breakdown-dialog .v-breakdown-row { min-height: 50px; }
.v-breakdown-dialog__all { width: 100%; margin-top: 14px; }
.v-period-tabs { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; margin-top: 18px; padding: 3px; border: 1px solid var(--v-line); border-radius: 14px; background: var(--v-surface-2); }
.v-period-tabs button { min-width: 0; min-height: 40px; padding: 5px 7px; border: 0; border-radius: 10px; background: transparent; color: var(--v-text-2); font-size: 12px; font-weight: 700; line-height: 1.15; }
.v-period-tabs button[aria-pressed="true"] { background: var(--v-surface-accent); color: var(--v-accent-strong); }
.v-dynamics-summary { display: grid; justify-items: center; gap: 5px; margin-top: 15px; padding: 16px; border-radius: 18px; background: color-mix(in srgb,var(--v-surface-3) 55%,transparent); text-align: center; }
.v-dynamics-summary__delta { font-size: 30px; font-weight: 770; letter-spacing: -.035em; line-height: 1.05; }
.v-balance-flow--dialog { width: 100%; margin-top: 9px; padding: 9px 0 0; border-top: 1px solid var(--v-line); border-radius: 0; background: transparent; }
.v-dynamics-sources { display: grid; gap: 0; margin: 14px 0 0; }
.v-dynamics-sources > div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 2px; border-bottom: 1px solid var(--v-line); }
.v-dynamics-sources > div:last-child { border-bottom: 0; }
.v-dynamics-sources dt { color: var(--v-text-2); font-size: 13px; }
.v-dynamics-sources dd { margin: 0; font-size: 14px; font-weight: 730; white-space: nowrap; }
@keyframes v-panel-in { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes v-panel-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(6px) scale(.988); } }
@keyframes v-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes v-backdrop-out { from { opacity: 1; } to { opacity: 0; } }

@media (hover: hover) and (pointer: fine) {
  .v-button:hover,.v-icon-button:hover { transform: translateY(-1px); box-shadow: var(--v-shadow-control); }
  .v-app-topbar .v-icon-button:hover { border-color: color-mix(in srgb,var(--v-accent) 34%,var(--v-line)); background: color-mix(in srgb,var(--v-accent) 7%,var(--v-surface-1)); box-shadow: none; }
  .v-nav-item:hover { transform: translateY(-1px); background: color-mix(in srgb,var(--v-accent) 8%,transparent); color: var(--v-text-1); }
  .v-interactive-surface:hover { z-index: 1; border-color: color-mix(in srgb,var(--v-accent) 36%,var(--v-line)); box-shadow: var(--v-shadow-lift); transform: translateY(-1px); }
  .v-list-row:hover { border-color: color-mix(in srgb,var(--v-accent) 30%,var(--v-line)); background: color-mix(in srgb,var(--v-accent) 5%,var(--v-surface-1)); box-shadow: var(--v-shadow-control); transform: translateY(-1px); }
  .v-activity-card .v-list--overview .v-list-row:hover { border-color: transparent; background: color-mix(in srgb,var(--v-accent) 6%,var(--v-surface-1)); box-shadow: 0 10px 24px rgb(23 58 62 / 8%); transform: translateY(-2px); }
  :root[data-theme="dark"] .v-activity-card .v-list--overview .v-list-row:hover { background: color-mix(in srgb,var(--v-accent) 7%,var(--v-surface-1)); box-shadow: 0 10px 24px rgb(0 0 0 / 18%); }
  .v-goal-card:hover { border-color: color-mix(in srgb,var(--v-line) 72%,transparent); background: var(--v-surface-1); }
  .v-goal-card:hover .v-goal-card__art,.v-goal-card__visual-button:hover .v-goal-card__art { transform: translateY(-2px) scale(1.005); }
  .v-balance-card__primary:hover { background: transparent; }
  .v-balance-card__primary:hover .v-balance-card__amount { transform: translateY(-1px); }
  .v-balance-period:hover { background: color-mix(in srgb,var(--v-accent) 7%,transparent); color: var(--v-accent-strong); transform: translateY(-1px); }
  .v-stat:hover { border-color: transparent; background: transparent; }
  .v-stat:hover strong { transform: translateY(-1px); }
  .v-stat strong { transition: transform var(--v-motion-standard) var(--v-ease-out); }
  .v-breakdown-row:hover { border-color: color-mix(in srgb,var(--v-accent) 24%,var(--v-line)); background: color-mix(in srgb,var(--v-accent) 7%,transparent); }
  .v-breakdown-tabs button:hover,.v-period-tabs button:hover { color: var(--v-text-1); }
  .v-popover__option:hover { background: color-mix(in srgb,var(--v-accent) 8%,transparent); color: var(--v-text-1); transform: translateX(2px); }
}

.v-list-row:active { transform: scale(.99); transition-duration: 90ms; }
.v-balance-card__primary:active { transform: none; }
.v-balance-card__primary:active .v-balance-card__amount { transform: scale(.99); transition-duration: 90ms; }
.v-goal-card:has(.v-goal-card__hit:active) .v-goal-card__art { transform: translateY(0) scale(.99); transition-duration: 90ms; }

@media (min-width: 720px) {
  .v-money-layout[data-secondary-state="summary"] .v-balance-period { display: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .v-lab-toolbar,.v-side-rail,.v-popover { background: color-mix(in srgb,var(--v-surface-1) 92%,var(--v-canvas)); }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .v-app-topbar,.v-app-content { width: calc(100% - 36px); }
  .v-overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .v-balance-cluster { min-height: 248px; padding-inline: 18px; }
  .v-overview > .v-goal-card { min-height: 248px; grid-template-columns: minmax(170px,1fr) 158px; gap: 14px; padding-inline: 20px; }
  .v-overview > .v-goal-card .v-goal-card__visual,
  .v-overview > .v-goal-card .v-goal-card__art { width: 158px; }
  .v-overview > .v-goal-card .v-goal-card__name { font-size: 29px; }
  .v-overview .v-balance-card__amount strong { font-size: clamp(40px,4.5vw,48px); }
  .v-overview .v-balance-card__amount.is-long strong { font-size: clamp(35px,4vw,43px); }
  .v-overview .v-balance-card__amount.is-very-long strong { font-size: clamp(30px,3.5vw,38px); }
  .v-insight-card { min-height: 248px; padding-inline: 20px; }
  .v-insight-card__facts--three { gap: 9px; }
  .v-insight-card__facts dd { font-size: 12px; }
  .v-breakdown-card { min-height: 252px; padding-inline: 22px; }
  .v-breakdown-card__header { align-items: flex-start; }
  .v-breakdown-tabs { min-width: 206px; }
}

@media (max-width: 1099px) {
  .v-grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v-swatches { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

/* Tablet portrait is intentionally denser than phone and keeps the inline statistics slot. */
@media (min-width: 720px) and (max-width: 899px) {
  .v-app-topbar,.v-app-content { width: calc(100% - 32px); }
  .v-app-content { padding-top: 14px; }
  .v-overview { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .v-overview > * { width: min(100%,660px); margin-inline: auto; }
  .v-balance-cluster { min-height: 230px; padding: 18px 22px; }
  .v-overview .v-balance-card { text-align: center; }
  .v-overview .v-balance-card__primary { justify-items: center; text-align: center; }
  .v-overview .v-balance-card__amount { justify-content: center; }
  .v-overview .v-stat { justify-items: center; text-align: center; }
  .v-overview > .v-goal-card { min-height: 230px; grid-template-columns: minmax(0,1fr) 178px; gap: 20px; padding: 18px 38px; }
  .v-overview > .v-goal-card .v-goal-card__visual,
  .v-overview > .v-goal-card .v-goal-card__art { width: 178px; }
  .v-overview > .v-goal-card .v-goal-card__name { font-size: 30px; }
  .v-insight-card { min-height: 230px; padding: 20px 26px; }
  .v-breakdown-card { min-height: 0; padding: 24px 28px 20px; }
  .v-breakdown-card__header > div:first-child { min-width: 180px; }
  .v-breakdown-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
  .v-breakdown-row:nth-child(3) { border-bottom: 0; }
  .v-activity-card .v-list--overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .v-activity-card .v-list--overview .v-list-row { min-height: 74px; padding: 9px 12px; border-color: transparent; }
}

@media (max-width: 719px) {
  :root { --v-radius-card: 20px; --v-radius-panel: 26px; }
  .v-lab-toolbar { gap: 8px; padding-inline: 14px; }
  .v-lab-toolbar .v-brand__name { max-width: 128px; }
  .v-lab-toolbar__actions .v-button { min-height: 44px; padding-inline: 12px; font-size: 13px; }
  .v-lab-page { padding-inline: 16px; }
  .v-lab-hero { grid-template-columns: 1fr; align-items: start; }
  .v-lab-hero__meta { justify-content: flex-start; }
  .v-grid--2,.v-grid--3,.v-grid--4 { grid-template-columns: 1fr; }
  .v-swatches { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v-type-row { grid-template-columns: 1fr; gap: 5px; }
  .v-demo { padding: 16px; }
  .v-goal-card { min-height: 0; grid-template-columns: minmax(0,1fr) 124px; justify-content: stretch; gap: 10px; padding: 18px; }
  .v-goal-card__name { font-size: 22px; }
  .v-goal-card__visual,.v-goal-card__visual-button,.v-goal-card__art { width: 124px; }
  .v-goal-card__visual,.v-goal-card__visual-button { padding-bottom: 22px; }
  .v-goal-card--no-image { min-height: 132px; grid-template-columns: minmax(0,1fr) auto; gap: 14px; }
  .v-goal-card--no-image .v-goal-card__visual { padding-left: 14px; }
  .v-goal-card__percent { font-size: 42px; }
  .v-overlay-board { min-height: 720px; grid-template-columns: 1fr; align-content: end; padding: 14px; }
  .v-overlay-board__side { align-self: start; }
  .v-panel__header { padding-left: 18px; }
  .v-panel__body,.v-panel__actions { padding-left: 18px; padding-right: 18px; }

  .v-app-shell { display: block; }
  .v-side-rail { display: none; }
  .v-app-main { position: relative; }
  .v-app-topbar { position: absolute; top: 0; right: 0; width: auto; min-height: calc(52px + var(--v-safe-top)); justify-content: flex-end; margin: 0; padding: calc(8px + var(--v-safe-top)) max(14px,var(--v-safe-right)) 0 0; border: 0; background: transparent; pointer-events: none; }
  .v-app-topbar > .v-brand,.v-app-topbar__date { display: none; }
  .v-app-topbar__actions { pointer-events: auto; }
  .v-app-topbar .v-icon-button { width: 44px; height: 44px; flex-basis: 44px; background: color-mix(in srgb,var(--v-surface-1) 92%,transparent); box-shadow: none; }
  .v-app-content { width: 100%; padding: calc(66px + var(--v-safe-top)) max(14px,var(--v-safe-right)) calc(96px + var(--v-safe-bottom)) max(14px,var(--v-safe-left)); }
  .v-money-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .v-overview { grid-template-columns: minmax(0,1fr); gap: 14px; }

  /* Phone keeps the accepted hierarchy. Inline month detail is desktop/tablet only. */
  .v-balance-cluster { min-height: 0; display: grid; gap: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .v-overview .v-balance-card { min-height: 0; display: block; padding: 22px; border: 1px solid color-mix(in srgb,var(--v-line) 72%,transparent); border-radius: var(--v-radius-card); background: var(--v-surface-1); box-shadow: var(--v-shadow-card); text-align: center; }
  .v-overview .v-balance-card__amount { justify-content: center; margin: 8px 0 19px; }
  .v-overview .v-balance-card__amount strong { font-size: clamp(40px,11.6vw,48px); }
  .v-overview .v-balance-card__amount.is-long strong { font-size: clamp(36px,10.2vw,43px); }
  .v-overview .v-balance-card__amount.is-very-long strong { font-size: clamp(31px,8.8vw,38px); }
  .v-money-layout[data-secondary-state="summary"] .v-balance-period { display: inline-flex; }
  .v-money-layout[data-goal-state="none"] .v-goal-create { position: static; margin-top: 2px; }
  .v-overview .v-stat { justify-items: center; text-align: center; }
  .v-overview .v-action-pair { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .v-overview .v-action-pair.is-stacked { grid-template-columns: minmax(0,1fr); }
  .v-overview .v-action-pair .v-button { min-height: 52px; }
  .v-overview > .v-goal-card { min-height: 0; grid-template-columns: minmax(0,1fr) 136px; justify-content: stretch; gap: 8px; padding: 20px; }
  .v-overview > .v-goal-card .v-goal-card__copy { gap: 6px; }
  .v-overview > .v-goal-card .v-goal-card__name { font-size: 24px; }
  .v-overview > .v-goal-card .v-goal-card__visual,
  .v-overview > .v-goal-card .v-goal-card__visual-button,
  .v-overview > .v-goal-card .v-goal-card__art { width: 136px; }
  .v-overview > .v-breakdown-card,.v-overview > .v-insight-card { display: none !important; }
  .v-breakdown-card { min-height: 0; padding: 20px; }
  .v-breakdown-card__header { display: grid; gap: 14px; }
  .v-breakdown-tabs { width: 100%; min-width: 0; }
  .v-activity-card { padding: 20px; border: 1px solid color-mix(in srgb,var(--v-line) 72%,transparent); border-radius: var(--v-radius-card); background: var(--v-surface-1); box-shadow: var(--v-shadow-card); }
  .v-activity-card__heading { width: 100%; }
  .v-activity-card__all-link { display: inline-flex; min-height: 40px; margin-right: -8px; padding-inline: 9px; }
  .v-activity-card .v-section-title { font-size: clamp(21px,5.8vw,24px); }
  .v-activity-card .v-list--overview { display: block; }
  .v-activity-card .v-list--overview .v-list-row { min-height: 68px; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--v-line); border-radius: 0; background: transparent; box-shadow: none; }
  .v-activity-card .v-list--overview > li:nth-last-child(2) .v-list-row { border-bottom: 0; }
  .v-activity-more { display: none; }
  .v-list-row__value { font-size: 14px; }

  .v-bottom-nav { position: fixed; z-index: 25; left: 50%; bottom: max(8px,var(--v-safe-bottom)); width: min(calc(100% - 56px),276px); min-height: 56px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; padding: 3px; border: 1px solid color-mix(in srgb,var(--v-nav-border) 84%,var(--v-text-2)); border-radius: 19px; background: var(--v-nav-glass); box-shadow: 0 12px 28px color-mix(in srgb,var(--v-canvas-deep) 27%,transparent),inset 0 1px 0 color-mix(in srgb,var(--v-text-1) 9%,transparent); transform: translateX(-50%); isolation: isolate; }
  .v-bottom-nav .v-nav-item { min-height: 48px; gap: 2px; padding: 3px 1px; border-radius: 15px; color: var(--v-text-1); }
  .v-bottom-nav .v-nav-item.is-active { background: var(--v-nav-active); color: var(--v-accent-strong); }
  .v-bottom-nav .v-nav-item span { font-size: 9.5px; }

  .v-breakdown-dialog { position: fixed; inset: auto 0 0; width: auto; max-height: calc(100dvh - 24px); margin: 0 max(12px,var(--v-safe-right)) max(12px,var(--v-safe-bottom)) max(12px,var(--v-safe-left)); transform: translateY(22px); transform-origin: 50% 100%; }
  .v-breakdown-dialog[open] { animation-name: v-sheet-in; }
  .v-breakdown-dialog.is-closing { animation-name: v-sheet-out; }
  .v-breakdown-dialog__surface { max-height: calc(100dvh - 24px); padding: 20px 18px calc(18px + var(--v-safe-bottom)); border-radius: 26px; }
  @keyframes v-sheet-in { to { opacity: 1; transform: translateY(0); } }
  @keyframes v-sheet-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(18px); } }
}

@media (max-width: 390px) {
  .v-lab-toolbar .v-brand__name { display: none; }
  .v-lab-toolbar__actions { gap: 4px; }
  .v-action-pair { gap: 8px; }
  .v-action-pair .v-button { font-size: 14px; }
  .v-goal-card { min-height: 0; grid-template-columns: minmax(0,1fr) 116px; }
  .v-goal-card__amount { font-size: 12px; }
  .v-goal-card__visual,.v-goal-card__visual-button,.v-goal-card__art { width: 116px; }
  .v-goal-card__visual-percent { min-width: 52px; padding: 5px 8px; font-size: 16px; }
  .v-stat strong { font-size: 18px; }
  .v-overview > .v-goal-card { grid-template-columns: minmax(0,1fr) 126px; gap: 6px; padding-inline: 18px; }
  .v-overview > .v-goal-card .v-goal-card__visual,
  .v-overview > .v-goal-card .v-goal-card__visual-button,
  .v-overview > .v-goal-card .v-goal-card__art { width: 126px; }
}

@media (max-width: 350px) {
  .v-activity-card .v-section-title { font-size: 20px; }
  .v-activity-card .v-list--overview .v-list-row { grid-template-columns: 42px minmax(0,1fr); }
  .v-activity-card .v-list--overview .v-list-row__icon { grid-row: 1 / span 2; }
  .v-activity-card .v-list--overview .v-list-row__copy,
  .v-activity-card .v-list--overview .v-list-row__value { grid-column: 2; }
  .v-activity-card .v-list--overview .v-list-row__value { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
