    body {
      min-height: 100vh;
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 1.3rem;
      background: radial-gradient(circle at top, rgba(79, 70, 229, 0.08), transparent 45%), linear-gradient(180deg, #0f172a 0%, #020617 60%);
      color: #f8fbff;
      letter-spacing: 0.01em;
    }

    .navbar {
      position: sticky;
      top: 0;
      z-index: 1040;
    }

    .narrative {
      max-width: 820px;
      font-size: 1.3rem;
      line-height: 1.8;
      color: #f9fbff;
    }

    .frame-img {
      width: 100%;
      border-radius: 0.75rem;
      border: 1px solid rgba(148, 163, 184, 0.3);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .frame-img:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
    }

    .frame-lightbox {
      position: fixed;
      inset: 0;
      z-index: 1055;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .frame-lightbox-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.8);
      backdrop-filter: blur(6px);
    }

    .frame-lightbox-content {
      position: relative;
      z-index: 1;
      max-width: min(1560px, 97vw);
      width: 100%;
      padding: 1rem 1.5rem;
      max-height: 96vh;
      overflow: hidden;
    }

    .frame-lightbox-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.8rem;
      height: calc(96vh - 2rem);
    }

    @media (min-width: 992px) {
      .frame-lightbox-grid {
        grid-template-columns: minmax(0, 72%) minmax(0, 28%);
      }
    }

    .frame-lightbox-media {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      min-height: 0;
    }

    .frame-lightbox-caption h5 {
      font-weight: 600;
      color: #f8fafc;
      font-size: 1.3rem;
      line-height: 1.4;
    }

    .frame-lightbox-caption .text-muted {
      color: rgba(226, 232, 240, 0.7) !important;
      font-size: 1.05rem;
      letter-spacing: 0.01em;
    }

    .frame-lightbox-image-wrap {
      flex: 0 0 auto;
      min-height: 0;
      height: min(62vh, 640px);
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(148, 163, 184, 0.4);
      border-radius: 0.9rem;
      background: rgba(2, 6, 23, 0.45);
      overflow: hidden;
      padding: 0;
    }

    .frame-lightbox-media img {
      width: 100%;
      height: 100%;
      max-height: none;
      object-fit: cover;
      border-radius: 0.9rem;
    }

    .frame-lightbox-controls {
      margin-top: 0.15rem;
      padding-bottom: 0.35rem;
    }

    .frame-lightbox-caption {
      margin-bottom: 0.15rem;
    }

    .frame-lightbox-close {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid rgba(248, 250, 252, 0.4);
      color: #f8fbff;
      box-shadow: 0 4px 18px rgba(2, 6, 23, 0.5);
      font-size: 0.95rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 0.45rem 1.25rem;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .frame-lightbox-close:hover {
      background: rgba(248, 250, 252, 0.95);
      color: #0f172a;
      border-color: rgba(15, 23, 42, 0.25);
    }

    .lightbox-code-panel {
      background: rgba(2, 6, 23, 0.78);
      border: 1px solid rgba(148, 163, 184, 0.4);
      border-radius: 0.75rem;
      padding: 1rem 1.25rem;
      max-height: 95vh;
      display: flex;
      flex-direction: column;
    }

    .lightbox-code-panel pre {
      flex: 1;
      margin: 0;
      overflow-y: auto;
      max-height: calc(95vh - 5rem);
    }

    .lightbox-code-panel code {
      display: block;
      font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 0.95rem;
      color: #e2e8f0;
      white-space: pre-wrap;
    }

    mark {
      background: rgba(250, 204, 21, 0.35);
      color: inherit;
      padding: 0 0.2em;
      border-radius: 0.2rem;
    }

    .card {
      border: 1px solid rgba(148, 163, 184, 0.2);
      border-radius: 1rem;
      background: rgba(15, 23, 42, 0.55);
      color: inherit;
      backdrop-filter: blur(4px);
    }

    .video-card {
      position: relative;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    }

    .video-card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      border: 1.5px solid transparent;
      pointer-events: none;
      transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .video-card:hover,
    .video-card:focus-visible {
      transform: translateY(-6px);
      border-color: rgba(94, 234, 212, 0.7);
      box-shadow: 0 20px 55px rgba(2, 6, 23, 0.45);
      background: rgba(15, 23, 42, 0.75);
      outline: none;
    }

    .video-card:hover::before,
    .video-card:focus-visible::before {
      border-color: rgba(94, 234, 212, 0.8);
      box-shadow: 0 0 25px rgba(94, 234, 212, 0.35);
    }

    .card-title {
      font-size: 1.25rem;
      font-weight: 600;
      color: #f8fafc;
    }

    .script-card .script-toggle {
      border-color: rgba(148, 163, 184, 0.5);
      color: #f8fbff;
    }

    .script-card .script-toggle i {
      font-size: 1rem;
    }

    .process-card {
      position: relative;
      padding: 1.75rem;
      background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.85));
      border: 1px solid rgba(148, 163, 184, 0.25);
      overflow: hidden;
      color: #e2e8f0;
    }

    .process-card h3 {
      color: #f1f5ff;
    }

    .process-card::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      border: 1px solid transparent;
      background: linear-gradient(120deg, rgba(56, 189, 248, 0.35), rgba(129, 140, 248, 0.35));
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 0;
    }

    .process-card:hover::after {
      opacity: 0.35;
    }

    .process-card>* {
      position: relative;
      z-index: 1;
    }

    .process-card .process-body {
      margin-top: 0.9rem;
    }

    .process-header {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 0.75rem;
      color: #a5b4fc;
    }

    .process-header .icon-badge {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      background: rgba(94, 234, 212, 0.18);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: #5eead4;
      border: 1px solid rgba(94, 234, 212, 0.35);
    }

    .process-list {
      padding-left: 1.2rem;
      margin-bottom: 0;
      color: rgba(226, 232, 240, 0.92);
    }

    .process-list li {
      margin-bottom: 0.4rem;
      font-size: 1rem;
    }

    .replication-card {
      background: rgba(15, 23, 42, 0.65);
      border: 1px solid rgba(148, 163, 184, 0.25);
      padding: 1.5rem 1.75rem;
      height: 100%;
      font-size: 1.2rem;
    }

    .replication-card .info-steps,
    .replication-card .info-steps li {
      font-size: 1.15rem;
    }

    .benchmark-card {
      position: relative;
      overflow: hidden;
      border-radius: 1rem;
      padding: 1.15rem 1.25rem;
      background: linear-gradient(150deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.9));
      border: 1px solid rgba(148, 163, 184, 0.35);
      box-shadow: 0 16px 36px rgba(2, 6, 23, 0.4);
      transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    }

    .benchmark-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 12% 8%, rgba(94, 234, 212, 0.25), transparent 55%);
      opacity: 0.6;
      pointer-events: none;
    }

    .benchmark-card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(120deg, rgba(94, 234, 212, 0.4), rgba(56, 189, 248, 0.35), rgba(129, 140, 248, 0.35));
      opacity: 0;
      transition: opacity 0.35s ease;
      pointer-events: none;
      mix-blend-mode: screen;
    }

    .benchmark-card:hover {
      transform: translateY(-8px);
      border-color: rgba(94, 234, 212, 0.6);
      box-shadow: 0 28px 70px rgba(2, 6, 23, 0.55);
    }

    .benchmark-card:hover::before {
      opacity: 0.35;
    }

    .benchmark-header {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      margin-bottom: 1rem;
      position: relative;
      z-index: 1;
    }

    .benchmark-icon {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      background: rgba(94, 234, 212, 0.2);
      color: #5eead4;
      border: 1px solid rgba(94, 234, 212, 0.5);
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
    }

    .benchmark-card h3 {
      margin: 0;
      font-size: 1.35rem;
      color: #f8fafc;
    }

    .benchmark-meta {
      color: rgba(226, 232, 240, 0.85);
      font-size: 1.1rem;
      margin-bottom: 0.9rem;
      position: relative;
      z-index: 1;
    }

    .benchmark-hero {
      font-size: 2rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #f8fafc;
      margin-bottom: 0.35rem;
      position: relative;
      z-index: 1;
    }

    .benchmark-hero span {
      font-size: 1.15rem;
      color: rgba(226, 232, 240, 0.75);
      margin-left: 0.35rem;
      font-weight: 500;
    }

    .benchmark-sub {
      color: rgba(226, 232, 240, 0.8);
      font-size: 1.1rem;
      margin-bottom: 1rem;
      position: relative;
      z-index: 1;
    }

    .benchmark-meter {
      position: relative;
      height: 10px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.7);
      overflow: hidden;
      margin-bottom: 1rem;
    }

    .benchmark-meter span {
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(90deg, rgba(94, 234, 212, 0.9), rgba(56, 189, 248, 0.85));
      width: 0%;
      animation: meterFill 1.2s ease forwards;
    }

    .benchmark-meter:nth-child(2) span { animation-delay: 0.15s; }
    .benchmark-meter:nth-child(4) span { animation-delay: 0.3s; }
    .benchmark-meter:nth-child(6) span { animation-delay: 0.45s; }

    .benchmark-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 0.55rem;
      position: relative;
      z-index: 1;
    }

    .benchmark-list li {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.6rem 0.85rem;
      border-radius: 0.65rem;
      background: rgba(2, 6, 23, 0.5);
      border: 1px solid rgba(148, 163, 184, 0.25);
      font-size: 1.1rem;
      color: #e2e8f0;
    }

    .benchmark-chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-top: 0.6rem;
      position: relative;
      z-index: 1;
    }

    .benchmark-chip {
      padding: 0.35rem 0.75rem;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(148, 163, 184, 0.3);
      color: rgba(226, 232, 240, 0.9);
      font-size: 0.85rem;
      font-weight: 600;
    }

    .benchmark-success-center {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0.5rem 0 1rem;
      position: relative;
      z-index: 1;
    }

    .benchmark-ring {
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: conic-gradient(#5eead4 var(--ring), rgba(15, 23, 42, 0.4) 0);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 1;
      box-shadow: 0 8px 22px rgba(2, 6, 23, 0.4);
      animation: ringReveal 1.4s ease forwards;
      transition: --ring 1.5s ease-out;
    }

    .benchmark-ring span {
      width: 132px;
      height: 132px;
      border-radius: 50%;
      background: rgba(15, 23, 42, 0.9);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #f8fafc;
      font-weight: 700;
      font-size: 1.5rem;
    }

    @keyframes ringReveal {
      from { opacity: 0; transform: scale(0.85); }
      to { opacity: 1; transform: scale(1); }
    }

    @supports (background: conic-gradient(white var(--ring), transparent 0)) {
      @property --ring {
        syntax: '<percentage>';
        inherits: false;
        initial-value: 0%;
      }
    }

    @keyframes meterFill {
      from {
        width: 0%;
      }

      to {
        width: var(--meter);
      }
    }

    .benchmark-list strong {
      color: #f8fafc;
      font-weight: 600;
    }

    .benchmark-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.35rem 0.7rem;
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 600;
      background: rgba(59, 130, 246, 0.2);
      color: #bfdbfe;
      border: 1px solid rgba(59, 130, 246, 0.35);
    }

    .replication-card h3 {
      font-size: 1.3rem;
      margin-bottom: 0.85rem;
      color: #e0e7ff;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .replication-card h3 i {
      font-size: 1.2rem;
      opacity: 0.8;
    }

    .replication-card h3 i {
      font-size: 1.2rem;
      opacity: 0.8;
    }

    .info-steps {
      list-style: none;
      padding-left: 0;
      margin: 0;
      font-size: 1.05rem;
      color: rgba(226, 232, 240, 0.92);
    }

    .info-steps li {
      margin-bottom: 1.4rem;
    }

    .command-block {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      background: rgba(2, 6, 23, 0.85);
      border: 1px solid rgba(148, 163, 184, 0.45);
      border-radius: 0.55rem;
      padding: 0.55rem 0.85rem;
      margin-top: 0.45rem;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .command-block.copied {
      border-color: #5eead4;
      box-shadow: 0 0 12px rgba(94, 234, 212, 0.35);
    }

    .command-block code {
      font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 1rem;
      color: #cbd5f5;
      flex: 1;
      margin: 0;
    }

    .command-block .copy-command {
      flex: 0 0 auto;
      border-color: rgba(148, 163, 184, 0.5);
      color: #f8fbff;
    }

    .command-block .copy-command i {
      pointer-events: none;
    }

    #global-copy-alert {
      position: fixed;
      top: 1rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 2000;
      min-width: 280px;
      text-align: center;
    }

    .card .small,
    .card small {
      font-size: 1.05rem;
    }

    .card-text,
    .text-muted {
      color: #f7fbff !important;
      font-size: 1.05rem;
    }

    .btn-outline-primary,
    .btn-outline-secondary,
    .btn-outline-light {
      border-width: 1.5px;
    }

    .frame-preview {
      border: none;
      background: transparent;
      cursor: zoom-in;
    }

    .frame-caption {
      color: #f9fbff;
      font-size: 1.2rem;
      line-height: 1.5;
    }

    .frame-caption-secondary {
      color: #d0dcff;
      font-size: 1rem;
    }

    [data-bs-theme="light"] body {
      background: radial-gradient(circle at top, rgba(79, 70, 229, 0.08), transparent 45%), #f9fafb;
      color: #0f172a;
    }

    [data-bs-theme="light"] .card {
      background: #ffffff;
      border: 1px solid rgba(15, 23, 42, 0.08);
    }

    [data-bs-theme="light"] .video-card:hover,
    [data-bs-theme="light"] .video-card:focus-visible {
      border-color: rgba(79, 70, 229, 0.45);
      box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
      background: #f4f4ff;
    }

    [data-bs-theme="light"] .video-card:hover::before,
    [data-bs-theme="light"] .video-card:focus-visible::before {
      border-color: rgba(79, 70, 229, 0.55);
      box-shadow: 0 0 25px rgba(79, 70, 229, 0.35);
    }

    [data-bs-theme="light"] .process-card {
      background: linear-gradient(145deg, #f8fafc, #eef2ff);
      border: 1px solid rgba(15, 23, 42, 0.08);
      color: #0f172a;
    }

    [data-bs-theme="light"] .process-card::after {
      background: linear-gradient(120deg, rgba(79, 70, 229, 0.2), rgba(14, 165, 233, 0.2));
    }

    [data-bs-theme="light"] .process-header {
      color: #1e293b;
    }

    [data-bs-theme="light"] .process-header .icon-badge {
      background: rgba(37, 99, 235, 0.12);
      border-color: rgba(37, 99, 235, 0.3);
      color: #1d4ed8;
    }

    [data-bs-theme="light"] .script-card .script-toggle {
      border-color: rgba(15, 23, 42, 0.25);
      color: #0f172a;
    }

    [data-bs-theme="light"] .process-card h3 {
      color: #0f172a;
    }

    [data-bs-theme="light"] .card .small,
    [data-bs-theme="light"] .card small {
      color: #1f2937 !important;
    }

    /* Keep frame lightbox text readable in light mode */
    [data-bs-theme="light"] .frame-lightbox #frame-lightbox-title {
      color: #f9fbff;
    }
    [data-bs-theme="light"] .frame-lightbox #frame-lightbox-desc {
      color: #e5edff !important;
    }

    [data-bs-theme="light"] .frame-caption {
      color: #0f172a;
    }

    [data-bs-theme="light"] .frame-caption-secondary {
      color: #334155;
    }

    [data-bs-theme="light"] .process-list {
      color: #475569 !important;
    }

    [data-bs-theme="light"] .replication-card {
      background: #ffffff;
      border: 1px solid rgba(15, 23, 42, 0.08);
      color: #0f172a;
    }

    [data-bs-theme="light"] .benchmark-card {
      background: linear-gradient(150deg, #ffffff, #eef2ff);
      border: 1px solid rgba(15, 23, 42, 0.1);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

    [data-bs-theme="light"] .benchmark-card::after {
      background: radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.2), transparent 55%);
    }

    [data-bs-theme="light"] .benchmark-icon {
      background: rgba(59, 130, 246, 0.12);
      color: #2563eb;
      border-color: rgba(59, 130, 246, 0.3);
    }

    [data-bs-theme="light"] .benchmark-card h3 {
      color: #0f172a;
    }

    [data-bs-theme="light"] .benchmark-hero {
      color: #0f172a;
    }

    [data-bs-theme="light"] .benchmark-hero span {
      color: #475569;
    }

    [data-bs-theme="light"] .benchmark-meta,
    [data-bs-theme="light"] .benchmark-sub {
      color: #475569;
    }

    [data-bs-theme="light"] .benchmark-list li {
      background: #f0f4ff;
      color: #1e293b;
      border-color: rgba(15, 23, 42, 0.12);
    }

    [data-bs-theme="light"] .benchmark-list strong {
      color: #0f172a;
    }

    [data-bs-theme="light"] .benchmark-list li span {
      color: #1e40af;
      font-weight: 600;
    }

    [data-bs-theme="light"] .benchmark-meter {
      background: rgba(15, 23, 42, 0.12);
    }

    [data-bs-theme="light"] .benchmark-pill {
      background: rgba(59, 130, 246, 0.12);
      color: #1d4ed8;
      border-color: rgba(59, 130, 246, 0.25);
    }

    [data-bs-theme="light"] .benchmark-chip {
      background: #f1f5ff;
      color: #1e293b;
      border-color: rgba(15, 23, 42, 0.08);
    }

    [data-bs-theme="light"] .benchmark-meter {
      background: rgba(226, 232, 240, 0.9);
    }

    [data-bs-theme="light"] .benchmark-ring span {
      background: #ffffff;
      color: #0f172a;
    }

    [data-bs-theme="light"] .replication-card h3 {
      color: #0f172a;
    }

    [data-bs-theme="light"] .info-steps {
      color: #475569 !important;
    }

    [data-bs-theme="light"] .command-block {
      background: #f8fafc;
      border: 1px solid rgba(15, 23, 42, 0.12);
      color: #0f172a;
    }

    [data-bs-theme="light"] .command-block code {
      color: #0f172a;
    }

    [data-bs-theme="light"] .command-block .copy-command {
      border-color: rgba(15, 23, 42, 0.2);
      color: #0f172a;
    }

    [data-bs-theme="light"] .card-title {
      color: #0f172a;
    }

    [data-bs-theme="light"] .narrative,
    [data-bs-theme="light"] .text-muted {
      color: #475569 !important;
    }

    /* Cost calculator (slider) */
    .chart-wrap {
      max-width: 100%;
      margin: 0 auto;
    }
    .chart-wrap h3 {
      font-size: 1.35rem;
      margin-bottom: 0.5rem;
      color: #f8fafc;
    }
    .chart-wrap > p {
      font-size: 1.1rem;
      color: rgba(226, 232, 240, 0.85);
      margin-bottom: 1.25rem;
    }
    .sim-wrap {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }
    .sim-controls {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .sim-controls .control {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      cursor: pointer;
    }
    .sim-controls .label-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 1.05rem;
      color: #e2e8f0;
    }
    .sim-controls .label-row strong {
      color: #5eead4;
      font-weight: 600;
    }
    .sim-controls input[type="range"] {
      width: 100%;
      height: 8px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.7);
      accent-color: #5eead4;
      cursor: pointer;
    }
    .sim-metrics {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
    }
    .sim-metrics-single {
      grid-template-columns: 1fr;
    }
    .sim-stat-hero .s-value {
      font-size: 1.75rem;
    }
    .sim-stat {
      background: rgba(2, 6, 23, 0.6);
      border: 1px solid rgba(148, 163, 184, 0.25);
      border-radius: 0.65rem;
      padding: 0.75rem 1rem;
      min-width: 0;
      overflow: hidden;
    }
    .sim-stat .s-label {
      font-size: 0.95rem;
      color: rgba(226, 232, 240, 0.8);
      margin-bottom: 0.35rem;
      line-height: 1.3;
      word-wrap: break-word;
    }
    .sim-stat .s-value {
      font-size: 1.3rem;
      font-weight: 700;
      color: #f8fafc;
      word-break: break-all;
    }
    .sim-assumptions {
      font-size: 0.85rem;
      color: rgba(226, 232, 240, 0.8);
      padding: 0.75rem 0;
      border-top: 1px solid rgba(148, 163, 184, 0.2);
    }
    .sim-assumptions .heading {
      font-weight: 600;
      color: #e2e8f0;
      margin-bottom: 0.5rem;
    }
    .sim-assumptions .line {
      margin-bottom: 0.35rem;
    }
    @media (min-width: 992px) {
      .sim-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }
    [data-bs-theme="light"] .chart-wrap h3 {
      color: #0f172a;
    }
    [data-bs-theme="light"] .chart-wrap > p {
      color: #475569;
    }
    [data-bs-theme="light"] .sim-controls .label-row {
      color: #1e293b;
    }
    [data-bs-theme="light"] .sim-controls .label-row strong {
      color: #0d9488;
    }
    [data-bs-theme="light"] .sim-controls input[type="range"] {
      background: rgba(226, 232, 240, 0.9);
      accent-color: #0d9488;
    }
    [data-bs-theme="light"] .sim-stat {
      background: #f0fdfa;
      border-color: rgba(15, 23, 42, 0.1);
    }
    [data-bs-theme="light"] .sim-stat .s-label {
      color: #475569;
    }
    [data-bs-theme="light"] .sim-stat .s-value {
      color: #0f172a;
    }
    [data-bs-theme="light"] .sim-assumptions {
      color: #475569;
    }
    [data-bs-theme="light"] .sim-assumptions .heading {
      color: #0f172a;
    }
    [data-bs-theme="light"] .sim-assumptions .line {
      color: #475569;
    }

    /* Replication CTA */
    .replication-cta-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 2rem 0;
    }
    .replication-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.85rem 1.75rem;
      border-radius: 999px;
      font-weight: 600;
      font-size: 1.05rem;
      text-decoration: none;
      color: #0f172a;
      background: linear-gradient(135deg, #5eead4, #2dd4bf);
      border: 1px solid rgba(94, 234, 212, 0.5);
      box-shadow: 0 8px 24px rgba(94, 234, 212, 0.35);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .replication-cta:hover {
      color: #0f172a;
      transform: translateY(-2px);
      box-shadow: 0 12px 32px rgba(94, 234, 212, 0.45);
    }
    .replication-cta i {
      font-size: 1.35rem;
    }
    [data-bs-theme="light"] .replication-cta {
      color: #0f172a;
    }

    /* Replicate page only */
    .replicate-tree,
    .replicate-code {
      font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 1.05rem;
      color: #e5edff;
      white-space: pre;
      background: rgba(15, 23, 42, 0.98);
      padding: 1rem 1.25rem;
      border-radius: 0.5rem;
      border: 1px solid rgba(148, 163, 184, 0.5);
      overflow-x: auto;
    }
    .replicate-code code {
      font-size: inherit;
      color: inherit;
      background: none;
    }
    .pipeline-step {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1rem;
      padding: 0.75rem;
      background: rgba(2, 6, 23, 0.5);
      border-radius: 0.65rem;
      border-left: 3px solid #5eead4;
    }
    .pipeline-num {
      font-weight: 700;
      color: #5eead4;
      min-width: 1.5rem;
    }
    [data-bs-theme="light"] .replicate-tree,
    [data-bs-theme="light"] .replicate-code {
      color: #1e293b;
      background: #e0f2fe;
      border-color: #0ea5e9;
    }
    [data-bs-theme="light"] .pipeline-step {
      background: #f0f4ff;
      border-left-color: #0d9488;
    }
    [data-bs-theme="light"] .pipeline-num {
      color: #0d9488;
    }
    .pipeline-code-wrap {
      max-height: 70vh;
      overflow: auto;
      border-radius: 0.5rem;
      border: 1px solid rgba(148, 163, 184, 0.25);
    }
    .pipeline-code-wrap .replicate-code {
      margin: 0;
      border: none;
      border-radius: 0;
    }

    /* VS Code–style code editor (replicate page pipeline block) */
    .vscode-code-editor {
      display: flex;
      font-family: Consolas, "Courier New", monospace;
      font-size: 14px;
      line-height: 1.5;
      background: #1e1e1e;
      color: #d4d4d4;
      border-radius: 0.5rem;
      overflow: hidden;
    }
    .vscode-code-editor .vscode-line-numbers {
      flex-shrink: 0;
      min-width: 3rem;
      padding: 1rem 0.75rem 1rem 1rem;
      text-align: right;
      color: #858585;
      user-select: none;
      border-right: 1px solid rgba(255, 255, 255, 0.08);
      line-height: 1.5;
      white-space: pre;
    }
    .vscode-code-editor .replicate-code {
      flex: 1;
      margin: 0;
      padding: 1rem 1.25rem;
      background: #1e1e1e !important;
      border: none;
      border-radius: 0;
      overflow-x: auto;
    }
    .vscode-code-editor .replicate-code code {
      background: transparent !important;
      color: #d4d4d4;
      font-family: inherit;
      font-size: inherit;
      padding: 0;
    }
    .vscode-code-editor .replicate-code code.hljs {
      padding: 0;
      background: transparent !important;
    }
    [data-bs-theme="light"] .vscode-code-editor {
      background: #1e1e1e;
    }
    [data-bs-theme="light"] .vscode-code-editor .replicate-code {
      background: #1e1e1e !important;
    }
    [data-bs-theme="light"] .vscode-code-editor .vscode-line-numbers {
      color: #858585;
      border-right-color: rgba(0, 0, 0, 0.12);
    }

    /* Replicate page video cards */
    .replication-video-card .card-title {
      font-size: 1rem;
      font-weight: 600;
    }
    .replication-video-card .card-img-top {
      height: 120px;
      object-fit: cover;
    }

    /* Copy full code button on replicate page */
    #copy-pipeline-btn {
      border-width: 1.5px;
      border-color: rgba(56, 189, 248, 0.8);
      color: #e0f2fe;
      background: rgba(8, 47, 73, 0.85);
    }
    #copy-pipeline-btn:hover {
      background: rgba(56, 189, 248, 0.2);
      color: #f9fafb;
    }
    [data-bs-theme="light"] #copy-pipeline-btn {
      border-color: #0ea5e9;
      color: #0f172a;
      background: #e0f2fe;
    }
    [data-bs-theme="light"] #copy-pipeline-btn:hover {
      background: #bae6fd;
      color: #0f172a;
    }
