
    :root {
      color-scheme: light dark;
      
      
      
      
      
      
      
      
      --early: var(--site-primary);
      --early-soft: var(--site-primary-soft);
      --late: var(--site-secondary);
      --late-soft: var(--site-secondary-soft);
      --accent: var(--site-primary);
      --accent-ink: var(--site-primary);
      
      
    }
    @media (prefers-color-scheme: dark) {
      :root {
        
        
        
        
        
        
        
        
        --early: var(--site-primary);
        --early-soft: var(--site-primary-soft);
        --late: var(--site-secondary);
        --late-soft: var(--site-secondary-soft);
        --accent: var(--site-primary);
        --accent-ink: var(--site-primary);
        
        
      }
    }
    * {  }
    html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable both-edges; }
    html, body { overflow-x: hidden; overflow-x: clip; }
    body {
      margin: 0;
      min-width: 320px;
      background: var(--bg);
      color: var(--ink);
      font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
      font-size: 16px;
      line-height: 1.55;
    }
    button, input { font: inherit; }
    output { font: inherit; }
    main {
      
      
      
    }
    .intro { max-width: 760px; margin-bottom: 22px; }
    h1 {
      margin: 0 0 12px;
      
      
      letter-spacing: -.01em;
      font-weight: 700;
    }
    .intro p {
      margin: 0;
      color: var(--muted);
      
      max-width: 68ch;
    }
    .workspace {
      display: grid;
      grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
      gap: 18px;
      align-items: start;
    }
    .panel {
      background: var(--paper);
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
    }
    .inputs { padding: 22px; border-radius: 14px; }
    .results { border-radius: 14px; overflow: hidden; }
    .section-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 20px;
    }
    h2, h3, p { overflow-wrap: break-word; }
    h2 {
      margin: 0;
      
      
      
    }
    .example-tag {
      padding: 4px 9px;
      border-radius: 999px;
      background: var(--early-soft);
      color: var(--accent-ink);
      font-family: "IBM Plex Sans", system-ui, sans-serif;
      font-size: .68rem;
      font-weight: 600;
      letter-spacing: .06em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .field-group { margin: 0 0 24px; }
    .field-group:last-of-type { margin-bottom: 18px; }
    label {
      display: block;
      margin-bottom: 7px;
      font-weight: 600;
      
      color: var(--muted);
    }
    .hint {
      display: block;
      margin-top: 7px;
      color: var(--muted);
      
    }
    .money-field {
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr) auto;
      align-items: center;
      border: 1px solid var(--line);
      background: var(--field);
      border-radius: 9px;
      overflow: hidden;
      transition: box-shadow .18s, border-color .18s;
    }
    .money-field:focus-within {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
    }
    .currency {
      text-align: right;
      color: var(--muted);
      font-family: "IBM Plex Sans", system-ui, sans-serif;
    }
    .money-field input {
      width: 100%;
      border: 0;
      outline: 0;
      background: transparent;
      color: var(--ink);
      padding: 10px 8px;
      font-family: "IBM Plex Sans", system-ui, sans-serif;
      font-size: 1.05rem;
      min-width: 0;
    }
    .period { padding-right: 12px; color: var(--muted); font-size: .78rem; }
    .rate-field { grid-template-columns: minmax(0, 1fr) auto; }
    .rate-field input { padding-left: 13px; }
    .rate-field .period { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: .9rem; }
    .plain-field { grid-template-columns: minmax(0, 1fr); }
    .plain-field input { padding-left: 13px; }
    .money-field input[readonly] { color: var(--muted); cursor: default; }
    .money-field:has(input[readonly]):focus-within { border-color: var(--line-strong); box-shadow: none; }
    .field-action {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 7px;
    }
    .field-action .hint { margin-top: 0; }
    .age-70-comparison {
      display: grid;
      gap: 11px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
    }
    .age-70-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: baseline;
      gap: 5px 14px;
    }
    .age-70-row > span { color: var(--muted); font-size: .77rem; }
    .age-70-row strong {
      color: var(--early);
      font-family: "IBM Plex Sans", system-ui, sans-serif;
      font-size: .9rem;
      text-align: right;
      white-space: nowrap;
    }
    .age-70-row small {
      grid-column: 1 / -1;
      color: var(--muted);
      font-size: .7rem;
      line-height: 1.35;
    }
    .override {
      flex: 0 0 auto;
      border: 0;
      padding: 3px 0;
      background: transparent;
      color: var(--early);
      cursor: pointer;
      font-size: .76rem;
      font-weight: 600;
      text-decoration: underline;
      text-decoration-color: color-mix(in srgb, var(--early) 45%, transparent);
      text-underline-offset: 3px;
    }
    .override:hover { color: var(--ink); }
    .override:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .age-readout {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 10px;
    }
    .age-readout label { margin: 0; }
    #ageText { color: var(--late); font-family: "IBM Plex Sans", system-ui, sans-serif; font-weight: 500; }
    input[type="range"] {
      width: 100%;
      accent-color: var(--late);
      cursor: pointer;
    }
    .scale {
      display: flex;
      justify-content: space-between;
      margin-top: 4px;
      color: var(--muted);
      font-family: "IBM Plex Sans", system-ui, sans-serif;
      font-size: .7rem;
    }
    .reset {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      border: 0;
      padding: 5px 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: .82rem;
      text-decoration: underline;
      text-decoration-color: var(--line-strong);
      text-underline-offset: 3px;
    }
    .reset:hover { color: var(--ink); }
    .reset:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .verdict {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 180px;
      gap: 24px;
      padding: 22px;
      border-bottom: 1px solid var(--line);
      background: var(--surface-2);
    }
    .verdict-kicker {
      margin: 0 0 6px;
      color: var(--ink-3);
      font-size: .75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .07em;
    }
    .verdict h2 {
      
      
      letter-spacing: -.01em;
      
    }
    .verdict h2 span { color: var(--early); }
    .verdict-copy {
      margin: 13px 0 0;
      max-width: 56ch;
      color: var(--muted);
      
    }
    .survival-note {
      margin: 16px 0 0;
      padding-top: 13px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: .8rem;
      line-height: 1.45;
    }
    .survival-note strong {
      color: var(--ink);
      font-family: "IBM Plex Sans", system-ui, sans-serif;
      font-size: .88rem;
      font-weight: 500;
    }
    .survival-note a {
      color: var(--early);
      font-weight: 600;
      text-underline-offset: 3px;
    }
    .survival-note a:hover { color: var(--ink); }
    .survival-note a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .head-start {
      align-self: center;
      padding-left: 20px;
      border-left: 1px solid var(--line-strong);
    }
    .head-start span { display: block; color: var(--ink-3); font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
    .head-start strong {
      display: block;
      margin: 4px 0 2px;
      color: var(--early);
      font-family: "IBM Plex Sans", system-ui, sans-serif;
      font-size: 1.3rem;
      font-weight: 600;
    }
    .head-start small { display: block; color: var(--muted); font-size: .72rem; }
    .chart-wrap { padding: 20px 22px 14px; }
    .chart-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 14px;
    }
    .chart-head h3 { margin: 0 0 3px;   }
    .chart-head p { margin: 0; color: var(--muted);  }
    .legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px;  color: var(--muted); }
    .legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
    .swatch { width: 18px; height: 3px; border-radius: 2px; background: var(--early); }
    .swatch.late { background: var(--late); }
    .chart-shell {
      width: 100%;
      min-height: 310px;
      position: relative;
    }
    svg { display: block; width: 100%; height: auto; overflow: visible; }
    .grid-line { stroke: var(--line); stroke-width: 1; }
    .axis-label { fill: var(--ink-3); font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 11px; }
    .line-early { fill: none; stroke: var(--early); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
    .line-late { fill: none; stroke: var(--late); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
    .cross-line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 5; opacity: .62; }
    .cross-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
    .cross-tag { fill: var(--ink); }
    .cross-tag-text { fill: var(--paper); font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 10px; font-weight: 500; }
    .milestones {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-top: 1px solid var(--line);
    }
    .milestone {
      padding: 17px 20px 19px;
      border-right: 1px solid var(--line);
    }
    .milestone:last-child { border-right: 0; }
    .milestone span { display: block; color: var(--ink-3); font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
    .milestone strong { display: block; margin-top: 3px; font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 1.05rem; font-weight: 600; }
    .milestone .early-lead { color: var(--early); }
    .milestone .late-lead { color: var(--late); }
    .method {
      margin: 18px 0 0 398px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
      color: var(--muted);
      
    }
    .method p { margin: 0; }
    .method strong { color: var(--ink); }
    @media (max-width: 560px) { }
    .settings-btn {
         
        
         
        
    }
    @media (prefers-color-scheme: dark) { }
    @media (max-width: 860px) {
      main {  }
      .workspace { grid-template-columns: 1fr; }
      .method { margin-left: 0; }
    }
    @media (max-width: 560px) {
      main {   }
      .intro { margin-bottom: 18px; }
      .inputs { padding: 16px 14px; }
      .verdict { grid-template-columns: 1fr; padding: 18px 16px; gap: 18px; }
      .head-start { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
      .chart-wrap { padding: 21px 12px 10px; }
      .chart-head { display: block; padding: 0 7px; }
      .legend { justify-content: flex-start; margin-top: 10px; }
      .chart-shell { min-height: 240px; }
      .milestones { grid-template-columns: 1fr; }
      .milestone { border-right: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 13px 19px; }
      .milestone:last-child { border-bottom: 0; }
      .milestone strong { text-align: right; }
      .method { grid-template-columns: 1fr; gap: 9px; padding: 0 4px; }
    }
    @media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
  