
:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --ink: #f5f5f5;
  --ink-dim: #b0b0b0;
  --muted: #8a8a8a;
  --phos: #4a8fc2;
  --line: rgba(74, 143, 194, 0.22);
  --line-soft: rgba(74, 143, 194, 0.1);
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --good: #3cc46a;
  --good-soft: rgba(60, 196, 106, 0.12);
  --bad: #ef6b6b;
  --bad-soft: rgba(239, 107, 107, 0.16);
  --amber: #f0b45a;
  --amber-soft: rgba(240, 180, 90, 0.1);
  --radius: 14px;
  --disp: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--disp); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--phos); text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
html.kbd :focus-visible { outline: 2px solid var(--phos); outline-offset: 2px; }

.nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(10, 10, 10, 0.86); backdrop-filter: blur(10px); }
.brand { font-weight: 600; letter-spacing: -0.01em; }
.brand span { color: var(--phos); }
.proto { font-size: 13px; color: var(--amber); }
.proto::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #d97706; vertical-align: 1px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 40px 16px 80px; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.dek { margin: 14px 0 0; color: var(--ink-dim); font-size: 17px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.meta b { color: var(--ink-dim); font-weight: 500; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 32px 0 0; padding: 0; list-style: none; }
.stepper button { touch-action: manipulation; width: 100%; padding: 12px 0 0; border: 0; border-top: 4px solid var(--surface-2); background: none; color: var(--muted); text-align: left; font-size: 14px; cursor: default; transition: color .2s, border-color .3s; }
.stepper .n { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; border: 1px solid #333; font-size: 12px; }
.stepper button.reach { border-top-color: rgba(167,139,250,.45); color: var(--ink-dim); cursor: pointer; }
.stepper button.reach:hover { color: var(--ink); }
.stepper button.reach .n { border-color: var(--accent); color: var(--accent); }
.stepper button.cur { border-top-color: var(--accent); color: var(--ink); font-weight: 500; }
.stepper button.cur .n { background: var(--accent); border-color: var(--accent); color: #111; }
.stepper.sent button { cursor: default; color: var(--muted); }

.card { margin-top: 12px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.page { display: none; animation: in .3s ease; }
.page.on { display: block; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.hint { margin: 0 0 22px; color: var(--ink-dim); font-size: 15px; }
.hint .lock { color: var(--good); }

.q { margin-top: 24px; }
.q:first-of-type { margin-top: 0; }
.q > label, .q > .label { display: block; margin-bottom: 8px; font-weight: 500; }
.q .opt { color: var(--muted); font-weight: 400; font-size: 14px; }
.sub { display: block; margin: -4px 0 10px; color: var(--muted); font-size: 14px; }
.req { color: var(--accent); }

input[type=text], input[type=url], input[type=email], textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); transition: border-color .2s, background .2s; }
input::placeholder, textarea::placeholder { color: #666; }
input:focus, textarea:focus { border-color: var(--accent); background: #1d1b24; }
textarea { min-height: 110px; resize: vertical; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-dim); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: rgba(167, 139, 250, .5); color: var(--ink); }
.chip[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.other-input { margin-top: 10px; display: none; }
.other-input.on { display: block; }
.sev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sev .chip { border-radius: 10px; text-align: left; padding: 12px 14px; }
.sev .chip small { display: block; color: var(--muted); font-size: 13px; }

.tabs { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface-2); }
.tab { flex: 1; padding: 10px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-dim); cursor: pointer; font-size: 15px; transition: background .2s, color .2s; }
.tab[aria-selected=true] { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .5); }
.tab .rec { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 11px; vertical-align: 1px; }
.panel { display: none; margin-top: 14px; }
.panel.on { display: block; }
.how { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.how b { color: var(--ink-dim); font-weight: 500; }
.sample { margin-top: 14px; font-size: 14px; color: var(--muted); }
.linkbtn { padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.drop { display: grid; place-items: center; gap: 6px; padding: 30px 16px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink-dim); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: #1d1b24; }
.drop svg { width: 28px; height: 28px; stroke: var(--accent); }
.drop small { color: var(--muted); font-size: 13px; }
.drop .kbd { color: var(--ink); font-weight: 600; }
.drop.pasted { border-color: var(--good); background: rgba(60,196,106,.08); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border: 1px solid rgba(60,196,106,.4); border-radius: 10px; background: #13261a; color: var(--good); font-size: 14px; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 10; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { position: relative; aspect-ratio: 1; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; padding: 4px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; line-height: 22px; padding: 0; }

.notice { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(240, 180, 90, .35); border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 14px; }
.notice.good { border-color: rgba(60, 196, 106, .35); background: var(--good-soft); color: var(--good); }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: currentColor; }

/* privacy review */
.found .chip { display: inline-flex; align-items: center; gap: 8px; border-color: rgba(239, 107, 107, .45); background: var(--bad-soft); color: var(--ink); }
.found .chip .k { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--bad); }
.found .chip.kept { border-color: var(--line); background: transparent; color: var(--muted); }
.found .chip.kept .v { text-decoration: line-through; }
.found .chip.kept .k { color: var(--muted); }
.found .none { color: var(--muted); font-size: 14px; }

.cmp { margin-top: 18px; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.cmp-h { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); font-size: 14px; font-weight: 500; color: var(--ink-dim); }
.cmp-h .st { color: var(--muted); font-weight: 400; }
.cmp-h .st.ok { color: var(--good); }
.cmp-g { display: grid; grid-template-columns: 1fr 1fr; }
.cmp-g > div { padding: 12px 14px; min-width: 0; }
.cmp-g > div + div { border-left: 1px solid var(--line-soft); }
.tag { margin-bottom: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tag.after { color: var(--good); }
.txt { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 15px; color: var(--ink-dim); }
mark.pii { background: var(--bad-soft); color: var(--ink); border-radius: 4px; padding: 0 2px; box-shadow: inset 0 -1px 0 var(--bad); }
mark.pii.kept { background: transparent; box-shadow: inset 0 -1px 0 var(--muted); }
.red { display: inline-block; padding: 0 6px; border-radius: 4px; background: #2a2a2a; color: var(--good); font-size: 13px; font-weight: 500; }

.stage { position: relative; user-select: none; touch-action: none; background: #000; max-width: 560px; margin: 0 auto; border-radius: 10px; overflow: hidden; }
.cmp .stage { margin: 4px auto 0; }
.stage canvas { display: block; width: 100%; height: auto; }
.stage canvas.before { position: absolute; inset: 0; }
.stage .overlay { position: absolute; inset: 0; cursor: crosshair; }
.stage .divider { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
/* .stage .lbl { position: absolute; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.72); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.stage .lbl.b { left: 8px; color: var(--bad); }
.stage .lbl.a { right: 8px; color: var(--good); } */
.seg { display: inline-flex; gap: 4px; margin: 10px 14px; padding: 3px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); }
.seg button { padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.seg button[aria-pressed=true] { background: var(--good-soft); color: var(--good); }
.seg button[data-v=before][aria-pressed=true] { background: var(--bad-soft); color: var(--bad); }
.stage canvas.before[hidden] { display: none; }
.bgbox { margin-top: 26px; padding: 18px; border: 1px dashed rgba(167,139,250,.45); border-radius: 12px; background: rgba(167,139,250,.05); }
.bg-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 500; }
.bonus { padding: 2px 9px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 12px; font-weight: 500; }
.bgbox .chips { margin: 10px 0; }
.bgbox .chip { padding: 6px 12px; font-size: 14px; }
.drop.small { display: flex; justify-content: center; align-items: center; padding: 16px; margin-top: 10px; gap: 10px; }
.drop.small svg { width: 20px; height: 20px; }
.pts li.pend b { color: var(--amber); }
.stage .scan { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,10,10,.55); color: var(--ink); font-size: 14px; }
.stage .scan[hidden] { display: none; }
.bar { width: 180px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: #333; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.slider { width: 100%; margin: 10px 0 0; accent-color: #8b5cf6; }
.imgfoot { padding: 0 14px 12px; color: var(--muted); font-size: 13px; }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.btn { padding: 12px 22px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-dim); cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.btn:hover { border-color: rgba(167, 139, 250, .5); color: var(--ink); }
.btn.primary { border-color: var(--accent); background: linear-gradient(180deg, rgba(167,139,250,.32), rgba(139,92,246,.22)); color: #fff; font-weight: 500; }
.btn.primary:hover { transform: translateY(-1px); }
.btn.primary.accept { border-color: var(--good); background: linear-gradient(180deg, rgba(60,196,106,.3), rgba(60,196,106,.18)); }
.btn[hidden], .actions[hidden] { display: none; }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.err { margin-top: 10px; color: var(--bad); font-size: 14px; min-height: 1em; }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.check + .check { margin-top: 8px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: #8b5cf6; flex: none; }
.check span { color: var(--ink-dim); font-size: 15px; }
.check b { color: var(--ink); font-weight: 500; }

.done { text-align: center; padding: 20px 0 6px; }
.done .tick { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--good); font-size: 28px; }
.received { margin-top: 24px; text-align: left; }
.received h3 { margin: 0 0 10px; font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.received dl { display: grid; grid-template-columns: minmax(120px, 28%) 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.received dt { color: var(--muted); }
.received dd { margin: 0; color: var(--ink-dim); white-space: pre-wrap; word-break: break-word; }
.received dd img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line-soft); display: block; margin-bottom: 8px; }
.foot { margin-top: 18px; color: var(--muted); font-size: 13px; text-align: center; }

/* contributor board */
.pts { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 22px; padding: 18px 20px; border: 1px solid rgba(167,139,250,.35); border-radius: 12px; background: linear-gradient(180deg, rgba(167,139,250,.12), rgba(167,139,250,.04)); text-align: left; }
.pts .big { font-size: 40px; font-weight: 300; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.pts .big small { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; color: var(--ink-dim); }
.pts li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pts li.now b { color: var(--good); }
.board { margin-top: 30px; text-align: left; }
.board-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 12px; }
.board-h h3 { margin: 0; font-size: 19px; font-weight: 600; }
.board-h .sample-tag { color: var(--amber); font-size: 12px; }
.sort { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); }
.sort button { padding: 6px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.sort button[aria-pressed=true] { background: var(--accent-soft); color: var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; text-align: right; white-space: nowrap; }
.tbl th:nth-child(-n+2) { text-align: left; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-dim); }
.tbl td:nth-child(-n+2) { text-align: left; }
.tbl td.rk { width: 36px; color: var(--muted); }
.tbl td.who { color: var(--ink); }
.tbl td.who small { display: block; color: var(--muted); font-size: 12px; }
.tbl td.score { color: var(--ink); font-weight: 600; }
.tbl .sbar { display: inline-block; width: 60px; height: 4px; margin-right: 8px; border-radius: 4px; background: #262626; vertical-align: middle; overflow: hidden; }
.tbl .sbar i { display: block; height: 100%; background: var(--accent); }
.tbl tr.you td { background: rgba(167,139,250,.08); }
.tbl tr.you td.who { color: var(--accent); }
.badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; vertical-align: 1px; }
.badge.co { background: var(--good-soft); color: var(--good); }
.badge.rev { background: var(--amber-soft); color: var(--amber); }
.tblwrap { overflow-x: auto; }
.tbl .short { display: none; }
.rules { margin-top: 16px; text-align: left; }
.rules summary { cursor: pointer; color: var(--accent); font-size: 15px; }
.rules table { margin-top: 10px; width: 100%; border-collapse: collapse; font-size: 14px; }
.rules td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); vertical-align: top; }
.rules td:first-child { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rules p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
details.received summary { cursor: pointer; color: var(--accent); font-size: 15px; }
details.received dl { margin-top: 12px; }
@media (max-width: 600px) {
  .pts { grid-template-columns: 1fr; gap: 12px; }
  .tbl th.opt, .tbl td.opt { display: none; }
  .tbl .sbar { display: none; }
  .tbl th, .tbl td { padding-left: 6px; padding-right: 6px; }
  .tbl .full { display: none; }
  .tbl .short { display: inline; }
  .sev { grid-template-columns: 1fr; }
  .tab { font-size: 14px; padding: 9px 4px; }
  .tab .rec { display: none; }
  .cmp-g { grid-template-columns: 1fr; }
  .cmp-g > div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .received dl { grid-template-columns: 1fr; gap: 2px; }
  .received dd { margin-bottom: 10px; }
}
details.more { margin-top: 18px; }
details.more summary { list-style: none; cursor: pointer; color: var(--accent); font-size: 15px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "− "; }
details.more textarea { margin-top: 10px; min-height: 90px; }
.ex { color: var(--muted); font-size: 14px; margin: -2px 0 8px; }
.quick .chip { padding: 6px 12px; font-size: 14px; }
.quick .chip.used { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.send { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.send .row { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- light theme (Auto follows the system; the nav switch overrides it) ---------- */
:root { color-scheme: dark; }
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f6f8; --surface: #ffffff; --surface-2: #f1f1f4;
    --ink: #121212; --ink-dim: #45454a; --muted: #6e6e74;
    --phos: #2b6a9e; --line: rgba(43, 106, 158, 0.24); --line-soft: rgba(43, 106, 158, 0.12);
    --accent: #6d4fd6; --accent-soft: rgba(109, 79, 214, 0.1);
    --good: #1d8445; --good-soft: rgba(29, 132, 69, 0.1);
    --bad: #c23838; --bad-soft: rgba(194, 56, 56, 0.1);
    --amber: #9a5b00; --amber-soft: rgba(217, 119, 6, 0.09);
  }
[data-theme="light"] .nav { background: rgba(246, 246, 248, 0.88); }
[data-theme="light"] .card, [data-theme="light"] .cmp, [data-theme="light"] .pts { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(20,20,40,.04); }
[data-theme="light"] input::placeholder, [data-theme="light"] textarea::placeholder { color: #9b9ba2; }
[data-theme="light"] input:focus, [data-theme="light"] textarea:focus, [data-theme="light"] .drop:hover, [data-theme="light"] .drop.over { background: #faf8ff; }
[data-theme="light"] .chip:hover, [data-theme="light"] .btn:hover { border-color: rgba(109, 79, 214, .45); }
[data-theme="light"] .tab[aria-selected=true] { box-shadow: inset 0 0 0 1px rgba(109, 79, 214, .45); }
[data-theme="light"] .stepper button { border-top-color: #e3e3e8; }
[data-theme="light"] .stepper button.reach { border-top-color: rgba(109, 79, 214, .4); }
[data-theme="light"] .stepper .n { border-color: #cfcfd6; }
[data-theme="light"] .stepper button.cur .n { color: #fff; }
[data-theme="light"] .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="light"] .btn.primary.accept { background: var(--good); border-color: var(--good); color: #fff; }
[data-theme="light"] .red { background: rgba(29, 132, 69, .1); color: var(--good); }
[data-theme="light"] mark.pii { color: var(--ink); }
[data-theme="light"] .stage { background: #e9e9ee; }
[data-theme="light"] .stage .scan { background: rgba(255, 255, 255, .72); color: var(--ink); }
[data-theme="light"] .bar { background: #dcdce2; }
[data-theme="light"] .thumb button { background: rgba(255,255,255,.9); color: #222; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
[data-theme="light"] .tbl .sbar { background: #e7e7ec; }
[data-theme="light"] .tbl tr.you td { background: rgba(109, 79, 214, .07); }
[data-theme="light"] .toast { background: #e8f6ee; border-color: rgba(29,132,69,.35); }
[data-theme="light"] .notice { border-color: rgba(217, 119, 6, .35); }
[data-theme="light"] .found .chip { border-color: rgba(194, 56, 56, .4); }
[data-theme="light"] .pts { border-color: rgba(109, 79, 214, .3); background: linear-gradient(180deg, rgba(109,79,214,.08), rgba(109,79,214,.02)); }
[data-theme="light"] .bgbox { border-color: rgba(109, 79, 214, .4); background: rgba(109, 79, 214, .035); }
[data-theme="light"] .seg button[aria-pressed=true] { background: var(--good-soft); }
[data-theme="light"] .badge.co { background: var(--good-soft); }

/* ---------- polish ---------- */
body { background:
  radial-gradient(900px 420px at 50% -120px, rgba(124, 92, 219, .16), transparent 70%), var(--bg); background-attachment: fixed; }
[data-theme="light"] body { background: radial-gradient(900px 420px at 50% -120px, rgba(109, 79, 214, .09), transparent 70%), var(--bg); background-attachment: fixed; }
.nav-r { display: flex; align-items: center; gap: 14px; }
.theme { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--surface); }
.theme button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); }
.theme svg { width: 15px; height: 15px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 4px 12px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--surface); color: var(--ink-dim); font-size: 13px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.3rem); }
.meta { gap: 8px; margin-top: 20px; }
.meta span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--surface); color: var(--ink-dim); font-size: 13px; }
.meta span svg { width: 14px; height: 14px; stroke: var(--good); }
.meta b { font-weight: 500; color: var(--ink-dim); }
.card { border-radius: 18px; padding: clamp(22px, 4.5vw, 40px); box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px rgba(0,0,0,.35); }
h2 { font-size: 24px; letter-spacing: -0.015em; }
.hint { margin-bottom: 26px; }
.q > label, .q > .label { font-size: 16px; }
input[type=text], input[type=url], input[type=email], textarea { border-radius: 12px; transition: border-color .2s, background .2s, box-shadow .2s; }
input:focus, textarea:focus { box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 96px; }
.drop { padding: 34px 16px; border-radius: 14px; }
.drop > svg { box-sizing: content-box; width: 22px; height: 22px; padding: 12px; border-radius: 50%; background: var(--accent-soft); }
.drop.small > svg { width: 16px; height: 16px; padding: 7px; }
.btn { border-radius: 12px; font-weight: 500; }
.btn .arr { display: inline-block; transition: transform .2s; }
.btn.primary:hover .arr { transform: translateX(3px); }
#back:hover .arr { transform: translateX(-3px); }
.check { align-items: center; border-radius: 12px; }
.check input { margin-top: 0; }
.check span { line-height: 1.45; }

/* ---------- agent picker ---------- */
.arow { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.alab { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.alab .opt { text-transform: none; letter-spacing: 0; }
.chip.add { border-style: dashed; color: var(--accent); }
.chips.small .chip { padding: 5px 11px; font-size: 13.5px; }
#agentbox .other-input { margin-top: 10px; }
.gdetail { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface-2); animation: in .25s ease; }
.gdetail[hidden] { display: none; }
.sel { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.sel select { padding: 8px 30px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--ink); font: inherit; font-size: 14px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sel select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
#model_other { flex: 1 1 200px; padding: 8px 12px; }
@media (max-width: 600px) {
  .proto { display: none; }
  .stepper button { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stepper .n { display: inline-grid; width:18px; height:18px; margin-right:4px; }
}

/* ---------- agent icons ---------- */
.chip.ic { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; font-size: 14px; }
#agentbox .chips { gap: 6px; }
.chip.add { padding: 5px 11px; font-size: 14px; }
.ai { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ai img { width: 100%; height: 100%; object-fit: cover; }
.ai.svg { background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-soft); color: var(--ink); }
.ai.svg svg { width: 14px; height: 14px; }

/* ---------- consent ---------- */
.consent { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.consent-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.consent-h svg { width: 18px; height: 18px; color: var(--accent); }
.consent-lead { margin: 10px 0 6px; color: var(--ink-dim); font-size: 14.5px; }
.consent-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-dim); font-size: 14px; line-height: 1.5; }
.consent-list li::marker { color: var(--accent); }
.consent .check { margin-top: 14px; padding: 12px 14px; background: var(--surface); border-color: var(--line); }
.check input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; flex: none; margin: 0; border: 1.5px solid var(--muted); border-radius: 6px; background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.check input::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity .15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.check:has(input:checked) { border-color: var(--accent); }
.check input:focus { box-shadow: none; }
.check input:not(:checked):focus { background: transparent; }

/* ---------- first-reveal sweep on redacted text ---------- */
@keyframes swipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
#review.sweep .at .red { animation: swipe .65s cubic-bezier(.2,.7,.2,1) .35s both; }
#review.sweep .cmp:nth-child(2) .at .red { animation-delay: .55s; }
#review.sweep .cmp:nth-child(3) .at .red { animation-delay: .75s; }
#review.sweep .cmp:nth-child(4) .at .red { animation-delay: .95s; }
#review.sweep .cmp:nth-child(5) .at .red { animation-delay: 1.15s; }
@media (prefers-reduced-motion: reduce) { #review.sweep .at .red { animation: none; } }

/* ---------- one block per question ---------- */
:root { --block: #161616; --field: #0f0f10; }
[data-theme="light"] { --block: #fafafb; --field: #ffffff; }
.page > .q, .send > .q { margin-top: 12px; padding: 18px 20px 20px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--block); }
.page > .hint + .q { margin-top: 0; }
.page > .q > .label, .page > .q > label { margin-bottom: 4px; }
.page > .q input[type=text], .page > .q input[type=url], .page > .q input[type=email], .page > .q input[type=month], .page > .q textarea,
.send > .q input, .bgbox textarea { background: var(--field); }
.page > .q .drop, .page > .q .tabs { background: var(--field); }
input[type=month] { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: inherit; }
.bgbox { margin-top: 12px; }
.found { padding: 0 !important; border: 0 !important; background: none !important; }
@media (max-width: 600px) { .page > .q, .send > .q { padding: 14px 14px 16px; } }

/* ---------- personal and environment context rows ---------- */
#ctxrows { display: grid; gap: 8px; margin-top: 10px; }
.ctxrow { display: grid; grid-template-columns: 1fr 240px 36px; gap: 8px; align-items: center; animation: in .2s ease; }
.ctxrow input { width: 100%; padding: 10px 12px; background: var(--field); }
.ctxrow select { width: 100%; padding: 10px 30px 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--ink); font: inherit; font-size: 14px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ctxrow select.empty { color: var(--muted); }
.ctxrow .rm { width: 36px; height: 36px; border: 1px solid var(--line-soft); border-radius: 10px; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.ctxrow .rm:hover { color: var(--bad); border-color: var(--bad); }
.addrow { margin-top: 10px; font-size: 14px; text-decoration: none; }
.quick .chip.other { border-style: dashed; }
@media (max-width: 600px) { .ctxrow { grid-template-columns: 1fr 36px; } .ctxrow select { grid-column: 1; grid-row: 2; } .ctxrow .rm { grid-row: 1 / span 2; grid-column: 2; } }

/* ---------- board button and dialog ---------- */
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-top .eyebrow { margin-bottom: 0; }
.board-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; }
.board-btn svg { width: 16px; height: 16px; color: var(--amber); }
.dlg { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.dlg::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.dlg[open] { animation: in .25s ease; }
.dlg-h { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 8px; }
.dlg-h h3 { margin: 0 0 2px; font-size: 20px; }
.dlg-x { width: 34px; height: 34px; border: 1px solid var(--line-soft); border-radius: 10px; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.dlg-f { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; }
.dlg-f [hidden] { display: none; }
.dlg .sample-tag { color: var(--amber); font-size: 12px; }

/* ---------- tighter layout ---------- */
.err:empty { display: none; }
.bgbox .chip { padding: 5px 11px; font-size: 13.5px; }
.bgbox .chips { gap: 6px; }
.wrap { padding-top: 32px; padding-bottom: 56px; }
.card { padding: clamp(20px, 3.4vw, 32px); }
.hint { margin-bottom: 18px; }
.q { margin-top: 20px; }
.actions { margin-top: 22px; }
.drop { padding: 22px 16px; gap: 4px; }
.drop.has { grid-auto-flow: column; justify-content: center; align-items: center; gap: 12px; padding: 12px 16px; }
.drop.has small { display: none; }
.drop.has > svg { width: 16px; height: 16px; padding: 7px; }
.thumbs { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.chip { padding: 7px 13px; font-size: 15px; }
.quick { gap: 6px; }
.quick .chip { padding: 5px 11px; font-size: 13.5px; }
.quick .chip::before { content: "+ "; color: var(--accent); }
.kinds { gap: 6px; margin-bottom: 10px; }
.kinds .chip { padding: 5px 11px; font-size: 13.5px; }
.quick + textarea { margin-top: 10px; }
.sample { margin: 12px 0 0; }
.bgbox { margin-top: 22px; padding: 16px; }
.stepper { margin-top: 26px; }
.stepper button { padding-top: 10px; }
.send { margin-top: 22px; padding-top: 18px; }
 .rubric-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:10px 0; } .rubric-row input[type=text] { flex:1; min-width:180px; } .rubric-row label { font-size:14px; } #persona-prompt { min-height:180px; margin:12px 0; }
.profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } #user-profile select { display:block; width:100%; padding:10px; border-radius:10px; background:var(--field); color:var(--ink); border:1px solid var(--line); font:inherit; } #user-profile > label { display:block; margin-top:14px; } @media(max-width:600px){.profile-grid{grid-template-columns:1fr;}}

.mbti-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:20px 0 22px; }
.mbti-title h3 { margin:0; font-size:21px; }
.mbti-optional { background:var(--field); border-radius:999px; padding:4px 12px; font-size:13px; color:var(--muted); }
.profile-grid { gap:22px 20px; }
.mbti-label { display:block; font-size:17px; font-weight:600; margin-bottom:8px; }
.mbti-question { display:block; font-size:14px; color:var(--muted); margin-bottom:9px; line-height:1.5; }
#user-profile .profile-grid select { min-height:48px; padding:12px 14px; border-radius:12px; }
#user-profile .profile-grid select:focus { outline:2px solid #3b82f6; outline-offset:1px; }
#user-profile .profile-grid select:has(option[value=""]:checked) { color:var(--muted); }
#mbti-result { padding-bottom:16px; border-bottom:1px solid var(--line); }
.mbti-details { margin:16px 0; } .mbti-details summary { cursor:pointer; font-weight:600; } .mbti-details .profile-grid { margin-top:16px; }

.mbti-compact { margin:12px 0; }
.mbti-compact .profile-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:8px; }
.mbti-compact .mbti-question { display:none; }
.mbti-compact .mbti-label { font-size:13px; margin-bottom:5px; }
#user-profile .mbti-compact select { min-height:38px; padding:7px 8px; font-size:13px; }
.mbti-compact #mbti-result { margin:6px 0 0; padding-bottom:8px; font-size:12px; }
@media(max-width:600px){.mbti-compact .profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.ctxrow > .context-source{grid-column:1;grid-row:2;}}
.overview-fields { display:grid; grid-template-columns:minmax(120px,1fr) 2fr; gap:8px 18px; } .overview-fields dt { font-weight:600; } .overview-fields dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; } .review-edit{margin:12px 0;} @media(max-width:600px){.overview-fields{grid-template-columns:1fr;}.overview-fields dd{margin-bottom:12px;}}
.image-zoom{width:92vw;max-width:none;max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink)}.image-zoom img{max-width:none;width:auto;height:auto;display:block}.image-zoom button{position:sticky;top:0;padding:10px 18px;z-index:2}.image-zoom::backdrop{background:rgba(0,0,0,.65)}.thumb img{cursor:zoom-in}.overview-edit{float:right;font-size:14px}
.voice-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0 14px;grid-column:1 / -1}.voice-controls select{width:auto!important;min-height:32px!important;padding:5px 8px!important;font-size:13px!important}.voice-controls small{flex-basis:100%;color:var(--muted);font-size:12px;line-height:1.4}.voice-status{font-size:12px;color:var(--muted)}.voice-controls button:disabled{opacity:.6;cursor:not-allowed}
.dictation-hint{display:block;margin:6px 0 14px;color:var(--muted);font-size:12px;line-height:1.5}


.material-block,.raw-material{border:1px solid var(--line);border-radius:12px;padding:16px;margin:12px 0}.material-block label,.raw-material label{display:block;margin:10px 0}.material-block textarea{min-height:130px}.material-block input,.raw-material input,.raw-material textarea{width:100%}.raw-material audio{width:100%;margin:10px 0}.raw-material img{max-width:180px;max-height:140px;object-fit:contain}.threshold-callout,.alignment-callout{border:1px solid #b08a42;background:rgba(176,138,66,.09);border-radius:12px;padding:18px;margin:20px 0}.alignment-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.alignment-body{max-height:220px;overflow:auto;margin-top:8px;font-size:13px}.alignment-grid .alignment-item{white-space:pre-wrap;overflow-wrap:anywhere;border-top:1px solid var(--line);padding:12px 0}.severity-options{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.severity-options label{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;border:1px solid var(--line);border-radius:10px;padding:12px;cursor:pointer}.severity-options input{width:auto}.severity-options label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.severity-options span{font-size:12px}.raw-error{color:var(--bad)}@media(max-width:650px){.alignment-grid{grid-template-columns:1fr}.severity-options{gap:4px}.severity-options label{padding:9px 4px}}

.tbl caption{caption-side:top;text-align:left;padding:14px 0;font-weight:600;color:var(--ink)}.dlg .sort{flex-wrap:wrap}.tbl td:last-child,.tbl th:last-child{text-align:right}



/* Shared official website title and navigation template. */
/* PersonalAgentEval assistants: the title block and the Leaderboard | Blog post tab bar, shared by
   assistants/index.html (the post) and assistants/leaderboard/index.html (generated by `pae site-leaderboard`).
   Self-contained (its own tokens), so it renders the same under css/site.css and under the leaderboard's styles.
   The motif is matraix.ai's: a field of faint points and one ringed sphere of light. */

.pae-head {
  --f-bg: #0a0a0a;
  --f-ink: #f5f5f5;
  --f-dim: #b0b0b0;
  --f-mute: #8a8a8a;
  --f-phos: #4a8fc2;
  --f-violet: #a855f7;
  --f-amber: #f0b45a;
  --f-line: rgba(74, 143, 194, 0.22);
  --f-gutter: clamp(20px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(74, 143, 194, 0.10), transparent 60%),
    var(--f-bg);
  color: var(--f-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  border-bottom: 1px solid var(--f-line);
}
.pae-head *, .pae-head *::before, .pae-head *::after { box-sizing: border-box; }

/* A field of faint points (two offset grids of 1px dots), fading out towards the text. */
.pae-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(176, 196, 222, 0.32) 1px, transparent 1.4px),
    radial-gradient(circle at 1px 1px, rgba(74, 143, 194, 0.42) 1px, transparent 1.4px);
  background-size: 97px 89px, 151px 137px;
  background-position: 13px 21px, 61px 7px;
  -webkit-mask-image: linear-gradient(100deg, transparent 22%, #000 70%);
  mask-image: linear-gradient(100deg, transparent 22%, #000 70%);
  pointer-events: none;
}
/* The ringed sphere, cut by the right edge. */
.pae-orb {
  position: absolute;
  top: 50%;
  right: max(-9rem, calc((100vw - 77rem) / 2 - 15rem));
  width: 27rem;
  height: 27rem;
  border-radius: 50%;
  transform: translateY(-46%);
  background: radial-gradient(circle at 50% 42%, rgba(26, 52, 82, 0.55), rgba(10, 14, 22, 0.9) 62%, rgba(10, 10, 10, 0) 72%);
  box-shadow: inset 0 0 0 1px rgba(122, 172, 214, 0.38), 0 0 60px 6px rgba(74, 143, 194, 0.12), 0 0 140px 30px rgba(74, 143, 194, 0.06);
  pointer-events: none;
}
.pae-orb::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background-image: radial-gradient(circle at 1px 1px, rgba(150, 190, 230, 0.55) 1px, transparent 1.5px);
  background-size: 23px 29px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 70%);
  mask-image: radial-gradient(circle, #000 40%, transparent 70%);
}

.pae-wrap {
  position: relative;
  z-index: 1;
  max-width: calc(77rem + 2 * var(--f-gutter));
  margin: 0 auto;
  padding: clamp(24px, 3.2vw, 40px) var(--f-gutter) 0;
}
.pae-title {
  margin: 0;
  color: var(--f-ink);
  font-family: inherit;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
}
.pae-title .pae-agent {
  background: linear-gradient(90deg, var(--f-violet), var(--f-phos));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--f-phos);
}
.pae-desc {
  max-width: none;
  margin: 12px 0 0;
  color: var(--f-dim);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
}
.pae-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 14px 0 0;
  color: var(--f-mute);
  font-size: 0.875rem;
  line-height: 1.5;
}
.pae-meta .pae-prelim {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 10px;
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: 999px;
  color: var(--f-amber);
}
.pae-meta .pae-prelim::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d97706; }
.pae-meta .pae-prelim[hidden] { display: none; }

.pae-tabs {
  display: flex;
  gap: 6px;
  margin-top: clamp(18px, 2.2vw, 26px);
}
.pae-tabs a {
  position: relative;
  padding: 14px 22px 15px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  color: var(--f-dim);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.pae-tabs a:hover { color: var(--f-ink); background: rgba(74, 143, 194, 0.07); }
.pae-tabs a[aria-current="page"] {
  border-color: var(--f-line);
  background: var(--f-bg);
  color: var(--f-ink);
}
.pae-tabs a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -1px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--f-violet), var(--f-phos));
}
.pae-tabs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--f-bg);
}
.pae-tabs a:focus-visible { outline: 2px solid var(--f-phos); outline-offset: -2px; }
/* the page as a PDF to share: an action, not a tab, so it sits apart at the row's end */
.pae-tabs .pae-act, .pae-share .pae-act { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px 8px; padding: 8px 14px; border: 1px solid var(--f-line); border-radius: 999px; background: rgba(10, 10, 10, 0.8); color: var(--f-dim); font-family: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; align-self: center; transition: color 0.2s, background-color 0.2s; }
.pae-tabs a:not(.pae-act) + .pae-act { margin-left: auto; }
.pae-tabs .pae-act:hover, .pae-tabs .pae-act[aria-expanded="true"], .pae-share .pae-act:hover, .pae-share .pae-act[aria-expanded="true"] { color: var(--f-ink); background: rgba(30, 34, 40, 0.9); }
.pae-tabs .pae-act:focus-visible, .pae-share .pae-act:focus-visible { outline: 2px solid var(--f-phos); outline-offset: 2px; }
.pae-tabs .pae-act svg, .pae-share .pae-act svg { width: 15px; height: 15px; flex: none; }
/* Share: the word, then one icon per place to post the link, then copy link (folds into one button on a phone) */
.pae-share { display: inline-flex; align-items: center; margin: 0 0 8px 8px; align-self: center; }
.pae-tabs a:not(.pae-act) + .pae-share { margin-left: auto; }
.pae-share .ps-toggle { display: none; margin: 0; }
.pae-share .ps-row { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 14px; border: 1px solid var(--f-line); border-radius: 999px; background: rgba(10, 10, 10, 0.8); }
.pae-share .ps-l { margin-right: 6px; color: var(--f-dim); font-size: 0.875rem; font-weight: 500; }
.pae-share .ps-i { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--f-dim); cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.pae-share .ps-i svg { width: 16px; height: 16px; }
.pae-share .ps-i:hover { color: var(--f-ink); background: rgba(168, 85, 247, 0.16); }
.pae-share .ps-i:focus-visible { outline: 2px solid var(--f-phos); outline-offset: 1px; }
.pae-share .ps-copy.done { color: #4ade80; }

/* The live globe (globe/globe.js) replaces the CSS sphere where WebGL runs; the sphere stays as the fallback. */
.pae-orb.is-live {
  top: -3.5rem;
  bottom: auto;
  width: 42rem;
  height: 42rem;
  right: max(-14rem, calc((100vw - 77rem) / 2 - 12rem));
  transform: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  /* a backdrop: faded under the text on its left, cropped by the band's right and bottom edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, rgba(0, 0, 0, 0.5) 60%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 40%, rgba(0, 0, 0, 0.5) 60%, #000 80%);
}
.pae-desc, .pae-meta { text-shadow: 0 0 14px #0a0a0a, 0 0 4px #0a0a0a; }
@media (prefers-reduced-motion: no-preference) { .pae-orb.is-live { animation: pae-globe-in 1.4s ease both; } }
.pae-orb.is-live::after { display: none; }
@keyframes pae-globe-in { from { opacity: 0; } }

@media (max-width: 40rem) {
  .pae-orb { width: 13rem; height: 13rem; top: auto; bottom: -5.5rem; right: -5rem; transform: none; opacity: 0.55; }
  .pae-orb { animation: none !important; }
  .pae-tabs { gap: 4px; }
  .pae-tabs a { flex: 1; padding: 13px 10px 14px; text-align: center; }
  .pae-tabs a.pae-act, .pae-tabs .pae-act, .pae-share .pae-act { flex: none; padding: 8px 12px; text-align: left; }
  .pae-tabs .pae-act span { display: none; }
  .pae-tabs a { white-space: nowrap; }
  .pae-share { position: relative; flex: none; }
  .pae-share .ps-toggle { display: inline-flex; }
  .pae-share .ps-row { display: none; }
  .pae-share.open .ps-row { position: fixed; z-index: 60; display: grid; grid-template-columns: repeat(4, 40px); gap: 4px; padding: 8px; border-radius: 14px; background: #15171b; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); }
  .pae-share.open .ps-l { display: none; }
  .pae-share .ps-i { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pae-orb { animation: pae-orb-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes pae-orb-in { from { opacity: 0; transform: translateY(-40%) scale(0.96); } }
}
@media (prefers-reduced-motion: reduce) { .pae-tabs a { transition: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* in-page switches (task type, assistant, measure, failure mode, domain): rows glide to their new place */
  ::view-transition-group(*) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
}


/* scrolling in: blocks slide up and fade in as they enter the screen */
@media (prefers-reduced-motion: no-preference) {
  html.rv .rv-item { opacity: 0; transform: translateY(32px); transition: opacity .55s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0s), transform .55s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0s); }
  html.rv .rv-item.in { opacity: 1; transform: none; }
}
/* phones: the header's links get a 40px touch area without moving them */
@media (max-width: 40rem) {
  .nav .brand, .nav .nav-out, .nav .nav-links a { position: relative; }
  .nav .brand::before, .nav .nav-out::before, .nav .nav-links a::before { content: ""; position: absolute; inset: -12px -6px; }
}
/* the nav: MatrAIx at the left, the benchmark links in the middle, an empty end that keeps them centred */
header.nav { display: grid; grid-template-columns: 1fr auto 1fr; }
header.nav .brand { justify-self: start; }
header.nav .nav-end { justify-self: end; }
/* the team behind the benchmark, set apart from the date in the title block */
.pae-meta .pae-team { display: inline-flex; align-items: baseline; gap: 7px; padding: 5px 14px; border: 1px solid rgba(168, 85, 247, 0.45); border-radius: 999px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.16), rgba(74, 143, 194, 0.14)); color: #f5f5f5; font-weight: 600; text-shadow: none; }
.pae-meta .pae-team .mx-wordmark { font-family: "Orbitron", "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: 0.02em; }
.pae-meta .pae-team .mx-wordmark em { font-style: normal; background: linear-gradient(90deg, #a855f7, #4a8fc2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* Share sits at the end of the tab row; once the row scrolls away it stays at the top right, under the nav bar */
.pae-share.float { position: fixed; top: 72px; right: 24px; z-index: 50; margin: 0 !important; }
.pae-share.float .ps-row { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); background: rgba(16, 18, 22, 0.94); backdrop-filter: blur(8px); }
.pae-share-spot { flex: none; }
body.share-float .toc ol, body.share-float .lb-toc ol { top: 144px !important; }
@media (max-width: 40rem) {
  .pae-share.float { top: 12px; right: 16px; }
  .pae-share.float .ps-toggle { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); background: rgba(16, 18, 22, 0.94); }
}
/* the contents rail (post and leaderboard): the list and a Share row stick together under "In this post";
   in a short window the list scrolls and Share stays in view */
nav .toc-stick { position: sticky; top: 96px; display: flex; flex-direction: column; max-height: calc(100vh - 112px); margin-top: 10px; }
nav .toc-stick > ol { position: static; flex: 0 1 auto; min-height: 0; margin: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-left: 0; box-shadow: inset 1px 0 0 var(--line-soft, rgba(74, 143, 194, 0.1)); }
nav .toc-stick a { margin-left: 0; }
.rail-share { flex: none; margin-top: 14px; padding: 14px 0 0 8px; border-top: 1px solid var(--line-soft, rgba(74, 143, 194, 0.1)); }
.rail-share .ps-row { display: grid; grid-template-columns: repeat(4, 32px); align-items: center; gap: 6px; }
.rail-share .ps-row .ps-l { grid-column: 1 / -1; }
.rail-share .ps-l { flex-basis: 100%; margin: 0 0 8px 2px; color: #e6e6ea; font-size: 0.86rem; font-weight: 600; }
.rail-share .ps-i { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: #d4d4da; cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.rail-share .ps-i svg { width: 16px; height: 16px; }
.rail-share .ps-i:hover { color: #fff; border-color: rgba(168, 85, 247, 0.5); background: rgba(168, 85, 247, 0.2); }
.rail-share .ps-i:focus-visible { outline: 2px solid #4a8fc2; outline-offset: 1px; }
.rail-share .ps-copy.done { color: #4ade80; }
/* on desktop the rail carries Share, so the header's Share pill is not shown (phones keep it, where the rail is hidden) */
@media (min-width: 64.0625rem) { body:has(.rail-share) .pae-share { display: none; } }

/* evaluate-your-agent invitation: a card under the rail's Share row, and a line at the end of each page */
.rail-contact { flex: none; margin: 14px 0 0 8px; padding: 14px 14px 12px; border: 1px solid rgba(168, 85, 247, 0.35); border-radius: 12px; background: linear-gradient(160deg, rgba(168, 85, 247, 0.14), rgba(74, 143, 194, 0.08)); }
.rail-contact p { margin: 0; }
.rail-contact .rc-h { color: #f2f2f4; font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.rail-contact .rc-t { margin-top: 4px; color: #a9a9b3; font-size: 0.78rem; line-height: 1.45; }
.rail-contact .rc-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 8px 12px; border-radius: 9px; background: linear-gradient(90deg, #a855f7, #4a8fc2); color: #fff; font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: filter 0.15s, transform 0.15s; }
.rail-contact .rc-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.rail-contact .rc-btn:hover { filter: brightness(1.12); }
.rail-contact .rc-btn:hover svg { transform: translateX(2px); }
.rail-contact .rc-btn:focus-visible, .rail-contact .rc-mail:focus-visible { outline: 2px solid #4a8fc2; outline-offset: 2px; }
.rail-contact .rc-mail { display: block; margin-top: 7px; color: #a8c4ff; font-size: 0.74rem; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.rail-contact .rc-mail:hover { text-decoration: underline; }
.eval-cta { margin: 28px 0 0; padding: 14px 16px; border: 1px solid var(--line-soft, rgba(74, 143, 194, 0.18)); border-radius: 12px; background: rgba(168, 85, 247, 0.05); color: var(--muted, #9a9a9a); font-size: 0.95rem; }
.eval-cta a { color: #a8c4ff; overflow-wrap: anywhere; }
main > .eval-cta { grid-column: 1; margin: 32px 0 8px; }
/* the end-of-page invitation only where the rail (with its contact card) is hidden */
@media (min-width: 64.0625rem) { body:has(.rail-contact) .eval-cta { display: none; } }
/* three tabs and Share on a phone: Share shrinks to its icon, the tabs to their words */
@media (max-width: 40rem) {
  .pae-tabs a:not(.pae-act) { padding-left: 8px; padding-right: 8px; font-size: 0.9375rem; }
  .pae-share:not(.float) .ps-toggle { gap: 0; padding: 9px 11px; font-size: 0; }
}
@media (max-width: 26rem) {
  /* four tabs and the share button on one row at phone width */
  .pae-tabs { gap: 2px; }
  .pae-tabs a:not(.pae-act) { padding-left: 4px; padding-right: 4px; font-size: 0.8125rem; }
}
@media (max-width: 23rem) {
  .pae-tabs a:not(.pae-act) { padding-left: 3px; padding-right: 3px; font-size: 0.75rem; }
}

.nav { padding: 14px clamp(20px,5vw,64px); gap: 20px; }
.official-brand { font-family: "Orbitron",sans-serif; font-weight:700; text-decoration:none; color:var(--ink); }
.official-brand em { font-style:normal; background:linear-gradient(90deg,#a855f7,#4a8fc2); background-clip:text; -webkit-background-clip:text; color:transparent; }
.official-product { margin-right:auto; text-decoration:none; font-size:14px; color:var(--phos); }
.pae-title { max-width:100%; }
.pae-tabs { flex-wrap:wrap; }
/* Title block uses the same width and gutters as the other official pages. */
.pae-head .pae-share:empty { display:none; }
@media(max-width:480px) { .nav { padding:12px 16px; gap:12px; } .official-product { font-size:12px; } .nav-r { gap:0; } }


.language-switch{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;white-space:nowrap}.language-switch button{border:0;border-radius:999px;padding:6px 12px;background:transparent;color:var(--ink-dim);cursor:pointer;font:inherit;font-size:13px}.language-switch button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.contribute-intro{margin-bottom:36px;padding-bottom:32px;border-bottom:1px solid var(--line)}.contribute-intro h2{font-size:clamp(24px,4vw,32px);margin:0 0 18px}.contribute-intro p{color:var(--ink-dim);line-height:1.8;margin:0}.contribute-intro b{color:var(--ink)}.paper-callout{display:flex;gap:16px;padding:24px;margin-top:24px;border:1px solid rgba(168,85,247,.4);border-radius:14px;background:linear-gradient(135deg,rgba(168,85,247,.10),rgba(74,143,194,.06))}.paper-callout svg{width:26px;height:26px;flex:none;color:#c4b5fd}.paper-callout h3{font-size:17px;margin:0 0 10px}.paper-callout p{font-size:15px}@media(max-width:480px){.language-switch button{padding:6px 8px}.paper-callout{padding:18px;gap:10px}.official-product{display:none}}
.chip-entry{display:inline-block;margin:10px 0;padding:8px 14px;border:1px dashed var(--accent);border-radius:999px;background:var(--accent-soft);color:var(--ink);font:inherit;font-size:14px;cursor:pointer}.chip-entry:hover{border-style:solid}.custom-entry{margin-top:10px}

/* Match the official Video page masthead; keep language controls at its right. */
header.nav { grid-template-columns:1fr auto 1fr; padding:18px clamp(20px,5vw,64px); gap:14px 20px; z-index:20; background:rgba(10,10,10,.92); backdrop-filter:blur(8px); }
header.nav .official-brand { font-size:1.02rem; letter-spacing:.02em; line-height:1; }
header.nav .official-product { margin:0; font-size:.82rem; letter-spacing:.05em; text-transform:uppercase; justify-self:center; }
header.nav .nav-r { justify-self:end; }
@media(max-width:480px){header.nav{padding:14px 16px;grid-template-columns:1fr auto;gap:12px}header.nav .official-product{display:none}}

.sample{display:none!important}#stepper button:disabled{cursor:default;opacity:1}