/* Presentation Room. Brand CI: white surfaces with the hairline #E6E6E7, ink for reading, Blue 700 for
   links, focus and one accent, Noa blue #7DABF0 only as a field behind the white mark, Blue wash #F2F7FF
   marks selection. Plus Jakarta Sans only. No warm canvas panels. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/_s/fonts/plus-jakarta-sans-latin-variable.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/_s/fonts/plus-jakarta-sans-latin-ext-variable.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --paper: #FFFFFF; --hair: #E6E6E7; --ink: #0F172A; --ink-2: #38425A; --ink-3: #667085; --ink-4: #98A1B3;
  --blue: #7DABF0; --blue-700: #2C5CA3; --blue-wash: #F2F7FF; --blue-100: #E5EFFF;
  --ok: #1A7F56; --no: #C8372D; --warn: #A86400;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; min-height: 100vh; display: flex; flex-direction: column; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.028em; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .micro { font-size: 12px; }
a { color: var(--blue-700); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 15px/1 "Plus Jakarta Sans", system-ui, sans-serif; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: var(--ink-4); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: var(--no); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
input[type=email], input[type=text], input[type=datetime-local], textarea, select {
  width: 100%; height: 44px; border: 1px solid var(--hair); border-radius: 10px; padding: 0 14px; font: 15px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: #fff; }
textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
select.small { height: 34px; width: auto; font-size: 13px; padding: 0 8px; border-radius: 8px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #fff; border: 1px solid var(--hair); color: var(--ink-2); white-space: nowrap; }
.chip.blue { background: var(--blue-wash); border-color: var(--blue-wash); color: var(--blue-700); }
.chip.ok { background: #E8F5EE; border-color: #E8F5EE; color: var(--ok); }
.chip.warn { background: #FBF1E3; border-color: #FBF1E3; color: var(--warn); }
.chip.no { background: #FBEAE9; border-color: #FBEAE9; color: var(--no); }
.card { background: var(--paper); border: 1px solid var(--hair); border-radius: 18px; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--blue-wash); color: var(--blue-700); font-weight: 600; font-size: 14px; margin: 0 0 16px; }
.notice.err { background: #FBEAE9; color: var(--no); }

/* chrome */
.top { height: 68px; display: flex; align-items: center; gap: 22px; padding: 0 clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--hair); flex: none; }
.top .lockup { height: 26px; width: auto; display: block; }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-3); }
.top nav a.on { color: var(--ink); background: var(--blue-wash); }
.top nav a:hover { text-decoration: none; color: var(--ink); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 48px; }
footer.legal { border-top: 1px solid var(--hair); padding: 16px clamp(16px, 4vw, 40px); font-size: 12px; color: var(--ink-4); display: flex; gap: 16px; flex-wrap: wrap; }
footer.legal a { color: var(--ink-3); font-weight: 500; }

/* sign-in */
.split { display: grid; grid-template-columns: 1fr minmax(320px, 42%); min-height: 100vh; }
.split .left { padding: 40px clamp(20px, 5vw, 56px); display: flex; flex-direction: column; }
.split .box { margin: auto 0; width: 100%; max-width: 400px; align-self: center; padding: 40px 0; }
.split .box > p.lead { color: var(--ink-3); margin-bottom: 28px; }
.split .right { background: var(--blue); display: grid; place-items: center; position: relative; }
.split .right .mark { width: 150px; }
.split .right .line { position: absolute; left: 48px; bottom: 48px; right: 48px; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.split .right .line span { display: block; font-weight: 500; font-size: 15px; color: var(--ink-2); letter-spacing: 0; margin-top: 6px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-4); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.stack > * + * { margin-top: 10px; }
.legalline { font-size: 12px; color: var(--ink-4); margin-top: auto; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .right { display: none; } }

/* room */
.roomhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section { margin: 0 0 36px; }
.section > h2 { display: flex; align-items: center; gap: 10px; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: #fff; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stagebar { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { padding: 18px; }
.tile .muted { font-size: 13px; }
.empty { padding: 28px; text-align: center; color: var(--ink-3); }

/* admin */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--hair); }
td { padding: 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
td form { display: inline-flex; gap: 6px; align-items: center; margin: 0 6px 6px 0; }
.tablewrap { overflow-x: auto; }
.cols { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.lobby { text-align: center; padding: 60px 0; }
.lobby .count { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; }
.split .left .lockup { height: 30px; width: auto; display: block; }
.stage { border: 0; box-shadow: 0 0 0 1px var(--hair); }
@media (max-width: 640px) {
  .top { gap: 12px; }
  .top .lockup { height: 22px; }
  .top .chip { display: none; }
  .stagebar .small { width: 100%; }
}

/* ---------------------------------------------------------------- v4: rooms, the stage dialog, live */
main.narrow { max-width: 600px; }
.top .home { display: block; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead { font-size: 16px; max-width: 70ch; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; margin: 6px 0; }
.check input { width: 16px; height: 16px; margin: 0; }
.picks { padding-left: 24px; }
.picks.off { opacity: .55; }
td.acts { white-space: nowrap; }
td.acts .btn, td.acts form { margin: 0 6px 6px 0; }
td.acts form { display: inline-flex; }
img.avatar { object-fit: cover; display: block; }
.avatar.more { background: #fff; border: 1px solid var(--hair); color: var(--ink-3); }

/* the account menu */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; border-radius: 50%; display: block; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover .avatar { box-shadow: 0 0 0 3px var(--blue-wash); }
details.menu[open] > summary .avatar { box-shadow: 0 0 0 3px var(--blue-100); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 260px; background: #fff; border: 1px solid var(--hair); border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .28); padding: 8px; }
.menu-who { display: flex; gap: 12px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
.menu-who b { display: block; font-size: 14px; } .menu-who span { display: block; font-size: 12px; color: var(--ink-3); word-break: break-all; }
.menu-line { font-size: 12px; color: var(--ink-3); padding: 4px 8px 8px; margin: 0; }
.menu-pop form { margin: 0; }
.menu-item { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; font: 600 14px/1.2 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink);
  background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.menu-item:hover { background: var(--blue-wash); }

/* banners above a room */
.banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px clamp(16px, 4vw, 40px); background: var(--blue-wash); color: var(--blue-700); font-size: 14px; border-bottom: 1px solid var(--hair); }
.banner.warn { background: #FBF1E3; color: var(--warn); }
.banner form { margin: 0; }

/* the room */
.roomside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.people { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.people .stack { display: flex; }
.people .stack .avatar { width: 32px; height: 32px; border: 2px solid #fff; margin-left: -8px; }
.people .stack .avatar:first-child { margin-left: 0; }
.live-off .people { opacity: .5; }
.live-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--blue-wash); color: var(--blue-700); font-weight: 600; margin: 0 0 24px; }
.live-banner .dot, .pill.live::before { width: 8px; height: 8px; border-radius: 50%; background: #2F9E6B; box-shadow: 0 0 0 4px rgba(47, 158, 107, .18); flex: none; }
.live-banner #live-text { flex: 1; }
.decks { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.deckcard { border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.deckcard .cover { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-bottom: 1px solid var(--hair); background: #fff; cursor: pointer; overflow: hidden; }
.deckcard .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.19, 1, .22, 1); }
.deckcard .cover:hover img { transform: scale(1.02); }
.cover-empty { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; color: var(--ink-3); }
.cover-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(15, 23, 42, .78); color: #fff;
  display: grid; place-items: center; font-size: 22px; padding-left: 4px; opacity: 0; transition: opacity .2s; }
.deckcard .cover:hover .cover-play, .deckcard .cover:focus-visible .cover-play { opacity: 1; }
.deckmeta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.deckmeta p { margin: 2px 0 0; }
.deckacts { display: flex; gap: 8px; }
.roomtile { color: inherit; font-weight: inherit; text-decoration: none !important; }
.roomtile:hover { border-color: var(--ink-4); }

/* the team's start page */
.testroom { display: grid; grid-template-columns: minmax(240px, 42%) 1fr; gap: 0; overflow: hidden; color: inherit; font-weight: inherit; text-decoration: none !important; }
.testroom img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-right: 1px solid var(--hair); }
.testroom > div { padding: 24px 28px; align-self: center; }
.testroom h2 { font-size: 24px; margin-bottom: 6px; }
.testroom:hover { border-color: var(--ink-4); }
@media (max-width: 820px) { .testroom { grid-template-columns: 1fr; } .testroom img { border-right: 0; border-bottom: 1px solid var(--hair); } }
.reqs { display: grid; gap: 12px; }
.req-who { display: flex; gap: 12px; align-items: center; }
.req-note { margin: 12px 0 0; color: var(--ink-2); font-style: italic; }
.req-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.req-acts form { margin: 0; }
.newroom summary { cursor: pointer; list-style: none; }
.newroom summary::-webkit-details-marker { display: none; }
.newroom summary h2::after { content: " +"; color: var(--ink-4); }
.newroom[open] summary h2::after { content: ""; }
.newroom form { margin-top: 8px; }

/* the stage: a dialog over the page, the deck in it; frames are kept so nothing reloads */
.stage-dlg { position: fixed; inset: 0; z-index: 100; background: #0B1220; display: flex; flex-direction: column; visibility: hidden; opacity: 0;
  transition: opacity .18s ease, visibility 0s linear .18s; }
.stage-dlg.open { visibility: visible; opacity: 1; transition: opacity .18s ease; }
body.stage-open { overflow: hidden; }
.stage-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--hair); }
.stage-l, .stage-r { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.stage-l b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.stage-r .btn.icon { width: 34px; padding: 0; font-size: 15px; }
.stage-frames { position: relative; flex: 1; }
.stage-frames .frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; visibility: hidden; background: #fff; }
.stage-frames .frame.on { visibility: visible; }
.stage-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3; max-width: min(560px, 90vw); padding: 10px 16px; border-radius: 12px;
  background: rgba(15, 23, 42, .9); color: #fff; font-size: 14px; font-weight: 600; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--blue-wash); color: var(--blue-700); white-space: nowrap; }
.pill.live { background: #E8F5EE; color: var(--ok); }
.pill.live::before { content: ""; width: 7px; height: 7px; box-shadow: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 0 4px 0 0; cursor: pointer; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--hair); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.switch input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(14px); }
.present-to { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.present-to select { max-width: 220px; }
.stage-dlg:fullscreen .stage-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 4; opacity: 0; transition: opacity .2s; }
.stage-dlg:fullscreen .stage-bar:hover, .stage-dlg:fullscreen .stage-bar:focus-within { opacity: 1; }
@media (max-width: 720px) {
  .stage-bar { padding: 6px 8px; }
  .switch span { display: none; }
  #stage-swap, #stage-tab { display: none; }
  .decks { grid-template-columns: 1fr; }
  .roomside { align-items: flex-start; }
}

/* material: the app's screens, documents, the picture viewer */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); gap: 16px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.shot { display: block; scroll-snap-align: start; color: var(--ink-2); font-weight: 600; font-size: 13px; text-decoration: none !important; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; border-radius: 18px; border: 1px solid var(--hair); background: #fff; transition: transform .3s cubic-bezier(.19, 1, .22, 1); }
.shot:hover img { transform: translateY(-3px); }
.shot span { display: block; margin-top: 8px; }
.docs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.doc { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px; align-items: center; }
.doc-pic img { display: block; width: 120px; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; border: 1px solid var(--hair); border-radius: 8px; }
.doc-meta h3 { margin-bottom: 4px; }
.doc-meta .row { margin-top: 10px; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(11, 18, 32, .92); display: grid; place-items: center; padding: 24px 64px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 48px); border-radius: 18px; background: #fff; }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (max-width: 640px) { .lightbox { padding: 16px; } .doc { grid-template-columns: 90px 1fr; } .doc-pic img { width: 90px; } }

/* films: walkthroughs of the app (portrait phone recordings) */
.films { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.filmcard { border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.filmcard .cover { position: relative; display: grid; place-items: center; width: 100%; height: 360px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--hair);
  background: var(--blue-wash); cursor: pointer; overflow: hidden; }
.filmcard .cover img { height: 100%; width: auto; max-width: 100%; aspect-ratio: var(--ar, 9 / 19.5); object-fit: cover; border-radius: 22px; box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
  transition: transform .4s cubic-bezier(.19, 1, .22, 1); }
.filmcard .cover:hover img { transform: translateY(-3px); }
.filmcard .cover-play { opacity: .92; }
.filmcard .cover:hover .cover-play { opacity: 1; }
.cover-time { position: absolute; right: 12px; bottom: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(15, 23, 42, .78); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.filmmeta { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.filmmeta p { margin: 0; }
.filmmeta .deckacts { margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .films { grid-template-columns: 1fr 1fr; } .filmcard .cover { height: 300px; } }
@media (max-width: 460px) { .films { grid-template-columns: 1fr; } }
img.thumb { width: 28px; height: 44px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: 6px; border: 1px solid var(--hair); }

/* a film in the stage */
.stage-frames .frame.filmbox { background: #0B1220; }
.filmbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #0B1220; outline: none; }
.filmbox.follow video { pointer-events: none; }
.filmbox .film-sound, .filmbox .film-tap { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 0; background: rgba(255, 255, 255, .95); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.filmbox .film-tap { bottom: auto; top: 50%; transform: translate(-50%, -50%); height: 56px; font-size: 16px; }
.filmbox .film-wait { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600; }
