/* Moved out of index.html so the Content-Security-Policy needs no 'unsafe-inline'. */
  /* Page-specific layout for the product hub. Candidates to move into the design system:
     .hub-hero, .ladder/.rung/.rung-link, .preview, .callouts/.callout, .ledger-row status groups. */
  .hub-hero { padding: 44px 0 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: end; }
  .hub-hero h1 { margin: 10px 0 0; font-size: 44px; line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; max-width: 760px; }
  .hub-hero h1 .grad { background: linear-gradient(92deg, #fff 0%, #b9c9ff 45%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hub-hero p { color: var(--text-dim); max-width: 640px; margin: 14px 0 0; font-size: 15px; line-height: 1.6; }
  .hub-hero .statusline { margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; min-width: 330px; }
  .hub-hero .statusline .st-head { padding: 8px 16px 6px; font-family: var(--sans); }
  .hub-hero .statusline > span.st { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px 16px; border-top: 1px solid var(--hairline); }
  .hub-hero .statusline > span.st .dot { margin-top: 5px; }
  .hub-hero .statusline .st-l { flex: 1; min-width: 0; }
  .hub-hero .statusline b { white-space: nowrap; }
  .dot.bad { background: var(--no); } .dot.warn { background: var(--warn); }
  .notice { margin: 14px 0 0; }
  .notice[hidden] { display: none; }
  .footer a { color: var(--text-dim); }
  .footer .links { margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
  .footer .links[hidden], .btn[hidden] { display: none; }

  .callouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin: 0 0 var(--s-4); }
  .callout { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md);
    background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--hairline);
    font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
  .callout b { color: var(--text); font-weight: 600; }
  .callout .ic { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; }
  .callout.bad .ic { color: var(--no); background: color-mix(in srgb, var(--no) 14%, transparent); }
  .callout.warn .ic { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }

  .section-head { display: flex; align-items: flex-end; gap: var(--s-3); flex-wrap: wrap; margin: var(--s-6) 0 var(--s-3); }
  .section-head h2 { margin: 6px 0 0; font-size: 22px; letter-spacing: -0.03em; font-weight: 700; }
  .section-head p { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; max-width: 640px; }

  .ladder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); position: relative; }
  .rung { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
  .rung[hidden] { display: none; }
  .rung-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; }
  .rung-top .icon-tile { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; color: var(--accent);
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--surface-3)), var(--surface-2)); }
  .rung-top h3 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
  .rung-top .eyebrow { margin-bottom: 1px; }
  .step { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
  .rung-role { padding: 0 16px 12px; color: var(--text-dim); font-size: 13px; line-height: 1.55; min-height: 62px; }
  .rung-role b { color: var(--text); font-weight: 600; }
  .rung .stats { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rung .stat { padding: 12px 14px; background: transparent; }
  .rung .stat .v { font-size: 17px; white-space: nowrap; }
  .rung-actions { display: flex; gap: 8px; padding: 14px 16px 16px; margin-top: auto; flex-wrap: wrap; align-items: center; }
  .rung-actions .meta { margin-left: auto; }

  .preview { position: relative; margin: 0 16px 14px; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10;
    background: var(--bg); border: 1px solid var(--hairline-strong); box-shadow: var(--shadow-2); }
  .preview .chrome { position: absolute; inset: 0 0 auto 0; height: 22px; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 0 9px;
    background: color-mix(in srgb, var(--surface-2) 92%, transparent); border-bottom: 1px solid var(--hairline); font: 500 10px/1 var(--mono); color: var(--text-faint); }
  .preview .chrome i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); }
  .preview .chrome span { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .preview .frame { position: absolute; left: 0; top: 22px; right: 0; bottom: 0; overflow: hidden; }
  .preview iframe { width: 1440px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--k, .3)); pointer-events: none; background: var(--bg); }
  .preview .frame .skeleton { position: absolute; inset: 10px; min-height: 0; }
  .preview a.cover { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
  .preview a.cover:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
  .preview .open-hint { position: absolute; right: 8px; bottom: 8px; z-index: 2; opacity: 0; transform: translateY(4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .preview:hover .open-hint { opacity: 1; transform: none; }

  .flowline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: 0 0 var(--s-2); }
  .flowline > div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); font-family: var(--mono); }
  .flowline > div::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent); }
  .flowline > div:last-child::after { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 35%, transparent)); }
  .flowline b { color: var(--accent); font-weight: 600; }

  code.f { font-variant-ligatures: none; }
  .ledger td .claim { font-weight: 600; letter-spacing: -0.005em; }
  .ledger td .why { color: var(--text-faint); font-size: 12px; margin-top: 2px; max-width: 560px; }
  .ledger td.where { white-space: nowrap; }
  .ledger .pill { white-space: nowrap; }
  .ledger tr[hidden] { display: none; }
  .panel[hidden] { display: none; }

  .spread-row { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--hairline); transition: background-color var(--dur-fast) var(--ease); }
  .spread-row:hover { background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
  .spread-row:last-child { border-bottom: 0; }
  .spread-row .body { flex: 1; min-width: 0; }
  .spread-row .t { font-weight: 600; font-size: 13px; }
  .spread-row .side { text-align: right; flex: none; }
  .spread-row .side .price-big { font-size: 17px; }
  .rail-note { padding: 10px 18px; color: var(--text-faint); font-size: 11.5px; border-top: 1px solid var(--hairline); }

  .kpi .v.unknown { font-family: var(--sans); font-size: 20px; font-weight: 500; letter-spacing: 0; }
  .kpi .skeleton.v { min-width: 120px; height: 30px; }
  .matchcount { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
  .nav .count { font-family: var(--mono); font-size: 10px; color: var(--text-faint); }

  @media (max-width: 1100px) {
    .ladder, .flowline { grid-template-columns: minmax(0, 1fr); }
    .flowline { display: none; }
    .callouts { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 520px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpi { padding: 14px 14px 12px; overflow: hidden; }
    .kpi .v { font-size: 21px; }
    .kpi .row { flex-wrap: wrap; }
    .kpi svg { flex: 1 1 100%; max-width: 100%; width: 100%; min-width: 0; }
    .kpi .s { font-size: 11px; }
  }
  @media (max-width: 760px) {
    .hub-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 0 18px; }
    .hub-hero h1 { font-size: 31px; }
    .hub-hero .statusline { min-width: 0; }
    .spread-row { padding: 12px 14px; }
    .ledger td.where, .ledger th.where { display: none; }
    .rung-role { min-height: 0; }
    .searchbox kbd { display: none; }
  }
