/* CAIN-42 Top 25 product pages. No inline styles are used anywhere, so clawx.click's CSP (style-src 'self') holds. */
:root {
  --bg: #0b0f17; --panel: #121826; --panel2: #182033; --line: #263048; --text: #e8ecf5; --muted: #9aa5bd;
  --accent: #22d3ee; --good: #34d399; --warn: #fbbf24; --bad: #f87171; --code: #0f1522;
  --maxw: 1180px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f8fc; --panel: #ffffff; --panel2: #eef2f9; --line: #d6dce8; --text: #111827; --muted: #4b5563;
    --accent: #0e7490; --good: #047857; --warn: #b45309; --bad: #b91c1c; --code: #f1f4f9;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.62 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; white-space: pre; }
:not(pre) > code { background: var(--code); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

.t25-top { border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.t25-top-in { max-width: var(--maxw); margin: 0 auto; padding: 10px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.t25-home { font-weight: 800; text-decoration: none; color: var(--text); }
.t25-badge { display: inline-block; font-weight: 900; color: #0b0f17; background: var(--accent); border-radius: 6px; padding: 0 8px; margin-right: 6px; }
.t25-crumb { color: var(--muted); font-size: .92em; }
.t25-crumb a { color: var(--muted); }

.t25-wrap { max-width: var(--maxw); margin: 0 auto; padding: 20px 16px 60px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .t25-wrap { grid-template-columns: minmax(0, 1fr); } }
.t25-side { position: sticky; top: 64px; align-self: start; }
@media (max-width: 860px) { .t25-side { position: static; } }
.t25-side h4 { margin: 0 0 6px; font-size: .78em; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.t25-side ol { list-style: none; margin: 0 0 18px; padding: 0; }
.t25-side li a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--text); font-size: .94em; }
.t25-side li a:hover { background: var(--panel2); }
.t25-side li a[aria-current="page"] { background: var(--panel2); border-left: 3px solid var(--accent); font-weight: 700; }

.t25-main h1 { font-size: 2em; line-height: 1.2; margin: 0 0 6px; }
.t25-main h2 { margin-top: 2em; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.t25-main h3 { margin-top: 1.5em; }
.t25-lede { font-size: 1.12em; color: var(--muted); margin-top: 0; }

.t25-pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: .8em; font-weight: 700; border: 1px solid var(--line); }
.t25-pill.good { color: var(--good); border-color: var(--good); }
.t25-pill.warn { color: var(--warn); border-color: var(--warn); }
.t25-pill.bad { color: var(--bad); border-color: var(--bad); }

.t25-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 14px 0; }
.t25-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.t25-card h3 { margin: 0 0 4px; font-size: 1.02em; }
.t25-card p { margin: 0; color: var(--muted); font-size: .93em; }
a.t25-card { text-decoration: none; color: var(--text); display: block; }
a.t25-card:hover { border-color: var(--accent); }
.t25-stat { font-size: 1.9em; font-weight: 800; line-height: 1.1; }

.t25-note { border-left: 4px solid var(--warn); background: var(--panel); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 16px 0; }
.t25-note.good { border-left-color: var(--good); }
.t25-note.bad { border-left-color: var(--bad); }

table.t25 { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .93em; display: block; overflow-x: auto; }
table.t25 th, table.t25 td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
table.t25 th { background: var(--panel2); }

.t25-steps { counter-reset: s; list-style: none; padding: 0; }
.t25-steps > li { counter-increment: s; position: relative; padding: 2px 0 14px 44px; }
.t25-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #0b0f17; font-weight: 800; display: grid; place-items: center; }

.t25-demo { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 14px 0; }
.t25-demo textarea { width: 100%; min-height: 170px; background: var(--code); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-family: ui-monospace, monospace; font-size: .88em; }
.t25-demo button { background: var(--accent); color: #0b0f17; border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 800; cursor: pointer; margin: 8px 8px 0 0; }
.t25-demo button:disabled { opacity: .6; cursor: progress; }
.t25-out { margin-top: 10px; }
.t25-out pre { max-height: 420px; overflow: auto; }

.t25-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 14px; flex-wrap: wrap; }
.t25-foot { color: var(--muted); font-size: .85em; margin-top: 30px; }

/* hub */
.t25-hub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.t25-hub-list li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
.t25-rank { font-size: 1.4em; font-weight: 900; color: var(--accent); }
.t25-hub-list h3 { margin: 0; font-size: 1.05em; }
.t25-hub-list p { margin: 2px 0 0; color: var(--muted); font-size: .92em; }
.t25-steps-live li.good { color: var(--good); }
.t25-steps-live li.bad { color: var(--bad); }
.t25-votes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.t25-flow select { margin-right: 8px; }

/* Attack lab (2026-11-03) */
.t25-lab-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.t25-demo .t25-lab-p { margin: 0; background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; font-size: .86em; padding: 6px 10px; }
.t25-demo .t25-lab-p.atk { border-color: var(--bad); }
.t25-demo .t25-lab-p.ctl { border-color: var(--good); }
.t25-demo .t25-lab-p[aria-pressed="true"] { background: var(--accent); color: #0b0f17; border-color: var(--accent); }
.t25-lab-line { font-family: ui-monospace, monospace; font-size: .85em; margin: 10px 0 4px; overflow-wrap: anywhere; color: var(--muted, inherit); }
.t25-lab-why { margin: 4px 0 8px; }
.t25-lab-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; font-size: .86em; }
.t25-lab-tools select { max-width: 100%; background: var(--code); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
.t25-demo .t25-lab-mut { margin: 0; padding: 4px 8px; font-size: .82em; background: var(--code); color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.t25-demo .t25-lab-all { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.t25-lab-board { margin-top: 12px; font-size: .85em; }
.t25-lab-board td { overflow-wrap: anywhere; }
