    :root {
      --page-max-width: 1280px;
      --gap: 22px;
      --card-padding: 22px;
      --border-color: rgba(18, 30, 33, 0.28);
      --muted: rgba(10, 20, 22, 0.72);
      --bg: #e9f6f3;
      --card-bg: #fef8de;
      --active: #0f6d4d;
      --active-soft: rgba(15, 109, 77, 0.16);
      --extreme-low: #b32719;
      --extreme-high: #0f8d43;
      --accent-hot: #ff5e2b;
      --accent-cool: #14a44d;
    }

    html {
      overflow-x: hidden;
      scrollbar-gutter: stable;
      background: linear-gradient(145deg, #d9f4ef 0%, #fef4c6 48%, #ffd9b1 100%);
    }

    body {
      margin: 0;
      font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
      background: transparent;
      color: #111;
      overflow-x: hidden;
      overflow-y: scroll;
    }

    [hidden] {
      display: none !important;
    }

    header {
      border-bottom: 3px solid rgba(15, 109, 77, 0.32);
      padding: 18px 20px;
      background: linear-gradient(90deg, #053d30 0%, #0f6d4d 60%, #18885f 100%);
      position: sticky;
      top: 0;
      z-index: 20;
      color: #fff;
      box-shadow: 0 10px 30px rgba(6, 30, 26, 0.25);
    }

    header .container {
      max-width: var(--page-max-width);
      margin: 0 auto;
      display: grid;
      gap: 10px;
    }

    header h1 {
      margin: 0;
      font-size: clamp(28px, 3.3vw, 44px);
      letter-spacing: 0.01em;
      font-weight: 900;
      line-height: 1.05;
    }

    header p {
      margin: 0;
      color: rgba(255, 255, 255, 0.92);
      font-size: 17px;
      line-height: 1.3;
      font-weight: 650;
    }

    main {
      max-width: var(--page-max-width);
      margin: 0 auto;
      padding: 24px 18px 48px 18px;
      display: grid;
      gap: var(--gap);
    }

    .card {
      background:
        radial-gradient(circle at 92% 10%, rgba(255, 86, 34, 0.20) 0%, rgba(255, 86, 34, 0) 42%),
        radial-gradient(circle at 8% 85%, rgba(24, 153, 88, 0.18) 0%, rgba(24, 153, 88, 0) 38%),
        var(--card-bg);
      border: 3px solid var(--border-color);
      border-radius: 22px;
      padding: var(--card-padding);
      min-width: 0;
      box-shadow: 0 8px 0 rgba(8, 34, 31, 0.18), 0 18px 30px rgba(8, 34, 31, 0.14);
    }

    .wizard-step[data-open="false"] {
      display: none;
    }

    .step-label {
      margin: 0 0 10px 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 6px 14px;
      border-radius: 999px;
      border: 2px solid rgba(15, 109, 77, 0.35);
      background: #ebffef;
      color: #0b633f;
      font-weight: 900;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-size: 13px;
    }

    .card h2 {
      margin: 0 0 14px 0;
      font-size: clamp(24px, 2.6vw, 34px);
      line-height: 1.1;
      font-weight: 900;
      letter-spacing: 0.01em;
    }

    .step-subtitle {
      margin: 0 0 10px 0;
      font-size: 24px;
      font-weight: 900;
      letter-spacing: 0.01em;
    }

    .subtle {
      margin: 0 0 16px 0;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.45;
      font-weight: 620;
      max-width: 90ch;
    }

    .path-visual {
      margin-top: 10px;
      display: grid;
      gap: 12px;
    }

    .case-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    @media (max-width: 980px) {
      .case-grid {
        grid-template-columns: 1fr;
      }
    }

    .case-card {
      border: 3px solid rgba(15, 109, 77, 0.2);
      border-radius: 18px;
      padding: 16px;
      background: #ffffff;
      cursor: pointer;
      user-select: none;
      display: grid;
      gap: 10px;
      transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
    }

    .case-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 18px rgba(8, 34, 31, 0.14);
    }

    .case-card[data-selected="true"] {
      border-color: #0f6d4d;
      box-shadow: 0 0 0 6px rgba(15, 109, 77, 0.18);
      background: linear-gradient(180deg, #ffffff 0%, #edfff6 100%);
    }

    .case-title-row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: baseline;
    }

    .case-title {
      font-weight: 900;
      font-size: 20px;
      margin: 0;
      line-height: 1.2;
    }

    .case-badge {
      font-size: 12px;
      color: #0f6d4d;
      border: 2px solid rgba(15, 109, 77, 0.28);
      border-radius: 999px;
      padding: 3px 10px;
      background: #f1fff8;
      white-space: nowrap;
      font-weight: 800;
    }

    .case-body {
      margin: 0;
      color: rgba(10, 20, 22, 0.78);
      font-size: 15px;
      line-height: 1.42;
      font-weight: 600;
    }

    .button-row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
    }

    button {
      border: 2px solid rgba(255, 255, 255, 0.55);
      background: rgba(255, 255, 255, 0.16);
      border-radius: 12px;
      padding: 10px 16px;
      cursor: pointer;
      font-size: 14px;
      color: #fff;
      font-weight: 800;
      letter-spacing: 0.02em;
    }

    button:hover {
      border-color: #fff;
      background: rgba(255, 255, 255, 0.24);
    }

    .step-cta {
      margin-top: 16px;
      border: 2px solid rgba(7, 44, 35, 0.28);
      background: linear-gradient(180deg, #ff6a3d 0%, #ff4f28 100%);
      color: #fff;
      font-size: 16px;
      font-weight: 900;
      padding: 12px 20px;
      border-radius: 12px;
      box-shadow: 0 6px 0 rgba(146, 44, 18, 0.42);
    }

    .step-cta:disabled {
      opacity: 0.45;
      cursor: not-allowed;
      box-shadow: none;
      transform: none;
    }

    .step-cta:hover:enabled {
      background: linear-gradient(180deg, #ff754d 0%, #ff5c36 100%);
      transform: translateY(-1px);
    }

    textarea {
      width: 100%;
      min-height: 140px;
      resize: vertical;
      border: 3px solid rgba(15, 109, 77, 0.28);
      border-radius: 14px;
      padding: 14px;
      font-size: 17px;
      line-height: 1.45;
      background: #fff;
      box-sizing: border-box;
      font-family: inherit;
      font-weight: 600;
    }

    .guide-section {
      margin-top: 12px;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      background: #fff;
      padding: 12px;
    }

    .guide-heading {
      margin: 0 0 8px 0;
      font-size: 14px;
      font-weight: 800;
    }

    .guide-subtle {
      margin-bottom: 10px;
      max-width: 86ch;
    }

    .howto-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 10px;
    }

    @media (max-width: 980px) {
      .howto-grid {
        grid-template-columns: 1fr;
      }
    }

    .howto-item {
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 10px;
      background: #fff;
      display: grid;
      gap: 6px;
    }

    .howto-item-title {
      margin: 0;
      font-size: 12.5px;
      font-weight: 750;
    }

    .howto-item-body {
      margin: 0;
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.35;
    }

    .controls {
      display: grid;
      gap: 14px;
    }

    .scenario-toolbar {
      margin: 2px 0 14px 0;
      padding: 12px;
      border: 2px solid rgba(15, 109, 77, 0.22);
      border-radius: 14px;
      background: #fff;
      display: grid;
      gap: 8px;
    }

    .scenario-toggle {
      display: inline-flex;
      gap: 10px;
      align-items: center;
      font-size: 14px;
      font-weight: 800;
      color: #123;
      cursor: pointer;
      user-select: none;
    }

    .scenario-toggle input[type="checkbox"] {
      width: 18px;
      height: 18px;
      accent-color: #0f6d4d;
      margin: 0;
    }

    .scenario-subtle {
      margin: 0;
      font-size: 13px;
      color: var(--muted);
      max-width: none;
    }

    .scenario-tabs {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .scenario-tab {
      border: 2px solid rgba(15, 109, 77, 0.26);
      border-radius: 999px;
      padding: 7px 14px;
      background: #f5fff8;
      color: #0d5d41;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.02em;
      cursor: pointer;
    }

    .scenario-tab[data-selected="true"] {
      background: linear-gradient(180deg, #0f6d4d 0%, #11885f 100%);
      border-color: #0a5a3f;
      color: #fff;
    }

    .scenario-tab:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .control-group {
      border: 2px solid rgba(15, 109, 77, 0.22);
      border-radius: 16px;
      background: #fff;
      padding: 14px;
      display: grid;
      gap: 12px;
    }

    .control-group[data-emphasis="true"] {
      border-color: var(--active);
      box-shadow: 0 0 0 5px var(--active-soft);
    }

    .control-group-title {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: baseline;
      margin: 0;
      font-size: 18px;
      font-weight: 850;
    }

    .control-group-title span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .control-group-title-main {
      color: #111;
      font-weight: 900;
    }

    .control-row {
      display: grid;
      grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) 72px;
      grid-template-areas: "label input value";
      gap: 12px;
      align-items: start;
    }

    .control-row label {
      grid-area: label;
      font-size: 15px;
      font-weight: 750;
      color: #111;
      user-select: none;
      padding-top: 2px;
    }

    .control-input-stack {
      grid-area: input;
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .control-row input[type="range"] {
      width: 100%;
      margin: 0;
    }

    .control-extremes {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      font-size: 12px;
      color: var(--muted);
      line-height: 1.25;
      user-select: none;
    }

    .control-extreme {
      flex: 1 1 0;
      min-width: 0;
    }

    .control-extreme--low {
      text-align: left;
      color: var(--extreme-low);
      font-weight: 600;
    }

    .control-extreme--high {
      text-align: right;
      color: var(--extreme-high);
      font-weight: 600;
    }

    .control-row output {
      grid-area: value;
      font-variant-numeric: tabular-nums;
      color: var(--muted);
      font-size: 15px;
      font-weight: 750;
      text-align: right;
      align-self: start;
      padding-top: 2px;
    }

    @media (max-width: 760px) {
      .control-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
          "label value"
          "input input";
        align-items: center;
        gap: 6px 10px;
      }

      .control-row output {
        align-self: center;
      }

      .control-extremes {
        font-size: 10.5px;
      }
    }

    .charts-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 14px;
    }

    @media (max-width: 980px) {
      .charts-grid {
        grid-template-columns: 1fr;
      }
    }

    .chart-area {
      background: #fff;
      border: 2px solid rgba(15, 109, 77, 0.22);
      border-radius: 16px;
      padding: 14px;
      min-width: 0;
      contain: layout paint;
    }

    .chart-area[data-emphasis="true"] {
      border-color: var(--active);
      box-shadow: 0 0 0 5px var(--active-soft);
    }

    .chart-title {
      margin: 0 0 8px 0;
      font-size: 19px;
      font-weight: 850;
    }

    .chart-hint {
      margin: 0 0 10px 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.4;
      font-weight: 650;
    }

    .svg-host {
      width: 100%;
      height: 400px;
      min-width: 0;
      overflow: hidden;
      -webkit-user-select: none;
      user-select: none;
      touch-action: none;
      overscroll-behavior: contain;
    }

    .svg-host svg {
      display: block;
      touch-action: none;
    }

    .three-host {
      width: 100%;
      height: 620px;
      position: relative;
      overflow: hidden;
      border-radius: 16px;
      background: #fff;
      border: 2px solid rgba(15, 109, 77, 0.24);
    }

    .three-host[data-emphasis="true"] {
      border-color: var(--active);
      box-shadow: 0 0 0 5px var(--active-soft);
    }

    .recommendation-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 14px;
      align-items: start;
    }

    .recommendation-card {
      border: 2px solid rgba(15, 109, 77, 0.24);
      border-radius: 16px;
      background: #fff;
      padding: 16px;
      display: grid;
      gap: 10px;
      max-width: 820px;
    }

    .recommendation-card[data-emphasis="true"] {
      border-color: var(--active);
      box-shadow: 0 0 0 6px var(--active-soft);
    }

    .recommendation-title {
      margin: 0;
      font-size: 18px;
      font-weight: 900;
    }

    .recommendation-subtitle {
      margin: 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.35;
      font-weight: 650;
    }

    .recommendation-action {
      margin: 0;
      font-size: 20px;
      font-weight: 900;
      color: #111;
    }

    .recommendation-list {
      margin: 0;
      padding-left: 22px;
      color: rgba(0,0,0,0.72);
      font-size: 15px;
      line-height: 1.42;
      font-weight: 600;
    }

    .why-panel {
      margin-top: 12px;
      border: 2px solid rgba(15, 109, 77, 0.22);
      border-radius: 16px;
      background: #fff;
      padding: 14px 16px;
      max-width: 920px;
      display: grid;
      gap: 8px;
    }

    .why-title {
      margin: 0;
      font-size: 17px;
      font-weight: 900;
      color: #111;
    }

    .why-subtitle {
      margin: 0;
      font-size: 14px;
      color: var(--muted);
      font-weight: 700;
    }

    .why-list {
      margin: 0;
      padding-left: 20px;
      color: rgba(0, 0, 0, 0.76);
      font-size: 14px;
      line-height: 1.45;
      font-weight: 620;
    }

    .scenario-comparison {
      margin-top: 12px;
      border: 2px solid rgba(15, 109, 77, 0.22);
      border-radius: 16px;
      background: #fff;
      padding: 14px 16px;
      max-width: 980px;
      display: grid;
      gap: 10px;
    }

    .scenario-comparison-title {
      margin: 0;
      font-size: 18px;
      font-weight: 900;
      color: #111;
    }

    .scenario-comparison-subtitle {
      margin: 0;
      font-size: 14px;
      color: var(--muted);
      font-weight: 700;
      line-height: 1.4;
    }

    .scenario-comparison-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .scenario-comparison-card {
      border: 2px solid rgba(15, 109, 77, 0.22);
      border-radius: 12px;
      background: #f8fff9;
      padding: 10px;
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .scenario-comparison-card[data-selected="true"] {
      border-color: #0f6d4d;
      box-shadow: 0 0 0 4px rgba(15, 109, 77, 0.14);
      background: #eefcf2;
    }

    .scenario-comparison-name {
      margin: 0;
      font-size: 13px;
      font-weight: 900;
      color: #0f6d4d;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .scenario-comparison-scores {
      margin: 0;
      font-size: 12px;
      color: var(--muted);
      font-weight: 700;
      line-height: 1.35;
    }

    .scenario-comparison-policy {
      margin: 0;
      font-size: 14px;
      font-weight: 850;
      color: #111;
      line-height: 1.3;
    }

    .scenario-comparison-note {
      margin: 0;
      font-size: 12px;
      font-weight: 700;
      color: rgba(0, 0, 0, 0.6);
      line-height: 1.3;
    }

    .kbd {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: 12px;
      padding: 2px 6px;
      border-radius: 6px;
      border: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.88);
      color: #111;
    }

    .legend-row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 12px;
      color: var(--muted);
      font-size: 14px;
    }

    .badge {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      padding: 6px 12px;
      border: 2px solid rgba(15, 109, 77, 0.18);
      border-radius: 999px;
      background: #ffffff;
      font-weight: 700;
    }

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #111;
      display: inline-block;
    }

    .step-chip-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
    }

    .legend-row--mt12 {
      margin-top: 12px;
    }

    .three-fallback {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      padding: 14px;
      text-align: center;
      color: var(--muted);
      font-size: 15px;
      font-weight: 700;
    }

    #recommendationGrid[data-single="true"] {
      justify-items: start;
    }

    @media (max-width: 980px) {
      .card {
        border-radius: 16px;
        padding: 16px;
      }

      .case-title {
        font-size: 18px;
      }

      .control-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
          "label value"
          "input input";
        align-items: center;
        gap: 8px 10px;
      }

      .three-host {
        height: 500px;
      }

      .scenario-comparison-grid {
        grid-template-columns: 1fr;
      }
    }
