:root {
  --graff: #075844;
  --graff-deep: #053e32;
  --graff-soft: #edf5f1;
  --champagne: #c6a15e;
  --champagne-deep: #a57f3e;
  --page: #f4f7f5;
  --surface: #fff;
  --ink: #17211e;
  --muted: #72807a;
  --quiet: #97a29d;
  --line: #dfe8e3;
  --line-strong: #cbd8d1;
  --danger: #9a443f;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(5, 62, 50, .08);
  --topbar: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { color: inherit; font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.number, .hero-metric strong, .support-metrics strong, input {
  font-variant-numeric: tabular-nums lining-nums;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  min-height: var(--topbar);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 34px;
  color: #fff;
  background: var(--graff-deep);
  border-bottom: 1px solid rgba(198, 161, 94, .55);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 22px;
  font-weight: 720;
}
.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  grid-template: repeat(2, 1fr) / repeat(2, 1fr);
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--champagne);
  transform: rotate(45deg);
}
.brand-mark i { border: 1px solid rgba(255,255,255,.85); }
.topbar-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 34px;
  margin-left: 52px;
}
.topbar-nav button, .nav-current {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: center;
  padding: 0;
  color: rgba(255,255,255,.72);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 620;
}
.nav-current { display: none; color: #fff; }
body[data-route="calculator"] .nav-current { display: inline-flex; }
body[data-route="calculator"] .topbar-nav button { color: rgba(255,255,255,.55); }
.nav-current::after,
body[data-route="home"] .topbar-nav button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--champagne);
  content: "";
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.status-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: rgba(255,255,255,.82);
  background: transparent;
  border: 0;
  font-size: 13px;
}
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--graff);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
}
.button:hover { border-color: var(--graff); background: var(--graff-soft); }
.button-primary { color: #fff; background: var(--graff); border-color: var(--graff); }
.button-primary:hover { background: var(--graff-deep); }
.button-gold { min-width: 126px; color: #f4d99f; background: transparent; border-color: var(--champagne); }
.button-gold:hover { color: #fff; background: rgba(198,161,94,.12); border-color: #e1bd79; }
.calculator-only { display: none; }
body[data-route="calculator"] .calculator-only { display: inline-flex; }

.home-view {
  width: min(1380px, calc(100% - 80px));
  margin: 0 auto;
  padding: 62px 0 70px;
}
.home-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}
.home-intro h1 {
  max-width: 760px;
  margin: 0;
  color: var(--graff-deep);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.2;
}
.gold-rule { display: block; width: 54px; height: 2px; margin-top: 22px; background: var(--champagne); }
.data-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  white-space: nowrap;
}
.data-status strong { color: var(--ink); font-weight: 620; }
.data-status i { width: 1px; height: 18px; margin: 0 3px; background: var(--line-strong); }
.data-status b { color: var(--champagne-deep); font-weight: 680; }
.data-status.status-valid b { color: var(--graff); }
.data-status.status-valid > i:first-child,
.data-status.status-soon > i:first-child,
.data-status.status-expired > i:first-child {
  width: 7px;
  height: 7px;
  margin: 0;
  border-radius: 50%;
  background: currentColor;
}
.primary-tool {
  display: grid;
  width: 100%;
  min-height: 226px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 42px;
  padding: 42px 58px;
  color: #fff;
  text-align: left;
  background: var(--graff-deep);
  border: 1px solid var(--champagne);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.primary-tool:hover { background: var(--graff); }
.primary-tool-icon {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  color: var(--champagne);
  border: 1px solid rgba(198,161,94,.55);
  border-radius: 50%;
}
.primary-tool-icon svg { width: 48px; height: 48px; stroke-width: 1.4; }
.primary-tool-copy { display: flex; flex-direction: column; gap: 12px; }
.primary-tool-copy strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 38px;
  font-weight: 600;
}
.primary-tool-copy small { color: rgba(255,255,255,.72); font-size: 17px; }
.primary-tool-cta {
  display: inline-flex;
  min-width: 154px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--graff-deep);
  background: #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 680;
}
.tool-directory, .recent-section { margin-top: 38px; }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.section-heading h2 { margin: 0; font-size: 19px; }
.section-heading span { color: var(--quiet); font-size: 12px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-item {
  display: grid;
  min-height: 124px;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
  color: var(--graff-deep);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tool-item:hover { border-color: rgba(7,88,68,.45); box-shadow: 0 10px 28px rgba(5,62,50,.06); }
.tool-item > svg:first-child { width: 34px; height: 34px; }
.tool-item span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.tool-item strong { color: var(--ink); font-size: 16px; }
.tool-item small { color: var(--quiet); font-size: 11px; }
.tool-arrow { width: 17px; height: 17px; color: var(--quiet); }
.recent-row {
  display: grid;
  width: 100%;
  min-height: 82px;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.recent-row:hover { border-color: var(--line-strong); }
.recent-icon { display: grid; width: 40px; height: 40px; place-items: center; color: var(--graff); background: var(--graff-soft); border-radius: 50%; }
.recent-row strong { font-size: 14px; }
.recent-row > span:nth-of-type(2) { color: var(--quiet); font-size: 12px; }
.recent-arrow { color: var(--quiet); }

.calculator-view {
  display: grid;
  min-height: calc(100vh - var(--topbar));
  grid-template-columns: 354px minmax(0, 1fr);
}
.input-rail {
  position: relative;
  z-index: 2;
  padding: 30px 26px 40px;
  background: #fbfcfb;
  border-right: 1px solid var(--line);
}
.rail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
}
.rail-title > div:first-child { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.rail-title span { font-weight: 700; }
.rail-title strong { overflow: hidden; color: var(--quiet); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.rail-title .data-status { margin-top: 2px; }
.form-fields { border-top: 1px solid var(--line); }
.form-field {
  display: block;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.form-field > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  color: #4d5954;
  font-size: 12px;
  font-weight: 680;
}
.form-field > span:first-child svg { width: 17px; height: 17px; color: var(--graff); }
.form-field select, .money-control {
  width: 100%;
  height: 44px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.form-field select { padding: 0 12px; appearance: auto; }
.select-with-unit { position: relative; display: block; }
.select-with-unit select { padding-right: 48px; }
.select-with-unit i { position: absolute; top: 50%; right: 34px; color: var(--quiet); font-size: 11px; font-style: normal; transform: translateY(-50%); pointer-events: none; }
.money-control { display: flex; align-items: center; }
.money-control input { width: 100%; height: 100%; padding: 0 8px 0 12px; text-align: right; background: transparent; border: 0; outline: 0; font-weight: 680; }
.money-control i { padding-right: 12px; color: var(--quiet); font-size: 11px; font-style: normal; }
.toggle-field { display: flex; min-height: 78px; align-items: center; justify-content: space-between; }
.toggle-field > span:first-child { margin: 0; flex-wrap: wrap; }
.toggle-field small { width: 100%; padding-left: 26px; color: var(--quiet); font-weight: 500; }
.switch { position: relative; display: inline-flex; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: absolute; inset: 0; background: #cbd4cf; border-radius: 99px; transition: background .18s; }
.switch i::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2); content: ""; transition: transform .18s; }
.switch input:checked + i { background: var(--graff); }
.switch input:checked + i::after { transform: translateX(18px); }
.matched-tier { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 24px; padding: 16px; background: var(--graff-soft); border-left: 2px solid var(--champagne); }
.matched-tier > svg { color: var(--graff); }
.matched-tier > span:nth-child(2) { display: flex; flex-direction: column; }
.matched-tier small { color: var(--muted); font-size: 10px; }
.matched-tier strong { color: var(--graff-deep); font-size: 13px; }
.matched-tier > span:last-child { color: var(--quiet); font-size: 10px; }
.rail-disclaimer { margin: 20px 5px 0; color: var(--quiet); font-size: 10px; line-height: 1.7; }
.mobile-tool-head { display: none; }
.results-area { min-width: 0; padding: 42px 38px 60px; background: #fff; }
.result-panel {
  position: relative;
  display: grid;
  min-height: 210px;
  grid-template-columns: 34% 1fr;
  color: #fff;
  background: var(--graff-deep);
  border: 1px solid var(--champagne);
  border-radius: var(--radius);
  overflow: hidden;
}
.result-panel::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--champagne); content: ""; }
.hero-metric { display: flex; align-items: center; justify-content: center; flex-direction: column; border-right: 1px solid rgba(198,161,94,.5); }
.hero-metric span, .support-metrics span { color: rgba(255,255,255,.78); font-size: 13px; }
.hero-metric strong {
  max-width: 100%;
  margin: 8px 0 0;
  color: #e3bd72;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.05;
}
.hero-metric small, .support-metrics small { color: rgba(255,255,255,.62); font-size: 11px; }
.support-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.support-metrics > div { display: flex; min-width: 0; align-items: center; justify-content: center; flex-direction: column; padding: 24px 18px; text-align: center; }
.support-metrics > div + div { border-left: 1px solid rgba(198,161,94,.35); }
.support-metrics strong { max-width: 100%; margin: 13px 0 4px; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 3vw, 40px); font-weight: 500; text-overflow: ellipsis; }
.support-metrics > div:last-child strong { color: #e3bd72; }
.result-section { padding-top: 36px; }
.result-section + .result-section { margin-top: 12px; border-top: 1px solid var(--line); }
.result-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.result-section-head h2 { margin: 0; font-size: 20px; }
.result-section-head p { margin: 5px 0 0; color: var(--quiet); font-size: 11px; }
.result-section-head > strong { color: var(--champagne-deep); font-size: 15px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 14px; color: var(--muted); background: var(--page); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 650; text-align: left; }
td { padding: 15px 14px; border-bottom: 1px solid var(--line); }
td strong { display: block; font-size: 13px; }
td span { display: block; margin-top: 3px; color: var(--quiet); font-size: 10px; }
th:not(:first-child), td.number { text-align: right; white-space: nowrap; }
td.accent { color: var(--champagne-deep); font-weight: 700; }
.muted { color: var(--muted); }
.tier-numbers { display: flex; gap: 28px; color: var(--muted); font-size: 11px; }
.tier-numbers span { display: flex; flex-direction: column; align-items: flex-end; }
.tier-numbers strong { color: var(--ink); font-size: 13px; }
.tier-numbers b { color: var(--champagne-deep); font-size: 13px; }
.progress-track { height: 8px; background: var(--graff-soft); border-radius: 99px; overflow: hidden; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--graff); border-radius: inherit; transition: width .25s ease; }
.comparison-row { cursor: pointer; }
.comparison-row:hover, .comparison-row.is-selected { background: #f7faf8; }
.comparison-row.is-selected td:first-child { box-shadow: inset 3px 0 var(--champagne); }
.comparison-table { min-width: 820px; }
.data-notes { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 38px; padding-top: 20px; color: var(--quiet); border-top: 1px solid var(--line); font-size: 10px; }
.data-notes strong { color: var(--muted); }
.data-notes p { width: 100%; margin: 0; }
.empty-result { min-height: 420px; place-content: center; text-align: center; }
.empty-result:not([hidden]) { display: grid; }
.empty-result svg { width: 44px; height: 44px; margin: auto; color: var(--graff); }
.empty-result h2 { margin: 18px 0 4px; }
.empty-result p { margin: 0; color: var(--muted); }
.mobile-action { display: none; }

.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(5, 28, 22, .62); }
.modal { width: min(100%, 720px); max-height: calc(100vh - 48px); background: #fff; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.25); overflow: hidden; }
.modal-small { width: min(100%, 440px); }
.modal-medium { width: min(100%, 760px); }
.modal-wide { width: min(100%, 1320px); }
.modal-head, .modal-actions, .modal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 22px; }
.modal-body p { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.modal-actions { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.modal-toolbar { justify-content: flex-start; }
.icon-button { display: inline-grid; width: 40px; height: 40px; place-items: center; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: var(--radius); font-size: 24px; }
.icon-button:hover { color: var(--ink); background: var(--page); }
.modal-input, textarea { width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); outline: 0; }
textarea { resize: vertical; }
.admin-scroll { max-height: calc(100vh - 250px); overflow: auto; }
.admin-table { min-width: 1680px; }
.admin-table th { position: sticky; top: 0; z-index: 1; }
.admin-table td { padding: 7px; }
.admin-table input, .admin-table select { width: 110px; height: 34px; padding: 0 7px; border: 1px solid var(--line); border-radius: 4px; }
.admin-table td:nth-child(2) input, .admin-table td:nth-child(13) input { width: 180px; }
.preview-image { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.toast { position: fixed; right: 50%; bottom: 34px; z-index: 200; padding: 12px 18px; color: #fff; background: var(--graff-deep); border: 1px solid var(--champagne); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; transform: translate(50%, 12px); transition: opacity .18s, transform .18s; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }
.export-stage { position: fixed; left: -10000px; top: 0; }
.export-sheet { width: 1000px; padding: 54px; color: var(--ink); background: #fff; font-size: 14px; }
.export-sheet header { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 22px; border-bottom: 2px solid var(--graff); }
.export-sheet header span { color: var(--graff); font-size: 20px; font-weight: 700; }
.export-sheet header h2 { margin: 0; font-size: 26px; }
.export-context, .export-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); }
.export-context div, .export-metrics div { display: flex; min-height: 82px; justify-content: center; flex-direction: column; gap: 6px; padding: 14px; background: #fff; }
.export-sheet span { color: var(--muted); font-size: 11px; }
.export-metrics strong { font-family: Georgia, serif; font-size: 28px; }
.export-metrics .accent strong { color: var(--champagne-deep); }
.export-sheet h3 { margin: 30px 0 12px; }
.export-sheet p { color: var(--muted); font-size: 11px; }

@media (max-width: 1080px) {
  .home-view { width: min(100% - 48px, 1100px); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .calculator-view { grid-template-columns: 310px minmax(0, 1fr); }
  .result-panel { grid-template-columns: 1fr; }
  .hero-metric { min-height: 170px; border-right: 0; border-bottom: 1px solid rgba(198,161,94,.45); }
  .support-metrics { min-height: 140px; }
}

@media (max-width: 767px) {
  :root { --topbar: 62px; }
  body { background: #fff; font-size: 14px; }
  .topbar { padding: 0 18px; grid-template-columns: 1fr auto; }
  .brand { font-size: 18px; }
  .brand-mark { width: 24px; height: 24px; }
  .topbar-nav, .status-action span, .button-gold { display: none !important; }
  .status-action { padding: 0; }
  .home-view { width: auto; padding: 38px 20px 56px; }
  .home-intro { display: block; margin-bottom: 26px; }
  .home-intro h1 { font-size: 34px; line-height: 1.3; }
  .gold-rule { margin-top: 16px; }
  .home-intro .data-status { margin-top: 22px; padding: 0; }
  .primary-tool { min-height: 210px; grid-template-columns: auto 1fr; gap: 20px; padding: 30px 24px; }
  .primary-tool-icon { width: 70px; height: 70px; }
  .primary-tool-icon svg { width: 32px; height: 32px; }
  .primary-tool-copy strong { font-size: 27px; }
  .primary-tool-copy small { font-size: 13px; }
  .primary-tool-cta { grid-column: 1 / -1; min-height: 48px; width: 100%; }
  .tool-directory, .recent-section { margin-top: 34px; }
  .section-heading span { display: none; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tool-item { min-height: 130px; grid-template-columns: 1fr; align-content: center; gap: 10px; padding: 18px; }
  .tool-item > svg:first-child { width: 28px; height: 28px; }
  .tool-arrow { display: none; }
  .tool-item strong { font-size: 14px; }
  .recent-row { min-height: 74px; grid-template-columns: auto 1fr auto; padding: 0 16px; }
  .recent-row > span:nth-of-type(2) { display: none; }

  .calculator-view { display: block; min-height: 100vh; padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  body[data-route="calculator"] > .topbar { display: none; }
  .input-rail { padding: 0 20px 22px; background: #fff; border: 0; }
  .mobile-tool-head { display: grid; height: 68px; grid-template-columns: 40px 1fr 40px; align-items: center; border-bottom: 1px solid var(--line); }
  .mobile-tool-head h1 { margin: 0; text-align: center; font-size: 18px; }
  .rail-title { justify-content: flex-end; margin: 14px 0 2px; }
  .rail-title > div:first-child { display: none; }
  .form-fields { border-top: 0; }
  .form-field { display: grid; min-height: 62px; grid-template-columns: minmax(110px, 35%) 1fr; align-items: center; gap: 14px; padding: 9px 0; }
  .form-field > span:first-child { margin: 0; font-size: 13px; }
  .form-field select, .money-control { height: 44px; border-color: transparent; background: transparent; }
  .form-field select { padding-left: 4px; text-align: right; text-align-last: right; }
  .money-control input { padding-left: 0; font-size: 16px; }
  .toggle-field { display: flex; min-height: 66px; }
  .toggle-field small { padding-left: 26px; font-size: 10px; }
  .matched-tier { display: none; }
  .rail-disclaimer { display: none; }
  .results-area { padding: 24px 20px 48px; }
  .result-panel { display: block; min-height: auto; background: transparent; border: 0; overflow: visible; }
  .result-panel::after { display: none; }
  .hero-metric { min-height: 174px; align-items: flex-start; padding: 27px 28px; background: var(--graff-deep); border: 1px solid var(--champagne); border-radius: var(--radius); }
  .hero-metric span { font-size: 14px; }
  .hero-metric strong { margin-top: 9px; font-size: clamp(48px, 16vw, 64px); }
  .hero-metric small { margin-top: 3px; color: rgba(255,255,255,.72); }
  .support-metrics { display: grid; min-height: auto; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
  .support-metrics > div { min-height: 122px; align-items: flex-start; justify-content: center; padding: 19px; color: var(--graff-deep); text-align: left; background: var(--graff-soft); border: 1px solid #e3ece7; border-radius: var(--radius); }
  .support-metrics > div + div { border-left: 1px solid #e3ece7; }
  .support-metrics > div:last-child { grid-column: 1 / -1; min-height: 104px; }
  .support-metrics span { color: var(--muted); font-size: 11px; }
  .support-metrics strong { margin: 10px 0 2px; color: var(--graff-deep); font-size: clamp(24px, 7vw, 32px); }
  .support-metrics > div:last-child strong { color: var(--champagne-deep); }
  .support-metrics small { color: var(--quiet); }
  .result-section { padding-top: 34px; }
  .result-section + .result-section { margin-top: 18px; }
  .breakdown-section { margin-top: 30px !important; padding-top: 0; border-top: 0 !important; }
  .result-section-head { align-items: flex-start; margin-bottom: 14px; }
  .result-section-head h2 { position: relative; padding-left: 12px; font-size: 20px; }
  .result-section-head h2::before { position: absolute; top: 2px; bottom: 2px; left: 0; width: 3px; background: var(--champagne); border-radius: 2px; content: ""; }
  .result-section-head p { display: none; }
  .result-section-head > strong { font-size: 12px; }
  .breakdown-table thead { display: none; }
  .breakdown-table tr { display: grid; min-height: 74px; grid-template-columns: 1fr auto; align-items: center; }
  .breakdown-table td { padding: 14px 8px; }
  .breakdown-table td:first-child { padding-left: 0; }
  .breakdown-table td:nth-child(2) { padding-right: 0; }
  .breakdown-table td:nth-child(3) { display: none; }
  .tier-section .result-section-head { display: block; }
  .tier-numbers { justify-content: space-between; margin-top: 20px; }
  .tier-numbers span { align-items: flex-start; }
  .tier-numbers span:last-child { align-items: flex-end; }
  .comparison-section { padding-bottom: 10px; }
  .comparison-section .result-section-head > span { color: var(--quiet); font-size: 10px; }
  .data-notes { display: block; margin-top: 34px; line-height: 1.8; }
  .data-notes span { display: block; }
  .mobile-action {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 10px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .mobile-action .button { min-height: 50px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 88vh; border-radius: var(--radius) var(--radius) 0 0; }
  .modal-actions { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

@media (max-width: 359px) {
  .home-view { padding-right: 16px; padding-left: 16px; }
  .tool-grid { grid-template-columns: 1fr; }
  .primary-tool { grid-template-columns: 1fr; }
  .primary-tool-icon { width: 60px; height: 60px; }
  .primary-tool-cta { grid-column: auto; }
  .input-rail, .results-area { padding-right: 16px; padding-left: 16px; }
  .form-field { grid-template-columns: 102px minmax(0, 1fr); }
  .support-metrics { grid-template-columns: 1fr; }
  .support-metrics > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
