:root {
  --bg: #f5f6fa;
  --surface: #fff;
  --ink: #0e1424;
  --muted: #5a6378;
  --line: #e3e6ee;
  --green: #4338ca;
  --green2: #3730a3;
  --lime: #ffe16b;
  --soft: #eef0fa;
  --shadow: 0 1px 2px #0e14240a, 0 10px 28px #0e14240d;
  --sidebar: 248px;
  --radius: 18px;
  --warm: #fff8e6;
  --warmtext: #6b5320;
  --midnight: #0f1630;
  --ok: #0e9f6e;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dark {
  --bg: #0a0f1c;
  --surface: #121a2c;
  --ink: #e9edf7;
  --muted: #9aa4bc;
  --line: #232d45;
  --soft: #1a2238;
  --green: #5b5bf0;
  --green2: #a5b4fc;
  --shadow: 0 10px 30px #0006;
  --warm: #2e2817;
  --warmtext: #e9d7a6;
  --midnight: #070b16;
  color-scheme: dark;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #4653a9;
  outline-offset: 4px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(35px, 4vw, 55px);
  font-weight: 720;
}
h2 {
  font-size: 26px;
  font-weight: 650;
}
h3 {
  font-size: 20px;
  font-weight: 650;
}
p {
  color: var(--muted);
}
small,
.small {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 1000;
  background: var(--lime);
  color: #141623;
  padding: 12px 18px;
  border-radius: 10px;
}
.skip:focus {
  top: 10px;
}
.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 32px 20px 25px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.brand img {
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.17em;
  margin-top: 5px;
  color: var(--muted);
}
.nav-heading {
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 750;
  color: var(--muted);
  margin: 42px 13px 13px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  min-height: 44px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link:hover {
  background: var(--soft);
  color: var(--ink);
}
.nav-link.active {
  background: var(--green);
  color: #f2f4ff;
  box-shadow: 0 4px 14px #151a3c15;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
.side-note {
  margin-top: auto;
  padding: 22px 16px 18px;
  border-radius: 15px;
  background: var(--soft);
}
.smallcap {
  font-size: 9px;
  letter-spacing: 0.13em;
  font-weight: 700;
}
.side-note h3 {
  font-size: 21px;
  margin: 10px 0;
}
.side-note p {
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.side-note a {
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}
.side-trust {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  padding: 22px 8px 0;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 88px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 13px;
  color: #a3afa4;
}
.breadcrumb b {
  color: var(--ink);
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.region-label select {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 700;
  max-width: 145px;
  min-height: 40px;
}
.icon-btn {
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.icon-btn:hover {
  background: var(--soft);
}
.profile-badge {
  background: #dddfeb;
  color: #2b2f44;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 750;
}
.mobile-menu {
  display: none;
}
main {
  padding: 26px 40px 45px;
  max-width: 1450px;
  margin: auto;
}
.preview-banner {
  font-size: 9px;
  letter-spacing: 0.07em;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 24px;
  color: var(--green2);
  background: var(--soft);
}
.preview-banner span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.9fr);
  gap: 30px;
  padding: 24px 0 20px;
  align-items: center;
}
.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 750;
  color: #b8bde0;
  margin-bottom: 15px;
}
.muted-eyebrow {
  color: var(--muted);
}
.hero .eyebrow {
  color: var(--green2);
}
body.dark .hero .eyebrow,
body.dark .preview-banner {
  color: var(--lime);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #545b8a;
  box-shadow: 0 0 0 3px #5b629114;
}
.hero h1 {
  font-size: clamp(37px, 4.3vw, 61px);
  margin-bottom: 20px;
  letter-spacing: -0.045em;
  line-height: 1.09;
}
.hero h1 em {
  font-style: normal;
  color: #414a82;
  position: relative;
}
.hero h1 em:after {
  content: '';
  position: absolute;
  height: 5px;
  left: 0;
  right: 0;
  bottom: -6px;
  border-radius: 90%;
  background: var(--lime);
  transform: rotate(-3deg);
}
.hero-copy > p {
  font-size: 13px;
  line-height: 1.9;
  max-width: 440px;
  margin-bottom: 25px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 45px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  transition:
    transform 0.15s,
    filter 0.15s;
  text-align: center;
}
.button:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}
.primary {
  background: var(--green);
  color: #edefff;
}
.ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.light {
  background: var(--lime);
  color: #181c33;
}
.outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.hero-proof {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 23px;
  font-size: 9px;
  color: var(--muted);
}
.hero-plan {
  position: relative;
  border: 1px solid #353a58;
  background: linear-gradient(145deg, #232950, #151a38 85%);
  color: #eeeffa;
  border-radius: 23px;
  padding: 25px 25px 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-plan:after {
  content: '';
  position: absolute;
  border: 1px solid #8d96d118;
  border-radius: 50%;
  width: 170px;
  height: 170px;
  right: -75px;
  top: -80px;
  pointer-events: none;
}
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #a8afe0;
}
.plan-head > .smallcap {
  max-width: 130px;
  line-height: 1.7;
  font-size: 8px;
  letter-spacing: 0.16em;
}
.plan-time {
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--lime);
  display: flex;
  gap: 5px;
  align-items: end;
}
.plan-time small {
  font-size: 8px;
  color: #b1b7de;
  letter-spacing: 0.05em;
  padding-bottom: 3px;
}
.hero-plan h2 {
  font-size: 25px;
  line-height: 1.18;
  margin: 13px 0 17px;
}
.plan-step {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid #9ba0c323;
  padding: 12px 0;
}
.plan-step > span:first-child {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #63698d4a;
  border-radius: 7px;
  font-size: 10px;
  color: var(--lime);
}
.plan-step > span:last-child {
  margin-left: auto;
  font-size: 10px;
  color: #a5abd0;
}
.plan-step b {
  font-size: 11px;
  font-weight: 550;
  display: block;
}
.plan-step small {
  font-size: 9px;
  color: #9fa3be;
}
.hero-plan > p {
  font-size: 9px;
  margin: 4px 0 0;
  color: #9fa3be;
}
.principles {
  margin: 20px 0 40px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.principles > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.principles .icon {
  width: 33px;
  height: 33px;
  padding: 7px;
  background: var(--soft);
  border-radius: 10px;
  color: #494f73;
}
.principles b {
  font-size: 11px;
  display: block;
  font-weight: 650;
}
.principles small {
  display: block;
  font-size: 9px;
}
.section {
  margin: 36px 0;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 25px;
  margin-bottom: 7px;
}
.section-title p {
  font-size: 11px;
  margin: 0;
}
.section-title .eyebrow {
  font-size: 8px;
  margin-bottom: 9px;
}
.text-link {
  color: var(--green2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 650;
}
.text-link .icon {
  width: 15px;
  height: 15px;
}
body.dark .text-link {
  color: var(--lime);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.op-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.op-card:hover {
  border-color: #acb0c8;
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.provider-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}
.provider-logo.large {
  width: 72px;
  height: 72px;
  font-size: 27px;
  border-radius: 20px;
}
.purple {
  color: #654cb3;
  background: #eee9fb;
}
.blue {
  color: #24618e;
  background: #e5effb;
}
.orange {
  color: #a66029;
  background: #fcf0e5;
}
.green {
  color: #2c6a40;
  background: #e4f1e5;
}
.pink {
  color: #a44372;
  background: #f9e7ee;
}
.gold {
  color: #907023;
  background: #faf1d5;
}
.tag {
  font-size: 8px;
  padding: 4px 7px;
  background: var(--soft);
  border-radius: 6px;
  color: var(--muted);
  font-weight: 600;
}
.save-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
}
.save-btn .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
[data-save][aria-pressed='true'] {
  background: var(--soft);
  color: var(--green2);
}
[data-save][aria-pressed='true'] svg {
  fill: #969fdb;
}
.op-card h3 {
  font-size: 20px;
  margin-bottom: 9px;
}
.card-summary {
  font-size: 11px;
  line-height: 1.8;
  min-height: 59px;
  margin-bottom: 15px;
}
.facts {
  font-size: 10px;
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.facts span {
  color: var(--muted);
  flex-shrink: 0;
}
.facts strong {
  font-weight: 550;
  text-align: right;
  font-size: 10px;
  max-width: 65%;
}
.catch {
  background: var(--warm);
  color: var(--warmtext);
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 10px;
  line-height: 1.8;
  margin: 14px 0;
}
.catch b {
  display: inline;
}
.op-card .catch {
  flex: 1;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.compare-btn {
  border: 0;
  background: transparent;
  font-size: 10px;
  padding: 8px 0 8px 8px;
  color: var(--muted);
  white-space: nowrap;
  min-height: 36px;
}
.compare-btn[aria-pressed='true'] {
  color: #414a82;
  font-weight: 700;
}
.review-line {
  font-size: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 10px;
  line-height: 1.8;
}
.tools-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 38px 0;
}
.tool-tile {
  padding: 29px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.tile-num {
  font-size: 8px;
  letter-spacing: 0.13em;
  font-weight: 650;
}
.tool-tile h2 {
  font-size: 30px;
  line-height: 1.15;
  margin: 18px 0 14px;
}
.tool-tile p {
  font-size: 12px;
  line-height: 1.8;
  max-width: 360px;
  margin-bottom: 22px;
}
.dark-tile {
  color: #fff;
  background: #1f233e;
}
.dark-tile p {
  color: #bfc1d0;
}
.dark-tile .tile-num {
  color: #9ba4de;
}
.pale-tile {
  background: #dbddee;
  color: #1f2338;
}
.pale-tile p {
  color: #52566c;
}
.pale-tile .outline {
  border-color: #aeb2ce;
  color: #1f2338;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.guide-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s;
}
.guide-card:hover {
  transform: translateY(-2px);
}
.guide-card small {
  font-size: 8px;
  letter-spacing: 0.09em;
  display: block;
  margin: 13px 0;
  color: var(--muted);
}
.guide-card h3,
.guide-card h2 {
  font-size: 20px;
  line-height: 1.3;
}
.guide-card p {
  font-size: 11px;
  line-height: 1.8;
  flex: 1;
}
.guide-number {
  font-size: 28px;
  color: #aeb1c5;
  font-weight: 550;
  letter-spacing: -0.06em;
}
.footer {
  padding: 30px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  max-width: 1450px;
  margin: auto;
  font-size: 11px;
}
.footer b {
  font-size: 12px;
}
.footer p {
  margin: 6px 0 0;
  font-size: 10px;
}
.footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
}
.footer .footer-fine {
  flex-basis: 100%;
  font-size: 9px;
  max-width: 850px;
}
.page-intro {
  margin: 25px 0 29px;
  max-width: 760px;
}
.page-intro h1 {
  margin-bottom: 18px;
}
.page-intro p {
  font-size: 14px;
  max-width: 650px;
  line-height: 1.85;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 24px;
}
.panel p {
  line-height: 1.9;
}
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}
.filter-panel label,
.tool-form label,
.subscription-row label,
.record-form label,
.owner-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
}
input,
select,
textarea {
  max-width: 100%;
  width: 100%;
  padding: 11px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: 12px;
  min-height: 43px;
}
input[type='checkbox'] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: #272d53;
  margin: 0;
}
textarea {
  resize: vertical;
}
label.check-label {
  display: flex;
  flex-direction: row;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
}
.filter-panel .check-label {
  grid-column: span 2;
}
.filter-note {
  font-size: 10px;
  grid-column: span 2;
  margin: 0;
}
.results-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0;
}
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
  padding: 45px 25px;
  background: var(--surface);
  margin: 20px 0;
}
.empty-state h2 {
  font-size: 25px;
}
.empty-state p {
  font-size: 13px;
}
.notice {
  border: 1px solid #dccba4;
  background: var(--warm);
  color: var(--warmtext);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 12px;
}
.back-link {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0 25px;
}
.detail-header {
  display: flex;
  align-items: start;
  gap: 22px;
  margin-bottom: 26px;
  max-width: 900px;
}
.detail-header h1 {
  margin: 7px 0 15px;
}
.detail-header p {
  font-size: 14px;
  max-width: 600px;
}
.detail-header .eyebrow {
  margin: 0;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
}
.detail-layout .panel p {
  font-size: 13px;
}
.detail-layout .panel .small {
  font-size: 11px;
}
.detail-layout h2 {
  margin-top: 25px;
  font-size: 23px;
}
.detail-layout h2:first-child {
  margin-top: 0;
}
.decision-panel {
  align-self: start;
}
.decision-panel .full {
  width: 100%;
  margin: 7px 0;
}
.disclosure {
  padding: 15px;
  background: var(--soft);
  border-radius: 10px;
  font-size: 11px !important;
}
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 23px;
  align-items: start;
}
.tool-form {
  display: grid;
  gap: 18px;
}
.tool-form h2,
.tool-form p {
  margin: 0;
}
.result-panel {
  background: linear-gradient(145deg, #2a2f52, #151a3c);
  color: #e9ebfb;
  padding: 34px;
  border-radius: 22px;
}
.result-panel .eyebrow {
  font-size: 8px;
  line-height: 1.8;
}
.big-result {
  font-size: 65px;
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.15;
  margin: 28px 0 15px;
  color: var(--lime);
  overflow-wrap: anywhere;
}
.big-result span {
  display: block;
  font-size: 15px;
  letter-spacing: 0;
  font-weight: 400;
  color: #c8cce1;
  margin-top: 10px;
}
.result-panel p {
  color: #b9bdd6;
  font-size: 12px;
  line-height: 1.85;
}
.result-rule {
  height: 1px;
  background: #7e87bf33;
  margin: 28px 0;
}
.result-panel h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
}
.result-panel .small {
  font-size: 10px;
  margin: 20px 0 0;
}
.formula {
  margin-top: 5px;
}
.formula h2 {
  font-size: 22px;
}
.formula p {
  font-size: 13px;
}
.subscription-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.subscription-row .check-label {
  grid-column: span 2;
}
.subscription-row input {
  min-width: 0;
}
.subscription-row input::placeholder {
  font-size: 10px;
}
.subscription-row:last-child {
  margin-bottom: 15px;
}
#savings-form > .button {
  margin: 6px 5px 6px 0;
}
#risk-form label {
  display: block;
  font-size: 12px;
}
#risk-form textarea {
  margin: 12px 0 15px;
  line-height: 1.8;
}
#risk-results {
  margin: 20px 0;
}
.flag-result {
  padding: 14px;
  border-left: 3px solid #bd8c37;
  background: var(--warm);
  margin: 12px 0;
  border-radius: 5px;
  font-size: 12px;
}
.flag-result b {
  color: var(--warmtext);
  display: block;
}
.flag-result p {
  margin: 5px 0 0;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.comparison-table th,
.comparison-table td {
  padding: 17px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  min-width: 145px;
}
.comparison-table th {
  font-weight: 600;
  color: var(--ink);
}
.comparison-table td {
  color: var(--muted);
}
#comparison {
  overflow: auto;
}
.record-panel {
  margin-top: 25px;
}
.record-panel > p {
  font-size: 12px;
}
.record-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 16px;
}
.record-form .check-label {
  grid-column: span 3;
}
.record-form .button {
  grid-column: span 1;
}
.record-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  align-items: center;
}
.record-row small {
  display: block;
  font-size: 10px;
}
.row-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.danger {
  color: #a94a42;
}
.play-panel {
  max-width: 500px;
  margin: auto;
}
.game-bar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.number-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.number-grid button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  font-size: 30px;
  font-weight: 650;
}
.number-grid button.done {
  background: #fee16d;
  color: #202544;
  border-color: #5565cc;
}
.play-panel > .button {
  width: 100%;
}
.play-panel > .small {
  margin: 14px 0 0;
  text-align: center;
}
.reading {
  max-width: 780px;
  padding: 25px 0 30px;
}
.reading h1 {
  font-size: clamp(36px, 5vw, 57px);
  margin-bottom: 25px;
}
.reading h2 {
  font-size: 25px;
  margin-top: 33px;
  margin-bottom: 14px;
}
.reading p {
  font-size: 14px;
  line-height: 1.95;
}
.reading .lede {
  font-size: 18px;
  line-height: 1.75;
}
.reading a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.owner-form {
  display: flex;
  gap: 16px;
  align-items: end;
  max-width: 750px;
}
.owner-form label {
  flex: 1;
}
.owner-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.owner-metrics .panel {
  margin: 0;
  padding: 20px;
}
.owner-metrics strong {
  font-size: 27px;
  display: block;
}
.owner-metrics small {
  display: block;
}
.owner-table {
  font-size: 12px;
  width: 100%;
  border-collapse: collapse;
}
.owner-table td,
.owner-table th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
  background: #161b3e;
  color: #e9ecff;
  border: 1px solid #434868;
  padding: 13px 20px;
  border-radius: 11px;
  box-shadow: 0 8px 35px #0003;
  max-width: calc(100vw - 35px);
  width: max-content;
  font-size: 12px;
  z-index: 100;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 1600px) {
  .hero h1 {
    font-size: 65px;
  }
  .hero-plan {
    max-width: 440px;
    margin-left: auto;
    width: 100%;
  }
  .hero {
    grid-template-columns: 1.25fr 0.85fr;
  }
  .op-card {
    padding: 24px;
  }
  .card-summary {
    min-height: 40px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 210px;
  }
  main {
    padding: 22px 26px 35px;
  }
  .topbar,
  .footer {
    padding-left: 26px;
    padding-right: 26px;
  }
  .sidebar {
    padding: 28px 13px 20px;
  }
  .hero {
    gap: 22px;
    grid-template-columns: 1.1fr 1fr;
  }
  .hero-plan {
    padding: 22px 20px 17px;
  }
  .hero h1 {
    font-size: 45px;
  }
  .hero-actions .button {
    font-size: 10px;
    padding: 12px;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .card-grid {
    gap: 12px;
  }
  .op-card {
    padding: 16px;
  }
  .card-bottom {
    align-items: start;
    flex-direction: column;
    gap: 0;
  }
  .compare-btn {
    padding-left: 0;
  }
  .facts > div {
    flex-direction: column;
    gap: 3px;
  }
  .facts strong {
    text-align: left;
    max-width: 100%;
  }
  .hero-proof {
    gap: 7px;
  }
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
  .filter-panel .check-label,
  .filter-note {
    grid-column: span 2;
  }
  .tool-tile h2 {
    font-size: 28px;
  }
  .section-title h2 {
    font-size: 23px;
  }
  .guide-card {
    padding: 18px;
  }
  .guide-card h3 {
    font-size: 18px;
  }
}
@media (max-width: 980px) {
  :root {
    --sidebar: 0px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 236px;
    transform: translateX(-101%);
    z-index: 90;
    transition: transform 0.2s;
    box-shadow: 15px 0 50px #0002;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu {
    display: flex;
  }
  .topbar {
    height: 74px;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .hero h1 {
    font-size: 50px;
  }
  .hero-actions .button {
    font-size: 11px;
  }
  .hero-proof {
    gap: 12px;
  }
  .card-bottom {
    flex-direction: row;
    align-items: center;
  }
  .facts > div {
    flex-direction: row;
  }
  .facts strong {
    text-align: right;
    max-width: 65%;
  }
  .card-grid {
    gap: 16px;
  }
  .op-card {
    padding: 20px;
  }
}
@media (max-width: 760px) {
  main {
    padding: 18px 19px 30px;
  }
  .topbar {
    padding: 0 16px;
    gap: 8px;
  }
  .breadcrumb {
    font-size: 11px;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .breadcrumb > b {
    display: none;
  }
  .breadcrumb > span {
    display: none;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions .profile-badge {
    display: none;
  }
  .region-label select {
    max-width: 126px;
    padding: 9px 7px;
    font-size: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 23px;
    padding-top: 12px;
  }
  .hero h1 {
    font-size: 53px;
  }
  .hero-copy > p {
    max-width: 500px;
    font-size: 13px;
  }
  .hero-actions .button {
    font-size: 12px;
  }
  .hero-plan {
    padding: 25px;
    max-width: none;
  }
  .hero-plan h2 {
    font-size: 29px;
  }
  .plan-step b {
    font-size: 12px;
  }
  .plan-step small {
    font-size: 10px;
  }
  .principles {
    margin: 28px 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 0;
  }
  .principles > div {
    gap: 14px;
  }
  .principles b {
    font-size: 12px;
  }
  .principles small {
    font-size: 10px;
  }
  .section-title {
    align-items: start;
  }
  .section-title > .text-link {
    font-size: 10px;
    max-width: 90px;
    line-height: 1.7;
    text-align: right;
  }
  .section-title > .text-link .icon {
    display: none;
  }
  .section-title h2 {
    font-size: 23px;
  }
  .section-title p {
    font-size: 11px;
    max-width: 240px;
  }
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-bottom {
    flex-direction: column;
    align-items: start;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-card {
    padding: 22px;
  }
  .guide-card h3 {
    font-size: 23px;
  }
  .guide-card p {
    font-size: 13px;
  }
  .guide-number {
    font-size: 32px;
  }
  .tools-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tool-tile {
    padding: 27px;
  }
  .tool-tile h2 {
    font-size: 35px;
  }
  .tool-tile p {
    font-size: 13px;
    max-width: none;
  }
  .preview-banner {
    flex-direction: column;
    align-items: start;
    gap: 4px;
    padding: 10px 12px;
    font-size: 8px;
    margin-bottom: 15px;
  }
  .preview-banner span {
    font-size: 9px;
    line-height: 1.6;
  }
  .footer {
    padding: 24px 20px;
    gap: 15px;
  }
  .footer nav {
    gap: 14px;
    line-height: 2;
  }
  .footer .footer-fine {
    font-size: 9px;
  }
  .filter-panel {
    padding: 18px;
    gap: 15px;
  }
  .results-head {
    font-size: 10px;
    gap: 18px;
  }
  .calculator-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .result-panel {
    padding: 29px;
  }
  .panel {
    padding: 23px;
  }
  .detail-header {
    gap: 16px;
  }
  .detail-header .large {
    width: 55px;
    height: 55px;
    font-size: 20px;
    border-radius: 15px;
  }
  .detail-header h1 {
    font-size: 37px;
  }
  .detail-header p {
    font-size: 13px;
  }
  .page-intro h1 {
    font-size: 43px;
  }
  .page-intro p {
    font-size: 13px;
  }
  .record-form {
    grid-template-columns: 1fr 1fr;
  }
  .record-form .check-label {
    grid-column: span 2;
  }
  .record-form .button {
    grid-column: span 2;
  }
  .record-row {
    grid-template-columns: 1.5fr 1fr auto;
    gap: 8px;
    font-size: 10px;
  }
  .record-row > span:nth-child(3) {
    display: none;
  }
  .owner-form {
    flex-direction: column;
    align-items: stretch;
  }
  .owner-metrics {
    grid-template-columns: 1fr;
  }
  .reading h1 {
    font-size: 43px;
  }
  .reading p {
    font-size: 13px;
  }
  .toast {
    font-size: 11px;
  }
}
@media (max-width: 470px) {
  .hero h1 {
    font-size: 45px;
  }
  .hero .eyebrow {
    font-size: 7px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .op-card {
    padding: 22px;
  }
  .card-summary {
    min-height: 0;
    font-size: 12px;
  }
  .op-card h3 {
    font-size: 23px;
  }
  .facts {
    font-size: 11px;
  }
  .facts strong {
    font-size: 11px;
  }
  .catch {
    font-size: 11px;
  }
  .card-bottom {
    flex-direction: row;
    align-items: center;
  }
  .review-line {
    font-size: 9px;
  }
  .card-top .tag {
    font-size: 9px;
  }
  .text-link {
    font-size: 12px;
  }
  .compare-btn {
    font-size: 11px;
    min-height: 44px;
  }
  .provider-logo {
    width: 44px;
    height: 44px;
  }
  .save-btn {
    width: 40px;
    height: 40px;
  }
  .filter-panel {
    grid-template-columns: 1fr;
  }
  .filter-panel .check-label,
  .filter-note {
    grid-column: span 1;
  }
  .hero-proof {
    font-size: 8px;
    gap: 9px;
  }
  .hero-actions .button {
    font-size: 10px;
    padding: 12px 13px;
    gap: 8px;
  }
  .hero-actions .icon {
    width: 15px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .results-head {
    align-items: start;
  }
  .results-head > span:last-child {
    text-align: right;
    max-width: 120px;
  }
  .big-result {
    font-size: 56px;
  }
  .detail-header {
    flex-direction: column;
  }
  .reading h1,
  .page-intro h1 {
    font-size: 39px;
  }
  .game-bar {
    font-size: 11px;
  }
  .button {
    font-size: 11px;
  }
  .record-form {
    grid-template-columns: 1fr;
  }
  .record-form .check-label,
  .record-form .button {
    grid-column: span 1;
  }
  .owner-table {
    font-size: 10px;
  }
  .owner-table td,
  .owner-table th {
    padding: 9px 5px;
  }
  .profile-badge {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .preview-banner,
  .footer,
  .toast,
  .hero-actions {
    display: none !important;
  }
  .shell {
    display: block;
  }
  body {
    background: white;
    color: black;
  }
  main {
    padding: 0;
  }
  .panel,
  .result-panel {
    box-shadow: none;
    break-inside: avoid;
  }
  .result-panel {
    background: white;
    color: black;
    border: 1px solid #777;
  }
  .result-panel p,
  .big-result {
    color: black;
  }
}
/* Generated views keep local records readable without horizontal page overflow. */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 18px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  min-width: 125px;
  vertical-align: top;
}
th {
  font-weight: 700;
}
td {
  line-height: 1.6;
}
pre {
  max-width: 100%;
  overflow: auto;
  font-size: 12px;
}
.compare-btn.selected,
.save-btn.selected {
  background: var(--accent);
  color: #161b3b;
}
.number-grid button.done {
  opacity: 0.35;
}
.record-panel {
  margin-top: 32px;
}
.row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
