:root {
  color-scheme: dark;
  --base: var(--app-base);
  --panel: var(--app-panel);
  --field: var(--app-field);
  --line: var(--app-line);
  --ink: #f5f5f6;
  --muted: #b7bbc7;
  --accent: #64e6bd;
  --danger: #ff9eac;
  --purple: #ad9afc;
  --edge: clamp(16px, 4vw, 56px);
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--base);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
p, h1, h2, ul { margin: 0; }
h1 { font-size: clamp(2.45rem, 6.2vw, 5rem); font-weight: 620; line-height: .97; letter-spacing: -.066em; }
h2 { font-size: 1.13rem; font-weight: 620; letter-spacing: -.018em; line-height: 1.2; }
p, li, label { line-height: 1.5; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 2 * var(--edge))); margin-inline: auto; }
.quiet { color: var(--muted); }
.skip { position: absolute; left: -100vw; }
.skip:focus { left: var(--edge); top: 10px; z-index: 2; padding: 10px; background: var(--base); }
.bar { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #182331d9, #111a2466); }
.masthead { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.masthead-actions { display: flex; align-items: center; gap: 8px; }
.workspace-voice-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 12px;
  color: #d1fae9;
  background: #263e38;
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.workspace-voice-shortcut:hover { background: #34554b; }
.workspace-voice-shortcut > [aria-hidden] { color: #8ee3cb; }
.desktop-window-button[hidden] { display: none; }
.desktop-window-button { width: 43px; padding-inline: 7px; font-size: 1.16rem; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 630; text-decoration: none; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; background: linear-gradient(#a2efd6, var(--accent)); box-shadow: var(--app-accent-shadow); color: #142720; border-radius: 12px; font-size: .83rem; letter-spacing: -.03em; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }
.tabs a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 7px 16px; border-radius: 100px; color: var(--muted); text-decoration: none; font-size: .94rem; }
.tabs a:hover { background: var(--panel); color: var(--ink); }
.tabs a[aria-current] { background: linear-gradient(160deg, #2a463f, #1e3430); box-shadow: inset 0 1px 0 #b3ebd31a; color: #a4edda; }
.tab-icon { min-width: 15px; font-size: 1.19rem; font-weight: 650; text-align: center; line-height: 1; }
main { padding-block: clamp(27px, 6vw, 80px) 70px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px 26px; flex-wrap: wrap; margin-bottom: clamp(20px, 4vw, 40px); }
.page-heading p { margin-top: 10px; color: var(--muted); }
.page-heading .date-line { margin: 0 0 12px; font-size: .91rem; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; margin-bottom: 23px; }
.stat { min-width: 0; padding: clamp(14px, 2.6vw, 26px); border-radius: 18px; background: var(--app-surface); }
.stat.featured, .cash-summary .stat.featured { background: linear-gradient(150deg, #29483e, #20332e); }
.stat h2 { color: var(--muted); font-size: .91rem; font-weight: 500; }
.stat p { margin-top: 9px; font-size: clamp(1.35rem, 3.2vw, 2.4rem); line-height: 1.15; font-weight: 650; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat.featured p, .positive { color: var(--accent); }
.negative { color: var(--danger); }
.overview { background: #0c1016; }
.overview main { padding-top: clamp(15px, 3vw, 34px); }
.garage-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; min-height: clamp(312px, 34vw, 424px); margin-bottom: 20px; border-radius: 22px; background: #111b25; box-shadow: var(--app-raised); }
.garage-photo, .garage-hero::after { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.garage-photo { display: block; overflow: hidden; }
.garage-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 68% 55%; }
.garage-hero::after { content: ""; background: linear-gradient(90deg, #05080cf2 0%, #070b10bf 27%, #0b101619 61%, transparent), linear-gradient(0deg, #06090ed4, transparent 38%); }
.garage-welcome { padding: clamp(23px, 5vw, 58px); }
.garage-welcome time { display: block; margin-bottom: 13px; color: #d3dbe5; font-size: .88rem; font-variant-numeric: tabular-nums; }
.garage-welcome h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); }
.garage-salutation { display: block; margin-bottom: 5px; color: #d7e4f0; font-size: .46em; font-weight: 520; letter-spacing: -.027em; line-height: 1.12; }
.welcome-play { position: absolute; top: 15px; right: 15px; display: grid; width: 43px; min-height: 43px; place-items: center; border: 1px solid #9aafc180; border-radius: 50%; background: #131c28d9; color: #edf5ff; font-size: 1.2rem; }
.welcome-play:hover { border-color: currentColor; background: #1c2a3b; }
.welcome-play[hidden] { display: none; }
.garage-name { display: block; }
.welcome-wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.welcome-wave i {
  --reach: .65;
  width: 2px;
  height: 100%;
  border-radius: 99px;
  background: #bcf4fa;
  box-shadow: 0 0 6px #82f0ed70;
  transform: scaleY(calc(.18 + var(--voice, 0) * var(--reach)));
}
.welcome-wave i:nth-child(odd) { --reach: .45; }
.welcome-wave i:nth-child(3) { --reach: .82; }
.welcome-play.is-speaking { border-color: #88d8e8; box-shadow: 0 0 20px #74d5eb35; }
.garage-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.garage-actions a { padding-inline: 16px; border-radius: 9px; gap: 7px; }
.garage-actions .primary { background: #def8ed; border-color: #def8ed; }
.garage-actions .primary:hover { background: #fff; border-color: #fff; }
.garage-actions .outline { background: #131b27c9; border-color: #717d8c; }
.overview-finance { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); gap: 14px; align-items: stretch; margin-bottom: 14px; }
.overview-finance .cash-summary, .overview-wealth { margin-bottom: 0; border-radius: 20px; background: var(--app-surface); box-shadow: var(--app-raised); }
.overview-wealth { overflow: hidden; }
.overview-wealth .wallet-balance { border: 0; border-radius: 0; background: radial-gradient(ellipse at top right, #22374c, transparent 74%), #151d29; }
.overview-wealth .wallet-total { font-size: clamp(2.1rem, 4vw, 3.55rem); }
.overview-wealth .wallet-pair .stat { padding: 10px 0 0; border-radius: 0; background: transparent; border-top: 1px solid #394553; }
.overview-wealth .allocation { background: transparent; border: 0; border-top: 1px solid #313a46; border-radius: 0; grid-template-columns: minmax(77px, 108px) minmax(0, 1fr); }
.overview-finance .cash-summary .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.overview-finance .cash-summary .stat { padding: 8px 0 0; border-radius: 0; border-top: 1px solid var(--line); background: transparent; }
.overview-finance .cash-summary .stat p { margin-top: 4px; font-size: clamp(1.14rem, 1.9vw, 1.6rem); }
.wallet-balance { display: grid; align-content: space-between; gap: 14px; min-width: 0; padding: clamp(18px, 3.6vw, 37px); border-radius: 27px; background: radial-gradient(ellipse at top right, #294e43, transparent 74%), #1c2b28; }
.wallet-balance h2 { color: #c8dfd7; font-size: 1rem; }
.wallet-total { color: #effff9; font-size: clamp(2.15rem, 5.3vw, 4rem); line-height: 1.1; letter-spacing: -.066em; font-weight: 665; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wallet-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wallet-pair .stat { background: #15221f; padding: clamp(12px, 1.6vw, 17px); }
.wallet-pair .stat p { font-size: clamp(1.14rem, 2.1vw, 1.58rem); }
.allocation { min-width: 0; display: grid; grid-template-columns: minmax(95px, 142px) minmax(0, 1fr); align-items: center; gap: clamp(12px, 2.1vw, 23px); padding: clamp(16px, 2.2vw, 24px); background: var(--panel); border-radius: 27px; }
.allocation h2 { margin-bottom: 8px; }
.allocation-ring { position: relative; width: 100%; aspect-ratio: 1; }
.allocation-ring svg { display: block; width: 100%; height: 100%; overflow: visible; rotate: -90deg; }
.allocation-ring circle { fill: none; stroke-width: 12; }
.ring-track { stroke: #343944; }
.ring-segment { stroke: var(--tone); }
.allocation-ring .ring-sweep { stroke: #fff; stroke-width: 16; }
.allocation-ring > div { position: absolute; inset: 0; display: grid; align-content: center; text-align: center; }
.allocation-ring strong { font-size: clamp(1.33rem, 3vw, 2rem); line-height: 1; }
.allocation-ring span { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.tone-0 { --tone: var(--accent); }
.tone-1 { --tone: var(--purple); }
.tone-2 { --tone: #f3c291; }
.tone-3 { --tone: #84caff; }
.tone-4 { --tone: #f59ab4; }
.tone-neutral { --tone: #a4aab9; }
.legend { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.legend li { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: center; column-gap: 7px; min-width: 0; }
.legend strong { grid-column: 2; line-height: 1.2; overflow-wrap: anywhere; }
.legend-dot { width: 7px; height: 7px; background: var(--tone); border-radius: 100%; }
.overview-grid, .edit-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.edit-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.panel { min-width: 0; padding: clamp(15px, 2.8vw, 29px); background: var(--app-surface); border-radius: 23px; box-shadow: var(--app-raised); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.panel-heading a { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; font-size: .91rem; }
.cash-summary { margin-bottom: 14px; }
.cash-summary .stats { margin: 14px 0 0; }
.cash-summary .stat { background: var(--field); }
.cash-allocation { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.cash-allocation h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 620; }
.cash-allocation-body { display: grid; grid-template-columns: clamp(86px, 17vw, 146px) minmax(0, 525px); align-items: center; gap: clamp(14px, 3vw, 32px); }
.cash-legend { display: grid; gap: 8px; padding: 0; list-style: none; font-size: .91rem; }
.cash-legend li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto minmax(3.4em, auto); align-items: baseline; gap: 0 10px; }
.cash-legend .legend-dot { align-self: center; }
.cash-legend strong, .cash-share { text-align: right; font-variant-numeric: tabular-nums; }
.cash-share { color: var(--muted); }
.cash-check { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .875rem; }
.cash-audit summary { cursor: pointer; font-weight: 620; }
.cash-audit p { margin-top: 8px; }
.cash-audit table { width: 100%; max-width: 560px; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cash-audit th, .cash-audit td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.cash-audit th:first-child { text-align: left; padding-left: 0; }
.cash-audit tbody th { font-weight: 450; }
.cash-audit td { white-space: nowrap; }
.empty { margin-top: 16px; color: var(--muted); }
.rows { list-style: none; padding: 0; margin-top: 13px; }
.rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.rows li > div { display: grid; overflow-wrap: anywhere; min-width: 0; }
.rows li .quiet { font-size: .89rem; }
.rows strong { overflow-wrap: anywhere; }
.row-end { justify-items: end; text-align: right; }
.ledger-rows li[id] { scroll-margin-block-start: 120px; }
.ledger-rows li:target { background: #14322a; border-color: var(--accent); border-radius: 10px; padding-inline: 10px; }
.goal { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.goal-detail { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.goal-detail > div { display: grid; min-width: 0; overflow-wrap: anywhere; }
.goal-detail span { font-size: .9rem; color: var(--muted); }
.goal:target { scroll-margin-block-start: 24px; }
.goal-timeline { list-style: none; padding: 0; margin-block: 10px; }
.goal-timeline li { position: relative; }
.goal-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  inset: 20px auto -20px 9px;
  width: 1px;
  background: var(--line);
}
.goal-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: start;
}
.goal-step > span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--panel);
  font-size: .72rem;
}
.goal-step[aria-pressed="true"] > span { color: #122c24; background: var(--accent); border-color: var(--accent); }
.amount-note { font-size: .89rem; font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 8px; accent-color: var(--accent); margin-block: 11px 4px; }
.edit { display: inline-flex; align-items: center; min-height: 36px; font-size: .9rem; }
.record-form { display: grid; gap: 12px; margin-top: 16px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fields-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.projection-summary { margin-bottom: 16px; }
.business-workspace #main { width: min(1480px, calc(100% - 2 * var(--edge))); }
.business-month { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; }
.business-month label { color: var(--muted); font-size: .88rem; }
.business-summary {
  margin-bottom: clamp(20px, 4vw, 40px);
  padding: clamp(14px, 3vw, 26px);
  background: linear-gradient(128deg, #1c292f, #161d27 72%);
  border-radius: 20px;
  box-shadow: var(--app-raised);
}
.business-summary-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.business-summary-head h2 { font-size: clamp(1.12rem, 2vw, 1.45rem); }
.business-summary-head p, .business-month-note { font-size: .85rem; }
.business-summary-empty .business-summary-head { margin-bottom: 0; }
.business-summary .stats { margin: 0; gap: 9px; }
.business-summary .stat { padding: clamp(13px, 2vw, 20px); background: #121923; }
.business-summary .stat.featured { background: #1c342d; }
.business-summary .stat p { font-size: clamp(1.1rem, 2.6vw, 2.2rem); }
.business-month-note { margin-top: 10px; }
.business-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(270px, 28vw, 386px);
  overflow: hidden;
  color: #f7fafb;
  text-decoration: none;
  border-radius: 20px;
  background: #121d28;
  box-shadow: var(--app-raised);
}
.business-feature:hover { color: #f7fafb; box-shadow: 0 6px 18px #050a1460; }
.business-feature-cover { position: absolute; z-index: -1; inset: 0 0 0 30%; }
.business-feature-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 31%; }
.business-feature-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #121d28, #121d285a 40%, transparent 70%),
    linear-gradient(0deg, #111b2780, transparent 44%);
}
.business-feature-body { max-width: 55%; padding: clamp(24px, 4.2vw, 62px); }
.business-feature-body h2 { line-height: 1; }
.business-feature-body h2 img { display: block; width: clamp(190px, 24vw, 306px); height: auto; margin: -10px 0 -5px -4.8%; }
.business-feature-body > p { color: #dae3e9; }
.business-feature-action { margin-top: clamp(23px, 3vw, 39px); }
.business-feature-action strong {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 10px 16px;
  border-radius: 9px;
  background: #72c2c2;
  color: #0f2029;
  font-size: .92rem;
}
.business-feature-body .business-feature-status { margin-top: 11px; color: #c9d5dc; font-size: .88rem; }
.jsan-chat {
  scroll-margin-top: 18px;
  display: grid;
  gap: 14px;
  margin-block: 15px 16px;
  padding: clamp(15px, 3vw, 28px);
  border-radius: 19px;
  background: var(--app-surface);
  box-shadow: var(--app-raised);
}
.jsan-chat-head { display: flex; align-items: center; gap: 12px; }
.jsan-chat-head .business-mark { width: 51px; height: 40px; }
.jsan-chat-head h2 { font-size: clamp(1.1rem, 2.2vw, 1.6rem); }
.jsan-chat #jsan-chat-result:empty { display: none; }
.jsan-chat-compose, .jsan-chat #jsan-chat-result { display: grid; gap: 9px; }
.jsan-unit-groups { display: flex; flex-wrap: wrap; gap: 6px; align-items: start; }
.jsan-unit-groups[hidden] { display: none; }
.jsan-unit-groups details { min-width: 0; border-radius: 12px; background: var(--app-control); box-shadow: var(--app-control-shadow); }
.jsan-unit-groups summary {
  display: list-item;
  padding: 8px 11px;
  color: #c3d7eb;
  font-size: .82rem;
  cursor: pointer;
}
.jsan-unit-groups .jsan-unit-chips { padding: 0 8px 8px; }
.jsan-unit-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jsan-unit-chips button { min-height: 36px; padding: 6px 10px; font-size: .82rem; }
.jsan-chat-input { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; }
.jsan-chat-input textarea { flex: 1 1 240px; }
.jsan-chat-input button { flex: 0 0 auto; }
.jsan-chat .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.jsan-user-note, .jsan-chat-message, .jsan-chat-reply { padding: 9px 12px; border-radius: 12px; overflow-wrap: anywhere; }
.jsan-user-note { justify-self: end; max-width: 90%; background: #25374b; }
.jsan-chat-reply { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; background: #203940; }
.jsan-chat-reply > div { flex: 1 1 220px; }
.jsan-chat-reply small { display: block; font-size: .75rem; }
.jsan-chat-amount { color: #d8fff1; font-variant-numeric: tabular-nums; font-weight: 650; }
.jsan-chat-message { justify-self: start; background: #263745; }
.jsan-record-tools { display: grid; justify-items: start; gap: 8px; margin-block: 14px 16px; }
.jsan-record-tools > a { padding-inline: 17px; gap: 6px; }
.jsan-chat-alt { width: 100%; color: var(--muted); }
.jsan-chat-alt > summary { min-height: 36px; padding: 7px 1px; cursor: pointer; font-size: .83rem; }
.business-spotlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 12px clamp(12px, 2.5vw, 28px);
  margin-top: 14px;
  padding: clamp(16px, 3.2vw, 36px);
  border-radius: 16px;
  background: radial-gradient(ellipse at 0 50%, #2a303a, #171f2c 70%);
  box-shadow: var(--app-raised);
  text-decoration: none;
}
.business-spotlight:hover { color: var(--ink); box-shadow: 0 6px 18px #050a1460; }
.business-spotlight .business-mark { width: clamp(45px, 7vw, 82px); height: clamp(45px, 7vw, 82px); }
.business-spotlight h2 { font-size: clamp(1.25rem, 2.8vw, 2.12rem); }
.business-spotlight p, .business-spotlight-total span { color: var(--muted); font-size: .83rem; }
.business-spotlight-total { display: grid; gap: 4px; text-align: right; font-variant-numeric: tabular-nums; }
.business-spotlight-arrow { grid-column: 4; justify-self: end; color: #d5b579; }
@media (max-width: 560px) {
  .business-spotlight { grid-template-columns: auto minmax(0, 1fr) 20px; }
  .business-spotlight-arrow { grid-column: 3; grid-row: 1; }
  .business-spotlight-total { grid-column: 2 / -1; text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .business-feature, .business-row { transition: background-color .18s ease, border-color .18s ease; }
  .business-feature-cover img { transition: transform .4s ease; }
  .business-feature:hover .business-feature-cover img { transform: scale(1.035); }
}
.business-directory { margin-block: clamp(30px, 4vw, 56px); }
.business-directory h2 { margin-bottom: 13px; font-size: clamp(1.22rem, 2vw, 1.52rem); }
.business-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 74px);
}
.business-gallery li { min-width: 0; border-top: 1px solid #323b47; }
.business-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 19px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 74px;
  padding: 11px 8px;
  color: var(--ink);
  text-decoration: none;
}
.business-row:hover, .business-row:focus-visible { color: var(--ink); background: #19232d; }
.business-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 40px;
  color: #cbd8e4;
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -.045em;
}
.business-mark img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.mark-artistix img { filter: brightness(1.55) saturate(.87); }
.mark-fdbusiness img { width: 37px; filter: brightness(0) invert(.89); }
.mark-himpun { color: #e7d1b5; }
.business-row-name { display: grid; gap: 2px; min-width: 0; }
.business-row-name strong { line-height: 1.28; overflow-wrap: anywhere; }
.business-row-name small { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.business-row-net { max-width: 125px; font-size: .86rem; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.business-row-arrow { grid-column: 4; color: var(--accent); justify-self: end; }
.business-back { display: inline-block; margin-bottom: 10px; }
.business-detail-heading > div { display: flex; align-items: center; gap: 14px; min-width: 0; }
.business-detail-heading .business-mark { flex: 0 0 62px; width: 62px; height: 54px; }
.business-detail-heading h1 { overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .business-gallery { grid-template-columns: minmax(0, 1fr); }
  .business-feature { min-height: 274px; }
  .business-feature-body { max-width: none; padding: 22px; }
  .business-feature-cover { left: 0; }
  .business-feature-cover img { object-position: center 32%; }
  .business-feature-cover::after {
    background: linear-gradient(90deg, #121d28f5, #121d28af 45%, #121d2826),
      linear-gradient(0deg, #121d28d9, transparent 72%);
  }
  .business-row { min-height: 66px; }
}
.projection-total { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 660; margin: 12px 0 4px; }
.projection-unit { color: var(--muted); font-size: .95rem; font-weight: 500; }
.overview-income-scenario { margin-top: 12px; color: #c3d8ee; }
.overview-income-scenario strong { display: inline-block; margin-inline: 4px 1px; }
.projection-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.projection-cards > section:only-child { grid-column: 1 / -1; }
.projection-cards .projection-baseline { background: linear-gradient(145deg, #233c39, #182b2d 78%); }
.projection-cards .projection-business { background: linear-gradient(145deg, #263b56, #1b2b42 78%); }
.projection-baseline .projection-total { color: #d8fff2; }
.projection-business .projection-total { color: #d6eaff; font-size: clamp(1.35rem, 2.65vw, 2.3rem); overflow-wrap: anywhere; }
.projection-source-amount, .projection-total, .projection-card-detail { font-variant-numeric: tabular-nums; }
.projection-card-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #8bb5c63a;
  color: #c6d7e7;
  font-size: .85rem;
}
.projection-temporary {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  justify-content: space-between;
  margin-top: 13px;
  padding: 12px 15px;
  border-inline-start: 3px solid #cca665;
  border-radius: 8px;
  background: #29251f;
  color: #ead5ae;
  font-size: .87rem;
}
.projection-source-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; margin-top: 18px; }
.projection-source-groups .projection-sources:first-child { grid-row: span 2; }
.projection-source-list { list-style: none; padding: 0; margin-top: 11px; }
.projection-source-list li { border-top: 1px solid var(--line); }
.projection-source-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content) 8px;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  cursor: pointer;
  list-style: none;
}
.projection-source-list summary::-webkit-details-marker { display: none; }
.projection-source-list small { display: block; color: var(--muted); margin-top: 2px; }
.projection-source-list strong { overflow-wrap: anywhere; }
.projection-source-amount { text-align: right; }
.projection-source-list details[open] .wealth-chevron { rotate: 225deg; }
.projection-source-detail { padding-bottom: 11px; color: var(--muted); font-size: .87rem; }
.projection-source-detail p { margin-bottom: 5px; }
@media (max-width: 820px) {
  .projection-cards, .projection-source-groups { grid-template-columns: minmax(0, 1fr); }
  .projection-source-groups .projection-sources:first-child { grid-row: auto; }
}
.projection-source-groups ~ .wealth-form .form-panel { margin-top: 12px; }
.debt-schedule { border-block-start: 1px solid var(--line); padding-top: 12px; }
.debt-schedule summary { cursor: pointer; }
.debt-schedule > p, .debt-schedule > label, .debt-schedule > .money-field, .debt-schedule .fields-row { margin-top: 10px; }
.money-preview { display: block; margin-top: 4px; color: var(--accent); font-size: .85rem; font-variant-numeric: tabular-nums; }
.money-preview[hidden] { display: none; }
.money-preview-error { color: var(--danger); }
.wealth-page { background: #0f141d; }
.wealth-page main { padding-top: clamp(26px, 4vw, 54px); }
.wealth-page .page-heading { align-items: center; }
.wealth-page .page-heading h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); }
.wealth-summary { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; margin-bottom: 22px; }
.daily-balance {
  min-width: 0;
  margin-block: 16px;
  padding: clamp(13px, 2vw, 20px);
  border-radius: 17px;
  background: radial-gradient(ellipse at 96% 0%, #24454f, transparent 78%), #15242d;
}
.daily-balance-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.daily-balance-heading h3 { margin: 0; color: #d6e9e9; font-size: .92rem; }
.daily-balance-heading > .quiet { font-size: .82rem; }
.daily-total {
  margin-top: 2px;
  color: #e0fff4;
  font-size: clamp(1.85rem, 5vw, 3.35rem);
  font-weight: 650;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.daily-breakdown, .daily-accounts, .asset-rows { list-style: none; padding: 0; }
.daily-breakdown { display: grid; gap: 8px; margin-top: 13px; }
.daily-breakdown li { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; align-items: center; gap: 7px 9px; font-size: .88rem; }
.daily-breakdown li strong { text-align: right; font-weight: 620; font-variant-numeric: tabular-nums; }
.daily-breakdown .daily-cash-empty { display: flex; justify-content: space-between; border-top: 1px solid #6e879241; padding-top: 7px; }
.daily-pending { margin-top: 7px; font-size: .8rem; }
.account-mark { display: grid; place-items: center; flex: 0 0 auto; width: 53px; height: 33px; border-radius: 7px; color: #bcd9e5; background: #243542; }
.account-mark img { display: block; width: 78%; height: 64%; object-fit: contain; }
.account-mark svg { width: 19px; }
.mark-bank-bca { background: #153967; }
.mark-bank-jago { background: #15191d; }
.mark-bank-cash { background: #203e40; color: #9ce8d3; }
.daily-breakdown .account-mark { width: 43px; height: 27px; }
.wealth-page .daily-panel {
  min-width: 0;
  scroll-margin-top: 18px;
  padding: clamp(16px, 2.7vw, 30px);
  background: radial-gradient(ellipse at 90% -18%, #31665b 0%, transparent 70%), #172e31;
}
.daily-panel h2 { color: #bde2d9; font-size: .94rem; }
.daily-panel .daily-total { margin-top: 7px; font-size: clamp(2.35rem, 4.4vw, 4.2rem); }
.daily-accounts { margin-top: clamp(12px, 2.4vw, 22px); }
.daily-accounts > li { border-top: 1px solid #b4e4d12c; }
.asset-row, .asset-group-heading, .wealth-form > summary {
  cursor: pointer;
  list-style: none;
}
:is(.asset-row, .asset-group-heading, .wealth-form > summary)::-webkit-details-marker { display: none; }
.asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) 8px;
  align-items: center;
  gap: 8px 12px;
  min-height: 47px;
  padding-block: 6px;
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
}
.asset-row:hover, .asset-entry[open] > summary { color: #e5fff7; }
.asset-row-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .9rem; }
.asset-row-name strong { font-weight: 575; overflow-wrap: anywhere; }
.asset-row-amount {
  font-size: clamp(.86rem, 1.45vw, 1.04rem);
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}
.wealth-chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; margin-top: -3px; opacity: .6; }
.asset-entry[open] > summary .wealth-chevron,
.asset-group[open] > summary .wealth-chevron,
.wealth-form[open] > summary .wealth-chevron { rotate: 225deg; margin-top: 3px; }
.asset-entry-details { padding: 3px 13px 12px; border-inline-start: 1px solid #829daa56; overflow-wrap: anywhere; }
.daily-accounts .asset-entry-details { margin-left: 8px; }
.asset-entry-details p { font-size: .83rem; margin-block: 0 4px; }
.asset-entry-details .edit { display: inline-block; margin-top: 4px; color: var(--accent); font-size: .84rem; }
.asset-add-label { color: #c8e9dc; font-size: .82rem; }
.daily-account-add { grid-template-columns: minmax(0, 1fr) auto; }
.wealth-net { display: grid; align-content: start; gap: 11px; min-width: 0; padding: clamp(16px, 2.7vw, 30px); border-radius: 20px; background: linear-gradient(150deg, #202d43, #141d2b 75%); box-shadow: var(--app-raised); }
.wealth-net h2 { color: #b9c5d7; font-size: .92rem; }
.wealth-net .wallet-total { color: #e5edf9; font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.wealth-net-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.wealth-net-totals .stat { padding: 10px 0 0; border-radius: 0; border-top: 1px solid #354256; background: transparent; }
.wealth-net-totals .stat p { font-size: clamp(.95rem, 2vw, 1.25rem); }
.asset-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; align-items: start; }
.asset-group { --group-ink: #b7bfe2; --group-wash: #20263a; min-width: 0; scroll-margin-top: 20px; border-radius: 14px; background: var(--app-surface); box-shadow: var(--app-raised); }
.asset-group-investment { --group-ink: #e3c58b; --group-wash: #3b3024; }
.asset-group-debt { --group-ink: #ffabb3; --group-wash: #3d2936; }
.asset-group-property { --group-ink: #a7cef9; --group-wash: #233956; }
.asset-group-related { --group-ink: #c5baf9; --group-wash: #302c4b; }
.asset-group-heading {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr) minmax(0, auto) 8px;
  gap: 8px 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: inherit;
}
.asset-group-heading:hover { background: #ffffff09; }
.asset-group-heading h2 { font-size: clamp(.88rem, 1.5vw, 1rem); font-weight: 580; overflow-wrap: anywhere; }
.asset-group-heading > strong { color: var(--group-ink); font-size: clamp(.82rem, 1.5vw, 1.02rem); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.wealth-group-icon { width: 33px; height: 33px; padding: 7px; border-radius: 9px; color: var(--group-ink); background: var(--group-wash); }
.asset-group-content { padding: 0 14px 12px; border-top: 1px solid #293549; }
.asset-rows > li + li { border-top: 1px solid #293549; }
.wealth-form { max-width: 720px; margin-top: 22px; }
.wealth-form > summary { display: flex; align-items: center; gap: 9px; width: fit-content; min-height: 44px; color: var(--muted); font-size: .86rem; }
.wealth-page .form-panel { max-width: 720px; margin-top: 20px; scroll-margin-top: 16px; }
.bank-credit { margin-top: 16px; color: #929eaf; font-size: .7rem; }
.valuation-notes { margin-top: 6px; white-space: pre-wrap; }
.wealth-estimate { margin-block-start: 10px; font-size: .82rem; }
label { display: grid; min-width: 0; gap: 5px; font-weight: 530; font-size: .93rem; }
input:not([type=checkbox]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--app-inset);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; }
.entry-workbench-head { max-width: 980px; align-items: baseline; }
.entry-workbench-head h1 { font-size: clamp(2.35rem, 5.5vw, 4.35rem); }
.guide-heading, .guide-layout { width: min(100%, 540px); margin-inline: auto; }
.guide-heading h1 { margin-bottom: 13px; font-size: clamp(2.12rem, 6vw, 3.4rem); }
.guide-heading .entry-modes { margin-bottom: 14px; }
.guide-form {
  min-width: 0;
  padding: clamp(14px, 3.8vw, 26px);
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 65%, #28415280, transparent 65%), var(--app-surface);
  box-shadow: var(--app-raised);
}
.guide-form [hidden], .guide-form[hidden] { display: none; }
.guide-context { min-height: 40px; display: flex; align-items: center; gap: 10px; }
.guide-context p { min-width: 0; font-size: .81rem; overflow-wrap: anywhere; }
.guide-back { min-width: 44px; padding-inline: 9px; }
.guide-question { min-height: 36px; margin-block: 2px 4px; text-align: center; }
.guide-question h2 { margin: 5px 0 2px; font-size: clamp(1.12rem, 4vw, 1.6rem); }
.guide-question h2:focus { outline: none; }
.guide-question a { font-size: .77rem; }
.guide-arc {
  position: relative;
  width: min(100%, clamp(258px, 85vw, 330px));
  aspect-ratio: 1;
  margin: 0 auto;
  isolation: isolate;
  user-select: none;
}
.guide-ring, .guide-slots { position: absolute; inset: 0; width: 100%; height: 100%; }
.guide-ring { overflow: visible; pointer-events: none; filter: drop-shadow(0 4px 3px #02060d80) drop-shadow(0 10px 10px #02060d50); }
.guide-ring-track { fill: #111a27; stroke: #8199b847; stroke-width: 1; }
.guide-ring-rim { fill: none; stroke: url(#guide-rim-material); stroke-width: 3.5; }
.guide-ring-inner { fill: #111923; stroke: #809dbb56; stroke-width: 1.2; }
.guide-sector { fill: url(#guide-segment-material); stroke: #8aabcb3e; stroke-width: 1; }
.guide-sector.is-selected { fill: url(#guide-selected-material); stroke: #9bd8c6; stroke-width: 1.5; }
.guide-slots { pointer-events: none; }
.guide-option {
  position: absolute;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  align-content: center;
  width: 24%;
  min-width: 44px;
  min-height: 45px;
  padding: 3px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #d7e5ef;
  font-size: clamp(.68rem, 2.7vw, .83rem);
  font-weight: 590;
  line-height: 1.16;
  overflow-wrap: anywhere;
  pointer-events: auto;
  touch-action: manipulation;
}
.guide-arc[data-few="true"] :where(.guide-option) { width: 30%; }
.guide-option[aria-pressed="true"], .guide-option:hover { color: #f2fff9; }
.guide-option-icon { font-size: 1.06rem; line-height: 1.22; }
.guide-stick {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 30%;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #9ab8db53;
  background: radial-gradient(circle at 50% 57%, #26384c, #172331 72%);
  box-shadow: inset 0 3px 9px #060c16b3, inset 0 -1px 1px #a6c0db38, 0 1px 3px #02060d;
  touch-action: none;
  cursor: grab;
}
.guide-arc.is-aiming .guide-stick { cursor: grabbing; border-color: #a8e0d3; }
.guide-thumb {
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid #c2e7dd83;
  border-radius: 50%;
  background: radial-gradient(circle at 39% 23%, #8ac9b9, #58958a 48%, #315951 84%);
  box-shadow: inset 0 1px 2px #edfff98a, inset 0 -4px 6px #1a373ab0, 0 3px 0 #1a3b3a, 0 7px 9px #020c16b5;
  transform: translate(var(--thumb-x, 0px), var(--thumb-y, 0px));
  pointer-events: none;
}
.guide-thumb > span { width: 26%; aspect-ratio: 1; border-radius: 50%; background: #284d465c; box-shadow: inset 0 1px 3px #1c3e3b86, 0 1px 0 #d1f7e567; }
.guide-hint { min-height: 1.4em; margin-top: 7px; text-align: center; color: #c1dfdf; font-size: .85rem; }
@media (hover: hover) and (pointer: fine) {
  .guide-heading, .guide-layout { width: min(100%, 840px); }
  .guide-form { padding: clamp(17px, 3.4vw, 32px); background: var(--app-surface); }
  .guide-context:not(:has(.guide-back:not([hidden]))) { display: none; }
  .guide-question { min-height: 0; margin-bottom: 16px; text-align: left; }
  .guide-question h2 { margin-top: 0; }
  .guide-ring, .guide-stick, .guide-hint { display: none; }
  .guide-arc { width: 100%; aspect-ratio: auto; }
  .guide-slots {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 138px), 1fr));
    gap: 10px;
    height: auto;
    pointer-events: auto;
  }
  .guide-arc[data-few="true"] .guide-slots {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 158px));
  }
  .guide-arc .guide-option {
    position: static;
    translate: none;
    width: 100%;
    aspect-ratio: 1;
    align-content: center;
    justify-items: start;
    gap: 8px;
    padding: clamp(10px, 1.6vw, 18px);
    border-radius: 12px;
    background: var(--app-control);
    box-shadow: var(--app-control-shadow);
    color: var(--ink);
    font-size: clamp(.84rem, 1.2vw, .99rem);
    text-align: left;
  }
  .guide-arc .guide-option:hover { background: linear-gradient(155deg, #315350, #233a40); color: #e5fff5; }
  .guide-option-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #111e2980;
    color: #a8eddd;
  }
  .guide-summary { max-width: 505px; }
}
@media (prefers-reduced-motion: no-preference) {
  .guide-sector { transition: stroke .11s; }
  .guide-arc:not(.is-aiming) .guide-thumb { transition: transform .16s cubic-bezier(.18,.85,.25,1.2); }
}
.guide-summary { display: grid; gap: 11px; }
.guide-route { color: #c1e6ec; text-align: center; font-size: .91rem; overflow-wrap: anywhere; }
.guide-summary .money-field input { font-size: clamp(1.1rem, 4.4vw, 1.55rem); font-weight: 650; }
.guide-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-presets button { min-height: 38px; flex: 1 1 auto; padding-inline: 8px; font-size: .78rem; }
.guide-extra { color: var(--muted); font-size: .86rem; }
.guide-extra summary { cursor: pointer; min-height: 28px; }
.guide-extra label + label { margin-top: 8px; }
.guide-lease { min-width: 0; padding: 9px; border: 0; border-radius: 9px; background: var(--field); }
.guide-lease legend { color: var(--muted); padding-inline: 5px; font-size: .8rem; }
.guide-save { min-height: 48px; }
#guide-error { color: var(--danger); }
.entry-workbench { max-width: 980px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 58px); align-items: start; }
.manual-entry { min-width: 0; padding: clamp(16px, 3vw, 29px); background: var(--app-surface); border-radius: 22px; box-shadow: var(--app-raised); }
.entry-modes { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #35404d; margin-bottom: 18px; }
.entry-modes a { display: inline-flex; min-height: 43px; padding: 10px 12px; align-items: center; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; }
.entry-modes a[aria-current] { border-color: var(--accent); color: var(--ink); }
.entry-receipt { display: grid; gap: 5px; margin-bottom: 20px; padding: 13px 15px; border-radius: 14px; background: linear-gradient(150deg, #23413a, #182e2b); box-shadow: var(--app-raised); overflow-wrap: anywhere; }
.entry-receipt-line { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.entry-receipt-labels { font-size: .92rem; }
.entry-receipt .quiet { font-size: .86rem; }
.entry-receipt a { justify-self: start; padding-block: 5px; }
.entry-form { min-width: 0; margin-top: 0; gap: 17px; }
.entry-form textarea { min-height: 122px; margin-top: 2px; padding: 14px 15px; border-color: #424f61; background: #0e151e; font-size: 1.1rem; line-height: 1.5; }
.entry-date { color: var(--muted); font-size: .89rem; }
.entry-date summary { width: fit-content; cursor: pointer; }
.entry-date label { width: min(235px, 100%); margin-top: 8px; }
.account-choice { min-width: 0; margin: 0; padding: 9px 0 0; border: 0; }
.account-choice legend { padding: 0; font-weight: 620; }
.account-choice button { justify-content: flex-start; margin: 4px 5px 3px 0; border-color: #667989; background: #202b38; text-align: left; }
.transfer-form { gap: 18px; }
.transfer-choices { min-width: 0; padding: 0; margin: 0; border: 0; }
.transfer-choices legend { margin-bottom: 7px; padding: 0; font-weight: 630; }
.transfer-chip-set { display: flex; flex-wrap: wrap; gap: 6px; }
.transfer-chip { position: relative; cursor: pointer; }
.transfer-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.transfer-chip span { display: grid; min-height: 42px; padding: 6px 11px; align-items: center; border: 1px solid var(--app-line); border-radius: 9px; color: #d7e4f0; background: var(--app-control); box-shadow: var(--app-control-shadow); font-size: .88rem; }
.transfer-chip input:checked + span { border-color: var(--accent); color: #c4f9e7; background: #213c38; }
.transfer-chip input:disabled + span { opacity: .43; cursor: default; }
.transfer-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.transfer-amount { display: grid; gap: 8px; }
.transfer-amount-control { display: flex; gap: 7px; align-items: stretch; }
.transfer-amount-control button { width: 43px; padding: 0; flex-shrink: 0; font-size: 1.2rem; }
.transfer-input-wrap { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--field); box-shadow: var(--app-inset); color: #b5c6d7; }
.transfer-input-wrap input { border: 0; padding: 6px 0; background: transparent; box-shadow: none; font-size: clamp(1.18rem, 2.4vw, 1.58rem); font-weight: 650; font-variant-numeric: tabular-nums; }
.transfer-input-wrap:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.transfer-input-wrap input:focus { outline: 0; }
.amount-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.amount-presets button { min-width: 0; padding-inline: 4px; font-size: .86rem; white-space: nowrap; }
.transfer-form [hidden] { display: none; }
.entry-submit .primary { padding-inline: 24px; }
.entry-submit .primary:disabled { opacity: .55; cursor: default; }
.entry-help { padding-top: 13px; min-width: 0; }
.entry-help > p { margin-top: 8px; }
.entry-examples { list-style: none; padding: 0; margin-top: 13px; }
.entry-examples li { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.entry-examples li:first-child { padding-top: 0; }
.entry-examples li:last-child { border-bottom: 0; }
.entry-examples span { font-size: .86rem; color: var(--muted); }
.entry-help .cash-check { margin-top: 5px; }
.ledger-account { color: #a7c8db; }
.expense-rule-list { display: grid; gap: 12px; margin-top: 12px; padding: 0; list-style: none; }
.expense-rule-list li { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.expense-rule-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.expense-rule-list li p { margin-top: 3px; overflow-wrap: anywhere; }
.entry-saved { margin-bottom: 16px; }
.check { display: flex; align-items: center; min-height: 36px; }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
.primary, .outline, .plain, .danger { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; gap: 12px; padding: 7px 15px; border: 1px solid var(--line); border-radius: 12px; font-weight: 640; text-decoration: none; color: var(--ink); background: transparent; }
.pill { border-radius: 100px; }
.primary { background: linear-gradient(#9ae9d2, #6ed9ba); border-color: #afecdc99; box-shadow: var(--app-accent-shadow); color: #10231e; }
.primary:hover { background: #c1f3e5; }
.outline { background: var(--app-control); box-shadow: var(--app-control-shadow); }
.outline:hover, .plain:hover { border-color: var(--muted); }
.danger { color: var(--danger); }
.danger:hover { border-color: var(--danger); }
.remove-form { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.record-delete { margin-top: 12px; font-size: .88rem; }
.record-delete summary { width: fit-content; cursor: pointer; color: var(--danger); padding-block: 6px; }
.record-delete form { margin-top: 6px; }
.record-delete form > button { justify-self: start; }
.notice { color: var(--danger); }
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.filter label { min-width: min(100%, 180px); }
.panel .filter { margin-top: 13px; }
.transfer-tip { margin-block: 13px; }
.transaction-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; align-items: start; }
.transaction-breakdown .rows span, .transaction-allocation .rows span { min-width: 0; overflow-wrap: anywhere; }
.transaction-breakdown .rows strong, .transaction-allocation .rows strong { flex-shrink: 0; text-align: right; }
.transaction-allocation { margin-bottom: 12px; }
.transaction-allocation summary { cursor: pointer; font-weight: 620; }
.transaction-totals-title { margin-bottom: 10px; }
#goal-destination[hidden] { display: none; }

.desk-layout-picker, .desk-columns { display: none; }
.desk-plans { margin-top: 14px; }
.desk-plans[hidden] { display: none; }
.desk-layout-picker:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-bottom: 12px;
}
.desk-layout-picker > span { color: var(--muted); font-size: .85rem; }
.desk-layout-picker > .workspace-voice-shortcut { display: none; }
.desk-mode .desk-layout-picker > .workspace-voice-shortcut { display: inline-flex; margin-inline-start: auto; }
.desk-layout-options { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #131c27; border-radius: 12px; }
.desk-layout-options button { min-height: 38px; padding: 6px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .86rem; }
.desk-layout-options button:hover { background: var(--panel); color: var(--ink); }
.desk-layout-options button[aria-pressed="true"] { background: #28463f; color: #e0fff5; }
.overview #main.desk-mode { display: block; }
.overview:has(#main.desk-mode) .wrap { width: min(3450px, calc(100% - clamp(28px, 4vw, 170px))); }
.desk-mode > :is(.overview-finance, .overview-grid, .projection-summary, .garage-hero) { display: none; }
.desk-columns:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; gap: clamp(10px, 1.1vw, 20px); }
.desk-mode[data-desk-layout="full"] .desk-columns { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, .96fr); }
.desk-pane { min-width: 0; overflow: hidden; border-radius: 18px; background: #131d29; box-shadow: var(--app-raised); }
.desk-pane[hidden] { display: none; }
.desk-pane > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 53px; padding: 8px 15px; background: #203040; }
.desk-pane > header h2 { margin: 0; font-size: .99rem; }
.desk-pane > header a { font-size: .8rem; }
.desk-pane > header > div { display: flex; align-items: center; gap: 11px; }
.desk-pane-refresh { padding: 4px 7px; font-size: .8rem; }
.desk-pane-refresh[hidden] { display: none; }
.desk-pane iframe { display: block; width: 100%; height: max(590px, calc(100svh - 225px)); border: 0; background: var(--base); }
.workspace-embedded body > .bar { display: none; }
.workspace-embedded #main.wrap { width: calc(100% - 26px); padding-block: 15px 28px; }
.workspace-embedded .page-heading { margin-bottom: 16px; }
.workspace-embedded h1 { font-size: clamp(1.9rem, 5vw, 3.3rem); }
.workspace-embedded .guide-heading h1 { font-size: clamp(1.8rem, 5vw, 2.9rem); }
.workspace-embedded .voice-layout { grid-template-columns: minmax(0, 1fr); }
.desk-ledger-totals { margin-bottom: 12px; padding: 10px 15px; }
.desk-ledger-totals > summary { cursor: pointer; color: var(--muted); padding-block: 4px; }
.desk-ledger-totals > h2 { margin-top: 12px; }
.schedule-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.schedule-list li { gap: 10px; align-items: start; }
.schedule-list time { display: block; }
.schedule-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 3px 9px; }
.workspace-spotify { position: relative; z-index: 5; }
.workspace-spotify[hidden] { display: none; }
.workspace-spotify summary { cursor: pointer; color: var(--ink); list-style: none; padding: 9px 12px; border-radius: 10px; background: #1a2b39; }
.workspace-spotify summary span:first-child { color: #a4dcc7; margin-inline-end: 7px; }
.spotify-menu { position: absolute; right: 0; min-width: 220px; top: calc(100% + 7px); padding: 12px; display: grid; gap: 9px; border-radius: 12px; background: #1e2c39; box-shadow: var(--app-raised); }
.spotify-menu label { display: flex; align-items: center; gap: 7px; font-size: .82rem; }
.spotify-menu input { width: 16px; min-height: 16px; height: 16px; }
@media (max-width: 730px) {
  .schedule-layout { grid-template-columns: minmax(0, 1fr); }
  .schedule-actions { justify-content: start; }
}

@media (max-width: 1280px) {
  .desk-mode[data-desk-layout="full"] .desk-columns { grid-template-columns: 1fr 1fr; }
  .desk-mode[data-desk-layout="full"] [data-pane="wealth"] { grid-column: 1 / -1; }
}

@media (min-width: 1600px) {
  .overview #main:not(.desk-mode):has(> .desk-layout-picker:not([hidden])) {
    grid-template-areas: "layout layout" "garage cash" "wealth side" "projection roadmap";
  }
  .desk-layout-picker { grid-area: layout; }
  .overview #main:not(.desk-mode) > .projection-summary { grid-area: projection; }
  .overview #main:not(.desk-mode):has(> .desk-layout-picker:not([hidden])) > .desk-plans { grid-area: roadmap; margin-top: 0; }
}
.category-action { display: grid; justify-items: start; gap: 6px; margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
code { font-size: .9em; overflow-wrap: anywhere; }
.entry { background: radial-gradient(ellipse at 20% 38%, #213b34, var(--base) 58%); }
.entry-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 360px); gap: clamp(25px, 6vw, 85px); align-items: center; min-height: 52svh; }
.entry-title p { color: var(--muted); margin-bottom: 13px; }
.entry-title h1 { font-size: clamp(3rem, 8vw, 7rem); }
.login { display: grid; gap: 12px; }
.login h2 { margin-bottom: 3px; font-size: 1.6rem; }
.login .primary { justify-content: space-between; margin-top: 4px; }

@media (max-width: 730px) {
  .edit-layout, .entry-layout, .entry-workbench { grid-template-columns: 1fr; }
  .allocation { grid-template-columns: minmax(86px, 116px) minmax(0, 1fr); }
  .entry-layout { min-height: auto; padding-top: 16px; }
  .login { width: min(100%, 420px); }
  .overview { background: radial-gradient(100% 480px at 77% 0, #1a2737 0%, #0c1016 75%); }
  .overview .garage-hero { display: block; min-height: 0; margin-bottom: 28px; border-radius: 23px; background: linear-gradient(#182532, #111922); }
  .garage-photo { position: relative; z-index: 0; inset: auto; height: auto; aspect-ratio: 1.63; background: #111b25; }
  .garage-photo img { position: absolute; inset: 0; object-position: 72% 54%; }
  .garage-hero::after { display: none; }
  .garage-welcome { padding: 17px clamp(17px, 4.6vw, 26px) 21px; }
  .garage-welcome time { margin-bottom: 13px; color: #bac9d9; }
  .garage-welcome h1 { font-size: clamp(2.28rem, 9vw, 3.85rem); }
  .welcome-play { z-index: 1; }
  .garage-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; gap: 9px; }
  .garage-actions > .primary { grid-column: 1 / -1; }
  .garage-actions > a { justify-content: center; }
  .overview-finance { gap: 30px; margin-bottom: 30px; }
  .overview-wealth { background: linear-gradient(138deg, #1d2c3d, #131c26 62%); border-radius: 22px; }
  .overview-wealth .wallet-balance { padding: 19px 18px; gap: 12px; background: transparent; }
  .overview-wealth .allocation { grid-template-columns: minmax(75px, 91px) minmax(0, 1fr); padding: 14px 18px; background: #11192380; }
  .overview-wealth .allocation .legend { gap: 6px; }
  .overview-wealth .allocation .legend li { grid-template-columns: 7px minmax(0, 1fr) auto; }
  .overview-wealth .allocation .legend strong { grid-column: auto; text-align: right; }
  .overview-finance .cash-summary { border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
  .cash-summary > .panel-heading { gap: 1px 12px; }
  .cash-summary > .panel-heading h2 { font-size: 1.23rem; }
  .cash-period { margin-top: 2px; font-size: .86rem; }
  .cash-summary-content.has-transactions { margin-top: 13px; padding: 14px; border-radius: 19px; background: var(--app-surface); box-shadow: var(--app-raised); }
  .cash-summary-content .stats { margin: 0; }
  .cash-summary .cash-check { margin-top: 9px; padding: 6px 2px 0; border-top: 0; }
  .cash-summary .cash-audit summary { padding-block: 7px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }
  .overview-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid .panel { border-radius: 17px; }
  .overview-grid .panel-heading { display: grid; }
  .overview-grid .panel-heading a { min-height: 29px; }
  .overview-grid .empty { margin-top: 6px; font-size: .86rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .workspace-scene .overview {
    --scene-ease: cubic-bezier(.19,.72,.26,1);
    --garage-duration: 4200ms;
    --title-start: 560ms;
    --actions-start: 1290ms;
  }
  .workspace-scene .garage-photo img { animation: garage-light-up var(--garage-duration) ease-out both; }
  .workspace-scene .garage-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 72% 5%, #c5ebff60, #7094b712 62%, transparent 79%);
    animation: garage-light-sweep var(--garage-duration) ease-out both;
  }
  .workspace-scene .garage-welcome:not(:focus-within) time,
  .workspace-scene .garage-welcome:not(:focus-within) .garage-salutation,
  .workspace-scene .garage-welcome:not(:focus-within) .garage-name,
  .workspace-scene .garage-welcome:not(:focus-within) .garage-actions {
    animation: workspace-detail 900ms var(--scene-ease) both;
  }
  .workspace-scene .garage-welcome time { animation-delay: calc(var(--title-start) - 180ms); }
  .workspace-scene .garage-welcome .garage-salutation { animation-delay: var(--title-start); }
  .workspace-scene .garage-welcome .garage-name { animation-delay: calc(var(--title-start) + 260ms); }
  .workspace-scene .garage-welcome .garage-actions { animation-delay: var(--actions-start); }

  .workspace-scene .overview [data-reveal] {
    --panel-start: 0ms;
    --panel-duration: 1120ms;
    --detail-start: calc(var(--panel-start) + 260ms);
    --detail-duration: 1140ms;
    --chart-start: calc(var(--panel-start) + 620ms);
    --chart-duration: 1580ms;
  }
  .workspace-scene .overview [data-reveal]:not(:focus-within) :is(.panel-heading, .cash-period) {
    animation: workspace-detail var(--detail-duration) var(--scene-ease) var(--detail-start) both;
  }
.workspace-scene .overview [data-reveal]:not(:focus-within) :is(.wallet-total, .wallet-pair, .daily-total, .daily-breakdown, .projection-total, .stats, .goal, .overview-businesses .rows) {
    animation: workspace-detail var(--detail-duration) var(--scene-ease) calc(var(--detail-start) + 200ms) both;
  }
  .workspace-scene .overview [data-reveal]:not(:focus-within) :is(.allocation-ring > div, .legend, .cash-legend) {
    animation: workspace-detail var(--detail-duration) var(--scene-ease) calc(var(--chart-start) + 220ms) both;
  }
  .workspace-scene .overview [data-reveal] .ring-sweep {
    animation: workspace-chart var(--chart-duration) ease-in-out var(--chart-start) both;
  }

  @keyframes garage-light-up {
    0% { opacity: .11; transform: scale(1.045); }
    24% { opacity: .47; }
    57% { opacity: .91; }
    100% { opacity: 1; transform: none; }
  }
  @keyframes garage-light-sweep {
    0% { opacity: 0; transform: translateY(-9%) scale(.97); }
    31% { opacity: .68; }
    100% { opacity: 0; transform: none; }
  }
  @keyframes workspace-panel {
    from { opacity: 0; transform: translateY(19px) scale(.99); }
    to { opacity: 1; transform: none; }
  }
  @keyframes workspace-detail {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes workspace-chart {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
  }
}
@media (min-width: 731px) and (prefers-reduced-motion: no-preference) {
  .workspace-scene .overview .cash-summary { --panel-start: 980ms; --chart-duration: 2600ms; }
  .workspace-scene .overview .overview-wealth { --panel-start: 1660ms; }
  .workspace-scene .overview .projection-summary { --panel-start: 2160ms; }
  .workspace-scene .overview .overview-targets { --panel-start: 2810ms; }
  .workspace-scene .overview .overview-businesses { --panel-start: 3400ms; }
  .workspace-scene .overview [data-reveal]:not(:focus-within) {
    animation: workspace-panel var(--panel-duration) var(--scene-ease) var(--panel-start) both;
  }
}
@media (max-width: 730px) and (prefers-reduced-motion: no-preference) {
  .workspace-scene .overview {
    --garage-duration: 3000ms;
    --title-start: 430ms;
    --actions-start: 940ms;
  }
  .workspace-scene .overview [data-reveal] {
    --panel-duration: 820ms;
    --detail-duration: 730ms;
    --chart-start: calc(var(--panel-start) + 350ms);
    --chart-duration: 1180ms;
  }
  .workspace-scene .overview .cash-summary { --panel-start: 450ms; }
  .scroll-motion .overview [data-reveal]:not(.is-visible):not(:focus-within):not(:target) {
    opacity: 0;
    transform: translateY(18px);
  }
  .workspace-scene.scroll-motion .overview [data-reveal].is-visible:not(:focus-within) {
    animation: workspace-panel var(--panel-duration) var(--scene-ease) var(--panel-start) both;
  }
  .workspace-scene.scroll-motion .overview [data-reveal]:not(.is-visible):not(:focus-within) * { animation-play-state: paused; }
  .scroll-motion:not(.workspace-scene) .overview [data-reveal] {
    transition: opacity .46s ease-out, transform .6s cubic-bezier(.2,.65,.3,1);
  }
}
@media (max-width: 920px) {
  .overview-finance { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .wealth-summary, .asset-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 510px) {
  .wealth-summary { gap: 12px; margin-bottom: 16px; }
  .daily-accounts .account-mark { width: 43px; height: 27px; }
  .asset-group-heading { gap: 8px; padding-inline: 10px; }
}
@media (min-width: 1600px) {
  .overview .wrap { width: min(2780px, calc(100% - clamp(96px, 7vw, 240px))); }
  .overview #main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); grid-template-areas: "garage cash" "wealth side"; gap: 20px; }
  .overview-finance { display: contents; }
  .garage-hero { grid-area: garage; min-height: clamp(365px, 27vw, 515px); margin-bottom: 0; }
  .garage-welcome { padding: clamp(38px, 3.4vw, 90px); }
  .overview-wealth { grid-area: wealth; display: flex; flex-direction: column; }
  .overview-wealth .wallet-balance { flex: 1; align-content: center; gap: 20px; padding-inline: clamp(25px, 3vw, 65px); }
  .overview-wealth .wallet-total { font-size: clamp(3rem, 3vw, 6rem); }
  .overview-wealth .allocation { padding-inline: clamp(25px, 3vw, 65px); }
  .overview-finance .cash-summary { grid-area: cash; }
  .overview-grid { grid-area: side; grid-template-columns: 1fr; align-items: stretch; gap: 14px; }
  .cash-summary-content .stats { margin: 0; }
  .wealth-page .wrap { width: min(1480px, calc(100% - 2 * var(--edge))); }
}
@media (max-width: 510px) {
  .masthead { min-height: 57px; }
  .tabs { position: fixed; z-index: 2; inset: auto 9px max(8px, env(safe-area-inset-bottom)) 9px; width: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 5px; border-radius: 18px; background: linear-gradient(#202c3c, #15202a); box-shadow: var(--app-raised); }
  .tabs a { display: grid; justify-items: center; align-content: center; gap: 3px; padding: 5px 2px; font-size: .74rem; border-radius: 14px; }
  .dashboard main { padding-bottom: calc(93px + env(safe-area-inset-bottom)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat.featured { grid-column: 1 / -1; }
  .transaction-breakdown { grid-template-columns: 1fr; }
  .garage-salutation { color: #e0eaf3; }
  .welcome-play { top: 12px; right: 12px; }
  .garage-actions a { flex: 1 1 auto; gap: 5px; padding-inline: 10px; min-height: 45px; font-size: .9rem; }
  .entry-submit .primary { width: 100%; }
  .entry-modes { flex-wrap: nowrap; gap: 0; overflow-x: auto; }
  .entry-modes a { flex: 1 0 auto; justify-content: center; padding-inline: 4px; font-size: .8rem; white-space: nowrap; }
  .cash-legend { font-size: .84rem; }
  .cash-legend li { grid-template-columns: 7px minmax(0, 1fr) auto; gap: 0 6px; }
  .cash-legend strong { grid-column: 2; text-align: left; }
  .cash-share { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 360px) {
  .fields-row { grid-template-columns: 1fr; }
  .overview-wealth .allocation .legend li { grid-template-columns: 7px minmax(0, 1fr); }
  .overview-wealth .allocation .legend strong { grid-column: 2; text-align: left; }
}
