
      @import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Source+Sans+3:wght@400;500;600;700&display=swap');

      :root {
        color-scheme: light;
        --bg: #f3f3f0;
        --panel: #ffffff;
        --ink: #151717;
        --muted: #5a5f5d;
        --soft: #e7e7e2;
        --line: #c8cac5;
        --field: #fafaf8;
        --accent: #9e1b20;
        --accent-dark: #771217;
        --accent-soft: #f2dfe0;
        --warn: #7b4e00;
        --warn-bg: #f6ead2;
        --shadow: 0 18px 48px rgba(27, 29, 28, .09);
        --focus: #126c9b;
      }

      

      * { box-sizing: border-box; }
      html { scroll-behavior: smooth; }
      body {
        margin: 0;
        min-width: 320px;
        background: var(--bg);
        color: var(--ink);
        font-family: "Source Sans 3", sans-serif;
        font-size: 17px;
        line-height: 1.48;
        -webkit-font-smoothing: antialiased;
      }
      button, input, select { font: inherit; }
      button, a, input, select { -webkit-tap-highlight-color: transparent; }
      :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

      .page {
        width: min(1120px, calc(100% - 40px));
        margin: 0 auto;
        padding: 56px 0 44px;
      }

      .intro {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 36px;
        align-items: end;
        padding: 0 0 28px;
        border-bottom: 1px solid var(--line);
      }
      h1 {
        max-width: 720px;
        margin: 0;
        font-family: "Barlow Condensed", sans-serif;
        font-size: clamp(3.1rem, 7vw, 5.8rem);
        line-height: .9;
        letter-spacing: -.035em;
        text-transform: uppercase;
      }
      .intro-copy {
        max-width: 600px;
        margin: 18px 0 0;
        color: var(--muted);
        font-size: 1.08rem;
      }
      .dataset-stamp {
        display: grid;
        min-width: 210px;
        padding: 12px 0 2px 24px;
        border-left: 3px solid var(--accent);
        font-family: "IBM Plex Mono", monospace;
      }
      .dataset-stamp strong { font-size: 1.55rem; line-height: 1.15; }
      .dataset-stamp span { color: var(--muted); font-size: .75rem; }

      .workspace {
        display: grid;
        grid-template-columns: minmax(320px, .86fr) minmax(390px, 1.14fr);
        gap: 28px;
        align-items: start;
        margin-top: 30px;
      }
      .card {
        background: var(--panel);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
      }
      .inputs { padding: 28px; }
      .section-label {
        margin: 0 0 20px;
        color: var(--muted);
        font-family: "IBM Plex Mono", monospace;
        font-size: .78rem;
      }
      .field-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px 14px;
      }
      .field { min-width: 0; }
      .field.full { grid-column: 1 / -1; }
      label, legend {
        display: block;
        margin: 0 0 7px;
        font-weight: 650;
        font-size: .94rem;
      }
      select, input[type="number"] {
        width: 100%;
        height: 48px;
        border: 1px solid var(--line);
        border-radius: 0;
        background: var(--field);
        color: var(--ink);
        padding: 0 12px;
      }
      select { cursor: pointer; }
      .mileage-wrap { position: relative; }
      .mileage-wrap input { padding-right: 54px; font-family: "IBM Plex Mono", monospace; font-weight: 600; }
      .mileage-wrap span {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        font-size: .8rem;
        pointer-events: none;
      }
      fieldset { margin: 0; padding: 0; border: 0; }
      .toggle-row { display: grid; grid-template-columns: 1fr 1fr; }
      .toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
      .toggle-row label {
        margin: 0;
        padding: 11px 12px;
        border: 1px solid var(--line);
        background: var(--field);
        text-align: center;
        cursor: pointer;
      }
      .toggle-row label + input + label { border-left: 0; }
      .toggle-row input:checked + label {
        background: var(--ink);
        color: var(--panel);
        border-color: var(--ink);
      }
      .calc-btn {
        display: block;
        width: 100%;
        margin-top: 22px;
        background: var(--accent);
        color: #fff;
        border: 0;
        border-radius: 8px;
        padding: 15px 18px;
        font-size: 17px;
        font-weight: 700;
        cursor: pointer;
      }
      .calc-btn:hover { background: var(--accent-dark); }
      .calc-btn:active { transform: translateY(1px); }
      .idle-panel { text-align: center; padding: 64px 20px; color: var(--muted); }
      .idle-panel p { font-size: 1.05rem; margin: 0; }
      .idle-panel strong { color: var(--ink); }
      .toggle-row input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
      .hint { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }

      .result { min-height: 560px; overflow: hidden; }
      .result-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 61px;
        padding: 15px 24px;
        background: var(--ink);
        color: var(--panel);
      }
      .result-head strong { font-family: "IBM Plex Mono", monospace; font-size: .85rem; letter-spacing: .02em; }
      .status {
        padding: 4px 8px;
        background: var(--accent);
        color: #fff;
        font-family: "IBM Plex Mono", monospace;
        font-size: .69rem;
        font-weight: 600;
        line-height: 1.35;
        text-align: right;
      }
      .result-body { padding: 28px 30px 30px; }
      .estimate + .estimate { margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--line); }
      .insufficient-panel {
        padding: 4px 0 22px;
        border-bottom: 1px solid var(--line);
      }
      .insufficient-panel h2 {
        max-width: 620px;
        margin: 0;
        font-family: "Barlow Condensed", sans-serif;
        font-size: clamp(2rem, 4vw, 3.15rem);
        line-height: 1.02;
        letter-spacing: -.018em;
        text-transform: uppercase;
      }
      .insufficient-panel p {
        margin: 14px 0 0;
        color: var(--muted);
        font-family: "IBM Plex Mono", monospace;
        font-size: .82rem;
      }
      .thin-sales { margin-top: 20px; }
      .thin-prices {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 30px;
        margin-top: 9px;
      }
      .thin-price {
        font-family: "Barlow Condensed", sans-serif;
        font-size: 2.15rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: -.02em;
        font-variant-numeric: tabular-nums;
      }
      .estimate-label {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        color: var(--muted);
        font-weight: 650;
        font-size: .9rem;
      }
      .estimate-label span:last-child { font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: .73rem; }
      .price {
        margin-top: 5px;
        font-family: "Barlow Condensed", sans-serif;
        font-size: clamp(2.7rem, 6vw, 4.5rem);
        font-weight: 700;
        line-height: 1;
        letter-spacing: -.025em;
        font-variant-numeric: tabular-nums;
      }
      .price.empty { font-size: clamp(2.1rem, 4.6vw, 3.15rem); }
      .median-highlight {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 18px;
        margin-top: 18px;
        padding: 14px 16px;
        background: var(--accent-soft);
      }
      .median-copy { color: var(--muted); font-size: .88rem; font-weight: 650; }
      .median-copy span { display: block; margin-top: 2px; font-family: "IBM Plex Mono", monospace; font-size: .7rem; font-weight: 400; }
      .median-price {
        flex: 0 0 auto;
        color: var(--accent-dark);
        font-family: "Barlow Condensed", sans-serif;
        font-size: 2.35rem;
        font-weight: 700;
        line-height: .9;
        font-variant-numeric: tabular-nums;
      }
      .calc-line {
        margin: 24px 0 0;
        padding: 13px 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        color: var(--muted);
        font-family: "IBM Plex Mono", monospace;
        font-size: .76rem;
        line-height: 1.7;
      }
      .notices { display: grid; gap: 8px; margin-top: 18px; }
      .notice {
        margin: 0;
        padding: 10px 12px;
        background: var(--soft);
        color: var(--ink);
        font-size: .88rem;
      }
      .notice.warning { background: var(--warn-bg); color: var(--warn); }
      .notice.hardtop { background: var(--accent-soft); }
      select:disabled { opacity: 1; color: var(--muted); cursor: default; }

      .lower {
        display: grid;
        grid-template-columns: 1.15fr .85fr;
        gap: 36px;
        margin-top: 34px;
        padding-top: 32px;
        border-top: 1px solid var(--line);
      }
      .lower h2 {
        margin: 0 0 10px;
        font-family: "Barlow Condensed", sans-serif;
        font-size: 1.8rem;
        text-transform: uppercase;
      }
      .method p, .method li { color: var(--muted); font-size: .94rem; }
      .method p { margin: 0; }
      .method ul { margin: 14px 0 0; padding-left: 1.2rem; }
      .method li + li { margin-top: 6px; }
      .cta {
        align-self: start;
        padding: 23px 24px 25px;
        background: var(--ink);
        color: var(--panel);
      }
      .cta p { margin: 0 0 16px; color: color-mix(in srgb, var(--panel) 73%, transparent); font-size: .92rem; }
      .cta .primary-cta {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        width: 100%;
        min-height: 52px;
        padding: 12px 15px;
        background: var(--accent);
        color: #fff;
        text-decoration: none;
        font-weight: 700;
      }
      .cta .primary-cta:hover { background: var(--accent-dark); }
      .cta .primary-cta span:last-child { font-size: 1.35rem; }
      .guide-link {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        min-height: 58px;
        margin-top: 12px;
        padding: 10px 14px;
        border: 1px solid color-mix(in srgb, var(--panel) 72%, transparent);
        color: var(--panel);
        text-decoration: none;
      }
      .guide-link strong {
        display: block;
        font-size: .92rem;
        font-weight: 700;
      }
      .guide-link small {
        display: block;
        margin-top: 1px;
        color: color-mix(in srgb, var(--panel) 67%, transparent);
        font-size: .76rem;
      }
      .guide-link:hover {
        background: color-mix(in srgb, var(--panel) 10%, transparent);
        border-color: var(--panel);
      }
      .guide-link:hover small { color: color-mix(in srgb, var(--panel) 82%, transparent); }
      footer {
        margin-top: 32px;
        color: var(--muted);
        font-size: .76rem;
        font-family: "IBM Plex Mono", monospace;
      }

      @media (max-width: 820px) {
        .page { width: min(100% - 28px, 680px); padding-top: 34px; }
        .intro { grid-template-columns: 1fr; gap: 20px; }
        .dataset-stamp { min-width: 0; padding-left: 16px; }
        .workspace, .lower { grid-template-columns: 1fr; }
        .workspace { gap: 16px; }
        .result { min-height: 0; }
      }
      @media (max-width: 480px) {
        body { font-size: 16px; }
        .page { width: calc(100% - 22px); padding-top: 26px; }
        h1 { font-size: 3.05rem; }
        .intro-copy { font-size: 1rem; }
        .inputs { padding: 21px 17px; }
        .field-grid { grid-template-columns: 1fr; gap: 15px; }
        .field.full { grid-column: auto; }
        .result-head { padding: 14px 17px; }
        .result-body { padding: 23px 18px 25px; }
        .price { font-size: 3.3rem; }
        .median-highlight { align-items: center; }
        .median-price { font-size: 2rem; }
        .estimate-label { display: block; }
        .estimate-label span:last-child { display: block; margin-top: 2px; }
        .lower { gap: 24px; }
      }
      @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
      }

      /* ---- site chrome: topbar, editorial, footer (same language as the tool) ---- */
      .topbar { border-bottom: 1px solid var(--line); background: var(--panel); }
      .topbar-in {
        width: min(1120px, calc(100% - 40px));
        margin: 0 auto;
        padding: 11px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
      }
      .brand {
        font-family: "Barlow Condensed", sans-serif;
        font-weight: 700;
        font-size: 1.3rem;
        letter-spacing: .01em;
        text-transform: uppercase;
        color: var(--ink);
        text-decoration: none;
      }
      .brand em { font-style: normal; color: var(--accent); }
      .topbar nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
      .topbar nav a {
        color: var(--muted);
        text-decoration: none;
        font-family: "IBM Plex Mono", monospace;
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .05em;
      }
      .topbar nav a:hover { color: var(--accent); }
      .behind { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--line); }
      .behind h2 {
        margin: 0 0 12px;
        font-family: "Barlow Condensed", sans-serif;
        font-size: clamp(1.9rem, 4vw, 2.6rem);
        line-height: 1;
        text-transform: uppercase;
        letter-spacing: -.015em;
      }
      .behind .byline { max-width: 680px; font-size: 1.02rem; }
      .behind p { max-width: 700px; color: var(--muted); }
      .behind p strong { color: var(--ink); }
      .takeaways { max-width: 700px; margin: 20px 0 6px; padding-left: 1.25rem; display: grid; gap: 12px; }
      .takeaways li { padding-left: 4px; }
      .takeaways li::marker { color: var(--accent); font-weight: 700; }
      .takeaways strong { color: var(--ink); }
      .cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
        gap: 14px;
        margin: 22px 0 6px;
      }
      .acard {
        display: block;
        padding: 16px 18px 18px;
        border: 1px solid var(--line);
        background: var(--panel);
        color: var(--ink);
        text-decoration: none;
      }
      .acard:hover { border-color: var(--accent); }
      .acard .kicker {
        font-family: "IBM Plex Mono", monospace;
        font-size: .66rem;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--accent);
      }
      .acard h3 { margin: 9px 0 7px; font-size: 1.04rem; line-height: 1.25; }
      .acard p { margin: 0; font-size: .86rem; }
      .updated {
        margin-top: 20px;
        font-family: "IBM Plex Mono", monospace;
        font-size: .72rem;
        color: var(--muted);
      }
      .sitefoot {
        margin-top: 42px;
        padding: 24px 0 36px;
        border-top: 1px solid var(--line);
        display: flex;
        justify-content: space-between;
        gap: 18px 28px;
        flex-wrap: wrap;
      }
      .sitefoot p { margin: 0; max-width: 600px; font-family: "IBM Plex Mono", monospace; font-size: .74rem; color: var(--muted); }
      .sitefoot nav { display: flex; gap: 6px 16px; flex-wrap: wrap; align-content: flex-start; }
      .sitefoot nav a { color: var(--muted); font-size: .78rem; text-decoration: none; }
      .sitefoot nav a:hover { color: var(--accent); }
      @media (max-width: 480px) {
        .topbar-in { width: calc(100% - 22px); }
      }
    
      /* Comps list */
      #comps-list { margin-top: 12px; }
      .comp-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding: 10px 0;
        border-top: 1px solid var(--line);
        gap: 12px;
      }
      .comp-row:last-child { border-bottom: 1px solid var(--line); }
      .comp-main a {
        font-weight: 600;
        color: var(--ink);
        text-decoration: none;
        font-size: 0.95rem;
      }
      .comp-main a:hover { color: var(--accent); text-decoration: underline; }
      .comp-date {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        color: var(--muted);
        margin-left: 10px;
      }
      .comp-price {
        font-family: var(--font-mono);
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
      }
