/* Overview screen layout. Loaded by the router on first visit. */

.ov-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ov-col { display: grid; gap: 16px; align-content: start; min-width: 0; }

/* Rail on with a narrower main column, or tablets: one grid, wide cards full width */
@media (max-width: 1279px) {
  .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-col { display: contents; }
  .ov-nw, .ov-acc, .ov-rec { grid-column: 1 / -1; }
  .ov-al, .ov-mk { align-self: stretch; }
}
@media (max-width: 699px) {
  .ov-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Net worth */
.nw-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 16px; }
.nw-hero { min-width: 0; }
.hero-num { font-size: var(--t-xxl); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 2px 0 10px; }
.nw-delta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.delta { display: inline-flex; gap: 4px; align-items: center; font-size: var(--t-s); line-height: 1.3; padding: 5px 10px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--glass-edge); color: var(--ink); }
.nw-controls { display: grid; gap: 8px; justify-items: end; }
.nw-chart { margin-top: 14px; }
.readout { font-size: var(--t-xs); line-height: 1.4; color: var(--ink); margin: 8px 0 8px; min-height: 1.4em; }
.readout b { font-weight: 600; }
.illus { margin-top: 12px; font-size: var(--t-xs); line-height: 1.5; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.illus p:first-child { font-size: var(--t-m); line-height: 1.6; }
.ov-empty { display: grid; gap: var(--s3); max-width: 640px; }
.ov-empty p { margin: 0; font-size: var(--t-m); line-height: 1.6; }
.nowrap { white-space: nowrap; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 8px; }
.illus-row th, .illus-row td { color: var(--muted); }
@media (max-width: 639px) {
  .hero-num { font-size: 36px; }
  .nw-controls { justify-items: start; grid-auto-flow: row; }
  .nowrap { white-space: normal; }
}

/* Assets and debts */
.al-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 0 8px; font-size: var(--t-xs); color: var(--muted); }
.al-total b { color: var(--ink); font-size: var(--t-m); font-variant-numeric: tabular-nums; }
.al-row { padding: 7px 0; }
.al-name { display: inline-flex; align-items: center; gap: 8px; }
.al-eq { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-s); background: var(--panel-2); font-size: var(--t-xs); line-height: 1.45; }

/* Accounts */
.acct-list, .tx-list, .mk-list { list-style: none; margin: 0; padding: 0; }
h3.grouphead { margin: 0; }
.li.acct { grid-template-columns: 28px minmax(0, 1fr) 64px auto; gap: 2px 12px; }
.acct-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 700 13px/1.2 var(--font); }
.acct-spark { display: flex; align-items: center; }
@media (max-width: 420px) {
  .li.acct { grid-template-columns: 26px minmax(0, 1fr) 52px auto; gap: 2px 8px; }
  .acct-ico { width: 26px; height: 26px; }
  .acct-spark .spark { width: 52px; }
}

/* Recent */
.small-link { font-size: var(--t-xs); }

/* Markets (sample) */
.mk-intro { font-size: var(--t-s); line-height: 1.5; margin-bottom: 4px; }
.mk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mk-row:last-child { border-bottom: 0; }
.mk-name { font-size: var(--t-xs); line-height: 1.3; color: var(--muted); }
.mk-val { font-size: var(--t-m); line-height: 1.3; margin-top: 2px; }
.mk-chg { font-size: var(--t-xs); line-height: 1.3; color: var(--ink); margin-top: 2px; }
.mk-none { font-size: var(--t-s); color: var(--ink); }
