/* ==========================================================================
   Rooms, Light · Minimal glow (2026-10-28). Boards M-RoomScan, M-RoomChoose, M-RoomLive, M-RoomCard
   (Design canvas "Resonate — Ships vs. Impresses", page "Every screen — Minimal glow").
   Rooms stay on a deep moss/forest ground in BOTH modes (Brand.md: rooms are moss in both modes): one soft glow at the
   top over #13201A, paper text, dark glass (white .08 with a .16 edge), paper primary buttons with forest text, pale mint
   #A8DDBE for the words a line leans on, DM Mono lowercase labels, glossy orbs with no halos.
   Markup: parts/90-rooms.js (the glass table, the choice preview, the pass and seal). Every rule is scoped to
   html[data-ui="imp"], which outranks css/v2/room.css (#eroom ...) and the foundation without !important.
   Motion: presses .96–.985 over 160 ms; the page entrance and "Last one in" are room.css's (transform/opacity only).
   ========================================================================== */

html[data-ui="imp"][data-theme] #eroom{
  --rz-ground:#13201A; --rz-paper:#FFF8F0; --rz-dim:rgba(255,248,240,.72); --rz-mint:#A8DDBE; --rz-live:#7FD3A6;
  --rz-glass:rgba(255,255,255,.08); --rz-glass2:rgba(255,255,255,.12); --rz-edge:rgba(255,255,255,.16); --rz-edge2:rgba(255,255,255,.22);
  --rz-hair:0 1px 2px rgba(0,0,0,.28); --rz-forest:#154A36; --rz-rule:rgba(255,255,255,.10);
  --roomText:#FFF8F0; --roomDim:rgba(255,248,240,.72); --nline:rgba(255,255,255,.16);
  --glow:#FFF8F0; --dim:rgba(255,248,240,.72); --faint:rgba(255,248,240,.62);
  --imp-ink:#FFF8F0; --imp-dim:rgba(255,248,240,.72); --imp-glass:rgba(255,255,255,.08); --imp-card:rgba(255,255,255,.08);
  --imp-edge:rgba(255,255,255,.16); --imp-hair:0 1px 2px rgba(0,0,0,.28); --imp-line:rgba(255,255,255,.10);
  background:radial-gradient(80% 45% at 50% 0%,rgba(44,74,46,.45) 0%,rgba(44,74,46,0) 70%),#13201A;
  background-attachment:local;background-repeat:no-repeat;color:#FFF8F0}
html[data-ui="imp"][data-theme] body:has(#eroom:not([hidden])){background:#13201A}

/* ---- the page: 56 px to the header on a phone, 20 px gutters for text (16 for glass), 34 px under the button ---- */
html[data-ui="imp"] #eroom .rz-page{
  padding:max(56px,calc(env(safe-area-inset-top,0px) + 8px)) max(20px,env(safe-area-inset-right)) max(34px,calc(env(safe-area-inset-bottom,0px) + 12px)) max(20px,env(safe-area-inset-left));
  font-weight:400;color:var(--rz-paper)}
html[data-ui="imp"] #eroom .rz-top{min-height:44px;margin:0 -4px;gap:12px}
html[data-ui="imp"] #eroom .rz-ib{width:44px;height:44px;border-radius:22px;background:var(--rz-glass);box-shadow:inset 0 0 0 1px var(--rz-edge);color:var(--rz-paper);
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
html[data-ui="imp"] #eroom .rz-ib svg{display:block}
html[data-ui="imp"] #eroom .rz-ib:active{transform:scale(.96)}
html[data-ui="imp"] #eroom :is(.rz-ib,.rz-btn,.rz-link,.rz-opt,.rz-pill,.rz-reqs,.rz-row>button):focus-visible{outline:2px solid var(--rz-mint);outline-offset:2px}

/* labels: DM Mono lowercase, no tracking */
html[data-ui="imp"] #eroom .rz-mono,html[data-ui="imp"] #eroom .rz-kick{font:400 12.5px/1.3 var(--mono);letter-spacing:0;text-transform:lowercase;color:var(--rz-dim)}
html[data-ui="imp"] #eroom .rz-kick{margin:26px 0 0}
html[data-ui="imp"] #eroom .rz-kick.s{margin:0}
html[data-ui="imp"] #eroom .rz-mint{color:var(--rz-mint)}

/* the brand line and the date (M-RoomScan header) */
html[data-ui="imp"] #eroom .rz-sig{gap:8px;font:600 16px/1 'Figtree',system-ui,sans-serif;color:var(--rz-paper);letter-spacing:0}
html[data-ui="imp"] #eroom .rz-sig svg{flex:none;display:block}
html[data-ui="imp"] #eroom .rz-sig>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html[data-ui="imp"] #eroom .rz-date{flex:none}

/* the room's name as a glass chip (M-RoomChoose header, the room's kicker, "5 here") */
html[data-ui="imp"] #eroom .rz-chip{height:32px;padding:0 12px;border-radius:16px;box-sizing:border-box;display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;
  background:var(--rz-glass);box-shadow:inset 0 0 0 1px var(--rz-edge);font:400 12.5px/1 var(--mono);text-transform:lowercase;color:var(--rz-dim);white-space:nowrap}
html[data-ui="imp"] #eroom .rz-chip>span{overflow:hidden;text-overflow:ellipsis;min-width:0}
html[data-ui="imp"] #eroom .rz-chip i{width:7px;height:7px;border-radius:4px;flex:none;background:rgba(255,248,240,.35)}
html[data-ui="imp"] #eroom .rz-chip i.on{background:var(--rz-live)}
html[data-ui="imp"] #eroom .rz-top .rz-chip{flex:0 1 auto}
html[data-ui="imp"] #eroom .rz-k{margin:18px 0 0}

/* ---- M-RoomScan ---- */
html[data-ui="imp"] #eroom .rz-venue{margin:6px 0 0;font:400 54px/58px var(--serif);letter-spacing:-1px}
html[data-ui="imp"] #eroom .rz-ev{margin:4px 0 0;font:400 22px/28px var(--serif);color:var(--rz-dim)}
html[data-ui="imp"] #eroom .rz-ev.sm{margin:0;font-size:20px;line-height:26px}
html[data-ui="imp"] #eroom .rz-host{margin:4px 0 0;font-size:15px;line-height:20px;color:var(--rz-dim)}
html[data-ui="imp"] #eroom .rz-rit{margin:24px 0 0;font:400 28px/34px var(--serif);color:var(--rz-paper);min-height:68px}
html[data-ui="imp"] #eroom .rz-rit span.m{font:400 17px/1.5 var(--mono)}
html[data-ui="imp"] #eroom .rz-rit .rz-mint{display:inline;transition:none}
html[data-ui="imp"] #eroom .rz-rit.quiet{margin-top:24px;font-size:22px;line-height:28px;min-height:56px;color:var(--rz-dim);text-align:left}
html[data-ui="imp"] #eroom .rz-rit.quiet .rz-mint{color:var(--rz-dim)}
html[data-ui="imp"] #eroom .rz-h2{margin:24px 0 0;font:400 32px/38px var(--serif);letter-spacing:-.3px}
html[data-ui="imp"] #eroom .rz-small{margin:8px 0 0;font-size:15px;line-height:21px;color:var(--rz-dim)}
html[data-ui="imp"] #eroom .rz-foot{margin-left:-4px;margin-right:-4px;padding-top:24px;display:flex;flex-direction:column;align-items:stretch;gap:14px}
html[data-ui="imp"] #eroom .rz-foot .rz-small{margin:0}
html[data-ui="imp"] #eroom .rz-foot.in{margin-top:22px;padding-top:0}

/* ---- the glass table, seen from above (scan, live, early, hidden, messages) ---- */
html[data-ui="imp"] #eroom .rz-table{position:relative;display:block;width:calc(100% + 8px);max-width:358px;height:auto;margin:26px auto 0;align-self:center;container-type:inline-size;overflow:visible}
html[data-ui="imp"] #eroom .rz-tablewrap{margin:16px -4px 0;display:flex;justify-content:center}
html[data-ui="imp"] #eroom .rz-tablewrap .rz-table{margin:0;width:100%}
html[data-ui="imp"] #eroom .rz-table>span{position:absolute;box-sizing:border-box}
html[data-ui="imp"] #eroom .rz-tring{border-radius:50%;border:1px dashed rgba(255,248,240,.16)}
html[data-ui="imp"] #eroom .rz-tglass{border-radius:50%;background:radial-gradient(70% 70% at 38% 28%,rgba(255,255,255,.20) 0%,rgba(255,255,255,.06) 60%,rgba(255,255,255,.04) 100%);
  border:1px solid rgba(255,248,240,.38);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.28)}
html[data-ui="imp"] #eroom .rz-t-live .rz-tglass{background:radial-gradient(70% 70% at 38% 28%,rgba(255,255,255,.18) 0%,rgba(255,255,255,.06) 60%,rgba(255,255,255,.04) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 1px 2px rgba(0,0,0,.28)}
html[data-ui="imp"] #eroom .rz-tinner{border-radius:50%;border:1px solid rgba(255,248,240,.14)}
html[data-ui="imp"] #eroom .rz-t-live .rz-tinner,html[data-ui="imp"] #eroom .rz-t-empty .rz-tinner{border-color:rgba(255,248,240,.16)}
html[data-ui="imp"] #eroom .rz-tdot{width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:7px;background:radial-gradient(circle at 35% 30%,#FFE3B8,#E8913A 70%)}
html[data-ui="imp"] #eroom .rz-tarc{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
/* seats: glossy orbs (their own shading and drop shadow only), centred on their point of the ellipse */
html[data-ui="imp"] #eroom .rz-o{width:var(--s);height:var(--s);margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);border-radius:50%;
  display:flex;align-items:center;justify-content:center;font:400 16px/1 var(--serif);box-shadow:inset -4px -6px 10px rgba(0,0,0,.20),0 8px 18px rgba(0,0,0,.40)}
html[data-ui="imp"] #eroom .rz-o.imp-orb.t-sky{background:radial-gradient(circle at 32% 28%,#E6F7FF,#7FC4E8);color:#0E3346}
html[data-ui="imp"] #eroom .rz-t-scan .rz-o{box-shadow:inset -4px -6px 10px rgba(0,0,0,.22),0 8px 18px rgba(0,0,0,.40)}
html[data-ui="imp"] #eroom .rz-o.near{box-shadow:0 0 0 2px rgba(255,248,240,.9),inset -4px -6px 10px rgba(0,0,0,.22)}
html[data-ui="imp"] #eroom .rz-youorb{background:radial-gradient(circle at 34% 28%,#FFFFFF 0%,#FFF8F0 45%,#E9DCCB 100%);color:var(--rz-forest);
  font:700 14px/1 'Figtree',system-ui,sans-serif;box-shadow:inset 0 0 0 1px rgba(255,255,255,.6),0 10px 22px rgba(0,0,0,.40)}
html[data-ui="imp"] #eroom .rz-t-scan .rz-youorb{font-size:15px}
html[data-ui="imp"] #eroom .rz-empty{border:1.5px dashed rgba(255,248,240,.35);box-shadow:none;background:rgba(255,255,255,.04)}
html[data-ui="imp"] #eroom .rz-table.quiet{opacity:.7}
html[data-ui="imp"] #eroom .rz-tlabel{right:4px;bottom:-2px;font:400 12.5px/1 var(--mono);color:var(--rz-dim);white-space:nowrap}
/* "Last one in": the orb rides the ellipse (a circle in a squashed frame), then the echo and the seat */
html[data-ui="imp"] #eroom .rz-arrive{position:absolute;inset:0}
html[data-ui="imp"] #eroom .rz-arrive>span{position:absolute}
html[data-ui="imp"] #eroom .rz-flyframe,html[data-ui="imp"] #eroom .rz-fly,html[data-ui="imp"] #eroom .rz-arm{position:absolute;width:0;height:0;transform-origin:0 0}
html[data-ui="imp"] #eroom .rz-fly,html[data-ui="imp"] #eroom .rz-arm{left:0;top:0}
html[data-ui="imp"] #eroom .rz-orb{position:absolute;left:-8px;top:-8px;width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#FFE3B8,#E8913A 70%);box-shadow:0 4px 10px rgba(0,0,0,.35)}
html[data-ui="imp"] #eroom .rz-echo{background:none;border:2px solid #E8913A;box-shadow:none}

/* ---- M-RoomChoose ---- */
html[data-ui="imp"] #eroom .rz-q{margin:26px 0 0;font:400 40px/46px var(--serif);letter-spacing:-.5px;text-wrap:wrap}
html[data-ui="imp"] #eroom .rz-opts{margin:26px -4px 0;gap:12px}
html[data-ui="imp"] #eroom .rz-opt{border:0;border-radius:30px;padding:20px 20px 20px 18px;grid-template-columns:26px minmax(0,1fr);gap:6px 14px;
  background:var(--rz-glass);box-shadow:inset 0 0 0 1px var(--rz-edge);color:var(--rz-paper);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
html[data-ui="imp"] #eroom .rz-opt[aria-checked="true"]{background:var(--rz-glass2);box-shadow:inset 0 0 0 1.5px rgba(255,248,240,.85),inset 0 1px 0 rgba(255,255,255,.18),var(--rz-hair)}
html[data-ui="imp"] #eroom .rz-opt .rd{grid-row:1/span 3;width:26px;height:26px;margin-top:2px;border:1.5px solid rgba(255,248,240,.55)}
html[data-ui="imp"] #eroom .rz-opt[aria-checked="true"] .rd{background:var(--rz-paper);border:0}
html[data-ui="imp"] #eroom .rz-opt[aria-checked="true"] .rd::after{background:var(--rz-forest)}
html[data-ui="imp"] #eroom .rz-opt b{font:400 22px/28px var(--serif)}
html[data-ui="imp"] #eroom .rz-opt .d{font-size:15px;line-height:21px;color:var(--rz-dim)}
html[data-ui="imp"] #eroom .rz-opt:active{transform:scale(.985)}
/* the line people here will see */
html[data-ui="imp"] #eroom .rz-meline{grid-column:2;justify-self:start;margin-top:6px;height:34px;max-width:100%;box-sizing:border-box;padding:0 12px 0 4px;border-radius:17px;
  display:inline-flex;align-items:center;gap:8px;background:var(--rz-glass);box-shadow:inset 0 0 0 1px var(--rz-edge);font-size:14px;white-space:nowrap;overflow:hidden}
html[data-ui="imp"] #eroom .rz-meline .imp-orb{box-shadow:inset -2px -3px 5px rgba(40,20,90,.22)}
html[data-ui="imp"] #eroom .rz-meline b{font:700 14px/1 'Figtree',system-ui,sans-serif;flex:none}
html[data-ui="imp"] #eroom .rz-meline>span:last-child{color:var(--rz-dim);overflow:hidden;text-overflow:ellipsis;min-width:0}
html[data-ui="imp"] #eroom .rz-never{margin-top:20px;padding:0;height:44px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-size:15px;font-weight:600}
html[data-ui="imp"] #eroom .rz-never>span{border-bottom:1px solid rgba(255,248,240,.5);padding-bottom:1px}
html[data-ui="imp"] #eroom .rz-never svg{flex:none;display:block}

/* ---- buttons: paper with forest text; ghost is glass ---- */
html[data-ui="imp"] #eroom .rz-btn{min-height:54px;border-radius:27px;background:var(--rz-paper);color:var(--rz-forest);font:700 17px/1 'Figtree',system-ui,sans-serif;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.4),var(--rz-hair)}
html[data-ui="imp"] #eroom .rz-btn.ghost{background:var(--rz-glass);color:var(--rz-paper);font-weight:700;box-shadow:inset 0 0 0 1px var(--rz-edge2);
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
html[data-ui="imp"] #eroom .rz-btn svg{flex:none;display:block}
html[data-ui="imp"] #eroom .rz-btn:active{transform:scale(.97)}
html[data-ui="imp"] #eroom .rz-link{color:var(--rz-paper);font-weight:600;text-decoration-color:rgba(255,248,240,.5)}
html[data-ui="imp"] #eroom .rz-link.sm{font-size:15px}
html[data-ui="imp"] #eroom .rz-links{margin-top:14px;gap:0 22px}

/* ---- M-RoomLive ---- */
html[data-ui="imp"] #eroom .rz-reqs{appearance:none;border:0;height:44px;padding:0 16px;border-radius:22px;display:inline-flex;align-items:center;gap:8px;flex:none;cursor:pointer;
  background:var(--rz-glass);box-shadow:inset 0 0 0 1px var(--rz-edge);color:var(--rz-paper);font:700 15px/1 'Figtree',system-ui,sans-serif;
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);transition:transform var(--dur-press) var(--ease-out)}
html[data-ui="imp"] #eroom .rz-reqs svg{display:block;flex:none}
html[data-ui="imp"] #eroom .rz-reqs:active{transform:scale(.96)}
html[data-ui="imp"] #eroom .rz-livehead{margin-top:10px;align-items:flex-start}
html[data-ui="imp"] #eroom .rz-lh{min-width:0}
html[data-ui="imp"] #eroom .rz-livevenue{font:400 40px/46px var(--serif);letter-spacing:-.5px}
html[data-ui="imp"] #eroom .rz-count{flex:none;margin-top:8px;height:30px;border-radius:15px}
html[data-ui="imp"] #eroom .rz-vis{margin-top:10px;font-size:15px;line-height:20px;color:var(--rz-dim);flex-wrap:wrap}
html[data-ui="imp"] #eroom .rz-vis i{background:rgba(255,248,240,.35)}
html[data-ui="imp"] #eroom .rz-vis i.on{background:var(--rz-live)}
html[data-ui="imp"] #eroom .rz-vis .rz-link{margin-left:8px;padding:0;min-height:32px;font-weight:700;font-size:15px}
html[data-ui="imp"] #eroom .rz-st-open .rz-tablewrap .rz-table{margin-top:0}
html[data-ui="imp"] #eroom .rz-list{margin:10px -4px 0;padding:2px 12px 2px 14px;border-radius:28px;background:var(--rz-glass);
  box-shadow:inset 0 0 0 1px var(--rz-edge),inset 0 1px 0 rgba(255,255,255,.10),var(--rz-hair)}
html[data-ui="imp"] #eroom .rz-list>.rz-small{margin:16px 2px}
html[data-ui="imp"] #eroom .rz-row{min-height:58px;padding:0;gap:12px;border-top:0;box-shadow:inset 0 -1px 0 var(--rz-rule)}
html[data-ui="imp"] #eroom .rz-row:last-child{box-shadow:none}
html[data-ui="imp"] #eroom .rz-row>button:first-child{gap:12px;min-height:58px}
html[data-ui="imp"] #eroom .rz-av{width:42px;height:42px;font:400 15px/1 var(--serif);box-shadow:inset -4px -6px 10px rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.28)}
html[data-ui="imp"] #eroom .rz-av.t-sky{background:radial-gradient(circle at 32% 28%,#E6F7FF,#7FC4E8);color:#0E3346}
html[data-ui="imp"] #eroom .rz-tx b{font:700 16px/21px 'Figtree',system-ui,sans-serif}
html[data-ui="imp"] #eroom .rz-tx span{margin-top:0;font-size:14px;line-height:19px;color:var(--rz-dim)}
html[data-ui="imp"] #eroom .rz-pill{min-height:44px;padding:0 18px;border:0;border-radius:22px;background:rgba(255,255,255,.10);box-shadow:inset 0 0 0 1px var(--rz-edge2);color:var(--rz-paper);font:700 15px/1 'Figtree',system-ui,sans-serif}
html[data-ui="imp"] #eroom .rz-pill.sent{background:transparent;box-shadow:none;color:var(--rz-dim);padding:0 8px;font-weight:600}
html[data-ui="imp"] #eroom .rz-pill.on{background:var(--rz-paper);color:var(--rz-forest);box-shadow:none}
html[data-ui="imp"] #eroom .rz-note{margin:12px 0 0;font-size:14px;line-height:20px}
/* the floating glass bar: paper "Show room QR", glass "Leave room" */
html[data-ui="imp"] #eroom .rz-bar{bottom:max(24px,env(safe-area-inset-bottom,0px));margin:22px -4px 0;min-height:64px;box-sizing:border-box;padding:6px;gap:6px;border-radius:32px;
  background:rgba(19,32,26,.55);box-shadow:inset 0 0 0 1px var(--rz-edge),var(--rz-hair);-webkit-backdrop-filter:blur(30px) saturate(160%);backdrop-filter:blur(30px) saturate(160%)}
html[data-ui="imp"] #eroom .rz-bar .rz-btn{min-height:52px;border-radius:26px;font-size:16px;gap:8px;box-shadow:none}
html[data-ui="imp"] #eroom .rz-bar .rz-btn.ghost{background:var(--rz-glass);box-shadow:inset 0 0 0 1px var(--rz-edge2);-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-ui="imp"] #eroom .rz-roomv .rz-body{padding-bottom:0}

/* ---- early · hidden · closed ---- */
html[data-ui="imp"] #eroom .rz-earlyh{margin:22px 0 0;font:400 32px/38px var(--serif);letter-spacing:-.3px;text-align:left;text-wrap:balance}
html[data-ui="imp"] #eroom .rz-earlyh.l{margin-top:24px}
html[data-ui="imp"] #eroom .rz-st-early .rz-vis,html[data-ui="imp"] #eroom .rz-st-hidden .rz-small{margin-top:10px}
html[data-ui="imp"] #eroom .rz-meanwhile{margin:26px -4px 0;padding:18px 20px 20px;border-top:0;border-radius:28px;background:var(--rz-glass);box-shadow:inset 0 0 0 1px var(--rz-edge)}
html[data-ui="imp"] #eroom .rz-meanwhile .rz-rit{margin-top:8px;font-size:24px;line-height:30px;min-height:60px}
html[data-ui="imp"] #eroom .rz-st-closed .rz-pass{margin-top:22px}

/* ---- M-RoomCard: the glossy emerald pass, the tear line, the apricot seal ---- */
html[data-ui="imp"] #eroom .rz-in{margin:18px 0 0;font:400 40px/46px var(--serif);letter-spacing:-.5px}
html[data-ui="imp"] #eroom .rz-pass,html[data-ui="imp"] #eroom .rz-cardv .rz-pass{margin:18px -4px 0;padding:0;border-radius:30px;color:#FFF7EE;
  background:linear-gradient(155deg,rgba(255,255,255,.20) 0%,rgba(255,255,255,0) 36%),linear-gradient(160deg,#1F6B4F 0%,#0F3A2B 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),inset 0 1px 0 rgba(255,255,255,.30),var(--rz-hair)}
html[data-ui="imp"] #eroom .rz-pass .pt{position:relative;padding:20px 22px 22px}
html[data-ui="imp"] #eroom .rz-pass .row svg{display:block;flex:none}
html[data-ui="imp"] #eroom .rz-pass .rn{font:400 12.5px/1 var(--mono);letter-spacing:0;color:rgba(255,247,238,.8)}
html[data-ui="imp"] #eroom .rz-pass .pv{margin:18px 0 0;font:400 44px/46px var(--serif);letter-spacing:-.5px}
html[data-ui="imp"] #eroom .rz-pass .pe{margin-top:4px;font:400 20px/26px var(--serif);color:rgba(255,247,238,.78)}
html[data-ui="imp"] #eroom .rz-pass.sealed .pv,html[data-ui="imp"] #eroom .rz-pass.sealed .pe{margin-right:96px}
html[data-ui="imp"] #eroom .rz-pass .perf{margin:0 22px;border-top:1.5px dashed rgba(255,247,238,.35)}
html[data-ui="imp"] #eroom .rz-pass .perf::before,html[data-ui="imp"] #eroom .rz-pass .perf::after{top:-13px;width:24px;height:24px;background:#101B16}
html[data-ui="imp"] #eroom .rz-pass .perf::before{left:-35px}
html[data-ui="imp"] #eroom .rz-pass .perf::after{right:-35px;background:#13271E}
html[data-ui="imp"] #eroom .rz-pass .pf{margin:0;padding:18px 22px 22px;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
html[data-ui="imp"] #eroom .rz-pass .pf div{font:inherit;letter-spacing:0;text-transform:none;color:inherit}
html[data-ui="imp"] #eroom .rz-pass .pf dt{font:400 12px/1.2 var(--mono);color:rgba(255,247,238,.75)}
html[data-ui="imp"] #eroom .rz-pass .pf dd{margin:3px 0 0;font:700 18px/23px 'Figtree',system-ui,sans-serif;color:#FFF7EE;overflow-wrap:anywhere}
html[data-ui="imp"] #eroom .rz-seal{right:-10px;top:70px;width:118px;height:118px;border-radius:59px;transform:rotate(-12deg);
  background:radial-gradient(circle at 32% 26%,#FFE2BE 0%,#F4AE62 34%,#E8913A 62%,#B8691F 100%);
  box-shadow:0 16px 30px rgba(0,0,0,.38),inset -6px -10px 18px rgba(120,60,10,.35),inset 4px 6px 10px rgba(255,255,255,.35)}
html[data-ui="imp"] #eroom .rz-seal>svg{position:absolute;inset:0}
html[data-ui="imp"] #eroom .rz-stamps{margin-top:22px;gap:12px}
html[data-ui="imp"] #eroom .rz-stamps .stp{position:relative;width:60px;height:60px;border:0;font:400 13px/1 var(--mono);color:var(--rz-dim);background:var(--rz-glass);box-shadow:inset 0 0 0 1px var(--rz-edge)}
html[data-ui="imp"] #eroom .rz-stamps .stp:not(.done):not(.now){background:none;box-shadow:none;border:1.5px dashed rgba(255,248,240,.35)}
html[data-ui="imp"] #eroom .rz-stamps .stp.now{background:radial-gradient(circle at 34% 28%,#FFFFFF 0%,#FFF8F0 50%,#EADFCF 100%);color:var(--rz-forest);box-shadow:0 10px 22px rgba(0,0,0,.35)}
html[data-ui="imp"] #eroom .rz-stamps .stp.sealed::after{content:"";position:absolute;right:2px;top:2px;width:12px;height:12px;border-radius:6px;
  background:radial-gradient(circle at 35% 30%,#FFE3B8,#E8913A 70%);box-shadow:0 0 0 2px var(--rz-ground)}
html[data-ui="imp"] #eroom .rz-cardv .rz-small{margin-top:14px}

/* ---- rules ---- */
html[data-ui="imp"] #eroom .rz-rulesv .rz-kick{margin-top:22px}
html[data-ui="imp"] #eroom .rz-rulesv .rz-q{margin:6px 0 22px}
html[data-ui="imp"] #eroom .rz-rules{margin:0 -4px;gap:18px;padding:22px 20px;border:0;border-radius:28px;background:var(--rz-glass);box-shadow:inset 0 0 0 1px var(--rz-edge),var(--rz-hair)}
html[data-ui="imp"] #eroom .rz-rules p{font-size:15px;line-height:21px;color:var(--rz-dim)}
html[data-ui="imp"] #eroom .rz-rules b{font:400 22px/28px var(--serif);color:var(--rz-paper)}

/* ---- Requests (the shared .cm shell, drawn by base.js erViewRequests) in the same language ---- */
html[data-ui="imp"] #eroom .cm{padding:max(56px,calc(env(safe-area-inset-top,0px) + 8px)) max(20px,env(safe-area-inset-right)) max(34px,calc(env(safe-area-inset-bottom,0px) + 12px)) max(20px,env(safe-area-inset-left));color:var(--rz-paper)}
html[data-ui="imp"] #eroom .cm-top{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin:0 -4px;padding:0;background:none;position:static}
html[data-ui="imp"] #eroom .cm-top .cbtn{width:44px!important;height:44px!important;border-radius:22px;background:var(--rz-glass);color:var(--rz-paper);box-shadow:inset 0 0 0 1px var(--rz-edge)}
html[data-ui="imp"] #eroom .cm-title{flex-basis:100%;margin:18px 4px 0;font:400 40px/46px var(--serif);letter-spacing:-.5px;color:var(--rz-paper)}
html[data-ui="imp"] #eroom .cm .sechead h2{font:400 12.5px/1.3 var(--mono);text-transform:lowercase;letter-spacing:0;color:var(--rz-dim)}
html[data-ui="imp"] #eroom .cm .card{margin:0 -4px;border-radius:28px!important;background:var(--rz-glass);box-shadow:inset 0 0 0 1px var(--rz-edge),var(--rz-hair)}
html[data-ui="imp"] #eroom .cm .listrow{border-color:var(--rz-rule)}
html[data-ui="imp"] #eroom .cm .av{box-shadow:inset -4px -6px 10px rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.28)}
html[data-ui="imp"] #eroom .cm .small,html[data-ui="imp"] #eroom .cm .tiny{color:var(--rz-dim)}
html[data-ui="imp"] #eroom .cm .tiny{font-size:14px;line-height:20px}
html[data-ui="imp"] #eroom .cm .empty{margin:22px -4px 0!important;padding:20px;border:0;border-radius:28px;background:var(--rz-glass);box-shadow:inset 0 0 0 1px var(--rz-edge)}
html[data-ui="imp"] #eroom .cm .empty .small{font-size:15px;line-height:21px;text-align:left}
html[data-ui="imp"][data-theme] #eroom .pill.primary{background:var(--rz-paper);color:var(--rz-forest);box-shadow:var(--rz-hair)}
html[data-ui="imp"][data-theme] #eroom .pill.ghost{background:var(--rz-glass);color:var(--rz-paper);box-shadow:inset 0 0 0 1px var(--rz-edge2)}
html[data-ui="imp"][data-theme] #eroom .link{color:var(--rz-paper)}

/* ---- sheets opened over a room (a person, accepting, the overlap ask, the room's QR): the room's dark glass ---- */
html[data-ui="imp"][data-theme]:has(#eroom:not([hidden])) #sheet{
  --glow:#FFF8F0; --dim:rgba(255,248,240,.72); --faint:rgba(255,248,240,.62); --line:rgba(255,255,255,.12); --line2:rgba(255,255,255,.2);
  --imp-ink:#FFF8F0; --imp-dim:rgba(255,248,240,.72); --imp-glass:rgba(255,255,255,.08); --imp-card:rgba(255,255,255,.08); --imp-edge:rgba(255,255,255,.16);
  --imp-hair:0 1px 2px rgba(0,0,0,.28); --imp-forest:#FFF8F0; --imp-forestRGB:255,248,240; --imp-sel:rgba(255,255,255,.12);
  background:#1B2B23;color:#FFF8F0;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 -8px 30px rgba(0,0,0,.35);color-scheme:dark}
html[data-ui="imp"][data-theme]:has(#eroom:not([hidden])) #sheet .grip{background:rgba(255,248,240,.3)}
html[data-ui="imp"][data-theme]:has(#eroom:not([hidden])) #sheet :is(.pill.primary,.pill.light,.chip.on,.chip.sel,.cbtn.addbtn){background:#FFF8F0;color:#154A36}
html[data-ui="imp"][data-theme]:has(#eroom:not([hidden])) #sheet .h2{font-family:var(--serif);font-weight:400}
html[data-ui="imp"][data-theme]:has(#eroom:not([hidden])) #sheet :is(.link,a){color:#FFF8F0}
html[data-ui="imp"][data-theme]:has(#eroom:not([hidden])) #sheet .tag{background:rgba(255,255,255,.08);color:#FFF8F0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
html[data-ui="imp"][data-theme]:has(#eroom:not([hidden])) #scrim.open{background:rgba(5,12,9,.55)}

@media (hover:hover) and (pointer:fine){
  html[data-ui="imp"] #eroom .rz-ib:hover,html[data-ui="imp"] #eroom .rz-reqs:hover{background:var(--rz-glass2)}
  html[data-ui="imp"] #eroom .rz-opt:hover{box-shadow:inset 0 0 0 1px rgba(255,248,240,.4)}
  html[data-ui="imp"] #eroom .rz-opt[aria-checked="true"]:hover{box-shadow:inset 0 0 0 1.5px rgba(255,248,240,.85),inset 0 1px 0 rgba(255,255,255,.18),var(--rz-hair)}
  html[data-ui="imp"] #eroom .rz-pill:hover{background:rgba(255,255,255,.16)}
  html[data-ui="imp"] #eroom .rz-never:hover>span{border-bottom-color:currentColor}
}
@media (prefers-reduced-motion:reduce){
  html[data-ui="imp"] #eroom :is(.rz-ib,.rz-reqs,.rz-btn,.rz-opt,.rz-pill):active{transform:none}
}
@media (prefers-contrast:more){
  html[data-ui="imp"][data-theme] #eroom{--rz-dim:#E9EFE2; --roomDim:#E9EFE2; --rz-edge:rgba(255,255,255,.5); --rz-edge2:rgba(255,255,255,.6); --rz-glass:rgba(255,255,255,.14)}
  html[data-ui="imp"] #eroom .rz-tglass{border-color:rgba(255,248,240,.7)}
}
@media (prefers-reduced-transparency:reduce){
  html[data-ui="imp"] #eroom .rz-bar{background:#1B2B23;-webkit-backdrop-filter:none;backdrop-filter:none}
}
/* a short phone (iPhone SE): the scan's name and table come in a little so the button stays on screen */
@media (max-height:700px){
  html[data-ui="imp"] #eroom .rz-venue{font-size:46px;line-height:50px}
  html[data-ui="imp"] #eroom .rz-scan .rz-table{max-width:300px}
  html[data-ui="imp"] #eroom .rz-rit{font-size:24px;line-height:30px}
}
/* a narrow phone (320 px): the bar's two buttons stay on one line each */
@media (max-width:359px){
  html[data-ui="imp"] #eroom .rz-bar .rz-btn{font-size:14.5px;gap:6px;padding:0 8px;white-space:nowrap}
  html[data-ui="imp"] #eroom .rz-sig{font-size:15px}
}

/* ---- iPhone stress test fixes (2026-10-30, docs/Event-Room.md "320 px and double taps") ---- */
/* names break between words, never inside one (V-27 "Teppe / r / Quad"); a word too long for the line still breaks */
html[data-ui="imp"] #eroom :is(.rz-venue,.rz-livevenue,.rz-pass .pv,.rz-pass .pe,.rz-pass .pf dd){overflow-wrap:break-word;word-break:normal;hyphens:manual}
/* nothing pans sideways (V-26): the seal still overhangs the pass, but the page clips it instead of growing; stamps wrap */
html[data-ui="imp"] #eroom .rz-page{overflow-x:clip}
html[data-ui="imp"] #eroom .rz-stamps{flex-wrap:wrap}
/* a long place name steps the big serif down (the scan landing) */
html[data-ui="imp"] #eroom .rz-venue.l1{font-size:44px;line-height:48px}
html[data-ui="imp"] #eroom .rz-venue.l2{font-size:36px;line-height:40px;letter-spacing:-.5px}
html[data-ui="imp"] #eroom .rz-venue.l3{font-size:30px;line-height:34px;letter-spacing:-.3px}
/* Join the room stays in reach: the foot sticks to the bottom over a fade of the ground while the page scrolls */
html[data-ui="imp"] #eroom .rz-scan:not(.rz-msg){padding-bottom:0}
html[data-ui="imp"] #eroom .rz-foot.rz-stick{position:sticky;bottom:0;z-index:2;margin-top:auto;padding-top:28px;
  padding-bottom:max(34px,calc(env(safe-area-inset-bottom,0px) + 12px));background:linear-gradient(to bottom,rgba(19,32,26,0) 0,#13201A 26px)}
/* the choice page: its button sits right under the two choices (V-25), the rules link after it */
html[data-ui="imp"] #eroom .rz-foot.rz-chgo{margin-top:22px;padding-top:0}
html[data-ui="imp"] #eroom .rz-chgo+.rz-never{margin-top:12px;align-self:center}
/* "Change" is a 44 px target (it was 53 x 32) */
html[data-ui="imp"] #eroom .rz-vis .rz-link.rz-chg{min-height:44px;min-width:44px;padding:0 8px;margin:-6px 0 -6px 0}
@media (max-width:359px){
  html[data-ui="imp"] #eroom .rz-pass .pv{font-size:36px;line-height:40px}
  html[data-ui="imp"] #eroom .rz-pass.sealed .pv,html[data-ui="imp"] #eroom .rz-pass.sealed .pe{margin-right:72px}
  html[data-ui="imp"] #eroom .rz-seal{width:96px;height:96px;border-radius:48px;right:-12px;top:64px}
  html[data-ui="imp"] #eroom .rz-venue{font-size:44px;line-height:48px}
  html[data-ui="imp"] #eroom .rz-venue.l1{font-size:38px;line-height:42px}
  html[data-ui="imp"] #eroom .rz-venue.l2{font-size:32px;line-height:36px}
  html[data-ui="imp"] #eroom .rz-venue.l3{font-size:27px;line-height:31px}
  html[data-ui="imp"] #eroom .rz-q{font-size:34px;line-height:40px}
  html[data-ui="imp"] #eroom .rz-livevenue{font-size:34px;line-height:40px}
}

