:root {
  --page: #eeeef3;
  --paper: #fff;
  --heading: #e0e3ed;
  --line: #a9a9b6;
  --muted: #50505f;
  color-scheme: light;
  font: 13px Arial, Helvetica, sans-serif;
  color: #181820;
  background: var(--page);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; }
button.active { font-weight: bold; }
h1, h2, h3 { margin: 0; font-size: 1rem; }
[hidden] { display: none !important; }

header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 5px 10px;
  background: var(--heading);
  border-bottom: 1px solid var(--line);
}

header button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: inherit;
  padding: 2px 6px;
}
header button:disabled { color: var(--muted); opacity: .65; }
header button.active { background: var(--heading); }

.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: 100%; }
.forum-links { display: flex; align-items: center; gap: .4rem; }
.forum-links strong { font-size: 1.1rem; }
.modes, .header-actions, .room-actions, .buttons, .dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.buttons { margin-top: 6px; }
.buttons input { width: 81px; }
#tabletop { --sidebar-width: min(295px, 78vw); height: 100dvh; }
.map-tools { position: absolute; z-index: 9; top: 50%; left: 7px; transform: translateY(-50%); width: max-content; }
.map-tools button { width: 100%; margin-bottom: 4px; }
.map-tools button[aria-pressed="true"] { outline: 1px solid #0000ee; }
.scene { display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); height: 100%; overflow: hidden; }
.panel-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.scene-title {
  position: absolute;
  z-index: 9;
  top: 7px;
  right: 7px;
  left: 7px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,44%) minmax(0,1fr);
  align-items: start;
  gap: 3px;
  pointer-events: none;
}
.scene-title h1 { justify-self: start; max-width: 100%; padding: 2px 5px; background: #14141be0; color: white; overflow-wrap: anywhere; }
#mode-status { justify-self: center; text-align: center; overflow-wrap: anywhere; padding: 1px 4px; background: #14141bb3; color: #eeeeee; font-size: .85rem; }
.scene-title button { pointer-events: auto; }
#show-sidebar { justify-self: end; max-width: 100%; }
@media (max-width: 640px) {
  #tabletop:not(.sidebar-collapsed) .scene-title { grid-template-columns: minmax(0,1fr); }
}
#tabletop:not(.sidebar-collapsed) .scene-title { right: calc(var(--sidebar-width) + 7px); }

#table-sidebar { position: relative; grid-area: 1 / 1; z-index: 10; justify-self: end; width: var(--sidebar-width); min-height: 0; border-left: 1px solid var(--line); background: var(--paper); overflow: auto; }
.panel { padding: 8px; border-bottom: 1px solid var(--line); }
.panel-title, details[open] > summary { margin-bottom: 6px; }
aside summary { font-weight: bold; }
.detail, .sheet-identity { color: var(--muted); margin: 6px 0; line-height: 1.4; }
.warn { color: #8b270d; }
.roster-row { display: flex; align-items: center; width: 100%; gap: 6px; text-align: left; margin-top: 3px; }
.roster-row em { margin-left: auto; font-size: .85rem; font-style: normal; }
.roster-row.current, .roster-row.picked { font-weight: bold; }
.roster-row.marked { outline: 1px dashed #8b270d; }
.avatar { min-width: 2ch; color: var(--muted); font-size: .85rem; }
.stats, .odds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.stats div, .odds div { border: 1px solid var(--line); padding: 3px; text-align: center; font-size: .8rem; }
.stats strong, .odds strong { display: block; font-size: .95rem; }

#dice, #chat-form { display: flex; gap: 3px; }
#dice { flex-wrap: wrap; }
#chat-form input { min-width: 0; flex: 1; }
#chat, #events { list-style: none; margin: 6px 0; padding: 0; overflow-wrap: anywhere; }
#chat { min-height: 65px; max-height: 220px; overflow: auto; border: 1px solid var(--line); }
#chat li, #events li { padding: 4px 6px; border-bottom: 1px solid var(--page); }
#chat .dice-result { font-family: monospace; }
.history { background: var(--paper); }
.history .panel-title a { margin-right: auto; }

dialog { width: min(560px, 95vw); max-height: 90dvh; padding: 12px; border: 1px solid var(--line); }
dialog::backdrop { background: rgb(0 0 0 / 50%); }
.dialog-actions { justify-content: flex-end; }
.dialog-actions #export { margin-right: auto; }
#import-fields, .import-uploads, .check-fields, .sheet-profile-editor form { display: grid; gap: 6px; margin: 8px 0; }
#import-fields { grid-template-columns: 1fr 1fr; }
#import-fields label, .import-uploads label, .check-fields label, .sheet-profile-editor label { display: grid; gap: 3px; }
#import-fields input, .import-uploads input { min-width: 0; width: 100%; }
#import-fields .import-option { grid-column: 1 / -1; display: flex; align-items: center; }
#import-fields .import-option input { width: auto; }
#avatar-preview { width: 64px; height: 64px; object-fit: contain; }
#avatar-message:empty { display: none; }
#token-sheet .panel-title { position: sticky; top: -12px; background: var(--paper); padding: 4px 0; z-index: 1; }
#token-sheet h2, #token-menu h2 { overflow-wrap: anywhere; }
#token-sheet fieldset label { display: block; }
.sheet-profile { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.sheet-profile > img { width: clamp(75px, 25%, 132px); max-height: 165px; object-fit: contain; }
.sheet-profile-content { min-width: 0; flex: 1; }
.sheet-narrative { margin: 3px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sheet-profile-editor, .sheet-printout { margin-top: 8px; }
.sheet-profile-editor textarea { width: 100%; min-height: 65px; resize: vertical; }
#import-pages pre, .pdf-pages pre { max-height: 45vh; overflow: auto; padding: 6px; background: var(--page); }

#viewport {
  position: relative;
  grid-area: 1 / 1;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  container-type: size;
  background: #303030;
  touch-action: none;
  user-select: none;
}

#board { width: min(100%, calc(100cqh * var(--map-ratio, 1.5))); }

#markers, #ruler { position: absolute; inset: 0; pointer-events: none; }
.token, .marker, .rotation-handle { position: absolute; transform: translate(-50%, -50%); }
.token {
  width: var(--cell-width,8.3333%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #aab4cf;
  border-radius: 0;
  background: #383f59;
  color: white;
  font-weight: bold;
  pointer-events: auto;
}
.token.enemy { background: #583d3d; border-color: #cbaaaa; }
.token:has(img) { background: transparent; border: 0; }
.token-face { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; pointer-events: none; }
.token img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.token.selected, .token.inspecting { z-index: 2; }
.token.dragging { z-index: 3; cursor: grabbing; }
.token.targeted .token-face { filter: drop-shadow(0 0 2px #ffd091); }
.token.selected .token-face { filter: drop-shadow(0 0 1px #79afff) drop-shadow(0 0 2px #79afff); }
.token.current .token-caption { border-bottom: 1px solid #ffda83; }
.token-caption {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 1px 3px;
  background: rgb(0 0 0 / 55%);
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
  pointer-events: none;
}
.token.selected .token-caption, .token.inspecting .token-caption { max-width: max(100%, 140px); white-space: normal; overflow-wrap: anywhere; }
.marker { width: var(--cell-width,8.3333%); height: var(--cell-height,12.5%); background: #adcaff44; border: 1px solid #adcaff; }
.marker.invalid { background: #ffb3a444; border-color: #ffb3a4; }
.rotation-handle { z-index: 4; width: 17px; height: 17px; padding: 0; border: 0; background: transparent; cursor: grab; pointer-events: auto; }
.rotation-handle::after { content: ""; display: block; width: 7px; height: 7px; margin: auto; border-radius: 50%; background: white; border: 1px solid #333; }
#ruler { z-index: 5; }
#ruler-line { position: absolute; height: 2px; background: #fff; transform-origin: left center; }
#ruler-line:not(.zero)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); border-block: 5px solid transparent; border-left: 8px solid white; }
#ruler-distance { position: absolute; transform: translate(-50%, -140%); white-space: nowrap; background: black; color: white; padding: 2px 4px; }
#token-menu { position: absolute; z-index: 7; width: max-content; max-width: min(255px, calc(100% - 16px)); padding: 7px; border: 1px solid var(--line); background: var(--paper); }
#map-hint { position: absolute; left: 7px; bottom: 7px; padding: 4px 6px; background: var(--paper); pointer-events: none; max-width: calc(100% - 115px); }
#map-hint:empty { display: none; }
.map-zoom { position: absolute; right: 7px; bottom: 7px; display: flex; gap: 2px; }

#viewport, .token-caption { -webkit-user-select: none; user-select: none; }
.roster-row[data-encounter="ally"] { background: #e0edff; }
.roster-row[data-encounter="foe"] { background: #ffe8e8; }
.roster-row[data-encounter="neutral"] { background: #eee; }

.roster-row > span:nth-child(2), #token-sheet-name, #token-menu h2, #token-actions-title { font-size: 15px; }
.grid-surface { position: relative; aspect-ratio: var(--map-ratio, 1.5); background: #444; }
.grid-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(to right,#ffffff55 1px,transparent 1px),linear-gradient(to bottom,#ffffff55 1px,transparent 1px);
  background-size: var(--cell-width,8.3333%) 100%,100% var(--cell-height,12.5%);
}
.map-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.map-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--map-image) var(--map-crop-position) / var(--map-image-fit, contain) no-repeat;
  transform: scale(var(--map-crop-zoom));
  transform-origin: var(--map-crop-position);
}
#markers, #map-preview-tokens { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#map-dialog { width: min(850px,95vw); }
.map-editor { display: grid; grid-template-columns: 215px minmax(0,1fr); gap: 10px; }
.map-settings > label, .map-settings fieldset label { display: grid; margin: 5px 0; }
.map-settings input, .map-settings select { min-width: 0; max-width: 100%; }
#map-preview {
  width: min(100%,calc(55vh * var(--map-ratio,1.5)));
  margin: 0 auto;
  cursor: crosshair;
}
.staged-token {
  position: absolute;
  transform: translate(-50%,-50%);
  width: var(--cell-width);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: white;
  background: #000b;
  text-align: center;
  font-size: 10px;
}
.map-stage input { width: 4em; }
@media (max-width: 620px) { .map-editor { grid-template-columns: 1fr; } }
#scene-review { padding: 0; border: 0; background: transparent; color: #a9caff; text-decoration: underline; font-weight: bold; overflow-wrap: anywhere; }
#map-dialog { width: min(1050px,95vw); }
.map-editor { grid-template-columns: 170px minmax(0,1fr) 170px; }
.map-library { border-left: 1px solid var(--line); padding-left: 8px; }
#map-roster, #map-sprites { display: grid; gap: 3px; margin: 6px 0; max-height: 28vh; overflow: auto; }
.map-library button { display: flex; align-items: center; gap: 4px; text-align: left; cursor: grab; }
.map-library button img { width: 22px; height: 22px; object-fit: contain; }
.map-library .off-map { color: var(--muted); }
.map-library button[aria-pressed="true"] { outline: 1px solid #0000ee; outline-offset: -1px; }
.map-library label { display: grid; gap: 3px; margin-top: 6px; }
.map-library input { min-width: 0; max-width: 100%; }
#map-bin { position: absolute; right: 7px; bottom: 35px; z-index: 6; padding: 5px 8px; background: var(--paper); border: 1px dashed var(--line); }
#map-bin.receiving { background: #ffe8e8; border-color: #902414; }
.map-dust { position: absolute; z-index: 8; pointer-events: none; }
.map-dust i {
  position: absolute;
  left: var(--piece-x);
  top: var(--piece-y);
  width: var(--piece-size);
  height: var(--piece-size);
  background: #b0a696;
  background-size: 500% 500%;
  animation: scatter-dust 500ms ease-out forwards;
}
@keyframes scatter-dust {
  to { transform: translate(var(--dust-x),var(--dust-y)) rotate(75deg) scale(.15); opacity: 0; }
}

@media (max-width: 740px) {
  .map-editor { grid-template-columns: minmax(0,1fr); }
  .map-library { border-left: 0; padding-left: 0; }
}
.staged-token img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.staged-token:has(img) { background: transparent; text-shadow: 0 1px 2px #000, 0 0 3px #000; }

#tabletop:not(.sidebar-collapsed) :is(.map-zoom, #map-bin) { right: calc(var(--sidebar-width) + 7px); }
.chat-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }

#scene-display { width: fit-content; max-width: min(1000px,94vw); }
#scene-display-title { overflow-wrap: anywhere; }
#scene-image { display: block; max-width: 100%; max-height: 75dvh; object-fit: contain; margin: 0 auto; }
.sheet-abilities { margin-top: 10px; }
.sheet-abilities ul { list-style: none; margin: 4px 0 8px; padding: 0; }
.sheet-ability { position: relative; padding-left: 18px; margin: 4px 0; }
.sheet-ability summary { position: absolute; left: 0; top: 0; width: 16px; }
.sheet-ability details { margin: 0; }
.sheet-ability details p { margin: 3px 0; }
.chat-ability { margin-top: 2px; }
.chat-ability p { margin: 4px 0; }
.token.selected:not(:has(img)) { border-color: #79afff; }
.chat-attack { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chat-attack p { flex-basis: 100%; margin: 0; }
.chat-attack input { width: 7em; }
.chat-attack select { max-width: 100%; }
img[src^="sprites/0x72/"] { image-rendering: pixelated; }

#hide-sidebar { position: absolute; top: 7px; right: 8px; }
#party > summary { min-height: 22px; padding-right: 118px; }
#table-sidebar {
  display: grid;
  grid-template-rows: var(--party-track, auto) 6px var(--bio-track, minmax(0, 1fr)) 6px var(--chat-track, minmax(0, 2fr));
  overflow: hidden;
}
#party { min-height: 0; overflow: auto; }
#character-preview { min-height: 0; overflow: auto; }
.preview-heading { display: flex; align-items: flex-start; gap: 8px; }
.preview-heading img { width: 76px; flex: 0 0 76px; aspect-ratio: 1; object-fit: contain; }
.preview-heading h2 { font-size: 15px; overflow-wrap: anywhere; }
.preview-heading > div { min-width: 0; }
.preview-heading dl { display: grid; grid-template-columns: auto auto; gap: 1px 7px; margin: 4px 0; }
.preview-heading dd { margin: 0; }
#character-preview details { margin-top: 6px; }
#table-sidebar .chat { display: flex; flex-direction: column; min-height: 0; }
#table-sidebar #chat { flex: 1; min-height: 0; max-height: none; }
#npc-list { max-height: 32vh; overflow: auto; margin-bottom: 8px; }
.npc-bank-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.npc-bank-row img { width: 34px; height: 34px; object-fit: contain; }
.npc-bank-row strong { margin-right: auto; overflow-wrap: anywhere; }
#npc-form textarea { width: 100%; }

.preview-sheet-button { margin-top: 3px; }

.sidebar-grip { position: relative; background: var(--heading); cursor: ns-resize; touch-action: none; }
.sidebar-grip::after { content: ""; position: absolute; left: 50%; top: 2px; width: 18px; height: 2px; background: var(--line); transform: translateX(-50%); }
.sidebar-grip:hover::after, .sidebar-grip:focus-visible::after { background: #3e4b69; }
.sidebar-grip[aria-disabled="true"] { cursor: default; }
.sheet-gm-notes { margin: 8px 0; }
.sheet-gm-notes label, .sheet-gm-notes textarea { display: block; width: 100%; }
.sheet-gm-notes textarea { margin: 4px 0; }

.unknown-value { color: #394663; font-family: monospace; font-weight: bold; letter-spacing: .06em; }
.token.fog-cover, .staged-token.fog-cover {
  z-index: 5;
  transform: none;
  aspect-ratio: auto;
  background: #1d2230;
}
.token.fog-cover img, .staged-token.fog-cover img { width: 100%; height: 100%; object-fit: fill; }
#marquee { position: absolute; z-index: 8; background: #2c77f137; border: 1px solid #79afff; pointer-events: none; }
.multi-attack-targets { flex-basis: 100%; display: grid; gap: 3px; }
.multi-attack-targets > div { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: space-between; }
.ability-scores { width: 100%; border-collapse: collapse; margin: 8px 0; text-align: center; }
.ability-scores caption { text-align: left; font-weight: bold; padding-bottom: 3px; }
.ability-scores th, .ability-scores td { border: 1px solid var(--line); padding: 3px; }
.ability-scores th { background: var(--heading); }

.map-tools button { display: block; width: 30px; }
#fog-live-control { display: flex; align-items: center; gap: 3px; width: max-content; padding: 2px 4px; background: var(--paper); border: 1px solid var(--line); }
.token.scenery:not(.fog-cover) { z-index: 1; }
.token:not(.scenery), .staged-token.character { z-index: 2; }
.token:not(.scenery):is(.selected, .inspecting) { z-index: 3; }
.token:not(.scenery).dragging { z-index: 4; }
.see-under-fog .fog-cover { opacity: .23; pointer-events: none; }

#character-edit-body { display: grid; gap: 8px; }
#character-edit-body fieldset { margin: 0; }
#character-edit-body fieldset > label { display: block; }
#map-description { resize: vertical; }

.sheet-inventory { margin-top: 8px; }

#host-notice {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 100;
  padding: .65rem 1rem;
  border: 1px solid;
  background: Canvas;
  color: CanvasText;
}
.host-waiting > :not(#host-notice) { visibility: hidden; }
.host-waiting #leave-room { visibility: visible; }

#host-lobby { height: 21px; margin-left: .3rem; }
#host-lobby > summary { line-height: 21px; white-space: nowrap; color: #0000ee; text-decoration: underline; }
.lobby-menu {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 10px;
  width: min(36rem, calc(100% - 20px));
  max-height: 70dvh;
  overflow: auto;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.lobby-menu p:empty { display: none; }
#lobby-invite { width: min(100%, 34rem); margin-bottom: .4rem; }
.sheet-measurements { display: grid; grid-template-columns: max-content 1fr; gap: .15rem .65rem; }
.sheet-measurements dd { margin: 0; }

.staged-token { border: 0; padding: 0; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; }
.staged-token[aria-pressed="true"] { outline: 2px solid #79afff; outline-offset: -2px; }
.staged-token[aria-pressed="true"]:not(.fog-cover) { z-index: 3; }
.staged-token.dragging:not(.fog-cover) { z-index: 4; }
.staged-token.dragging { cursor: grabbing; }

.sheet-skills dl { display: grid; grid-template-columns: minmax(0,1fr) max-content; max-width: 20rem; gap: .15rem .75rem; }
.sheet-skills dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }

.landing-page > header, .landing-page > #tabletop, .landing-page > #event-log { display: none; }
#landing, #peer-sign-in { width: min(26rem, calc(100% - 2rem)); margin: 12vh auto 0; padding: 1rem; border: 1px solid var(--line); background: var(--paper); }
#landing h1, #peer-sign-in h1 { margin-bottom: .8rem; }
#landing p:last-child, #peer-sign-in p:last-child { margin-bottom: 0; }
#peer-share { display: flex; flex: 1 1 15rem; align-items: center; gap: .4rem; min-width: 0; max-width: 100%; }
#peer-share label { white-space: nowrap; }
@media (max-width: 1050px) {
  header:has(#peer-share:not([hidden])) .header-actions { order: 1; }
  header:has(#peer-share:not([hidden])) .room-actions { order: 2; margin-left: auto; }
}
#peer-copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#peer-copy .copy-tick { display: none; }
#peer-copy.copied:not(.copy-hover) .copy-icon { display: none; }
#peer-copy.copied:not(.copy-hover) .copy-tick { display: block; }
#peer-invite-link { flex: 1 1 auto; width: 0; min-width: 0; text-overflow: ellipsis; }
#peer-visibility, #peer-copy {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 21px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  background: var(--paper);
  font-size: 14px;
  line-height: 1;
}
#peer-visibility[aria-pressed="true"] { background: var(--paper); }

.peer-auth-page > header, .peer-auth-page > #tabletop, .peer-auth-page > #event-log { display: none; }
.host-waiting #peer-sign-in { visibility: visible; }

#peer-roster { list-style: none; margin: .45rem 0; padding: 0; }
#peer-roster li { padding: .3rem 0; border-bottom: 1px dotted var(--line); }
#peer-roster strong { font-family: ui-monospace, Menlo, Consolas, monospace; }
.lobby-role {
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--muted);
  padding: 0 .25rem;
  font-size: .85rem;
  white-space: nowrap;
}
#peer-visibility svg { display: block; }
#peer-visibility[aria-pressed="false"] .eye-open,
#peer-visibility[aria-pressed="true"] .eye-closed { display: none; }
.lobby-avatar { width: 16px; height: 16px; object-fit: cover; border-radius: 3px; vertical-align: text-bottom; margin-right: .3rem; }


.toolbar-auto > header {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  opacity: 0;
  pointer-events: none;
}
.toolbar-auto:is(.toolbar-intro,.toolbar-near,.toolbar-touch,.toolbar-pinned) > header,
.toolbar-auto > header:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.toolbar-auto:is(.toolbar-intro,.toolbar-near,.toolbar-touch,.toolbar-pinned,:has(> header:focus-within)) {
  --toolbar-offset: var(--toolbar-height, 40px);
}
.toolbar-auto .scene-title { top: calc(7px + var(--toolbar-offset, 0px)); }
.toolbar-auto #table-sidebar { margin-top: var(--toolbar-offset, 0px); }
#toolbar-reveal { display: none; }
@media (hover: none) {
  .toolbar-auto #toolbar-reveal {
    display: block;
    position: absolute;
    right: 5px;
    top: 0;
    z-index: 31;
    padding: 0 4px;
    font-size: 11px;
  }
  .toolbar-auto:is(.toolbar-intro,.toolbar-touch) #toolbar-reveal { top: var(--toolbar-offset); }
  .toolbar-auto.toolbar-pinned #toolbar-reveal { display: none; }
}


#open-settings {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 23px;
  line-height: 1;
}
#leave-room.leave-active {
  background: #a21d26;
  color: #fff;
  border: 1px solid #79141b;
  padding: 2px 8px;
}
