@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/public-static/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/public-static/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --font-sans: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --bg-canvas: #f7f8fa;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f3f6;
  --fg: #0f172a;
  --fg-muted: #475569;
  --fg-subtle: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --on-primary: #ffffff;
  --bg-hover: #e6e9ef;
  --profit: #047857;
  --profit-bg: #ecfdf5;
  --profit-border: #a7f3d0;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --danger: #be123c;
  --danger-bg: #fff1f2;
  --danger-border: #fecdd3;
  --back-bg: #eff6ff;
  --back-border: #bfdbfe;
  --back-fg: #0369a1;
  --lay-bg: #fff1f2;
  --lay-border: #fecdd3;
  --lay-fg: #be123c;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-canvas: #121519;
  --bg-surface: #171b21;
  --bg-subtle: #1c2128;
  --fg: #f1f3f5;
  --fg-muted: #9ba3b0;
  --fg-subtle: #6e7785;
  --border: #262c36;
  --border-strong: #394150;
  --primary: #f1f3f5;
  --primary-hover: #e2e8f0;
  --on-primary: #0d0f12;
  --bg-hover: #262c36;
  --profit: #34d399;
  --profit-bg: rgba(16, 185, 129, 0.12);
  --profit-border: rgba(52, 211, 153, 0.28);
  --warn: #fbbf24;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --warn-border: rgba(251, 191, 36, 0.28);
  --danger: #fb7185;
  --danger-bg: rgba(244, 63, 94, 0.12);
  --danger-border: rgba(251, 113, 133, 0.28);
  --back-bg: rgba(56, 189, 248, 0.12);
  --back-border: rgba(56, 189, 248, 0.28);
  --back-fg: #bae6fd;
  --lay-bg: rgba(251, 113, 133, 0.12);
  --lay-border: rgba(251, 113, 133, 0.28);
  --lay-fg: #fecdd3;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 12px; top: 12px; background: var(--bg-surface); padding: 8px 12px; z-index: 20; }
.wrap { width: min(72rem, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-canvas) 90%, transparent);
  backdrop-filter: blur(12px);
}
.header-row, .nav, .header-actions { display: flex; align-items: center; }
.header-row { height: 56px; gap: 12px; }
.nav { gap: 4px; }
.header-actions { gap: 8px; margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: -0.02em; }
.brand-mark { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.brand-tag { color: var(--fg-muted); font-weight: 500; font-size: 11px; background: var(--bg-subtle); padding: 2px 6px; border-radius: 4px; }
.nav-link {
  display: inline-flex;
  height: 32px;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg-muted);
}
.nav-link[aria-current="page"], .nav-link:hover { color: var(--fg); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg-surface);
  color: var(--fg-muted);
}
.theme-toggle:hover { color: var(--fg); }
.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="dark"] .icon-moon { display: none; }
html:not([data-theme="dark"]) .icon-sun { display: none; }
.btn-header {
  display: inline-flex;
  height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.btn-header:hover { background: var(--bg-subtle); }
main.wrap { padding: 36px 0 64px; }
h1 { font-size: 32px; letter-spacing: -0.03em; margin: 0 0 10px; font-weight: 600; }
h2 { font-size: 18px; margin: 28px 0 8px; font-weight: 600; }
h3 { font-size: 15px; margin: 20px 0 6px; }
.lede, .muted { color: var(--fg-muted); font-size: 15px; }
.prose p { margin: 0 0 12px; max-width: 68ch; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 20px; max-width: 68ch; }
.prose li { margin: 0 0 6px; }
.prose code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-subtle); padding: 1px 5px; border-radius: 4px; }
.grid { display: grid; gap: 12px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card, .panel, .watch, .calc, .example {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.card { text-decoration: none; display: block; }
.card:hover { border-color: var(--border-strong); }
.card h2, .card h3 { margin: 0 0 6px; font-size: 15px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.offer-filters { margin: 0 0 18px; }
.offer-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin-top: 12px;
}
.offer-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--fg-muted);
}
.offer-filter input,
.offer-filter select {
  height: 32px;
  min-width: 10rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--fg);
  padding: 0 8px;
  font: inherit;
  font-size: 13px;
}
.offer-table-wrap { margin: 0 0 8px; }
.offer-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.offer-table th,
.offer-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-transform: none;
  letter-spacing: 0;
}
.offer-table thead th {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  background: var(--bg-subtle);
}
.offer-table tbody th {
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  left: 0;
  background: var(--bg-surface);
  z-index: 1;
}
.offer-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
.offer-table tbody th a {
  color: inherit;
  text-decoration: none;
}
.offer-table tbody th a:hover { text-decoration: underline; text-underline-offset: 2px; }
.offer-table tbody tr { position: relative; }
.offer-table tbody tr:hover { background: var(--bg-subtle); }
.offer-table tbody tr:hover th { background: var(--bg-subtle); }
.offer-table tbody th a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.offer-table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.offer-table .keep { color: var(--profit); font-weight: 600; }
.offer-table.offer-facts tbody th {
  width: 11.5rem;
  color: var(--fg-muted);
  font-weight: 500;
  white-space: normal;
}
.offer-table.offer-facts tbody tr:hover { background: transparent; }
.offer-table.offer-facts .num { text-align: left; }
.assumption { margin: 10px 0 18px; max-width: 62ch; font-size: 13px; color: var(--fg-muted); }
.offer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.offer-others { margin: 0; padding: 0; list-style: none; }
.offer-others li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.offer-others li p { margin: 4px 0 0; }
.offer-meta { margin: 0; font-size: 12px; color: var(--fg-muted); }
.kicker { font-size: 11px; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 6px; }
.watch { background: var(--warn-bg); border-color: var(--warn-border); }
.watch h2 { margin-top: 0; color: var(--warn); }
.btn {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--bg-surface);
  font-size: 12px; font-weight: 500; text-decoration: none; cursor: pointer; color: var(--fg);
}
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.progress { font-size: 12px; color: var(--fg-muted); margin: 0 0 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.filters input, .filters select {
  height: 32px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-surface); color: var(--fg); padding: 0 8px; font: inherit; font-size: 13px;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--fg-muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--bg-subtle); color: var(--fg-muted); }
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--fg-muted); font-size: 12px; }
.footer-grid p { margin: 0 0 10px; max-width: 80ch; }
.age-notice { color: var(--fg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: var(--fg-muted); }
.calc label { display: block; font-size: 12px; color: var(--fg-muted); margin-bottom: 4px; }
.calc .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.calc .row input { width: 100%; height: 32px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-canvas); color: var(--fg); padding: 0 8px; font-family: var(--font-mono); }
.calc .row input:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; font-size: 13px; }
.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 2px;
  padding: 3px;
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
}
.calc-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  white-space: nowrap;
}
.calc-tab input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.calc-tab:has(input:checked) {
  background: var(--bg-surface);
  color: var(--fg);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--border);
}
.calc-tab:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 2px; }
.calc-error { min-height: 1.2em; margin: 8px 0 0; font-size: 13px; color: var(--danger); }
.calc-error:empty { margin: 0; min-height: 0; }
.calc-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.calc-metric {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
}
.calc-metric .lbl { display: block; font-size: 11px; color: var(--fg-muted); margin-bottom: 4px; }
.calc-metric .num {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calc-meaning { margin: 12px 0 0; font-size: 14px; color: var(--fg-muted); max-width: 62ch; }
.calc-cta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; }
.calc-cta a { font-weight: 600; text-underline-offset: 2px; }
.calc-cta .muted a { font-weight: 500; color: var(--fg-muted); }
.calc-follow { margin-top: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.side-back { background: var(--back-bg); border: 1px solid var(--back-border); color: var(--back-fg); border-radius: 8px; padding: 10px; }
.side-lay { background: var(--lay-bg); border: 1px solid var(--lay-border); color: var(--lay-fg); border-radius: 8px; padding: 10px; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; margin: 0 0 10px; padding-left: 32px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-subtle); font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; font-size: 14px; }
.dl dt { color: var(--fg-muted); }
.glossary dt { font-weight: 600; margin-top: 16px; scroll-margin-top: 76px; }
.glossary dd { margin: 4px 0 0; color: var(--fg-muted); }
.glossary-example { margin: 6px 0 0; font-size: 13px; color: var(--fg); }
.glossary-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin: 0 0 18px; }
.glossary-filter { display: flex; flex-direction: column; gap: 4px; }
.glossary-filter input {
  height: 32px; min-width: 16rem; max-width: 100%;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-surface); color: var(--fg); padding: 0 10px; font: inherit; font-size: 13px;
}
.az-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.az-bar a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-surface);
  text-decoration: none; font-size: 12px; font-weight: 600; color: var(--fg-muted);
}
.az-bar a:hover { color: var(--fg); border-color: var(--border-strong); }
.learn-hero { max-width: 68ch; margin: 0 0 28px; }
.learn-hero .lede { margin: 0 0 16px; }
.learn-stage { margin: 0 0 28px; }
.learn-stage h2 { margin-top: 8px; }
.learn-card .learn-tick { display: none; color: var(--profit); font-weight: 700; }
.learn-card.is-done .learn-tick { display: inline; }
.learn-card.is-done { border-color: var(--profit-border); }
.learn-progress-wrap { max-width: 36rem; margin: 0 0 22px; }
.progress-bar {
  height: 6px; border-radius: 99px; background: var(--bg-subtle);
  border: 1px solid var(--border); overflow: hidden;
}
.progress-bar > span {
  display: block; height: 100%; width: 0;
  background: var(--primary);
  transition: width 0.2s ease;
}
.takeaways {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px; margin: 0 0 22px; max-width: 68ch;
}
.takeaways h2 { margin: 0 0 8px; font-size: 15px; }
.takeaways ul { margin: 0; padding-left: 18px; }
.takeaways li { margin: 0 0 6px; }
.hedge-diagram { margin: 0 0 22px; max-width: 40rem; }
.hedge-diagram figcaption { font-size: 12px; color: var(--fg-muted); margin: 0 0 8px; }
.hedge-diagram svg { width: 100%; height: auto; display: block; }
.workings { max-width: 68ch; }
.quiz { margin: 22px 0; }
.quiz-item {
  display: grid; gap: 8px; margin: 0 0 14px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-surface);
}
.quiz-item legend { font-weight: 600; padding: 0; }
.quiz-item label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--fg-muted); }
.quiz-feedback { margin: 0; font-size: 13px; }
.quiz-feedback.is-ok { color: var(--profit); }
.quiz-feedback.is-no { color: var(--danger); }
.lesson-cta { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .progress-bar > span { transition: none; }
}
.disclaimer { font-size: 13px; color: var(--fg-muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 24px; }
@media (max-width: 960px) {
  .brand-tag { display: none; }
}
@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .dl { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; }
  .calc-metrics { grid-template-columns: 1fr; }
  .calc-tab { flex: 1 1 calc(50% - 2px); }
  .header-row { height: auto; min-height: 56px; flex-wrap: wrap; padding: 8px 0; }
  .nav { order: 3; flex: 1 1 100%; justify-content: flex-start; gap: 2px; }
  .nav-link { padding: 0 8px; font-size: 12px; }
  .header-actions { margin-left: 0; }
}

.font-mono-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wb-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.02);
}
[data-theme="dark"] .wb-panel {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.app-calc-head { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 20px; }
.app-calc-head h1 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.03em; }
.app-calc-head .lede { margin: 0; font-size: 13px; max-width: 42rem; }
.app-calc-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 2px;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-subtle);
}
.app-calc-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  white-space: nowrap;
}
.app-calc-tab input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.app-calc-tab:has(input:checked) {
  background: var(--bg-surface);
  color: var(--fg);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--border);
}
.app-calc-tab:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 2px; }
.app-calc-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 1024px) {
  .app-calc-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.app-calc-inputs { padding: 20px; }
.stepper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stepper label { display: block; font-size: 12px; font-weight: 500; color: var(--fg-muted); margin: 0 0 4px; }
.stepper-row {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
}
.stepper-row:focus-within { border-color: var(--fg); }
.stepper-row input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.stepper-row input:focus { outline: none; }
.stepper-row input::-webkit-outer-spin-button,
.stepper-row input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.stepper-row input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.stepper-affix { color: var(--fg-subtle); font-size: 12px; padding: 0 2px; }
.stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.stepper-btn:hover { background: var(--bg-subtle); color: var(--fg); }
.comm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 16px 0 14px;
  font-size: 12px;
  color: var(--fg-muted);
}
.comm-chip {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.comm-chip.is-on {
  background: var(--primary);
  color: var(--on-primary);
  border-color: transparent;
}
.app-calc-submit { margin-top: 4px; }
.app-calc-right { display: grid; gap: 14px; }
.app-calc-result { overflow: hidden; }
.app-calc-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.app-calc-kicker { font-size: 12px; font-weight: 500; color: var(--fg-muted); }
.app-calc-lay {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.app-calc-liability { margin-top: 4px; font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.app-calc-liability strong { color: var(--fg); font-weight: 600; }
.copy-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.copy-pill:hover { background: var(--primary-hover); }
.app-calc-table { width: 100%; margin: 0; border: 0; border-radius: 0; }
.app-calc-table th,
.app-calc-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}
.app-calc-table thead th {
  background: var(--bg-subtle);
  color: var(--fg-muted);
  font-weight: 500;
}
.app-calc-table thead th:not(:first-child),
.app-calc-table td { text-align: right; }
.app-calc-table tbody th { font-weight: 500; color: var(--fg); background: transparent; }
.app-calc-table tbody tr:last-child th,
.app-calc-table tbody tr:last-child td { border-bottom: 0; }
.app-calc-table .net { font-weight: 600; }
.app-calc-table .net.is-profit { color: var(--profit); }
.app-calc-worst {
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 12px;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}
.app-calc .calc-meaning { margin: 0; font-size: 13px; }
.app-calc .calc-cta { margin: 0; padding-top: 0; border-top: 0; }
@media (max-width: 640px) {
  .stepper-grid { grid-template-columns: 1fr; }
  .app-calc-lay { font-size: 24px; }
  .app-calc-result-head { flex-direction: column; }
}
