/* Crown HQ, dressed in the dashboard template's Styled look
   (opfix-tools/dashboards, trades-command-center-template: app/(admin)/admin.css and site-skin.css):
   the mist wall, white tiles with a hairline and a soft shadow, a floating navy menu, a glass top bar,
   the figures strip, pill tabs and buttons, DM Sans figures and headlines, Inter text.
   The business's brand color is every action and selection. Color means something: red bad, green good,
   yellow pending, and it sits on the line that says why, not on the figure. */

:root {
  --page: #f2f5fa;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --surface-3: #eef2f8;
  --ink: #1a1a1a;
  --ink-soft: #475569;
  --ink-mute: #64748b;
  --ink-dim: #94a3b8;
  --rule: #e2e8f0;
  --rule-soft: rgba(15, 23, 42, 0.06);
  --grid: rgba(15, 23, 42, 0.07);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.08);
  --tile-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  --glass: rgba(255, 255, 255, 0.72);

  /* The business's brand: a deep builder's navy. */
  --accent: #2a5b9a;
  --fill: #1e3a5f;
  --on-fill: #ffffff;
  --fill-on-dark: #3d6aa3;
  --on-fill-on-dark: #ffffff;

  --good: #0f7a2b;
  --good-tint: rgba(15, 122, 43, 0.09);
  --warn: #7a6500;
  --warn-tint: rgba(232, 200, 20, 0.2);
  --bad: #c42b2b;
  --bad-tint: rgba(196, 43, 43, 0.08);

  --wall: radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f2f5fa 100%);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "DM Sans", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --side-w: 248px;
  --top-h: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #05070c;
  --surface: #0c111b;
  --surface-2: #0a0e16;
  --surface-3: #151c2a;
  --ink: #f8fafc;
  --ink-soft: #a3acb9;
  --ink-mute: #8b94a3;
  --ink-dim: #4b5563;
  --rule: rgba(255, 255, 255, 0.09);
  --rule-soft: rgba(255, 255, 255, 0.05);
  --grid: rgba(255, 255, 255, 0.07);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 50px rgba(0, 0, 0, 0.45);
  --tile-shadow: none;
  --glass: rgba(12, 17, 27, 0.72);
  --accent: #6d9fe0;
  --fill: #3d6aa3;
  --good: #4cc45e;
  --good-tint: rgba(76, 196, 94, 0.13);
  --warn: #e8d24a;
  --warn-tint: rgba(232, 210, 74, 0.13);
  --bad: #f07070;
  --bad-tint: rgba(240, 112, 112, 0.13);
  --wall: radial-gradient(55% 55% at 50% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    linear-gradient(180deg, #0c111b 0%, #080b12 55%, #05070c 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; max-width: 100%; }
body {
  font: 14px/1.5 var(--sans);
  letter-spacing: -0.006em;
  color: var(--ink);
  background: var(--page);
  background-image: var(--wall);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------- the menu: a floating navy panel ---------------- */
.side {
  position: fixed; top: 12px; left: 12px; z-index: 50;
  width: calc(var(--side-w) - 12px); max-height: calc(100vh - 96px); overflow: auto;
  display: flex; flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px;
  background: rgba(12, 17, 27, 0.94);
  -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; min-height: 64px; }
.brand-name { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.brand-sub { font-size: 12px; color: #8b94a3; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px 14px; }
.nav + .nav { border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 0 10px; padding: 10px 0 14px; }
.nav-area {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #c3cad5; text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-area:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-area[data-on="true"] {
  background: var(--fill-on-dark); color: var(--on-fill-on-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-count:empty { display: none; }
.side-foot {
  position: fixed; left: 12px; bottom: 12px; z-index: 50; width: calc(var(--side-w) - 12px);
  display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 20px;
}
.who { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-mute); line-height: 1.3; }
.who b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }

/* ---------------- the frame ---------------- */
.shell { min-height: 100vh; padding-left: calc(var(--side-w) + 12px); }
.topbar {
  position: sticky; top: 12px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  height: var(--top-h); margin: 12px 16px 0; padding: 0 12px 0 20px;
  border: 1px solid var(--rule); border-radius: 18px;
  background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9);
  box-shadow: var(--tile-shadow);
  font-size: 13px; color: var(--ink-mute);
}
.icon-btn.menu-btn { display: none; }
.demo-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--fill); color: var(--on-fill); font-size: 11.5px; font-weight: 600; }
.sp { flex: 1; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: none; border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.conn i { width: 7px; height: 7px; border-radius: 99px; background: var(--good); margin-left: 6px; }

.ticker {
  margin: 12px 16px 0; padding: 0 6px; min-height: 36px;
  display: flex; align-items: stretch; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); box-shadow: var(--tile-shadow);
}
.ticker-track { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.ticker-track::-webkit-scrollbar { display: none; }
.ticker-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 18px; white-space: nowrap; font-size: 12.5px; color: var(--ink-mute); border-right: 1px solid var(--rule-soft); }
.ticker-item:first-child { color: var(--ink); font-weight: 600; }
.ticker-item b { font-family: var(--display); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ticker-item b.bad { color: var(--bad); }

main { max-width: 1320px; margin: 0 auto; padding: 26px 40px 96px; }

/* ---------------- the area: name, pill tabs, tools ---------------- */
.area-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs { display: flex; gap: 6px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); box-shadow: var(--tile-shadow); }
.tabs::-webkit-scrollbar { display: none; }
.tabs > a { flex: none; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; white-space: nowrap; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.tabs > a:hover { background: var(--surface-3); color: var(--ink); }
.tabs > a[data-on="true"] { background: var(--fill); color: var(--on-fill); }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.lede { margin: -8px 0 24px; max-width: 760px; color: var(--ink-mute); font-size: 14px; }

.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 18px; border: none; border-radius: 999px; background: var(--fill); color: var(--on-fill); font-weight: 600; font-size: 13.5px; text-decoration: none; cursor: pointer; transition: background 0.2s var(--ease); white-space: nowrap; }
.btn:hover { background: color-mix(in oklab, var(--fill) 86%, #000); }
.btn-quiet { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 500; font-size: 13.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-quiet:hover { border-color: var(--ink); background: var(--surface-3); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg > button { flex: none; border: 0; background: none; padding: 5px 13px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.seg > button[data-on="true"] { background: var(--fill); color: var(--on-fill); }

/* ---------------- the lead: one big number beside its chart ---------------- */
.hero { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2fr); gap: 48px; align-items: end; padding-bottom: 30px; }
.hero-label { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.hero-val { font-family: var(--display); font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 10px 0 12px; font-variant-numeric: tabular-nums; }
.hero-meter { height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 16px 0 8px; max-width: 320px; }
.hero-meter > span { display: block; height: 100%; border-radius: 999px; background: var(--fill); }
.hero-sub { font-size: 13px; color: var(--ink-mute); }
.chart-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-mute); margin-bottom: 8px; }
.chart { width: 100%; height: auto; display: block; }
.chart { stroke: none; }
.chart rect { stroke: none; }
.chart text { font: 11px var(--sans); fill: var(--ink-mute); stroke: none; }

/* ---------------- figures: a hairline over each ---------------- */
.kgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; row-gap: 18px; margin-bottom: 28px; }
.kpi { border-top: 1px solid var(--rule); padding: 14px 0 6px; display: flex; flex-direction: column; gap: 5px; min-width: 0; text-decoration: none; color: inherit; transition: border-color 160ms ease; }
a.kpi:hover { border-top-color: var(--accent); }
.kpi-label { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.kpi-val { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12.5px; color: var(--ink-mute); line-height: 1.45; }
.term { cursor: help; text-decoration: underline dotted var(--ink-dim) 1px; text-underline-offset: 4px; }
.term:hover { text-decoration-color: currentColor; }
.strong { font-weight: 600; color: var(--ink); }
.good-t, .strong.good-t { color: var(--good); } .bad-t, .strong.bad-t { color: var(--bad); } .warn-t, .strong.warn-t { color: var(--warn); } .mute { color: var(--ink-mute); }

/* ---------------- sections: white tiles ---------------- */
.tile { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--tile-shadow); padding: 0 24px; min-width: 0; }
.tile + .tile, .row2 + .tile, .tile + .row2, .row2 + .row2 { margin-top: 16px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.row2 > .tile + .tile { margin-top: 0; }
.tile-head { display: flex; align-items: center; gap: 10px; padding: 20px 0 14px; }
.tile-title { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.tile-meta { margin-left: auto; font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; }
.tile-body { padding: 0 0 22px; }
.tile p { margin: 0 0 12px; }

/* Lists are rows you can open: the thing, why, and a chevron. No colored dots. */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--rule); cursor: pointer; }
.rows > li:hover .r-t { color: var(--accent); }
.r-t { font-weight: 600; color: var(--ink); transition: color 0.15s; }
.r-w { font-size: 13px; color: var(--ink-mute); }
.r-end { display: flex; align-items: center; gap: 10px; color: var(--ink-dim); }
.group-l { font-size: 12.5px; font-weight: 600; color: var(--ink-mute); padding: 14px 0 6px; border-top: 1px solid var(--rule); }
.group-l:first-child { border-top: 0; padding-top: 0; }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--ink-soft); }
.tag.good { background: var(--good-tint); color: var(--good); }
.tag.warn { background: var(--warn-tint); color: var(--warn); }
.tag.bad { background: var(--bad-tint); color: var(--bad); }

/* ---------------- tables: hairlines, figures right ---------------- */
.tw { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: right; font-weight: 500; font-size: 12.5px; color: var(--ink-mute); padding: 10px 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { text-align: right; padding: 13px 8px; border-bottom: 1px solid var(--rule-soft); font-variant-numeric: tabular-nums; vertical-align: middle; }
th:first-child, td:first-child, th.l, td.l { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
tfoot td { font-weight: 600; border-top: 1px solid var(--rule); border-bottom: 0; }
.cell-sub { display: block; font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.est-lines input { width: 84px; text-align: right; }

/* ---------------- forms, notes, the rule box ---------------- */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.inp { height: 38px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100%; }
textarea.inp { height: auto; padding: 10px 12px; }
.inp:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.note { font-size: 12.5px; color: var(--ink-mute); margin: 12px 0 0; }
.callout { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 500; margin: 6px 0; }
.callout.good { background: var(--good-tint); color: var(--good); }
.callout.warn { background: var(--warn-tint); color: var(--warn); }
.callout.bad { background: var(--bad-tint); color: var(--bad); }
.kv { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
.kv .k { color: var(--ink-mute); }
.split3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 12px; }
.split3 > div { background: var(--surface-2); border: 1px solid var(--rule-soft); border-radius: 14px; padding: 12px 14px; }
.split3 .l { font-size: 12.5px; color: var(--ink-mute); }
.split3 .v { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.meter { height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; position: relative; margin-top: 8px; max-width: 220px; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.meter > b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: 0.5; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 9px 0; border-top: 1px solid var(--rule-soft); font-size: 13px; }
.feed li:first-child { border-top: 0; }
.feed .w { font-size: 12px; color: var(--ink-mute); }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--rule-soft); cursor: pointer; }
.check input { accent-color: var(--fill); width: 16px; height: 16px; }
.check.done .t { text-decoration: line-through; color: var(--ink-mute); }
.empty { color: var(--ink-mute); padding: 6px 0 4px; }

/* ---------------- modal and toast ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(15, 23, 42, 0.32); }
.modal.show { display: flex; }
.card { width: min(620px, 100%); max-height: 80vh; overflow: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow); }
.card .hd { display: flex; align-items: center; gap: 10px; padding: 18px 22px 12px; position: sticky; top: 0; background: var(--surface); }
.card .hd h2 { margin: 0; flex: 1; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.card .bd { padding: 4px 22px 22px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 120; padding: 10px 18px; border-radius: 999px; background: var(--fill); color: var(--on-fill); font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow); transition: all 0.25s var(--ease); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- phone: the menu is a drawer, areas sit in a dock ---------------- */
.dock { display: none; }
.scrim { display: none; }
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { padding-left: 0; }
  .side { top: 8px; left: 8px; bottom: 8px; max-height: none; transform: translateX(calc(-100% - 16px)); transition: transform 0.25s var(--ease); z-index: 90; }
  .shell[data-open="true"] .side { transform: translateX(0); }
  .shell[data-open="true"] .scrim { display: block; position: fixed; inset: 0; z-index: 89; background: rgba(0, 0, 0, 0.4); }
  .side-foot { display: none; }
  .icon-btn.menu-btn { display: grid; }
  .topbar, .ticker { margin: 8px 8px 0; }
  .topbar { top: 8px; border-radius: 16px; padding: 0 8px 0 12px; }
  .conn, .tb-long { display: none; }
  main { padding: 20px 16px 110px; }
  .dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 60; padding: 6px; border: 1px solid var(--rule); border-radius: 20px; background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9); box-shadow: var(--shadow); }
  .dock a, .dock button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; border-radius: 14px; font-size: 11px; font-weight: 600; color: var(--ink-mute); text-decoration: none; cursor: pointer; }
  .dock [data-on="true"] { color: var(--fill); background: var(--surface-3); }
  :root[data-theme="dark"] .dock [data-on="true"] { color: var(--accent); }
  .tile { padding: 0 16px; }
  .tools { margin-left: 0; }
}
@media (max-width: 620px) {
  .kgrid { column-gap: 20px; }
  .kpi-val { font-size: 23px; }
  .hero-val { font-size: 44px; }
  .split3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv .k { margin-top: 8px; }
  /* Tables become stacked rows on a phone. */
  table.rt thead { display: none; }
  table.rt, table.rt tbody, table.rt tfoot, table.rt tr, table.rt td { display: block; width: 100%; }
  table.rt tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.rt td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  table.rt td::before { content: attr(data-l); color: var(--ink-mute); font-size: 12.5px; text-align: left; }
  table.rt td:first-child { display: block; text-align: left; font-weight: 600; padding-bottom: 6px; }
  table.rt td:first-child::before { display: none; }
  table.rt td.no-label::before { display: none; }
}
@media print { body { background: #fff; } .side, .side-foot, .topbar, .ticker, .dock { display: none; } .shell { padding: 0; } .tile { box-shadow: none; } }

/* Page titles: each page keeps its own title and line, set in the template's display face. */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 6px 0 24px; }
.page-title { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin: 0; text-wrap: balance; }
.page-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-mute); max-width: 760px; }
.page-date { font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-top: 6px; }
.tile-meta .btn-quiet { margin: -4px 0; }
.r-end .tag { margin-right: 2px; }
@media (max-width: 620px) { .page-title { font-size: 26px; } }

/* ---------------- where the money went: one bar per line ---------------- */
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; font-size: 13px; }
.bar-l { color: var(--ink-soft); }
.bar-t { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar-t > i { display: block; height: 100%; border-radius: 999px; }
.bar-v { font-family: var(--display); font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr auto; } .bar-t { grid-column: 1 / -1; order: 3; } }
