@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  font:
    16px 'DM Sans',
    system-ui,
    sans-serif;
  --ink: #27382d;
  --muted: #667064;
  --line: #d9dcd0;
  --pine: #304d39;
  --clay: #cd7857;
  --paper: #fffef8;
  --page: #f5f4ed;
  --bar: #fbfbf5;
  --subtle: #f7f8f0;
  --field: #fffefb;
  --field-line: #cbd1c4;
  --placeholder: #6c7669;
  --accent: #58734c;
  --accent-soft: #e5ebda;
  --accent-line: #9db28d;
  --section-bg: #eee8db;
  --section-ink: #79623d;
  --portrait-bg: #e8ecda;
  --portrait-grid: #c7d3bb77;
  --map-bg: #293d35;
  --map-grid: #81927a40;
  --primary-bg: #38583c;
  --primary-ink: #fffef5;
  --primary-line: #314735;
  --primary-shadow: #213d2a;
  --danger: #a54f38;
  --focus: #ac732c;
  color: var(--ink);
  background: var(--page);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --ink: #e7eee5;
  --muted: #adb9ac;
  --line: #405046;
  --pine: #c0d8b9;
  --clay: #e5a07c;
  --paper: #202a24;
  --page: #141c18;
  --bar: #19231d;
  --subtle: #1a241e;
  --field: #17211b;
  --field-line: #536458;
  --placeholder: #9caa9d;
  --accent: #a5c69d;
  --accent-soft: #314536;
  --accent-line: #708c72;
  --section-bg: #3c3326;
  --section-ink: #e3c18d;
  --portrait-bg: #29372c;
  --portrait-grid: #657d614d;
  --map-bg: #19271f;
  --map-grid: #84978038;
  --primary-bg: #a7c59b;
  --primary-ink: #17251a;
  --primary-line: #b2cda8;
  --primary-shadow: #121b15;
  --danger: #f0aa92;
  --focus: #f5c685;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: inherit;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  line-height: 1.2;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:not(:disabled):hover {
  filter: brightness(0.94);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
button .icon,
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  flex: none;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
}
.topbar {
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1680px;
  height: 70px;
  margin: auto;
  padding: 0 clamp(20px, 3.6vw, 64px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 28px;
  letter-spacing: -1.7px;
  font-weight: 800;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand-sub {
  font-size: 14px;
  color: var(--muted);
  border-left: 1px solid var(--field-line);
  padding-left: 17px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 550;
}
.status i,
.map-indicator i {
  width: 7px;
  height: 7px;
  background: #a98b58;
  border-radius: 50%;
}
.status.online i {
  background: #61915f;
}
.light,
.call-btn {
  padding: 9px 13px;
  font-size: 14px;
}
.light {
  border-color: var(--field-line);
}
#theme-toggle[aria-pressed='true'] {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--pine);
}
main {
  max-width: 1680px;
  margin: auto;
  padding: clamp(18px, 2.7vw, 46px) clamp(16px, 3.6vw, 64px) 22px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
  gap: 12px;
}
h1 {
  font-size: clamp(32px, 3.3vw, 49px);
  line-height: 1;
  font-weight: 730;
  letter-spacing: -2.6px;
}
.title-dot {
  color: var(--clay);
}
.page-title p {
  color: var(--muted);
  margin-top: 9px;
  font-size: 15px;
}
.counts {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-bottom: 4px;
}
.counts > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.counts b {
  color: var(--ink);
}
.counts .icon {
  width: 16px;
  height: 16px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(296px, 328px);
  gap: 20px;
  align-items: start;
}
.board,
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 15px;
  box-shadow: 0 3px 0 #27382d09;
}
.board {
  overflow: hidden;
}
#map-frame {
  position: relative;
  isolation: isolate;
  height: clamp(400px, 56vh, 700px);
  overflow: hidden;
  background-color: var(--map-bg);
  background-image: radial-gradient(var(--map-grid) 1px, transparent 1px);
  background-size: 17px 17px;
}
#map {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
#map:active {
  cursor: grabbing;
}
#map-labels {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
#map-highlight {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  filter: brightness(1.12) drop-shadow(0 0 1px #fffbd8) drop-shadow(0 0 3px #ffdc70);
}
.map-tag.highlighted { z-index: 2; }
.map-tag.highlighted .nameplate, .screen-owner.highlighted {
  opacity: 1;
  color: #263526;
  background: #fff2b6;
  box-shadow: 0 0 0 2px #ffdf78, 0 2px 6px #19221f55;
}
#map-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 5px;
  width: min(220px, calc(100vw - 48px));
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--field-line);
  border-radius: 11px;
  box-shadow: 0 6px 24px #15261e42;
  font-size: 14px;
}
#map-menu-name {
  display: flex;
  padding: 7px 9px 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
#map-menu button {
  width: 100%;
  border: 0;
  padding: 10px;
  justify-content: flex-start;
  text-align: left;
  overflow-wrap: anywhere;
}
#map-menu button:hover, #map-menu button:focus-visible { background: var(--accent-soft); color: var(--pine); }
.map-tag {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  visibility: hidden;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.room-mute {
  display: grid;
  place-items: center;
  opacity: 0.5;
  width: 32px;
  height: 32px;
  transform-origin: top left;
  border-radius: 50%;
  background: #23332feb;
  color: #f5f5e7;
  box-shadow: 0 0 0 1px #ecf3df70, 0 2px 4px #19221f38;
}
.room-mute .icon { width: 21px; height: 21px; }
.actor-tag::after,
.screen-owner::after {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--stem-x);
  height: var(--stem-height);
  border-left: 1px solid #2d4639b8;
}
.actor-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nameplate,
.screen-owner {
  max-width: min(160px, 40vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
  background: #24372ff2;
  color: #f7f7e9;
  box-shadow: 0 0 0 1px #fbffea5c;
}
.actor-tag.self .nameplate {
  background: #e6eecf;
  color: #24372f;
  box-shadow: 0 0 0 1px #526851;
}
.actor-tag.speaking:not(.highlighted) .nameplate {
  box-shadow: 0 0 0 1px #ffdf78b3, 0 0 5px #ffdc7040;
}
.actor-tag.other-room.speaking:not(.highlighted) .nameplate {
  box-shadow: 0 0 0 1px #ffdf785c, 0 0 4px #ffdc701c;
}
.nameplate.focused { opacity: 0.62; }
.person-name { display: inline-flex; align-items: center; gap: 3px; }
.nameplate .name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.person-name .icon { width: 14px; height: 14px; }
.screen-owner {
  overflow: visible;
  max-width: none;
  background: #53402e;
  color: #ffedcf;
}
.speech-bubble {
  max-width: min(175px, 42vw);
  padding: 5px 8px;
  border: 1px solid #516753;
  border-radius: 9px 9px 9px 2px;
  color: #1b2d22;
  background: #fffef0;
  box-shadow: 0 2px 4px #20362530;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 560;
}
.other-room .speech-bubble {
  opacity: 0.45;
}
.chat-line a, .speech-bubble a { text-decoration: underline; text-underline-offset: 2px; }
.chat-line a { color: var(--pine); }
.speech-bubble a { color: #235559; pointer-events: auto; }
.map-indicator,
.zoom {
  position: absolute;
  display: flex;
  align-items: center;
  background: #213228e8;
  color: #e2e8d6;
  border: 1px solid #798b716b;
  border-radius: 7px;
}
.map-indicator {
  top: 16px;
  left: 16px;
  gap: 7px;
  padding: 7px 10px;
  pointer-events: none;
  font-size: 12px;
  font-weight: 550;
}
.map-indicator i {
  background: #a9c391;
  width: 6px;
  height: 6px;
}
.zoom {
  bottom: 14px;
  right: 14px;
  overflow: hidden;
}
.zoom button {
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  min-width: 32px;
  height: 32px;
  font-size: 19px;
}
.zoom .icon {
  width: 15px;
  height: 15px;
}
.callbar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 17px;
}
.location {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.location > div {
  min-width: 0;
}
.location-icon,
.section-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--pine);
}
.location small,
.location strong {
  display: block;
}
.location small {
  font-size: 12px;
  color: var(--muted);
}
.location strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.call-actions {
  display: flex;
  gap: 7px;
}
#media-options { padding-inline: 10px; }
#media-dialog p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0;
}
#media-dialog [role="status"]:empty { display: none; }
#media-dialog [role="status"] { color: var(--danger); }
.mic-auto-gain {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  cursor: pointer;
}
.mic-auto-gain input { flex: none; width: 16px; height: 16px; margin: 0; }
.mic-level {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.mic-level label { font-size: inherit; }
#mic-level {
  display: block;
  width: 100%;
  height: 12px;
  margin-top: 5px;
  appearance: none;
  background: var(--accent-soft);
  border: 0;
  border-radius: 4px;
  overflow: hidden;
}
#mic-level::-webkit-meter-bar { background: var(--accent-soft); border: 0; }
#mic-level::-webkit-meter-optimum-value { background: var(--accent); }
#mic-level::-moz-meter-bar { background: var(--accent); }
.speaker-test, .share-settings { border-top: 1px solid var(--line); margin: 16px 0 6px; padding-top: 16px; }
#test-sound, #test-mic { width: 100%; color: var(--pine); }
#mic-test-status:empty { display: none; }
@media (max-width: 480px) {
  .callbar { flex-wrap: wrap; }
  .call-actions { margin-left: auto; }
}
.call-btn.active {
  background: var(--accent-soft);
  color: var(--pine);
}
.leave {
  color: var(--danger);
}
.sound-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--subtle);
  padding: 9px 18px;
  color: var(--muted);
  font-size: 12px;
}
.sound-levels, .room-audio, .other-room-audio,
.mute-other-rooms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sound-levels { flex-wrap: wrap; gap: 6px 12px; }
.room-audio, .other-room-audio { white-space: nowrap; }
.volume-trigger {
  min-height: 30px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
}
.volume-trigger::after {
  content: '';
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.volume-trigger:not(:disabled):hover, .volume-trigger[aria-expanded='true'] {
  background: var(--accent-soft);
  color: var(--pine);
}
.volume-trigger[aria-expanded='true']::after { transform: translateY(2px) rotate(225deg); }
.other-room-audio {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 0 7px 0 2px;
  gap: 5px;
}
.other-room-audio:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.room-audio:disabled, .other-room-audio[aria-disabled='true'] { opacity: 0.55; filter: grayscale(1); }
.other-room-audio[aria-disabled='true'] .volume-trigger { opacity: 1; }
.other-room-audio[aria-disabled='true'] :is(label, input) { cursor: default; }
.sound-key .mute-other-rooms {
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  min-height: 28px;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.mute-other-rooms input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.sound-key .icon {
  width: 15px;
  height: 15px;
}
.sound-key b {
  font-weight: 650;
  color: var(--pine);
}
.volume-panel {
  border-top: 1px solid var(--line);
  background: var(--subtle);
  padding: 10px clamp(10px, 2vw, 18px) 12px;
}
.volume-editor { max-width: 400px; }
.volume-heading, .volume-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.volume-heading { font-size: 13px; font-weight: 650; }
.volume-heading output { margin-left: auto; color: var(--pine); font-variant-numeric: tabular-nums; }
.volume-heading .icon-btn { width: 28px; min-height: 28px; height: 28px; }
.volume-heading .icon { width: 14px; height: 14px; }
.volume-range { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.volume-range input[type='range'] {
  flex: 1;
  min-width: 0;
  height: 30px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.away-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.away-actions .call-btn {
  min-height: 29px;
  padding: 4px 9px;
  font-size: 13px;
}
.away-actions .active {
  background: var(--section-bg);
  color: var(--section-ink);
}
#lunch-time, #break-time {
  font-variant-numeric: tabular-nums;
}
.room-chat {
  padding: 16px 18px 12px;
  border-top: 1px solid var(--line);
}
.room-chat .panel-heading {
  margin-bottom: 8px;
}
#chat-room {
  margin-left: auto;
  text-align: right;
  color: var(--pine);
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
#chat-log {
  min-height: 55px;
  max-height: 185px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 0 8px;
}
#chat-log:empty::before {
  content: 'No messages in this room yet.';
  display: block;
  padding: 12px 0;
  font-size: 14px;
  color: var(--muted);
}
.chat-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 10px;
  padding: 5px 0;
  font-size: 14px;
}
.chat-line strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.chat-line.own strong {
  color: var(--pine);
}
.chat-line time, .chat-visibility {
  font-size: 11px;
  color: var(--muted);
}
.chat-line span {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}
.chat-mention {
  border-radius: 3px;
  padding: 0 2px;
  background: var(--accent-soft);
  color: var(--pine);
  font-weight: 650;
}
#chat-form {
  display: flex;
  gap: 7px;
}
#chat-input {
  min-width: 0;
  margin: 0;
}
.chat-compose { flex: 1; min-width: 0; position: relative; }
#mention-options {
  position: absolute; z-index: 4; bottom: calc(100% + 4px); left: 0;
  width: min(100%, 300px); max-height: 190px; overflow-y: auto;
  list-style: none; padding: 4px; border: 1px solid var(--field-line);
  border-radius: 8px; background: var(--paper); box-shadow: 0 4px 14px #0002;
}
#mention-options li {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px;
  border-radius: 4px; cursor: pointer; overflow-wrap: anywhere;
}
#mention-options [aria-selected="true"] { background: var(--accent-soft); }
#mention-options small { min-width: 0; margin-left: auto; color: var(--muted); overflow-wrap: anywhere; }
.chat-image {
  grid-column: 1 / -1; justify-self: start; overflow: hidden; padding: 3px;
  font-size: 12px; color: var(--muted); background: var(--subtle);
}
.chat-image img { display: block; max-width: 112px; max-height: 72px; border-radius: 4px; }
.chat-image:disabled { opacity: 1; }
#image-draft {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 8px;
  padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); background: var(--subtle); font-size: 12px;
}
#draft-thumbnail { max-width: 60px; max-height: 42px; border-radius: 3px; }
#image-feedback { overflow-wrap: anywhere; }
#remove-image { margin-left: auto; flex: none; }
#image-viewer { width: fit-content; max-width: 94vw; }
#image-title { min-width: 0; overflow-wrap: anywhere; }
#full-image { display: block; max-width: 100%; max-height: 75vh; margin: auto; object-fit: contain; }
#chat-form button {
  width: auto;
  min-height: 36px;
  padding: 6px 12px;
  margin: 0;
}
#chat-form #attach-image { padding: 6px 9px; }
.chat-visibility {
  margin-top: 6px;
}
.person [data-lunch-since] {
  color: var(--section-ink);
  font-variant-numeric: tabular-nums;
}
.panel {
  padding: 19px;
}
.panel-heading,
.dialog-head,
.subhead {
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-heading {
  margin-bottom: 15px;
}
.panel-heading h2,
.dialog-head h2 {
  font-size: 21px;
  letter-spacing: -0.8px;
  line-height: 1.15;
}
.panel-heading > button:last-child,
.dialog-head > button:last-child,
.subhead > button:last-child {
  margin-left: auto;
}
.section-icon {
  width: 31px;
  height: 31px;
  border-radius: 7px;
  background: var(--section-bg);
  color: var(--section-ink);
}
.section-icon .icon {
  width: 18px;
  height: 18px;
}
.portrait {
  position: relative;
  border-radius: 9px;
  border: 1px solid var(--field-line);
  background-color: var(--portrait-bg);
  background-image:
    linear-gradient(30deg, transparent 48.5%, var(--portrait-grid) 49.5%, var(--portrait-grid) 50.5%, transparent 51.5%),
    linear-gradient(-30deg, transparent 48.5%, var(--portrait-grid) 49.5%, var(--portrait-grid) 50.5%, transparent 51.5%);
  background-size: 32px 19px;
  margin-bottom: 13px;
}
#portrait {
  height: 98px;
  display: block;
  width: 100%;
}
.shuffle,
.icon-btn {
  width: 33px;
  height: 33px;
  padding: 0;
}
.shuffle {
  position: absolute;
  right: 9px;
  bottom: 9px;
  background: var(--paper);
}
.shuffle .icon {
  width: 16px;
  height: 16px;
}
label,
.swatch-label {
  font-weight: 620;
  font-size: 14px;
}
input[type='text'],
input[type='time'],
input[type='number'],
select {
  display: block;
  width: 100%;
  margin: 5px 0 12px;
  border: 1px solid var(--field-line);
  border-radius: 7px;
  background: var(--field);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 15px;
}
.working-hours { margin-top: 18px; }
#hours-copy-text { width: 100%; color: var(--ink); background: var(--field); border: 1px solid var(--field-line); }
.hours-heading, .hours-actions { display: flex; align-items: center; gap: 10px; }
.hours-heading { flex-wrap: wrap; justify-content: space-between; margin-bottom: 14px; }
.hours-heading .panel-heading { margin: 0; }
.hours-actions { flex-wrap: wrap; }
.hours-actions .primary { width: auto; min-height: 36px; margin: 0; padding: 8px 14px; }
#hours-date, #hours-edit-day, .hours-note, .hours-disclosure {
  color: var(--muted); font-size: 12px; line-height: 1.5;
}
#hours-date { margin-top: 4px; }
#hours-edit-day { margin: -4px 0 14px; }
.hours-disclosure, .hours-note { margin-top: 9px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.hours-table thead { background: var(--subtle); color: var(--muted); font-size: 12px; }
.hours-table tbody th { overflow-wrap: anywhere; }
.hours-table small { font-weight: 500; color: var(--muted); }
.hours-table .registered { color: var(--pine); font-weight: 650; }
.hours-lunch-period {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center;
  gap: 8px; border-top: 1px solid var(--line); padding-top: 9px; margin-top: 5px;
}
.hours-lunch-period input { min-width: 0; }
#hours-dialog { max-height: calc(100vh - 28px); overflow-y: auto; }
#hours-feedback:not(:empty), #hours-form-feedback:not(:empty) { margin-top: 10px; color: var(--pine); font-size: 13px; }
@media (max-width: 740px) {
  .hours-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hours-table, .hours-table tbody { display: block; }
  .hours-table tbody tr {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px;
    padding: 11px 0; border-bottom: 1px solid var(--line);
  }
  .hours-table th, .hours-table td { border: 0; padding: 0; }
  .hours-table tbody th { grid-column: span 2; }
  .hours-table td[data-label='Status'] { text-align: right; font-size: 12px; overflow-wrap: anywhere; }
  .hours-table td:not([data-label='Status'])::before {
    content: attr(data-label); display: block; font-size: 11px; color: var(--muted);
  }
}
input::placeholder {
  color: var(--placeholder);
}
.ranges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 2px 0 9px;
}
.ranges label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ranges output {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ranges input {
  width: 100%;
  accent-color: var(--accent);
  margin: 7px 0 0;
  height: 15px;
}
.swatch-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}
.style-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; clear: both; margin-top: 10px; }
.style-choices select { margin-bottom: 0; }
.style-choices label[for="outfit"] { grid-column: 1 / -1; }
.swatches {
  display: flex;
  gap: 5px;
}
.swatch {
  height: 21px;
  width: 21px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #3a403639;
  background: var(--paint);
}
.swatch[aria-pressed='true'] {
  outline: 2px solid var(--ink);
  outline-offset: 1.5px;
}
.primary {
  border: 1px solid var(--primary-line);
  background: var(--primary-bg);
  color: var(--primary-ink);
  min-height: 42px;
  width: 100%;
  margin-top: 10px;
  font-size: 15px;
  box-shadow: 0 2px 0 var(--primary-shadow);
}
.primary .icon {
  width: 18px;
  height: 18px;
}
.plain {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--pine);
  font-size: 13px;
}
.room-list {
  display: grid;
  gap: 6px;
}
.room-line {
  display: flex;
  gap: 3px;
  align-items: stretch;
}
.room-choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  font-size: 14px;
  min-width: 0;
}
.room-choice .room-text {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.room-choice.chosen {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.room-choice small {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.theme-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  flex: none;
  background: var(--paint);
  box-shadow: inset -2px -2px 0 #0002;
}
.room-remove {
  flex: none;
  font-size: 12px;
  padding: 0 8px;
}
.room-edit { width: 32px; flex: none; align-self: stretch; }
.room-edit .icon, .room-choice .private-mark { width: 14px; height: 14px; }
#room-form .room-privacy { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.room-privacy input { width: 16px; height: 16px; margin: 0; }
#room-privacy-note { color: var(--muted); font-size: 12px; }
#room-feedback:not(:empty) { margin-top: 8px; color: var(--danger); }
.subhead {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 14px;
  margin-bottom: 9px;
}
.subhead h3 {
  font-size: 16px;
}
.person {
  list-style: none;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  font-size: 14px;
}
.person small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.person-info { min-width: 0; overflow-wrap: anywhere; }
.person-info .person-name { max-width: 100%; }
.person-invite, .attention-card button { font-size: 12px; padding: 6px 9px; }
#attention-list:not(:empty) {
  position: fixed; z-index: 6; right: 16px; bottom: 16px;
  width: min(330px, calc(100% - 32px)); max-height: 46vh; overflow-y: auto;
  display: grid; gap: 6px;
}
.attention-card { background: var(--paper); color: var(--ink); border: 1px solid var(--accent-line); border-radius: 8px; box-shadow: 0 3px 12px #0002; padding: 10px 12px; }
.attention-card p { overflow-wrap: anywhere; font-size: 14px; margin-bottom: 6px; }
.presence-card p { margin-bottom: 0; }
#attention-list:not(:has(button)) { pointer-events: none; }
.attention-card button + button { margin-left: 6px; }
#people {
  padding: 0;
}
.screen-link {
  width: 100%;
  justify-content: flex-start;
  margin: 3px 0;
  padding: 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
#notice:not(:empty) {
  position: fixed;
  z-index: 5;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #27392e;
  color: #fffef5;
  padding: 10px 17px;
  border: 1px solid #86977f;
  border-radius: 9px;
  font-size: 14px;
  max-width: calc(100vw - 24px);
  box-shadow: 0 4px 20px #0003;
}
#open-editor {
  width: auto;
  margin: 0;
  padding: 8px 14px;
  flex: none;
}
.workspace:has(#directory[hidden]) .board {
  grid-column: 1 / -1;
}
body:has(#editor[open]) {
  overflow: hidden;
}
#editor {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 4vw, 22px);
}
#editor-title:focus {
  outline: none;
}
#starting-room {
  display: block;
  margin-top: 12px;
}
#start-room {
  margin-bottom: 0;
}
#editor-notice:not(:empty) {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--paper);
  color: var(--ink);
  width: min(380px, calc(100vw - 24px));
  box-shadow: 0 18px 90px #101d1b66;
}
dialog::backdrop {
  background: #18251cd6;
}
.dialog-head {
  margin-bottom: 15px;
}
.dialog-head small {
  color: var(--muted);
}
#viewer {
  width: min(1150px, 94vw);
}
.viewer-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
#viewer-title { overflow-wrap: anywhere; }
#viewer.maximized {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
}
#viewer.maximized #screen-view {
  position: relative;
  height: 100%;
  background: #101412;
}
#viewer.maximized .dialog-head {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}
#viewer.maximized .dialog-head > div:first-child,
#viewer.maximized #quality { display: none; }
#viewer.maximized .icon-btn { box-shadow: 0 2px 8px #0004; }
#viewer.maximized #full-video {
  height: 100%;
  border-radius: 0;
  background: transparent;
}
#full-video {
  display: block;
  width: 100%;
  height: min(70vh, 68vw);
  background: #19221e;
  object-fit: contain;
  border-radius: 6px;
}
#quality {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
#media-bin {
  position: fixed;
  left: -3px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
#media-bin > * {
  width: 1px;
  height: 1px;
}
@media (min-width: 1550px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 355px;
  }
}
@media (max-width: 970px) {
  .workspace {
    gap: 13px;
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .panel {
    padding: 15px;
  }
  .call-btn {
    padding: 8px;
  }
  .callbar {
    padding: 12px;
  }
  .call-btn .icon {
    width: 16px;
    height: 16px;
  }
  .swatch {
    width: 19px;
    height: 19px;
  }
}
@media (max-width: 740px) {
  .top-inner {
    height: 57px;
    padding: 0 14px;
    gap: 8px;
  }
  .brand {
    font-size: 24px;
    gap: 4px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .brand-sub {
    display: none;
  }
  .header-actions {
    gap: 10px;
  }
  #theme-toggle span {
    display: none;
  }
  .status {
    font-size: 12px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .page-title {
    margin-bottom: 13px;
  }
  .counts {
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .counts > span {
    font-size: 12px;
  }
  .page-title p {
    font-size: 13px;
  }
  .page-title h1 {
    letter-spacing: -1.7px;
  }
  .light {
    padding: 7px 9px;
    font-size: 13px;
  }
  #map-frame {
    height: clamp(260px, 43vh, 400px);
  }
  .panel {
    padding: 16px;
  }
  .portrait {
    float: right;
    width: 34%;
    margin: 0 0 10px 14px;
  }
  #portrait {
    height: 108px;
  }
  .ranges {
    margin-top: 13px;
    display: flex;
    gap: 10px;
  }
  .ranges > div {
    flex: 1;
    min-width: 0;
  }
  #swatches {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .swatch-line {
    margin: 4px 0;
    gap: 8px;
  }
  .swatches {
    gap: 4px;
  }
  .swatch {
    width: 19px;
    height: 19px;
  }
  .name-label + input {
    width: 60%;
  }
  .map-indicator {
    top: 9px;
    left: 9px;
  }
  .zoom {
    right: 9px;
    bottom: 9px;
  }
  .callbar {
    padding: 9px;
  }
  .sound-key {
    padding: 7px 10px;
    gap: 4px 12px;
  }
  .location-icon {
    width: 29px;
    height: 29px;
  }
}
@media (max-width: 420px) {
  .counts {
    display: none;
  }
  .call-actions {
    gap: 4px;
  }
  .call-btn {
    font-size: 12px;
  }
  .location {
    gap: 5px;
  }
  .location strong {
    font-size: 13px;
  }
  .location small {
    font-size: 11px;
  }
  .status {
    gap: 4px;
  }
  .header-actions {
    gap: 7px;
  }
  #invite span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media (max-width: 420px) {
  .call-btn {
    white-space: nowrap;
  }
  .location-icon {
    display: none;
  }
  .call-actions {
    flex-shrink: 0;
  }
  .callbar {
    gap: 6px;
  }
}
