/* Steward of the House: base design system (tokens, reset, layout, header and footer shells, typography, buttons,
 * hero, cards, level box, forms, data viz, tables). Copied from the parent stylesheet so the site stands alone,
 * then made dark-first: bare :root is the dark palette, html[data-theme="light"] restores the parent's
 * palette exactly. Every literal colour of the parent is replaced by a token so both themes follow. Page-specific
 * components live in site.css. */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300..800;1,300..800&display=swap');

/* ============================== TOKENS ============================== */
/* Dark (default). The site is dark for everyone; the toggle stores the choice in localStorage (ems.theme).
 * The accent is the cyan-blue of the Steward mark, kin to Home Assistant's #41bdf5 but fresher, and the mark's
 * violet is the far end of the gradient. Contrast (WCAG formula): #2ec8f0 on #16181a 9.0:1, ink #16181a on #2ec8f0
 * 9.0:1 (filled buttons), #5ed9f7 on #16181a 10.8:1 (small accent text), #1266b3 on #f3f2ec 5.2:1 (the accent as
 * text on an inverted control), the gradient's violet #6048e8 on #16181a 3.0:1 (surfaces and large type only). The
 * gradient is used with restraint: the mark, the h1's italic word, the Steward node's halo in the hero and the
 * primary button's hover. Everything else is ink and paper. */
:root {
  color-scheme: dark;
  --paper: #16181a;
  --paper-warm: #1c1f22;
  --paper-card: #25282a;
  --ink: #f3f2ec;
  --ink-deep: #ffffff;
  --ink-soft: rgba(243, 242, 236, 0.62);
  --ink-mid: #d2d1ca;
  --accent: #2ec8f0;
  --accent-deep: #5ed9f7;           /* the lighter step: hover of a filled surface, accent text (10.8:1) */
  --accent-soft: #1aa8d6;           /* the deeper step: bars and bands (6.5:1) */
  --accent-2: #6048e8;              /* the mark's violet: the gradient's far end, never text */
  --accent-rgb: 46, 200, 240;       /* --accent as channels, for rgba() glows and halos */
  --accent-g1: #08e8f8;             /* the gradient's stops (the hero reads them for the Steward node) */
  --accent-g2: #2f8ff0;
  --accent-g3: #6048e8;
  --accent-gradient: linear-gradient(135deg, var(--accent-g1), var(--accent-g2) 55%, var(--accent-g3));
  --accent-gradient-text: linear-gradient(135deg, #08e8f8, #2f8ff0 55%, #7b68ee);   /* large type only: 11.8, 5.4 and 4.3:1 on paper */
  --accent-text: #5ed9f7;           /* the accent as small text on the page ground */
  --accent-on-dark: #2ec8f0;        /* the accent on ink and dark panels (.svc-card, .viz-dark, .btn-primary in light): 9.6:1 on #0f1113 */
  --accent-on-dark-rgb: 46, 200, 240;  /* --accent-on-dark as channels (chip tints and positive rows on dark panels) */
  --accent-on-dark-hover: #5ed9f7;  /* hover of a filled --accent-on-dark surface */
  --on-accent-on-dark: #16181a;     /* text on --accent-on-dark: the same ink in every theme */
  --accent-on-light: #1266b3;       /* the accent as small text on an inverted control's light ground (.level-btn.active in dark) */
  --mark-tile-1: #585858;           /* the mark's tile, sampled from the icon: lighter top right, darker bottom left */
  --mark-tile-2: #323232;
  --on-dark: #f3f2ec;
  --on-dark-soft: rgba(243, 242, 236, 0.66);
  --rule: rgba(243, 242, 236, 0.12);
  --rule-soft: rgba(243, 242, 236, 0.06);
  --rule-strong: rgba(243, 242, 236, 0.22);
  --rule-dark: rgba(243, 242, 236, 0.12);
  --neg: #e0674a;
  --pos: #9ccc3a;
  /* tokens that replace the parent's literal colours */
  --panel-dark: #0f1113;            /* ink panels (.section-dark, .svc-card, .viz-dark, .site-footer) */
  --panel-dark-hover: #16181a;      /* .svc-card:hover */
  --on-accent: #16181a;             /* text on accent surfaces (.be-box, the filled buttons in dark): 9.0:1 */
  --header-bg: rgba(22, 24, 26, 0.82);
  --bar-text: #16181a;              /* text inside .bar-fill */
  --btn-hover: #2e3236;
  --header-h: 80px;
}
/* Light: the parent's paper and ink, value for value, with the blue accent deepened for paper. #1470c4 on #fafaf6
 * is 4.8:1 and white on #1470c4 5.1:1 (the accent band and the skip link); #1266b3 5.6:1 and #0f5da5 6.4:1 as text.
 * Every filled surface on a dark panel (the installation card's button, the simulator's bars, the comparison
 * toolbar) uses --accent-on-dark, the luminous #2ec8f0 (7.5:1 on #25282a) with ink text, so the same control looks
 * the same in both themes. */
html[data-theme="light"] {
  color-scheme: light;
  --paper: #fafaf6;
  --paper-warm: #f1efe8;
  --paper-card: #ffffff;
  --ink: #25282a;
  --ink-deep: #16181a;
  --ink-soft: #62656a;
  --ink-mid: #3d4044;
  --accent: #1470c4;
  --accent-deep: #1266b3;
  --accent-soft: #5aaef0;
  --accent-2: #5a3fd8;
  --accent-rgb: 20, 112, 196;
  --accent-g1: #06c4dc;
  --accent-g2: #1470c4;
  --accent-g3: #5a3fd8;
  --accent-gradient: linear-gradient(135deg, var(--accent-g1), var(--accent-g2) 55%, var(--accent-g3));
  --accent-gradient-text: linear-gradient(135deg, #0c7f9c, #1470c4 55%, #5a3fd8);   /* 4.4, 4.8 and 6.4:1 on paper */
  --accent-text: #0f5da5;
  --accent-on-dark: #2ec8f0;
  --accent-on-dark-rgb: 46, 200, 240;
  --accent-on-dark-hover: #2ab8dd;  /* eight percent darker than #2ec8f0 (6.4:1 on #25282a) */
  --on-accent-on-dark: #16181a;
  --accent-on-light: #1266b3;
  --on-dark: #f3f2ec;
  --on-dark-soft: rgba(243, 242, 236, 0.66);
  --rule: rgba(37, 40, 42, 0.10);
  --rule-soft: rgba(37, 40, 42, 0.05);
  --rule-strong: rgba(37, 40, 42, 0.18);
  --rule-dark: rgba(243, 242, 236, 0.12);
  --neg: #c14a2b;
  --pos: #5a8a2a;
  --panel-dark: #25282a;
  --panel-dark-hover: #1d1f21;
  --on-accent: #ffffff;
  --header-bg: rgba(250, 250, 246, 0.85);
  --bar-text: #ffffff;
  --btn-hover: #16181a;
}
/* ============================== RESET =============================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
input, textarea {
  font-family: inherit;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
  border-radius: 4px;
  width: 100%;
}
input:focus, textarea:focus { border-color: var(--ink); }

/* ============================ LAYOUT =============================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 40px; } }
.section { padding: 96px 0; }
.section-sm { padding: 48px 0; }
.pt-pagetop { padding-top: 96px; }
.pb-24 { padding-bottom: 96px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-14 { margin-top: 56px; }
.mt-16 { margin-top: 64px; }
.maxw-2xl { max-width: 42rem; }
.maxw-3xl { max-width: 48rem; }
.maxw-4xl { max-width: 56rem; }
.hidden { display: none; }

.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 32px;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================ HEADER ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 22%;
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-title { font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.brand-tag {
  font-weight: 400; font-size: 11px; color: var(--ink-soft);
  letter-spacing: .08em; text-transform: uppercase;
}
.nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav-link {
  padding: 10px 14px; font-weight: 500; font-size: 14.5px;
  color: var(--ink-soft); letter-spacing: .005em; transition: color .15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active {
  color: var(--ink); font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.nav-cta { margin-left: 12px; }
.menu-toggle { display: inline-flex; color: var(--ink); }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.mobile-menu { display: none; border-top: 1px solid var(--rule); }
.mobile-menu.open { display: block; }
.mobile-menu .menu-list { padding: 16px 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu .nav-link { padding: 12px 14px; }

/* ========================= TYPOGRAPHY ============================= */
.eyebrow {
  font-weight: 600; font-size: 12px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 10px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--accent); display: inline-block; }
.eyebrow-sm {
  font-weight: 600; font-size: 11.5px; color: var(--ink-soft);
  letter-spacing: .12em; text-transform: uppercase;
}
.h1 { font-weight: 800; font-size: clamp(46px, 6.8vw, 88px); line-height: .98; letter-spacing: -.035em; margin: 0; }
.h1-page { font-weight: 800; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.h2 { font-weight: 700; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin: 0; }
.h3 { font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -.015em; margin: 0; }
.em-italic { font-style: italic; font-weight: 300; color: var(--accent-deep); }
.lead { font-weight: 400; font-size: 19px; line-height: 1.5; color: var(--ink-mid); letter-spacing: -.005em; }
.body-lg { font-size: 17.5px; line-height: 1.6; }

/* =========================== BUTTONS ============================== */
.btn-primary {
  padding: 14px 22px; background: var(--ink); color: var(--accent-on-dark);
  font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center;
  gap: 10px; border-radius: 4px; transition: background .15s;
}
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost {
  padding: 14px 22px; background: transparent; color: var(--ink);
  font-weight: 600; font-size: 14.5px; border: 1.5px solid var(--ink); border-radius: 4px;
}
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
.cta-small {
  padding: 10px 16px; background: var(--ink); color: var(--accent-on-dark);
  font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center;
  gap: 8px; border-radius: 4px;
}
.link-arrow {
  font-weight: 600; font-size: 14px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow:hover { color: var(--accent-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ============================ HERO =============================== */
.hero { position: relative; overflow: hidden; padding: 80px 0 96px; }
.hero-grid {
  position: absolute; inset: 0; opacity: .6;
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
}
.hero .container { position: relative; }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; margin-top: 64px; }
.stat-number { font-weight: 800; font-size: 36px; letter-spacing: -.025em; line-height: 1; }
.stat-label { font-weight: 500; font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; margin-top: 6px; }
.stat-divider { width: 1px; height: 36px; background: var(--rule); }

/* ====================== SECTIONS / MANIFEST ====================== */
.section-dark { background: var(--panel-dark); color: var(--on-dark); }
.section-dark .h2 { color: var(--on-dark); }
.section-dark .eyebrow { color: var(--on-dark-soft); }
.manifest { background: var(--paper-warm); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.manifest-kicker { font-weight: 700; font-size: 12px; color: var(--accent-deep); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.manifest-text { font-weight: 500; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; letter-spacing: -.02em; margin: 0; }
.section-head { margin-bottom: 56px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

/* ===================== SERVICE CARDS (dark) ===================== */
.svc-cards { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule-dark); margin-top: 56px; }
@media (min-width: 768px) { .svc-cards { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  background: var(--panel-dark); color: var(--on-dark); padding: 44px 36px 36px;
  display: block; text-align: left; transition: background .2s;
}
.svc-card:hover { background: var(--panel-dark-hover); }
.svc-card .top { display: flex; align-items: flex-start; justify-content: space-between; }
.svc-card .num { font-weight: 800; font-size: 56px; color: var(--accent-on-dark); line-height: 1; letter-spacing: -.04em; }
.svc-card .icon { color: var(--on-dark-soft); }
.svc-card h3 { font-weight: 700; font-size: 24px; letter-spacing: -.015em; margin: 36px 0 0; line-height: 1.2; }
.svc-card .desc { font-size: 15px; line-height: 1.6; color: var(--on-dark-soft); margin-top: 16px; }
.svc-card .price-row { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule-dark); display: flex; align-items: baseline; gap: 8px; }
.svc-card .price { font-weight: 700; font-size: 22px; color: var(--accent-on-dark); letter-spacing: -.01em; }
.svc-card .price-note { font-size: 12px; color: var(--on-dark-soft); letter-spacing: .04em; }
.svc-card .more { margin-top: 24px; display: flex; align-items: center; gap: 6px; color: var(--accent-on-dark); font-weight: 600; font-size: 13px; }

/* ========================= ARTICLE CARDS ========================= */
.card { text-align: left; width: 100%; display: block; }
.card .thumb {
  aspect-ratio: 4 / 3; background: var(--panel-dark); color: var(--accent);
  position: relative; overflow: hidden; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .thumb img { transform: scale(1.045); }
.card .thumb .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,24,26,.55) 0%, rgba(22,24,26,0) 36%, rgba(22,24,26,0) 68%, rgba(22,24,26,.30) 100%);
}
.card .thumb .num { position: absolute; top: 16px; left: 18px; font-weight: 700; font-size: 11px; color: var(--on-dark-soft); letter-spacing: .12em; z-index: 2; }
.card .cat-row { margin-top: 20px; display: flex; align-items: center; gap: 8px; }
.card .cat { font-weight: 600; font-size: 11.5px; color: var(--ink-soft); letter-spacing: .1em; text-transform: uppercase; }
.card .card-title { font-weight: 700; font-size: 21px; letter-spacing: -.015em; line-height: 1.25; margin: 8px 0 0; }
.card:hover .card-title { color: var(--accent-deep); }
.card .meta { margin-top: 16px; display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }

/* ========================== FILTER CHIPS ======================== */
.filter-bar { margin-top: 48px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 8px; }
.chip {
  padding: 7px 14px; font-weight: 500; font-size: 13px; color: var(--ink-soft);
  border: 1px solid var(--rule-strong); background: transparent; border-radius: 999px; transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--accent-on-dark); border-color: var(--ink); font-weight: 600; }

/* =========================== LEVEL BOX =========================== */
.level-box { border: 1px solid var(--rule-strong); background: var(--paper-warm); padding: 24px; border-radius: 6px; margin-top: 40px; }
.level-label { font-weight: 700; font-size: 11px; color: var(--accent-deep); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.level-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule-strong); border: 1px solid var(--rule-strong); border-radius: 4px; overflow: hidden;
}
.level-btn { padding: 16px 18px; background: var(--paper-card); text-align: left; transition: all .15s; }
.level-btn:hover { background: var(--paper-card); }
.level-btn.active { background: var(--ink); color: var(--on-dark); }
.level-btn .lnum { font-weight: 700; font-size: 10.5px; color: var(--accent); letter-spacing: .14em; margin-bottom: 4px; }
.level-btn.active .lnum { color: var(--accent-on-dark); }
.level-btn .ltitle { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.level-btn .lsub { font-weight: 400; font-size: 12.5px; opacity: .7; margin-top: 4px; line-height: 1.35; }

/* ============================ FORMS ============================ */
.form-card { background: var(--paper-card); padding: 32px; border: 1px solid var(--rule); border-radius: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 12px; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.fineprint { font-size: 12.5px; color: var(--ink-soft); }
.form-success { font-size: 12.5px; color: var(--accent-deep); }

/* ============================= FOOTER =========================== */
.site-footer { background: var(--panel-dark); color: var(--on-dark); border-top: 1px solid var(--rule-strong); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-lead { font-size: 15.5px; color: var(--on-dark-soft); line-height: 1.55; margin: 24px 0 0; max-width: 28rem; }
.footer-col p.eyebrow-sm { color: var(--on-dark-soft); }
.footer-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links button { font-weight: 500; font-size: 14.5px; color: var(--on-dark); text-align: left; }
.footer-links a:hover { color: var(--accent-on-dark); }
.footer-bottom { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-bottom p { font-size: 12.5px; color: var(--on-dark-soft); margin: 0; }

/* utility text colors */
.text-link { color: var(--accent-deep); font-weight: 600; }

/* ===================== ARTICLE CHARTS ===================== */
/* Level 1 — SimpleStats */
.viz { background: var(--paper-warm); border: 1px solid var(--rule); border-radius: 8px; padding: 32px 28px; margin: 32px 0; }
.viz-kicker { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 24px; }
.stat-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-block { background: var(--paper-card); padding: 18px 14px; border-radius: 6px; border: 1px solid var(--rule-soft); }
.stat-block .sb-label { font-size: 11px; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; margin-bottom: 8px; line-height: 1.3; }
.stat-block .sb-value { font-weight: 800; letter-spacing: -.025em; line-height: 1; margin-bottom: 4px; font-size: 32px; }
.stat-block .sb-value.big { font-size: 40px; }
.stat-block .sb-unit { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.sb-neg { color: var(--neg); } .sb-pos { color: var(--pos); } .sb-accent { color: var(--accent-deep); } .sb-ink { color: var(--ink); }
.bar-row { margin-bottom: 16px; }
.bar-row .bl { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bar-track { height: 36px; background: var(--paper-card); border: 1px solid var(--rule-soft); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; color: var(--bar-text); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: flex-end; padding: 0 14px; }
.bar-fill.neg { background: var(--neg); } .bar-fill.pos { background: var(--accent-deep); }
.viz-note { margin-top: 20px; font-size: 14.5px; color: var(--ink-mid); line-height: 1.6; font-style: italic; padding-top: 18px; border-top: 1px solid var(--rule-soft); }

/* Level 2 — MonthlyChart */
.viz-section { margin-bottom: 36px; }
.viz-section-title { font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: -.005em; }
.month-chart { display: flex; align-items: flex-end; gap: 4px; height: 220px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
.month-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.month-pair { display: flex; gap: 2px; align-items: flex-end; height: 200px; }
.month-pair .b { width: 11px; border-radius: 2px 2px 0 0; }
.month-pair .b.before { background: var(--neg); } .month-pair .b.after { background: var(--accent-deep); }
.month-mo { font-size: 10.5px; color: var(--ink-soft); font-weight: 500; margin-top: 6px; }
.legend { display: flex; gap: 24px; margin-top: 16px; font-size: 12px; color: var(--ink-mid); }
.legend .item { display: flex; align-items: center; gap: 8px; }
.legend .sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.toggle-row { display: flex; gap: 8px; margin-bottom: 20px; }
.toggle-btn { flex: 1; padding: 12px 16px; border: 1px solid var(--rule-strong); background: var(--paper-card); border-radius: 4px; text-align: left; transition: all .15s; }
.toggle-btn .tt { font-weight: 700; font-size: 14.5px; }
.toggle-btn .ts { font-size: 11px; opacity: .7; margin-top: 2px; font-weight: 500; }
.toggle-btn.active { background: var(--ink); border-color: var(--ink); color: var(--accent-on-dark); }
.be-note { margin-top: 16px; padding: 12px 16px; background: var(--paper-card); border-left: 3px solid var(--accent-deep); font-size: 13.5px; border-radius: 2px; line-height: 1.5; }

/* Level 3 — FullProjectionTable */
.viz-dark { background: var(--panel-dark); color: var(--on-dark); border-radius: 8px; padding: 32px 28px; margin: 32px 0; }
.viz-dark .viz-kicker { color: var(--on-dark-soft); }
.summary-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--rule-dark); }
.summary-item { display: flex; flex-direction: column; gap: 4px; }
.summary-item .sl { font-size: 11px; color: var(--on-dark-soft); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.summary-item .sv { font-size: 18px; font-weight: 700; color: var(--accent-on-dark); letter-spacing: -.015em; }
.viz-dark .toggle-btn { background: transparent; color: var(--on-dark-soft); border-color: var(--rule-dark); font-weight: 600; font-size: 13px; }
.viz-dark .toggle-btn.active { background: var(--accent-on-dark); color: var(--on-accent-on-dark); border-color: var(--accent-on-dark); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule-dark); border-radius: 4px; }
table.proj { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 600px; }
table.proj th { padding: 10px 12px; text-align: right; color: var(--on-dark-soft); font-weight: 600; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--rule-dark); white-space: nowrap; }
table.proj th.left, table.proj td.left { text-align: left; }
table.proj td { padding: 8px 12px; text-align: right; color: var(--on-dark); white-space: nowrap; }
table.proj td.ir { border-left: 2px solid var(--rule-dark); font-weight: 700; }
table.proj th.ir { border-left: 2px solid var(--rule-dark); }
table.proj td.neg { color: var(--neg); } table.proj td.pos { color: var(--accent-on-dark); }
table.proj tr.positive { background: rgba(var(--accent-on-dark-rgb), .06); }
table.proj tr.be { border-bottom: 2px solid var(--accent-deep) !important; }
.be-box { margin-top: 18px; padding: 12px 18px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-align: center; border-radius: 4px; }
.discl { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule-dark); font-size: 11.5px; color: var(--on-dark-soft); line-height: 1.6; }
