/* ==========================================================================
   Vaults — stylesheet
   Dark "vault" theme: deep graphite surfaces, brushed-gold accent,
   tabular numerals for money.
   ========================================================================== */

:root {
  --bg:        #0e1014;
  --bg-2:      #13161c;
  --surface:   #181c24;
  --surface-2: #1f242e;
  --border:    #272d3a;
  --border-2:  #333a4a;
  --text:      #e9e6dd;
  --text-2:    #b5b2a9;
  --muted:     #7d7b74;
  --gold:      #c9a44a;
  --gold-2:    #e0bc62;
  --gold-dim:  rgba(201,164,74,.14);
  --pos:       #4fcf94;
  --pos-dim:   rgba(79,207,148,.14);
  --neg:       #f0636f;
  --neg-dim:   rgba(240,99,111,.14);
  --warn:      #e9b35a;
  --info:      #6fb3ff;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(201,164,74,.07), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(111,179,255,.05), transparent 60%);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.15; }
h2 { font-size: 16px; }
h3 { font-size: 14px; color: var(--text-2); }
p { margin: 0 0 12px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; color: var(--gold-2); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); text-decoration: none !important;
}
.brand-lg { font-size: 26px; margin-bottom: 26px; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: linear-gradient(135deg, var(--gold-2), #8c6a1f);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), 0 0 0 1px rgba(201,164,74,.35);
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  border: 2px solid rgba(14,16,20,.75);
}
.brand-lg .brand-mark { width: 30px; height: 30px; border-radius: 8px; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,16,20,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 60px;
  display: flex; align-items: center; gap: 22px;
}
.nav { display: flex; gap: 2px; flex: 1; }
.nav a {
  color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 14px;
  text-decoration: none !important; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--gold-2); background: var(--gold-dim); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 16px; cursor: pointer; }
.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.viewas-form { display: flex; align-items: center; gap: 8px; }
.viewas-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.viewas-select {
  background: var(--surface); color: var(--text); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 6px 10px; font: inherit; font-size: 13px; max-width: 180px;
}
.viewas-banner {
  background: linear-gradient(90deg, rgba(201,164,74,.22), rgba(201,164,74,.08));
  border-bottom: 1px solid rgba(201,164,74,.35);
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 20px; font-size: 14px;
}

/* Privacy mode: amounts are masked for screenshots */
.privacy-btn {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--border-2); color: var(--text-2);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; transition: all .15s;
}
.privacy-btn:hover { color: var(--text); border-color: var(--gold); }
.privacy-icon { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; position: relative; box-sizing: border-box; }
.privacy-icon::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
html.privacy .privacy-btn { background: var(--gold-dim); border-color: rgba(201,164,74,.45); color: var(--gold-2); }
html.privacy .privacy-icon::before { content: ''; position: absolute; left: -3px; right: -3px; top: 50%; height: 2px; background: currentColor; transform: rotate(-35deg); }
html.privacy .amt:not(.masked) { visibility: hidden; }
html.privacy .amt.masked { letter-spacing: .12em; opacity: .75; }

.usermenu, .menu { position: relative; }
.usermenu-btn {
  display: flex; align-items: center; gap: 10px; background: none; border: 1px solid transparent; color: var(--text);
  padding: 4px 8px 4px 4px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; white-space: nowrap;
}
.usermenu-btn:hover { border-color: var(--border-2); background: var(--surface); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--gold-2), #8c6a1f); color: #15130c; font-weight: 700; font-size: 13px;
}
.usermenu-pop, .menu-pop {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.usermenu.open .usermenu-pop, .menu.open .menu-pop { display: block; }
.usermenu-head { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.usermenu-pop a, .usermenu-pop button, .menu-pop button {
  display: block; width: 100%; text-align: left; padding: 10px 14px; background: none; border: 0;
  color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none !important;
}
.usermenu-pop a:hover, .usermenu-pop button:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-pop button.danger { color: var(--neg); }
.menu-pop form { margin: 0; }
.menu-pop { min-width: 220px; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.page { max-width: 1240px; margin: 0 auto; padding: 26px 20px 60px; display: flex; flex-direction: column; gap: 18px; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; border-top: 1px solid var(--border); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.subtitle { color: var(--text-2); margin: 6px 0 0; font-size: 14px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-3-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.grid-gap { gap: 18px; }
.grid-2 > .card, .grid-3-1 > .card { margin: 0; min-width: 0; }

/* --------------------------------------------------------------------------
   Cards & stats
   -------------------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.02) inset;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.card h2 + .form, .card h2 + p { margin-top: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.stat-link { color: inherit; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.stat-link:hover { border-color: var(--gold); transform: translateY(-1px); }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stat-value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-hero { font-size: 30px; font-family: var(--font-display); font-weight: 500; }
.stat-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub.pos { color: var(--pos); } .stat-sub.neg { color: var(--neg); }

.notice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--gold-dim); border: 1px solid rgba(201,164,74,.35); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px;
}
.empty { color: var(--muted); text-align: center; padding: 26px 10px; margin: 0; border: 1px dashed var(--border-2); border-radius: var(--radius-sm); }

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */
.flashes { display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid; }
.flash-success { background: var(--pos-dim); border-color: rgba(79,207,148,.35); color: #bfeedb; }
.flash-error   { background: var(--neg-dim); border-color: rgba(240,99,111,.35); color: #ffd3d7; }
.flash .inline-form { display: inline; margin-left: 6px; }
.link-btn { background: none; border: 0; color: var(--gold-2); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.form label .muted { font-weight: 400; }
/* fields on the same grid row line up at the bottom even when a label wraps on two lines */
.form label > input, .form label > select, .form label > textarea, .form label > .segmented { margin-top: auto; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=month], input[type=search], input[type=number], select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 10px 12px; font: inherit; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
  color-scheme: dark;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
input:disabled { opacity: .55; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; color: var(--text) !important; }
.check input { width: 16px; height: 16px; accent-color: var(--gold); }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.filters select, .filters input { width: auto; padding: 7px 30px 7px 10px; font-size: 13px; }
.filters input[type=search] { padding-right: 10px; min-width: 200px; }

.segmented { display: flex; border: 1px solid var(--border-2); border-radius: var(--radius-sm); overflow: hidden; }
.segmented label { flex: 1; margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 9px 10px; cursor: pointer; color: var(--text-2); font-size: 14px; background: var(--bg); }
.segmented input:checked + span { color: var(--text); font-weight: 600; }
.segmented input[value=buy]:checked + span { background: var(--pos-dim); color: var(--pos); }
.segmented input[value=sell]:checked + span { background: var(--neg-dim); color: var(--neg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius-sm); padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; text-decoration: none !important; white-space: nowrap; transition: filter .15s, background .15s, border-color .15s;
}
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #15130c; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--gold); }
.btn-danger { background: var(--neg-dim); color: var(--neg); border-color: rgba(240,99,111,.35); }
.btn-danger:hover { background: rgba(240,99,111,.25); }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn {
  background: none; border: 1px solid transparent; color: var(--muted); border-radius: 7px; width: 30px; height: 30px;
  display: inline-grid; place-items: center; cursor: pointer; font-size: 14px; transition: all .15s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-2); }
.icon-btn.danger:hover { color: var(--neg); background: var(--neg-dim); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.table tbody tr:hover { background: rgba(255,255,255,.015); }
.table tfoot th { color: var(--text); font-size: 14px; text-transform: none; letter-spacing: 0; border-bottom: 0; border-top: 1px solid var(--border-2); }
.table-num td, .table-num th { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-num td .muted.small, .table-num td.muted.small { white-space: normal; max-width: 280px; }
.table .r { text-align: right; }
.table-compact th, .table-compact td { padding: 8px 10px; font-size: 13.5px; }
.table tr.closed td { opacity: .55; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .inline-form { margin-left: 2px; }
.actions-wrap { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.asset-cell { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none !important; }
.asset-cell:hover strong { color: var(--gold-2); }
.user-cell { display: flex; align-items: center; gap: 10px; }
.price-form input { width: 110px; padding: 6px 8px; text-align: right; }

/* Badges, pills, tags */
.badge { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--surface-2); color: var(--text-2); }
.badge-crypto { background: rgba(247,147,26,.16); color: #f7b955; }
.badge-stock  { background: rgba(111,179,255,.16); color: #8cc3ff; }
.badge-etf    { background: rgba(140,120,255,.16); color: #b3a4ff; }
.badge-metal  { background: var(--gold-dim); color: var(--gold-2); }
.badge-cash   { background: var(--pos-dim); color: var(--pos); }
.badge-real_estate { background: rgba(235,120,170,.16); color: #f39ac4; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.pill-buy  { background: var(--pos-dim); color: var(--pos); }
.pill-sell { background: var(--neg-dim); color: var(--neg); }
.pill-inc  { background: rgba(111,179,255,.14); color: #8cc3ff; }
.pill-owner { background: var(--gold-dim); color: var(--gold-2); }
.tag { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 5px; background: var(--surface-2); color: var(--muted); margin-left: 6px; vertical-align: middle; }
.tag-warn   { background: rgba(233,179,90,.16); color: var(--warn); }
.tag-ok     { background: var(--pos-dim); color: var(--pos); }
.tag-danger { background: var(--neg-dim); color: var(--neg); }

/* --------------------------------------------------------------------------
   Charts, bars, goals, feed
   -------------------------------------------------------------------------- */
.chart-box { position: relative; height: 260px; }
.chart-box-sm { height: 200px; }
.chart-box-lg { height: 340px; }
.legend-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.legend-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.legend-list li:last-child { border-bottom: 0; }
.alloc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; margin-bottom: 10px; }

.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 80px 1fr 150px; gap: 12px; align-items: center; font-size: 13.5px; }
.bar-label { font-weight: 600; }
.bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }

.goal { padding: 12px 0; border-bottom: 1px solid var(--border); }
.goal:last-of-type { border-bottom: 0; }
.goal-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; }
.goal-target { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.goal-eta { font-weight: 600; font-size: 14px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; min-width: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; box-shadow: 0 0 10px rgba(201,164,74,.5); }
.goal-sub { margin-top: 5px; }
.goal-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-2); }
.goal-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.goal-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.goal-mini-label { font-family: var(--font-display); font-size: 16px; margin-bottom: 6px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card-help h2 { margin-bottom: 12px; }
.help-grid p { color: var(--text-2); font-size: 13.5px; margin: 6px 0 0; }

/* --------------------------------------------------------------------------
   Modal (native <dialog>)
   -------------------------------------------------------------------------- */
.modal { border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 22px 24px; width: min(620px, calc(100vw - 32px)); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(5,6,9,.7); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.modal-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Auth pages
   -------------------------------------------------------------------------- */
.auth-body { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-wrap { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; }
.auth-card { width: 100%; padding: 28px 30px; }
.auth-card h1 { font-size: 26px; margin-bottom: 4px; }
.auth-card .form { margin-top: 18px; }
.auth-card .flash { margin-top: 12px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: 13.5px; }
.auth-wrap .flashes { width: 100%; margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .privacy-label { display: none; }
  .privacy-btn { padding: 7px 9px; }
  .viewas-label { display: none; }
}
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3-1 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav { display: none; width: 100%; flex-direction: column; order: 3; }
  .nav.open { display: flex; }
  .topbar-right { margin-left: 0; width: 100%; justify-content: space-between; order: 2; }
  .usermenu-name { display: none; }
  .privacy-label { display: none; }
  .privacy-btn { padding: 7px 9px; }
  .viewas-select { max-width: 150px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .alloc { grid-template-columns: 1fr; }
  .goal-strip { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 60px 1fr 110px; }
  .page { padding: 18px 14px 50px; }
  .card { padding: 16px; }
  h1 { font-size: 25px; }
  .modal { padding: 18px; }
}
