:root {
    --bg: #f3f5f1;
    --surface: #ffffff;
    --surface-soft: #eef2ec;
    --ink: #18231f;
    --muted: #5a6861;
    --line: #d4ddd6;
    --evergreen: #173b31;
    --evergreen-2: #245446;
    --blue: #176b91;
    --blue-soft: #e6f2f7;
    --amber: #9a5a06;
    --amber-soft: #fff4df;
    --red: #9c322d;
    --red-soft: #fff0ee;
    --green-soft: #e9f4ee;
    --focus: #0b74b5;
    --shadow: 0 12px 30px rgba(24,35,31,.08);
    --radius: 18px;
  }
  * { box-sizing: border-box; }
  html { background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
  body { margin: 0; min-height: 0; background: linear-gradient(180deg, #e8eee8 0, var(--bg) 240px); }
  html.cfg-embedded, html.cfg-embedded body { overflow-y: hidden; }
  button, select, input { font: inherit; }
  button, a, select { -webkit-tap-highlight-color: transparent; }
  button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 3px solid var(--focus); outline-offset: 3px;
  }
  a { color: #075f89; }
  .skip-link { position: fixed; left: 12px; top: 8px; z-index: 100; transform: translateY(-160%); background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
  .skip-link:focus { transform: translateY(0); }
  .page-shell { width: min(100%, 860px); margin: 0 auto; padding: 0 16px 42px; }
  .site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px 18px; }
  .eyebrow { font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); font-weight: 760; }
  .brand-row { display: flex; align-items: center; gap: 9px; margin-top: 3px; }
  .brand-mark { color: var(--evergreen-2); font-size: 1rem; }
  .brand-name { font-weight: 810; font-size: 1.25rem; letter-spacing: -.02em; }
  .app-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
  .panel-pad { padding: 26px 22px; }
  .hero-pad { padding-top: 34px; padding-bottom: 30px; }
  h1, h2, h3 { margin: 0; line-height: 1.13; letter-spacing: -.025em; }
  [data-focus-heading]:focus { outline: none; }
  h1 { font-size: clamp(1.9rem, 7vw, 3rem); max-width: 15ch; }
  h2 { font-size: clamp(1.45rem, 5vw, 2rem); }
  h3 { font-size: 1.2rem; }
  p { line-height: 1.55; }
  .lede { color: #45534c; font-size: 1.05rem; max-width: 61ch; margin: 14px 0 0; }
  .step-label { display: inline-flex; align-items: center; min-height: 30px; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-soft); color: #48574f; font-size: .8rem; font-weight: 760; }
  .choice-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .choice-card { width: 100%; min-height: 72px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 14px; padding: 16px; text-align: left; cursor: pointer; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
  .choice-card:hover { border-color: #96aaa0; background: #fbfcfb; }
  .choice-card:active { transform: translateY(1px); }
  .choice-card[aria-pressed="true"], .choice-card.is-selected { border-color: var(--evergreen-2); background: #edf5f1; box-shadow: inset 0 0 0 1px var(--evergreen-2); }
  .choice-title { display: block; font-weight: 800; font-size: 1.02rem; }
  .choice-help { display: block; color: var(--muted); margin-top: 5px; line-height: 1.35; font-size: .92rem; }
  .field { margin-top: 22px; }
  .field:first-of-type { margin-top: 24px; }
  .field-label, legend { display: block; font-weight: 800; margin-bottom: 8px; }
  .field-help { color: var(--muted); margin: 5px 0 0; font-size: .9rem; }
  select { width: 100%; min-height: 50px; border-radius: 10px; border: 1.5px solid #aebbb4; background: #fff; color: var(--ink); padding: 0 42px 0 12px; }
  fieldset { border: 0; padding: 0; margin: 22px 0 0; }
  .radio-grid { display: grid; gap: 9px; }
  .radio-row { position: relative; }
  .radio-row input { position: absolute; opacity: 0; pointer-events: none; }
  .radio-label { display: block; min-height: 58px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
  .radio-row input:checked + .radio-label { border-color: var(--evergreen-2); background: #edf5f1; box-shadow: inset 0 0 0 1px var(--evergreen-2); }
  .radio-row input:focus-visible + .radio-label { outline: 3px solid var(--focus); outline-offset: 3px; }
  .radio-main { display: block; font-weight: 760; }
  .radio-help { display: block; color: var(--muted); margin-top: 3px; font-size: .89rem; line-height: 1.35; }
  .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .primary-button, .secondary-button, .text-button, .status-choice { min-height: 46px; border-radius: 10px; cursor: pointer; font-weight: 780; }
  .primary-button { border: 1px solid var(--evergreen); background: var(--evergreen); color: #fff; padding: 0 18px; }
  .primary-button:hover { background: #0f3028; }
  .primary-button:disabled { opacity: .55; cursor: wait; }
  .secondary-button { border: 1.5px solid #9fb0a7; background: #fff; color: var(--ink); padding: 0 16px; }
  .text-button { border: 0; background: transparent; color: #245446; padding: 4px 3px; text-decoration: underline; text-underline-offset: 3px; }
  details.optional { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
  details.optional summary { cursor: pointer; font-weight: 790; min-height: 42px; display: flex; align-items: center; }
  .optional-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 6px 0 4px; }
  .loading-state { min-height: 260px; display: grid; place-content: center; justify-items: center; color: var(--muted); }
  .loading-dot { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #cdd8d1; border-top-color: var(--evergreen-2); animation: spin .8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .loading-dot { animation: none; } .choice-card { transition: none; } }
  .error-box, .notice-box, .evidence-box { border-radius: 13px; padding: 14px 15px; margin-top: 18px; }
  .error-box { background: var(--red-soft); border: 1px solid #e7b7b2; color: #70241f; }
  .notice-box { background: var(--blue-soft); border: 1px solid #b9d9e5; color: #174d66; }
  .evidence-box { background: var(--amber-soft); border: 1px solid #ecd3a7; color: #6f470f; }
  .result-header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .status-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
  .pill { display: inline-flex; min-height: 28px; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: .77rem; font-weight: 800; }
  .pill-durable { background: var(--green-soft); color: #265b41; }
  .pill-check { background: var(--amber-soft); color: #765019; }
  .pill-report { background: var(--blue-soft); color: #21536a; }
  .global-note { margin-top: 18px; color: var(--muted); font-size: .91rem; }
  .global-note summary { color: #314039; font-weight: 760; cursor: pointer; }
  .global-note ul { padding-left: 20px; }
  .results-list { display: grid; gap: 14px; margin-top: 20px; }
  .result-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
  .result-card:first-child { border-color: #8eaaa0; box-shadow: 0 7px 20px rgba(24,59,49,.07); }
  .role-label { text-transform: uppercase; letter-spacing: .075em; font-size: .73rem; font-weight: 850; color: var(--evergreen-2); }
  .eligibility { display: inline-block; margin-top: 8px; padding: 4px 8px; border-radius: 7px; font-size: .78rem; font-weight: 800; background: var(--amber-soft); color: #70490f; }
  .eligibility.is-pass { background: var(--green-soft); color: #23573e; }
  .card-name { margin-top: 7px; }
  .why-fit { margin: 10px 0 0; color: #3e4c45; }
  .detail-grid { display: grid; gap: 12px; margin-top: 16px; }
  .detail-block { border-top: 1px solid #e5eae7; padding-top: 11px; }
  .detail-title { font-size: .82rem; color: #4d5c54; font-weight: 840; margin-bottom: 5px; }
  .detail-block p { margin: 0; }
  .detail-block ul { margin: 5px 0 0; padding-left: 19px; }
  .detail-block li + li { margin-top: 4px; }
  .checks-list { margin: 7px 0 0; padding-left: 20px; }
  .checks-list li + li { margin-top: 6px; }
  .sources { margin-top: 13px; }
  .sources summary { cursor: pointer; font-weight: 780; color: #31534a; min-height: 40px; display: flex; align-items: center; }
  .source-list { margin: 2px 0 0; padding-left: 20px; }
  .source-list li + li { margin-top: 7px; }
  .source-publisher { color: var(--muted); font-size: .84rem; }
  .check-panel { margin-top: 22px; display: grid; gap: 12px; }
  .check-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
  .check-card h3 { font-size: 1.05rem; }
  .live-source-panel { margin-top: 13px; padding: 14px; border: 1.5px solid #9dc8da; border-radius: 13px; background: #eef8fc; }
  .live-source-kicker { color: #174d66; font-size: .78rem; font-weight: 880; letter-spacing: .045em; text-transform: uppercase; }
  .live-source-intro { margin: 5px 0 0; color: #234e60; font-size: .93rem; line-height: 1.45; }
  .live-source-links { display: grid; gap: 8px; margin-top: 11px; }
  .live-source-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 12px; border: 1.5px solid #78aec5; border-radius: 10px; background: #fff; color: #075f89; text-decoration: none; font-weight: 760; }
  .live-source-link:hover { background: #f7fcfe; border-color: #4f91ae; }
  .live-source-link small { display: block; margin-top: 2px; color: #526d79; font-size: .78rem; font-weight: 620; }
  .external-mark { flex: 0 0 auto; font-size: 1.05rem; font-weight: 900; }
  .live-source-note { margin: 10px 0 0; color: #405d69; font-size: .84rem; line-height: 1.4; }
  .current-check-block { margin-top: 15px; }
  .check-reason { margin: 7px 0 0; color: var(--muted); font-size: .92rem; }
  .check-options { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 12px; }
  .status-choice { width: 100%; border: 1px solid #aab7b0; background: #fff; padding: 9px 10px; text-align: left; min-height: 48px; }
  .status-choice.is-selected { border-color: var(--evergreen-2); background: #edf5f1; box-shadow: inset 0 0 0 1px var(--evergreen-2); }

  .optional-status-links { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5eae7; }
  .optional-status-copy { margin: 5px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }
  .optional-status-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .status-link-button { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 11px; border: 1px solid #9eb8c3; border-radius: 9px; background: #f8fcfd; color: #075f89; text-decoration: none; font-size: .88rem; font-weight: 760; }
  .status-link-button:hover { background: #eef8fc; border-color: #6e9fb3; }

  .terminal-card { background: #f7f4ef; border: 1px solid #d9cdbd; border-radius: 16px; padding: 20px; margin-top: 20px; }
  .terminal-card p { margin-bottom: 0; }
  .app-footer { color: #67746d; padding: 18px 6px 0; font-size: .8rem; }
  .app-footer p { margin: 5px 0; }
  .version-line { opacity: .7; }
  .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
  .is-busy .app-panel { opacity: .78; }

  .rich-status-note { margin-top: 14px; padding: 10px 12px; border: 1px solid #d8e1dc; border-radius: 10px; background: #f8faf9; color: #536159; font-size: .86rem; line-height: 1.4; }
  .rich-loading-results { margin-top: 18px; padding: 18px; border: 1px solid #d8e1dc; border-radius: 13px; background: #f8faf9; color: #34443c; }
  .rich-loading-results strong { display: block; margin-bottom: 5px; color: #244f43; }
  .rich-loading-results p { margin: 0; color: #536159; font-size: .9rem; line-height: 1.45; }
  .rich-card-section { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e5eae7; }
  .rich-card-section p { margin: 0; }
  .metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin: 7px 0 0; }
  .metric-item { min-width: 0; padding: 9px 10px; border: 1px solid #e2e8e4; border-radius: 10px; background: #fafcfb; }
  .metric-item dt { color: #59675f; font-size: .73rem; font-weight: 800; line-height: 1.25; }
  .metric-item dd { margin: 3px 0 0; color: var(--ink); font-size: .94rem; font-weight: 760; line-height: 1.3; overflow-wrap: anywhere; }
  .more-details { margin-top: 15px; border-top: 1px solid #e2e8e4; padding-top: 3px; }
  .more-details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #235246; font-weight: 800; }
  .more-details-body { padding: 2px 0 4px; }
  .expanded-section + .expanded-section, .evidence-section { margin-top: 18px; }
  .expanded-section h4, .evidence-section h4 { margin: 0 0 8px; font-size: .93rem; }
  .expanded-detail-list { margin: 0; }
  .expanded-detail-list > div { display: grid; grid-template-columns: minmax(105px,.7fr) minmax(0,1.3fr); gap: 12px; padding: 8px 0; border-top: 1px solid #edf0ee; }
  .expanded-detail-list > div:first-child { border-top: 0; }
  .expanded-detail-list dt { color: #59675f; font-size: .8rem; font-weight: 780; }
  .expanded-detail-list dd { margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
  .evidence-section { padding-top: 16px; border-top: 1px solid #dfe6e2; }
  .evidence-intro { color: var(--muted); font-size: .84rem; line-height: 1.45; margin: 0 0 10px; }
  .evidence-source { padding: 11px 0; border-top: 1px solid #e8ecea; }
  .evidence-source:first-of-type { border-top: 0; }
  .evidence-source-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
  .evidence-source p { margin: 6px 0 0; font-size: .84rem; line-height: 1.4; }
  .evidence-claims { margin-top: 6px; color: #48574f; font-size: .8rem; font-weight: 720; }
  .evidence-qualification { color: var(--muted); }
  .same-day-cue { flex: 0 0 auto; display: inline-flex; padding: 4px 7px; border-radius: 999px; background: var(--amber-soft); color: #6e4b17; font-size: .7rem; font-weight: 820; }
  .full-guide-link { margin: 16px 0 2px; }
  .full-guide-link a { font-weight: 760; }
  .comparison-panel { margin-top: 18px; border: 1px solid #ccd8d1; border-radius: 13px; background: #fbfcfb; overflow: hidden; }
  .comparison-panel > summary { min-height: 48px; display: flex; align-items: center; padding: 0 14px; cursor: pointer; color: #244f43; font-weight: 820; }
  .comparison-scroll { overflow-x: auto; border-top: 1px solid #dfe6e2; }
  .comparison-panel table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .82rem; }
  .comparison-panel th, .comparison-panel td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid #e7ece9; }
  .comparison-panel thead th { background: #f2f6f3; color: #34443c; font-size: .78rem; }
  .comparison-panel tbody th { width: 130px; color: #536159; font-weight: 800; }
  .comparison-panel td { min-width: 145px; }

  @media (min-width: 620px) {
    .page-shell { padding-left: 24px; padding-right: 24px; }
    .panel-pad { padding: 34px 38px; }
    .choice-grid.two { grid-template-columns: 1fr 1fr; }
    .radio-grid.two { grid-template-columns: 1fr 1fr; }
    .optional-grid { grid-template-columns: 1fr 1fr; }
    .check-options { grid-template-columns: 1fr 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
    .metric-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  }

  .primary-tradeoff { margin: 8px 0 0; color: #5a4634; line-height: 1.45; }
  .compact-metrics { margin-top: 14px; }
  .compact-relocation { display: flex; justify-content: space-between; gap: 14px; margin-top: 10px; padding: 9px 10px; border-radius: 10px; background: #f7f5ef; color: #5d5141; font-size: .86rem; }
  .compact-relocation span { font-weight: 760; }
  .compact-relocation strong { text-align: right; color: #40372e; }
  .detail-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
  .detail-link-button { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 11px; border: 1px solid #9eb8c3; border-radius: 9px; background: #f8fcfd; color: #075f89; text-decoration: none; font-size: .88rem; font-weight: 760; }
  .detail-link-button:hover { background: #eef8fc; border-color: #6e9fb3; }
