/* Remote screen share (brain#350 Layer A). Layout only: every colour, face and radius is a
   @wildcard/brand token; the card page (.c-auth / .c-auth-card), field, button, eyebrow and legal foot classes come from
   the package (components.css).
   ONE source file: this one. The caller page (edge) and the technician page (admin, /remote) both link it; the admin build
   copies it into admin/public/remote.css (scripts/cf/build-admin.sh, deploy-admin.yml), it is never committed there. */
:root{color-scheme:dark}
:root[data-theme="light"]{color-scheme:light}
.remote{margin:0;background:var(--bg);color:var(--white);font-family:var(--body);line-height:1.5;-webkit-font-smoothing:antialiased}
.remote h1{font-family:var(--disp);font-size:1.35rem;font-weight:700;margin:0;text-wrap:balance}
.rt-mint .c-btn.wide,.rt-done .c-btn.wide{width:100%}
.remote .c-err{margin:0}
.remote .sub{color:var(--muted);font-size:.9rem;margin:0 0 16px}
.rs-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--gold-b);box-shadow:0 0 0 0 var(--gold-dim);animation:rs-pulse 1.6s ease-out infinite;vertical-align:middle}
@keyframes rs-pulse{0%{box-shadow:0 0 0 0 var(--gold-dim)}100%{box-shadow:0 0 0 10px transparent}}

/* caller: the package card page; the room under the card is for the sharing bar.
   portal.css (loaded before this file) has its own .rs, a rail item with `all:unset`, which wipes .c-auth's page layout,
   so the centring is restated here. */
.rs{white-space:normal;min-height:100svh;display:grid;place-items:center;padding:var(--sp-6) var(--sp-6) calc(96px + env(safe-area-inset-bottom))}
.rs-mark{width:44px;height:44px;filter:drop-shadow(0 0 12px var(--gold-dim))}
.rs-sub{color:var(--muted);font-size:.95rem;margin:0}
.rs-form{display:flex;flex-direction:column;gap:14px;width:100%}
.rs-form input{text-align:center;font:600 2rem var(--disp)!important;letter-spacing:.35em;padding:16px 12px!important}
.rs-live{font-family:var(--disp);font-size:1.1rem;font-weight:700;margin:0;display:flex;align-items:center;gap:10px}
.rs-timer{font:600 2.4rem var(--disp);letter-spacing:.08em;color:var(--gold-b);margin:0;font-variant-numeric:tabular-nums}
.rs-bar{position:fixed;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--gold);color:var(--bg);font:600 .95rem var(--body);z-index:10}
.rs-bar[hidden]{display:none}
.rs-bar .rs-dot{background:var(--bg);animation:none}
.rs-bar span{flex:1}
.rs-bar-stop{font:700 .85rem var(--body);color:var(--gold);background:var(--bg);border:0;border-radius:10px;padding:10px 16px;min-height:44px;cursor:pointer}
/* The bot check on the code form: takes no room unless Cloudflare shows a tap box. */
.rs-ts:empty { display: none; }
.rs-ts { margin: 12px 0 4px; }

/* technician */
/* The stage is the point of the page: let it take the window (Alex 2026-10-16: "screen is too small"). */
.rt{max-width:min(1600px,100%)}
.rt .rt-stage{aspect-ratio:auto;height:min(calc(100vh - 240px),calc((100vw - 40px) * 9 / 16));min-height:300px}
.rt-stage:fullscreen{height:100vh;border:0;border-radius:0}
.rt-mint{display:flex;flex-direction:column;gap:12px;background:var(--card);border-radius:var(--r);padding:18px 16px}
.rt-code{background:var(--card);border:1px solid var(--gold-dim);border-radius:var(--r);padding:22px 16px;text-align:center;margin-top:12px}
.rt-digits{font:700 clamp(2.6rem,12vw,4.4rem) var(--disp);letter-spacing:.12em;color:var(--gold-b);margin:0;font-variant-numeric:tabular-nums;user-select:all}
.rt-status{color:var(--muted);font-size:.9rem;margin:10px 0 0}
.rt-view{margin-top:12px}
.rt-stage{position:relative;aspect-ratio:16/9;background:#000;border-radius:var(--r);overflow:hidden;border:1px solid var(--gold-dim)}
.rt-stage video{width:100%;height:100%;object-fit:contain;display:block;background:#000}
.rt-wait{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:24px;text-align:center;color:var(--muted);font-size:.95rem;background:var(--card)}
.rt-wait[hidden]{display:none}
.rt-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.rt-live{display:flex;align-items:center;gap:10px;font:600 1.1rem var(--disp);color:var(--gold-b);margin:0;font-variant-numeric:tabular-nums}
.rt-diag{margin:8px 0 0;font-size:.85rem;color:var(--muted);min-height:1.3em}
.rt-done{margin-top:12px;background:var(--card);border-radius:var(--r);padding:18px 16px;display:flex;flex-direction:column;gap:12px}
.rt-summary{margin:0;font-size:.95rem}
.rt .adm-top{display:flex;align-items:center;gap:12px;padding:20px 0 8px}
.rt .adm-top h1{flex:1}
.rt-btns{display:flex;gap:8px}
.remote [hidden]{display:none!important}
@media (prefers-reduced-motion:reduce){.rs-dot{animation:none}}
