/* Codex solves CAPTCHAs. The screenshots, replies and timings come from captchas.brianzhou.org,
   the published traces of the Sep 8–9, 2026 runs (data.js, from build.py). */
:root { --ok: #1fa463; --ask: #e0a100; --no: #a3a3a3; }
:root[data-theme="dark"] { --ok: #3ccf86; --ask: #f4c242; --no: #5c5c5c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok: #3ccf86; --ask: #f4c242; --no: #5c5c5c; } }

.cs-end .links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- hero: the browser and the puzzles it passed */
#hero { background: #3a6df0; }
.cp-wall { position: absolute; inset: 0; background:
  radial-gradient(80% 80% at 100% 100%, #1fa463 0%, rgba(31, 164, 99, 0) 50%),
  radial-gradient(70% 80% at 0% 0%, #7c5cff 0%, rgba(124, 92, 255, 0) 60%),
  linear-gradient(140deg, #2747c9 0%, #3a6df0 50%, #2fa1c9 100%); }
:root[data-theme="dark"] .cp-wall { filter: brightness(0.55) saturate(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cp-wall { filter: brightness(0.55) saturate(1.05); } }
.cp-stage { position: absolute; left: 0; top: 0; width: 1200px; height: 720px; transform-origin: 0 0; font-family: var(--sans); }
.cp-win { position: absolute; left: 44px; top: 56px; width: 830px; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 30px 80px rgba(10, 20, 70, 0.4), 0 8px 24px rgba(10, 20, 70, 0.2); }
.cp-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #eceef2; }
.cp-lights { display: flex; gap: 7px; }
.cp-lights i { width: 11px; height: 11px; border-radius: 50%; }
.cp-lights i:nth-child(1) { background: #ff5f57; } .cp-lights i:nth-child(2) { background: #febc2e; } .cp-lights i:nth-child(3) { background: #28c840; }
.cp-url { flex: 1; max-width: 420px; height: 26px; display: flex; align-items: center; padding: 0 12px; border-radius: 13px; background: #fff; color: #3c4043; font: 400 12.5px/1 var(--sans); white-space: nowrap; overflow: hidden; }
.cp-view { position: relative; aspect-ratio: 1375 / 874; background: #fff; }
.cp-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.cp-view img.on { opacity: 1; }
.cp-rail { position: absolute; left: 906px; top: 56px; width: 250px; display: flex; flex-direction: column; gap: 6px; }
.cp-who { margin: 0 0 6px; color: rgba(255, 255, 255, 0.85); font: 500 12px/16px var(--sans); }
.cp-step { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.62); font: 500 13px/18px var(--sans); transition: background 0.14s, color 0.14s; }
.cp-step small { display: block; margin-top: 1px; font: 400 11.5px/15px var(--sans); color: rgba(255, 255, 255, 0.7); min-height: 15px; }
.cp-step i { position: relative; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.cp-step.live { background: rgba(255, 255, 255, 0.94); color: #1b1b1b; }
.cp-step.live small { color: #6b6b6b; }
.cp-step.live i { box-shadow: inset 0 0 0 1.5px #3a6df0; }
.cp-step.live i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #3a6df0; animation: cp-pulse 0.9s ease-in-out infinite alternate; }
@keyframes cp-pulse { to { opacity: 0.25; } }
.cp-step.done { background: rgba(255, 255, 255, 0.94); color: #1b1b1b; }
.cp-step.done small { color: #1a7f4b; }
.cp-step.done i { background: #1fa463; box-shadow: none; }
.cp-step.done i::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cp-step.wash { animation: cp-wash 0.6s ease-out; }
@keyframes cp-wash { from { background: #c9f2dc; } }
:root[data-theme="dark"] .cp-step.live, :root[data-theme="dark"] .cp-step.done { background: rgba(28, 28, 30, 0.94); color: #f2f2f2; }
:root[data-theme="dark"] .cp-step.done small { color: #3ccf86; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cp-step.live, :root:not([data-theme="light"]) .cp-step.done { background: rgba(28, 28, 30, 0.94); color: #f2f2f2; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cp-step.done small { color: #3ccf86; } }
.cs-hero .cs-hero-fade { height: 10%; }

/* ---------- one request, sixteen answers */
.gd { padding: 18px 18px 16px; }
.gd-ask { margin: 0 0 16px auto; width: fit-content; max-width: 86%; padding: 9px 13px; border-radius: 16px; background: var(--bg); font: 400 13px/18px var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.gd-table { display: grid; grid-template-columns: 112px repeat(4, minmax(0, 1fr)); gap: 6px; align-items: center; }
.gd-col { font: 500 11.5px/16px var(--mono); color: var(--muted); text-align: center; }
.gd-model { font: 500 13px/18px var(--sans); color: var(--ink); }
.gd-cell { position: relative; min-height: 54px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--bg); color: var(--ink-2); font: 500 12px/16px var(--sans); transition: box-shadow 0.14s, transform 0.2s cubic-bezier(.34, 1.56, .64, 1); }
.gd-cell small { font: 400 10.5px/14px var(--mono); color: var(--muted); text-align: center; }
.gd-cell::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--no); }
.gd-cell.ok { background: color-mix(in srgb, var(--ok) 16%, var(--bg)); color: var(--ink); }
.gd-cell.ok::before { background: var(--ok); }
.gd-cell.ask::before { background: var(--ask); }
.gd-cell.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.gd-cell.hide { opacity: 0; transform: scale(0.9); }
.gd-cell.show { transition: opacity 0.2s, transform 0.3s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.14s; }
.gd-reply { margin-top: 14px; min-height: 96px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font: 400 13px/19px var(--sans); color: var(--ink-2); }
.gd-reply b { display: block; margin-bottom: 4px; font: 500 12px/16px var(--sans); color: var(--muted); }
.gd-reply b em { font-style: normal; color: var(--ink); }

/* ---------- it depends how you ask */
.ak { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
.ak-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; background: var(--bg); }
.ak-chat h3 { margin: 0; font: 500 12px/16px var(--sans); color: var(--muted); }
.ak-me { align-self: flex-end; max-width: 92%; padding: 9px 13px; border-radius: 16px; background: var(--frame); color: var(--ink); font: 400 13px/18px var(--sans); overflow-wrap: anywhere; }
.ak-it { font: 400 13px/19px var(--sans); color: var(--ink-2); text-wrap: pretty; }
.ak-out { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font: 500 12px/16px var(--sans); color: var(--muted); }
.ak-out::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--no); }
.ak-out.ok { color: var(--ink); }
.ak-out.ok::before { background: var(--ok); }

@media (max-width: 640px) {
  .gd { padding: 14px 10px 12px; }
  .gd-table { grid-template-columns: 70px repeat(4, minmax(0, 1fr)); gap: 4px; }
  .gd-model { font-size: 11.5px; line-height: 15px; }
  .gd-cell { min-height: 48px; font-size: 11px; }
  .gd-cell small { font-size: 9.5px; line-height: 12px; }
  .ak { grid-template-columns: 1fr; }
}
