/* Shared type scale with compact headings on mobile. */
:root {
  --font-body: 'Wix Madefor Text', sans-serif;
  --font-display: 'Wix Madefor Display', sans-serif;
  --font-heading: 'Wix Madefor Text', sans-serif;
  --text-h1: 38px;
  --text-h2: 32px;
  --text-h3: 24px;
  --text-h4: 20px;
  --text-h5: 18px;
  --text-h6: 15px;
  --text-body: 15px;
  --text-small: 13px;
  --text-metric: 28px;
  --text-display: 40px;
  --weight-heading: 600;
  --weight-compact: 500;
  --weight-body: 300;
  --weight-eyebrow: 500;
  --ink-rgb: 36 60 51;
  --text-heading-color: rgb(var(--ink-rgb) / 100%);
  --text-body-color: rgb(var(--ink-rgb) / 64%);
  --text-inverse-heading: rgb(255 255 255 / 100%);
  --text-inverse-body: rgb(255 255 255 / 64%);
}
body { font-family:var(--font-body); font-size:var(--text-body); font-weight:var(--weight-body); line-height:1.6; }
h1,h2,h3,h4,h5,h6,.text-h1,.text-h2,.text-h3,.text-h4,.text-h5,.text-h6 {
  font-family:var(--font-heading); font-weight:var(--weight-heading); line-height:1.3; margin:0;
  text-wrap:balance;
}
h1,.text-h1 { font-size:var(--text-h1); letter-spacing:-.8px; }
h2,.text-h2 { font-size:var(--text-h2); letter-spacing:-.4px; }
h3,.text-h3 { font-size:var(--text-h3); letter-spacing:-.2px; }
h4,.text-h4 { font-size:var(--text-h4); }
h5,.text-h5 { font-size:var(--text-h5); font-weight:var(--weight-compact); }
h6,.text-h6 { font-size:var(--text-h6); font-weight:var(--weight-compact); }
h1 { margin:7px 0 10px; }
p,.text-body { font-weight:var(--weight-body); }
.text-body { font-size:var(--text-body); line-height:1.6; }
small,.text-small { font-size:var(--text-small); line-height:1.5; }
button,input,select,textarea { font-family:var(--font-body); font-size:var(--text-body); line-height:1.4; }
.btn { font-family:var(--font-body); font-size:var(--text-body); line-height:20px; font-weight:var(--weight-compact); }
.dropdown-menu { font-family:var(--font-body); font-size:var(--text-body); line-height:20px; }
.brand { font-family:var(--font-heading); font-size:24px; line-height:1.3; font-weight:800; }
/* The wordmark and status dots are brand graphics, not copy. */
.logo { font-family:var(--font-heading); font-size:28px; line-height:31px; font-weight:800; }
.brand-dot { font-size:8px; line-height:1; }
.privacy-dot { font-size:9px; line-height:1; }
.eyebrow {
  font-family:var(--font-body); font-size:var(--text-small); font-weight:var(--weight-eyebrow);
  line-height:1.5; letter-spacing:1.2px; text-transform:uppercase; color:#82917d;
}
.eyebrow--inverse { color:#b3caaa; }
nav a { font-size:var(--text-body); line-height:20px; }
.aside-bottom,header,.avatar,.hero-status,.stat small,
.ring-inner small,.legend-row,.hint,.row small,.pill,th,td small,
.step-num,.step small,footer,.field label,.field small,#form-error {
  font-size:var(--text-small); line-height:1.5;
}
.aside-bottom .btn { font-size:var(--text-body); }
.subtitle,.hero p,.stat-top,.row-title,.row-right,.empty,.notice,table,#toast {
  font-size:var(--text-body); line-height:1.6;
}
.empty strong { font-size:var(--text-h6); margin-bottom:6px; }
.hero .balance-amount {
  font:var(--weight-heading) var(--text-display)/1.2 var(--font-display);
  letter-spacing:-1px; margin:9px 0; color:#fff;
}
.stat b { font:700 var(--text-metric)/1.3 var(--font-heading); letter-spacing:-.6px; }
.ring-inner b { font:700 24px/1.3 var(--font-heading); }
.ring-inner small { text-align:center; max-width:90px; }
/* One reusable H6 style for compact headings and interactive labels. */
h6,.text-h6,.btn,.dropdown-trigger.btn,#nav a {
  font-family:var(--font-body);
  font-size:var(--text-h6);
  font-weight:var(--weight-compact);
  line-height:20px;
  letter-spacing:0;
  text-transform:none;
}
/* Give larger readable text room without shrinking its type or controls. */
aside { width:272px; overflow-y:auto; }
.shell { margin-left:272px; }
.panel-heading { flex-wrap:wrap; gap:14px; }
.panel-heading > .btn { margin-block:0; }
.allocation { flex-wrap:wrap; }
.legend { min-width:220px; }
.legend-row { gap:12px; }
.legend-label { display:flex; align-items:center; gap:8px; margin:0; }
.legend-label .dot { flex-shrink:0; }
.step p { margin:5px 0 0; color:#95a18c; }
.aside-bottom { padding-inline:0; }
.aside-bottom p { font-size:var(--text-body); line-height:1.6; }
.aside-bottom .btn { width:100%; margin-left:0; justify-content:flex-start; padding-inline:14px; }
.hero { gap:24px; padding:34px; min-height:0; }
.hero-right .btn { margin-top:0; }
.hero-right { max-width:280px; }
.hero-status { white-space:normal; }
.step div { min-width:0; }
.step { padding-block:0; }
.step + .step { margin-top:20px; }
.step-icon {
  display:grid; place-items:center; align-self:flex-start;
  flex:0 0 40px; width:40px; height:40px; min-width:40px;
  border-radius:50%; background:#edf3e6; color:#49664b;
}
.top-controls .dropdown { width:104px; }
.top-controls .date-control { width:194px; }
.avatar { width:40px; height:40px; min-width:40px; flex:0 0 40px; }
/* Surfaces use spacing and background rather than decorative strokes. */
aside,header,.stat,.panel,.notice,dialog,.hero-status,.hint,.row,td,.step { border:0; }
/* Text opacity belongs to the color, so icons and child controls remain opaque. */
h1,h2,h3,h4,h5,h6,.text-h1,.text-h2,.text-h3,.text-h4,.text-h5,.text-h6,
.empty .text-h6 { color:var(--text-heading-color); }
p,.text-body,.subtitle,.step p,.legend-label,.aside-bottom p {
  color:var(--text-body-color);
}
small,.text-small,.stat small,.ring-inner small,.row small,.step small,
.field small,.hint,footer,.eyebrow { color:var(--text-body-color); }
.hero h1,.hero h2,.hero h3,.hero h4,.hero h5,.hero h6,.hero .balance-amount {
  color:var(--text-inverse-heading);
}
.hero p,.hero .eyebrow,.eyebrow--inverse { color:var(--text-inverse-body); }
@media(max-width:1100px) {
  aside { width:240px; }
  .shell { margin-left:240px; }
  .grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:760px) {
  aside { width:auto; overflow:visible; }
  .shell { margin-left:0; }
  .top-controls { gap:8px; }
  .top-controls .date-control { width:176px; }
  .hero { flex-wrap:wrap; padding:24px; }
  .hero-right { max-width:none; }
  .stats { grid-template-columns:1fr; }
  .stat-top { align-items:center; }
  .allocation { gap:24px; }
  .legend { max-width:none; min-width:0; flex-basis:100%; }
  .panel-heading { align-items:flex-start; }
}

/* Mobile heading variants; body and smaller headings retain their sizes. */
@media(max-width:600px){:root{--text-h1:32px;--text-h2:28px;--text-h3:22px}}

.simple-totals strong.text-h2{font-family:var(--font-display)}
