
    :root {
      color-scheme: light;
      --page: #f6f7f2;
      --paper: #fff;
      --ink: #1b2d24;
      --muted: #59695f;
      --forest: #18372b;
      --accent: #e1eea8;
      --line: #dce4dc;
      --sage: #eff4ec;
      --rust: #893f2e;
      --shadow: 0 3px 5px #1c382704, 0 12px 32px #1c382706;
      --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
      --digits: "Bahnschrift", "Arial", sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
    [v-cloak], [hidden] { display: none !important; }
    body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.6 var(--sans); }
    button, input, select { margin: 0; padding: 0; color: inherit; font: inherit; }
    button { border: 0; background: transparent; }
    dl, dd { margin: 0; }
    legend { padding: 0; }
    img, svg { display: block; }
    .flex { display: flex; }
    .flex-wrap { flex-wrap: wrap; }
    .items-center { align-items: center; }
    .justify-between { justify-content: space-between; }
    .min-w-0 { min-width: 0; }
    .gap-2 { gap: .5rem; }
    .text-sm { font-size: .875rem; line-height: 1.25rem; }
    .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
    a { color: inherit; text-decoration: none; }
    button:not(:disabled) { cursor: pointer; }
    button:disabled, button[aria-disabled="true"] { opacity: .62; cursor: default; }
    :focus-visible { outline: 2px solid #487e4a; outline-offset: 4px; }
    h1, h2, h3, p { margin: 0; }
    .shell { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
    .icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 18px; height: 18px; }
    .icon svg { width: 100%; height: 100%; stroke-width: 1.8; }
    .number { font-family: var(--digits); font-variant-numeric: tabular-nums; }
    .skip-link { position: fixed; z-index: 4; left: 16px; top: -100px; padding: 10px 16px; background: var(--paper); border-radius: 8px; }
    .skip-link:focus { top: 12px; }

    /* Header and result share the same editorial grid. */
    .site-header { border-bottom: 1px solid var(--line); }
    .topbar { min-height: 68px; gap: 12px; }
    .wordmark { gap: 10px; font: 700 19px/1.1 var(--digits); white-space: nowrap; letter-spacing: -.035em; }
    .brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--forest); color: var(--accent); border-radius: 11px; }
    .brand-mark .icon { width: 23px; height: 23px; }
    .button {
      display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px;
      padding: 10px 15px; border: 1px solid transparent; border-radius: 11px;
      font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center;
      transition: background-color .18s, border-color .18s, box-shadow .18s;
    }
    .button-outline { border-color: var(--line); background: var(--paper); color: var(--forest); }
    .button-outline:hover { background: var(--sage); border-color: #a9bca9; }
    .button-text { color: var(--muted); }
    .button-text:hover { background: var(--sage); color: var(--ink); }
    .button-green { background: var(--forest); color: #fff; }
    .button-green:not(:disabled):not([aria-disabled="true"]):hover { background: #285340; }
    .intro { padding-block: 38px 27px; }
    .intro h1 { font-size: clamp(34px, 4.1vw, 57px); font-weight: 850; line-height: 1.17; letter-spacing: -.045em; overflow-wrap: anywhere; }
    .subtitle { margin-top: 9px; font: 600 clamp(13px, 1.3vw, 16px)/1.4 var(--digits); color: #3b6750; letter-spacing: .018em; }
    .tagline { margin-top: 14px; max-width: 750px; color: var(--muted); font-size: 15px; text-wrap: pretty; }
    .run-open { animation: reveal-result .35s ease-out both; }
    @keyframes reveal-result { from { opacity: .58; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

    .dashboard { overflow: hidden; border-radius: 25px; background: var(--forest); color: #f9fcf6; box-shadow: 0 16px 36px #18372b26; }
    .result-hero { position: relative; display: grid; grid-template-columns: 1fr minmax(270px, .5fr); align-items: end; gap: 24px; min-height: 257px; padding: 32px 36px 28px; isolation: isolate; }
    .hero-art {
      position: absolute; z-index: -1; inset: 0 0 0 34%;
      background-image: linear-gradient(90deg, var(--forest) 1%, #18372b99 30%, #18372b06 69%), linear-gradient(0deg, #142b21b8, transparent 65%), var(--hero-image, none);
      background-size: cover;
      background-position: center, center, center 63%;
    }
    .result-caption { gap: 8px; color: #e0ebd9; font-size: 14px; font-weight: 700; }
    .result-caption .icon { color: var(--accent); }
    .result-days { gap: 12px; margin-top: 9px; align-items: baseline; white-space: nowrap; }
    .result-number { color: var(--accent); font-size: clamp(66px, 8.5vw, 118px); font-weight: 750; letter-spacing: -.065em; line-height: .96; }
    .result-number.many-digits { font-size: clamp(28px, 5.4vw, 73px); }
    .result-unit { font-size: clamp(18px, 2.2vw, 28px); font-weight: 700; }
    .result-note { margin-top: 15px; gap: 7px; color: #d3e0d0; font-size: 13px; }
    .result-note strong { color: #fff; font-size: 15px; overflow-wrap: anywhere; }
    .result-note .icon { width: 15px; height: 15px; }
    .rank {
      display: flex; align-items: flex-start; gap: 12px; justify-self: end; width: min(100%, 312px);
      padding: 13px 15px; border: 1px solid #e1eea847; border-radius: 15px;
      background: #1a382be8; box-shadow: 0 5px 20px #152d2352;
    }
    .rank-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--accent); color: var(--forest); }
    .rank-icon .icon { width: 21px; height: 21px; }
    .rank-label { color: #d7e4ce; font-size: 11px; line-height: 1.25; margin-bottom: 2px; }
    .rank-name { color: #f5fae2; font-weight: 800; font-size: 16px; line-height: 1.4; }
    .rank-quote { margin-top: 3px; color: #e1e9d7; font-size: 12px; line-height: 1.45; }
    .metrics { display: grid; grid-template-columns: .95fr 1fr 1.53fr; padding: 0 35px; background: #142f25; }
    .metric { min-width: 0; padding: 16px 20px 18px; border-top: 1px solid #e1eea838; }
    .metric:first-child { padding-left: 0; }
    .metric + .metric { border-left: 1px solid #e1eea829; }
    .metric-label { display: flex; gap: 7px; align-items: center; color: #c6d7c8; font-size: 12px; }
    .metric-label .icon { width: 15px; height: 15px; }
    .metric-value { display: block; margin-top: 5px; font-size: 19px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
    .metric-hint { display: block; margin-top: 3px; color: #c6d7c8; font-size: 12px; line-height: 1.4; }

    .panel { min-width: 0; padding: 23px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
    .section-head { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }
    .section-head h2 { font-size: 21px; font-weight: 800; line-height: 1.35; letter-spacing: -.035em; }
    .section-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--sage); color: #335e44; }
    .section-icon .icon { width: 21px; height: 21px; }
    #parameters { scroll-margin-top: 16px; }
    .field-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 750; color: var(--ink); }
    .field-icon { color: #617668; font-size: 17px; }
    .money-field {
      display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 47px; padding: 0 12px;
      border: 1px solid #d3dfd3; border-radius: 10px; background: #f8faf7;
    }
    .money-field:focus-within { border-color: #487e4a; box-shadow: 0 0 0 3px #76a57730; }
    .money-field input { width: 100%; min-width: 0; padding: 8px 0; appearance: none; border: 0; outline: 0; background: transparent; color: var(--ink); font: 650 19px/1.35 var(--digits); }
    .field-suffix { flex: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
    .cash-range { display: block; width: 100%; height: 26px; margin: 8px 0 0; appearance: none; background: transparent; cursor: pointer; }
    .cash-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, #4c8757 var(--range-progress), #e0e9de var(--range-progress)); }
    .cash-range::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, #4c8757 var(--range-progress), #e0e9de var(--range-progress)); }
    .cash-range::-webkit-slider-thumb { width: 19px; height: 19px; margin-top: -6px; appearance: none; border: 3px solid var(--paper); border-radius: 50%; background: #397647; box-shadow: 0 0 0 1px #397647, 0 2px 5px #18372b42; }
    .cash-range::-moz-range-thumb { width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: #397647; box-shadow: 0 0 0 1px #397647, 0 2px 5px #18372b42; }
    .range-limits { color: var(--muted); font-size: 12px; }
    .field-help { margin-top: 5px; color: var(--muted); font-size: 12px; }

    .choice-set { min-width: 0; margin: 0; padding: 0; border: 0; }
    .choice-set + .choice-set { margin-top: 19px; }
    .choice-set legend { width: 100%; padding: 13px 0 10px; border-top: 1px solid var(--line); }
    .choice-days { align-self: flex-start; max-width: 100%; padding: 2px 7px; border-radius: 9px; background: #dcebd5; color: #305a40; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
    .choice-price small { font-size: 11px; }
    .switch { display: inline-flex; align-items: center; flex: none; width: 46px; height: 27px; padding: 3px; border: 1px solid #9bad9d; border-radius: 99px; background: #d7e1d6; transition: background-color .18s; }
    .switch::after { width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #18372b4d; content: ""; transition: transform .18s; }

    .play-area { width: min(100%, 920px); margin: 16px auto 0; }
    .run-hud {
      position: sticky; top: 4px; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto;
      min-height: 76px; border: 1px solid #365446; border-radius: 15px;
      background: linear-gradient(105deg, #173629, #214534); color: #f7fbf5; box-shadow: 0 6px 18px #1633292b;
    }
    .hud-metrics { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr) minmax(0, 1fr); margin: 0; }
    .hud-stat { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 10px 18px; }
    .hud-stat + .hud-stat { border-left: 1px solid #dcebd438; }
    .hud-stat dt { color: #dce8d8; font-size: 12px; font-weight: 650; line-height: 1.35; }
    .hud-stat dd { margin: 3px 0 0; font-size: 27px; font-weight: 760; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; transition: color .24s ease; }
    .hud-stat:first-child dd { font-size: 22px; }
    .hud-short { display: none; }
    .hud-unit { white-space: nowrap; font: 700 .65em/1 var(--sans); }
    .hud-stat:last-child { position: relative; background: #e1eea80b; }
    .hud-stat:last-child dd { color: var(--accent); font-size: 32px; }
    .run-hud.is-loss .hud-stat:nth-child(n+2) dd { color: #ffceb5; }
    .run-hud.is-gain .hud-stat:nth-child(n+2) dd { color: #c7f1be; }
    .run-hud.quarter { --runway-fill: #eee19c; }
    .run-hud.month { --runway-fill: #ffc984; }
    .run-hud.week { --runway-fill: #ffb396; }
    .run-hud:is(.quarter, .month, .week) .hud-stat:last-child dd { color: var(--runway-fill); }
    .hud-reserve { position: absolute; inset: auto 0 0; width: 100%; height: 4px; appearance: none; border: 0; background: #f7fbf522; }
    .hud-reserve::-webkit-progress-bar { background: #f7fbf522; }
    .hud-reserve::-webkit-progress-value { background: var(--runway-fill, var(--accent)); }
    .hud-reserve::-moz-progress-bar { background: var(--runway-fill, var(--accent)); }
    .hud-photo {
      width: clamp(48px, 12vw, 135px); border-radius: 0 14px 14px 0;
      background: var(--hero-image, none) 72% 62% / cover;
    }
    .feed-count { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; letter-spacing: 0; }
    .scene-bill { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 12px; color: var(--muted); font-size: 12px; }
    .scene-bill .icon { width: 14px; height: 14px; }
    .scene-bill strong { font-size: 13px; }
    .story-feed { margin: 0; padding: 0; list-style: none; overflow-anchor: none; }
    .story-feed > li:first-child { animation: enter-story .19s ease-out; }
    @keyframes enter-story { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: none; } }
    .story-note { min-width: 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow); }
    .story-note h3 { margin-top: 7px; font-weight: 800; font-size: clamp(20px, 3.2vw, 30px); line-height: 1.35; overflow-wrap: anywhere; text-wrap: pretty; }
    .story-note.loss { border-color: #ead8c7; background: #fbf0e5; }
    .story-note.gain { border-color: #d0e1cf; background: #edf5e9; }
    .story-when { color: var(--muted); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; }
    .story-when .icon { width: 15px; height: 15px; }
    .story-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; }
    .story-top strong { font-size: clamp(19px, 3vw, 25px); font-weight: 800; }
    .story-comment { margin-top: 6px; color: var(--muted); font-size: 15px; }
    .story-impact { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; }
    .story-effect { color: var(--muted); font-size: 13px; }
    .day-stamp { display: inline-flex; align-items: center; gap: 4px; color: #345842; font-size: 13px; font-weight: 650; }
    .day-stamp .number { font-size: 16px; }
    .day-stamp .icon { width: 14px; height: 14px; }
    .day-stamp.quarter { color: #706020; }
    .day-stamp.month { color: #8a511e; }
    .day-stamp.week { color: #963d2a; }
    .feed-past .story-impact { margin-top: 6px; }
    .feed-past .day-stamp, .feed-past .day-stamp .number { font-size: 12px; }
    .story-amount { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
    .mood-change { display: inline-block; padding: 2px 6px; border-radius: 6px; background: var(--sage); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
    .mood-change.mood-gain { background: #dfeeda; color: #305a40; }
    .mood-change.mood-loss { background: #f8e0d8; color: #893f2e; }
    .story-feed > li:first-child .story-amount .mood-change { animation: mood-rise .4s ease-out; }
    @keyframes mood-rise { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: none; } }
    .hud-mood { grid-column: 1 / -1; padding-inline: 12px; border-top: 1px solid #dcebd438; color: #e7f0df; font-size: 12px; }
    .hud-mood summary { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; }
    .hud-mood summary::-webkit-details-marker { display: none; }
    .hud-mood meter { width: clamp(28px, 15vw, 110px); height: 6px; appearance: none; border: 0; border-radius: 4px; background: #496657; }
    .hud-mood meter::-webkit-meter-bar { height: 6px; border: 0; border-radius: 4px; background: #496657; }
    .hud-mood meter::-webkit-meter-optimum-value { border-radius: 4px; background: var(--mood-color, #a9d694); }
    .hud-mood meter::-moz-meter-bar { border-radius: 4px; background: var(--mood-color, #a9d694); }
    .run-hud.mood-low { --mood-color: #ffc47d; }
    .run-hud.mood-critical { --mood-color: #ff9386; }
    .hud-mood .icon { width: 14px; height: 14px; }
    .hud-mood[open] .icon { transform: rotate(180deg); }
    .hud-mood p { padding-bottom: 8px; }
    .run-hud .hud-photo { border-bottom-right-radius: 0; }
    .story-note.countdown { border-color: #e5c8a6; background: #fcf3e6; }
    .story-tag { display: inline-block; padding: 1px 7px; border: 1px solid transparent; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.3; }
    .tag-gain { background: #dcfce7; color: #166534; border-color: #a5d7af; }
    .tag-micro { background: #fef3c7; color: #79370c; border-color: #ecd49f; }
    .tag-appliance { background: #e0f2fe; color: #075985; border-color: #b6d9ed; }
    .tag-social { background: #fae8ff; color: #86198f; border-color: #e5bde8; }
    .tag-health { background: #fee2e2; color: #991b1b; border-color: #edc2bf; }
    .amount-loss { color: #963e2b; }
    .amount-gain { color: #26643e; }
    .story-note.has-choice { background: #f0f5eb; border-color: #b7ccad; }
    .story-options { min-width: 0; margin: 13px 0 0; padding: 0; border: 0; }
    .story-options legend { margin-bottom: 6px; color: #375b43; font-size: 13px; font-weight: 750; }
    .story-actions { display: flex; flex-wrap: wrap; gap: 7px; }
    .story-option { flex: 1 1 190px; justify-content: space-between; gap: 8px; border-color: #b5c9b6; background: var(--paper); color: #254d36; text-align: left; }
    .option-price { flex: none; display: grid; justify-items: end; gap: 2px; }
    .option-price small { color: var(--muted); font-size: 11px; font-weight: 550; }
    .story-option strong { white-space: nowrap; }
    .story-option:hover { border-color: #779777; background: #fafff6; }
    .story-cause, .story-path { display: flex; align-items: baseline; gap: 5px; margin-top: 8px; color: #345d45; font-size: 13px; font-weight: 650; }
    .story-cause .icon, .story-path .icon { width: 13px; height: 13px; align-self: center; }
    .feed-past { position: relative; margin-left: 14px; padding: 13px 0 0 18px; border-left: 1px solid #c9d7c8; }
    .feed-past::before { position: absolute; top: 34px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #94ad96; content: ""; }
    .feed-past .story-note { padding: 12px 4px 9px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .feed-past + .feed-past .story-note { border-top: 1px solid var(--line); }
    .feed-past .story-note h3 { margin-top: 4px; font-size: clamp(16px, 2vw, 19px); }
    .feed-past .story-top strong { font-size: 16px; }
    .feed-past .story-comment { font-size: 14px; }
    .feed-past .story-effect, .feed-past .scene-bill { margin-top: 5px; font-size: 12px; }
    .feed-past .story-when { font-size: 12px; }
    .forecast-digest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 13px; margin: 0 0 13px; padding: 8px 0 11px; border-bottom: 1px solid var(--line); }
    .forecast-digest dt { color: var(--muted); font-size: 12px; }
    .forecast-digest dd { margin: 0; font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
    .run-tray-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
    .run-tray .tray-buttons { flex-wrap: nowrap; }
    .run-tray .button { white-space: nowrap; }
    .action-tray {
      position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center;
      justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px;
      padding: 9px 12px max(9px, env(safe-area-inset-bottom)); border: 1px solid var(--line);
      border-radius: 14px; background: var(--paper); box-shadow: 0 -5px 18px #18372b0d;
    }
    .share-field { flex: 1 0 100%; min-width: 0; width: 100%; padding: 7px; }
    .tray-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-left: auto; }
    .settlement { margin: 14px 0 4px; padding: clamp(16px, 3vw, 26px); scroll-margin-top: 100px; border: 1px solid #cbd8c9; border-radius: 16px; background: #f2f6ed; }
    .balance-figure { margin: 15px 0; }
    .balance-figure figcaption { margin-bottom: 5px; color: #496250; font-size: 13px; font-weight: 750; }
    .balance-chart { display: block; width: 100%; height: 160px; }
    .certificate .balance-figure { margin: 0 0 16px; }
    .recap-label { display: flex; align-items: center; gap: 6px; color: #496250; font-size: 13px; font-weight: 750; }
    .recap-label .icon { width: 16px; height: 16px; }
    .settlement h2 { margin-top: 4px; font-size: clamp(20px, 3vw, 27px); font-weight: 800; line-height: 1.35; }
    .recap-earned { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; margin-top: 9px; }
    .recap-earned strong { color: #234832; font-size: clamp(28px, 4.5vw, 38px); line-height: 1.2; }
    .recap-earned span, .recap-comparison, .recap-count { color: #496250; font-size: 13px; }
    .recap-ending { margin-top: 8px; font-size: 14px; }
    .recap-ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 14px; margin: 14px 0 10px; padding: 11px 0; border-block: 1px dashed #bcccb8; }
    .recap-ledger dt, .recap-moments dt { color: #526658; font-size: 12px; }
    .recap-ledger dd { margin: 0; font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
    .recap-moments { display: grid; gap: 5px; margin: 10px 0 0; }
    .recap-moments > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; }
    .recap-moments dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
    .recap-moments strong { white-space: nowrap; }
    .achievement-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
    .achievement-list li { max-width: 100%; }
    .achievement-badge { max-width: 280px; border: 1px solid #b18f45; border-radius: 12px; background: #fdf8e9; color: #654e22; }
    .achievement-badge summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 11px; font-weight: 750; cursor: pointer; list-style: none; }
    .achievement-badge summary::-webkit-details-marker { display: none; }
    .achievement-badge summary .icon:last-child { width: 13px; height: 13px; margin-left: auto; }
    .achievement-badge[open] summary .icon:last-child { transform: rotate(180deg); }
    .achievement-badge p { margin: 0 11px 8px; font-size: 13px; }

    .goal-options { min-width: 0; margin: 0; padding: 0; border: 0; }
    .goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .goal-label { display: block; cursor: pointer; }
    .goal-chip { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 7px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; }
    .goal-chip strong { font-size: 14px; }
    .goal-chip small { color: var(--muted); font-size: 12px; white-space: nowrap; }
    .goal-label:hover .goal-chip { border-color: #8ca98d; }
    .goal-label input:focus-visible + .goal-chip { outline: 2px solid #487e4a; outline-offset: 3px; }
    .goal-label input:checked + .goal-chip { background: var(--sage); border-color: #6d946d; box-shadow: inset 0 0 0 1px #6d946d; }
    .goal-summary { margin-top: 15px; padding: 13px 14px; border-radius: 11px; background: var(--sage); }
    .goal-summary p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
    .goal-summary .goal-status { color: var(--forest); font-size: 18px; font-weight: 800; }
    .goal-progress { display: block; width: 100%; height: 8px; margin-top: 9px; overflow: hidden; appearance: none; border: 0; border-radius: 99px; background: #dae6d8; }
    .goal-progress::-webkit-progress-bar { background: #dae6d8; }
    .goal-progress::-webkit-progress-value { border-radius: 99px; background: #457653; }
    .goal-progress::-moz-progress-bar { border-radius: 99px; background: #457653; }

    .site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-block: 22px 27px; color: var(--muted); font-size: 12px; }
    .site-footer strong { font: 700 14px/1.5 var(--digits); color: var(--forest); }
    .load-warning { margin: 32px auto; padding: 18px; background: var(--paper); border-radius: 12px; }

    /* The certificate uses a native dialog after the timeline has settled. */
    .dialog { inset: 0; width: min(100% - 24px, 500px); max-height: calc(100% - 24px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 21px; color: var(--ink); background: var(--paper); box-shadow: 0 26px 70px #142c2452; }
    .dialog::backdrop { background: #152b22a6; backdrop-filter: blur(4px); }
    .dialog-body { padding: 22px; }
    .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
    .dialog-head h2 { font-size: 21px; font-weight: 800; line-height: 1.3; }
    .close-button { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); }
    .close-button:hover { background: var(--sage); }
    .reset-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
    .poster-form { display: flex; align-items: end; gap: 8px; margin-bottom: 11px; }
    .poster-form label { flex: 1; min-width: 0; }
    .nickname { width: 100%; height: 44px; padding: 0 10px; border: 1px solid #d3dfd3; border-radius: 10px; background: #f8faf7; font-size: 16px; }
    .poster-feedback { margin-block: 10px; color: var(--muted); }
    .poster-error { color: var(--rust); }
    .poster-preview { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 28px #142c2424; }
    .poster-save { margin-top: 10px; gap: 9px; }
    .poster-save p { color: var(--muted); font-size: 13px; }

    /* Capture a fixed-size paper template so the exported PNG has the same layout on each device. */
    .poster-stage { position: fixed; top: 0; left: -10000px; pointer-events: none; }
    .certificate { width: 560px; padding: 18px; background: #efe9d4; color: #243c2d; }
    .paper-frame { padding: 24px 29px 21px; border: 3px double #6f876a; background: #f9f7eb; }
    .paper-brand { color: #3a6448; text-align: center; font: 700 16px/1.2 var(--digits); }
    .paper-brand small { margin-left: 9px; padding: 2px 6px; border: 1px solid #8fa185; font: 650 12px/1.4 var(--sans); }
    .run-tray-status .tray-action { gap: 4px; padding-inline: 6px; }
    .tray-action .icon { width: 15px; height: 15px; }
    .tray-action[aria-pressed="true"] { background: var(--sage); }
    .paper-brand span { margin-right: 5px; }
    .paper-title { margin-top: 19px; text-align: center; font-size: 36px; font-weight: 850; letter-spacing: -.045em; line-height: 1.3; }
    .paper-recipient { margin-top: 14px; text-align: center; color: #53665a; font-size: 15px; overflow-wrap: anywhere; }
    .paper-recipient strong { margin-left: 7px; color: #243c2d; font-size: 18px; }
    .paper-amount { margin-top: 18px; text-align: center; }
    .paper-number { font-size: 75px; font-weight: 750; line-height: 1; letter-spacing: -.055em; }
    .paper-number.many-digits { font-size: 48px; }
    .paper-unit { margin-left: 7px; font-size: 21px; font-weight: 800; }
    .paper-rank { margin: 12px 0 22px; text-align: center; color: #3a6448; font-size: 19px; font-weight: 800; }
    .paper-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 13px; border-top: 1px solid #bfcbb7; }
    .paper-motto-label { font-size: 12px; font-weight: 750; color: #53665a; }
    .paper-motto { margin-top: 4px; font-size: 15px; font-weight: 700; }
    .paper-seal {
      display: flex; flex: none; justify-content: center; align-items: center; flex-direction: column;
      width: 94px; height: 94px; border: 5px double #a94b3e; border-radius: 50%;
      transform: rotate(-12deg); color: #a94b3e; font-size: 13px; font-weight: 800; line-height: 1.28;
    }
    .paper-achievements { margin: 12px 0 0; padding: 0; list-style: none; }
    .paper-achievements li { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid #d4d2b9; }
    .paper-achievements li:last-child { padding-bottom: 0; }
    .paper-achievements strong { font-size: 12px; color: #53665a; }
    .paper-achievement-stamp { flex: none; padding: 7px 8px; border: 3px double #a94b3e; border-radius: 5px; color: #934236; font-size: 12px; font-weight: 750; }
    .paper-seal b { font-size: 17px; line-height: 1.2; }

    @media (max-width: 1000px) {
      .shell { width: calc(100% - 48px); }
      .panel { padding: 20px; }
    }
    @media (max-width: 720px) {
      .shell { width: calc(100% - 32px); }
      .topbar { min-height: 58px; }
      .wordmark { font-size: 17px; gap: 7px; }
      .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
      .intro { padding-block: 25px 19px; }
      .intro h1 { font-size: clamp(28px, 6.9vw, 43px); }
      .subtitle { margin-top: 8px; }
      .tagline { margin-top: 9px; font-size: 13px; }
      .dashboard { border-radius: 20px; }
      .result-hero { grid-template-columns: 1fr; align-content: end; min-height: 0; gap: 14px; padding: 21px 16px 15px; }
      .hero-art {
        inset: 0 0 0 0;
        background-image: linear-gradient(90deg, #18372b 0%, #18372bd9 22%, #18372b5c 77%), linear-gradient(0deg, #18372b, transparent 70%), var(--hero-image, none);
        background-position: center, center, center 52%;
      }
      .result-caption { font-size: 13px; }
      .result-days { gap: 8px; }
      .result-number { font-size: clamp(63px, 15vw, 100px); }
      .result-number.many-digits { font-size: clamp(31px, 9vw, 61px); }
      .result-note { margin-top: 10px; }
      .rank { justify-self: start; width: auto; max-width: 100%; padding: 9px 10px; gap: 9px; border-radius: 11px; }
      .rank-icon { width: 31px; height: 31px; border-radius: 8px; }
      .rank-icon .icon { width: 17px; height: 17px; }
      .rank-name { font-size: 14px; }
      .metric { padding: 10px 10px 11px; }
      .metrics { grid-template-columns: 1fr 1fr; padding-inline: 16px; }
      .metric:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
      .metric-value { font-size: 17px; }
      .panel { padding: 16px; border-radius: 16px; }
      .section-head { margin-bottom: 14px; }
      .section-head h2 { font-size: 19px; }
      .play-area { margin-top: 12px; }
      .run-hud { min-height: 66px; }
      .hud-metrics { grid-template-columns: minmax(0, .96fr) minmax(0, 1.18fr) minmax(0, 1.04fr); }
      .hud-stat { padding: 8px 7px; }
      .hud-stat dt { font-size: 11px; }
      .hud-stat dd { font-size: clamp(17px, 5.1vw, 23px); }
      .hud-stat:first-child dd { font-size: clamp(15px, 4.5vw, 19px); }
      .hud-stat:last-child dd { font-size: clamp(20px, 5.9vw, 26px); }
      .hud-full { display: none; }
      .hud-short { display: inline; }
      .hud-photo { width: clamp(36px, 12vw, 55px); }
      .story-note { padding: 14px; }
      .recap-tray { flex-wrap: nowrap; gap: 5px; }
      .recap-tray .tray-buttons { flex-wrap: nowrap; gap: 4px; }
      .action-tray.recap-tray .button { white-space: nowrap; gap: 4px; padding-inline: 5px; }
      .story-comment, .story-effect { font-size: 13px; }
      .action-tray { padding-inline: 8px; gap: 5px 8px; }
      .action-tray .button { padding-inline: 8px; }
      .run-tray-status { width: 100%; justify-content: space-between; }
      .run-tray .tray-buttons { width: 100%; }
      .next-event { flex: 1; }
      .site-footer { padding-block: 18px 22px; }
    }
    @media (max-width: 540px) {
    }
    @media (max-width: 365px) {
      .topbar { gap: 5px; }
      .wordmark { gap: 6px; font-size: 16px; }
      .hud-month-label { display: none; }
      .run-tray { flex-direction: column; gap: 6px; }
      .run-tray .tray-buttons .button { flex: 1 1 0; min-width: 0; gap: 3px; padding-inline: 3px; font-size: 13px; }
      .run-tray-status { gap: 3px; }
      .run-tray-status .button { padding-inline: 3px; font-size: 13px; }
      .run-tray-status .tray-action .icon { display: none; }
      .recap-tray .button { font-size: 13px; }
      .recap-tray > .button .icon { display: none; }
      .hud-stat { padding-inline: 5px; }
      .hud-photo { width: 34px; }
      .hud-stat:last-child dd.long-count { font-size: 17px; }
      .dialog-body { padding: 15px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .run-open, .story-feed > li:first-child { animation: none; }
      .story-feed > li:first-child .story-amount .mood-change { animation: none; }
      *, *::before, *::after { transition-duration: 0s !important; }
    }

    /* 推演只滚动中间的纸卡。账本与操作保持在视口内。 */
    html:has(#app .play-area.scene-playing) { overflow: hidden; scrollbar-gutter: auto; }
    #app:has(.play-area.scene-playing) { position: fixed; inset: 0; overflow: clip; }
    #app:has(.play-area.scene-playing) :is(.site-header, .site-footer) { display: none; }
    #app:has(.play-area.scene-playing) main.shell { width: min(1050px, calc(100% - 32px)); }
    .play-area.scene-playing {
      height: 100dvh; min-height: 0; overflow-anchor: none; margin: 0 auto; padding: 12px 0 max(9px, env(safe-area-inset-bottom));
      display: flex; flex-direction: column;
    }
    .scene-playing .run-hud { top: 0; flex: none; }
    .hud-mood-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #dcebd438; }
    .hud-mood-row .hud-mood { position: relative; border: 0; min-width: 0; padding-inline: 12px; }
    .hud-mood-row .hud-mood summary { min-height: 36px; gap: 8px; }
    .mood-breakdown {
      position: absolute; z-index: 4; top: 100%; left: 0; width: min(340px, calc(100vw - 38px)); padding: 13px;
      border: 1px solid #496e58; border-radius: 0 0 12px 12px; background: #1c3e2e; box-shadow: 0 12px 22px #142c2440;
    }
    .mood-breakdown dl { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 15px; }
    .mood-breakdown dl div { display: flex; justify-content: space-between; gap: 5px; border-bottom: 1px solid #ffffff24; }
    .mood-breakdown dd { font-weight: 750; }
    .shield-chip { flex: none; font-size: 11px; }
    .hud-mood-row:has(.shield-chip) .hud-mood meter { width: clamp(22px, 9vw, 100px); }
    .hud-tools { display: flex; flex: none; gap: 5px; margin-right: 5px; }
    .tool-button {
      display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; color: #e5f2e2;
    }
    .tool-button:hover, .tool-button:focus-visible { background: #ffffff19; outline-color: #dceaa5; }
    .stage-heading { display: flex; align-items: center; gap: 6px 10px; flex: none; min-height: 44px; }
    .stage-heading h2 { margin-right: auto; font-size: 16px; line-height: 1.35; }
    .stage-heading .feed-count { margin-left: 4px; }
    .stage-heading .stage-detail { min-height: 44px; padding-inline: 8px; }
    .stage-reserve { color: #834b1c; font-size: 12px; font-weight: 750; }
    .stage-reserve.week { color: #963e2b; }
    .stage-spotlight {
      flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: auto; overscroll-behavior-y: contain;
      padding: 8px 6px 16px; touch-action: pan-y pinch-zoom; scrollbar-width: thin; scrollbar-color: #afc2b2 transparent;
    }
    .play-area:not(.scene-playing) .stage-spotlight { padding-inline: 0; }
    .stage-spotlight .story-note {
      position: relative; flex: none; width: min(100%, 764px); margin: auto; padding: clamp(17px, 3.6vw, 42px);
      border: 1px solid #d6dfd1; border-top: 4px solid #97b297; border-radius: 6px 6px 15px 15px;
      background: #fffdf6; box-shadow: 0 15px 32px #18372b0b, 0 4px 9px #18372b09; cursor: pointer;
    }
    .stage-spotlight .story-note.loss { background: #fff8ee; border-top-color: #b66d4e; }
    .stage-spotlight .story-note.gain { background: #f1f7eb; border-top-color: #579269; }
    .stage-spotlight .story-note.has-choice { background: #f2f6ec; border-top-color: #487658; }
    .stage-spotlight .story-note.countdown { background: #fff5e6; border-top-color: #bd8247; }
    .stage-spotlight .story-note h3 { font-size: clamp(23px, 3.5vw, 36px); line-height: 1.27; letter-spacing: -.025em; }
    .stage-spotlight .story-comment { max-width: 46em; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.75; margin-top: 12px; }
    .stage-spotlight .stage-receipt { margin: -6px 0 13px; padding: 0 0 9px; border-bottom: 1px dashed #bdcbbc; }
    .stage-receipt .scene-bill { margin: 0; line-height: 1.5; }
    .stage-receipt .scene-bill + .scene-bill { margin-top: 4px; }
    .stage-receipt .scene-bill .icon { width: 14px; height: 14px; }
    .stage-hidden { visibility: hidden; pointer-events: none; }
    .story-copy { position: relative; }
    .copy-reserve { visibility: hidden; }
    .copy-typing { position: absolute; inset: 0; }
    .type-cursor { display: inline-block; width: 2px; height: .92em; margin-left: 3px; vertical-align: -.08em; background: #6a9268; animation: type-pulse .64s ease-in-out infinite alternate; }
    @keyframes type-pulse { from { opacity: .46; } to { opacity: 1; } }
    .entering-card { animation: stage-enter 220ms cubic-bezier(.22, 1.12, .36, 1) both; }
    @keyframes stage-enter { from { transform: translateY(18px) scale(.96); opacity: .35; } to { transform: none; opacity: 1; } }
    .stage-spotlight .is-revealed:not(.cruise-card) .stamp-amount { animation: stamp-drop .22s cubic-bezier(.18,.72,.3,1) both; }
    @keyframes stamp-drop { from { transform: scale(1.28); opacity: .55; } to { transform: scale(1); opacity: 1; } }
    .stage-spotlight .crit-story { animation: stage-thud .26s ease-out; box-shadow: 0 10px 25px #9d493422; }
    @keyframes stage-thud { 25% { transform: translateX(-3px); } 65% { transform: translateX(2px); } }
    .stage-spotlight .story-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .stage-spotlight .story-option { min-height: 60px; white-space: normal; align-items: center; }
    .option-copy { min-width: 0; display: grid; gap: 3px; overflow-wrap: anywhere; }
    .option-copy small { color: #526755; font-size: 11px; font-weight: 650; }
    .stage-spotlight .is-revealed .story-option { animation: reveal-option .22s ease-out both; }
    .stage-spotlight .is-revealed .story-option:nth-child(2) { animation-delay: 85ms; }
    @keyframes reveal-option { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
    .insurance-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-top: 8px; color: #286544; font-size: 13px; }
    .insurance-note del { color: #69645a; }
    .insurance-note.uninsured { color: #8a4230; }
    .stage-hint { text-align: right; color: #596a5c; font-size: 12px; margin-top: 12px; }
    .stage-hint span { padding-left: 4px; }
    .milestone-actions, .settlement-links, .modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
    .scene-playing .run-tray { position: relative; flex: none; margin: 0; }
    .scene-playing .run-tray .button { min-height: 44px; }
    .run-tray .next-event { min-width: min(177px, 100%); justify-content: center; }
    @media (min-width: 721px) {
      .run-tray .next-event { min-width: 177px; }
    }
    .run-tray .tray-action { min-width: 0; }
    .departing-ticket {
      position: fixed; z-index: 5; display: block; pointer-events: none; overflow: hidden; height: 34px; padding: 5px 10px;
      border: 1px solid #b8cdb9; border-radius: 5px; background: #eef4e9; color: #345542;
      font-size: 13px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis;
    }
    .history-dock-wrap { position: relative; flex: none; min-width: 0; }
    .history-dock-wrap::before, .history-dock-wrap::after {
      position: absolute; z-index: 34; pointer-events: none; inset-block: 0; width: 9px; content: "";
    }
    .history-dock-wrap::before { left: 0; background: linear-gradient(to right, var(--page), transparent); }
    .history-dock-wrap::after { right: 0; background: linear-gradient(to left, var(--page), transparent); }
    .history-dock {
      position: relative; display: flex; justify-content: safe center; gap: 6px; overflow: auto hidden;
      padding: 32px 9px 5px; scrollbar-width: none; scroll-snap-type: x proximity;
    }
    .history-dock::-webkit-scrollbar { display: none; }
    .dock-pill {
      position: relative; display: grid; flex: 0 0 58px; width: 58px; min-width: 0; height: 44px; place-content: center; justify-items: center; gap: 2px;
      border: 1px solid #bdcdbf; border-radius: 8px 8px 5px 5px; background: #edf2e8; color: #2e5137;
      transform: translateY(var(--dock-lift, 0)) scale(var(--dock-scale, 1)); transform-origin: bottom center;
      transition: transform .14s ease-out; scroll-snap-align: end;
    }
    .dock-pill span.number { max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; font-size: 11px; }
    .dock-pill .icon { width: 15px; height: 15px; }
    .dock-pill[aria-pressed="true"] { border-color: #365e40; outline: 2px solid #6e9673; outline-offset: -3px; }
    .dock-pill.pill-loss { background: #f8e9da; border-color: #dec4ad; color: #88462f; }
    .dock-pill.pill-gain { background: #e1f1dc; border-color: #b4d0af; color: #305b38; }
    .dock-pill.pill-choice { box-shadow: inset 0 -3px #698c70; }
    .dock-pill:focus-visible { outline-offset: -4px; }
    .dock-pill:last-child > * { animation: new-stub .22s ease-out both; }
    @keyframes new-stub { from { opacity: .4; transform: translateY(-9px); } to { opacity: 1; transform: none; } }
    .dock-preview {
      position: fixed; z-index: 36; max-height: min(54dvh, calc(100dvh - 145px), 385px); overflow: auto; padding: 10px;
      color: var(--ink); background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
      border: 1px solid #c0d0c0; border-radius: 13px; box-shadow: 0 16px 35px #142c2436;
    }
    .dock-preview:not(:has(.close-button)) { pointer-events: none; }
    .dock-preview .close-button { float: right; width: 36px; height: 36px; margin: 0 0 3px 5px; }
    .dock-preview .story-note { background: transparent; border: 0; box-shadow: none; padding: 2px; }
    .dock-preview .story-note h3 { font-size: 17px; }
    .dock-preview .story-comment { font-size: 13px; }
    .dock-preview .story-impact { margin-top: 8px; }
    .settlement { padding: 0; overflow: hidden; scroll-margin-top: 14px; }
    .settlement-hero { position: relative; isolation: isolate; overflow: hidden; background: #18372b; color: #f6fbf1; }
    .settlement-hero .hero-art { inset: 0; opacity: .9; z-index: -1; }
    .settlement-hero-content { position: relative; max-width: 640px; padding: clamp(20px, 5vw, 48px); }
    .settlement-hero h2 { color: #e6f0df; font-size: clamp(17px, 2.8vw, 23px); }
    .settlement-hero .recap-earned { margin: 6px 0; }
    .settlement-hero .recap-earned strong { color: #e1eea8; font-size: clamp(39px, 9vw, 80px); letter-spacing: -.04em; word-break: break-word; }
    .settlement-rank { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 16px; }
    .settlement-hero .recap-comparison { display: inline-block; color: #e8f2e2; padding: 6px 9px; margin-top: 12px; border: 1px solid #cbdcb172; border-radius: 6px; background: #142f239e; }
    .settlement-body { padding: clamp(14px, 3vw, 29px); padding-bottom: 28px; }
    @media (min-width: 721px) {
      .settlement-hero-content { padding: clamp(18px, 3.2vw, 32px) clamp(20px, 4vw, 44px); }
    }
    .settlement-body .recap-label { font-size: 18px; }
    .recap-ledger > div:last-child { color: #264a32; }
    .interactive-chart figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
    .interactive-chart figcaption label { display: flex; align-items: center; gap: 5px; color: #7e4d23; }
    .chart-plot { position: relative; }
    .interactive-chart .balance-chart { height: clamp(170px, 30vw, 255px); cursor: crosshair; touch-action: pan-y; }
    .chart-tooltip { position: absolute; top: 8px; z-index: 1; left: clamp(0px, var(--tip-x) - 114px, 100% - min(228px, 100%));
      max-width: min(228px, 100%); padding: 7px 9px; pointer-events: none; background: #203d2c; color: #f3f8ef;
      border-radius: 6px; box-shadow: 0 5px 15px #18372b36; font-size: 12px; overflow-wrap: anywhere; }
    .chart-tooltip span { display: block; }
    .recap-count { margin-top: 12px; }
    .challenge-banner {
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px;
      padding: 9px 12px; margin-bottom: 12px; border: 1px solid #bbcdbb; border-radius: 9px; background: #eaf3e7; color: #284b32;
    }
    .challenge-banner p { font-size: 14px; }
    .header-archive { min-height: 44px; }
    .history-drawer, .archive-dialog { width: min(100% - 24px, 670px); }
    .tactic-dialog { width: min(100% - 24px, 560px); }
    .dialog-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
    .dialog-tabs .button { min-height: 40px; border-color: #cad8c9; color: #31543b; padding-inline: 10px; }
    .dialog-tabs .button[aria-pressed="true"] { background: #e5efe2; border-color: #7e9d80; box-shadow: inset 0 -2px #819e82; }
    .dialog-hint { margin: 8px 0; color: var(--muted); font-size: 13px; }
    .history-list .story-note .stage-receipt { padding-bottom: 5px; border-bottom: 1px dashed #bdcbbc; }
    .history-list .story-note h3 { font-size: 19px; }
    .history-list .feed-past { margin-left: 6px; }
    .tactics-fields { display: grid; gap: 7px; }
    .tactics-fields label { display: grid; gap: 3px; font-size: 13px; font-weight: 650; }
    .tactics-fields select, .archive-progress select { width: 100%; min-height: 42px; border: 1px solid #aebfae; border-radius: 7px; padding: 5px 8px; background: #fbfdf9; }
    .tactics-fields .tactic-insurance { display: flex; align-items: center; gap: 6px; padding: 7px 0; }
    .gig-list { display: grid; gap: 8px; }
    .gig-list .gig-option { justify-content: space-between; padding: 9px 12px; border-color: #b7cdb8; text-align: left; }
    .gig-option small { display: block; color: var(--muted); font-size: 12px; }
    .archive-progress { display: grid; grid-template-columns: minmax(0, 1fr) 115px; gap: 4px 11px; align-items: center; }
    .archive-progress .goal-progress { grid-row: 2; margin: 0; }
    .archive-progress select { grid-area: 1 / 2 / 3 / 3; font-size: 13px; }
    .archive-cards, .archive-awards, .archive-runs { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
    .archive-cards li, .archive-awards li, .archive-runs li { min-width: 0; padding: 9px 10px; border: 1px solid #d1dfd0; border-radius: 8px; background: #f6f9f3; }
    .archive-cards .archive-locked, .archive-awards .archive-locked { color: #596a60; background: #f4f6f2; border-style: dashed; }
    .archive-cards .archive-locked p { display: flex; justify-content: space-between; gap: 6px; }
    .archive-cards summary { cursor: pointer; color: #284b33; font-weight: 750; }
    .archive-cards details p { margin: 5px 0 0; font-size: 13px; }
    .archive-meta, .archive-cards .archive-meta { color: #576b5d; font-size: 12px; }
    .archive-awards li { display: flex; align-items: baseline; gap: 7px; }
    .archive-awards p { font-size: 13px; }
    .archive-runs li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
    .poster-skins { min-width: 0; padding: 0; margin: 0; border: 0; }
    .poster-skins .dialog-tabs { margin-top: 5px; }
    .paper-meta, .paper-decision { text-align: center; overflow-wrap: anywhere; font-size: 13px; }
    .paper-meta { margin: -12px 0 12px; }
    .paper-decision { margin: 5px 0 13px; font-weight: 750; }
    .certificate.skin-forest { color: #faefd0; background: #122d22; }
    .skin-forest .paper-frame { background: #1c3d2b; border-color: #c4a86a; }
    .skin-forest :is(.paper-brand, .paper-recipient, .paper-recipient strong, .paper-rank, .balance-figure figcaption, .paper-motto-label, .paper-achievements strong) { color: #eedcad; }
    .skin-forest :is(.paper-seal, .paper-achievement-stamp) { color: #f0ce82; border-color: #b89e5c; }
    .certificate.skin-receipt { background: #e4e5df; color: #272b27; }
    .skin-receipt .paper-frame { border: 1px dashed #494c47; background: #fff; }
    .skin-receipt .paper-title { font-size: 33px; }
    .skin-receipt .paper-recipient { border-top: 1px dashed #777c74; margin-top: 25px; padding-top: 14px; }
    .skin-receipt .paper-seal, .skin-receipt .paper-achievement-stamp { color: #42463e; border-color: #74796e; border-radius: 2px; }

    @media (max-width: 720px) {
      #app:has(.play-area.scene-playing) main.shell { width: calc(100% - 16px); }
      .play-area.scene-playing { padding-top: 6px; }
      .stage-heading .stage-detail { padding-inline: 4px; font-size: 12px; }
      .stage-heading h2 { font-size: 14px; }
      .stage-spotlight { padding: 4px 2px 10px; }
      .stage-spotlight .story-note { padding: 15px; }
      .stage-spotlight .story-note h3 { font-size: clamp(20px, 5.9vw, 29px); }
      .stage-spotlight .story-comment { margin-top: 8px; }
      .stage-spotlight .story-actions { grid-template-columns: 1fr; }
      .stage-spotlight .story-option { min-height: 52px; padding: 5px 7px; font-size: 13px; }
      .stage-receipt .scene-bill { font-size: 12px; }
      .stage-spotlight .stage-receipt { margin: 0 0 7px; padding-bottom: 6px; }
      .stage-hint { font-size: 11px; margin-top: 9px; }
      .run-tray .tray-buttons { margin-left: 0; }
      .scene-playing .run-tray { gap: 2px; padding: 3px 6px max(3px, env(safe-area-inset-bottom)); }
      .run-tray .tray-buttons .button { white-space: nowrap; }
      .history-dock { padding-block: 6px 5px; }
      .mood-band-name { display: none; }
    }
    @media (max-width: 365px) {
      .stage-heading .stage-detail .icon { display: none; }
      .stage-reserve { font-size: 11px; }
      .run-tray .next-event { flex: 2 1 0; }
      .run-tray .tray-action { font-size: 12px; }
      .stage-heading, .stage-heading .stage-detail { min-height: 38px; }
      .stage-spotlight .story-note { padding: 12px; }
      .stage-spotlight .story-note h3 { font-size: 19px; line-height: 1.23; margin-top: 6px; }
      .stage-spotlight .stage-receipt { margin-bottom: 5px; padding-bottom: 4px; }
      .stage-spotlight .story-options { margin-top: 8px; }
      .stage-spotlight .story-actions { gap: 5px; }
      .stage-spotlight .story-option { min-height: 48px; line-height: 1.26; gap: 6px; }
      .stage-spotlight .story-option .option-price { gap: 2px; line-height: 1.2; }
      .stage-spotlight .has-choice .story-impact { display: none; }
      .story-option .mood-change { font-size: 10px; }
      .story-option .option-price small { font-size: 10px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .stage-spotlight *, .history-dock *, .type-cursor { animation: none !important; }
      .dock-pill { transform: none; }
      .departing-ticket { display: none; }
    }

    .setup-tools { display: flex; flex: none; align-items: center; gap: 4px; }
    .setup-tools .sound-toggle { width: 38px; min-height: 44px; padding-inline: 0; justify-content: center; }
    .setup-tools .header-archive { padding-inline: 7px; white-space: nowrap; }

    .hud-month-label { display: inline-block; white-space: nowrap; }
    .dashboard-flight {
      position: fixed; z-index: 5; overflow: hidden; pointer-events: none; animation: none; transform-origin: top left;
    }
    .scene-playing .run-hud { animation: hud-arrive .3s ease-out both; }
    @keyframes hud-arrive { from { opacity: .55; } to { opacity: 1; } }
    .stage-spotlight .story-note { transition: filter .22s ease, opacity .22s ease, scale .22s ease; }
    .stage-spotlight.dock-depth .story-note { filter: blur(.8px) saturate(.86); opacity: .82; scale: .99; }
    .dock-meta { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; width: 100%; }
    .dock-meta small { font-size: 10px; font-weight: 600; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .archive-dialog { max-height: 82dvh; overflow: hidden; }
    .archive-dialog .dialog-body { display: flex; flex-direction: column; max-height: calc(82dvh - 2px); padding: 0; }
    .archive-header { position: sticky; top: 0; z-index: 1; flex: none; padding: 17px 22px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
    .archive-header .dialog-tabs { margin-bottom: 0; }
    .archive-header .archive-progress { margin-top: 12px; }
    .archive-unlocked-filter { display: flex; grid-column: 1 / -1; align-items: center; gap: 7px; min-height: 32px; font-size: 13px; }
    .archive-unlocked-filter input { accent-color: var(--forest); }
    .archive-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 22px 16px; }
    .archive-scroll:focus-visible { outline-offset: -3px; }
    .achievement-toast { position: fixed; z-index: 40; inset: max(12px, env(safe-area-inset-top)) 12px auto; display: grid; justify-items: center; pointer-events: none; }
    #app:has(.play-area.scene-playing) .achievement-toast { top: 138px; }
    .achievement-toast p {
      display: flex; align-items: center; gap: 7px; max-width: min(420px, 100%); padding: 7px 13px;
      border: 1px solid #aac19c; border-radius: 8px; background: #edf5e6; color: #244c34;
      box-shadow: 0 5px 15px #203e2d1f; font-size: 13px; font-weight: 750; animation: toast-arrive .24s ease-out both;
    }
    @keyframes toast-arrive { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

    .tactics-digest { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; }
    .tactics-digest dt { min-height: 2.4em; }
    .tactics-digest dd { display: grid; gap: 2px; font-size: 13px; }
    .tactics-digest dd span { color: var(--muted); font-weight: 600; }
    .tactics-digest dd strong { color: var(--forest); }

    .poster-preview-frame {
      position: relative; display: grid; place-items: center; min-height: 120px;
      border: 0; background: transparent;
    }
    .poster-preview-frame[aria-busy="true"]:not(:has(.poster-preview)) { border-radius: 10px; background: #f6f3e8; }
    .poster-stamp-mask {
      position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: #f8f4e7a8; color: var(--forest);
    }
    .poster-stamp-mask span { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 6px; background: #fffdf6e8; font-size: 13px; font-weight: 750; }
    .poster-save [aria-disabled="true"] { color: var(--muted); opacity: .65; cursor: default; }

    @media (min-width: 721px) {
      .poster-preview-frame .poster-preview { width: auto; max-width: 100%; max-height: min(54dvh, max(90px, calc(100dvh - 350px))); object-fit: contain; }
    }
    @media (max-width: 720px) {
      .archive-header { padding: 13px 14px 9px; }
      .archive-scroll { padding-inline: 14px; }
      #app:has(.play-area.scene-playing) .achievement-toast { top: 112px; }
    }
    @media (max-width: 365px) {
      .setup-tools .header-archive { padding-inline: 4px; gap: 4px; }
      .setup-tools .sound-toggle { width: 32px; }
      .hud-month-label { display: none; }
    }
    @media (prefers-reduced-motion: reduce) {
      .dashboard-flight { display: none; }
      .scene-playing .run-hud, .achievement-toast p { animation: none; }
    }

.talent-focus {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  min-height: 62px; padding: 10px 13px; border: 1px solid #d5e2d3; border-radius: 12px;
  background: #f5f9f2; transition: background-color .16s ease, border-color .16s ease;
}
.talent-focus.is-previewing { background: #fbfdf8; border-color: #9bb89c; border-style: dashed; }
.talent-focus-main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1 1 220px; }
.talent-focus-icon {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin-top: 1px;
  border-radius: 9px; background: #e3eedd; color: var(--forest);
}
.talent-focus-name { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.talent-focus-desc { margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.talent-focus-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px 7px; }
.talent-focus-price { font-size: 14px; font-weight: 800; color: var(--forest); white-space: nowrap; }
.talent-preview-badge { padding: 1px 6px; border-radius: 5px; background: #e7efe4; color: #3d634a; font-size: 11px; font-weight: 700; }

.talent-dock {
  display: flex; align-items: flex-end; gap: 7px; padding: 16px 4px 4px; margin-top: 2px;
  overflow: visible;
}
.talent-label { position: relative; flex: 1 1 0; min-width: 0; cursor: pointer; }
.talent-pill {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 68px; padding: 8px 4px 7px; border: 1px solid var(--line); border-radius: 12px;
  background: #fbfcfa; color: var(--ink); text-align: center;
  transform: translateY(var(--talent-lift, 0)) scale(var(--talent-scale, 1));
  transform-origin: bottom center; transition: transform .14s ease-out, border-color .16s, background-color .16s, box-shadow .16s;
}
.talent-pill .icon { width: 18px; height: 18px; color: #3f6a4f; }
.talent-short { font-size: 12px; font-weight: 750; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.talent-price { font-size: 11px; font-weight: 700; color: #4a6b54; white-space: nowrap; }
.talent-label input:checked + .talent-pill {
  border-color: #4f7e58; background: #eaf3e5; box-shadow: inset 0 0 0 1px #4f7e58, 0 4px 10px #18372b14;
}
.talent-label input:checked + .talent-pill::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px;
  border-radius: 50%; background: #387547;
}
.talent-label input:focus-visible + .talent-pill { outline: 2px solid #487e4a; outline-offset: 3px; }

@media (max-width: 720px) {
  .talent-dock { overflow-x: auto; overflow-y: hidden; padding: 8px 2px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .talent-dock::-webkit-scrollbar { display: none; }
  .talent-label { flex: 0 0 84px; scroll-snap-align: start; }
  .talent-pill { transform: none !important; min-height: 64px; }
  .talent-focus { padding: 9px 11px; }
  .talent-focus-meta { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .talent-pill { transform: none !important; }
}
.keyboard-cue {
  display: none; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px;
  padding: 5px 10px 6px; color: #54695a; font-size: 12px; font-weight: 600;
  transition: opacity .25s ease; user-select: none;
}
.keyboard-cue.is-familiar { opacity: .62; }
.keyboard-cue .keycap {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px;
  padding: 0 6px; border: 1px solid #bdcdbd; border-bottom: 2px solid #a9bea9; border-radius: 5px;
  background: #fffdf8; color: var(--forest); font: 750 11px/1 var(--digits);
  box-shadow: 0 1px 2px #18372b12;
}
.keyboard-cue .keycap-pulse { animation: keycap-breathe 1.6s ease-in-out 3; }
@keyframes keycap-breathe {
  0%, 100% { border-color: #bdcdbd; box-shadow: 0 1px 2px #18372b12; }
  50% { border-color: #4f8557; background: #eff7e9; box-shadow: 0 0 0 3px #6ea3742e; }
}
@media (hover: hover) and (pointer: fine) {
  .keyboard-cue { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .keyboard-cue .keycap-pulse { animation: none; }
}
.stage-hint-desktop { display: none; }
@media (hover: hover) and (pointer: fine) {
  .stage-hint-desktop { display: inline; }
  .stage-hint-touch { display: none; }
}

.seo-faq {
  margin-top: 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fafbf7; color: var(--ink);
}
.seo-faq summary {
  display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px;
  color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary .icon:last-child { margin-left: auto; transition: transform .18s ease; }
.seo-faq[open] summary .icon:last-child { transform: rotate(180deg); }
.seo-faq[open] summary { color: var(--forest); border-bottom: 1px solid var(--line); }
.seo-faq-body { padding: 14px 16px 16px; display: grid; gap: 14px; }
.faq-table-wrap { overflow-x: auto; }
.faq-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.faq-table th, .faq-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.faq-table th { color: var(--muted); font-weight: 700; font-size: 12px; }
.faq-list { display: grid; gap: 10px; }
.faq-list dt { font-size: 13px; font-weight: 750; color: var(--forest); }
.faq-list dd { margin-top: 3px; font-size: 13px; line-height: 1.65; color: var(--muted); }

/* v2.3 5-Step Focused Setup Wizard */
.wizard-shell {
  display: flex; flex-direction: column; align-items: center;
  width: min(760px, 100%); margin: 0 auto; padding: 18px 0 28px;
}
.wizard-live-pill {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 9px 20px; margin-bottom: 18px; border-radius: 99px;
  background: var(--forest); color: #eef5ea; box-shadow: 0 10px 26px #18372b24; font-size: 13px;
}
.wizard-live-pill .live-days { color: var(--accent); font: 800 22px/1 var(--digits); letter-spacing: -.03em; }
.wizard-live-pill .live-sep { width: 1px; height: 14px; background: #e1eea838; }
.wizard-live-pill .live-meta { color: #cfe0ce; font-size: 12px; }
.wizard-live-pill .live-rank { font-weight: 750; color: #f6fae6; }
.wizard-upgrade-tip { margin: -10px 0 14px; font-size: 12px; color: #476c52; font-weight: 650; text-align: center; }

.wizard-stepper {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px;
  margin-bottom: 18px; padding: 0; list-style: none;
}
.wizard-step-btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 12px;
  border: 1px solid transparent; border-radius: 99px; background: transparent;
  color: #77887d; font-size: 12px; font-weight: 650; transition: all .16s ease;
}
.wizard-step-btn:hover { color: var(--forest); background: #edf3ea; }
.wizard-step-btn.is-done { color: #345f43; background: #e8f1e4; border-color: #cde0cb; }
.wizard-step-btn.is-now {
  color: var(--forest); background: var(--paper); border-color: #6b9470;
  box-shadow: 0 2px 8px #18372b14; font-weight: 800;
}

.wizard-card {
  width: 100%; padding: clamp(22px, 4vw, 38px) clamp(18px, 4.5vw, 40px) clamp(20px, 3.5vw, 30px);
  background: #fffdf8; border: 1px solid var(--line); border-top: 4px solid #4e7d5a;
  border-radius: 10px 10px 22px 22px; box-shadow: 0 18px 44px #18372b0e, 0 4px 12px #18372b08;
  animation: wiz-fade .18s ease-out both;
}
@keyframes wiz-fade { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.wiz-kicker { font-size: 12px; font-weight: 750; color: #467355; letter-spacing: .04em; margin-bottom: 8px; }
.wiz-title { font-size: clamp(22px, 3.3vw, 32px); font-weight: 850; letter-spacing: -.035em; line-height: 1.25; }
.wiz-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.wiz-scenario-note {
  margin-top: 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid #cde0cb;
  background: #eef6e9; color: #2b543a; font-size: 13px; font-weight: 650;
}

/* Step 1 Hero Savings Input */
.wiz-money-hero {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin: 24px 0 14px; padding: 12px 18px; border: 1px solid #d4e2d3; border-radius: 16px; background: #f5f9f2;
}
.wiz-money-hero:focus-within { border-color: #487e4a; box-shadow: 0 0 0 3px #76a57730; }
.wiz-money-hero .field-icon { font-size: 26px; font-weight: 700; color: #4d745a; }
.wiz-money-hero input {
  width: min(290px, 68%); text-align: center; border: 0; outline: 0; background: transparent;
  color: var(--forest); font: 800 clamp(34px, 6vw, 50px)/1.1 var(--digits); letter-spacing: -.03em;
}
.wiz-money-hero .field-suffix { font-size: 15px; font-weight: 650; color: var(--muted); }
.wiz-quick-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.wiz-qchip {
  min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--paper); color: var(--forest); font-size: 13px; font-weight: 700; transition: all .15s;
}
.wiz-qchip:hover { border-color: #84a886; background: #f4f9f1; }
.wiz-qchip.is-active { background: #eaf3e5; border-color: #55855c; box-shadow: inset 0 0 0 1px #55855c; }

/* Step 2-4 Single-Stage Fisheye Adjustments */
.wizard-card .talent-focus { margin-top: 20px; padding: 14px 16px; min-height: 70px; }
.wizard-card .talent-focus-name { font-size: 16px; }
.wizard-card .talent-focus-desc { font-size: 13px; }
.wizard-card .talent-dock { padding: 24px 4px 6px; margin-top: 4px; gap: 8px; }
.wizard-card .talent-pill { min-height: 74px; padding: 10px 5px 8px; }

/* Step 5 Optional Finance & Switches */
.wiz-opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.wiz-opt-card { padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; }
.wiz-opt-card .money-field { margin-top: 8px; background: var(--paper); }
.wiz-switch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.wiz-sw-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; cursor: pointer;
  transition: background-color .16s, border-color .16s;
}
.wiz-sw-card:has(input:checked) { border-color: #4f7e58; background: #ecf5e7; box-shadow: inset 0 0 0 1px #4f7e58; }
.wiz-sw-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.wiz-sw-card strong { font-size: 13px; font-weight: 800; color: var(--ink); }
.wiz-sw-card small { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.wiz-sw-card .switch { width: 38px; height: 22px; padding: 2px; }
.wiz-sw-card .switch::after { width: 16px; height: 16px; }
.wiz-sw-card input:checked + .switch::after { transform: translateX(16px); }

/* Wizard Card Footer Nav */
.wiz-nav {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid #e6ede5;
}
.wiz-nav-right { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.wiz-next-btn { min-height: 48px; padding: 0 24px; font-size: 15px; border-radius: 12px; box-shadow: 0 8px 20px #18372b24; }
.wiz-share-note { margin-top: 10px; text-align: right; font-size: 11.5px; color: var(--muted); }

/* Subdued Bottom Scenarios Bar (Step 1 only) */
.wiz-presets { margin-top: 22px; width: 100%; text-align: center; }
.wiz-presets p { font-size: 12px; color: #728478; margin-bottom: 10px; }
.wiz-preset-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wiz-preset-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 13px;
  border: 1px solid #dce5db; border-radius: 99px; background: #fafcf9; color: #3c5746;
  font-size: 12px; font-weight: 650; transition: all .15s;
}
.wiz-preset-chip:hover { border-color: #7ca07f; background: #eef5e9; color: var(--forest); }
.wiz-preset-chip .icon { width: 14px; height: 14px; color: #4c7457; }

/* Keep SEO FAQ understated at the very bottom */
.wizard-shell .seo-faq { width: 100%; margin-top: 28px; }

@media (max-width: 640px) {
  .wizard-shell { padding: 10px 0 22px; }
  .wizard-live-pill { padding: 7px 14px; gap: 4px 10px; margin-bottom: 12px; font-size: 12px; }
  .wizard-live-pill .live-days { font-size: 18px; }
  .wizard-stepper { gap: 5px; margin-bottom: 14px; }
  .wizard-step-btn { padding: 3px 9px; font-size: 11px; min-height: 28px; }
  .wizard-card { padding: 18px 15px 16px; border-radius: 10px 10px 18px 18px; }
  .wiz-money-hero { margin: 16px 0 10px; padding: 10px 12px; }
  .wiz-opt-grid, .wiz-switch-grid { grid-template-columns: 1fr; }
  .wiz-nav { margin-top: 20px; padding-top: 14px; }
  .wiz-nav-right { width: 100%; }
  .wiz-next-btn { flex: 1; }
  .wiz-share-note { text-align: left; }
}
@media (max-width: 365px) {
  .wizard-live-pill .live-meta, .wizard-live-pill .live-meta-sep { display: none; }
  .wiz-qchip { padding: 5px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wizard-card { animation: none; }
}
.wiz-sw-card input:focus-visible + .switch { outline: 2px solid #487e4a; outline-offset: 4px; }
@media (max-width: 720px) {
  .wizard-card .talent-label { flex-basis: 86px; }
}
  