    :root {
      --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
      --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
      --color-background-primary: #f4f7f9;
      --color-background-secondary: #ffffff;
      --color-background-tertiary: #edf3f6;
      --color-surface: #ffffff;
      --color-surface-strong: #ffffff;
      --color-surface-soft: #f8fbfc;
      --color-text-primary: #173241;
      --color-text-secondary: #5e7684;
      --color-text-tertiary: #7e94a0;
      --color-border-primary: rgba(23, 50, 65, 0.10);
      --color-border-tertiary: rgba(23, 50, 65, 0.08);
      --color-accent: #2f8fd4;
      --color-accent-strong: #1f78b9;
      --color-accent-soft: rgba(47, 143, 212, 0.12);
      --color-energy: #2c9a68;
      --color-energy-soft: rgba(44, 154, 104, 0.12);
      --color-warn: #df6b57;
      --color-warn-soft: rgba(223, 107, 87, 0.10);
      --color-amber: #c9962d;
      --border-radius-sm: 12px;
      --border-radius-md: 16px;
      --border-radius-lg: 24px;
      --shadow-lg: 0 18px 46px rgba(17, 50, 71, 0.10);
      --shadow-md: 0 10px 24px rgba(17, 50, 71, 0.08);
      --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
      --track-fill: 50%;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      min-height: 100vh;
      font-family: var(--font-sans);
      color: var(--color-text-primary);
      background:
        radial-gradient(circle at top left, rgba(47, 143, 212, 0.10), transparent 30%),
        linear-gradient(180deg, #f6f9fb 0%, #eef4f7 100%);
      overflow-x: hidden;
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      width: 420px;
      height: 420px;
      border-radius: 50%;
      filter: blur(90px);
      opacity: 0.18;
      pointer-events: none;
      z-index: 0;
    }

    body::before {
      top: -120px;
      left: -120px;
      background: rgba(47, 143, 212, 0.30);
    }

    body::after {
      right: -140px;
      bottom: -120px;
      background: rgba(44, 154, 104, 0.22);
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .app-shell {
      position: relative;
      z-index: 1;
      width: min(1120px, calc(100% - 24px));
      margin: 0 auto;
      padding: 20px 0 40px;
    }

    .hero,
    .calculator-shell {
      opacity: 0;
      animation: fade-up 0.8s var(--ease-premium) forwards;
    }

    .hero {
      display: none;
    }

    .hero-card,
    .hero-side,
    .calculator-shell,
    .surface,
    .context-card,
    .chart-card,
    .table-card,
    .scenario-card,
    .share-card,
    .report-card,
    .summary-card,
    .prompt-card,
    .toast {
      border: 1px solid var(--color-border-primary);
      background: var(--color-surface);
      border-radius: var(--border-radius-lg);
      box-shadow: var(--shadow-md);
    }

    .hero-card {
      padding: 30px 30px 28px;
      position: relative;
      overflow: hidden;
    }

    .hero-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, rgba(78, 192, 255, 0.11), transparent 42%, rgba(108, 224, 175, 0.08));
      pointer-events: none;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 8px 14px;
      border-radius: 999px;
      color: #dff5ff;
      background: rgba(78, 192, 255, 0.12);
      border: 1px solid rgba(78, 192, 255, 0.18);
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 18px;
    }

    .eyebrow::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--color-energy);
      box-shadow: 0 0 0 6px rgba(108, 224, 175, 0.14);
    }

    .hero h1 {
      font-size: clamp(2rem, 4vw, 3.5rem);
      line-height: 1.02;
      margin-bottom: 16px;
      max-width: 11ch;
      letter-spacing: -0.035em;
    }

    .hero-copy {
      position: relative;
      z-index: 1;
    }

    .hero-copy p {
      font-size: 1.02rem;
      line-height: 1.72;
      color: var(--color-text-secondary);
      max-width: 62ch;
      margin-bottom: 26px;
    }

    .hero-points {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 24px;
    }

    .hero-point {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.06);
      color: var(--color-text-secondary);
      font-size: 13px;
    }

    .hero-point strong {
      color: var(--color-text-primary);
      font-weight: 600;
    }

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

    .hero-stat {
      padding: 18px;
      border-radius: var(--border-radius-md);
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hero-stat .num {
      font-size: 1.6rem;
      font-weight: 700;
      display: block;
      margin-bottom: 6px;
      color: #f6fbff;
    }

    .hero-stat .txt {
      font-size: 0.88rem;
      line-height: 1.6;
      color: var(--color-text-secondary);
    }

    .hero-side {
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 18px;
      justify-content: space-between;
      animation-delay: 0.12s;
    }

    .side-label {
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--color-text-tertiary);
    }

    .hero-side h2 {
      font-size: 1.5rem;
      line-height: 1.18;
      margin: 8px 0 12px;
    }

    .hero-side p {
      color: var(--color-text-secondary);
      line-height: 1.68;
      font-size: 0.95rem;
    }

    .rail-list {
      display: grid;
      gap: 12px;
      margin-top: 4px;
    }

    .rail-item {
      padding: 14px 16px;
      border-radius: var(--border-radius-md);
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .rail-item strong {
      display: block;
      margin-bottom: 5px;
      font-size: 0.98rem;
    }

    .rail-item span {
      color: var(--color-text-secondary);
      font-size: 0.88rem;
      line-height: 1.55;
    }

    .hero-note {
      padding: 16px 18px;
      border-radius: var(--border-radius-md);
      background: linear-gradient(135deg, rgba(78, 192, 255, 0.12), rgba(108, 224, 175, 0.08));
      border: 1px solid rgba(108, 224, 175, 0.18);
      color: #d7fff0;
      font-size: 0.92rem;
      line-height: 1.6;
    }

    .calculator-shell {
      padding: 24px;
      box-shadow: var(--shadow-lg);
      animation-delay: 0.18s;
    }

    .calculator-head {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: center;
      margin-bottom: 18px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--color-border-primary);
    }

    .calculator-head h2 {
      font-size: clamp(1.4rem, 2.6vw, 2.1rem);
      margin-bottom: 6px;
      letter-spacing: -0.02em;
      line-height: 0.95;
    }

    .calculator-head p {
      color: var(--color-text-secondary);
      max-width: 58ch;
      line-height: 1.35;
      font-size: 0.95rem;
    }

    .workflow-badge {
      min-width: 210px;
      text-align: left;
      color: var(--color-text-secondary);
      font-size: 0.9rem;
      line-height: 1.55;
      padding: 14px 16px;
      border-radius: 16px;
      background: var(--color-background-tertiary);
      border: 1px solid var(--color-border-primary);
    }

    .workflow-badge strong {
      display: block;
      color: var(--color-text-primary);
      font-size: 1rem;
      margin-bottom: 6px;
    }

    .prog {
      position: relative;
      height: 10px;
      background: #e3edf2;
      border-radius: 999px;
      overflow: hidden;
      border: 1px solid #dde8ee;
      margin-bottom: 18px;
    }

    .prog-f {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(105, 64, 255, 1) 22%, #12ACE5 100%);
      box-shadow: 0 0 22px rgba(78, 192, 255, 0.34);
      transition: width 0.55s var(--ease-premium);
    }

    .tabs {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 24px;
    }

    .tab {
      appearance: none;
      padding: 14px 12px;
      border-radius: 16px;
      border: 1px solid #d7e3ea;
      background: #f7fafc;
      color: var(--color-text-secondary);
      cursor: pointer;
      font-family: var(--font-sans);
      font-size: 13px;
      font-weight: 600;
      text-align: left;
      transition: transform 0.3s var(--ease-premium), border-color 0.3s var(--ease-premium), background 0.3s var(--ease-premium), color 0.3s var(--ease-premium);
    }

    .tab:hover,
    .tab:focus-visible {
      transform: translateY(-2px);
      border-color: rgba(78, 192, 255, 0.28);
      color: var(--color-text-primary);
      outline: none;
    }

    .tab.on {

      color: #fff;
      background: linear-gradient(90deg, rgba(105, 64, 255, 1) 22%, #12ACE5 100%);
      border-color: rgba(47, 143, 212, 0.28);
      box-shadow: inset 0 0 0 1px rgba(47, 143, 212, 0.10);
    }

    .tab.done {
      color: #256b50;
      background: linear-gradient(135deg, rgba(44, 154, 104, 0.12), rgba(44, 154, 104, 0.04));
      border-color: rgba(44, 154, 104, 0.22);
    }

    .pnl {
      display: none;
    }

    .pnl.on {
      display: block;
      animation: panel-in 0.55s var(--ease-premium);
    }

    .panel-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
      gap: 20px;
      align-items: start;
    }

    .surface,
    .context-card,
    .chart-card,
    .table-card,
    .scenario-card,
    .share-card,
    .report-card,
    .summary-card,
    .prompt-card {
      padding: 22px;
    }

    .surface {
      background: var(--color-surface-strong);
    }

    .surface--soft {
      background: rgba(255, 255, 255, 0.03);
    }

    .surface--accent,
    .summary-card {
      background: linear-gradient(145deg, rgba(47, 143, 212, 0.10), rgba(255, 255, 255, 0.98) 55%, rgba(44, 154, 104, 0.05));
    }

    .panel-kicker,
    .sec {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #4a697a;
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .panel-kicker::before,
    .sec::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: linear-gradient(90deg, rgba(105, 64, 255, 1) 22%, #12ACE5 100%);
      box-shadow: 0 0 0 6px rgba(78, 192, 255, 0.13);
    }

    .panel-title {
      font-size: 1.65rem;
      line-height: 1.15;
      letter-spacing: -0.02em;
      margin-bottom: 10px;
    }

    .panel-copy {
      color: var(--color-text-secondary);
      line-height: 1.68;
      font-size: 0.95rem;
      margin-bottom: 24px;
      max-width: 58ch;
    }

    .surface+.surface,
    .context-card+.context-card,
    .chart-card+.table-card,
    .table-card+.scenario-wrap {
      margin-top: 18px;
    }

    .field-group+.field-group {
      margin-top: 16px;
    }

    .group-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: baseline;
      margin-bottom: 14px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--color-border-primary);
    }

    .group-head h4 {
      font-size: 1rem;
      font-weight: 600;
    }

    .group-head span {
      color: #000;
      font-size: 0.85rem;
    }

    .row2,
    .row3,
    .cta-row {
      display: grid;
      gap: 14px;
      margin-bottom: 14px;
    }

    .row2,
    .cta-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .row3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .field {
      padding: 16px;
      border-radius: 18px;
      background: #f8fbfc;
      border: 1px solid #dfe8ed;
    }

    .field--range {
      padding-bottom: 14px;
    }

    .lbl {
      display: block;
      font-size: 13px;
      color: #000;
      margin-bottom: 8px;
      font-weight: 600;
    }

    .helper,
    .hint,
    .field-meta {
      color: var(--color-text-secondary);
      font-size: 12px;
      line-height: 1.55;
      margin-top: 8px;
    }

    select,
    input[type="number"],
    input[type="text"],
    input[type="email"] {
      width: 100%;
      min-height: 50px;
      border-radius: 14px;
      border: 1px solid #d1dee6;
      background: #ffffff;
      color: var(--color-text-primary);
      padding: 14px 16px;
      font-size: 14px;
      font-family: var(--font-sans);
      transition: border-color 0.25s var(--ease-premium), box-shadow 0.25s var(--ease-premium), background 0.25s var(--ease-premium), transform 0.25s var(--ease-premium);
    }

    select {
      appearance: none;
      background-image:
        linear-gradient(45deg, transparent 50%, var(--color-text-secondary) 50%),
        linear-gradient(135deg, var(--color-text-secondary) 50%, transparent 50%);
      background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
      padding-right: 42px;
    }

    select:focus-visible,
    input[type="number"]:focus-visible,
    input[type="text"]:focus-visible,
    input[type="email"]:focus-visible,
    .btn-p:focus-visible,
    .btn-s:focus-visible,
    .share-btn:focus-visible,
    .tab:focus-visible {
      outline: none;
      border-color: rgba(47, 143, 212, 0.45);
      box-shadow: 0 0 0 4px rgba(47, 143, 212, 0.12);
      transform: translateY(-1px);
    }

    .inp-w {
      position: relative;
    }

    .pre,
    .suf {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: var(--color-text-secondary);
      font-size: 13px;
      pointer-events: none;
      z-index: 1;
    }

    .pre {
      left: 14px;
    }

    .suf {
      right: 14px;
    }

    .has-pre input {
      padding-left: 34px;
    }

    .has-suf input {
      padding-right: 46px;
    }

    .sl-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
    }

    input[type="range"] {
      width: 100%;
      height: 8px;
      appearance: none;
      background: transparent;
      --pct: 50%;
    }

    input[type="range"]::-webkit-slider-runnable-track {
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(105, 64, 255, 1) 22%, #12ACE5 100%) no-repeat;
      background-size: var(--pct) 100%;
      background-color: rgba(0, 0, 0, 0.05);
    }

    input[type="range"]::-moz-range-track {
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(105, 64, 255, 1) 22%, #12ACE5 100%) no-repeat;
      background-size: var(--pct) 100%;
      background-color: rgba(0, 0, 0, 0.05);
    }

    input[type="range"]::-webkit-slider-thumb {
      appearance: none;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #ffffff;
      border: 4px solid #12ACE5;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
      margin-top: -7px;
      cursor: pointer;
    }

    input[type="range"]::-moz-range-thumb {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #ffffff;
      border: 4px solid #12ACE5;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
      cursor: pointer;
    }

    .sl-v {
      min-width: 70px;
      text-align: center;
      padding: 9px 12px;
      border-radius: 12px;
      background: #eef7fc;
      border: 1px solid #cfe2ec;
      color: #184560;
      font-weight: 700;
      font-family: var(--font-mono);
      font-size: 0.94rem;
    }

    .context-card h3,
    .report-card h3,
    .summary-card h3,
    .prompt-card h3,
    .chart-card h3,
    .table-card h3,
    .scenario-card h3,
    .share-card h3 {
      font-size: 1.15rem;
      margin-bottom: 8px;
      margin-top: 8px;
    }

    .context-card p,
    .report-card p,
    .summary-card p,
    .prompt-card p,
    .chart-card p,
    .table-card p,
    .scenario-card p,
    .share-card p {
      color: var(--color-text-secondary);
      line-height: 1.68;
      font-size: 0.92rem;
    }

    .context-list,
    .report-list {
      display: grid;
      gap: 10px;
      margin-top: 16px;
    }

    .context-list li,
    .report-list li {
      list-style: none;
      display: flex;
      gap: 10px;
      align-items: flex-start;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.05);
      color: var(--color-text-secondary);
      line-height: 1.55;
      font-size: 0.9rem;
    }

    .context-list strong,
    .report-list strong {
      color: var(--color-text-primary);
      display: block;
      margin-bottom: 3px;
    }

    .list-icon {
      flex-shrink: 0;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(78, 192, 255, 0.12);
      color: #dff5ff;
      font-size: 12px;
      margin-top: 1px;
    }

    .nav {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      margin-top: 22px;
    }

    .nav-note {
      color: #000;
      font-size: 12px;
      line-height: 1.6;
    }

    .btn-p,
    .btn-s,
    .share-btn {
      appearance: none;
      border: 1px solid transparent;
      font-family: var(--font-sans);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.26s var(--ease-premium), box-shadow 0.26s var(--ease-premium), background 0.26s var(--ease-premium), border-color 0.26s var(--ease-premium), color 0.26s var(--ease-premium);
    }

    .btn-p {
      padding: 14px 22px;
      border-radius: 16px;
      background: linear-gradient(90deg, rgba(105, 64, 255, 1) 22%, #12ACE5 100%);
      color: #fff;
      box-shadow: 0 16px 34px rgba(78, 192, 255, 0.22);
    }

    .btn-p:hover,
    .btn-s:hover,
    .share-btn:hover {
      transform: translateY(-2px);
    }

    .btn-p:hover {
      box-shadow: 0 20px 40px rgba(78, 192, 255, 0.28);
    }

    .btn-s,
    .share-btn {
      padding: 13px 18px;
      border-radius: 16px;
      border-color: #d4e0e7;
      background: #ffffff;
      color: var(--color-text-primary);
    }

    .btn-s:hover,
    .share-btn:hover {
      border-color: rgba(78, 192, 255, 0.25);
      background: rgba(78, 192, 255, 0.08);
    }

    .results-wrap {
      display: grid;
      gap: 18px;
    }

    .ind-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 14px;
      margin-right: 10px;
      border-radius: 999px;
      background: rgba(44, 154, 104, 0.10);
      border: 1px solid rgba(44, 154, 104, 0.16);
      color: #1f6a4f;
      font-size: 12px;
      margin-bottom: 16px;
    }

    .ind-pill::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--color-energy);
      box-shadow: 0 0 0 6px rgba(108, 224, 175, 0.13);
    }

    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 18px;
    }

    .kpi {
      padding: 18px;
      border-radius: 20px;
      border: 1px solid #dfe8ed;
      background: #f9fbfc;
      min-height: 148px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .kpi.hi {
      background: linear-gradient(145deg, rgba(44, 154, 104, 0.12), rgba(255, 255, 255, 0.98) 60%);
      border-color: rgba(44, 154, 104, 0.16);
    }

    .kpi-l {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-text-tertiary);
      margin-bottom: 12px;
    }

    .kpi-v {
      font-size: clamp(1.4rem, 2.8vw, 2rem);
      line-height: 1.05;
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 10px;
    }

    .kpi.hi .kpi-v {
      color: #21553f;
    }

    .kpi-s {
      color: var(--color-text-secondary);
      font-size: 12px;
      line-height: 1.55;
    }

    .result-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
      gap: 18px;
      align-items: start;
    }

    .chart-card,
    .table-card,
    .scenario-card,
    .share-card,
    .report-card,
    .summary-card,
    .prompt-card {
      background: var(--color-surface-strong);
    }

    .chart-box {
      position: relative;
      width: 100%;
      height: 310px;
      margin-top: 16px;
    }

    .lgd {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 14px;
      font-size: 12px;
      color: var(--color-text-secondary);
    }

    .lgd-dot {
      width: 10px;
      height: 10px;
      display: inline-block;
      border-radius: 3px;
      margin-right: 6px;
      vertical-align: middle;
    }

    .bench-stack {
      display: grid;
      gap: 14px;
      margin-top: 18px;
    }

    .bench-row {
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
    }

    .bench-lbl {
      color: var(--color-text-secondary);
      font-size: 12px;
      line-height: 1.5;
      padding-top: 5px;
    }

    .bench-lines {
      display: grid;
      gap: 8px;
    }

    .bench-line {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
    }

    .bench-track {
      position: relative;
      height: 14px;
      border-radius: 999px;
      overflow: hidden;
      background: #edf3f6;
      border: 1px solid #e3ebef;
    }

    .bench-fill {
      position: absolute;
      inset: 0 auto 0 0;
      width: 0;
      border-radius: inherit;
      transition: width 0.8s var(--ease-premium);
    }

    .bench-b {
      background: linear-gradient(90deg, #ff7c66, #ffae90);
    }

    .bench-a {
      background: linear-gradient(90deg, #26b27c, #7ce3b9);
    }

    .bench-val {
      min-width: 88px;
      text-align: right;
      color: var(--color-text-secondary);
      font-size: 11px;
      font-family: var(--font-mono);
    }

    .bench-val strong {
      color: #ddfff0;
      font-weight: 600;
    }

    .tbl-wrap {
      overflow-x: auto;
      margin-top: 16px;
    }

    .tbl {
      width: 100%;
      min-width: 640px;
      border-collapse: collapse;
      font-size: 13px;
    }

    .tbl th {
      text-align: right;
      color: var(--color-text-tertiary);
      font-weight: 600;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      padding: 0 0 14px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .tbl td {
      padding: 14px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      color: var(--color-text-primary);
      vertical-align: middle;
    }

    .tbl tr:last-child td {
      border-bottom: none;
      font-weight: 700;
    }

    .td-b {
      color: #ffb6a5;
      text-align: right;
      padding-right: 14px;
      font-family: var(--font-mono);
      white-space: nowrap;
    }

    .td-a {
      color: #b1ffe1;
      text-align: right;
      font-family: var(--font-mono);
      white-space: nowrap;
    }

    .td-d {
      color: #a8dcff;
      text-align: right;
      font-family: var(--font-mono);
      white-space: nowrap;
    }

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

    .sc-card {
      padding: 18px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.03);
      cursor: pointer;
      transition: border-color 0.26s var(--ease-premium), transform 0.26s var(--ease-premium), background 0.26s var(--ease-premium), box-shadow 0.26s var(--ease-premium);
    }

    .sc-card:hover {
      transform: translateY(-2px);
    }

    .sc-card.sel {
      border-color: rgba(78, 192, 255, 0.35);
      background: linear-gradient(145deg, rgba(78, 192, 255, 0.12), rgba(255, 255, 255, 0.03));
      box-shadow: inset 0 0 0 1px rgba(78, 192, 255, 0.12);
    }

    .sc-name {
      font-size: 13px;
      color: var(--color-text-tertiary);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 8px;
    }

    .sc-desc {
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 42px;
}

    .sc-val {
      font-size: clamp(1.4rem, 2.8vw, 2rem);
      font-weight: 700;
      color: #000;
      margin-bottom: 8px;
      letter-spacing: -0.03em;
    }

    .sc-sub {
      color: var(--color-text-secondary);
      font-size: 12px;
      line-height: 1.55;
    }

    .note {
      padding: 16px 18px;
      border-radius: 16px;
      background: #f8fbfc;
      border: 1px solid #dfe8ed;
      color: #000;
      font-size: 12px;
      line-height: 1.75;
      margin-top: 16px;
    }

    .share-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 16px;
    }

    .report-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
      gap: 18px;
      align-items: start;
    }

    .summary-grid,
    #lead-summary {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 16px;
    }

    .summary-chip,
    .lead-stat {
      padding: 16px;
      border-radius: 16px;
      background: #f8fbfc;
      border: 1px solid #dfe8ed;
    }

    .summary-chip span,
    .lead-stat span {
      display: block;
      color: var(--color-text-tertiary);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 8px;
    }

    .summary-chip strong,
    .lead-stat strong {
      font-size: 1.2rem;
      line-height: 1.2;
      color: var(--color-text-primary);
      letter-spacing: -0.02em;
    }

    .privacy-note {
      margin-top: 14px;
      color: #000;
      font-size: 12px;
      line-height: 1.72;
    }

    .submit-msg {
      display: none;
      margin-top: 14px;
      padding: 16px 18px;
      border-radius: 16px;
      background: rgba(44, 154, 104, 0.10);
      border: 1px solid rgba(44, 154, 104, 0.18);
      color: #1f6a4f;
      line-height: 1.7;
      font-size: 14px;
    }

    .toast {
      position: fixed;
      right: 20px;
      bottom: 20px;
      z-index: 40;
      max-width: min(360px, calc(100% - 40px));
      padding: 14px 16px;
      color: #ffffff;
      background: rgba(23, 50, 65, 0.96);
      border-radius: 16px;
      transform: translateY(20px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s var(--ease-premium), transform 0.35s var(--ease-premium);
    }

    .toast.on {
      opacity: 1;
      transform: translateY(0);
    }

    .fade-stagger>* {
      opacity: 0;
      transform: translateY(16px);
      animation: fade-up 0.6s var(--ease-premium) forwards;
    }

    .fade-stagger>*:nth-child(2) {
      animation-delay: 0.05s;
    }

    .fade-stagger>*:nth-child(3) {
      animation-delay: 0.1s;
    }

    .fade-stagger>*:nth-child(4) {
      animation-delay: 0.15s;
    }

    .fade-stagger>*:nth-child(5) {
      animation-delay: 0.2s;
    }

    .fade-stagger>*:nth-child(6) {
      animation-delay: 0.25s;
    }

    @keyframes fade-up {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes panel-in {
      from {
        opacity: 0;
        transform: translateY(20px) scale(0.985);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    table.tbl th:nth-child(1) {
    text-align: left;
}

    @media (max-width: 1120px) {

      .hero,
      .panel-grid,
      .result-grid,
      .report-grid {
        grid-template-columns: 1fr;
      }

      .hero h1 {
        max-width: none;
      }

      .workflow-badge {
        text-align: left;
        min-width: 0;
      }

      .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 860px) {
      .app-shell {
        width: min(100% - 20px, 100%);
        padding-top: 18px;
      }

      .calculator-shell {
        padding: 18px;
      }

      .hero-card,
      .hero-side,
      .surface,
      .context-card,
      .chart-card,
      .table-card,
      .scenario-card,
      .share-card,
      .report-card,
      .summary-card,
      .prompt-card {
        padding: 18px;
      }

      .tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .row2,
      .row3,
      .cta-row,
      .summary-grid,
      #lead-summary,
      .hero-stat-grid,
      .sc-grid,
      .kpi-grid {
        grid-template-columns: 1fr;
      }

      .bench-row {
        grid-template-columns: 1fr;
      }

      .bench-lbl {
        padding-top: 0;
      }

      .nav {
        align-items: stretch;
      }

      .nav>* {
        width: 100%;
      }

      .btn-p,
      .btn-s,
      .share-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
      }

      .calculator-head {
        flex-direction: column;
      }
    }

    @media (max-width: 540px) {
      .hero-point {
        width: 100%;
        justify-content: flex-start;
      }

      .tab {
        font-size: 12px;
        padding: 12px 10px;
      }

      .panel-title {
        font-size: 1.35rem;
      }

      .kpi-v {
        font-size: 1.55rem;
      }

      .chart-box {
        height: 260px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }