/* KB_REMOTE: modeled on Chrome Remote Desktop (two clear actions, large code)
   and Google Meet (red sharing bar, compact bottom toolbar). No clutter. */
.kbrm{position:relative;padding:16px 16px 24px;max-width:720px;margin:0 auto}
.kbrm .rm-warn{background:#fef2f2;border:1px solid #fecaca;color:#7f1d1d;border-radius:12px;padding:12px 14px;margin:0 0 18px;font-size:14px;line-height:1.45}
.kbrm .rm-warn strong{display:block;margin-bottom:2px}
.rm-home .rm-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.rm-home .rm-cards{grid-template-columns:1fr}}
.rm-card{appearance:none;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px 18px;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.04);min-height:148px}
.rm-card:hover,.rm-card:focus-visible{border-color:#b91c1c;box-shadow:0 0 0 3px rgba(185,28,28,.12);outline:none}
.rm-ico{font-size:28px;line-height:1}
.rm-card strong{font-size:18px;letter-spacing:-.02em}
.rm-card span{color:#4b5563;font-size:13.5px;line-height:1.45}
.rm-sub{text-align:center;color:#6b7280;font-size:13px;margin:14px 0 8px}
.rm-help{margin-top:8px;border-top:1px solid #f3f4f6;padding-top:8px}
.rm-help summary{cursor:pointer;color:#111827;font-weight:600;font-size:14px}
.rm-help-in{padding:8px 0 0;font-size:14px;color:#374151;line-height:1.5}
.rm-dls{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.rm-k{font-size:13px;color:#6b7280;margin:0 0 4px;text-transform:uppercase;letter-spacing:.06em}
.rm-code{font-size:clamp(36px,8vw,56px);font-weight:700;letter-spacing:.12em;font-variant-numeric:tabular-nums;text-align:center;margin:4px 0 8px;color:#111;font-family:ui-monospace,Menlo,Consolas,monospace}
.rm-exp{text-align:center;color:#6b7280;font-size:13px;margin:0 0 12px}
.rm-sharebtns{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.rm-url{width:100%;margin:10px 0;padding:8px 10px;border:1px solid #e5e7eb;border-radius:8px;font-size:13px;color:#374151;background:#f9fafb}
.rm-status{text-align:center;min-height:1.4em;color:#374151;margin:10px 0}
.rm-ask{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:14px;margin:12px 0;text-align:center}
.rm-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:10px}
.rm-inrow{display:flex;gap:8px}
.rm-in{flex:1;font-size:28px;letter-spacing:.16em;text-align:center;padding:10px;border:1px solid #d1d5db;border-radius:12px;font-variant-numeric:tabular-nums;font-family:ui-monospace,Menlo,Consolas,monospace}
.rm-err{color:#b91c1c;margin:8px 0;font-size:14px}
.rm-preview{position:relative;margin:14px auto 0;max-width:100%;background:#111;border-radius:12px;overflow:hidden;aspect-ratio:16/10}
.rm-preview video,.rm-stage video{width:100%;height:100%;object-fit:contain;background:#111;display:block}
.rm-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.rm-session{position:relative}
.rm-stage{position:relative;background:#0a0a0a;border-radius:12px;overflow:hidden;min-height:220px;aspect-ratio:16/10}
.rm-laser{position:absolute;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 6px rgba(239,68,68,.25),0 0 14px #ef4444;pointer-events:none;z-index:3}
.rm-bar{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;margin-top:10px;padding:8px;background:#111827;border-radius:999px;color:#fff}
.rm-tb{appearance:none;background:transparent;color:#fff;border:0;border-radius:999px;padding:8px 12px;font-size:13px;cursor:pointer}
.rm-tb[aria-pressed="true"]{background:#374151}
.rm-tb.rm-stop,.rm-banner-stop{background:#dc2626;color:#fff;font-weight:700;border:0;border-radius:999px;padding:8px 16px;cursor:pointer}
.rm-q{min-width:2.2em;text-align:center;font-size:14px}
.rm-banner{position:fixed;top:0;left:0;right:0;z-index:80;display:flex;justify-content:center;align-items:center;gap:16px;background:#dc2626;color:#fff;font-weight:700;padding:8px 12px;font-size:14px;letter-spacing:.02em}
html.kb-remote-on .rm-banner{display:flex !important}
html.kb-remote-on .tfs-bar{top:36px}
.rm-appblock{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:16px;margin-top:12px;text-align:center}
/* session goes full-bleed inside the tool chrome */
html.kb-remote-on #kbrm{max-width:none;padding:8px}
html.kb-remote-on .tool-top,html.kb-remote-on .crumbs,html.kb-remote-on .donate-nudge,html.kb-remote-on .related-row,html.kb-remote-on .acc,html.kb-remote-on .share-row{display:none}
html.kb-remote-on .rm-stage{aspect-ratio:auto;height:calc(100dvh - 140px);min-height:280px}
@media (max-width:560px){
  .rm-bar{border-radius:16px}
  html.kb-remote-on .rm-stage{height:calc(100dvh - 160px)}
}
