/* Developer portal + review console. Builds on the app's tokens (base.css) and components (components.css). */

/* ───── page frame ───── */
.portal { min-height: 100dvh; width: min(100%, 1080px); margin: 0 auto; padding: 0 clamp(14px, 3vw, 28px) 80px; }
.pt-top { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-t) + 14px) 0 14px; flex-wrap: wrap; }
.pt-pill { background: rgba(139, 92, 246, .28); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .5); }
.pt-who { color: var(--muted); font-size: 14px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-who b { color: var(--ink); }
.pt-main { display: block; outline: none; }
.pt-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--sky); font-weight: 800; }
.pt-back svg { width: 18px; height: 18px; }
.pt-link { color: var(--sky); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.pt-sub { font-size: 18px; margin: 22px 0 10px; }
.l-dev { color: var(--faint); font-weight: 700; font-size: 13px; opacity: .8; } .l-dev:hover { color: var(--ink); opacity: 1; }

/* ───── chips, badges, notices ───── */
.pt-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; font-weight: 800; font-size: 13px; background: rgba(255, 255, 255, .1); white-space: nowrap; }
.pt-chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pt-chip.tone-grey { color: #cfd0f5; } .pt-chip.tone-sky { background: rgba(56, 182, 255, .18); color: #8ad4ff; } .pt-chip.tone-amber { background: rgba(255, 201, 51, .18); color: #ffd966; }
.pt-chip.tone-mint { background: rgba(43, 227, 176, .18); color: var(--mint); } .pt-chip.tone-red { background: rgba(255, 93, 115, .2); color: #ff9aa9; }
.pt-age { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 10px; border-radius: 10px; font: 600 14px var(--display); background: linear-gradient(135deg, var(--grape), var(--pink)); color: #fff; }
.pt-age.big { height: 52px; min-width: 76px; font-size: 28px; border-radius: 16px; }
.pt-note { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; font-weight: 700; font-size: 15px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line2); }
.pt-note svg { margin-top: 3px; }
.pt-note.tone-good { background: rgba(43, 227, 176, .12); box-shadow: inset 0 0 0 1px rgba(43, 227, 176, .45); }
.pt-note.tone-bad { background: rgba(255, 93, 115, .13); box-shadow: inset 0 0 0 1px rgba(255, 93, 115, .55); }
.pt-note.tone-warn { background: rgba(255, 201, 51, .12); box-shadow: inset 0 0 0 1px rgba(255, 201, 51, .5); }
.pt-note.tone-info { background: rgba(56, 182, 255, .1); box-shadow: inset 0 0 0 1px rgba(56, 182, 255, .4); }
.pt-err { margin-top: 4px; } .pt-err:empty { display: none; }
.pt-review { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 201, 51, .12); box-shadow: inset 0 0 0 1px rgba(255, 201, 51, .55); }
.pt-review.tone-bad { background: rgba(255, 93, 115, .13); box-shadow: inset 0 0 0 1px rgba(255, 93, 115, .6); }
.pt-review blockquote { margin: 6px 0 0; padding-left: 12px; border-left: 3px solid currentColor; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-banners { display: grid; gap: 12px; margin-bottom: 14px; } .pt-banners:empty { display: none; }
.pt-banners .pt-review { margin-top: 0; font-size: 16px; padding: 16px 18px; }

/* ───── forms ───── */
.pf { display: grid; gap: 6px; margin-top: 16px; } .pf:first-child { margin-top: 0; }
.pf-l { font-weight: 800; font-size: 15px; }
.pf-h { color: var(--muted); font-weight: 700; font-size: 13px; } .pf-h.bad, .input.bad { color: #ff9aa9; }
.input.bad { box-shadow: inset 0 0 0 2px var(--coral); }
.pf-row { display: flex; justify-content: space-between; gap: 10px; }
.pt-count { color: var(--faint); font-weight: 800; flex: none; }
.pt-ta { height: auto; min-height: 96px; padding: 12px 18px; resize: vertical; line-height: 1.4; }
select.input { height: 50px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { color: #14133a; background: #fff; }
.pt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } .pt-two > .pf { margin-top: 16px; }
.pt-passwrap { position: relative; } .pt-passwrap .input { padding-right: 78px; }
.pt-eye { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); font-weight: 800; font-size: 14px; }
.pt-eye:hover { background: rgba(255, 255, 255, .18); }
.locked .pt-sw, .locked .chip, .locked .seg button { cursor: not-allowed; }
.locked input:disabled, .locked textarea:disabled, .locked select:disabled { opacity: .7; }
.locked .chip, .locked .btn[disabled], .locked .seg button, .locked .pt-sw { opacity: .6; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.btn.pt-danger { color: #ff9aa9; }

/* ───── auth ───── */
.pt-auth { min-height: 100dvh; width: min(100%, 1040px); margin: 0 auto; padding: 0 clamp(14px, 3vw, 28px) 60px; }
.pt-auth-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: calc(var(--safe-t) + 14px) 0; }
@media (max-width: 560px) { .pt-top .btn, .pt-auth-top .btn { padding-inline: 12px; font-size: 13px; } .pt-top .pt-pill { display: none; } .pt-auth-top .btn-ghost { display: none; } }
.pt-auth-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px); gap: clamp(20px, 5vw, 56px); align-items: start; padding-top: clamp(4px, 3vw, 28px); }
.pt-intro h1 { font-size: clamp(32px, 5.5vw, 52px); margin: 4px 0 12px; }
.pt-intro > p { font-size: 17px; max-width: 52ch; }
.pt-steps { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 14px; }
.pt-steps li { display: flex; gap: 14px; align-items: flex-start; }
.pt-steps li div { display: grid; } .pt-steps li span { color: var(--muted); font-weight: 700; font-size: 14px; }
.pt-num { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--grape), var(--sky)); font: 600 17px var(--display); }
.pt-rules { padding: 16px 18px; border-radius: var(--r); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.pt-rules .ticks { margin-top: 8px; gap: 6px; }
.pt-authcard { padding: 22px; } .pt-authcard .tabs { margin-bottom: 14px; background: rgba(255, 255, 255, .05); border-radius: 16px; } .pt-authcard .tab { flex: 1; justify-content: center; min-height: 44px; }
.pt-form .btn { margin-top: 18px; }

/* ───── dashboard ───── */
.pt-head { margin-top: 8px; } .pt-kicker { margin-bottom: 2px; }
.pt-attn { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-bottom: 16px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 201, 51, .14); box-shadow: inset 0 0 0 1px rgba(255, 201, 51, .55); }
.pt-attn span { color: var(--muted); font-weight: 700; }
.pt-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pt-skel { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pt-game { --accent: var(--grape); padding: 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line), 0 -3px 0 0 var(--accent) inset; }
.pt-art { display: block; aspect-ratio: 16 / 9; background: var(--surface3); overflow: hidden; }
.pt-art img { width: 100%; height: 100%; object-fit: cover; }
.pt-art-empty { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, #0b0a24), var(--surface)); }
.pt-game-body { padding: 14px 16px 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.pt-game h3 { font-size: 21px; overflow-wrap: anywhere; } .pt-game h3 a:hover { text-decoration: underline; }
.pt-game-foot { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.pt-livedot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.pt-empty { text-align: center; padding: 44px 20px; max-width: 520px; margin: 30px auto; } .pt-empty .big { font-size: 56px; margin-bottom: 8px; }
.pt-details { margin-top: 18px; padding: 4px 16px; border-radius: var(--r); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.pt-details summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.pt-details[open] { padding-bottom: 14px; } .pt-details .ticks { margin-top: 4px; }
.pt-how { margin-top: 28px; } .pt-how-list { margin: 4px 0 0; padding-left: 22px; display: grid; gap: 6px; color: var(--muted); font-weight: 700; }

/* ───── game editor ───── */
.pt-ghead { margin-top: 4px; } .pt-ghead h1 { font-size: clamp(28px, 5vw, 40px); overflow-wrap: anywhere; }
.pt-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 8px; }
.pt-versions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pt-vlink { color: var(--sky); font-weight: 800; font-size: 13px; text-decoration: underline; padding: 6px 0; }
.pt-stepnav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; margin: 14px -6px 16px; padding: 6px; border-radius: 18px; background: rgba(16, 15, 52, .88); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line2), 0 10px 30px rgba(4, 3, 28, .4); }
.pt-stepl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 6px; border-radius: 14px; font-weight: 800; font-size: 14px; color: var(--muted); flex: none; }
.pt-stepl:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.pt-stepl b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font: 600 14px var(--display); color: var(--ink); }
.pt-stepl.done b { background: var(--mint); color: #06322a; }
.pt-saved { font-weight: 800; font-size: 14px; padding: 0 10px; color: var(--muted); white-space: nowrap; }
.pt-saved.saving { color: var(--sun); } .pt-saved.saved { color: var(--mint); } .pt-saved.error { color: #ff9aa9; white-space: normal; max-width: 320px; font-size: 13px; }
.pt-steps-col { display: grid; gap: 18px; }
.pt-step { padding: 20px clamp(14px, 3vw, 24px) 24px; scroll-margin-top: 76px; }
.pt-step-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.pt-step-head h2 { font-size: 24px; } .pt-step-head p { margin-top: 2px; }
.pt-tick { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--grape), var(--sky)); font: 600 20px var(--display); }
.pt-tick svg { width: 24px; height: 24px; stroke-width: 3; }
.pt-step.done .pt-tick { background: linear-gradient(135deg, var(--mint), var(--sky)); color: #06322a; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; } .pt-chips .chip { height: 44px; }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--grape), var(--pink)); box-shadow: 0 8px 20px -8px rgba(139, 92, 246, .9); }
.seg button { min-height: 44px; }
.pt-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pt-sw { width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .15); position: relative; }
.pt-sw[aria-pressed="true"] { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--c); }
.pt-picker { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; position: relative; background: conic-gradient(#ff5d73, #ffc933, #2be3b0, #38b6ff, #8b5cf6, #ff5d73); cursor: pointer; display: block; }
.pt-colorpick { position: absolute; inset: -8px; width: 70px; height: 70px; opacity: 0; cursor: pointer; }
.pt-hex { width: 120px; font-family: ui-monospace, monospace; text-transform: lowercase; }
.pt-ach-list { display: grid; gap: 12px; margin: 4px 0 8px; } .pt-ach-list:empty { display: none; }
.pt-ach { padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.pt-ach-main { display: flex; gap: 8px; align-items: center; } .pt-ach-main .input { flex: 1; min-width: 0; } .pt-ach-main .pt-emoji { flex: none; width: 64px; text-align: center; font-size: 22px; padding: 0 4px; }
.pt-ach-meta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; } .pt-ach-meta label { display: grid; gap: 4px; } .pt-ach-meta small { color: var(--muted); font-weight: 800; }
.pt-id { font-family: ui-monospace, monospace; font-size: 14px; }

/* files */
.pt-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.pt-fcol { display: grid; gap: 12px; align-content: start; min-width: 0; } .pt-fcol h3 { font-size: 18px; }
.pt-thumb { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--surface3); box-shadow: inset 0 0 0 1px var(--line2); }
.pt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pt-thumb-empty { height: 100%; display: grid; place-content: center; text-align: center; color: var(--muted); font-weight: 700; } .pt-thumb-empty span { font-size: 38px; }
.pt-drop { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 16px; border-radius: 20px; border: 2px dashed var(--line2); background: rgba(255, 255, 255, .04); transition: background .2s, border-color .2s; }
.pt-drop .btn { grid-column: 1 / -1; justify-self: start; }
.pt-drop.over { border-color: var(--sky); background: rgba(56, 182, 255, .14); }
.pt-drop-ic { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); } .pt-drop-ic svg { width: 24px; height: 24px; }
.pt-drop-t { display: grid; } .pt-drop-t span { color: var(--muted); font-weight: 700; font-size: 14px; }
.pt-prog { display: flex; align-items: center; gap: 12px; } .pt-prog .progress { flex: 1; } .pt-prog span { font-weight: 800; min-width: 84px; text-align: right; font-size: 14px; }
.pt-prog .progress i { transition: width .15s linear; }
.pt-msg:empty, .pt-report-wrap:empty { display: none; }
.pt-report { display: grid; gap: 14px; }
.pt-verdict { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; }
.pt-verdict > span { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; } .pt-verdict svg { width: 20px; height: 20px; stroke-width: 3; }
.pt-verdict div { display: grid; } .pt-verdict div span { color: var(--muted); font-weight: 700; font-size: 14px; }
.pt-verdict.good { background: rgba(43, 227, 176, .12); box-shadow: inset 0 0 0 1px rgba(43, 227, 176, .45); } .pt-verdict.good > span { background: var(--mint); color: #06322a; }
.pt-verdict.bad { background: rgba(255, 93, 115, .13); box-shadow: inset 0 0 0 1px rgba(255, 93, 115, .6); } .pt-verdict.bad > span { background: var(--coral); }
.pt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.pt-stat { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); display: grid; min-width: 0; } .pt-stat small { color: var(--muted); font-weight: 800; font-size: 12px; } .pt-stat b { overflow-wrap: anywhere; font-size: 15px; }
.pt-stat.warn { background: rgba(255, 201, 51, .12); }
.pt-fh { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 6px; } .pt-fh.error { color: #ff9aa9; } .pt-fh.warn { color: #ffd966; } .pt-fh.info { color: var(--muted); }
.pt-find { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; margin-bottom: 8px; font-weight: 700; font-size: 14px; background: rgba(255, 255, 255, .05); overflow-wrap: anywhere; }
.pt-find.error { background: rgba(255, 93, 115, .12); box-shadow: inset 0 0 0 1px rgba(255, 93, 115, .5); } .pt-find.warn { background: rgba(255, 201, 51, .1); box-shadow: inset 0 0 0 1px rgba(255, 201, 51, .4); }
.pt-fi { flex: none; margin-top: 2px; } .pt-find.error .pt-fi { color: #ff9aa9; } .pt-find.warn .pt-fi { color: #ffd966; }
.pt-find > div { min-width: 0; }
.pt-file { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 8px; background: rgba(0, 0, 0, .3); font-size: 12px; overflow-wrap: anywhere; }
.pt-hint { display: block; margin-top: 4px; color: var(--muted); font-weight: 700; }
.pt-filter { padding-bottom: 0; }

/* age questionnaire */
.pt-agebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 20px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line2); margin-bottom: 16px; position: sticky; top: 68px; z-index: 10; background: #1d1c4d; }
.pt-agebar > div { display: grid; gap: 2px; } .pt-agebar small { color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.pt-agebar > span { font-weight: 700; color: var(--muted); flex: 1 1 200px; }
.pt-agebar:not(.has) .pt-age { background: rgba(255, 255, 255, .12); } .pt-agebar.pending .pt-age { opacity: .6; }
.pt-blocked { display: grid; gap: 8px; margin-bottom: 14px; } .pt-blocked:empty { display: none; }
.pt-q { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; } .pt-q legend { font: 600 20px var(--display); padding: 0; margin-bottom: 2px; }
.pt-opts { display: grid; gap: 8px; margin-top: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pt-opt { position: relative; display: flex; align-items: center; min-height: 58px; padding: 10px 14px 10px 46px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line2); cursor: pointer; font-weight: 700; font-size: 15px; line-height: 1.3; transition: background .2s, box-shadow .2s; }
.pt-opt:hover { background: rgba(255, 255, 255, .11); }
.pt-opt input { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin: -11px 0 0; accent-color: var(--grape); }
.pt-opt.on { background: rgba(139, 92, 246, .24); box-shadow: inset 0 0 0 2px var(--grape); }
.pt-opt:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.pt-pledges { display: grid; gap: 8px; margin-top: 10px; }
.pt-pledge { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line2); cursor: pointer; font-weight: 700; font-size: 15px; min-height: 48px; }
.pt-pledge input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--mint); }

/* submit */
.pt-status { margin-bottom: 14px; }
.pt-todo { padding: 14px 16px; border-radius: 18px; background: rgba(255, 201, 51, .1); box-shadow: inset 0 0 0 1px rgba(255, 201, 51, .45); }
.pt-todo ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pt-todo li { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; font-weight: 700; }
.pt-todo li a { grid-column: 2; color: var(--sky); font-weight: 800; text-decoration: underline; padding: 8px 0; margin: -4px 0; }
.pt-x { color: #ff9aa9; margin-top: 2px; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; } .pt-actions:empty { display: none; }
.pt-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pt-timeline li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px 0 10px 16px; border-left: 2px solid var(--line2); position: relative; }
.pt-timeline li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--grape); }
.pt-timeline time { color: var(--muted); font-size: 13px; font-weight: 700; }
.pt-evnote { margin: 4px 0 0; color: var(--muted); font-weight: 700; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ───── sandbox preview ───── */
.pv-layer { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; padding-top: var(--safe-t); }
.pv { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg2); box-shadow: 0 1px 0 var(--line2); }
.pv-title { display: flex; align-items: center; gap: 10px; font: 600 18px var(--display); min-width: 0; } .pv-title .pill { font-size: 12px; }
.pv-seg button { min-height: 36px; padding: 0 12px; }
.pv-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.pv-stage { min-height: 0; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; background: radial-gradient(circle at 50% 30%, #1d1c52, #0b0a24); overflow: hidden; }
.pv-frame { position: relative; background: #000; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 6px #23225c, var(--shadow); }
.pv-stage[data-size="phone"] .pv-frame { width: min(390px, 100%); height: min(844px, 100%); }
.pv-stage[data-size="desktop"] .pv-frame { width: 100%; height: 100%; border-radius: 14px; }
.pv-frame:fullscreen { width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; }
.pv-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; touch-action: none; }
.pv-loader { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; background: var(--bg); transition: opacity .4s; color: var(--muted); font-weight: 700; }
.pv-loader.out { opacity: 0; pointer-events: none; }
.pv-console { display: flex; flex-direction: column; min-height: 0; background: #0f0e30; box-shadow: -1px 0 0 var(--line2); }
.pv-console-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; box-shadow: 0 1px 0 var(--line); }
.pv-stars { font-weight: 800; color: #ffe08a; background: rgba(255, 201, 51, .14); padding: 3px 10px; border-radius: 99px; font-size: 14px; }
.pv-log { flex: 1; min-height: 0; overflow: auto; padding: 8px 10px; font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; display: flex; flex-direction: column; gap: 6px; }
.pv-empty { color: var(--muted); font: 700 13px var(--font); padding: 8px 2px; }
.pv-row { padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .05); display: grid; gap: 2px; overflow-wrap: anywhere; border-left: 3px solid var(--line2); }
.pv-row time { color: var(--faint); font-size: 11px; } .pv-row b { color: #fff; margin-right: 6px; }
.pv-row.call.ok { border-left-color: var(--mint); } .pv-row.err { border-left-color: var(--coral); background: rgba(255, 93, 115, .1); } .pv-row.warn { border-left-color: var(--sun); background: rgba(255, 201, 51, .08); } .pv-row.info { border-left-color: var(--sky); }
.pv-row code { color: #b9baf5; } .pv-out { color: var(--mint); } .pv-row.err .pv-out { color: #ff9aa9; } .pv-row.warn .pv-out, .pv-row.info .pv-out { color: var(--muted); } .pv-out i { color: var(--faint); font-style: normal; }
.pv-note { padding: 8px 12px 12px; color: var(--faint); font-weight: 700; font-size: 12px; }
.pv-inline { display: block; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line2); }
.pv-inline .pv-body { grid-template-columns: minmax(0, 1fr); }
.pv-inline .pv-stage { height: min(720px, 78vh); }
.pv-inline .pv-console { height: 260px; box-shadow: 0 -1px 0 var(--line2); }
@media (max-width: 860px) {
  .pv-layer .pv-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 34%; }
  .pv-layer .pv-console { box-shadow: 0 -1px 0 var(--line2); }
  .pv-bar { padding: 8px 10px; } .pv-title .pill { display: none; } .pv-bar .btn-sm, .pv-seg button { min-height: 44px; }
  .pv-title { flex: 1 1 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 560px) { .pv-seg { display: none; } .pv-bar .spacer { display: none; } .pv-bar .btn { flex: 1; padding: 0 8px; } }

/* ───── admin: reviews ───── */
.tabbadge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--coral); color: #fff; font: 800 12px/20px var(--font); text-align: center; }
.rv-filters { flex: 1; min-width: 0; } .rv-count { margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: rgba(0, 0, 0, .28); font-size: 12px; }
.rv-list { display: grid; gap: 12px; margin-top: 8px; }
.rv-item { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 12px; cursor: pointer; transition: transform .2s var(--spring), background .2s; }
.rv-item:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); }
.rv-item img, .rv-noimg, .rv-head img { width: 132px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; flex: none; }
.rv-noimg { display: grid; place-items: center; background: var(--surface3); font-size: 30px; }
.rv-main { min-width: 0; display: grid; gap: 4px; } .rv-main b { font-size: 18px; }
.rv-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rv-bad { background: rgba(255, 93, 115, .25); color: #ffb3bd; } .rv-warn { background: rgba(255, 201, 51, .2); color: #ffd966; }
.rv-table td:last-child { text-align: right; }
.rv-head { display: flex; gap: 16px; align-items: center; margin: 14px 0; padding: 14px; } .rv-head img, .rv-head .rv-noimg { width: 190px; }
.rv-head h2 { font-size: 28px; }
.rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rv-col { display: grid; gap: 16px; min-width: 0; }
.rv-sticky { position: sticky; top: 8px; }
.rv-card h3 { font-size: 19px; margin-bottom: 10px; } .rv-card h4 { margin: 14px 0 6px; font-size: 15px; }
.rv-card { padding: 16px; min-width: 0; }
.rv-kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .rv-kv small { color: var(--muted); font-weight: 800; }
.rv-desc { margin-bottom: 8px; overflow-wrap: anywhere; }
.rv-color { display: inline-flex; align-items: center; gap: 8px; } .rv-color::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: var(--c); }
.rv-ages { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; } .rv-ages .rv-kv { border: 0; grid-template-columns: 1fr; }
.rv-answers, .rv-pledges, .rv-vers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rv-answers li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 14px; } .rv-answers li span { color: var(--muted); font-weight: 700; }
.rv-pledges li { display: flex; gap: 8px; font-size: 14px; font-weight: 700; } .rv-pledges li.yes svg { color: var(--mint); } .rv-pledges li.no svg { color: #ff9aa9; }
.rv-vers li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rv-play { display: grid; gap: 10px; justify-items: start; } .rv-play .pv { width: 100%; justify-self: stretch; }
.rv-checks { display: grid; gap: 4px; }
.rv-check { display: flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 700; cursor: pointer; } .rv-check input { width: 22px; height: 22px; accent-color: var(--mint); flex: none; }
.rv-notes { height: auto; padding: 12px 16px; resize: vertical; line-height: 1.4; }
.rv-decide { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; } .rv-decide .btn { flex: 1 1 150px; }
.rv-card blockquote { margin: 8px 0 0; }

/* ───── responsive ───── */
@media (max-width: 900px) {
  .rv-grid { grid-template-columns: 1fr; } .rv-sticky { position: static; }
  .pt-auth-grid { grid-template-columns: 1fr; }
  .rv-head { flex-direction: column; align-items: flex-start; } .rv-head img, .rv-head .rv-noimg { width: 100%; max-width: 320px; }
}
@media (max-width: 560px) {
  .pt-two { grid-template-columns: 1fr; }
  .pt-stepl { padding: 0 4px; } .pt-stepl .lbl { display: none; }
  .pt-stepnav { gap: 2px; margin-left: 0; margin-right: 0; }
  .pt-saved { flex: 1; min-width: 0; white-space: normal; text-align: right; font-size: 12.5px; line-height: 1.2; padding: 0 6px; } .pt-saved.error { max-width: none; }
  .pt-step-head h2 { font-size: 21px; }
  .pt-who { display: none; }
  .rv-item { flex-direction: column; align-items: flex-start; } .rv-item img, .rv-item .rv-noimg { width: 100%; }
  .pt-timeline li { grid-template-columns: 1fr; gap: 2px; }
  .rv-kv { grid-template-columns: 1fr; gap: 0; }
  .pt-actions .btn { flex: 1 1 100%; }
  .pt-agebar { position: static; }
  .pt-pill { display: none; }
}

/* ───── developer guide (#/dev/guide) and the help strip on the dashboard ───── */
.pt-help { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 16px; border-radius: 16px; background: rgba(56, 182, 255, .1); box-shadow: inset 0 0 0 1px rgba(56, 182, 255, .35); font-weight: 700; }
.pt-help > span { flex: 1 1 260px; }
.pt-guide { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; align-items: start; }
.pt-g-toc { position: sticky; top: 12px; display: grid; gap: 2px; font-size: 14px; }
.pt-g-toc a { padding: 6px 0; color: var(--muted); font-weight: 700; } .pt-g-toc a:hover { color: var(--ink); }
.pt-g-body { line-height: 1.65; min-width: 0; }
.pt-g-body h1 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 6px; }
.pt-g-body h2 { font-size: 26px; margin: 40px 0 8px; scroll-margin-top: 12px; }
.pt-g-body h3 { font-size: 19px; margin: 22px 0 4px; }
.pt-g-body p, .pt-g-body li { max-width: 70ch; }
.pt-g-lead { color: var(--muted); font-size: 18px; margin: 0 0 16px; }
.pt-g-body a { color: var(--sky); font-weight: 800; }
.pt-g-body pre { background: rgba(0, 0, 0, .35); border-radius: 14px; padding: 14px 16px; overflow: auto; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: inset 0 0 0 1px var(--line2); }
.pt-g-body code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255, 255, 255, .1); padding: 1px 6px; border-radius: 6px; }
.pt-g-body pre code { background: none; padding: 0; }
.pt-g-card { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line2); border-radius: 16px; padding: 14px 18px; margin: 14px 0; }
.pt-g-card.tip { border-left: 6px solid var(--mint); }
.pt-g-card > :first-child { margin-top: 0; } .pt-g-card > :last-child { margin-bottom: 0; }
.pt-g-body table { border-collapse: collapse; width: 100%; font-size: 14.5px; display: block; overflow-x: auto; }
.pt-g-body th, .pt-g-body td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.pt-g-steps { counter-reset: gs; list-style: none; padding: 0; }
.pt-g-steps li { counter-increment: gs; position: relative; padding-left: 44px; margin: 12px 0; }
.pt-g-steps li::before { content: counter(gs); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--grape), var(--pink)); color: #fff; display: grid; place-items: center; font: 600 15px var(--display); }
@media (max-width: 760px) { .pt-guide { grid-template-columns: 1fr; } .pt-g-toc { display: none; } }
