/* ── WP THEME ANTI-HIJACKING — shell matches CC.html 1440px (spc) ── */
  .spc-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  .spc-wrap {
    --spc-ink: #0a0a0a;
    --spc-ink-soft: #3f3f46;
    --spc-ink-mute: #52525b;
    --spc-line: #e4e4e7;
    --spc-line-strong: #a1a1aa;
    --spc-paper: #f3f3f3;
    --spc-surface: #ffffff;
    --spc-mist: #fafafa;
    --spc-shell-max: 1440px;
    --spc-shell-pad: clamp(14px, 2.5vw, 28px);
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--spc-paper);
    color: var(--spc-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-numeric: tabular-nums lining-nums;
    display: block !important;
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: var(--spc-shell-max) !important;
    margin: 0 auto !important;
    padding: clamp(16px, 2.5vw, 28px) var(--spc-shell-pad) clamp(24px, 3vw, 40px) !important;
  }

  /* Break out of the WP content rail, then recage to the screener’s 1440px shell */
  @media (min-width: 1024px) {
    .spc-wrap {
      width: 100vw !important;
      max-width: 100vw !important;
      margin-left: calc(50% - 50vw) !important;
      margin-right: calc(50% - 50vw) !important;
      padding-top: clamp(16px, 2.5vw, 28px) !important;
      padding-bottom: clamp(24px, 3vw, 40px) !important;
      padding-left: max(var(--spc-shell-pad), calc((100vw - 1440px) / 2)) !important;
      padding-right: max(var(--spc-shell-pad), calc((100vw - 1440px) / 2)) !important;
    }
  }

  @media (max-width: 767px) {
    .spc-wrap {
      --spc-shell-pad: max(12px, env(safe-area-inset-left, 0px));
      padding: 12px max(12px, env(safe-area-inset-right, 0px)) 20px max(12px, env(safe-area-inset-left, 0px)) !important;
    }
  }

  .spc-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 8px 14px;
    background: var(--spc-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }
  .spc-skip:focus {
    left: var(--spc-shell-pad);
    top: 8px;
  }

  .spc-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--spc-ink-mute);
    list-style: none;
  }
  .spc-crumb a {
    color: var(--spc-ink-mute);
    text-decoration: none;
  }
  .spc-crumb li {
    display: inline-flex;
    align-items: center;
  }
  .spc-crumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--spc-line-strong);
  }

  .spc-card {
    background: var(--spc-surface) !important;
    border: 1px solid var(--spc-line) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 28px) !important;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .spc-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0a0a0a 0%, #777 45%, #0a0a0a 100%);
    z-index: 10;
    pointer-events: none;
  }

  /* ── HEADER ── */
  .spc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 14px;
    padding: 6px 0 0;
  }

  .spc-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--spc-ink-mute);
    margin-bottom: 8px;
  }

  .spc-title {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 700;
    color: var(--spc-ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .spc-sub {
    font-size: 14px;
    font-weight: 500;
    color: rgba(9, 9, 11, 0.6);
    margin-top: 8px;
    line-height: 1.5;
    max-width: 42rem;
  }

  .spc-brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--spc-ink);
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .spc-divider {
    height: 1px;
    background: var(--spc-line);
    width: 100%;
    margin-bottom: 22px;
  }

  /* ── GRID LAYOUT ── */
  .spc-body {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 28px 36px;
  }

  @media (max-width: 968px) {
    .spc-body {
      grid-template-columns: 1fr;
    }
  }

  .spc-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
  }

  @media (min-width: 969px) {
    .spc-inputs {
      border-right: 1px solid var(--spc-line);
      padding-right: 36px;
    }
  }

  .spc-results {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
  }

  /* ── Section label ── */
  .spc-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0a0a0a;
    margin-bottom: 4px;
    border-bottom: 2px solid #0a0a0a;
    padding-bottom: 8px;
  }

  /* ── Fields ── */
  .spc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .spc-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--spc-ink);
    letter-spacing: 0.01em;
  }

  .spc-label-hint {
    font-weight: 500;
    color: var(--spc-ink-mute);
  }

  .spc-input-row {
    display: flex;
    align-items: center;
    border: 2px solid #0a0a0a;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.15s ease, background 0.15s ease;
  }

  .spc-input-row:hover {
    background: #fafafa;
  }

  .spc-input-row:focus-within {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.18);
  }

  .spc-prefix {
    padding: 0 14px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
    background: #0a0a0a;
    border-right: 2px solid #0a0a0a;
    line-height: 44px;
    min-width: 42px;
    text-align: center;
    user-select: none;
  }

  .spc-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 0 14px;
    font-size: 16px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #0a0a0a;
    width: 100%;
    height: 44px;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums lining-nums;
  }

  .spc-input::placeholder {
    color: #71717a;
    font-weight: 500;
  }

  .spc-suffix {
    padding: 0 14px;
    font-size: 12px;
    color: #ffffff;
    background: #0a0a0a;
    border-left: 2px solid #0a0a0a;
    line-height: 44px;
    white-space: nowrap;
    user-select: none;
    font-weight: 600;
  }

  /* ── Sliders ── */
  .spc-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .spc-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #d4d4d8;
    outline: none;
    cursor: pointer;
  }

  .spc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0a0a0a;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #0a0a0a;
  }

  .spc-slider::-webkit-slider-thumb:hover {
    background: #000;
  }

  .spc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0a0a0a;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #0a0a0a;
  }

  .spc-slider-val {
    font-size: 12px;
    font-weight: 700;
    color: #0a0a0a;
    min-width: 72px;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  /* ── Toggle groups ── */
  .spc-toggle-group {
    display: flex;
    border: 2px solid #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    padding: 3px;
    gap: 3px;
  }

  .spc-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 8px;
    font-size: 12.5px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #3f3f46;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-weight: 600;
    border-radius: 6px;
  }

  .spc-toggle-btn.active {
    background: #0a0a0a;
    color: #ffffff;
    font-weight: 700;
    box-shadow: none;
  }

  .spc-toggle-btn:not(:last-child) {
    border-right: none;
  }

  .spc-toggle-btn:not(.active):hover {
    background: #f4f4f5;
    color: #0a0a0a;
  }

  /* ── Hero result ── */
  .spc-result-hero {
    background: #0a0a0a;
    border: 1px solid #0a0a0a;
    border-radius: 12px;
    padding: 24px 26px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
  }

  .spc-result-hero.depleted {
    background: #18181b;
    border-color: #27272a;
  }

  .spc-result-hero-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    margin-bottom: 10px;
  }

  .spc-result-hero-value {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums lining-nums;
  }
  
  .spc-result-hero-unit {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
    letter-spacing: 0;
  }

  .spc-result-hero-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.52);
    margin-top: 12px;
    font-weight: 400;
    line-height: 1.45;
    max-width: 42rem;
  }

  /* ── Stats ── */
  .spc-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .spc-stats-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }

  @media (max-width: 520px) {
    .spc-stats-grid, .spc-stats-grid-3 {
      grid-template-columns: 1fr;
    }
  }

  .spc-stat {
    background: var(--spc-mist);
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid var(--spc-line);
  }

  .spc-stat-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--spc-ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
  }

  .spc-stat-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--spc-ink);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums lining-nums;
  }

  .spc-stat-value.accent {
    color: var(--spc-ink-soft);
  }

  /* ── Tabs ── */
  .spc-tabs {
    display: flex;
    gap: 3px;
    background: var(--spc-mist);
    border: 1px solid var(--spc-line);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 16px;
    border-bottom: none;
  }

  .spc-tab {
    border: none;
    background: transparent;
    padding: 8px 14px;
    font-size: 12px;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--spc-ink-mute);
    cursor: pointer;
    border-bottom: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    flex: 1;
    text-align: center;
  }

  .spc-tab.active {
    color: var(--spc-ink);
    background: var(--spc-surface);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
  }

  .spc-tab:not(.active):hover {
    color: rgba(9, 9, 11, 0.72);
  }

  .spc-tab-panel {
    display: none;
  }

  .spc-tab-panel.active {
    display: block;
  }

  /* ── Chart ── */
  .spc-bar-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

  .spc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: rgba(9, 9, 11, 0.62);
    font-weight: 500;
  }

  .spc-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    flex-shrink: 0;
  }

  .spc-chart-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background: var(--spc-mist);
    border: 1px solid var(--spc-line);
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
  }

  /* ── Table ── */
  .spc-table-wrap {
    overflow: auto;
    max-height: 240px;
    border: 1px solid rgba(9, 9, 11, 0.06);
    border-radius: 10px;
    background: #fafafa;
  }

  .spc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }

  .spc-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f4f4f5;
    padding: 10px 14px;
    text-align: right;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(9, 9, 11, 0.65);
    border-bottom: 1px solid rgba(9, 9, 11, 0.06);
  }

  .spc-table thead th:first-child {
    text-align: left;
  }

  .spc-table tbody td {
    padding: 10px 14px;
    text-align: right;
    color: rgba(9, 9, 11, 0.68);
    border-bottom: 1px solid rgba(9, 9, 11, 0.04);
    white-space: nowrap;
    background: #ffffff;
  }

  .spc-table tbody td:first-child {
    text-align: left;
    color: rgba(9, 9, 11, 0.5);
    font-weight: 500;
  }

  .spc-table tbody tr:nth-child(even) td {
    background: #fafafa;
  }

  .spc-table tbody tr:last-child td {
    border-bottom: none;
  }

  .spc-table tbody tr:hover td {
    background: #f4f4f5;
  }

  .spc-table td.pos {
    color: #27272a;
    font-weight: 600;
  }

  .spc-table td.bold {
    font-weight: 600;
    color: #18181b;
  }

  /* ── Footer note ── */
  .spc-footer-note {
    font-size: 12px;
    color: var(--spc-ink-mute);
    line-height: 1.65;
    padding-top: 16px;
    border-top: 1px solid var(--spc-line);
  }

  /* ── SEO Article ── */
  .spc-article {
    background: var(--spc-surface) !important;
    border: 1px solid var(--spc-line);
    border-radius: 14px;
    margin-top: 16px;
    padding: clamp(20px, 2.4vw, 32px) clamp(18px, 2.2vw, 32px);
    box-shadow: none;
  }

  .spc-article h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--spc-ink);
    margin-top: 32px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-transform: none;
  }

  .spc-article h2:first-of-type {
    margin-top: 0;
  }

  .spc-article h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--spc-ink);
    margin-top: 20px;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
  }

  .spc-article p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--spc-ink-soft);
    margin-bottom: 14px;
    max-width: 72ch;
  }

  .spc-article p:last-child {
    margin-bottom: 0;
  }

  .spc-article a {
    color: var(--spc-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .spc-article ul, .spc-article ol {
    padding-left: 22px;
    margin-bottom: 16px;
    max-width: 72ch;
  }

  .spc-article li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--spc-ink-soft);
    margin-bottom: 8px;
  }

  .spc-formula-block {
    background: var(--spc-mist);
    border: 1px solid var(--spc-line);
    border-left: 3px solid var(--spc-ink);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: var(--spc-ink);
    font-weight: 600;
  }

  .spc-formula-block span {
    display: block;
    color: var(--spc-ink-mute);
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
  }

  .spc-callout {
    background: var(--spc-mist);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0;
    border: 1px solid var(--spc-line);
  }

  .spc-callout.warning {
    border-left: 3px solid var(--spc-ink);
  }

  .spc-callout p {
    color: var(--spc-ink-soft);
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 0;
  }

  .spc-callout strong {
    color: var(--spc-ink);
  }

  .spc-article-divider {
    border: none;
    border-top: 1px solid var(--spc-line);
    margin: 28px 0;
  }

  .spc-faq-item {
    border-bottom: 1px solid var(--spc-line);
    padding: 18px 0;
  }

  .spc-faq-item:last-child {
    border-bottom: none;
  }

  .spc-faq-q {
    font-size: 15px;
    font-weight: 600;
    color: var(--spc-ink);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
  }

  .spc-faq-a {
    font-size: 14.5px;
    color: var(--spc-ink-soft);
    line-height: 1.7;
    margin: 0;
    max-width: 72ch;
  }

  .spc-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 8px;
  }
  .spc-related a {
    display: block;
    padding: 14px 16px;
    background: var(--spc-mist);
    border: 1px solid var(--spc-line);
    border-radius: 10px;
    text-decoration: none;
    color: var(--spc-ink);
    font-size: 13.5px;
    font-weight: 600;
  }
  .spc-related a:hover { border-color: var(--spc-ink); }
  .spc-related span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--spc-ink-mute);
  }

  .spc-updated {
    font-size: 12px;
    color: var(--spc-ink-mute);
    margin-top: 8px;
  }

  .spc-card-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--spc-line);
    font-size: 12px;
    color: var(--spc-ink-mute);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .spc-card-footer a {
    color: var(--spc-ink-soft);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .spc-card-footer a:hover {
    color: var(--spc-ink);
  }

  /* ── Risk-reward bar ── */
  .spc-rr-bar-wrap { margin-top: 4px; }
  .spc-rr-bar-label { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; color: rgba(9, 9, 11, 0.62); margin-bottom: 8px; }
  .spc-rr-bar-track { height: 6px; background: rgba(9, 9, 11, 0.08); border-radius: 3px; overflow: hidden; position: relative; }
  .spc-rr-bar-fill { height: 100%; background: #09090b; border-radius: 3px; transition: width 0.3s ease; max-width: 100%; }

  /* ── Breakdown table ── */
  .spc-table-wrap { overflow: auto; border: 1px solid rgba(9, 9, 11, 0.06); border-radius: 10px; background: #fafafa; }
  .spc-breakdown-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .spc-breakdown-table td { padding: 10px 14px; text-align: right; color: rgba(9, 9, 11, 0.68); border-bottom: 1px solid rgba(9, 9, 11, 0.04); background: #ffffff; }
  .spc-breakdown-table tr:nth-child(even) td { background: #fafafa; }
  .spc-breakdown-table tr:last-child td { border-bottom: none; }
  .spc-breakdown-table td:first-child { text-align: left; color: rgba(9, 9, 11, 0.5); font-weight: 500; }
  .spc-breakdown-table td:last-child { font-weight: 600; color: #18181b; }
  .spc-breakdown-table td.danger { color: #18181b; font-weight: 600; }
  .spc-breakdown-table td.emerald { color: #18181b; font-weight: 600; }

  /* ── Scenarios panel ── */
  .spc-scenarios { display: flex; flex-direction: column; gap: 8px; }
  .spc-scenario-row { display: grid; grid-template-columns: 80px 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 10px 14px; background: #ffffff; border: 1px solid rgba(9, 9, 11, 0.06); border-radius: 8px; font-size: 12px; }
  .spc-scenario-row.header { background: #f4f4f5; font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: rgba(9, 9, 11, 0.65); border: none; padding: 8px 14px; }
  .spc-scenario-row.active-row { border-color: #09090b; background: #fafafa; }
  .spc-scenario-label { color: rgba(9, 9, 11, 0.68); font-weight: 600; }
  .spc-scenario-label.active-row { color: #09090b; }
  .spc-scenario-val { text-align: right; color: rgba(9, 9, 11, 0.68); font-weight: 500; }
  .spc-scenario-val.strong { color: #18181b; font-weight: 600; }
  .spc-scenario-val.neg { color: #18181b; font-weight: 600; }

  /* ── Danger & Emerald overrides for PSC ── */
  .spc-stat.danger-stat { border: 1px solid rgba(9, 9, 11, 0.05); }
  .spc-stat.danger-stat .spc-stat-label { color: rgba(9, 9, 11, 0.48); }
  .spc-stat-value.danger { color: #18181b; }
  .spc-stat-value.emerald { color: #18181b; }
  
  .spc-risk-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; background: #f4f4f5; color: rgba(9, 9, 11, 0.7); }
  .spc-risk-badge.low { background: #fafafa; border: 1px solid rgba(9,9,11,0.08); color: rgba(9,9,11,0.7); }
  .spc-risk-badge.medium { background: #f4f4f5; border: 1px solid rgba(9,9,11,0.12); color: rgba(9,9,11,0.8); }
  .spc-risk-badge.high { background: #e4e4e7; border: 1px solid rgba(9,9,11,0.2); color: #09090b; }
  .spc-risk-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  
  /* ── Input row danger ── */
  .spc-input-row.danger:focus-within { box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.18); }

  /* ── Depletion warning ── */
  .spc-depletion-banner {
    display: none;
    background: var(--spc-mist);
    border: 1px solid var(--spc-line);
    border-left: 3px solid var(--spc-ink);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13.5px;
    color: var(--spc-ink);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .spc-depletion-banner.visible { display: block; }
  
  /* ── Chart ── */
  .spc-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .spc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: rgba(9, 9, 11, 0.62);
    font-weight: 500;
  }
  .spc-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    flex-shrink: 0;
  }
  
  /* ── Table overrides ── */
  .spc-table-wrap {
    overflow: auto;
    max-height: 240px;
    border: 1px solid rgba(9, 9, 11, 0.06);
    border-radius: 10px;
    background: #fafafa;
  }

  .spc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }

  .spc-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f4f4f5;
    padding: 10px 14px;
    text-align: right;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(9, 9, 11, 0.65);
    border-bottom: 1px solid rgba(9, 9, 11, 0.06);
  }

  .spc-table thead th:first-child {
    text-align: left;
  }

  .spc-table tbody td {
    padding: 10px 14px;
    text-align: right;
    color: rgba(9, 9, 11, 0.68);
    border-bottom: 1px solid rgba(9, 9, 11, 0.04);
    white-space: nowrap;
    background: #ffffff;
  }

  .spc-table tbody td:first-child {
    text-align: left;
    color: rgba(9, 9, 11, 0.5);
    font-weight: 500;
  }

  .spc-table tbody tr:nth-child(even) td {
    background: #fafafa;
  }

  .spc-table tbody tr:last-child td {
    border-bottom: none;
  }

  .spc-table tbody tr:hover td {
    background: #f4f4f5;
  }

  .spc-table td.pos {
    color: #27272a;
    font-weight: 600;
  }
  
  .spc-table td.neg {
    color: rgba(9, 9, 11, 0.7);
  }

  .spc-table td.bold {
    font-weight: 600;
    color: #18181b;
  }
  
  .spc-table tr.zero td {
    background: rgba(9, 9, 11, 0.04);
    color: #18181b;
    font-weight: 600;
  }

/* ── SPC-only chrome (toolbar / advanced / print) ── */
.spc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.spc-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.spc-mode-toggle {
  display: inline-flex;
  border: 2px solid #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  padding: 3px;
  gap: 3px;
}
.spc-mode-btn {
  border: none;
  background: transparent;
  color: #3f3f46;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.spc-mode-btn.active {
  background: #0a0a0a;
  color: #ffffff;
  font-weight: 700;
}
.spc-mode-btn:not(.active):hover {
  background: #f4f4f5;
  color: #0a0a0a;
}
.spc-mode-hint {
  font-size: 12px;
  color: var(--spc-ink-mute);
  font-weight: 500;
}
.spc-advanced { display: none; }
.spc-wrap.is-advanced .spc-advanced { display: block; }
.spc-wrap.is-advanced .spc-row-2.spc-advanced { display: grid; }
.spc-wrap:not(.is-advanced) .spc-stat-adv { display: none; }
.spc-wrap:not(.is-advanced) .spc-tools-adv { display: none; }
.spc-wrap:not(.is-advanced) .spc-tab[data-tab="whatif"] { display: none; }
.spc-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid #0a0a0a;
  background: #ffffff;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.spc-tool-btn:hover { background: #0a0a0a; color: #ffffff; }
.spc-tool-btn:active { transform: translateY(1px); }
.spc-tool-btn svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.spc-tool-btn.primary { background: #0a0a0a; color: #ffffff; border-color: #0a0a0a; }
.spc-tool-btn.primary:hover { background: #000; color: #fff; }
.spc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0a0a0a;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}
.spc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.spc-hint {
  font-size: 11px;
  color: var(--spc-ink-mute);
  margin-top: -2px;
}
.spc-input[type="text"] { text-transform: uppercase; }
.spc-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .spc-row-2 { grid-template-columns: 1fr; }
}
.spc-result-hero-value.profit { color: #ffffff; }
.spc-result-hero-value.loss { color: #b0b0b0; }
.spc-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
}
.spc-badge.loss { background: rgba(255, 255, 255, 0.08); color: #b0b0b0; }
.spc-wrap.is-advanced .spc-stats-grid { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) {
  .spc-wrap.is-advanced .spc-stats-grid { grid-template-columns: 1fr; }
}
.spc-sensitivity {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 640px) {
  .spc-sensitivity { grid-template-columns: 1fr 1fr; }
}
.spc-sens-card {
  background: var(--spc-mist);
  border: 1px solid var(--spc-line);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.spc-sens-card .pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--spc-ink-mute);
  margin-bottom: 4px;
}
.spc-sens-card .val {
  font-size: 14px;
  font-weight: 700;
  color: var(--spc-ink);
}
#spc-print-area { display: none; }
@media print {
  body * { visibility: hidden !important; }
  .spc-wrap, .spc-wrap * { visibility: visible !important; }
  .spc-wrap {
    position: absolute !important;
    left: 0 !important; top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    background: #fff !important;
  }
  .spc-toolbar, .spc-slider-row, .spc-card-accent,
  .spc-article, .spc-toast { display: none !important; }
  .spc-card {
    box-shadow: none !important;
    border: 1px solid var(--spc-line) !important;
    padding: 16px !important;
    background: #fff !important;
  }
  .spc-body { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .spc-inputs { border-right: none !important; padding-right: 0 !important; }
  .spc-chart-wrap { height: 200px !important; break-inside: avoid; }
}
