/* V3: shared surface, type, spacing and motion rules for every workspace. */
:root {
  --bg:#f5f7f6;
  --paper:#fff;
  --soft:#edf3f0;
  --ink:#20362e;
  --muted:#697970;
  --green:#17634b;
  --line:#dfe7e2;
  --red:#b2463f;
  --radius:16px;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-6:24px;
  --space-8:32px;
  --motion-press:100ms;
  --motion-fade:180ms;
  --motion-detail:260ms;
  --motion-sheet:300ms;
  --ease-standard:cubic-bezier(.2,.7,.2,1)
}

body.dark {
  --bg:#13221c;
  --paper:#1b2d24;
  --soft:#243a2f;
  --ink:#e7f0eb;
  --muted:#a6b9ad;
  --green:#85c6a9;
  --line:#344d3f;
  --red:#f1988e
}

body.collection-mode {
  --bg:#f5f7f6;
  --paper:#fff;
  --soft:#edf3f0;
  --ink:#20362e;
  --muted:#697970;
  --green:#17634b;
  --line:#dfe7e2
}

body.collection-mode.dark {
  --bg:#13221c;
  --paper:#1b2d24;
  --soft:#243a2f;
  --ink:#e7f0eb;
  --muted:#a6b9ad;
  --green:#85c6a9;
  --line:#344d3f
}

.collection-simple .collection-hero {
  background:#174b3a;
  border-radius:20px;
  padding:24px
}
.collection-simple .collection-hero .money {
  font-size:clamp(28px,8.5vw,38px)
}
.collection-mode .room-toolbar {
  border-bottom:1px solid var(--line);
  padding:0 0 16px;
  gap:12px
}
.collection-mode .room-toolbar h2 {
  font-size:20px
}
.collection-mode .bottom-nav {
  box-shadow:none
}

body {
  background:var(--bg);
  color:var(--ink);
  font-size:14px;
  line-height:1.5;
  -webkit-tap-highlight-color:transparent
}

h1,h2,h3 {
  font-family:inherit;
  letter-spacing:-.025em
}
h1 {
  line-height:1.2
}
h2 {
  font-size:17px
}
h3 {
  font-size:15px
}
p {
  line-height:1.6
}

button,input,select,textarea {
  font:inherit
}
button {
  cursor:pointer;
  transition:background-color var(--motion-press),color var(--motion-press),transform var(--motion-press);
  touch-action:manipulation
}
button:active:not(:disabled) {
  transform:scale(.98)
}
button:disabled {
  opacity:.55;
  cursor:default
}

button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid var(--green);
  outline-offset:3px
}

svg {
  flex-shrink:0
}
.button,.icon-button,.text-button {
  min-height:44px
}
.button {
  border-radius:12px;
  font-size:14px;
  font-weight:650;
  padding:12px 16px;
  box-shadow:none
}
.button:not(.outline):not(.soft):not(.danger) {
  background:var(--green);
  color:var(--paper)
}
body.dark .button:not(.outline):not(.soft):not(.danger) {
  color:#13221c
}
.button.outline {
  background:transparent;
  border-color:var(--line);
  color:var(--ink)
}
.button.soft {
  background:var(--soft);
  color:var(--ink)
}
.button.danger {
  color:var(--red);
  background:transparent;
  border:1px solid var(--line)
}
.text-button {
  font-size:13px;
  color:var(--green);
  padding:8px 0
}
.icon-button {
  border-radius:12px;
  background:var(--soft);
  width:44px;
  color:var(--ink)
}

.subtle,.muted {
  color:var(--muted);
  font-size:13px
}
.eyebrow {
  font-size:11px;
  font-weight:650;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--muted)
}

.card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--paper);
  padding:24px;
  box-shadow:none;
  margin-bottom:16px
}
.card .card {
  border:0;
  padding:0;
  margin-top:16px
}
.section-head {
  gap:12px;
  align-items:center;
  margin-bottom:12px
}
.section-head h2 {
  font-size:17px
}
.page-title,.greeting {
  margin-bottom:24px
}
.page-title h1,.greeting h1 {
  font-size:30px;
  line-height:1.25;
  margin:6px 0
}
.page-title p,.greeting p {
  font-size:14px;
  margin:6px 0 0;
  color:var(--muted)
}
.view-enter {
  animation:v3-fade var(--motion-fade) var(--ease-standard) both
}
.view-enter>* {
  animation:none
}
.view-static {
  animation:none
}

@keyframes v3-fade {
  from {
  opacity:.5
}
to {
  opacity:1
}

}
@keyframes v3-sheet {
  from {
  opacity:.5;
  transform:translateY(24px)
}
to {
  opacity:1;
  transform:translateY(0)
}

}
@keyframes v3-detail {
  from {
  opacity:.65;
  transform:translateX(18px)
}
to {
  opacity:1;
  transform:translateX(0)
}

}

.topbar {
  min-height:56px;
  margin-bottom:24px;
  gap:16px;
  align-items:center
}
.top-actions {
  display:flex;
  gap:12px;
  align-items:center
}
.workspace-trigger {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  max-width:240px;
  padding:8px 12px;
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--ink);
  border-radius:12px;
  font-weight:600;
  font-size:13px
}
.workspace-trigger span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.workspace-trigger svg {
  width:16px
}
.profile-trigger {
  width:40px;
  min-height:40px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--soft);
  color:var(--green);
  font-size:16px;
  font-weight:700
}
.sidebar {
  background:var(--paper);
  border-right:1px solid var(--line)
}
.side-links button {
  min-height:48px;
  border-radius:12px
}
.side-links button.active {
  background:var(--soft)
}
.side-note {
  background:var(--soft)
}

.simple-home {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}
.simple-home .card {
  margin:0
}
.balance-card:after {
  display:none
}
.balance-card {
  background:#174b3a;
  color:#fff;
  border:0;
  border-radius:20px;
  padding:28px;
  min-height:0
}
.balance-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#d4e8de;
  font-size:13px
}
.balance-top svg {
  width:20px
}
.balance-card .money {
  font-size:40px;
  font-weight:750;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.04em;
  line-height:1.2;
  margin:16px 0 8px;
  overflow-wrap:anywhere
}
.balance-card>p {
  font-size:12px;
  color:#c6ddd0
}
.balance-footer {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  border-top:1px solid #ffffff24;
  margin-top:24px;
  padding-top:16px
}
.balance-footer label {
  font-size:12px;
  color:#c6ddd0
}
.balance-footer strong {
  display:block;
  font-size:19px;
  margin-top:4px;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere
}
.balance-link {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:0;
  background:none;
  color:#d4e8de;
  padding:12px 0 0;
  margin-top:8px;
  font-size:12px;
  width:100%;
  min-height:44px
}
.balance-link svg {
  width:16px
}

.home-summary {
  display:grid;
  grid-template-columns:1fr 1fr;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  align-self:stretch;
  align-content:center;
  gap:24px
}
.home-summary>div+div {
  padding-left:24px;
  border-left:1px solid var(--line)
}
.home-summary small {
  display:block;
  color:var(--muted);
  font-size:12px
}
.home-summary strong {
  display:block;
  font-size:24px;
  font-variant-numeric:tabular-nums;
  margin:8px 0;
  overflow-wrap:anywhere
}
.home-summary span {
  display:block;
  font-size:11px;
  color:var(--muted)
}
.quiet-empty {
  font-size:13px;
  color:var(--muted);
  padding:16px 0
}
.daily-check {
  font-size:13px;
  margin-top:12px;
  padding-top:12px;
  min-height:48px
}
.daily-check>svg {
  width:18px
}
.row {
  gap:12px;
  padding:16px 0;
  align-items:center;
  border-color:var(--line)
}
.row-body {
  min-width:0
}
.row-body strong {
  font-size:14px;
  line-height:1.5;
  overflow-wrap:anywhere
}
.row-body small {
  font-size:12px;
  line-height:1.55
}
.row-end {
  font-size:14px;
  font-variant-numeric:tabular-nums;
  max-width:42%;
  white-space:normal;
  overflow-wrap:anywhere
}
.row-end small {
  font-size:11px
}
.category-icon {
  width:36px;
  height:36px;
  border-radius:12px
}
.category-icon svg {
  width:18px
}
.category-icon.green {
  background:var(--soft);
  color:var(--green)
}

.metrics {
  gap:12px;
  margin-bottom:20px
}
.metric {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px
}
.metric small {
  font-size:12px
}
.metric strong {
  font-size:24px;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere
}
.metric p {
  font-size:11px;
  color:var(--muted)
}
.filters {
  gap:8px;
  margin-bottom:16px
}
.filters input,.filters select {
  min-height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  padding:10px 12px;
  color:var(--ink);
  background:var(--paper);
  min-width:0
}
.filters #search,.filters #debt-search {
  font-size:14px!important
}
.back-link {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  border:0;
  background:none;
  color:var(--green);
  font-size:13px;
  padding:0 0 8px;
  margin-bottom:8px
}
.back-link svg {
  width:18px;
  transform:rotate(180deg)
}

.plan-summary {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  padding:24px;
  margin-bottom:20px;
  background:var(--soft);
  border-radius:16px
}
.plan-summary small {
  display:block;
  color:var(--muted);
  font-size:12px
}
.plan-summary strong {
  display:block;
  font-size:25px;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
  margin-top:8px
}
.plan-summary p {
  grid-column:1/-1;
  color:var(--muted);
  font-size:12px;
  margin:0
}
.destination-list {
  padding-block:8px
}
.destination-list>.section-head {
  padding-top:12px
}
.destination {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 18px;
  align-items:center;
  gap:12px;
  border:0;
  border-bottom:1px solid var(--line);
  background:none;
  color:var(--ink);
  padding:18px 0;
  width:100%;
  text-align:left;
  min-height:76px
}
.destination:last-child {
  border-bottom:0
}
.destination>svg {
  width:18px;
  color:var(--muted)
}
.destination strong {
  display:block;
  font-size:14px;
  font-weight:650
}
.destination small {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.5
}
.destination-icon {
  width:40px;
  height:40px;
  display:flex;
  justify-content:center;
  align-items:center;
  background:var(--soft);
  color:var(--green);
  border-radius:12px
}
.destination-icon svg {
  width:20px
}
.workspace-list .destination[aria-pressed=true] {
  background:var(--soft);
  padding-inline:12px;
  border-radius:12px
}
.home-payday>summary,.profile-history>summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:48px;
  list-style:none;
  cursor:pointer;
  font-size:14px;
  font-weight:650
}
.home-payday>summary strong {
  display:block;
  font-size:14px
}
.home-payday>summary small {
  display:block;
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
  font-weight:400
}
.home-payday .runway-card {
  margin-top:20px;
  background:none;
  border:0;
  border-radius:0;
  padding:16px 0 0;
  border-top:1px solid var(--line)
}

.account-list-row {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) minmax(70px,auto) 16px;
  width:100%;
  align-items:center;
  gap:12px;
  text-align:left;
  padding:18px 0;
  background:none;
  border:0;
  border-bottom:1px solid var(--line);
  color:var(--ink)
}
.account-list-row:last-child {
  border-bottom:0
}
.account-list-name strong {
  display:block;
  font-size:14px;
  overflow-wrap:anywhere
}
.account-list-name small {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:4px
}
.account-list-value {
  font-size:15px;
  font-weight:650;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
  text-align:right;
  max-width:170px
}
.account-list-row>svg {
  width:16px;
  color:var(--muted)
}
.account-setting-heading {
  display:none
}
.account-setting-balance small {
  font-size:12px;
  color:var(--muted)
}
.account-setting-balance strong {
  display:block;
  font-size:36px;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
  margin:8px 0 24px
}
.account-setting-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px
}
.account-setting-actions>.button {
  width:100%
}
.account-more {
  width:100%
}
.account-more>summary {
  min-height:44px;
  list-style:none;
  cursor:pointer;
  font-size:14px;
  display:flex;
  justify-content:space-between;
  align-items:center
}
.account-action-list {
  display:grid;
  gap:4px;
  margin-top:8px;
  padding:8px 0
}
.account-action-list button {
  justify-content:flex-start;
  text-align:left;
  min-height:48px;
  border-bottom:1px solid var(--line)
}
.detail-history {
  margin-top:32px
}
.settings-list .setting {
  padding:20px 0;
  gap:16px
}
.setting>div {
  min-width:0
}
.setting h3 {
  font-size:14px
}
.setting p {
  font-size:12px;
  overflow-wrap:anywhere
}
.profile-history .card {
  padding:0;
  border:0;
  margin:16px 0 0
}
.profile-history[open]>summary {
  padding-bottom:16px;
  border-bottom:1px solid var(--line)
}

.report-toolbar {
  display:grid;
  gap:12px;
  margin-bottom:16px
}
.report-range-strip {
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  gap:8px;
  align-items:center
}
.report-range-strip>span {
  text-align:center;
  font-size:12px;
  color:var(--muted)
}
.report-range-strip>.icon-button {
  background:var(--paper);
  border:1px solid var(--line);
  font-size:22px
}
.report-tools {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px
}
.report-tools>.text-button {
  display:flex;
  align-items:center;
  gap:6px
}
.period-tabs {
  width:100%;
  max-width:440px;
  grid-template-columns:repeat(3,minmax(0,1fr));
  background:var(--soft);
  border-radius:12px;
  padding:4px
}
.period-tabs button {
  min-height:44px;
  border-radius:8px
}
.report-layout {
  display:flex;
  flex-direction:column
}
.report-chart-panel {
  order:1
}
.report-metrics {
  order:2;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin-bottom:20px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden
}
.report-metrics .metric {
  border:0;
  border-radius:0;
  padding:16px;
  background:none!important
}
.report-metrics .metric+.metric {
  border-left:1px solid var(--line)
}
.report-metrics .metric strong {
  font-size:22px
}
.report-breakdown-panel {
  order:3
}
.report-chart {
  min-height:170px;
  max-height:280px
}
.report-chart-panel .section-head {
  margin-bottom:16px
}
.report-legend {
  font-size:12px;
  margin-bottom:12px;
  gap:16px
}
.report-footnote {
  font-size:12px;
  line-height:1.65;
  margin:16px 0
}
.report-entries .row {
  flex-wrap:nowrap
}
body[data-chart-motion=true] .report-chart {
  animation:v3-fade 280ms var(--ease-standard) both
}
.report-selection {
  font-size:12px;
  color:var(--muted)
}
.filter-summary {
  font-size:12px;
  padding:12px;
  background:var(--soft);
  border-radius:12px
}
.category-report {
  min-height:64px
}
.category-report>strong {
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
  max-width:150px
}
.report-range-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}

.room-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  padding:0 0 16px;
  border-bottom:1px solid var(--line)
}
.room-toolbar>div {
  min-width:0
}
.room-toolbar h2 {
  font-size:20px;
  overflow-wrap:anywhere
}
.room-toolbar .eyebrow {
  font-size:10px
}
.room-toolbar p {
  font-size:11px;
  max-width:400px;
  margin-top:4px
}
.room-buttons {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:flex-start
}
.room-buttons>.button {
  font-size:12px;
  padding:8px 12px
}
.room-tools>summary {
  min-height:44px;
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:8px 12px;
  list-style:none;
  font-size:12px;
  cursor:pointer
}
.collection-hero {
  background:#174b3a;
  color:#fff;
  padding:24px;
  border-radius:20px;
  border:0
}
.collection-hero .eyebrow {
  color:#c6ddd0
}
.collection-hero .money {
  font-size:36px;
  line-height:1.2;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
  margin:12px 0
}
.collection-hero p {
  font-size:12px;
  color:#c6ddd0
}
.collection-hero-footer {
  border-top:1px solid #ffffff24;
  padding-top:16px;
  margin-top:16px;
  font-size:12px
}
.collection-summary-line {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  padding:20px 0;
  font-size:12px;
  color:var(--muted)
}
.collection-summary-line strong {
  display:block;
  color:var(--ink);
  font-size:18px;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
  margin-top:4px
}
.collection-ledger {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px
}
.collection-list-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
  align-items:center
}
.collection-person {
  min-width:0;
  gap:12px
}
.collection-person>span:last-child {
  min-width:0
}
.collection-person strong {
  font-size:14px;
  overflow-wrap:anywhere
}
.collection-person small {
  font-size:11px
}
.collection-row-amount {
  min-width:0;
  text-align:right;
  max-width:180px
}
.collection-row-amount>strong {
  font-size:20px;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere
}
.collection-row-amount>small {
  font-size:11px
}
.collection-row-amount>.text-button {
  min-height:44px;
  font-size:12px
}
.debt-row {
  padding:18px 0
}
.debt-detail>.money {
  font-size:38px;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere
}
.debt-detail h3 {
  margin:24px 0 12px
}
.debt-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:24px 0
}
.debt-actions>.button:first-child {
  grid-column:1/-1
}
.debt-actions .button {
  font-size:13px
}
.collection-detail-totals {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  background:var(--soft);
  padding:16px;
  border-radius:12px;
  margin:16px 0;
  font-size:12px
}
.collection-detail-totals strong {
  display:block;
  font-size:22px;
  margin-top:6px;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere
}
.receipt-actions .text-button {
  min-height:44px
}

#sheet {
  background:var(--paper);
  color:var(--ink);
  padding:0 24px 24px;
  border:1px solid var(--line);
  border-radius:20px;
  max-width:600px;
  scroll-padding:88px 0 110px;
  animation:v3-sheet var(--motion-sheet) var(--ease-standard) both
}
#sheet::backdrop {
  background:#10271d66;
  backdrop-filter:none
}
.sheet-head {
  display:flex;
  align-items:center;
  gap:12px;
  position:sticky;
  top:0;
  padding:16px 0;
  background:var(--paper);
  border-bottom:1px solid var(--line);
  margin:0;
  z-index:10
}
.sheet-head h2 {
  font-size:20px;
  line-height:1.35;
  flex:1;
  min-width:0;
  overflow-wrap:anywhere
}
.sheet-head .icon-button {
  flex-shrink:0
}
.sheet-back {
  display:none
}
.sheet-back svg {
  transform:rotate(180deg)
}
.sheet-content {
  padding-top:24px
}
.sheet-full .sheet-back,.sheet-detail .sheet-back {
  display:flex
}
.sheet-full .sheet-close,.sheet-detail .sheet-close {
  display:none
}
.sheet-detail {
  animation:v3-detail var(--motion-detail) var(--ease-standard) both!important
}
.form {
  gap:20px
}
.form-grid {
  gap:12px
}
.form label {
  font-size:13px;
  font-weight:550;
  color:var(--ink);
  gap:8px
}
.form input,.form select,.form textarea {
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:12px;
  min-height:48px;
  font-size:16px!important;
  color:var(--ink);
  padding:12px;
  box-shadow:none
}
.form input:focus,.form select:focus,.form textarea:focus {
  border-color:var(--green)
}
.checkbox-row {
  min-height:44px
}
.form .checkbox-row input {
  min-height:20px;
  height:20px;
  width:20px;
  padding:0
}
.form .amount {
  font-size:40px!important;
  font-weight:700;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  padding:12px 0;
  letter-spacing:-.03em;
  color:var(--ink)
}
.amount-label {
  padding:4px 0 8px
}
.form-segments {
  padding:4px;
  border-radius:12px;
  background:var(--soft);
  gap:4px
}
.form-segments button {
  min-height:44px;
  border-radius:8px
}
.form-segments button.active {
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 1px 4px #00000008
}
.form-context {
  background:none;
  padding:0;
  margin:0;
  font-size:12px;
  color:var(--muted);
  display:flex;
  gap:8px;
  align-items:center
}
.form-context svg {
  width:16px
}
.entry-top {
  gap:8px
}
.payment-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px
}
.payment-chip {
  min-height:56px;
  font-size:11px;
  border-radius:12px;
  padding:8px 4px;
  gap:4px;
  color:var(--muted);
  background:var(--bg)
}
.payment-chip svg {
  width:18px;
  height:18px
}
.payment-chip.active {
  background:var(--soft);
  border-color:var(--green);
  color:var(--green)
}
.field-label {
  font-size:13px;
  margin-bottom:8px
}
.add-bank-link {
  font-size:12px
}
.entry-details,.optional-setup {
  border-top:1px solid var(--line);
  padding-top:12px
}
.entry-details>summary,.optional-setup>summary {
  min-height:44px;
  list-style:none;
  color:var(--muted);
  font-size:13px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer
}
.entry-details[open] .form {
  margin-top:16px
}
.entry-details>summary svg {
  width:16px;
  transition:transform var(--motion-fade)
}
.entry-details[open]>summary svg {
  transform:rotate(180deg)
}
.quick-items {
  gap:8px
}
.quick-item {
  font-size:12px;
  padding:12px;
  min-height:44px
}
.repeat-options .quick-items {
  margin-top:12px
}
.note,.friend-note {
  color:var(--ink);
  font-size:12px;
  line-height:1.65;
  background:var(--soft);
  padding:14px;
  border-radius:12px
}
.form-footer-actions {
  display:flex;
  gap:8px
}
.form-footer-actions>.button:first-child {
  flex:1
}
.form-footer-actions>.button {
  min-height:48px;
  min-width:0
}
.form-footer-actions>.danger {
  flex:0 1 112px
}
.form-error:empty {
  display:none
}
.form-error:not(:empty) {
  padding:12px;
  color:var(--red);
  background:#b2463f0d;
  border-radius:12px;
  margin-bottom:12px;
  font-size:13px
}
#sheet .form-footer {
  position:sticky;
  bottom:0;
  z-index:8;
  background:var(--paper);
  padding:16px 0 8px;
  margin-top:8px;
  border-top:1px solid var(--line);
  box-shadow:0 -12px 20px var(--paper)
}
.form-footer .draft-status {
  font-size:11px;
  margin-bottom:0
}
.keyboard-open .draft-status {
  display:none
}
.button[aria-busy=true] svg {
  animation:spin .9s linear infinite
}
.empty {
  padding:28px 12px;
  min-height:0
}
.empty p {
  font-size:13px
}
.empty svg {
  width:28px
}
.banner {
  font-size:12px;
  line-height:1.5;
  gap:12px;
  padding:12px;
  border-radius:12px;
  margin-bottom:16px
}
#toast {
  font-size:13px;
  padding:14px 18px;
  border-radius:12px;
  box-shadow:0 4px 20px #0002
}

@media (min-width:801px) {
  .mobile-brand {
  display:none
}
.topbar {
  display:flex;
  justify-content:space-between
}
.desktop-action {
  display:inline-flex
}
.main {
  max-width:1440px;
  padding:28px 40px 48px
}
.report-layout {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:0 20px
}
.report-chart-panel {
  grid-column:1;
  grid-row:1
}
.report-metrics {
  grid-column:1/-1;
  grid-row:2
}
.report-breakdown-panel {
  grid-column:2;
  grid-row:1
}
.collection-mode .report-chart-panel {
  grid-column:1/-1
}
.floating-add {
  display:none
}

}

@media (max-width:800px) {
 html,body {
  width:100%;
  overflow-x:clip
}
.main {
  margin-inline:auto;
  width:100%;
  max-width:680px;
  padding:0 16px calc(140px + env(safe-area-inset-bottom))
}
.topbar {
  display:flex;
  position:relative;
  gap:12px;
  min-height:72px;
  padding:12px 0;
  margin-bottom:16px
}
.desktop-brand-label {
  display:none
}
.mobile-brand {
  display:flex;
  flex:0 0 32px
}
.mobile-brand img {
  width:32px;
  height:32px
}
.top-actions {
  display:flex;
  flex:1;
  justify-content:space-between;
  gap:12px;
  min-width:0
}
.workspace-trigger {
  border:0;
  background:none;
  padding:8px 0;
  max-width:calc(100% - 56px);
  font-size:14px
}
.profile-trigger {
  flex-shrink:0
}
.app-ready .main {
  padding-top:0;
  padding-bottom:calc(92px + env(safe-area-inset-bottom));
  scrollbar-gutter:auto
}
.app-ready .bottom-nav {
  padding:6px 8px max(8px,env(safe-area-inset-bottom));
  min-height:70px
}
.greeting,.page-title {
  margin-bottom:20px
}
.greeting h1,.page-title h1 {
  font-size:26px;
  letter-spacing:-.03em;
  overflow-wrap:anywhere
}
.greeting p,.page-title p {
  font-size:13px;
  line-height:1.6
}
.desktop-action {
  display:none!important
}
.simple-home {
  display:flex!important;
  flex-direction:column;
  gap:16px
}
.card {
  padding:18px;
  margin-bottom:16px;
  border-radius:16px
}
.section-head h2 {
  font-size:16px
}
.balance-card {
  padding:24px;
  border-radius:20px
}
.balance-card .money {
  font-size:clamp(28px,8.5vw,38px)
}
.balance-footer {
  margin-top:20px;
  padding-top:16px
}
.balance-footer strong {
  font-size:18px
}
.home-summary {
  padding:18px;
  gap:16px
}
.home-summary>div+div {
  padding-left:16px
}
.home-summary strong {
  font-size:22px;
  margin:6px 0
}
.row {
  padding:16px 0;
  gap:10px
}
.row-end {
  font-size:14px
}
.row-body small {
  font-size:11px
}
.category-icon {
  width:32px;
  height:32px
}
.two-col {
  grid-template-columns:minmax(0,1fr);
  gap:0
}
.metrics {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px
}
.metric {
  padding:14px
}
.metric strong {
  font-size:22px
}
.metrics>.metric:last-child:nth-child(odd) {
  grid-column:1/-1
}
.filters {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px
}
.filters>#search,.filters>#debt-search {
  grid-column:1/-1
}
.filters>[data-action=export] {
  justify-self:end;
  font-size:12px;
  border:0;
  background:none;
  min-height:44px;
  padding:8px
}
.plan-controls input {
  width:100%
}
.plan-summary {
  padding:20px;
  gap:16px
}
.plan-summary strong {
  font-size:22px
}
.destination-list {
  padding-block:4px
}
.destination {
  min-height:80px;
  padding:18px 0
}
.account-list-row {
  gap:10px;
  grid-template-columns:36px minmax(0,1fr) minmax(60px,auto) 16px
}
.account-list-row .destination-icon {
  width:36px;
  height:36px
}
.account-list-value {
  font-size:14px;
  max-width:120px
}
.account-list-name strong {
  font-size:13px
}
.account-setting-balance strong {
  font-size:34px
}
.account-action-list {
  grid-template-columns:1fr
}
.report-tools {
  font-size:12px
}
.report-toolbar {
  gap:8px
}
.report-metrics {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0
}
.report-metrics .metric {
  padding:14px 10px;
  display:block
}
.report-metrics .metric:last-child {
  grid-column:auto
}
.report-metrics .metric small {
  font-size:11px
}
.report-metrics .metric strong {
  font-size:17px;
  letter-spacing:-.02em;
  margin:6px 0
}
.report-metrics .metric p {
  font-size:10px;
  line-height:1.55
}
.report-chart-panel {
  padding:18px 12px
}
.report-chart-panel .section-head {
  padding-inline:6px
}
.report-chart {
  min-height:160px
}
.room-toolbar {
  display:block;
  margin-bottom:16px
}
.room-toolbar h2 {
  font-size:20px
}
.room-buttons {
  margin-top:12px;
  gap:8px
}
.room-tools[open] {
  flex-basis:100%
}
.room-tools>div {
  min-width:0;
  position:static;
  box-shadow:none;
  width:100%;
  background:var(--paper);
  border:1px solid var(--line);
  margin-top:8px;
  border-radius:12px;
  padding:8px
}
.room-tools>div button {
  min-height:44px
}
.collection-hero {
  padding:24px
}
.collection-hero .money {
  font-size:clamp(28px,8.5vw,38px)
}
.collection-summary-line {
  grid-template-columns:1fr 1fr;
  gap:16px;
  padding:20px 0
}
.collection-summary-line>span:last-child {
  grid-column:1/-1
}
.collection-ledger {
  padding:18px
}
.collection-list-row {
  grid-template-columns:minmax(0,1fr);
  gap:8px;
  padding:18px 0
}
.collection-row-amount {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:2px 12px;
  padding-left:48px;
  text-align:left;
  max-width:none
}
.collection-row-amount>strong {
  font-size:22px
}
.collection-row-amount>small {
  grid-column:1
}
.collection-row-amount>.text-button {
  grid-column:2;
  grid-row:1/3;
  background:var(--soft);
  border-radius:10px;
  justify-content:center;
  padding:8px 12px;
  max-width:110px
}
.debt-row {
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 18px;
  gap:4px 10px
}
.debt-row>.category-icon {
  grid-column:1;
  grid-row:1/3
}
.debt-row>.row-body {
  grid-column:2;
  grid-row:1
}
.debt-row>.row-end {
  grid-column:2;
  grid-row:2;
  max-width:100%;
  text-align:left
}
.debt-row>svg:last-child {
  grid-column:3;
  grid-row:1/3
}
.debt-detail>.money {
  font-size:34px
}
.collection-detail-totals strong {
  font-size:22px
}
.debt-detail>.debt-actions {
  position:static
}
.bottom-nav {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  background:var(--paper);
  border-top:1px solid var(--line);
  box-shadow:none;
  padding:6px 8px max(8px,env(safe-area-inset-bottom));
  z-index:20
}
.bottom-nav button {
  min-width:0;
  min-height:54px;
  font-size:11px;
  gap:4px;
  border-radius:12px
}
.bottom-nav button svg {
  width:21px;
  height:21px
}
.bottom-nav button.active {
  background:var(--soft);
  color:var(--green);
  font-weight:650
}
.floating-add {
  display:flex;
  right:16px;
  bottom:calc(84px + env(safe-area-inset-bottom));
  min-height:48px;
  padding:0 18px;
  border-radius:16px;
  box-shadow:0 4px 12px #174b3a25;
  background:var(--green);
  color:var(--paper);
  font-size:14px
}
.dark .floating-add {
  color:#13221c
}
body[data-view=insights] .floating-add,body[data-view=settings] .floating-add,body[data-view=plan][data-plan=overview] .floating-add {
  display:none
}
body.sheet-open .bottom-nav,body.sheet-open .floating-add {
  display:none
}
body.sheet-open {
  overflow:hidden
}
#toast {
  bottom:calc(144px + env(safe-area-inset-bottom));
  left:16px;
  right:16px;
  max-width:480px;
  margin:auto
}
body.sheet-open #toast {
  bottom:24px;
  z-index:50
}
#toast {
  width:auto;
  max-width:480px;
  transform:translateY(20px)
}
#toast.show {
  transform:translateY(0)
}

 #sheet {
  width:100%;
  max-width:680px;
  margin:auto auto 0;
  padding:0 20px max(20px,env(safe-area-inset-bottom));
  border:0;
  border-radius:24px 24px 0 0;
  max-height:92dvh
}
.sheet-head {
  padding:12px 0;
  gap:12px
}
.sheet-head h2 {
  font-size:18px
}
.sheet-content {
  padding-top:20px
}
#sheet.sheet-full,#sheet.sheet-detail {
  max-width:none;
  width:100%;
  height:100vh;
  height:100dvh;
  max-height:100vh;
  max-height:100dvh;
  margin:0;
  border-radius:0;
  padding:env(safe-area-inset-top) 20px max(20px,env(safe-area-inset-bottom))
}
.sheet-full .sheet-content,.sheet-detail .sheet-content {
  max-width:600px;
  margin-inline:auto
}
.sheet-full .sheet-head,.sheet-detail .sheet-head {
  max-width:600px;
  margin-inline:auto
}
.form {
  gap:18px
}
.form .amount {
  font-size:38px!important
}
.form-footer-actions>.button {
  min-height:50px;
  font-size:14px
}
.form-grid {
  grid-template-columns:1fr 1fr;
  gap:12px
}
.auth-shell {
  padding:20px 16px
}
.auth-art {
  padding:28px
}
.auth-art h1 {
  font-size:28px
}
.auth-form {
  padding:24px
}
.onboarding-card {
  padding:24px
}
.banner {
  font-size:12px
}
.receipt-paper {
  padding:20px
}


}

@media (max-width:360px) {
  .main {
  padding-inline:12px
}
.card {
  padding:16px
}
.balance-card {
  padding:20px
}
.balance-footer strong {
  font-size:16px
}
.account-list-row {
  grid-template-columns:32px minmax(0,1fr) minmax(50px,auto) 14px;
  gap:8px
}
.account-list-value {
  max-width:100px;
  font-size:13px
}
.collection-row-amount {
  padding-left:0
}
.report-metrics .metric {
  padding:12px 8px
}
.report-metrics .metric strong {
  font-size:15px
}
#sheet,#sheet.sheet-full,#sheet.sheet-detail {
  padding-inline:16px
}
.form-grid {
  grid-template-columns:1fr
}
.form-footer-actions>.button {
  font-size:13px
}
.home-summary strong {
  font-size:20px
}

}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important
}
button:active:not(:disabled) {
  transform:none
}

}

@media print {
  .sheet-head,.bottom-nav,.floating-add,.topbar {
  display:none!important
}
#sheet {
  animation:none!important;
  max-height:none!important;
  height:auto!important
}

}

/* Activity uses the shared design system, with a focused ledger layout. */
.activity-title {
   display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;

}

.activity-title>div {
   min-width:0;

}

.activity-summary {
   background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  padding:20px 0 0;
  margin-bottom:20px;

}

.activity-summary>div:not(.activity-other-totals) {
   min-width:0;
  padding:0 20px;

}

.activity-summary>div+div:not(.activity-other-totals) {
   border-left:1px solid var(--line);

}

.activity-summary small {
   display:block;
  font-size:12px;
  color:var(--muted);

}

.activity-summary strong {
   display:block;
  font-size:27px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
  margin-top:8px;

}

.activity-summary>p {
   grid-column:1/-1;
  font-size:12px;
  color:var(--muted);
  padding:16px 20px;
  margin:0;

}

.activity-other-totals {
   grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  gap:12px 24px;
  border-top:1px solid var(--line);
  padding:12px 20px;
  background:var(--soft);
  border-radius:0 0 16px 16px;
  font-size:12px;
  color:var(--muted);

}

.activity-other-totals strong {
   display:inline;
  font-size:13px;
  letter-spacing:0;
  color:var(--ink);
  margin-left:6px;

}

.activity-controls {
   background:var(--bg);
  padding:8px 0 12px;
  position:sticky;
  top:0;
  z-index:3;

}

.activity-search-row {
   display:flex;
  align-items:center;
  gap:8px;

}

.activity-search {
   display:flex;
  align-items:center;
  gap:10px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  min-width:0;
  flex:1;
  min-height:48px;
  padding:0 12px;

}

.activity-search>svg {
   width:18px;
  height:18px;
  color:var(--muted);

}

.activity-search input {
   flex:1;
  min-width:0;
  width:100%;
  border:0;
  background:none;
  color:var(--ink);
  font-size:16px;
  min-height:46px;
  padding:10px 0;
  outline-offset:0;

}

.activity-search input::-webkit-search-cancel-button {
   display:none;

}

.activity-search .icon-button {
   width:36px;
  min-width:36px;
  min-height:44px;
  background:none;

}

.activity-search .icon-button svg {
   width:16px;
  height:16px;

}

.activity-filter-button {
   display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  color:var(--ink);
  font-size:13px;
  min-height:48px;

}

.activity-filter-button svg {
   width:18px;
  height:18px;

}

.activity-range-row {
   display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0;

}

.activity-range-button {
   display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 0;
  border:0;
  background:none;
  color:var(--ink);
  font-size:13px;
  text-align:left;
  min-width:0;

}

.activity-range-button span {
   overflow-wrap:anywhere;

}

.activity-range-button>svg {
   width:16px;
  height:16px;

}

.activity-month-nav {
   display:flex;
  align-items:center;
  gap:4px;

}

.activity-month-nav .icon-button {
   background:none;
  font-size:22px;
  min-width:40px;
  width:40px;

}

.activity-export {
   margin-left:auto;
  display:flex;
  gap:6px;
  align-items:center;
  flex-shrink:0;
  min-height:44px;
  padding:8px;

}

.activity-types {
   display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  border-radius:12px;
  padding:4px;
  background:var(--soft);
  max-width:480px;

}

.activity-types button {
   border:0;
  border-radius:8px;
  min-height:44px;
  padding:10px 8px;
  background:none;
  color:var(--muted);
  font-size:13px;

}

.activity-types button.active {
   background:var(--paper);
  color:var(--ink);
  font-weight:650;
  box-shadow:0 1px 4px #00000008;

}

.activity-filter-tags {
   display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;

}

.activity-filter-tags:empty {
   display:none;

}

.activity-filter-tag {
   display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--ink);
  font-size:12px;
  padding:8px 12px;
  max-width:100%;
  overflow-wrap:anywhere;

}

.activity-filter-tag svg {
   width:14px;
  height:14px;

}

.activity-list-status {
   display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:4px 0 8px;

}

.activity-list-status p {
   margin-right:auto;
  font-size:12px;
  color:var(--muted);

}

.activity-list-status .text-button {
   font-size:12px;

}

.activity-timeline {
   border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  overflow:hidden;

}

.activity-day {
   padding:0 20px;

}

.activity-day>header {
   display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 0 10px;
  border-bottom:1px solid var(--line);

}

.activity-day>header h2 {
   font-size:13px;
  font-weight:650;
  letter-spacing:0;

}

.activity-day>header>span {
   font-size:11px;
  color:var(--muted);
  text-align:right;
  overflow-wrap:anywhere;

}

.activity-entry {
   display:grid;
  grid-template-columns:36px minmax(0,1fr) minmax(70px,auto);
  gap:12px;
  align-items:center;
  padding:18px 0;
  min-height:84px;
  width:100%;
  text-align:left;
  background:none;
  color:var(--ink);
  border:0;
  border-bottom:1px solid var(--line);

}

.activity-entry:last-child {
   border-bottom:0;

}

.activity-entry-icon {
   display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:12px;
  background:var(--soft);
  color:var(--green);

}

.activity-entry-icon svg {
   width:18px;
  height:18px;

}

.activity-entry.expense .activity-entry-icon {
   background:#b2463f0b;
  color:var(--red);

}

.activity-entry.income .activity-entry-amount {
   color:var(--green);

}

.activity-entry.transfer .activity-entry-icon {
   background:var(--soft);
  color:var(--muted);

}

.activity-entry-name {
   min-width:0;

}

.activity-entry-name strong {
   display:block;
  font-size:14px;
  font-weight:650;
  overflow-wrap:anywhere;
  line-height:1.5;

}

.activity-entry-name small {
   display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.5;
  overflow-wrap:anywhere;

}

.activity-entry-meta {
   display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.55;
  overflow-wrap:anywhere;

}

.activity-entry-amount {
   font-size:16px;
  font-weight:650;
  font-variant-numeric:tabular-nums;
  text-align:right;
  max-width:220px;
  overflow-wrap:anywhere;
  line-height:1.5;

}

.activity-entry-amount svg {
   display:block;
  margin:6px 0 0 auto;
  width:14px;
  height:14px;
  color:var(--muted);

}

.activity-list-footer {
   display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding:16px 20px;
  background:var(--bg);

}

.activity-list-footer p,.activity-list-footer>span {
   font-size:12px;
  color:var(--muted);

}

.activity-list-footer .button {
   font-size:13px;

}

.activity-footnote {
   font-size:12px;
  color:var(--muted);
  line-height:1.65;
  margin:16px 0 0;

}

.activity-empty {
   display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:40px 20px;
  gap:12px;

}

.activity-empty h2 {
   font-size:18px;

}

.activity-empty p {
   color:var(--muted);
  font-size:13px;
  max-width:320px;

}

.activity-empty .button {
   margin-top:8px;

}

.activity-filter-section {
   border:0;
  border-bottom:1px solid var(--line);
  padding:0 0 20px;
  margin:0;
  display:grid;
  gap:16px;
  min-width:0;

}

.activity-filter-section legend {
   font-size:15px;
  font-weight:650;
  margin-bottom:16px;
  padding:0;

}

.activity-filter-section .form-grid {
   margin:0;

}

.activity-detail-amount {
   font-size:40px;
  font-weight:750;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.03em;
  overflow-wrap:anywhere;
  line-height:1.2;
  margin:16px 0 12px;

}

.activity-detail>h3 {
   font-size:20px;
  line-height:1.4;
  overflow-wrap:anywhere;

}

.activity-detail-facts {
   margin:24px 0;

}

.activity-detail-facts>div {
   display:grid;
  grid-template-columns:minmax(90px,1fr) minmax(0,1.4fr);
  gap:16px;
  align-items:start;
  border-bottom:1px solid var(--line);
  padding:16px 0;
  font-size:13px;

}

.activity-detail-facts dt {
   color:var(--muted);

}

.activity-detail-facts dd {
   margin:0;
  text-align:right;
  font-weight:550;
  overflow-wrap:anywhere;

}

.activity-detail-note {
   border:1px solid var(--line);
  padding:16px;
  border-radius:12px;
  margin:20px 0;

}

.activity-detail-note h3 {
   font-size:13px;
  margin-bottom:8px;

}

.activity-detail-note p {
   font-size:13px;
  overflow-wrap:anywhere;
  white-space:pre-wrap;

}

.activity-detail-actions {
   display:grid;
  gap:12px;
  margin:24px 0;

}

.sheet-with-back .sheet-back {
   display:flex;

}

.sheet-with-back .sheet-close {
   display:none;

}

@media (max-width:800px) {
 .activity-summary {
   padding-top:16px;
  margin-bottom:12px;

}

 .activity-summary>div:not(.activity-other-totals) {
   padding:0 12px;

}

 .activity-summary small {
   font-size:11px;
  line-height:1.5;

}

 .activity-summary strong {
   font-size:20px;
  margin-top:6px;

}

 .activity-summary>p {
   padding:14px 16px;
  font-size:11px;

}

 .activity-other-totals {
   padding:12px 16px;
  font-size:11px;
  gap:8px 16px;

}

 .activity-other-totals strong {
   font-size:12px;

}

 .activity-filter-button {
   width:48px;
  justify-content:center;
  padding:10px;
  position:relative;

}

 .activity-filter-button>span {
   display:none;

}

 .activity-filter-button[aria-label*="applied"]::after {
   content:'';
  position:absolute;
  right:8px;
  top:8px;
  width:6px;
  height:6px;
  background:var(--green);
  border-radius:50%;

}

 .activity-search {
   gap:8px;
  padding-inline:10px;

}

 .activity-search input {
   font-size:16px;

}

 .activity-search input::placeholder {
   font-size:13px;

}

 .activity-range-row {
   flex-wrap:wrap;
  gap:4px;

}

 .activity-range-button {
   font-size:12px;
  flex:1;

}

 .activity-month-nav .icon-button {
   width:36px;
  min-width:36px;

}

 .activity-export {
   font-size:12px;
  margin-left:4px;

}

 .activity-day {
   padding-inline:16px;

}

 .activity-day>header {
   flex-wrap:wrap;
  gap:4px 12px;

}

 .activity-day>header>span {
   font-size:11px;

}

 .activity-entry {
   grid-template-columns:32px minmax(0,1fr) minmax(70px,auto);
  gap:10px;

}

 .activity-entry-icon {
   width:32px;
  height:32px;

}

 .activity-entry-name strong {
   font-size:14px;

}

 .activity-entry-name small {
   font-size:11px;

}

 .activity-entry-meta {
   font-size:10px;

}

 .activity-entry-amount {
   font-size:15px;
  max-width:128px;

}

 .activity-list-footer {
   padding:16px;
  display:block;

}

 .activity-list-footer .button {
   margin-top:12px;
  width:100%;

}

 .activity-list-footer>span {
   display:block;
  margin-top:8px;
  font-size:11px;

}

 .activity-detail-amount {
   font-size:36px;

}


}

@media (max-width:360px) {
 .activity-summary>div:not(.activity-other-totals) {
   padding:0 9px;

}

 .activity-summary strong {
   font-size:17px;

}

 .activity-entry {
   grid-template-columns:32px minmax(0,1fr);
  gap:4px 10px;

}

 .activity-entry-icon {
   grid-column:1;
  grid-row:1/3;
  align-self:start;
  margin-top:4px;

}

 .activity-entry-name {
   grid-column:2;
  grid-row:1;

}

 .activity-entry-amount {
   grid-column:2;
  grid-row:2;
  max-width:none;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;

}

 .activity-entry-amount svg {
   margin:0;

}

 .activity-day {
   padding-inline:14px;

}


}

/* V3.3: category pie, bank/debit surfaces and credit-card surfaces. */
.ui-icon {
 fill:none;
 stroke:currentColor;
 stroke-width:1.7;
 stroke-linecap:round;
 stroke-linejoin:round;
}
.wallet-card-grid {
 display:grid;
 grid-template-columns:1fr;
 gap:16px;
 padding-top:4px;
}
.payment-card {
 --card-start:#123d35;
 --card-end:#09241f;
 --card-glow:#3de4b4;
 position:relative;
 isolation:isolate;
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 grid-template-rows:auto 1fr auto;
 gap:12px;
 align-items:center;
 width:100%;
 min-width:0;
 min-height:192px;
 padding:18px 20px;
 text-align:left;
 color:#f6fcff;
 background:linear-gradient(135deg,var(--card-start),var(--card-end));
 background:radial-gradient(ellipse at 95% 0%,color-mix(in srgb,var(--card-glow) 22%,transparent),transparent 68%),linear-gradient(135deg,var(--card-start),var(--card-end));
 border:1px solid #ffffff30;
 border:1px solid color-mix(in srgb,var(--card-glow) 36%,#ffffff24);
 border-radius:20px;
 box-shadow:0 8px 24px #10231d16,inset 0 1px 0 #ffffff22;
 box-shadow:0 8px 24px #10231d16,0 0 18px color-mix(in srgb,var(--card-glow) 12%,transparent),inset 0 1px 0 #ffffff22;
 overflow:hidden;
 font-size:14px;
}
.payment-card::before {
 content:'';
 position:absolute;
 z-index:-1;
 width:230px;
 height:230px;
 top:-130px;
 right:-90px;
 border:1px solid #ffffff18;
 border-radius:50%;
 box-shadow:0 0 0 35px #ffffff06,0 0 0 70px #ffffff04;
 pointer-events:none;
 background:radial-gradient(circle,var(--card-glow),transparent 70%);
 opacity:.14;
 animation:card-glow-breathe 6s ease-in-out infinite alternate;
}
.payment-card::after {
 content:'';
 position:absolute;
 z-index:-1;
 pointer-events:none;
 top:-50%;
 left:-60%;
 width:55%;
 height:200%;
 background:linear-gradient(90deg,transparent,#ffffff15,transparent);
 opacity:0;
 animation:card-glow-sheen 8s ease-in-out infinite;
}
@keyframes card-glow-breathe {
 from { opacity:.12;transform:translate(0,0) scale(.9); }
 to { opacity:.3;transform:translate(-18px,14px) scale(1.12); }
}
@keyframes card-glow-sheen {
 0%,18% { opacity:0;transform:translateX(-40%) skewX(-18deg); }
 35% { opacity:.65; }
 64%,100% { opacity:0;transform:translateX(360%) skewX(-18deg); }
}
.bank-ocean { --card-start:#123a68;--card-end:#071c36;--card-glow:#56b9ff; }
.bank-azure { --card-start:#075077;--card-end:#082941;--card-glow:#53d3ff; }
.bank-copper { --card-start:#743b29;--card-end:#302021;--card-glow:#ffc07c; }
.bank-plum { --card-start:#632747;--card-end:#291b32;--card-glow:#e59bc9; }
.bank-ruby { --card-start:#572a42;--card-end:#172b46;--card-glow:#ff969d; }
.bank-teal { --card-start:#125066;--card-end:#102b3b;--card-glow:#61e4d8; }
.payment-card.credit-card-design {
 background:linear-gradient(145deg,var(--card-end),var(--card-start));
 background:radial-gradient(ellipse at 90% 10%,color-mix(in srgb,var(--card-glow) 26%,transparent),transparent 65%),linear-gradient(145deg,var(--card-end),var(--card-start));
}
.payment-card-top {
 grid-column:1/-1;
 grid-row:1;
 display:flex;
 align-items:center;
 gap:10px;
 min-width:0;
 width:100%;
}
.payment-bank-badge {
 display:flex;
 align-items:center;
 justify-content:center;
 flex-shrink:0;
 min-width:38px;
 min-height:32px;
 padding:6px;
 border:1px solid #ffffff30;
 border-radius:8px;
 background:#ffffff0c;
 font-size:10px;
 font-weight:750;
 letter-spacing:.03em;
 color:#fff;
}
.payment-bank-name { flex:1;font-size:14px;font-weight:650;overflow-wrap:anywhere;line-height:1.4; }
.payment-card-default { padding:4px 7px;border-radius:6px;background:#ffffff16;font-size:10px;color:#e9f8ef; }
.payment-card-middle { grid-column:2;grid-row:2;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:8px; }
.payment-card-chip {
 display:flex;
 align-items:center;
 justify-content:center;
 width:34px;
 height:28px;
 border-radius:6px;
 background:linear-gradient(130deg,#f0dca3,#bda46b);
 color:#695731;
 box-shadow:inset 0 1px 2px #ffffff70;
}
.payment-card-chip svg { width:27px;height:24px;stroke-width:1; }
.payment-card-type { display:flex;align-items:center;gap:7px;color:#e4edf7;font-size:11px; }
.payment-card-type svg { width:18px;height:18px; }
.payment-card-balance { grid-column:1;grid-row:2;display:block;min-width:0; }
.payment-card-balance>small { display:block;font-size:11px;color:#c6d6e2;margin-bottom:5px; }
.payment-card-balance>strong { display:block;font-size:29px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:#fff;overflow-wrap:anywhere;line-height:1.25; }
.payment-card-bottom { grid-column:1/-1;grid-row:3;display:flex;justify-content:space-between;align-items:end;gap:12px;border-top:1px solid #ffffff1c;padding-top:10px;min-width:0;width:100%; }
.payment-card-bottom>span:first-child { min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 8px; }
.payment-card-bottom strong { display:block;font-size:12px;font-weight:550;color:#eff5fc;overflow-wrap:anywhere; }
.payment-card-bottom small { display:block;font-size:10px;color:#bdd0de;margin-top:0;overflow-wrap:anywhere; }
.payment-card-open { display:flex;align-items:center;gap:5px;font-size:11px;color:#dce9f4;flex-shrink:0; }
.payment-card-open svg { width:16px;height:16px; }
.account-detail>.payment-card { margin-bottom:24px;max-width:none;margin-inline:auto; }
.account-detail:has(>.payment-card) .account-setting-balance { display:none; }
.wallet-card-grid>.payment-card { border-bottom:1px solid #ffffff30; }
.wallet-card-grid>.account-list-row:not(.payment-card) { grid-column:1/-1; }
.payment-card:focus-visible { outline:3px solid var(--green);outline-offset:4px; }
@media (hover:hover) {
 button.payment-card:hover { border-color:color-mix(in srgb,var(--card-glow) 70%,white);box-shadow:0 8px 28px #10231d24,0 0 22px color-mix(in srgb,var(--card-glow) 24%,transparent); }
}
.category-pie-layout { display:grid;gap:16px; }
.category-pie-visual { width:100%;max-width:280px;justify-self:center;text-align:center; }
.category-pie { display:block;width:100%;height:auto;fill:none;stroke:none; }
.category-pie-track { fill:none;stroke:var(--soft);stroke-width:34; }
.category-pie-slice { fill:none;stroke-width:34;stroke-linecap:butt;cursor:pointer;transition:stroke-width 120ms ease; }
.category-pie-slice:hover,.category-pie-slice:focus-visible { stroke-width:40;outline:none; }
.category-pie text { stroke:none;fill:var(--ink);pointer-events:none;font-family:inherit; }
.category-pie .category-pie-caption { font-size:11px;fill:var(--muted); }
.category-pie .category-pie-total { font-weight:750;letter-spacing:-.5px; }
.category-pie-guide { font-size:11px;color:var(--muted);margin-top:0; }
.category-pie-legend { display:grid;align-content:start;min-width:0; }
.category-pie-row.category-report { display:grid;grid-template-columns:32px minmax(0,1fr) minmax(65px,auto);gap:10px;align-items:center;width:100%;min-height:68px;padding:14px 0;border-bottom:1px solid var(--line); }
.category-pie-row:last-child { border-bottom:0; }
.category-pie-icon { display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;background:var(--category-color);color:#fff; }
.category-pie-icon .ui-icon { width:17px;height:17px; }
.category-pie-name { min-width:0; }
.category-pie-name>strong { display:block;font-size:13px;overflow-wrap:anywhere; }
.category-pie-name>small { display:block;font-size:11px;color:var(--muted);margin-top:4px;line-height:1.55; }
.category-pie-value { min-width:0;max-width:160px;text-align:right; }
.category-pie-value>strong { font-size:14px;display:block;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.category-pie-value>.ui-icon { display:block;width:14px;height:14px;color:var(--muted);margin:4px 0 0 auto; }
.category-pie-basis { font-size:11px;line-height:1.65;color:var(--muted);margin-top:16px; }
.category-pie-empty { display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:32px 12px; }
.category-pie-empty>svg { width:32px;height:32px;color:var(--muted); }
.category-pie-empty h3 { font-size:15px; }
.category-pie-empty p { color:var(--muted);font-size:12px; }
.category-detail-total { font-size:36px;font-weight:750;letter-spacing:-.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:20px 0 8px; }
.category-detail-metrics { display:grid;grid-template-columns:1fr 1fr;gap:16px;background:var(--soft);padding:16px;border-radius:12px;margin:24px 0; }
.category-detail-metrics small { display:block;color:var(--muted);font-size:12px; }
.category-detail-metrics strong { display:block;font-size:21px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin-top:6px; }
.report-category-detail h3 { margin:24px 0 8px; }
@media (max-width:800px) {
 .wallet-card-grid { grid-template-columns:1fr;gap:16px; }
 .payment-card { min-height:192px;padding:18px; }
 .payment-card-balance>strong { font-size:28px; }
 .category-pie-layout { grid-template-columns:1fr;gap:12px; }
 .category-pie-visual { max-width:270px; }
 .category-pie-value { max-width:120px; }
}
@media (max-width:360px) {
 .payment-card { padding:16px;gap:10px;min-height:180px; }
 .payment-bank-name { font-size:13px; }
 .payment-card-balance>strong { font-size:25px; }
 .payment-card-top { gap:8px; }
 .payment-card-default { padding:3px 5px;font-size:9px; }
 .category-pie-row.category-report { gap:8px;grid-template-columns:28px minmax(0,1fr) minmax(60px,auto); }
 .category-pie-icon { width:28px;height:28px; }
 .category-pie-value { max-width:100px; }
 .category-pie-value>strong { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) {
 .payment-card,.payment-card::before,.payment-card::after,.category-pie-slice { transition:none!important;animation:none!important; }
 .payment-card::before { opacity:.14;transform:none; }
 .payment-card::after { opacity:0; }
}

/* V3.4 — reference-led visual system: mint, deep teal, editorial hierarchy. */
:root,body.collection-mode {
 --bg:#f4f7f5;--paper:#ffffff;--soft:#eaf2ed;--ink:#102f30;
 --muted:#5d7370;--green:#075b50;--line:#dfe8e3;--lime:#cfeba0;
 --radius:22px;--surface-shadow:0 4px 20px #123e3014;
}
body.dark,body.collection-mode.dark {
 --bg:#0d2021;--paper:#142c2d;--soft:#203b3a;--ink:#edf7f2;
 --muted:#afc6bf;--green:#b9dda1;--line:#2d4745;--lime:#cfeba0;
 --surface-shadow:0 4px 20px #00000014;
}
body {font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;}
h1,h2,h3,.money {font-family:inherit;}
h1 {font-weight:550;letter-spacing:-.045em;}
.page-title h1,.greeting h1 {font-size:clamp(28px,2.6vw,38px);font-weight:550;letter-spacing:-.045em;}
.greeting .eyebrow {font-size:11px;letter-spacing:.08em;}
.greeting p,.page-title p {color:var(--muted);}
.section-head h2 {font-weight:600;letter-spacing:-.035em;font-size:18px;}
.card {border-color:var(--line);box-shadow:var(--surface-shadow);border-radius:22px;}
.button {border-radius:14px;font-weight:600;}
.button.soft {background:var(--soft);}
.button.outline {background:var(--paper);}
.icon-button {border-radius:50%;}
.profile-trigger {background:var(--ink);color:var(--paper);border:4px solid var(--paper);box-shadow:0 0 0 1px var(--line);width:44px;min-height:44px;}
.workspace-trigger {border-radius:30px;font-size:13px;padding-inline:16px;background:var(--paper);}
.sidebar {width:220px;padding:32px 20px;background:var(--paper);}
.side-links {gap:7px;margin-top:40px;}
.side-links button {font-weight:550;font-size:14px;color:var(--muted);padding:13px 16px;border-radius:14px;}
.side-links button.active {background:var(--ink);color:var(--paper);box-shadow:0 4px 12px #102f3010;}
.side-note {border:1px solid var(--line);background:var(--bg);border-radius:18px;}
.side-note p {color:var(--muted);}
.main {margin-left:220px;padding:28px 36px 48px;max-width:1620px;}
.topbar {border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:30px;}
.simple-home {grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:22px;align-items:stretch;}
.simple-home>* {min-width:0;}
.balance-card {
 background:#063f3e;color:#fff;border-radius:26px;padding:0 26px 18px;
 box-shadow:0 10px 30px #063f3e14;isolation:isolate;overflow:hidden;
}
.balance-identity {
 position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;
 margin:0 -26px 22px;padding:16px 24px;background:linear-gradient(115deg,#f0f6e8,#cce7a5);
 color:#133e37;font-size:12px;border:8px solid #063f3e;border-bottom:0;border-radius:26px 26px 14px 14px;
}
.balance-identity>span:first-child {display:flex;gap:8px;align-items:center;font-weight:600;}
.balance-identity>span:last-child {font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:650;}
.balance-identity svg {width:16px;height:16px;}
.balance-card::before {
 content:'';position:absolute;inset:50px 0 0;width:auto;height:auto;border:0;border-radius:0;z-index:-1;
 background:radial-gradient(ellipse at 90% 10%,#a6dd8420,transparent 60%),radial-gradient(#a5ddab22 .65px,transparent .65px);
 background-size:auto,12px 12px;opacity:.5;pointer-events:none;
}
.balance-top {font-size:12px;color:#c0d9d2;}
.balance-top svg {opacity:.7;}
.balance-card .money {font-size:clamp(30px,3.5vw,46px);font-weight:550;letter-spacing:-.05em;margin-top:8px;}
.balance-card>p {font-size:11px;color:#bbd5ce;line-height:1.6;max-width:48ch;}
.balance-footer {padding-top:16px;margin-top:18px;gap:20px;}
.balance-footer label {color:#c6dcd5;font-size:11px;}
.balance-footer strong {font-size:20px;font-weight:550;color:#f6fff4;}
.balance-link {margin-top:12px;border:1px solid #80b4a74a;border-radius:30px;padding:10px 16px;color:#e4f3ec;font-size:12px;}
.balance-link:hover {background:#ffffff0a;}
.home-summary {padding:0;background:none;border:0;gap:14px;grid-template-columns:1fr;align-content:stretch;}
.home-summary>div {position:relative;padding:22px 24px;border:1px solid var(--line);background:var(--paper);border-radius:22px;box-shadow:var(--surface-shadow);min-width:0;}
.home-summary>div+div {border:1px solid var(--line);padding-left:24px;}
.home-summary strong {font-weight:550;letter-spacing:-.04em;font-size:30px;line-height:1.4;}
.home-summary small {font-size:12px;padding-right:38px;}
.home-summary>div>span:not(.summary-symbol) {color:var(--muted);font-size:11px;}
.summary-symbol {position:absolute;top:18px;right:18px;width:32px;height:32px;display:grid;place-items:center;background:var(--soft);border-radius:50%;color:var(--green);}
.summary-symbol svg {width:16px;height:16px;}
.simple-home .commitment-home {grid-column:2;grid-row:2;}
.simple-home .recent-home {grid-column:1;grid-row:2;}
.daily-check {background:var(--soft);border:0;border-radius:12px;padding:12px;margin-top:18px;}
.category-icon,.activity-entry-icon {border-radius:50%;background:var(--soft);}
.row-body strong,.activity-entry-name strong {font-weight:550;}
.row-end,.activity-entry-amount {font-weight:600;letter-spacing:-.025em;}
.activity-day>header {background:var(--soft);border-radius:10px;padding:10px 14px;}
.activity-day>header h2 {font-weight:600;}
.activity-search,.activity-filter-button {border-radius:16px;}
.activity-timeline {border-radius:22px;}
.activity-summary,.report-metrics {border-radius:20px;}
.period-tabs {background:var(--soft);border:1px solid var(--line);border-radius:30px;padding:4px;}
.period-tabs button {border-radius:24px;font-weight:550;}
.period-tabs button.active {background:var(--paper);color:var(--ink);box-shadow:0 2px 5px #163a3010;}
.report-chart-panel,.report-breakdown-panel {border-radius:22px;}
.metric strong,.report-metrics .metric strong {font-weight:550;letter-spacing:-.04em;}
.destination {border-radius:0;background:transparent;border-color:var(--line);box-shadow:none;}
.destination-icon {border-radius:14px;background:var(--soft);}
.destination strong {font-weight:600;}
.form input,.form select,.form textarea {border-radius:12px;border-color:var(--line);background:var(--bg);}
.form label {font-weight:550;}
.sheet-head {border-bottom-color:var(--line);}
.sheet-head h2 {font-weight:600;letter-spacing:-.035em;}
.form-footer {border-top:1px solid var(--line);}
#sheet {box-shadow:0 24px 80px #102f3030;}
.payment-card {border-radius:22px;}
.account-detail-facts,.activity-detail-facts {border-radius:16px;}
.auth-art {background:#063f3e;}
.auth-form h2 {font-weight:550;letter-spacing:-.04em;}
@media (min-width:1200px) {
 .main {padding-inline:48px;}
 .simple-home {grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:24px;}
 .balance-card {padding-inline:30px;}
 .balance-identity {margin-inline:-30px;padding-inline:28px;}
}
@media (max-width:800px) {
 body.app-ready {background:var(--bg);}
 .app-ready #app {background:radial-gradient(ellipse at 15% 0%,#d6ebe2b0,transparent 52%),var(--bg);}
 body.dark.app-ready #app {background:radial-gradient(ellipse at 15% 0%,#25463a80,transparent 52%),var(--bg);}
 .main {margin-inline:auto;padding-inline:20px;max-width:680px;}
 .app-ready .main {padding-top:max(10px,env(safe-area-inset-top));padding-bottom:100px;}
 .topbar {border:0;margin-bottom:18px;padding-bottom:0;min-height:58px;}
 .workspace-trigger {border:1px solid var(--line);padding:8px 12px;background:var(--paper);max-width:calc(100% - 60px);}
 .greeting h1,.page-title h1 {font-size:30px;font-weight:500;line-height:1.15;margin-top:8px;}
 .greeting,.page-title {margin-bottom:24px;}
 .greeting .eyebrow {font-size:10px;}
 .simple-home {gap:16px;}
 .balance-card {padding:0 20px 16px;border-radius:26px;}
 .balance-identity {margin:0 -20px 18px;padding:13px 16px;gap:8px;}
 .balance-card .money {font-size:clamp(30px,9vw,40px);font-weight:550;margin:8px 0;}
 .balance-footer {margin-top:16px;padding-top:14px;gap:12px;}
 .balance-footer strong {font-size:18px;}
 .balance-footer label {font-size:10px;}
 .balance-link {margin-top:14px;}
 .home-summary {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .home-summary>div {padding:18px 15px;border-radius:20px;}
 .home-summary>div+div {padding-left:15px;}
 .home-summary small {font-size:11px;padding:0 0 32px;}
 .home-summary strong {font-size:clamp(20px,6vw,28px);line-height:1.3;margin:0 0 6px;}
 .summary-symbol {top:39px;left:15px;right:auto;width:24px;height:24px;}
 .summary-symbol svg {width:13px;height:13px;}
 .card {padding:20px;border-radius:22px;}
 .section-head h2 {font-size:17px;}
 .app-ready .bottom-nav {
  flex:0 0 auto;align-self:center;width:calc(100% - 32px);max-width:480px;
  margin:0 16px max(12px,env(safe-area-inset-bottom));padding:7px;min-height:70px;
  border:1px solid #32605c;border-radius:36px;background:#063f3e;
  box-shadow:0 8px 24px #063f3e24;gap:4px;
 }
 .bottom-nav button {border-radius:28px;background:transparent;color:#c0d8d0;min-height:54px;font-size:10px;gap:4px;}
 .bottom-nav button.active {background:#eaf5dc;color:#0a403a;box-shadow:0 2px 8px #001b2210;}
 .bottom-nav button svg {width:20px;height:20px;}
 .floating-add {right:20px;bottom:calc(104px + env(safe-area-inset-bottom));border-radius:28px;background:#075b50;color:#fff;border:1px solid #ffffff38;box-shadow:0 6px 16px #063f3e24;}
 body.dark .floating-add {background:#c3dfa6;color:#123e37;}
 #toast {bottom:calc(164px + env(safe-area-inset-bottom));}
 .report-metrics .metric {padding:15px 12px;}
 .report-metrics .metric strong {font-size:21px;}
 .activity-entry {padding-block:17px;}
 .payment-card {border-radius:22px;}
}
@media (max-width:360px) {
 .main {padding-inline:14px;}
 .greeting h1,.page-title h1 {font-size:27px;}
 .balance-card {padding-inline:16px;}
 .balance-identity {margin-inline:-16px;font-size:11px;}
 .balance-identity>span:last-child {font-size:9px;}
 .home-summary>div {padding-inline:12px;}
 .home-summary>div+div {padding-left:12px;}
 .summary-symbol {left:12px;}
 .card {padding:16px;}
 .report-metrics .metric {padding-inline:8px;}
 .report-metrics .metric strong {font-size:18px;}
}
@media (hover:hover) {
 .destination:hover,.activity-entry:hover {background:var(--soft);}
 .side-links button:not(.active):hover {background:var(--soft);color:var(--ink);}
}
@media (prefers-reduced-motion:reduce) {
 .view-enter,.balance-card::before {animation:none;transition:none;}
}

/* V3.4.1 — form rhythm and optical icon alignment. */
.home-summary .summary-symbol {
 display:grid;place-items:center;line-height:1;padding:0;
}
.summary-symbol svg,.icon-button>svg,.category-icon>svg,.activity-entry-icon>svg,
.destination-icon>svg,.payment-chip>svg {display:block;margin:0;flex-shrink:0;}
.icon-button,.sheet-head .icon-button {
 display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;
}
.sheet-head .sheet-back {display:none;}
.sheet-full .sheet-back,.sheet-detail .sheet-back {display:flex;}
.sheet-full .sheet-close,.sheet-detail .sheet-close {display:none;}
#sheet {padding:0 28px 24px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;scroll-padding-bottom:140px;}
.sheet-head {gap:16px;padding:20px 0 16px;margin-bottom:0;align-items:center;}
.sheet-head h2 {margin:0;line-height:1.35;}
.sheet-head .icon-button {width:44px;height:44px;min-width:44px;min-height:44px;}
.sheet-content {padding-top:24px;}
.form {gap:20px;}
.form label {display:grid;gap:9px;line-height:1.5;min-width:0;}
.form label.checkbox-row {display:flex;align-items:center;gap:10px;}
.form input:not([type=checkbox]):not([type=radio]),.form select,.form textarea {
 width:100%;min-width:0;padding:13px 15px;line-height:1.5;
 transition:border-color 160ms ease,box-shadow 160ms ease,background-color 160ms ease;
}
.form input:focus-visible,.form select:focus-visible,.form textarea:focus-visible {
 outline:2px solid var(--green);outline-offset:2px;box-shadow:none;
}
.form .amount {
 height:80px;min-height:80px;padding:12px 16px!important;
 border:1px solid var(--line);border-radius:14px;background:var(--bg);
 line-height:1.2;font-weight:550;letter-spacing:-.035em;
 font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield;
}
.form input[type=number]::-webkit-inner-spin-button,
.form input[type=number]::-webkit-outer-spin-button {appearance:none;-webkit-appearance:none;margin:0;}
.amount-label {padding:0;}
#entry-mode:empty {display:none;}
.form-context {min-height:24px;line-height:1.5;margin:0;}
.form-context svg {height:16px;display:block;}
.entry-top {display:flex;align-items:center;gap:12px;}
.form-segments {display:flex;flex:1;min-width:0;padding:4px;border-radius:14px;gap:4px;}
.form-segments button {flex:1;min-width:0;min-height:44px;border-radius:10px;line-height:1.3;padding:10px 12px;}
.entry-more-menu {flex-shrink:0;}
.entry-more-menu>summary {display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 10px;list-style:none;}
.field-label {display:block;margin:0 0 10px;font-weight:550;line-height:1.5;}
.payment-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.payment-chip {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:72px;padding:12px 8px;font-size:12px;line-height:1.3;text-align:center;}
.payment-chip svg {width:20px;height:20px;}
#payment-account:empty,#extra-tx:empty {display:none;}
.entry-details {padding-top:12px;}
.entry-details>summary {gap:12px;padding:6px 0;line-height:1.5;}
#sheet .form-footer {padding:16px 0 4px;margin-top:4px;box-shadow:0 -8px 14px var(--paper);}
.form-footer-actions {align-items:stretch;gap:12px;}
.form-footer-actions>.button {min-height:50px;gap:10px;line-height:1.4;}
.form-footer .draft-status {line-height:1.5;margin:0 0 10px;}
@media (min-width:801px) {
 #sheet {max-height:88vh;max-height:88dvh;width:min(560px,calc(100vw - 48px));}
}
@media (max-width:800px) {
 #sheet {padding-inline:20px;}
 .sheet-head {padding:16px 0;}
 .sheet-content {padding-top:20px;}
 .sheet-full .sheet-content,.sheet-detail .sheet-content {padding-top:20px;}
 .form {gap:18px;}
 .payment-grid {gap:8px;}
 .payment-chip {min-height:68px;font-size:11px;padding:10px 6px;}
 .form .amount {height:76px;min-height:76px;}
 #sheet .form-footer {padding-bottom:max(8px,env(safe-area-inset-bottom));}
}
@media (max-width:360px) {
 #sheet {padding-inline:16px;}
 .entry-top {gap:6px;}
 .entry-more-menu>summary {padding-inline:6px;}
}
@media (prefers-reduced-motion:reduce) {
 .form input,.form select,.form textarea {transition:none;}
}
/* Detail-to-form navigation keeps its existing Back action. */
.sheet-with-back .sheet-back {display:flex;}
.sheet-with-back .sheet-close {display:none;}

/* V3.5 — grouped lists: one density, clear metadata, centred identity marks. */
:root {--list-icon:40px;--list-gap:14px;--list-row-space:16px;}
.activity-timeline {display:grid;gap:18px;background:none;border:0;overflow:visible;border-radius:0;}
.activity-day {padding:0 20px;background:var(--paper);border:1px solid var(--line);border-radius:20px;overflow:hidden;}
.activity-day>header {margin:0 -20px;padding:14px 20px;background:var(--soft);border:0;border-bottom:1px solid var(--line);border-radius:0;min-height:52px;}
.activity-day>header h2 {display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.5;}
.activity-day>header h2>svg {display:block;width:16px;height:16px;color:var(--muted);}
.list-group-count {display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;padding:2px 7px;border-radius:20px;background:var(--paper);color:var(--muted);font-size:11px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;}
.activity-entry {grid-template-columns:40px minmax(0,1fr) minmax(80px,auto);gap:14px;min-height:88px;padding:16px 0;align-items:center;}
.activity-entry-icon,.category-icon,.list-leading-icon,.collection-avatar {display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;flex-shrink:0;border-radius:13px;padding:0;line-height:1;background:var(--soft);color:var(--green);}
.activity-entry-icon svg,.category-icon svg,.list-leading-icon>svg {display:block;width:19px;height:19px;margin:0;}
.activity-entry.expense .activity-entry-icon {background:var(--soft);color:var(--green);}
.activity-entry-name strong,.row-body strong,.collection-person strong {font-size:14px;font-weight:600;line-height:1.5;}
.activity-entry-name small {margin-top:4px;}
.activity-entry-name .activity-account-line,.row-body .list-account-line {display:flex;align-items:center;gap:6px;min-width:0;line-height:1.5;}
.activity-account-line>span:last-child,.list-account-line>span:last-child {min-width:0;overflow-wrap:anywhere;}
.account-mark {display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;min-width:24px;height:22px;padding:0 4px;border-radius:6px;background:#e2edf8;color:#224b75;font-size:8px!important;font-weight:750;line-height:1;letter-spacing:.02em;vertical-align:middle;}
.account-mark svg {display:block;width:13px;height:13px;margin:0;}
.account-mark-wallet,.account-mark-emerald,.account-mark-teal {background:#e3f1e8;color:#215e45;}
.account-mark-plum {background:#f2e4ef;color:#7a305f;}
.account-mark-ruby {background:#f6e2e5;color:#8d303e;}
.account-mark-copper {background:#f7e8d9;color:#8a501a;}
.list-leading-icon .account-mark {height:27px;min-width:29px;font-size:9px!important;}
.activity-entry-meta {display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px;font-size:11px;line-height:1.4;}
.activity-entry-meta>svg {display:block;width:13px;height:13px;color:var(--muted);}
.activity-entry-amount {display:flex;align-items:center;justify-content:flex-end;gap:12px;max-width:240px;min-width:0;font-size:16px;line-height:1.5;}
.activity-entry-amount>svg {display:block;flex-shrink:0;margin:0;width:14px;height:14px;}
.activity-list-footer {background:transparent;padding:4px 4px 10px;border:0;}
.row {padding:16px 0;gap:14px;min-height:76px;align-items:center;border-bottom:1px solid var(--line);}
.row:first-of-type {padding-top:16px;}
.row:last-child {padding-bottom:16px;border-bottom:0;}
.row-body small {font-size:12px;line-height:1.5;margin-top:4px;}
.row-end {font-size:14px;line-height:1.5;}
.row-end small {font-size:11px;line-height:1.5;}
.row-action {min-height:44px;padding:10px 12px;margin-left:0;border-radius:12px;font-size:12px;}
.row-click {border-radius:12px;}
.list-group-heading {display:flex;align-items:center;gap:9px;margin:24px 0 0;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;font-weight:650;line-height:1.5;letter-spacing:.035em;color:var(--muted);}
.list-group-heading>svg {width:16px;height:16px;display:block;}
.list-group-heading .list-group-count {margin-left:auto;background:var(--soft);}
.loan-list-group:first-child>.list-group-heading,.settings-list>.list-group-heading:first-child {margin-top:0;}
.loan-list-group+.loan-list-group {margin-top:22px;}
.debt-row {min-height:80px;padding:16px 0;gap:14px;}
.debt-row>.category-icon {width:40px;height:40px;}
.collection-list-row {gap:14px;padding:16px 0;min-height:88px;}
.collection-list-row:last-child {border-bottom:0;}
.collection-person {gap:14px;padding:0;align-items:center;}
.collection-person small {font-size:11px;line-height:1.5;margin-top:4px;}
.collection-avatar {font-size:15px;font-weight:650;}
.collection-row-amount>strong {font-size:19px;line-height:1.4;}
.collection-row-amount>.text-button {padding-block:8px;}
.borrower-link {padding:16px 0;min-height:76px;gap:14px;border-bottom:1px solid var(--line);}
.borrower-link.has-leading-icon {display:grid;grid-template-columns:40px minmax(0,1fr) auto 16px;align-items:center;}
.borrower-link>span {min-width:0;overflow-wrap:anywhere;}
.borrower-link small {font-size:11px;line-height:1.5;margin-top:4px;}
.budget-row {padding:18px 0;border-bottom:1px solid var(--line);}
.budget-row:last-of-type {border-bottom:0;}
.budget-category {display:flex;align-items:center;gap:12px;font-size:14px;font-weight:600;}
.budget-row .bar {margin-top:14px;}
.budget-row>small {display:block;line-height:1.5;margin-top:8px;}
.settings-list .setting {display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:14px;align-items:center;padding:18px 0;min-height:84px;}
.settings-list .setting>div {min-width:0;}
.setting h3 {font-size:14px;font-weight:600;}
.setting p {font-size:12px;line-height:1.6;margin-top:4px;overflow-wrap:anywhere;}
.timeline-row {gap:14px;padding:16px 0;min-height:76px;}
.timeline-row .list-leading-icon.late {background:#b2463f12;color:var(--red);}
.timeline-row.salary-marker {padding:16px;margin-bottom:8px;}
.timeline-row small {line-height:1.5;margin-top:4px;}
.category-pie-row.category-report {gap:12px;padding-block:16px;}
.category-pie-icon {display:flex;align-items:center;justify-content:center;border-radius:12px;}
.category-pie-icon svg {display:block;margin:0;}
@media (max-width:800px) {
 .activity-timeline {gap:16px;}
 .activity-day {padding-inline:16px;border-radius:18px;}
 .activity-day>header {margin-inline:-16px;padding:12px 16px;align-items:center;gap:6px 12px;}
 .activity-day>header>span {text-align:left;line-height:1.5;}
 .activity-entry {grid-template-columns:36px minmax(0,1fr) minmax(68px,auto);gap:10px;padding:14px 0;min-height:84px;}
 .activity-entry-icon,.category-icon,.list-leading-icon,.collection-avatar {width:36px;height:36px;min-width:36px;border-radius:12px;}
 .activity-entry-name strong {font-size:13px;}
 .activity-entry-name small {font-size:11px;}
 .activity-entry-meta {font-size:10px;gap:4px;}
 .activity-entry-amount {font-size:14px;gap:6px;max-width:130px;}
 .activity-entry-amount>svg {width:12px;height:12px;}
 .account-mark {min-width:22px;height:20px;font-size:7px!important;}
 .row {gap:10px;padding:14px 0;}
 .row-body strong {font-size:13px;}
 .row-body small {font-size:11px;}
 .row-end {font-size:13px;}
 .commitment-row {display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:start;}
 .commitment-row>.row-end {max-width:120px;}
 .commitment-row>.row-action,.commitment-row>.text-button {grid-column:2/-1;justify-self:start;}
 .statement-list-row {align-items:start;}
 .settings-list .setting {grid-template-columns:36px minmax(0,1fr) auto;gap:10px;padding:16px 0;}
 .settings-list .setting>div {min-width:0;}
 .settings-list .setting>.text-button {font-size:12px;max-width:110px;white-space:normal;text-align:right;}
 .borrower-link.has-leading-icon {grid-template-columns:36px minmax(0,1fr) auto 14px;gap:10px;}
 .collection-list-row {padding:16px 0;gap:12px;}
 .collection-person {gap:10px;}
 .collection-person strong {font-size:13px;}
 .collection-row-amount>strong {font-size:17px;}
 .budget-row>div:first-child {align-items:center;}
 .budget-category {font-size:13px;}
 .timeline-row {gap:10px;}
}
@media (max-width:360px) {
 .activity-entry {grid-template-columns:36px minmax(0,1fr);}
 .activity-entry-icon {grid-row:1/3;align-self:start;}
 .activity-entry-amount {grid-column:2;justify-content:flex-start;text-align:left;max-width:none;}
 .settings-list .setting {grid-template-columns:36px minmax(0,1fr);}
 .settings-list .setting>.text-button,.settings-list .setting>.icon-button {grid-column:2;justify-self:start;text-align:left;max-width:none;}
 .commitment-row {grid-template-columns:36px minmax(0,1fr);}
 .commitment-row>.category-icon {grid-row:1/3;}
 .commitment-row>.row-end {grid-column:2;max-width:none;text-align:left;}
}
@media (hover:hover) {
 .activity-entry:hover {background:color-mix(in srgb,var(--soft) 40%,transparent);}
 .row-click:hover {background:var(--soft);}
}

/* V3.5.1 — one filter path, one period heading, readable summary hierarchy. */
body[data-view=activity] {--activity-muted:#4c6460;}
body.dark[data-view=activity] {--activity-muted:#b6ccc5;}
.activity-overview {margin-bottom:20px;}
.activity-overview>.activity-range-row {margin:0 0 12px;gap:10px;flex-wrap:wrap;}
.activity-overview .activity-range-button {padding:10px 14px;min-height:44px;border:1px solid var(--line);border-radius:14px;background:var(--paper);font-size:14px;font-weight:600;}
.activity-overview .activity-export {margin-left:auto;color:var(--ink);}
.activity-summary {padding:0;gap:0;margin-bottom:0;overflow:hidden;border-radius:20px;}
.activity-summary>div:not(.activity-other-totals) {padding:24px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;min-width:0;}
.activity-summary small {color:var(--activity-muted,#4c6460);font-size:13px;line-height:1.5;font-weight:550;}
.activity-summary strong {font-size:clamp(24px,2.4vw,32px);font-weight:600;letter-spacing:-.035em;line-height:1.3;margin-top:10px;color:var(--ink);}
.activity-summary strong.positive {color:var(--green);}
.activity-net-explanation {display:block;margin-top:10px;color:var(--activity-muted,#4c6460);font-size:12px;line-height:1.5;}
.activity-summary .activity-other-totals {padding:14px 24px;color:var(--activity-muted,#4c6460);border-radius:0;}
.activity-other-totals strong {display:inline;font-size:13px;letter-spacing:0;line-height:1.5;}
.activity-controls {padding:8px 0 12px;}
.activity-controls .activity-filter-tags:empty {display:none;}
.activity-filter-tags:not(:empty) {margin-top:12px;}
.activity-search input::placeholder {color:var(--activity-muted,#4c6460);opacity:1;}
.activity-list-status p,.activity-footnote,.activity-entry-meta,.activity-entry-name small,.activity-day>header>span,.activity-list-footer p,.activity-list-footer>span {color:var(--activity-muted,var(--muted));}
@media (max-width:800px) {
 .activity-summary>div:not(.activity-other-totals) {padding:20px 16px;}
 .activity-summary strong {font-size:25px;}
 .activity-summary small {font-size:12px;}
 .activity-overview>.activity-range-row {gap:8px;}
 .activity-overview .activity-range-button {flex:0 1 auto;}
 .activity-net-explanation {font-size:11px;}
}
@media (max-width:600px) {
 .activity-summary {grid-template-columns:repeat(2,minmax(0,1fr));}
 .activity-summary>div.activity-net:nth-child(3) {grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 14px;border-left:0;border-top:1px solid var(--line);padding:16px;align-items:center;}
 .activity-summary .activity-net>small {grid-column:1;grid-row:1;}
 .activity-summary .activity-net>strong {grid-column:2;grid-row:1/3;text-align:right;margin:0;font-size:25px;}
 .activity-net-explanation {grid-column:1;grid-row:2;margin:0;}
 .activity-overview .activity-range-button {font-size:13px;padding:8px 10px;}
 .activity-overview .activity-month-nav {gap:0;}
 .activity-overview .activity-month-nav .icon-button {min-width:36px;width:36px;}
}

/* V3.5.2 — canonical spacing for page, panel, row and form boundaries. */
:root {
 --page-gutter:32px;
 --panel-padding:24px;
 --section-gap:24px;
 --content-gap:16px;
 --row-padding:16px;
 --field-gap:20px;
}
.main {padding-inline:var(--page-gutter);padding-top:24px;}
.topbar {padding-bottom:16px;margin-bottom:var(--section-gap);}
.page-title,.greeting {margin-bottom:var(--section-gap);}
.page-title h1,.greeting h1 {margin-block:6px;}
.page-title p,.greeting p {margin-top:8px;}
.card {padding:var(--panel-padding);margin-bottom:var(--section-gap);}
.stack,.two-col,.simple-home {gap:var(--section-gap);}
.stack>.card,.stack>details.card,.two-col>.card,.simple-home>.card {margin-bottom:0;}
.card .card {padding:0;margin:var(--content-gap) 0 0;box-shadow:none;}
.section-head {margin-bottom:var(--content-gap);gap:12px;}
.section-head h2 {line-height:1.4;}
.plan-summary {padding:var(--panel-padding);gap:var(--content-gap);margin-bottom:var(--section-gap);}
.plan-summary strong {margin-top:8px;line-height:1.3;}
.plan-summary p {line-height:1.6;}
.card.destination-list {padding:8px var(--panel-padding);}
.card.destination-list>.section-head {padding-top:16px;margin-bottom:0;}
.card.destination-list>.destination {
 padding:var(--row-padding) 0;border-radius:0;border:0;
 border-bottom:1px solid var(--line);box-shadow:none;background:transparent;
}
.card.destination-list>.destination:last-child {border-bottom:0;}
.card.destination-list>.destination:hover {background:transparent;}
.card.destination-list>.destination:focus-visible {outline-offset:3px;border-radius:8px;}
.destination-icon {align-self:center;}
.activity-overview {margin-bottom:var(--content-gap);}
.activity-list-status {margin-block:12px;min-height:44px;}
.activity-timeline {gap:var(--content-gap);}
.activity-day {padding:0;}
.activity-day>header {margin:0;padding:14px var(--panel-padding);}
.activity-day>.activity-entry {padding:var(--row-padding) var(--panel-padding);margin:0;}
.activity-list-footer {padding:0;}
.activity-footnote {margin-top:var(--content-gap);line-height:1.6;}
.activity-summary>div:not(.activity-other-totals) {padding:var(--panel-padding);}
.activity-summary .activity-net>strong.negative {color:var(--red);}
.report-layout {column-gap:var(--section-gap);row-gap:0;}
.report-chart-panel,.report-breakdown-panel {padding:var(--panel-padding);}
.report-layout>.card,.report-layout>.report-metrics {margin-bottom:var(--section-gap);}
.category-pie-layout {gap:var(--content-gap);}
.collection-ledger {padding:var(--panel-padding);}
.collection-list-row,.debt-row,.borrower-link,.row,.row:first-of-type,.row:last-child {padding-block:var(--row-padding);}
.row-click:hover {background:transparent;}
.loan-list-group+.loan-list-group {margin-top:var(--section-gap);}
.list-group-heading {margin-top:var(--section-gap);padding-block:12px;}
.settings-list .setting {padding-block:var(--row-padding);}
.budget-row {padding-block:var(--row-padding);}
.timeline-row {padding-block:var(--row-padding);}
.timeline-row.salary-marker {padding:var(--content-gap);}
.form {gap:var(--field-gap);}
.form-grid {gap:var(--content-gap);}
#sheet {padding-inline:var(--panel-padding);}
.sheet-head {padding-block:20px 16px;margin-bottom:0;}
.sheet-content {padding-top:var(--panel-padding);}
.sheet-content>p+.form,.sheet-content>.note+.form {margin-top:var(--content-gap);}
#sheet .form-footer {padding-top:var(--content-gap);margin-top:4px;}
@media (min-width:1200px) {
 :root {--page-gutter:40px;}
}
@media (max-width:800px) {
 :root {--page-gutter:16px;--panel-padding:16px;--section-gap:20px;--row-padding:14px;--field-gap:18px;}
 .main {padding-inline:var(--page-gutter);}
 .app-ready .main {padding-top:max(10px,env(safe-area-inset-top));}
 .topbar {padding-block:8px;margin-bottom:16px;}
 .page-title,.greeting {margin-bottom:var(--section-gap);}
 .simple-home {gap:var(--content-gap);}
 .card {padding:var(--panel-padding);}
 .card.destination-list {padding:4px var(--panel-padding);}
 .card.destination-list>.section-head {padding-top:12px;}
 .activity-day>header {padding:12px var(--panel-padding);}
 .activity-summary>div:not(.activity-other-totals) {padding:20px var(--panel-padding);}
 .activity-day>.activity-entry {padding:var(--row-padding) var(--panel-padding);}
 .activity-summary>div.activity-net:nth-child(3) {padding:var(--panel-padding);}
 .sheet-head {padding-block:16px;}
 .sheet-content,.sheet-full .sheet-content,.sheet-detail .sheet-content {padding-top:var(--content-gap);}
 #sheet,#sheet.sheet-full,#sheet.sheet-detail {padding-inline:var(--panel-padding);}
}
@media (max-width:360px) {
 :root {--page-gutter:12px;}
 .main {padding-inline:var(--page-gutter);}
 .card {padding:var(--panel-padding);}
}
/* Explicit physical insets also override legacy dialog padding shorthands. */
dialog#sheet,dialog#sheet.sheet-quick,dialog#sheet.sheet-full,dialog#sheet.sheet-detail {
 padding-left:var(--panel-padding);padding-right:var(--panel-padding);
}
.main {padding-left:var(--page-gutter);padding-right:var(--page-gutter);}

/* V3.6 — analytical dashboard and distinct screen compositions. */
:root,body.collection-mode {--bg:#f3f6f7;--paper:#fff;--soft:#e9f0ee;--ink:#17363d;--muted:#526c70;--green:#086b5a;--line:#dce6e5;--surface-shadow:0 3px 14px #17363d08;}
body.dark,body.collection-mode.dark {--bg:#101e24;--paper:#192b32;--soft:#223c41;--ink:#e5f0f1;--muted:#afc5c6;--green:#9ddac7;--line:#324a50;--surface-shadow:0 3px 14px #00000010;}
.greeting h1,.page-title h1 {font-size:clamp(26px,2.4vw,34px);font-weight:600;}
.sidebar {background:var(--paper);}
.side-note {box-shadow:none;border-radius:14px;}
.card,.collection-ledger,.activity-day {box-shadow:none;border-radius:18px;}
.button {border-radius:12px;}
.workspace-trigger {border-radius:12px;}
.draft-banner {padding:12px 16px;min-height:60px;margin-bottom:20px;border-radius:12px;background:var(--paper);font-size:13px;gap:12px;}
.draft-banner>svg {width:18px;height:18px;}
.draft-banner strong {font-size:13px;}
.draft-banner small {font-size:11px;margin-top:3px;}
.simple-home.dashboard-grid {display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;align-items:stretch;}
.dashboard-grid>section {min-width:0;}
.dashboard-grid .balance-card {grid-column:1/span 7;grid-row:1;padding:24px 28px 20px;background:linear-gradient(115deg,#123a45,#075b52);border-radius:18px;box-shadow:none;min-height:0;}
.dashboard-grid .balance-card::before {display:none;}
.dashboard-grid .balance-top {color:#c9e3e0;font-size:12px;}
.dashboard-grid .balance-card .money {font-size:clamp(32px,3.5vw,46px);margin:12px 0 8px;font-weight:600;line-height:1.2;}
.dashboard-grid .balance-card>p {font-size:11px;max-width:52ch;}
.dashboard-grid .balance-footer {display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#c9e3e0;margin-top:20px;padding-top:14px;}
.dashboard-grid .balance-link {border:0;border-top:1px solid #ffffff25;border-radius:0;margin-top:14px;padding:12px 0 0;color:#fff;}
.home-pulse {grid-column:8/-1;grid-row:1;border:1px solid var(--line);border-radius:18px;background:var(--paper);padding:20px 24px;}
.home-pulse .section-head {margin-bottom:8px;align-items:center;}
.home-pulse .eyebrow {font-size:10px;}
.home-pulse h2 {font-size:16px;font-weight:600;margin-top:4px;}
.pulse-total {font-size:26px;line-height:1.3;font-weight:600;letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.pulse-total small {display:block;margin-top:4px;color:var(--muted);font-size:11px;letter-spacing:0;font-weight:400;}
.dashboard-chart {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-top:18px;}
.dashboard-day {min-width:0;}
.dashboard-bar-track {height:76px;display:flex;align-items:flex-end;justify-content:center;}
.dashboard-bar {display:block;max-width:24px;width:100%;background:#adcac4;border-radius:4px 4px 0 0;transform-origin:bottom;}
.dashboard-day.is-today .dashboard-bar {background:var(--green);}
.dashboard-bar.is-zero {background:var(--line);}
.dashboard-day small {display:block;text-align:center;font-size:10px;color:var(--muted);margin-top:8px;}
.dashboard-day.is-today small {font-weight:650;color:var(--ink);}
.chart-empty-note {color:var(--muted);font-size:11px;margin-top:8px;}
.dashboard-grid .home-summary {grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:0;box-shadow:none;}
.dashboard-grid .home-summary>div {padding:20px;box-shadow:none;border:0;border-radius:0;background:transparent;position:relative;}
.dashboard-grid .home-summary>div+div {border-left:1px solid var(--line);}
.dashboard-grid .home-summary small {font-size:11px;padding:0 30px 0 0;}
.dashboard-grid .home-summary strong {font-size:24px;font-weight:600;line-height:1.3;margin:10px 0 6px;}
.dashboard-grid .home-summary strong.positive {color:var(--green);}
.dashboard-grid .home-summary>div>span:not(.summary-symbol) {font-size:11px;}
.dashboard-grid .summary-symbol {top:16px;right:16px;left:auto;width:26px;height:26px;background:var(--soft);border-radius:8px;}
.dashboard-grid .summary-symbol svg {width:14px;height:14px;}
.dashboard-grid .recent-home {grid-column:1/span 8;grid-row:3;}
.dashboard-grid .commitment-home {grid-column:9/-1;grid-row:3;background:var(--paper);border-top:3px solid #bd8e43;}
.dashboard-grid .commitment-home>.eyebrow {font-size:10px;margin-bottom:12px;display:block;}
.dashboard-grid .commitment-home .section-head {flex-wrap:wrap;}
.dashboard-grid .commitment-home .commitment-row {display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start;}
.dashboard-grid .commitment-home .category-icon {width:32px;height:32px;min-width:32px;border-radius:10px;}
.dashboard-grid .commitment-home .row-end {grid-column:2;max-width:none;text-align:left;}
.dashboard-grid .commitment-home .row-action,.dashboard-grid .commitment-home .row>.text-button {grid-column:2;justify-self:start;}
.dashboard-plan-link {display:flex;align-items:center;gap:8px;width:100%;background:var(--soft);padding:12px;border-radius:12px;border:0;min-height:48px;font-size:12px;color:var(--green);margin-top:16px;}
.dashboard-plan-link>svg:last-child {margin-left:auto;width:16px;}
.dashboard-actions {grid-column:1/-1;grid-row:4;display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.dashboard-actions>button {display:grid;grid-template-columns:28px minmax(0,1fr) 16px;gap:12px;align-items:center;text-align:left;border:1px solid var(--line);background:var(--paper);padding:18px 20px;border-radius:14px;color:var(--ink);}
.dashboard-actions strong {display:block;font-size:13px;font-weight:600;}
.dashboard-actions small {display:block;font-size:11px;color:var(--muted);margin-top:4px;}
.dashboard-actions>button>svg:first-child {color:var(--green);}
.plan-directory {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:var(--section-gap);}
.plan-directory>.destination {padding:20px;grid-template-columns:40px minmax(0,1fr) 16px;background:var(--paper);border:1px solid var(--line);border-radius:16px;min-height:112px;align-items:center;}
.plan-directory>.destination:last-child {border-bottom:1px solid var(--line);}
.plan-directory>.destination strong {font-size:14px;}
.plan-directory>.destination small {font-size:11px;}
.plan-summary {background:var(--paper);border:1px solid var(--line);border-left:4px solid var(--green);border-radius:14px;}
.activity-overview {border-top:2px solid var(--ink);padding-top:16px;}
.activity-summary {border-radius:14px;}
.activity-day>header {background:var(--paper);border-bottom:1px solid var(--line);}
.activity-day>header h2 {color:var(--green);}
.report-chart-panel {border-top:3px solid var(--green);border-radius:16px;}
.report-breakdown-panel {border-radius:16px;background:var(--paper);}
.settings-list .list-group-heading {font-size:11px;text-transform:uppercase;letter-spacing:.07em;}
.income-account-note {margin-top:4px;font-size:12px;line-height:1.6;}
.view-enter .dashboard-bar {animation:dashboard-grow 300ms var(--ease-standard) both;}
@keyframes dashboard-grow {from {transform:scaleY(.2);opacity:.6;}to {transform:scaleY(1);opacity:1;}}
@media (max-width:1100px) and (min-width:801px) {
 .plan-directory {grid-template-columns:repeat(2,minmax(0,1fr));}
 .dashboard-grid .home-summary strong {font-size:21px;}
 .dashboard-grid .home-summary>div {padding:16px 14px;}
 .dashboard-grid .summary-symbol {display:none;}
 .dashboard-grid .home-summary small {padding-right:0;}
}
@media (max-width:800px) {
 .simple-home.dashboard-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
 .dashboard-grid .balance-card {grid-column:1/-1;grid-row:1;padding:22px;}
 .dashboard-grid .balance-card .money {font-size:36px;}
 .dashboard-grid .balance-footer {margin-top:16px;}
 .home-pulse {grid-column:1/-1;grid-row:3;padding:18px;}
 .home-pulse .section-head {margin-bottom:8px;}
 .pulse-total {font-size:25px;}
 .dashboard-chart {margin-top:14px;gap:14px;}
 .dashboard-bar-track {height:64px;}
 .dashboard-grid .home-summary {grid-column:1/-1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));}
 .dashboard-grid .home-summary>div {padding:16px;}
 .dashboard-grid .home-summary>div+div {padding-left:16px;}
 .dashboard-grid .home-summary>div:nth-child(3) {border-left:0;border-top:1px solid var(--line);}
 .dashboard-grid .home-summary>div:nth-child(4) {border-top:1px solid var(--line);}
 .dashboard-grid .home-summary small {font-size:10px;padding-right:0;}
 .dashboard-grid .home-summary strong {font-size:23px;}
 .dashboard-grid .summary-symbol {display:none;}
 .dashboard-grid .recent-home {grid-column:1/-1;grid-row:4;}
 .dashboard-grid .commitment-home {grid-column:1/-1;grid-row:5;}
 .dashboard-grid .commitment-home .commitment-row {grid-template-columns:32px minmax(0,1fr) auto;}
 .dashboard-grid .commitment-home .row-end {grid-column:3;max-width:110px;text-align:right;}
 .dashboard-actions {grid-column:1/-1;grid-row:6;grid-template-columns:1fr;gap:12px;}
 .dashboard-actions>button {padding:16px;}
 .plan-directory {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .plan-directory>.destination {grid-template-columns:1fr 16px;padding:16px;align-content:start;min-height:150px;gap:12px;}
 .plan-directory .destination-icon {grid-column:1;grid-row:1;}
 .plan-directory>.destination>span:nth-child(2) {grid-column:1/-1;grid-row:2;}
 .plan-directory>.destination>svg {grid-column:2;grid-row:1;}
 .plan-directory>.destination small {font-size:11px;}
 .greeting h1,.page-title h1 {font-size:27px;}
 .draft-banner {padding:12px;}
}
@media (max-width:360px) {
 .dashboard-grid .balance-card {padding:18px;}
 .dashboard-grid .balance-card .money {font-size:32px;}
 .dashboard-grid .home-summary>div {padding:14px 12px;}
 .dashboard-grid .home-summary>div+div {padding-left:12px;}
 .dashboard-grid .home-summary strong {font-size:21px;}
 .dashboard-grid .home-summary>div>span:not(.summary-symbol) {font-size:10px;}
 .plan-directory {grid-template-columns:1fr;}
 .plan-directory>.destination {grid-template-columns:36px minmax(0,1fr) 16px;min-height:92px;align-content:center;}
 .plan-directory>.destination>span:nth-child(2) {grid-column:2;grid-row:1;}
 .plan-directory>.destination>svg {grid-column:3;}
 .plan-directory>.destination .destination-icon {width:36px;height:36px;}
}
@media (prefers-reduced-motion:reduce) {.view-enter .dashboard-bar {animation:none;}}

/* V3.6.1 — compact, information-rich Plan overview. */
.plan-hub-title {margin-bottom:20px;}
.plan-summary.plan-hub-summary {grid-template-columns:repeat(3,minmax(0,1fr));padding:18px 20px;gap:12px 20px;border-left-width:3px;margin-bottom:22px;}
.plan-hub-summary>div {min-width:0;}
.plan-hub-summary>div+div {border-left:1px solid var(--line);padding-left:20px;}
.plan-hub-summary small {display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.5;}
.plan-hub-summary small>svg {display:block;width:15px;height:15px;color:var(--green);}
.plan-hub-summary strong {font-size:25px;font-weight:600;margin-top:8px;line-height:1.3;}
.plan-hub-summary strong.negative {color:var(--red);}
.plan-hub-summary p {font-size:11px;padding-top:10px;border-top:1px solid var(--line);line-height:1.5;}
.plan-hub-shell {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:24px;align-items:start;}
.plan-hub-shell>*,.plan-hub-aside>* {min-width:0;}
.plan-hub-main>.section-head {margin-bottom:12px;min-height:32px;}
.plan-hub-main>.section-head .subtle {font-size:11px;}
.plan-directory.plan-directory-compact {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px;}
.plan-directory-compact>.destination {grid-template-columns:36px minmax(0,1fr) 14px;gap:12px;padding:16px;min-height:112px;align-content:center;align-items:start;border-radius:14px;transition:border-color 160ms ease,background-color 160ms ease;}
.plan-directory-compact>.destination:last-child:nth-child(odd) {grid-column:1/-1;min-height:88px;}
.plan-directory-compact .destination-icon {width:36px;height:36px;border-radius:11px;grid-column:1;grid-row:1;align-self:start;}
.plan-directory-compact>.destination>.plan-tile-copy {grid-column:2;grid-row:1;}
.plan-directory-compact>.destination>svg {grid-column:3;grid-row:1;width:14px;height:14px;align-self:center;}
.plan-directory-compact strong {font-size:13px;line-height:1.4;}
.plan-directory-compact .plan-tile-count {display:block;font-size:12px;font-weight:600;color:var(--green);margin-top:8px;line-height:1.4;}
.plan-directory-compact small {font-size:11px;margin-top:4px;line-height:1.5;overflow-wrap:anywhere;}
.plan-hub-main>.home-payday {margin:0;padding:14px 16px;border-radius:14px;background:var(--soft);}
.plan-hub-main .home-payday>summary {min-height:40px;}
.plan-hub-main .home-payday>summary strong {font-size:13px;}
.plan-hub-main .home-payday>summary small {font-size:11px;}
.plan-hub-aside {display:grid;gap:16px;}
.plan-due-panel {padding:18px 20px;background:var(--paper);border:1px solid var(--line);border-top:3px solid #bd8e43;border-radius:14px;}
.plan-due-panel>.section-head {margin-bottom:4px;}
.plan-due-panel>.section-head>svg {width:18px;height:18px;color:var(--muted);}
.plan-due-panel h2,.plan-routines h2 {font-size:16px;font-weight:600;}
.plan-upcoming-row {display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);}
.plan-date-stamp {display:flex;flex-direction:column;align-items:center;justify-content:center;width:38px;min-height:44px;background:var(--soft);border-radius:9px;}
.plan-date-stamp strong {font-size:16px;line-height:1.2;font-weight:650;}
.plan-date-stamp small {font-size:10px;color:var(--muted);margin-top:3px;}
.plan-upcoming-row>div {min-width:0;}
.plan-upcoming-row>div>strong {display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere;font-weight:600;}
.plan-upcoming-row>div>small {display:block;color:var(--muted);font-size:11px;margin-top:4px;line-height:1.5;overflow-wrap:anywhere;}
.plan-upcoming-row .text-button {font-size:12px;}
.plan-clear-state {display:flex;gap:12px;padding:18px 0;align-items:flex-start;}
.plan-clear-state>svg {width:28px;height:28px;color:var(--green);flex-shrink:0;}
.plan-clear-state strong {font-size:13px;display:block;font-weight:600;}
.plan-clear-state small {display:block;font-size:12px;line-height:1.6;color:var(--muted);margin-top:5px;}
.plan-calendar-link {display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:44px;border:0;border-radius:10px;background:var(--soft);color:var(--green);padding:10px 12px;margin-top:12px;font-size:12px;}
.plan-calendar-link svg {width:16px;height:16px;}
.plan-routines {padding:16px 20px;background:var(--paper);border:1px solid var(--line);border-radius:14px;}
.plan-routines h2 {margin-bottom:4px;}
.plan-routines>button {display:grid;grid-template-columns:24px minmax(0,1fr) 14px;align-items:center;gap:12px;text-align:left;padding:14px 0;background:transparent;border:0;border-bottom:1px solid var(--line);width:100%;min-height:72px;}
.plan-routines>button:last-child {border-bottom:0;padding-bottom:4px;}
.plan-routines>button>svg:first-child {color:var(--green);width:20px;height:20px;}
.plan-routines>button>svg:last-child {width:14px;height:14px;}
.plan-routines strong {display:block;font-size:13px;font-weight:600;}
.plan-routines small {display:block;font-size:11px;color:var(--muted);margin-top:4px;line-height:1.5;}
@media (max-width:1100px) {
 .plan-hub-shell {grid-template-columns:minmax(0,1.2fr) minmax(250px,1fr);gap:16px;}
 .plan-directory-compact>.destination {grid-template-columns:32px minmax(0,1fr);padding:14px;gap:10px;}
 .plan-directory-compact>.destination>.destination-icon {width:32px;height:32px;}
 .plan-directory-compact>.destination>svg {display:none;}
}
@media (max-width:800px) {
 .plan-summary.plan-hub-summary {padding:16px;grid-template-columns:1fr 1fr;gap:14px 16px;margin-bottom:20px;}
 .plan-hub-summary>div+div {padding-left:16px;}
 .plan-hub-summary>div:nth-child(3) {grid-column:1/-1;border-left:0;border-top:1px solid var(--line);padding:12px 0 0;display:flex;justify-content:space-between;align-items:center;gap:12px;}
 .plan-hub-summary>div:nth-child(3)>strong {font-size:20px;margin:0;}
 .plan-hub-summary strong {font-size:23px;}
 .plan-hub-summary p {padding-top:0;border:0;}
 .plan-hub-shell {grid-template-columns:minmax(0,1fr);gap:18px;}
 .plan-directory.plan-directory-compact {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 .plan-directory-compact>.destination {min-height:116px;grid-template-columns:1fr;padding:14px;gap:10px;}
 .plan-directory-compact>.destination>.destination-icon {grid-column:1;grid-row:1;width:32px;height:32px;}
 .plan-directory-compact>.destination>.plan-tile-copy {grid-column:1;grid-row:2;}
 .plan-directory-compact>.destination:last-child:nth-child(odd) {grid-template-columns:32px minmax(0,1fr);min-height:80px;}
 .plan-directory-compact>.destination:last-child:nth-child(odd)>.plan-tile-copy {grid-column:2;grid-row:1;}
 .plan-directory-compact .plan-tile-count {margin-top:6px;font-size:11px;}
 .plan-hub-main .section-head h2 {font-size:16px;}
 .plan-due-panel,.plan-routines {padding:16px;}
}
@media (max-width:360px) {
 .plan-directory.plan-directory-compact {grid-template-columns:1fr;}
 .plan-directory-compact>.destination,.plan-directory-compact>.destination:last-child:nth-child(odd) {grid-template-columns:32px minmax(0,1fr);min-height:88px;}
 .plan-directory-compact>.destination>.plan-tile-copy {grid-column:2;grid-row:1;}
 .plan-hub-summary small {font-size:10px;}
 .plan-hub-summary strong {font-size:21px;}
}
@media (hover:hover) {.plan-directory-compact>.destination:hover {border-color:var(--green);background:var(--soft);}}
@media (prefers-reduced-motion:reduce) {.plan-directory-compact>.destination {transition:none;}}
