/* Quality review: a feature page (Linear's /customer-requests). 1024 column, a live QA record as the hero,
   two-tone 24px sentences, the report as a page map with QA's pins across two versions, and the record funnel with its dated timeline as the signature. Prefix qr-. */

.qr-col { max-width: 1024px; margin: 0 auto; }
.qr-center { text-align: center; }

/* ---------- hero ---------- */
.qr-hero { position: relative; padding-top: 168px; overflow: clip; }
.qr-eyebrow { justify-content: center; margin-bottom: 20px; color: var(--fg-2); }
.qr-h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 560; }
.qr-lede { margin: 24px auto 0; max-width: 52ch; font-size: 17px; line-height: 1.6; color: var(--fg-3); }
.qr-pill { margin-top: 32px; }

.qr-panels { position: relative; max-width: 1024px; height: 600px; margin: 80px auto 0;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.qr-panels::before { content: ""; position: absolute; left: 50%; top: -80px; width: 120%; height: 120%; transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(50% 50% at 50% 30%, color-mix(in srgb, var(--fg-2) 9%, transparent), transparent 70%); }
.qr-hist { left: 0; top: 72px; width: 54%; height: 560px; }
.qr-recwin { right: 0; top: 0; width: 60%; height: 600px; }

.qr-al { background: #4b3b5c !important; color: #eef3f8 !important; }
.qr-mr { background: #3b4a5c !important; color: #eef3f8 !important; }
.qr-so { background: #3b5c4e !important; color: #eef3f8 !important; }

.qr-hlist > div { height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); color: var(--fg-2); font-size: 12.5px; }
.qr-hlist time { margin-left: auto; color: var(--fg-4); font-size: 12px; }
.qr-hlist .ph-r .ph { flex: 1; max-width: 220px; }

.qr-kv > div { min-height: 50px; padding: 12px 20px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; border-bottom: 1px solid var(--line-2);
  opacity: .18; filter: blur(1.5px); transition: opacity .6s var(--ease-enter), filter .6s var(--ease-enter); }
.qr-kv > div.on { opacity: 1; filter: none; }
.qr-kv span { color: var(--fg-3); font-size: 12.5px; }
.qr-kv b { font-weight: 450; color: var(--fg-1); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; line-height: 1.45; }
.qr-kv em { font-style: normal; color: var(--fg-3); }
.qr-who .ap-av { margin-right: 0; }
.qr-stamp { margin: 18px 20px 0; padding: 12px 14px; border-radius: 10px; display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--fg-3);
  background: var(--ok-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease-enter), transform .6s var(--ease-enter); }
.qr-stamp b { color: var(--fg-1); font-weight: 500; }
.qr-stamp.on { opacity: 1; transform: none; }

/* ---------- sections ---------- */
.qr-sec { padding-top: 176px; }
.qr-sec-sm { padding-top: 128px; }
.qr-tt { max-width: 760px; font-size: 24px; line-height: 1.33; letter-spacing: -0.018em; color: var(--fg-3); font-weight: 450; }
.qr-tt span { color: var(--fg-1); }
.qr-h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.026em; }
.qr-under { margin-top: 24px; color: var(--fg-3); font-size: 15px; max-width: 60ch; }

.qr-stage { margin-top: 56px; }
.qr-stage .stage2-in { height: 600px; }

/* the reviewer picker */
.qr-pickwin { left: 12%; right: 12%; top: 88px; height: 520px; }
.qr-people { padding: 8px 0; }
.qr-person { height: 64px; padding: 0 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-2); transition: opacity .5s, background .5s; }
.qr-person > div:not(.ph) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qr-person b { font-weight: 500; font-size: 13.5px; }
.qr-person small { color: var(--fg-3); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.qr-person .ap-badge, .qr-person .qr-why { margin-left: auto; }
.qr-person.ph-r .ph { flex: 0 0 200px; }
.qr-radio { width: 16px; height: 16px; flex: none; border-radius: 999px; box-shadow: inset 0 0 0 1.25px var(--fg-4); position: relative; }
.qr-person.on .qr-radio { box-shadow: inset 0 0 0 1.25px var(--fg-1); }
.qr-person.on .qr-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 999px; background: var(--fg-1); }
.qr-person.on { background: color-mix(in srgb, var(--bg-3) 60%, transparent); }
.qr-person.off { color: var(--fg-3); }
.qr-person.off > div b { color: var(--fg-3); }
.qr-person.off .qr-radio { opacity: .35; }
.qr-why { font-size: 12px; color: var(--fg-4); white-space: nowrap; transition: color .5s; }
.qr-person.hot .qr-why { color: var(--amber); }

/* ---------- 2: the report as a page map, two QA rounds ---------- */
.qr-map { position: relative; max-width: 1200px; margin: 64px auto 0; padding: 36px 40px 0; border-radius: 20px;
  background: radial-gradient(70% 90% at 50% 0%, #1d1e21 0%, #121315 40%, var(--bg) 85%); box-shadow: inset 0 1px 0 #ffffff12, inset 0 0 0 1px #ffffff0a; overflow: hidden; }
:root[data-theme="light"] .qr-map { background: radial-gradient(70% 90% at 50% 0%, #f1f1f3 0%, #f7f7f8 50%, var(--bg) 100%); box-shadow: inset 0 0 0 1px #0000000d; }
.qr-map-top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 13px; color: var(--fg-3); flex-wrap: wrap; }
.qr-map-v { height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--fg-1); font-weight: 500; white-space: nowrap; transition: box-shadow .4s, color .4s; }
.qr-map-v.ok { color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 45%, transparent); }
.qr-map-n { margin-left: auto; display: inline-flex; gap: 18px; flex-wrap: wrap; }
.qr-map-n span { white-space: nowrap; }
.qr-map-n b { color: var(--fg-1); font-weight: 560; font-size: 14px; font-variant-numeric: tabular-nums; margin-right: 5px; }
.qr-map-row { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }

.qr-pages { display: flex; flex-direction: column; gap: 9px; padding-top: 6px; }
.qr-pr { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: end; }
.qr-pr-l { font-size: 11.5px; color: var(--fg-3); white-space: nowrap; line-height: 18px; }
.qr-pr-l b { color: var(--fg-2); font-weight: 500; }
.qr-pr-p { display: flex; flex-wrap: wrap; gap: 3px; }
.qr-pg { position: relative; width: 14px; height: 18px; border-radius: 2.5px; box-shadow: inset 0 0 0 1px var(--line-3);
  background: linear-gradient(var(--line-2), var(--line-2)) 3px 5px / 8px 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 3px 8px / 6px 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 3px 11px / 7px 1px no-repeat;
  transition: background-color .5s var(--ease-enter), box-shadow .5s var(--ease-enter), opacity .6s, transform .4s var(--ease-enter); }
.qr-pg.ck { background-color: color-mix(in srgb, var(--ok) 70%, transparent); box-shadow: none; }
.qr-pg.ed { background-color: var(--cu-tint); box-shadow: inset 0 0 0 1px var(--cu); }
.qr-pg.sb { background-color: var(--amber); box-shadow: none; }
.qr-pg.v1 { opacity: .22; }
.qr-pg.hot { box-shadow: inset 0 0 0 1.5px var(--fg-1); animation: qr-breathe 1.4s ease-in-out infinite; }
.qr-pg.flash { box-shadow: 0 0 0 2px color-mix(in srgb, var(--fg-1) 22%, transparent); }
.qr-pg.lit, .qr-pg.v1.lit { opacity: 1; background-color: var(--ok-tint); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 40%, transparent); }
.qr-pg.focus { outline: 1.5px solid var(--fg-1); outline-offset: 2px; opacity: 1; z-index: 3; }
.qr-pg.focus .qr-pin { box-shadow: inset 0 0 0 1px var(--fg-2), 0 6px 16px #0000005c; }
@keyframes qr-breathe { 50% { box-shadow: inset 0 0 0 1.5px var(--fg-3); } }
.qr-pin { position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translate(-50%, 4px); z-index: 2; height: 18px; padding: 0 6px; border-radius: 5px; display: inline-flex; align-items: center; gap: 5px;
  font: 500 10.5px/1 "Geist Mono", ui-monospace, monospace; white-space: nowrap; color: var(--fg-1); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-3), 0 6px 16px #0000005c;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-enter), transform .4s var(--ease-enter); }
.qr-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 5px; background: var(--fg-3); }
.qr-pin i { width: 6px; height: 6px; border-radius: 99px; background: var(--pc, var(--fg-3)); }
.qr-pin svg { width: 9px; height: 9px; color: var(--ok); display: none; }
.qr-pin.on { opacity: 1; transform: translate(-50%, 0); }
.qr-pin.ans svg { display: block; }
.qr-pin.ans i { display: none; }
.qr-pin[data-k="ed"] { --pc: var(--cu); } .qr-pin[data-k="sb"] { --pc: var(--amber); } .qr-pin[data-k="ck"] { --pc: var(--ok); } .qr-pin[data-k="to"] { --pc: var(--fg-1); }
:root[data-theme="light"] .qr-pin { background: #fff; box-shadow: inset 0 0 0 1px #0000001a, 0 4px 12px #0000001a; }

.qr-pins { padding: 16px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 20px 40px #0000004d; min-height: 372px; font-size: 13px; }
:root[data-theme="light"] .qr-pins { background: #fff; box-shadow: inset 0 0 0 1px #00000014, 0 12px 32px #00000012; }
.qr-pins-h { display: flex; align-items: center; gap: 8px; color: var(--fg-1); font-weight: 500; margin-bottom: 10px; min-height: 22px; }
.qr-pins-h svg { width: 14px; height: 14px; color: var(--fg-3); flex: none; }
.qr-pins-h small { margin-left: auto; color: var(--fg-3); font-weight: 400; font-size: 12px; }
.qr-pins-l { display: flex; flex-direction: column; }
.qr-pi { appearance: none; border: 0; border-top: 1px solid var(--line-2); background: none; font: inherit; color: inherit; text-align: left; width: 100%; padding: 10px 0; display: flex; flex-direction: column; gap: 3px; cursor: default;
  opacity: 0; transform: translateY(6px); filter: blur(2px); transition: opacity .5s var(--ease-enter), transform .5s var(--ease-enter), filter .5s; }
.qr-pi.in { opacity: 1; transform: none; filter: none; }
.qr-pi .h { display: flex; gap: 8px; align-items: center; color: var(--fg-1); }
.qr-pi .h i { width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--pc, var(--fg-3)); }
.qr-pi .h .ap-key { font-size: 10.5px; height: 18px; }
.qr-pi .h em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.qr-pi .h em.ok { color: var(--ok); }
.qr-pi small { color: var(--fg-3); font-size: 12px; line-height: 1.45; }
.qr-pi[data-k="ed"] { --pc: var(--cu); } .qr-pi[data-k="sb"] { --pc: var(--amber); } .qr-pi[data-k="ck"] { --pc: var(--ok); } .qr-pi[data-k="to"] { --pc: var(--fg-1); }
.qr-pi:hover .h span:not(.ap-key), .qr-pi:focus-visible .h span:not(.ap-key) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.qr-pins-f { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; color: var(--fg-3); background: var(--bg-2); opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease-enter), transform .5s var(--ease-enter), background .4s; }
.qr-pins-f.in { opacity: 1; transform: none; }
.qr-pins-f b { color: var(--fg-1); font-weight: 500; }
.qr-pins-f.ok { background: var(--ok-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent); }
.qr-pins-f .ap-btn { margin-top: 8px; }
.qr-pins-f .ap-btn.press { transform: scale(.95); filter: brightness(1.2); }

.qr-map-leg { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; color: var(--fg-3); }
.qr-map-leg span { display: inline-flex; gap: 8px; align-items: center; }
.qr-map-leg i { width: 9px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line-3); }
.qr-map-leg i.ck { background: color-mix(in srgb, var(--ok) 70%, transparent); box-shadow: none; }
.qr-map-leg i.ed { background: var(--cu-tint); box-shadow: inset 0 0 0 1px var(--cu); }
.qr-map-leg i.sb { background: var(--amber); box-shadow: none; }
.qr-map-leg i.v1 { opacity: .3; }
.qr-steps { margin: 32px -40px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.qr-steps button { appearance: none; border: 0; background: none; font: inherit; text-align: left; color: var(--fg-1); padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; opacity: .4; transition: opacity .2s; position: relative; }
.qr-steps button + button { border-left: 1px solid var(--line); }
.qr-steps b { font-weight: 500; font-size: 15px; }
.qr-steps span { color: var(--fg-3); font-size: 13.5px; line-height: 1.45; }
.qr-steps button:hover { opacity: .75; }
.qr-steps button[aria-selected="true"] { opacity: 1; }
.qr-steps button[aria-selected="true"]::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: var(--fg-1); }
.qr-steps button:focus-visible { outline: 2px solid var(--fg-2); outline-offset: -4px; border-radius: 8px; }
.qr-under { margin-top: 24px; max-width: 640px; color: var(--fg-3); font-size: 15px; }

/* ---------- signature: the record funnel ---------- */
.qr-split { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 64px; align-items: start; }
.qr-split-t { position: sticky; top: 140px; }
.qr-split-t p { margin-top: 20px; color: var(--fg-3); font-size: 17px; line-height: 1.6; max-width: 38ch; }
.qr-split-t p b { color: var(--fg-1); font-weight: 500; }
.qr-funnel { position: relative; width: 560px; }
.qr-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 24px; }
.qr-groups span { position: relative; padding-bottom: 10px; text-align: center; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0; color: var(--fg-4); }
.qr-groups span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border: 1px solid var(--line-3); border-bottom: 0; border-radius: 4px 4px 0 0; }
.qr-tiles { margin-top: 12px; padding: 0 24px; display: grid; grid-template-columns: repeat(6, 72px); gap: 16px; }
.qr-tile { width: 72px; height: 72px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--fg-3); transition: color var(--dur-hover), box-shadow var(--dur-hover), background var(--dur-hover); }
.qr-tile svg { width: 20px; height: 20px; }
.qr-tile span { font-size: 10.5px; white-space: nowrap; }
.qr-tile.hot { color: var(--fg-1); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--fg-3); }
.qr-wires { display: block; width: 560px; height: 120px; overflow: visible; }
.qr-wires path { fill: none; stroke: var(--line-3); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .4s; }
.qr-wires path.hot { stroke: var(--fg-2); }
@keyframes qr-flow { to { stroke-dashoffset: -20; } }
.qr-rec2 { border-radius: 12px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 24px 60px #00000040; overflow: hidden; }
:root[data-theme="light"] .qr-rec2 { background: #fff; box-shadow: inset 0 0 0 1px #00000014, 0 12px 32px #00000012; }
.qr-rec2-h { height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--fg-3); }
.qr-rec2-h b { color: var(--fg-1); font-weight: 500; }
.qr-rec2-h .r { margin-left: auto; }
.qr-rec2-b { padding: 16px; font-size: 15px; color: var(--fg-1); min-height: 56px; transition: opacity .3s; }
.qr-tl { position: relative; list-style: none; margin: 0; padding: 24px 0 0 28px; }
.qr-tl::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 12px; border-left: 1px dashed var(--line-3); }
.qr-tl li { position: relative; padding: 12px 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; color: var(--fg-4); font-size: 14px; transition: color .4s; }
.qr-tl li::before { content: ""; position: absolute; left: -25px; top: 19px; width: 7px; height: 7px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--fg-4); transition: background .4s, box-shadow .4s; }
.qr-tl time { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: 0; }
.qr-tl b { font-weight: 500; }
.qr-tl li.done { color: var(--fg-3); }
.qr-tl li.done b { color: var(--fg-2); }
.qr-tl li.done::before { background: var(--fg-4); }
.qr-tl li.hot { color: var(--fg-1); }
.qr-tl li.hot b { color: var(--fg-1); }
.qr-tl li.hot::before { background: var(--fg-1); box-shadow: none; }

/* ---------- outside QA form ---------- */
#qr-out { height: 700px; }
.qr-formwin { left: 14%; right: 14%; top: 64px; height: 520px; }
.qr-form { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.qr-f { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.qr-f.half { grid-column: auto; }
.qr-f label { font-size: 12px; color: var(--fg-3); }
.qr-in { height: 36px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3); font-size: 13px; transition: box-shadow .4s; }
.qr-err { color: var(--red); font-size: 11.5px; height: 0; overflow: hidden; opacity: 0; transition: opacity .4s; }
.qr-f.bad .qr-in { box-shadow: inset 0 0 0 1px var(--red); }
.qr-f.bad .qr-err { height: auto; opacity: 1; }
.qr-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3); width: max-content; font-size: 12.5px; }
.qr-seg span { height: 28px; padding: 0 12px; border-radius: 6px; display: flex; align-items: center; color: var(--fg-3); }
.qr-seg span.on { background: var(--bg-4); color: var(--fg-1); box-shadow: inset 0 0 0 1px var(--line-3); }
.qr-file { height: 36px; padding: 0 12px; border-radius: 8px; display: flex; gap: 8px; align-items: center; border: 1px dashed var(--line-3); font-size: 12.5px; color: var(--fg-2); }
.qr-file svg { width: 14px; height: 14px; color: var(--fg-3); }
.qr-check { flex-direction: row; align-items: center; gap: 10px; font-size: 12.5px; color: var(--fg-2); }
.qr-tick { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; background: var(--inv); color: var(--inv-fg); flex: none; }
.qr-tick svg { width: 10px; height: 10px; }
.qr-formfoot { margin: 6px 20px 0; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--fg-3); }
.qr-formfoot .ap-btn { margin-left: auto; }

/* ---------- versions ---------- */
.qr-vers { margin-top: 56px; border-radius: 12px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3); overflow: hidden; font-size: 13px; }
:root[data-theme="light"] .qr-vers { background: #fff; }
.qr-vers-h { height: 48px; padding: 0 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-2); color: var(--fg-3); font-size: 12.5px; }
.qr-vers-h b { color: var(--fg-1); font-weight: 500; font-size: 13px; }
.qr-v { padding: 0 20px; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 96px; column-gap: 16px; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line-2); }
.qr-v:last-child { border-bottom: 0; }
.qr-vn { font-weight: 500; }
.qr-vd { color: var(--fg-3); }
.qr-hash { justify-self: end; color: var(--fg-4); font-size: 11.5px; }
.qr-vx { grid-column: 1 / -1; display: grid; gap: 8px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .7s var(--ease-enter), opacity .5s, padding .7s var(--ease-enter); }
.qr-v.open .qr-vx { max-height: 140px; opacity: 1; padding: 4px 0 18px; }
.qr-v { transition: padding .7s var(--ease-enter); }
.qr-v.open { padding-top: 12px; }
.qr-vx > div { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--bg-2); color: var(--fg-2); font-size: 12.5px; }

/* ---------- also row ---------- */
.qr-also { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.qr-also svg { width: 16px; height: 16px; color: var(--fg-2); display: block; margin-bottom: 14px; }
.qr-also b { display: block; font-size: 14px; font-weight: 500; }
.qr-also p { margin-top: 4px; font-size: 14px; color: var(--fg-3); line-height: 1.5; }

/* ---------- related + pre-footer ---------- */
.qr-rel-l { text-align: center; color: var(--fg-3); font-size: 13px; }
.qr-rel { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.qr-rel a { position: relative; min-height: 128px; padding: 24px; border-radius: 10px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 6px; transition: background .2s, box-shadow .2s; }
.qr-rel a:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3); }
.qr-rel span { color: var(--fg-3); font-size: 13px; }
.qr-rel b { font-weight: 500; font-size: 15px; max-width: 24ch; }
.qr-rel svg { position: absolute; right: 20px; bottom: 20px; width: 12px; height: 12px; color: var(--fg-3); transition: transform .2s; }
.qr-rel a:hover svg { transform: translateX(3px); color: var(--fg-1); }
.qr-pre { margin-top: 128px; padding: 96px 0; border-top: 1px solid var(--line); }
.qr-pre-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.qr-pre h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.026em; }

/* ---------- small screens ---------- */
@media (max-width: 1024px) {
  .qr-split { grid-template-columns: 1fr; }
  .qr-split-t { position: static; }
  .qr-funnel { margin: 0 auto; }
}
@media (max-width: 860px) {
  .qr-panels { height: 520px; }
  .qr-hist { display: none; }
  .qr-recwin { left: 0; width: 100%; height: 520px; }
  .qr-map-row { grid-template-columns: 1fr; gap: 24px; }
  .qr-pins { min-height: 0; }
  .qr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-steps button:nth-child(3) { border-left: 0; }
  .qr-steps button:nth-child(n+3) { border-top: 1px solid var(--line); }
  .qr-also { grid-template-columns: 1fr 1fr; }
  .qr-rel { grid-template-columns: 1fr; }
  .qr-pickwin, .qr-formwin { left: 16px; right: 16px; }
  .qr-v { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .qr-hash { display: none; }
}
@media (max-width: 640px) {
  .qr-hero { padding-top: 132px; }
  .qr-sec { padding-top: 120px; }
  .qr-tt { font-size: 20px; }
  .qr-kv > div { grid-template-columns: 1fr; gap: 4px; padding: 10px 16px; }
  .qr-funnel { width: 100%; }
  .qr-groups { padding: 0; }
  .qr-tiles { padding: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .qr-tile { width: auto; height: 56px; }
  .qr-tile span { display: none; }
  .qr-wires { width: 100%; height: 80px; }
  .qr-tl li { grid-template-columns: 1fr; gap: 2px; }
  .qr-form { grid-template-columns: 1fr; }
  .qr-f.half { grid-column: 1 / -1; }
  .qr-v { grid-template-columns: 1fr auto; padding: 12px 16px; row-gap: 4px; }
  .qr-vd { grid-column: 1 / -1; grid-row: 2; }
  .qr-person .qr-why, .qr-person .ap-badge { display: none; }
  .qr-also { grid-template-columns: 1fr; }
  .qr-map { padding: 24px 16px 0; border-radius: 16px; }
  .qr-map-n { margin-left: 0; gap: 12px; }
  .qr-pr { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
  .qr-pr-l { font-size: 11px; }
  .qr-pr-l .w { display: none; }
  .qr-pr-p { gap: 2px; }
  .qr-pg { width: 8px; height: 11px; border-radius: 1.5px; background-size: 0 0; }
  .qr-pin { font-size: 11px; height: 18px; padding: 0 4px; }
  .qr-steps { margin: 24px -16px 0; }
  .qr-steps button { padding: 16px 16px 18px; }
  .qr-steps span { font-size: 12.5px; }
  .qr-stage .stage2-in { height: 560px; }
  #qr-out { height: 700px; }
  .qr-formwin { top: 32px; height: 640px; }
  .qr-h1 { font-size: 36px; }
  .qr-hero .win-bar > span:not(.r), .qr-stage .win-bar > span:not(.r), .qr-rec2-h > span:not(.r) { display: none; }
  /* phone QA: captions below their scene */
  .stage2-cap { position: static; max-width: none; padding: 18px 12px 12px; }
}

/* ================= integration pass, 24 Oct ================= */
.qr-model { margin: 14px auto 0; font: 13px "Geist Mono", ui-monospace, monospace; color: var(--fg-4); }

/* section 2: a QA note, answered (small animation 6, ported from films/micro-options, scoped to #qr-note) beside the Hairline pin figure */
.qr-qa { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.qr-fig { margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.qr-fig-art { flex: 1; display: grid; place-items: center; min-height: 280px; }
.qr-fig-art [data-hairline] { width: 100%; max-width: 360px; }
.qr-fig figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--fg-4); }
.qr-fig figcaption .mono { height: 18px; font-size: 12px; color: var(--fg-3); }
#qr-note { position: relative; height: 400px; overflow: hidden; container-type: inline-size; isolation: isolate; font-size: 13px; line-height: 1.45; letter-spacing: -.006em; color: var(--fg-1); user-select: none;
  background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--fg-1) 3.5%, transparent), transparent 70%), var(--bg); }
#qr-note::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 30; box-shadow: inset 0 -40px 40px -24px var(--bg); }
#qr-note .pn { position: absolute; border-radius: 12px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 24px 48px -16px #0009, 0 8px 16px -8px #0006; }
:root[data-theme="light"] #qr-note .pn { box-shadow: inset 0 0 0 1px var(--line-3), 0 24px 48px -20px #0000002a, 0 6px 12px -6px #00000014; }
#qr-note .pn-h { height: 40px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); color: var(--fg-3); font-size: 12px; white-space: nowrap; }
#qr-note .pn-h b { color: var(--fg-1); font-weight: 500; }
#qr-note .pn-h .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
#qr-note .tag { height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; white-space: nowrap; }
#qr-note .tag.amber { color: var(--amber); background: var(--amber-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 32%, transparent); }
#qr-note .tag.ok { color: var(--ok); background: var(--ok-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 32%, transparent); }
#qr-note .av { width: 20px; height: 20px; border-radius: 999px; flex: none; display: inline-grid; place-items: center; font-size: 9px; font-weight: 600; background: var(--bg-3); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-3); }
#qr-note [data-in] { opacity: 0; transform: translateY(8px); filter: blur(4px); transition: opacity var(--dur-enter) var(--ease-spring), transform var(--dur-enter) var(--ease-spring), filter var(--dur-enter) var(--ease-spring); }
#qr-note [data-in].in { opacity: 1; transform: none; filter: none; }
#qr-note .stamp { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-2); position: relative; padding-bottom: 6px; }
#qr-note .stamp > * { opacity: 0; transform: translateY(5px); filter: blur(3px); transition: opacity var(--dur-enter) var(--ease-spring), transform var(--dur-enter) var(--ease-spring), filter var(--dur-enter) var(--ease-spring); }
#qr-note .stamp > *:nth-child(2) { transition-delay: var(--stagger); } #qr-note .stamp > *:nth-child(3) { transition-delay: calc(2 * var(--stagger)); }
#qr-note .stamp.in > * { opacity: 1; transform: none; filter: none; }
#qr-note .stamp b { color: var(--fg-1); font-weight: 500; }
#qr-note .stamp time { color: var(--fg-3); }
#qr-note .stamp .act { color: var(--ok); display: inline-flex; gap: 5px; align-items: center; font-weight: 500; }
#qr-note .stamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--ok), transparent); transform: scaleX(0); transform-origin: left; opacity: .5; transition: transform var(--dur-draw) var(--ease-spring) .1s; }
#qr-note .stamp.in::after { transform: scaleX(1); }
#qr-note .ck { width: 14px; height: 14px; flex: none; }
#qr-note .ck circle { fill: none; stroke: currentColor; stroke-width: 1.3; opacity: .35; }
#qr-note .ck path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset var(--dur-draw) var(--ease-spring) .15s; }
#qr-note .in .ck path, #qr-note .ok .ck path { stroke-dashoffset: 0; }
#qr-note .caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -.16em; background: var(--fg-1); border-radius: 1px; }
#qr-note .pg { left: 28px; right: 28px; top: 28px; bottom: -10px; overflow: visible; }
#qr-note .pg-b { padding: 16px 18px; }
#qr-note .sx { font-size: 12px; color: var(--fg-4); margin-bottom: 8px; }
#qr-note .bl { position: relative; padding: 10px 46px 10px 12px; margin: 0 -12px; border-radius: 8px; font-size: 14px; line-height: 1.7; color: var(--fg-2); transition: background var(--dur-enter) var(--ease-spring), box-shadow var(--dur-enter) var(--ease-spring); }
#qr-note .bl.mark { background: color-mix(in srgb, var(--amber) 7%, transparent); box-shadow: inset 2px 0 0 var(--amber); }
#qr-note .bl.ans { background: color-mix(in srgb, var(--ok) 6%, transparent); box-shadow: inset 2px 0 0 var(--ok); }
#qr-note .bl .del { position: relative; transition: opacity .4s, filter .4s; }
#qr-note .bl .del::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-draw) var(--ease-spring); }
#qr-note .bl .del.x::after { transform: scaleX(1); }
#qr-note .bl .del.gone { display: none; }
#qr-note .bl .add { color: var(--fg-1); }
#qr-note .ln { height: 6px; border-radius: 3px; background: var(--bg-3); margin: 10px 0; }
#qr-note .ln.s { width: 64%; }
#qr-note .pin { position: absolute; right: 10px; top: 10px; z-index: 4; width: 26px; height: 26px; border-radius: 999px 999px 999px 4px; display: grid; place-items: center; font-size: 9.5px; font-weight: 600; color: #1a1306; background: var(--amber); box-shadow: 0 0 0 2px var(--bg-1);
  opacity: 0; transform: translateY(-16px) scale(.7); transition: opacity .3s, transform .55s var(--ease-spring), background var(--dur-hover); }
#qr-note .pin.in { opacity: 1; transform: none; }
#qr-note .pin.ok { background: var(--ok); color: #04140c; }
#qr-note .pin .ini, #qr-note .pin .ck { grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--ease-spring); }
#qr-note .pin .ck { opacity: 0; transform: scale(.6); color: #04140c; }
#qr-note .pin.ok .ini { opacity: 0; transform: scale(.6); }
#qr-note .pin.ok .ck { opacity: 1; transform: none; }
#qr-note .note { position: absolute; right: 4px; top: calc(100% + 8px); z-index: 5; width: 270px; border-radius: 10px; padding: 10px 12px; background: color-mix(in srgb, var(--bg-3) 94%, transparent); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-3), 0 20px 40px -12px #000c; transform-origin: 92% 0;
  opacity: 0; transform: translateY(-4px) scale(.96); filter: blur(4px); transition: opacity .3s var(--ease-spring), transform var(--dur-enter) var(--ease-spring), filter .3s; }
:root[data-theme="light"] #qr-note .note { background: #fff; box-shadow: inset 0 0 0 1px var(--line-3), 0 20px 40px -16px #00000033; }
#qr-note .note.in { opacity: 1; transform: none; filter: none; }
#qr-note .note .who { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--fg-3); }
#qr-note .note .who b { color: var(--fg-1); font-weight: 500; }
#qr-note .note p { margin-top: 6px; font-size: 13px; color: var(--fg-1); line-height: 1.5; }
#qr-note .note .rep { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
#qr-note .pn-h .cnt { position: relative; display: inline-grid; overflow: hidden; height: 22px; }
#qr-note .pn-h .cnt > span { grid-area: 1 / 1; transition: transform var(--dur-enter) var(--ease-spring), opacity .3s, filter .3s; }
#qr-note .pn-h .cnt > span:last-child { transform: translateY(14px); opacity: 0; filter: blur(3px); }
#qr-note .pn-h .cnt.on > span:first-child { transform: translateY(-14px); opacity: 0; filter: blur(3px); }
#qr-note .pn-h .cnt.on > span:last-child { transform: none; opacity: 1; filter: none; }
@container (max-width: 440px) { #qr-note .pg { left: 14px; right: 14px; top: 20px; } #qr-note .note { width: 230px; } #qr-note .pn-h .hide-n { display: none; } }
@media (prefers-reduced-motion: reduce) { #qr-note *, #qr-note *::before, #qr-note *::after { transition: none !important; animation: none !important; } }

/* what version 2 brings back */
.qr-round { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.qr-round > div { padding: 18px 24px 0 0; display: flex; flex-direction: column; gap: 4px; }
.qr-round b { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--fg-1); }
.qr-round span { font-size: 14px; color: var(--fg-3); line-height: 1.5; max-width: 30ch; }
@media (max-width: 860px) {
  .qr-qa { grid-template-columns: 1fr; }
  .qr-fig { border-left: 0; border-top: 1px solid var(--line); }
  .qr-fig-art { min-height: 0; }
  .qr-fig-art [data-hairline] { max-width: 280px; }
}
@media (max-width: 640px) {
  #qr-note { height: 430px; }
  #qr-note .bl { font-size: 14px; }
  .qr-round { grid-template-columns: 1fr; row-gap: 4px; }
  .qr-round > div { padding: 14px 0 0; flex-direction: row; align-items: baseline; gap: 12px; }
  .qr-round b { font-size: 22px; min-width: 44px; }
  .qr-model { font-size: 12px; padding: 0 8px; }
}

/* minimal pass: one supporting line, labels, "+n" for what is folded away */
.qr-sub { margin-top: 10px; max-width: 52ch; font-size: 16px; line-height: 1.5; color: var(--fg-3); }
.qr-more { height: 40px !important; padding: 0 16px; display: flex; align-items: center; border-bottom: 0 !important; font-family: "Geist Mono", monospace; font-size: 12px; color: var(--fg-4); }
.qr-more-k { padding: 0 20px; }
.qr-dim { color: var(--fg-4); margin-left: auto; }
.qr-vx > div .ap-ev { margin-left: auto; }
.qr-stamp time { margin-left: auto; color: var(--fg-4); font-size: 12px; }
.qr-stamp .ap-badge { margin-left: 4px; }
@media (max-width: 768px) { .qr-sub { font-size: 15px; } }
#qr-pick { height: 440px; }
.qr-pickwin { top: 72px; height: 300px; }
@media (max-width: 768px) { #qr-pick { height: 440px; } }

/* ================= round 2 ================= */
.si { position: relative; display: inline-block; width: 13px; height: 13px; flex: none; border-radius: 99px; box-shadow: inset 0 0 0 1.3px var(--fg-3); }
.si[data-s="done"] { background: var(--fg-2); box-shadow: none; }
.si[data-s="done"]::after { content: ""; position: absolute; left: 4.3px; top: 2.6px; width: 3px; height: 5.5px; border: solid var(--bg); border-width: 0 1.4px 1.4px 0; transform: rotate(45deg); }
.qr-dimr { color: var(--fg-4); margin-left: auto; font-size: 12px; }
.qr-cov { gap: 6px !important; }
.qr-cov i { font-style: normal; height: 22px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 12px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-3); }
.qr-tl em, .qr-vd em { font-style: normal; color: var(--fg-4); margin-left: 8px; }
.qr-vd em { display: block; margin: 2px 0 0; font-size: 12px; }

/* the same block, followed through versions (replaces the line figure) */
.qr-trace { display: flex; flex-direction: column; padding: 8px 0; border-left: 1px solid var(--line); background: var(--bg-1); }
:root[data-theme="light"] .qr-trace { background: #fff; }
.qr-trace-h { display: flex; align-items: center; gap: 10px; padding: 12px 20px 14px; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.qr-trace-h b { font-weight: 500; }
.qr-trace-h .mono { font-size: 12px; color: var(--fg-2); }
.qr-tv { display: grid; grid-template-columns: 30px minmax(0, 1fr) 112px; gap: 14px; align-items: center; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--line-2); background: none; color: var(--fg-3); font: inherit; font-size: 12.5px; text-align: left; cursor: default; transition: background .4s, color .4s; }
.qr-tv.on { background: var(--bg-2); color: var(--fg-1); }
.qr-tv:focus-visible { outline: 2px solid var(--fg-2); outline-offset: -2px; }
.qr-tv-b { display: flex; flex-direction: column; gap: 6px; }
.qr-tv-l { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--fg-1) 8%, transparent); }
.qr-tv-l.w9 { width: 92%; } .qr-tv-l.w8 { width: 80%; } .qr-tv-l.w7 { width: 70%; } .qr-tv-l.w6 { width: 60%; }
.qr-tv-l.hit { background: color-mix(in srgb, var(--fg-1) 18%, transparent); transition: background .4s; }
.qr-tv.on .qr-tv-l.hit { background: var(--fg-2); }
.qr-tv-s { display: inline-flex; align-items: center; gap: 8px; }
.qr-tpin { width: 18px; height: 18px; border-radius: 99px 99px 99px 2px; display: inline-grid; place-items: center; font-size: 9px; font-weight: 600; background: #4a3d5c; color: #f1ecf7; }
.qr-trace-f { margin-top: auto; padding: 14px 20px 8px; font-size: 12.5px; color: var(--fg-2); display: flex; gap: 8px; }

/* version 2 in one bar: 291 pages, 3 to check, 1 checked (replaces the tile of numbers) */
.qr-round { display: block !important; margin-top: 28px; padding: 18px 20px 6px; border-radius: 12px; border-top: 0 !important; box-shadow: inset 0 0 0 1px var(--line); }
.qr-round-h { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.qr-round-h b { font-weight: 500; font-size: 13px !important; letter-spacing: 0 !important; }
.qr-ruler { position: relative; height: 24px; margin: 14px 0 12px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 6px); }
.qr-ruler i { position: absolute; left: var(--x); top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--fg-1); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-enter); }
.qr-ruler i.chk { background: var(--fg-3); }
.qr-round.in .qr-ruler i, .qr-round.in-view.on .qr-ruler i, .qr-round .qr-ruler i { transform: none; }
.qr-rl { display: flex !important; flex-direction: row !important; align-items: baseline; gap: 10px !important; padding: 8px 0 !important; border-top: 1px solid var(--line-2); }
.qr-rl b { font-size: 15px !important; min-width: 34px; }
.qr-rl span:last-child { font-size: 13.5px !important; }
.qr-sw { width: 8px; height: 8px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--fg-4); align-self: center; flex: none; }
.qr-sw.hot { background: var(--fg-1); box-shadow: none; }
.qr-sw.chk { background: var(--fg-3); box-shadow: none; }
@media (max-width: 768px) { .qr-trace { border-left: 0; border-top: 1px solid var(--line); } .qr-tv { grid-template-columns: 30px minmax(0, 1fr) 96px; } }
.qr-round > .qr-round-h { flex-direction: row !important; align-items: center; padding: 0 !important; gap: 10px; }
.qr-round > .qr-ruler { display: block !important; padding: 0 !important; }

/* ============ Invention round: 291 pages, four to read (the QA review tree folds) ============ */
.qr-sec-field { padding-top: 144px; }
.qf { margin-top: 40px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line), var(--lift); overflow: hidden; }
.qf-bar { height: 48px; padding: 0 12px 0 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.qf-bar b { font-weight: 500; }
.qf-dim { color: var(--fg-3); }
.qf-seg { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); }
.qf-seg button { all: unset; cursor: pointer; padding: 5px 10px; border-radius: 6px; font-size: 12.5px; color: var(--fg-3); transition: background var(--dur-hover), color var(--dur-hover); }
.qf-seg button[aria-pressed="true"] { background: var(--bg-4); color: var(--fg-1); }
.qf-seg button:hover { color: var(--fg-1); }
.qf-seg button:focus-visible { outline: 2px solid var(--fg-3); outline-offset: 1px; }
.qf-body { display: grid; grid-template-columns: 380px minmax(0, 1fr); height: 576px; }
.qt { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.qt-head { height: 40px; flex: none; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--fg-3); border-bottom: 1px solid var(--line-2); }
.qt-sum b { font-size: 13px; font-weight: 500; color: var(--fg-1); font-variant-numeric: tabular-nums; }
.qt-row, .qt-fold { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 14px; gap: 10px; align-items: center; padding: 0 16px; font-size: 13px; overflow: hidden; }
.qt-row { height: 38px; color: var(--fg-1); transition: height .6s var(--ease-swap) var(--d, 0s), opacity .4s var(--ease-swap) var(--d, 0s), background .3s; }
.qt-pl { font-size: 11px; color: var(--fg-3); }
.qt-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt-n { font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.qt-g { width: 14px; height: 14px; border-radius: 99px; box-shadow: inset 0 0 0 1.25px var(--fg-4); }
.qt-g svg { display: block; width: 14px; height: 14px; fill: none; stroke: var(--fg-2); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.qt-fold .qt-g { box-shadow: none; }
.qf.v1 .qt-row.cur { background: var(--line-2); }
.qf.v2 .qt-row:not([data-k="hot"]):not([data-k="chk"]) { height: 0; opacity: 0; }
.qf.v2 .qt-row[data-k="chk"] .qt-g { box-shadow: none; background: var(--fg-3); }
.qf.v2 .qt-row[data-k="chk"] .qt-g::after { content: ""; display: block; margin: 3.5px 0 0 4.5px; width: 3px; height: 5.5px; border: solid var(--bg); border-width: 0 1.3px 1.3px 0; transform: rotate(45deg); }
.qf.v2 .qt-row.sel { background: var(--bg-3); }
.qt-fold { height: 0; opacity: 0; color: var(--fg-3); border-top: 1px solid transparent; transition: height .6s var(--ease-swap) .35s, opacity .4s .5s; }
.qf.v2 .qt-fold { height: 44px; opacity: 1; border-top-color: var(--line-2); }
.qf.v1 .qt-fold { transition-delay: 0s; }
.qp { position: relative; min-width: 0; display: flex; flex-direction: column; }
.qp-h { height: 40px; flex: none; padding: 0 20px; display: flex; align-items: center; gap: 10px; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.qp-h .mono { font-size: 12px; color: var(--fg-2); }
.qp-h b { font-weight: 500; }
.qp-r { margin-left: auto; font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.qp-page { margin: 24px 28px 0 !important; padding: 18px 20px !important; line-height: 1.75 !important; transition: opacity .45s var(--ease-swap), transform .6s var(--ease-spring); }
.qp-k { font-size: 11.5px; color: #6b6f76; margin-bottom: 6px; }
.qp-page del { color: #9a9ca2; text-decoration-color: #b4373780; }
.qp-page ins { text-decoration: none; background: linear-gradient(#2a2723, #2a2723) no-repeat 0 100% / 100% 1px; padding-bottom: 1px; }
.qp-v1 { position: absolute; left: 0; right: 0; top: 40px; }
.qf.v2 .qp-v1, .qf.v1 .qp-v2, .qf.v1 .qp-f { opacity: 0; transform: translateY(8px); pointer-events: none; }
.qf.v1 .qp-v1 { opacity: 1; }
.qp-f { margin: auto 28px 22px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-3); transition: opacity .45s .3s; }
.qp-acts { margin-left: auto; display: flex; gap: 6px; }
@media (max-width: 900px) {
  .qf-body { grid-template-columns: 1fr; height: auto; }
  .qt { border-right: 0; border-bottom: 1px solid var(--line); }
  .qp { min-height: 360px; }
}
@media (max-width: 640px) {
  .qf-bar .qf-dim { display: none; }
  .qp-page { margin: 16px 14px 0 !important; }
  .qp-f { margin: 18px 14px 16px; flex-wrap: wrap; }
  .qp-h { padding: 0 14px; } .qt-row, .qt-fold { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .qf *, .qf *::after { transition: none !important; } }

/* ============ Invention round: choose a reviewer, the four conditions ============ */
#qr-pick { height: 640px; }
.qr-pickwin { top: 64px; height: 440px; }
.qr-kb { background: #4a4560 !important; color: #eef3f8 !important; }
button.qr-person { all: unset; box-sizing: border-box; width: 100%; height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background var(--dur-hover); }
button.qr-person:hover { background: var(--line-2); }
button.qr-person:focus-visible { outline: 2px solid var(--fg-3); outline-offset: -2px; }
button.qr-person.on { background: color-mix(in srgb, var(--bg-3) 60%, transparent); }
button.qr-person.no { background: color-mix(in srgb, var(--red) 6%, transparent); }
button.qr-person.no .qr-radio { box-shadow: inset 0 0 0 1.25px var(--red); }
.qr-person .qr-why { color: var(--fg-4); }
.qr-try { margin-left: auto; font-size: 12px; color: var(--fg-3); }
.qr-conds { padding: 16px 20px 0; }
.qr-cond-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); }
.qr-cond-h b { font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.qr-cnds { margin-top: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.qr-cnd { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.qr-cnd i { position: relative; display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.qr-cnd i::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--fg-1); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-spring); }
.qr-cnd.chk i::after { transform: scaleX(.5); background: var(--fg-3); }
.qr-cnd.met { color: var(--fg-1); }
.qr-cnd.met i::after { transform: none; }
.qr-cnd.bad { color: var(--red); }
.qr-cnd.bad i::after { transform: none; background: var(--red); }
.qr-say { margin-top: 14px; min-height: 20px; font-size: 13px; color: var(--fg-2); display: flex; align-items: center; gap: 8px; }
.qr-say.bad { color: var(--red); }
.qr-say svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 768px) { #qr-pick { height: 720px; } .qr-pickwin { height: 500px; top: 48px; } .qr-cnds { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; } }
@media (max-width: 640px) { .qr-person .qr-why { display: inline !important; } button.qr-person { padding: 0 14px; } .qr-conds { padding: 14px 14px 0; } }

.qf-v1 { position: absolute; top: 36px; left: 0; right: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.qf-v1 span { height: 8px; border-radius: 3px; background: var(--line); }
.qf-v1 span:nth-child(3n+2) { width: 74%; } .qf-v1 span:nth-child(3n) { width: 58%; }
.qf-v1 p { font-size: 12.5px; color: var(--fg-3); margin-bottom: 4px; }
.qf.v1 .qf-v1 { opacity: 1; transition-delay: .3s; }
.qf-list { position: relative; }

/* ============ Linear round, D13: one block in three versions, the older ones dimmer ============ */
.qr-d13 { margin: 56px 0 0; -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
.qr-d13-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.qr-vp { padding: 18px 18px 16px; border-radius: 12px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3); font-size: 13px; display: flex; flex-direction: column; gap: 12px; }
:root[data-theme="light"] .qr-vp { background: #fff; }
.qr-vp[data-v="2"] { opacity: .7; filter: blur(1px); }
.qr-vp[data-v="1"] { opacity: .4; filter: blur(1px); }
.qr-vp-h { display: flex; align-items: center; gap: 10px; }
.qr-vp-h b { font-weight: 500; font-size: 14px; }
.qr-vp-h .ap-badge { margin-left: auto; }
.qr-vp-k { display: flex; gap: 10px; color: var(--fg-3); font-size: 12px; }
.qr-vp-k .mono { color: var(--fg-2); }
.qr-vp-p { font-size: 13px; line-height: 1.6; }
.qr-vp-p ins { text-decoration: none; box-shadow: inset 0 -1px 0 var(--fg-3); }
.qr-vp-p del { color: var(--fg-3); text-decoration-color: var(--amber); }
.qr-vp-f { margin: 0; display: grid; gap: 0; }
.qr-vp-f > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); align-items: center; }
.qr-vp-f dt { color: var(--fg-4); font-size: 12px; }
.qr-vp-f dd { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 12.5px; }
.qr-vp-f .ap-av { width: 20px; height: 20px; font-size: 8.5px; }
@media (max-width: 860px) {
  .qr-d13 { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .qr-d13-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ============ Linear round: bento fragments (the card itself is the shared .bento) ============ */
.bf { font-size: 12px; color: var(--fg-2); display: flex; flex-direction: column; gap: 0; border-radius: 10px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3); overflow: hidden; }
.bf-h { height: 36px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); color: var(--fg-3); }
.bf-h b { color: var(--fg-1); font-weight: 500; }
.bf-h > :last-child:not(:first-child) { margin-left: auto; }
.bf-r { height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.bf-r > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bf-r em { margin-left: auto; font-style: normal; color: var(--fg-4); }
.bf-r .ap-av { width: 20px; height: 20px; font-size: 8.5px; }
.bf-t { padding: 12px; line-height: 1.6; color: var(--fg-1); }
.bf-file { height: 18px; padding: 0 5px; border-radius: 4px; display: inline-flex; align-items: center; font: 500 9.5px/1 "Geist Mono", ui-monospace, monospace; color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--line-3); }
