      /* Product Showcase — feature tiles sharing .int-tile chrome (Atelier Glass).
         Layout is a flat 2-col grid, no 3D tilt, no overlap. Tile chrome comes
         from the shared .int-tile base so showcase + integrations speak the
         same visual language. */
      /* V-pattern 3-card stack:
           [ tile 1: Live feed          ][ tile 2: AI agent         ]
                    [ tile 3: Keepa profit calculator ]
         4-col grid, tiles span 2 cols each; row-2 tile is centered. */
      .showcase-stage {
        position: relative;
        max-width: 1180px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        gap: 24px;
      }
      .showcase-stage > :nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
      .showcase-stage > :nth-child(2) { grid-column: 3 / span 2; grid-row: 1; }
      .showcase-stage > :nth-child(3) { grid-column: 2 / span 2; grid-row: 2; }

      /* Feature tiles in the showcase are fully dark — no brand-tint halo in
         the top-right corner. The integration-grid tiles below keep theirs. */
      .int-tile.int-feature::before { display: none; }

      /* Feature tile variant — strict tile height so internal content changes
         (new feed rows, reasoning steps cycling, verdict reveal) never reshape
         the box. Shared .int-tile base chrome; bigger full-bleed brand logo. */
      .int-tile.int-feature { height: 540px; }
      .int-feature .int-tile-inner { padding: 20px; }
      .int-feature .int-viz.int-viz-tall {
        flex: 1;
        min-height: 0;
      }
      .int-viz.int-viz-tall { min-height: 430px; } /* non-feature fallback */

      /* Feature tile brand chip — 32px, full-bleed framed PNG (no double frame) */
      .int-feature .int-logo {
        width: 32px; height: 32px;
        border-radius: 8px;
        background: transparent;
        border: none;
        overflow: hidden;
      }
      .int-feature .int-logo img {
        width: 100%; height: 100%;
        object-fit: cover;
      }

      /* Stabilize reason target — fixed min-height so switching product sets
         doesn't nudge the panel a couple pixels between cycles */
      .ps-reason-target { min-height: 52px; }
      /* keepa tile target: single-line ellipsis so long names never clip against the chart stack */
      .ps-keepa-wrap .ps-reason-target .pt-name {
        display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        -webkit-line-clamp: unset;
        flex-shrink: 0;
      }
      /* fit budget: the tile viz clips at ~410px — keep every row rigid and
         absorb the space in the charts, never in the text rows */
      .ps-keepa-wrap { gap: 8px; }
      .ps-keepa-wrap .ps-reason-target { flex-shrink: 0; min-height: 0; padding: 9px 12px; }
      .ps-keepa-wrap .keepa-products,
      .ps-keepa-wrap .keepa-ctl,
      .ps-keepa-wrap .ps-reason-verdict { flex-shrink: 0; }
      .ps-keepa-wrap .keepa-sub svg.kc-chart { height: 68px; }
      .ps-keepa-wrap .keepa-sub + .keepa-sub svg.kc-chart { height: 41px; }

      /* ===== TILE 3: Keepa profit calculator (bottom-center of V) =====
         Port of fba-saas/components/sourcing/KeepaChart.tsx (mini variant):
         - Exact real Keepa color palette (Amazon #FF8C00, Buy Box #E91E8C,
           BSR #00C853)
         - Step-after lines (real Keepa renders stepAfter paths)
         - Dashed gridlines, range picker header, series toggles
         - Y-axis labels ($ on price, K-formatted on BSR), reversed BSR axis */
      .ps-keepa-wrap {
        width: 100%; height: 100%;
        display: flex; flex-direction: column;
        gap: 10px;
      }
      .keepa-ctl {
        display: flex; justify-content: space-between; align-items: center;
        flex-wrap: wrap; gap: 8px;
      }
      /* Product switcher — same interactive grammar as the range tabs */
      .keepa-products { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
      .keepa-products button {
        padding: 4px 10px; border-radius: 99px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.07);
        font-family: 'Inter', -apple-system, sans-serif;
        font-size: 10px; font-weight: 500;
        color: rgba(255,255,255,0.55);
        cursor: pointer;
        transition: background .2s, color .2s, border-color .2s;
      }
      .keepa-products button:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.06); }
      .keepa-products button.active {
        background: rgba(255,140,0,0.12);
        border-color: rgba(255,140,0,0.35);
        color: #FFB55C;
      }
      .keepa-products-hint {
        margin-left: auto;
        font-size: 9px; color: rgba(255,255,255,0.32);
        font-family: 'Inter', sans-serif; letter-spacing: 0.01em;
      }
      @media (max-width: 640px){ .keepa-products-hint { display: none; } }
      .keepa-legend { display: inline-flex; gap: 6px; flex-wrap: wrap; }
      .keepa-legend .lg {
        display: inline-flex; align-items: center; gap: 5px;
        padding: 2px 7px; border-radius: 6px;
        font-family: 'Inter', -apple-system, sans-serif;
        font-size: 9.5px; font-weight: 500; letter-spacing: 0.02em;
        color: rgba(255,255,255,0.72);
        background: rgba(255,255,255,0.03);
      }
      .keepa-legend .lg i { width: 10px; height: 2px; border-radius: 2px; display: inline-block; }
      .keepa-legend .lg-amazon i { background: #FF9900; }
      .keepa-legend .lg-buybox i { background: #E91E8C; }
      .keepa-legend .lg-bsr    i { background: #43A047; }
      .keepa-range { display: inline-flex; gap: 2px; }
      .keepa-range button {
        padding: 3px 8px; border-radius: 5px;
        background: transparent; border: none;
        font-family: 'Inter', -apple-system, sans-serif;
        font-size: 9.5px; font-weight: 500;
        color: rgba(255,255,255,0.3);
        cursor: default;
      }
      .keepa-range button {
        cursor: pointer;
        transition: background .2s, color .2s;
      }
      .keepa-range button:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.04); }
      .keepa-range button.active {
        background: rgba(255,255,255,0.09);
        color: var(--fg);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
      }
      .keepa-sub {
        position: relative;
        border-radius: 10px;
        background: rgba(255,255,255,0.015);
        border: 1px solid rgba(255,255,255,0.05);
        padding: 6px 8px 4px;
      }
      .keepa-sub .kc-head {
        display: flex; align-items: center; gap: 8px;
        font-family: 'Inter', sans-serif;
        font-size: 9.5px;
        color: rgba(255,255,255,0.45);
        letter-spacing: 0.02em;
      }
      .keepa-sub .kc-head .dot { width: 7px; height: 2px; border-radius: 2px; display: inline-block; }
      .keepa-sub svg.kc-chart { width: 100%; display: block; overflow: visible; }
      .keepa-sub .kc-yaxis {
        font-family: 'JetBrains Mono', monospace;
        font-size: 8.5px;
        fill: rgba(255,255,255,0.4);
      }
      .keepa-sub .kc-grid { stroke: rgba(255,255,255,0.06); stroke-width: 0.5; stroke-dasharray: 3 3; }
      /* Hover crosshair + tooltip (attached via JS) */
      .kc-hair {
        position: absolute; inset: 0;
        pointer-events: none; opacity: 0;
        transition: opacity .15s ease;
      }
      .kc-hair-line {
        position: absolute; top: 6px; bottom: 6px;
        width: 1px;
        background: rgba(255,255,255,0.25);
        box-shadow: 0 0 6px rgba(255,255,255,0.18);
      }
      .kc-hair-dot {
        position: absolute;
        width: 5px; height: 5px; border-radius: 99px;
        box-shadow: 0 0 0 2px rgba(0,0,0,0.55), 0 0 8px currentColor;
      }
      .kc-hair-tip {
        position: absolute; top: 4px;
        padding: 2px 7px; border-radius: 5px;
        background: rgba(255,255,255,0.95);
        color: #0a0a0a;
        font-family: 'JetBrains Mono', monospace;
        font-size: 9.5px; font-weight: 600;
        letter-spacing: -0.005em;
        font-variant-numeric: tabular-nums;
        box-shadow: 0 4px 10px -2px rgba(0,0,0,0.5);
        white-space: nowrap;
      }
      .keepa-sub svg.kc-chart { transition: opacity .28s ease; }

      /* ===== TILE 1: Live sourcing feed ===== */
      .ps-feed-wrap { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; }
      .ps-feed-scanning {
        display: flex; align-items: center; gap: 10px;
        padding: 10px 14px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 12px;
        font-size: 11.5px; color: rgba(255,255,255,0.85);
      }
      .ps-feed-scanning .spin {
        width: 14px; height: 14px;
        border: 1.5px solid rgba(255,255,255,0.12);
        border-top-color: rgba(255,255,255,0.85);
        border-radius: 99px;
        animation: psSpin 0.9s linear infinite;
      }
      .ps-feed-scanning .mono { font-family: 'JetBrains Mono', monospace; color: rgba(255,255,255,0.6); font-size: 10.5px; margin-left: auto; }
      @keyframes psSpin { to { transform: rotate(360deg); } }

      .ps-feed-rail {
        flex: 1;
        display: flex; flex-direction: column; gap: 8px;
        overflow: hidden;
        position: relative;
        contain: layout paint;
      }
      .ps-feed-row {
        display: grid;
        grid-template-columns: 36px 1fr auto;
        gap: 12px; align-items: center;
        padding: 12px 14px;
        background: rgba(255,255,255,0.025);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 12px;
        height: 62px;
        flex: 0 0 62px;
        box-sizing: border-box;
        animation: psFeedIn 0.45s cubic-bezier(.22,1,.36,1) both;
      }
      .ps-feed-row.exit { animation: psFeedOut 0.35s cubic-bezier(.4,0,.6,1) forwards; }
      @keyframes psFeedIn {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: translateY(0); }
      }
      @keyframes psFeedOut {
        from { opacity: 1; transform: translateY(0); }
        to   { opacity: 0; transform: translateY(-8px); }
      }
      .ps-feed-row .pfr-icon {
        width: 38px; height: 38px; border-radius: 10px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        display: grid; place-items: center;
        overflow: hidden;
      }
      .ps-feed-row .pfr-emoji { font-size: 20px; line-height: 1; }
      .ps-feed-row .pfr-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
      .ps-feed-row .pfr-name {
        font-size: 12.5px; color: var(--fg); font-weight: 500; letter-spacing: -0.005em;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      }
      .ps-feed-row .pfr-meta {
        font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
        color: rgba(255,255,255,0.55);
        display: inline-flex; gap: 8px; align-items: center;
      }
      .ps-feed-row .pfr-meta .src { color: rgba(255,255,255,0.75); }
      .ps-feed-row .pfr-meta .arrow { opacity: 0.4; }
      .ps-feed-row .pfr-time { color: rgba(255,255,255,0.35); font-size: 9.5px; }
      .ps-feed-row .pfr-right { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
      .ps-feed-row .pfr-roi {
        font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
        color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums;
      }
      .ps-feed-row .pfr-roi.skip { color: rgba(255,255,255,0.4); }
      /* Solid-gradient pill styling — matches .prv-final .tag in the reasoning
         tile so every verdict across the section uses the same visual grammar. */
      .ps-feed-row .pfr-verdict {
        padding: 4px 11px; border-radius: 99px;
        font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
        font-family: 'Inter', -apple-system, sans-serif;
        display: inline-flex; align-items: center;
        border: none;
      }
      .ps-feed-row .pfr-verdict.buy {
        background: linear-gradient(135deg, #4ade80, #22c55e);
        color: #0a2515;
        box-shadow: 0 6px 18px -6px rgba(74,222,128,0.55);
      }
      .ps-feed-row .pfr-verdict.may {
        background: linear-gradient(135deg, #f4c542, #D4A017);
        color: #2a1d05;
        box-shadow: 0 6px 18px -6px rgba(244,197,66,0.5);
      }
      .ps-feed-row .pfr-verdict.skip {
        background: linear-gradient(135deg, #ff8a8a, #ff6b6b);
        color: #2a0a0a;
        box-shadow: 0 6px 18px -6px rgba(255,107,107,0.5);
      }

      /* ===== TILE 2: AI Reasoning panel (Apple Intelligence feel) ===== */
      .ps-reason-wrap { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 14px; }

      .ps-reason-target {
        display: flex; flex-direction: column; gap: 2px;
        padding: 12px 14px;
        background: rgba(255,255,255,0.025);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 12px;
      }
      .ps-reason-target .pt-asin {
        font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
        color: rgba(255,255,255,0.65); letter-spacing: 0.04em;
      }
      .ps-reason-target .pt-name {
        font-size: 14px; color: var(--fg); font-weight: 500; letter-spacing: -0.01em;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .ps-reason-steps {
        display: flex; flex-direction: column; gap: 6px;
        flex: 1; min-height: 0;
        overflow: hidden;
        contain: layout paint;
      }
      .ps-reason-step {
        display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center;
        padding: 9px 12px;
        background: rgba(255,255,255,0.02);
        border-radius: 10px;
        font-size: 11.5px; color: rgba(255,255,255,0.75);
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.22,1,.36,1);
      }
      .ps-reason-step.live {
        background: linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
        border: 1px solid rgba(255,255,255,0.12);
      }
      .ps-reason-step.show { opacity: 1; transform: translateY(0); }
      .ps-reason-step .ico {
        width: 18px; height: 18px;
        border: 1.4px solid rgba(255,255,255,0.2);
        border-radius: 99px;
        display: grid; place-items: center;
        color: rgba(255,255,255,0.4);
      }
      .ps-reason-step.done .ico {
        background: rgba(74,222,128,0.14);
        border-color: rgba(74,222,128,0.45);
        color: var(--green);
      }
      .ps-reason-step.live .ico {
        border-color: rgba(255,255,255,0.85);
        border-top-color: transparent;
        animation: psSpin 0.9s linear infinite;
      }
      .ps-reason-step .txt em {
        font-style: normal; font-weight: 500; color: var(--fg);
      }
      .ps-reason-step .val {
        font-family: 'JetBrains Mono', monospace; font-size: 11px;
        color: rgba(255,255,255,0.6);
      }
      .ps-reason-step.done .val { color: var(--green); }

      .ps-reason-verdict {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 14px 16px;
        margin-top: auto;
        flex: 0 0 auto;
        background: rgba(255,255,255,0.025);
        border: 1px solid rgba(255,255,255,0.07);
        border-radius: 14px;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.22,1,.36,1);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
      }
      .ps-reason-verdict.show { opacity: 1; transform: translateY(0); }

      .prv-math {
        display: flex; flex-direction: column; gap: 4px;
        font-family: 'JetBrains Mono', monospace; font-size: 11px;
      }
      .prv-math .ln { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,0.7); }
      .prv-math .ln .k { color: rgba(255,255,255,0.55); }
      .prv-math .ln .v { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
      .prv-math .div { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }
      .prv-math .ln.profit .k { color: var(--green); font-weight: 600; }
      .prv-math .ln.profit .v { color: var(--green); font-weight: 600; }

      .prv-final { text-align: right; display: flex; flex-direction: column; gap: 4px; }
      .prv-final .label {
        font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
        color: rgba(255,255,255,0.5); font-weight: 500;
      }
      .prv-final .tag {
        padding: 6px 12px; border-radius: 99px;
        background: linear-gradient(135deg, #4ade80, #22c55e);
        color: #0a2515; font-weight: 700; font-size: 11px;
        letter-spacing: 0.04em; text-transform: uppercase;
        display: inline-flex; align-items: center; gap: 5px; justify-self: flex-end; align-self: flex-end;
        box-shadow: 0 6px 18px -6px rgba(74,222,128,0.6);
      }
      .prv-final .roi {
        font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500;
        font-size: 34px; letter-spacing: -0.02em; line-height: 1;
        background: linear-gradient(100deg, #f4c542 0%, #D4A017 50%, #f4c542 100%);
        -webkit-background-clip: text; background-clip: text; color: transparent;
      }

      @media (max-width: 900px) {
        .showcase-stage { grid-template-columns: 1fr; gap: 20px; }
        .showcase-stage > :nth-child(1),
        .showcase-stage > :nth-child(2),
        .showcase-stage > :nth-child(3) { grid-column: 1; grid-row: auto; }
        .int-tile.int-feature { height: 520px; }
        .int-viz.int-viz-tall { min-height: 340px; }
      }
      @media (max-width: 720px) {
        .showcase-stage::after { display: none; }
        .int-tile.int-feature { height: 500px; }
        .int-viz.int-viz-tall { min-height: 320px; }
      }
      @media (prefers-reduced-motion: reduce) {
        .ps-feed-row { animation: none !important; opacity: 1; transform: none; }
        .ps-reason-step { transition: none !important; }
        .ps-reason-verdict { transition: none !important; }
        .ps-feed-scanning .spin,
        .ps-reason-step.live .ico { animation: none !important; }
      }
      @media (max-width: 900px) {
        /* the interactive Keepa tile stacks chips + 2 charts + verdict — more
           than the fixed tile height holds on small screens: size to content */
        .int-tile.int-feature[aria-label="Keepa profit calculator"] { height: auto; }
        .int-tile.int-feature[aria-label="Keepa profit calculator"] .int-viz.int-viz-tall { min-height: 0; }
      }

  /* ── round-5: profit-calc tile math row + edge markers ── */
  .kc-cur { font-family: 'JetBrains Mono', monospace; font-size: 7.5px; font-weight: 600; }
  .pc-math {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    margin-top: 10px; padding: 9px 12px; border-radius: 10px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  }
  .pc-math i { font-style: normal; color: rgba(255,255,255,0.25); font-size: 11px; }
  .pcm { display: flex; flex-direction: column; gap: 1px; }
  .pcm em {
    font-style: normal; font-family: 'JetBrains Mono', monospace;
    font-size: 7.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute);
  }
  .pcm b { font-size: 12.5px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
  .pcm.pos b { color: var(--green); }
  .pc-roi {
    margin-left: auto; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500;
    font-size: 17px; letter-spacing: -0.02em;
    background: linear-gradient(100deg, #f4c542 0%, #D4A017 60%, #f4c542 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .pc-roi u { text-decoration: none; font-family: 'JetBrains Mono', monospace; font-style: normal; font-size: 8px; letter-spacing: 0.08em; }
  [data-theme="light"] .pc-math { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.07); }
  [data-theme="light"] .pc-math i { color: rgba(0,0,0,0.3); }
