/* rroom by Vaulk — design system.
   Black-and-white only, matching rroom.app (built by the TeamAI agent):
   near-black paper / near-white ink, the rr wordmark in Inter + Antipasto,
   the first r a grey gradient. Day/night flip via [data-theme] on <html>.
   NO colour accent — hierarchy comes from weight, opacity and the greys. */

/* Antipasto is the brand face for "oom"; Inter (loaded per-page from rsms.me)
   is the face for the two r's and all UI text. */
@font-face {
  font-family: "Antipasto";
  src: url("/fonts/antipasto.demibold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* DARK is the signature default (matches rroom.app with no system hint). */
:root {
  --paper: #0a0a0a;
  --ink: #fafafa;
  --faint: #8f8f8f;
  --panel: #131313;
  --raise: #1c1c1c;
  --line: #2a2a2a;
  --r-from: #959595;   /* grey gradient on the first r — dark-paper values */
  --r-to: #cfcfcf;
  --halo: #0a0a0a;     /* cursor halo = paper, so the dot reads on any slide */
  --link: #5b9cff;     /* the ONE colour exception: links inside speaker notes */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ui: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--ui);
  color-scheme: dark;
}
/* System light, unless the viewer has explicitly chosen dark. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --paper: #ffffff; --ink: #0a0a0a; --faint: #6b6b6b;
    --panel: #f5f5f5; --raise: #ededed; --line: #e3e3e3;
    --r-from: #717171; --r-to: #363636;  /* light-paper values (never reuse dark) */
    --halo: #ffffff;
    --link: #1a5fd0;
    color-scheme: light;
  }
}
/* Manual day. */
:root[data-theme="light"] {
  --paper: #ffffff; --ink: #0a0a0a; --faint: #6b6b6b;
  --panel: #f5f5f5; --raise: #ededed; --line: #e3e3e3;
  --r-from: #717171; --r-to: #363636;
  --halo: #ffffff;
  --link: #1a5fd0;
  color-scheme: light;
}
/* Scrollbars follow the theme: thin, quiet, drawn from the same tokens. */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*:hover { scrollbar-color: var(--faint) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* Manual night (also the base). */
:root[data-theme="dark"] {
  --paper: #0a0a0a; --ink: #fafafa; --faint: #8f8f8f;
  --panel: #131313; --raise: #1c1c1c; --line: #2a2a2a;
  --r-from: #959595; --r-to: #cfcfcf;
  --halo: #0a0a0a;
  --link: #5b9cff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* An explicit `display` beats [hidden]; force it so el.hidden hides overlays. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--ui);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; }

/* ---- the rroom wordmark (exactly as rroom.app builds it) ------------- */
.wordmark {
  font-family: "Antipasto", var(--ui);
  font-weight: 600; letter-spacing: -.02em; line-height: 1;
  display: inline-block; color: var(--ink);
}
.wordmark .oom { font-family: "Antipasto", var(--ui); }
.wordmark .r1, .wordmark .r2 {
  font-family: var(--ui);
  font-size: 0.916em; font-weight: 600; letter-spacing: -.01em;
}
.wordmark .r1 {
  background: linear-gradient(100deg, var(--r-from) 0%, var(--r-to) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .wordmark .r1 { background: none; -webkit-text-fill-color: var(--r-from); color: var(--r-from); }
}
.by { color: var(--faint); font-weight: 500; }
.by b { color: var(--ink); font-weight: 700; }

/* ---- generic bits ---------------------------------------------------- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 650;
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--paper);
  transition: transform .06s ease, opacity .15s ease;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn:disabled { opacity: .45; cursor: default; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--panel); color: var(--faint);
  font-size: 13px; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.pill.on { color: var(--ink); }
.pill.on .dot { background: var(--ink); animation: livepulse 2s ease-out infinite; }
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 6px transparent; }
}

.themebtn {
  appearance: none; cursor: pointer; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink);
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center; transition: background .15s ease;
}
.themebtn:hover { background: var(--panel); }
.themebtn svg { width: 18px; height: 18px; display: block; }

/* ---- landing --------------------------------------------------------- */
.landing { min-height: 100%; display: grid; place-items: center; padding: 32px; }
.landing .card { width: min(560px, 100%); text-align: center; }
.landing h1 { font-size: clamp(28px, 5.2vw, 44px); margin: 0 0 8px; }
.landing .tag { color: var(--faint); font-size: 15px; margin: 0 0 24px; }
.landing .actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.landing .actions .btn { width: min(280px, 100%); padding: 11px 18px; font-size: 14px; }
.landing .join { display: flex; gap: 8px; width: min(280px, 100%); }
.landing .join input {
  flex: 1; text-transform: uppercase;
  font-family: var(--mono); letter-spacing: .1em; font-weight: 700; font-size: 12.5px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--panel); color: var(--ink);
}
.landing .join .btn { width: auto; padding: 9px 16px; }
.landing .join input::placeholder { color: var(--faint); letter-spacing: normal; font-weight: 500; }
.landing .foot { margin-top: 30px; color: var(--faint); font-size: 12.5px; }
.themebtn.topright { position: fixed; top: 16px; right: 26px; border: 0; }

/* ---- coming-soon curtain (soft admin gate on the landing) ------------ */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--paper); color: var(--ink); display: grid; place-items: center; padding: 32px; }
.curtain-in { text-align: center; }
.curtain .wordmark { font-size: clamp(30px, 6vw, 52px); }
.curtain .by { margin: 6px 0 0; font-size: 13px; }
.curtain .soon { margin-top: 26px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.curtain .admin { margin-top: 44px; }
.curtain .admin-code { width: 128px; text-align: center; font-family: var(--mono); letter-spacing: .4em; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); }
.curtain .admin-code::placeholder { letter-spacing: .06em; color: var(--faint); }
.curtain .admin-code:focus { outline: none; border-color: var(--ink); }
.curtain .admin-code.shake { animation: curtain-shake .32s; }
@keyframes curtain-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.curtain .admin-msg { margin: 10px 0 0; font-size: 12px; color: var(--faint); min-height: 1em; }
/* locked (default): hide the app + toggle. unlocked: hide the curtain. */
:root[data-unlocked="1"] #curtain { display: none; }
:root:not([data-unlocked="1"]) .landing,
:root:not([data-unlocked="1"]) .themebtn.topright { display: none; }

.code {
  font-family: var(--mono); font-weight: 700; letter-spacing: .18em;
  font-size: 30px; color: var(--ink);
}

/* ---- app shell (presenter + follower + replay) ---------------------- */
.app { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.topbar .wordmark { font-size: 22px; }
.topbar .spacer { flex: 1; }
.topbar .meta { display: flex; align-items: center; gap: 10px; }

.main { display: grid; min-height: 0; }
.stagewrap { position: relative; min-height: 0; padding: 26px; display: grid; place-items: center; overflow: hidden; }
.stage {
  position: relative;
  width: 100%; max-width: 1120px; aspect-ratio: 16 / 9;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.stage.web { background: var(--paper); }


/* presenter cursor as seen by followers — ink dot with a paper halo */
.cursor { position: absolute; left: 0; top: 0; z-index: 5; transform: translate(-50%, -50%); pointer-events: none; transition: left .06s linear, top .06s linear; display: flex; align-items: center; gap: 6px; }
.cursor .ptr { width: 15px; height: 15px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--halo), 0 0 0 4.5px var(--ink); }
.cursor .tag { background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.cursor.hidden { opacity: 0; }
.cursor.laser .ptr { width: 20px; height: 20px; animation: laserpulse .9s ease-out infinite; }
.cursor.laser .tag { display: none; }
@keyframes laserpulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 70%, transparent); }
  70%, 100% { box-shadow: 0 0 0 12px transparent; }
}

/* ---- presenter side panel ------------------------------------------- */
.share { text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; }
.share .code { display: block; margin: 4px 0 10px; }
.share .link { font-family: var(--mono); font-size: 13px; color: var(--faint); word-break: break-all; }
.qr { margin: 12px auto 4px; width: 148px; height: 148px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: #888; font-size: 12px; text-align: center; padding: 10px; }
.qr img { width: 100%; height: 100%; image-rendering: pixelated; }

.stat { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.stat .k { color: var(--faint); font-size: 13px; }
.stat .v { font-family: var(--mono); font-weight: 700; font-size: 15px; }

.iconbtn { appearance: none; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); width: 46px; height: 46px; border-radius: 12px; cursor: pointer; font-size: 20px; display: grid; place-items: center; transition: background .12s ease; }
.iconbtn:hover { background: var(--raise); }
.iconbtn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.reconnect { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--paper) 78%, transparent); z-index: 20; text-align: center; }
.reconnect .box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); margin: 0 auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s ease; z-index: 40; }
.toast.show { opacity: 1; }

/* landing: the user's own decks (remembered in this browser until accounts) */
.landing .mydecks { margin: 30px auto 0; text-align: left; width: min(360px, 100%); }
.landing .mydecks h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.landing .mydecks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.landing .mydecks li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.landing .mydecks li a { text-decoration: none; font-weight: 600; }
.landing .mydecks li .when { color: var(--faint); font-size: 12px; margin-left: auto; white-space: nowrap; }
.landing .mydecks li .forget { appearance: none; border: 0; background: transparent; color: var(--faint); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 7px; border-radius: 6px; }
.landing .mydecks li .forget:hover { color: var(--ink); background: var(--panel); }
.qr svg { width: 100%; height: 100%; display: block; }

/* ---------- presenter room: no top bar, the stage owns the height ---------- */
.stage > #revealRoot { position: absolute; inset: 0; }
.lobby { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 32px; background: var(--paper); overflow: auto; }
.lobby-in { text-align: center; width: min(520px, 100%); display: grid; gap: 14px; justify-items: center; }
.lobby .wordmark { font-size: 30px; }
.lobby h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.lobby .lead { margin: 0; color: var(--faint); font-size: 14px; max-width: 40ch; }
.lobby .share { width: min(340px, 100%); }
.lobby .qr { width: 180px; height: 180px; }
.lobby .btn.start { padding: 12px 28px; font-size: 15px; margin-top: 4px; }
.lobby .faint { color: var(--faint); font-size: 13px; margin: 0; }
.lobby .stats { width: min(380px, 100%); display: grid; gap: 10px; margin: 8px 0; }
.lobby-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lobby-actions .btn { text-decoration: none; }
.share .k { display: block; color: var(--faint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.room { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr 320px; }
body.notes-off .room { grid-template-columns: 1fr; }
body.notes-off .notesPane { display: none; }
.roomMain { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; min-height: 0; min-width: 0; }
.roomMain .stagewrap { padding: 16px 18px 8px; }
.filmstrip { display: flex; gap: 8px; padding: 6px 14px 6px; overflow-x: auto; overflow-y: hidden; border-top: 1px solid var(--line); background: var(--paper); scrollbar-width: thin; }
.fthumb { flex: none; position: relative; border: 2px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; padding: 0; cursor: pointer; appearance: none; }
.fthumb:hover { border-color: var(--faint); }
.fthumb.current { border-color: var(--ink); }
.fthumb .pptx-canvas { position: absolute; left: 0; top: 0; transform-origin: top left; pointer-events: none; }
.fthumb .n { position: absolute; left: 5px; bottom: 4px; font-family: var(--mono); font-size: 10px; color: #fff; background: rgba(0,0,0,.6); padding: 1px 5px; border-radius: 999px; }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 14px 10px; background: var(--paper); border-top: 1px solid var(--line); }
.bar .barL, .bar .barC, .bar .barR { display: flex; gap: 8px; align-items: center; }
.bar .barC { justify-content: center; }
.bar .barR { justify-content: flex-end; }
.bar .count { font-family: var(--mono); color: var(--faint); min-width: 64px; text-align: center; }
.bar .iconbtn { width: 40px; height: 40px; border-radius: 10px; font-size: 18px; }
.pillbtn { appearance: none; display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pillbtn:hover { background: var(--raise); }
.pillbtn.faint { color: var(--faint); cursor: default; }
.pillbtn.faint:hover { background: var(--panel); }
.pillbtn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pillbtn b { font-family: var(--mono); letter-spacing: .12em; font-weight: 700; }
.themebtn.sm { width: 36px; height: 36px; }
.notesPane { border-left: 1px solid var(--line); background: var(--panel); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }
.notesPane .notesHead { padding: 16px 18px 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; font-family: var(--ui); }
.notesPane .notes { padding: 0 18px 18px; overflow: auto; font-size: 15px; line-height: 1.55; }
.notesPane .notes p { margin: 0 0 10px; }
.notesPane .notes ul, .notesPane .notes ol { margin: 0 0 10px; padding-left: 22px; }
.notesPane .notes li { margin: 0 0 4px; }
.notesPane .notes.empty { color: var(--faint); }
.coBox { border-top: 1px solid var(--line); padding: 12px 14px 14px; display: grid; gap: 8px; }
.coBox label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.coBox .row { display: flex; gap: 8px; }
.coBox input { flex: 1; min-width: 0; background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); border-radius: 9px; padding: 9px 11px; font-size: 13px; font-family: inherit; }
.coBox input:focus { outline: none; border-color: var(--ink); }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.popover { position: fixed; left: 14px; bottom: 64px; z-index: 30; width: 250px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.popover .share { padding: 12px 10px; }
.popover .qr { width: 150px; height: 150px; }
@media (max-width: 860px) { .room { grid-template-columns: 1fr; } .notesPane { display: none; } .bar .barL { display: none; } }

/* ---------- follower: the slide owns the whole viewport ---------- */
.fullstage { position: fixed; inset: 0; display: grid; place-items: center; background: var(--paper); }
.fullstage .stage { --ar: 16 / 9; width: min(100vw, calc(100vh * var(--ar))); max-width: none; aspect-ratio: var(--ar); border: 0; border-radius: 0; box-shadow: none; }
.awaypill { position: fixed; left: 14px; bottom: 14px; z-index: 30; background: var(--panel); border: 1px solid var(--line); }
.endcard { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: var(--paper); text-align: center; padding: 32px; }
.endcard .wordmark { font-size: 34px; }
.endcard p { color: var(--faint); margin: 10px 0 0; font-size: 15px; }
.endcard p.tiny { font-size: 12px; margin-top: 22px; }
.endcard a { color: var(--faint); }

/* links inside speaker notes (derived from "slide 4" and web addresses) */
.notelink { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; cursor: pointer; }
.notelink:hover { text-decoration-thickness: 2px; }
::highlight(notelinks) { color: var(--link); text-decoration: underline; }

/* ---------- chat: a room command like any other, rendered locally ---------- */
.chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.chat .msgs { overflow-y: auto; overflow-x: hidden; padding: 8px 14px; display: flex; flex-direction: column; gap: 10px; }
.chat .msg { display: grid; grid-template-columns: 1fr auto auto; column-gap: 8px; font-size: 14px; line-height: 1.45; }
.chat .msg .who { font-weight: 700; font-size: 12.5px; color: var(--faint); }
.chat .msg.host { border-left: 2px solid var(--ink); padding-left: 8px; }
.chat .msg.host .who { color: var(--ink); }
.chat .msg .when { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.chat .msg .del { appearance: none; border: 0; background: transparent; color: var(--faint); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px; border-radius: 6px; }
.chat .msg .del:hover { color: var(--ink); background: var(--raise); }
.chat .msg .body { grid-column: 1 / -1; white-space: pre-wrap; word-break: break-word; }
.chat form.say { display: grid; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.chat form.say input { min-width: 0; background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); border-radius: 9px; padding: 9px 11px; font-size: 13px; font-family: inherit; }
.chat form.say input:focus { outline: none; border-color: var(--ink); }
.chat form.say .row { display: flex; gap: 8px; }
.chat form.say .row .text { flex: 1; }
/* follower panel */
.chatPanel { position: fixed; top: 0; right: 0; bottom: 0; width: 320px; z-index: 25; background: var(--panel); border-left: 1px solid var(--line); display: grid; grid-template-rows: auto minmax(0, 1fr); transform: translateX(102%); transition: transform .22s ease; }
.chatPanel .chatHead { display: flex; align-items: baseline; gap: 7px; padding: 14px 16px 8px; }
.chatPanel .chatHead .wordmark { font-size: 20px; }
.chatPanel .chatWord { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
body.chat-on .chatPanel { transform: none; }
.fullstage { transition: right .22s ease, bottom .22s ease; }
body.chat-on .fullstage { right: 320px; }
.fullstage .stage { width: min(100%, calc(100vh * var(--ar))); }
@media (max-width: 760px) {
  .chatPanel { top: auto; width: 100%; height: 46vh; border-left: 0; border-top: 1px solid var(--line); transform: translateY(102%); }
  body.chat-on .fullstage { right: 0; bottom: 46vh; }
  .fullstage .stage { width: min(100%, calc(100% * 0 + 100vw), calc((100vh - 46vh) * var(--ar))); }
}
/* presenter pane: two tabs on top — notes (default) or chat, never both */
.paneTabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); }
.ptab { appearance: none; border: 0; background: transparent; color: var(--faint); font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 8px 9px; margin-bottom: -1px; border-bottom: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ptab:hover { color: var(--ink); }
.ptab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ptab .badge { background: var(--ink); color: var(--paper); border-radius: 999px; font-size: 10px; letter-spacing: 0; padding: 1px 6px; text-transform: none; }
.presenter .notesPane { grid-template-rows: auto minmax(0, 1fr) auto; }
.presenter .notesPane .notes { padding-top: 12px; }
.chatBox { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.chatState { padding: 10px 14px; font-size: 12px; color: var(--faint); border-bottom: 1px dashed var(--line); }
.chatState.on { color: var(--ink); }

/* the one bar must fit next to the pane on a laptop: shorter labels first, then smaller pills */
@media (max-width: 1180px) { .bar .lbl { display: none; } .bar .pillbtn { padding: 8px 11px; } }
@media (max-width: 1000px) { .bar { gap: 6px; padding-left: 10px; padding-right: 10px; } .bar .barL, .bar .barC, .bar .barR { gap: 6px; } .bar .pillbtn { font-size: 12px; padding: 7px 9px; } .bar .iconbtn { width: 36px; height: 36px; } .bar .count { min-width: 50px; font-size: 13px; } }

/* ---------- ink: drawings over the stage ---------- */
.stage .ink { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; touch-action: none; }
.stage .ink.active { pointer-events: auto; cursor: crosshair; }
.inkTools { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.inkTools .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.inkTools .it { appearance: none; border: 1.5px solid transparent; background: transparent; color: var(--ink); width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.inkTools .it.txt { width: auto; padding: 0 10px; }
.inkTools .it svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inkTools .it:hover { background: var(--raise); }
.inkTools .it[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.inkTools .sw { appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--c); cursor: pointer; margin: 0 2px; }
.inkTools .sw[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
