:root {
  --bg: #0e0d0c;
  --bg-2: #171614;
  --bg-3: #100f0e;
  --line: rgba(255, 244, 230, 0.1);
  --text: #f4efe8;
  --muted: #a39c92;
  --brass: #e0b15a;
  --brass-ink: #1c140a;
  --ok: #b6e38a;
  --ok-ink: #14210c;
  --sveta: #E4453A;
  --ilya: #3DCFE6;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: clip;
}

body[data-seat="sveta"] { background: #110e0d; }
body[data-seat="ilya"] { background: #0d1012; }
body[data-seat="editor"] { background: #0e0e10; }

button, textarea, input { font: inherit; color: inherit; }

button {
  appearance: none;
  cursor: pointer;
  border: 0;
  background: none;
}

button:disabled { cursor: not-allowed; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

::selection { background: rgba(224, 177, 90, 0.35); }

header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(14, 13, 12, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

header[hidden] { display: none; }

.adminbar, .previewbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 28px;
}

.previewbar {
  justify-content: space-between;
  color: #f0d7b0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--text);
}

.logo svg { width: 28px; height: 28px; display: block; flex: none; }

.logo rect { fill: var(--brass); }

.logo path { fill: #1c140a; }

.logo span {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.row.tight { margin-top: 0; margin-left: auto; }

.disk { flex: 1 1 280px; min-width: 220px; }

@media (max-width: 720px) {
  .adminbar { padding: 12px 16px; }
  .disk { flex-basis: 100%; }
  .row.tight { margin-left: 0; }
  .invite { flex-direction: column; align-items: stretch; }
  .invite .row { width: 100%; }
  .sheet h2 { font-size: 28px; }
}

.disk-top {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.disk-top b {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  font-size: 14px;
}

.disk-top span:last-child { margin-left: auto; letter-spacing: 0; text-transform: none; font-size: 13px; }

.disk-track {
  margin-top: 6px;
  height: 8px;
  border-radius: 99px;
  background: #2a2724;
  overflow: hidden;
}

.disk-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #8fce6b;
}

.disk-track i.warm { background: var(--brass); }
.disk-track i.hot { background: #e4453a; }

.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  min-height: 148px;
  padding: 22px 16px;
  border: 1.5px dashed rgba(224, 177, 90, 0.55);
  border-radius: 16px;
  background:
    radial-gradient(120px 60px at 50% 0%, rgba(224, 177, 90, 0.14), transparent 70%),
    #100f0e;
  text-align: center;
  cursor: pointer;
}

.drop strong { font-size: 16px; font-weight: 600; }

.drop span {
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop.over {
  border-color: var(--brass);
  background: rgba(224, 177, 90, 0.12);
}

.drop.ready,
.drop.sending {
  border-style: solid;
  border-color: rgba(224, 177, 90, 0.85);
}

.drop.ready strong,
.drop.sending strong {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.drop.sending { cursor: progress; pointer-events: none; }

.drop .progress { width: min(280px, 100%); }

.drop .pct {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brass);
}

.progress {
  margin-top: 10px;
  height: 8px;
  border-radius: 99px;
  background: #2a2724;
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--brass);
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 28px 8px;
}

.brand {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  justify-self: start;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.kicker {
  margin: 0 0 3px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #0a0908;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.switch button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 7px 12px 8px;
  text-align: left;
  min-width: 92px;
}

.switch button small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.switch button b { font-weight: 600; font-size: 14px; }

.switch button:hover:not(.on) { background: #1c1a18; }

.switch button.on { background: #262320; }

.switch button.on[data-id="sveta"] { box-shadow: inset 0 0 0 1.5px var(--sveta); }
.switch button.on[data-id="ilya"] { box-shadow: inset 0 0 0 1.5px var(--ilya); }
.switch button.on[data-id="editor"] { box-shadow: inset 0 0 0 1.5px var(--brass); }

.reset { justify-self: end; }

.seatline {
  margin: 0;
  padding: 2px 28px 14px;
  max-width: 880px;
  color: #c9c2b6;
  font-size: 14px;
}

#flashline { padding: 0 28px; }

.flash { color: #ffb4a2; margin: 10px 0 0; }

.board {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 72px;
}

.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
  margin: 10px 0 0;
}

.board h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.invite {
  display: flex;
  align-items: center;
  gap: 16px 18px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(224, 177, 90, 0.32);
  background:
    radial-gradient(220px 90px at 0% 0%, rgba(224, 177, 90, 0.2), transparent 70%),
    linear-gradient(180deg, #1c1915, #141311);
  box-shadow: inset 0 1px 0 rgba(255, 236, 205, 0.06);
}

.invite-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--brass-ink);
  background: var(--brass);
}

.invite-mark svg { width: 20px; height: 20px; display: block; }

.invite-copy { flex: 1; min-width: 0; }

.invite-copy strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.linkline {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  color: #f3d7a2;
  word-break: break-all;
  border-radius: 12px;
  background: #100f0e;
  border: 1px solid var(--line);
}

.linkline:hover { color: #fff6e4; }

.invite .row { margin: 0; flex: none; }

.ghost.share,
.sheet .primary,
.sheet .ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ghost.share svg { width: 16px; height: 16px; display: block; }

.primary.copied {
  background: var(--ok);
  color: var(--ok-ink);
  border-color: var(--ok);
}

body.sharing { overflow: hidden; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.veil-hit {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.72);
  backdrop-filter: blur(12px);
}

.sheet {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 28px 26px 22px;
  border-radius: 24px;
  border: 1px solid rgba(224, 177, 90, 0.34);
  background:
    radial-gradient(280px 140px at 12% 0%, rgba(224, 177, 90, 0.22), transparent 62%),
    #171614;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  animation: sheet-in 280ms cubic-bezier(.2, .8, .2, 1);
}

.sheet h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sheet .hint { max-width: 38ch; }

.sheet-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.sheet-x:hover { color: var(--text); background: rgba(255, 244, 230, 0.06); }

.linkbox {
  margin-top: 16px;
  padding: 12px;
  border-radius: 16px;
  background: #100f0e;
  border: 1px solid var(--line);
}

.linkbox code {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  color: #f3d7a2;
  word-break: break-all;
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet { animation: none; }
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.board-grid > *,
.film,
.panel,
.linkline,
.drop,
.comment,
.chead {
  min-width: 0;
  max-width: 100%;
}

.section-label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.film {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
}

.film:hover { border-color: rgba(224, 177, 90, 0.45); }

.film-open {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
}

.film-share {
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.film-share .eyebrow { padding-top: 12px; }

.film-share .linkline { font-size: 12px; }

.room-title .share { margin-left: auto; }

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster video.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  pointer-events: none;
}

.poster .status { position: absolute; top: 12px; left: 12px; }

.meta { display: block; padding: 14px 16px 16px; }

.meta strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.meta em, .hint, .fork, .hold {
  color: var(--muted);
  font-style: normal;
}

.meta em { font-size: 14px; }

.blurb { display: block; margin-top: 4px; color: #8f887e; font-size: 13px; }

.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.person {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.person i, .ready i, .chead i {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  display: block;
  flex: none;
}

.person small, .person em { display: block; color: var(--muted); font-style: normal; font-size: 13px; }

.person .who { flex: 1; }

.person .who b { display: block; }

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
  background: rgba(255, 244, 230, 0.08);
}

.status.review { background: rgba(224, 177, 90, 0.16); color: #f0d7a4; }
.status.waiting { background: rgba(122, 162, 255, 0.16); color: #c9d8ff; }
.status.approved { background: rgba(143, 206, 107, 0.16); color: #d4f0c2; }

.file {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 244, 230, 0.06);
}

.file b { font-weight: 600; }

.file span { display: block; color: var(--muted); font-size: 12px; }

.folder-add { display: flex; gap: 8px; margin-top: 10px; }

.folder-add input { flex: 1; }

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  resize: vertical;
}

.room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 28px 56px;
  align-items: start;
}

.stage { min-width: 0; }

.room-head { margin-bottom: 12px; }

.room-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.room-tools .back { margin: 0; }

.tour-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(224, 177, 90, 0.72);
  background: rgba(224, 177, 90, 0.16);
  color: #f6e7c4;
  font-size: 14px;
  white-space: nowrap;
}

.tour-link:hover { background: rgba(224, 177, 90, 0.28); color: #fff6e4; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  margin: 0 0 12px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 244, 230, 0.04);
  color: var(--text);
  font-size: 14px;
}

.back svg { width: 18px; height: 18px; display: block; }

.back:hover {
  border-color: rgba(224, 177, 90, 0.55);
  color: var(--brass);
  background: rgba(224, 177, 90, 0.08);
}

.room-title {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.room-title h1 {
  margin: 0;
  flex: 1 1 180px;
  min-width: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

#room-trash:empty { display: none; }

.bezel {
  position: relative;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.bezel video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  background: #000;
}

video {
  -webkit-user-drag: none;
  user-select: none;
}

#slip[hidden] { display: none; }

#slip {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: auto;
  padding: 16px;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.82), rgba(8, 7, 6, 0.28) 55%, rgba(8, 7, 6, 0.18));
}

#slip.waiting {
  background: none;
  justify-content: flex-start;
  pointer-events: none;
}

.slip-wait {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14, 13, 12, 0.82);
  border: 1px solid rgba(224, 177, 90, 0.45);
  color: #f3d7a2;
  font-size: 13px;
}

.slip-error {
  margin: 8px 0 0;
  color: #ffb4a2;
  font-size: 13px;
}

.slip {
  width: min(520px, 100%);
  margin-top: auto;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(23, 22, 20, 0.94);
  border: 1px solid rgba(224, 177, 90, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.slip-tc {
  margin: 2px 0 10px;
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.ver-chip, .tc {
  position: absolute;
  top: 12px;
  z-index: 2;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ver-chip { left: 12px; }
.tc { right: 168px; }

.full {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(224, 177, 90, 0.72);
  background: rgba(14, 13, 12, 0.72);
  color: #f6e7c4;
  font-size: 13px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.full svg { width: 16px; height: 16px; display: block; }
.full .exit { display: none; }
.full.on .enter { display: none; }
.full.on .exit { display: block; }
.full:hover { background: rgba(224, 177, 90, 0.28); color: #fff6e4; }

.lane {
  position: relative;
  height: 46px;
  margin: 10px 8px 0;
  background: #121110;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
}

.playhead {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #f6f1e8;
  transform: translateX(-1px);
  z-index: 3;
  pointer-events: none;
}

.mark {
  position: absolute;
  top: 2px;
  display: block;
  padding: 0;
  color: inherit;
  z-index: 2;
}

.mark.point {
  width: 18px;
  height: 22px;
  transform: translateX(-50%);
}

.mark.range {
  height: 22px;
  min-width: 10px;
  z-index: 1;
}

.mark .flag {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 18px;
  transform: translateX(-50%);
  display: block;
  overflow: visible;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.55));
}

.mark.range .flag {
  left: 0;
  transform: translateX(-50%);
}

.mark .flag path {
  fill: currentColor;
  stroke: #141210;
  stroke-width: 0.75;
  stroke-linejoin: round;
}

.mark .bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 5px;
  background: currentColor;
  border-radius: 1px;
  opacity: 0.92;
}

.mark.ghost {
  color: rgba(243, 239, 230, 0.92);
  pointer-events: none;
}

.mark.ghost .flag {
  filter: none;
}

.mark.ghost .flag path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-dasharray: 2 1.4;
}

.mark.ghost .bar {
  background: transparent;
  border-top: 1.5px dashed currentColor;
  height: 0;
  opacity: 1;
  top: 8px;
}

.export {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #141311;
}

.export .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 0;
  align-items: end;
}

.export .row .primary { grid-column: 1 / -1; }

.export .fps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.export select,
.export input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
}

.export input {
  width: 100%;
  min-width: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.export .hint { margin: 8px 0 0; }

.hint { font-size: 13px; line-height: 1.45; margin: 8px 0; }

.banner {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(224, 177, 90, 0.12);
  color: #f0d7b0;
}

.banner.lock { background: rgba(122, 162, 255, 0.14); color: #d5e1ff; }
.banner.ok { background: rgba(143, 206, 107, 0.12); color: #d7f0c6; }

.composer, aside, .deliver, .force {
  margin-top: 14px;
}

.composer {
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.compose-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.big-tc {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  letter-spacing: -0.04em;
  min-width: 76px;
  padding-top: 6px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  min-width: 0;
  max-width: 100%;
}

.range-box, .general { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.label { margin: 0 0 6px; color: var(--muted); font-size: 13px; }

.range-label {
  font-family: var(--mono);
  font-size: 13px;
  color: #d9d2c8;
  margin: 8px 0 0;
}

aside {
  position: sticky;
  top: 108px;
  max-height: calc(100vh - 124px);
  overflow: auto;
  min-width: 0;
  padding-right: 4px;
}

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.pills button,
.ghost,
.primary,
.approve,
.revise {
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 14px;
  min-height: 40px;
  line-height: 1.2;
}

.pills button,
.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.ghost,
.primary,
.approve,
.revise {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.force .ghost { width: 100%; }

.pills button {
  color: var(--muted);
  min-height: 32px;
  min-width: 44px;
  padding: 4px 12px;
}

.pills button.on {
  color: var(--brass-ink);
  background: var(--brass);
  border-color: var(--brass);
}

.ghost:hover:not(:disabled) { background: rgba(255, 244, 230, 0.05); }

.range-box .row .ghost {
  flex: 0 0 auto;
  white-space: nowrap;
  background: rgba(224, 177, 90, 0.16);
  border-color: rgba(224, 177, 90, 0.72);
  color: #f6e7c4;
}

.range-box .row .ghost:hover:not(:disabled) {
  background: rgba(224, 177, 90, 0.28);
  border-color: var(--brass);
  color: #fff6e4;
}

.trash {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #f0b2a8;
  background: rgba(14, 13, 12, 0.72);
  border: 1px solid rgba(228, 69, 58, 0.4);
  backdrop-filter: blur(8px);
}

.film > .trash {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.trash svg { width: 16px; height: 16px; display: block; }

.trash:hover { background: rgba(228, 69, 58, 0.28); color: #fff; }

.primary,
.revise {
  background: var(--brass);
  color: var(--brass-ink);
  border-color: var(--brass);
  font-weight: 650;
}

.approve {
  background: var(--ok);
  color: var(--ok-ink);
  border-color: var(--ok);
  font-weight: 650;
}

.primary:hover:not(:disabled),
.revise:hover:not(:disabled) { filter: brightness(1.06); }

.approve:hover:not(:disabled) { filter: brightness(1.05); }

.primary:active:not(:disabled),
.revise:active:not(:disabled),
.approve:active:not(:disabled),
.ghost:active:not(:disabled) { filter: brightness(0.92); }

.primary:disabled,
.revise:disabled,
.approve:disabled,
.ghost:disabled {
  background: #2a2724;
  color: #b7b0a6;
  border-color: #2a2724;
  filter: none;
}

.text,
.tiny {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 4px 0;
  min-height: 0;
}

.chead .tiny {
  margin-left: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #e6dfd4;
  line-height: 1.2;
}

.chead .tiny:hover { background: rgba(255, 244, 230, 0.06); }

.ghost.ready.on {
  background: rgba(182, 227, 138, 0.16);
  border-color: #b6e38a;
  color: #e7f6d4;
}

.summary {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--brass);
  background: rgba(224, 177, 90, 0.08);
  border-radius: 0 12px 12px 0;
}

.summary span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.summary p { margin: 0; white-space: pre-wrap; }

h3 {
  margin: 16px 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.hold { margin: 0 0 8px; color: var(--text); }

.ready { list-style: none; padding: 0; margin: 8px 0; }

.ready li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.ready em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; }

.ready li.on em { color: #d4f0c2; }

.comment {
  border-left: 3px solid var(--mark);
  background: var(--bg-2);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.comment.done p { color: #8f887e; }

.chead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.chead b { font-size: 14px; }

.chead .when {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.comment p { margin: 8px 0; white-space: pre-wrap; word-break: break-word; }

.still {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #000;
  margin-bottom: 8px;
}

.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }

.check input { width: 16px; height: 16px; accent-color: #8fce6b; }

.deliver textarea, .general textarea, .range-box textarea { margin-top: 8px; }

aside::-webkit-scrollbar, .panel::-webkit-scrollbar { width: 8px; }
aside::-webkit-scrollbar-thumb { background: #3a3834; border-radius: 99px; }

@media (max-width: 980px) {
  .board-grid, .room { grid-template-columns: minmax(0, 1fr); }
  aside { position: static; max-height: none; }
  .board h1 { font-size: 44px; }
  .room-title h1 { font-size: 28px; }
  .board, .room, #flashline { padding-left: 16px; padding-right: 16px; }
  .film-share .row,
  .panel .row { align-items: stretch; }
  .film-share .row > *,
  .slip .row > * { min-width: 0; }
  .previewbar { align-items: flex-start; }
  .previewbar > .ghost { margin-left: 0; }
  .room-title .share { margin-left: 0; }
  .sheet { padding: 24px 18px 18px; }
  .slip { padding: 12px; }
  .bezel:has(#slip:not([hidden]):not(.waiting)) {
    overflow: visible;
    z-index: 3;
  }
  #slip:not(.waiting) {
    overflow: visible;
    bottom: auto;
    height: auto;
    min-height: 100%;
  }
  .slip textarea {
    height: 72px;
    min-height: 72px;
  }
  .tc { right: 56px; }
  .full { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .full span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

body.screen-full { overflow: hidden; }

.bezel.is-full,
.bezel.is-full:has(#slip:not([hidden]):not(.waiting)),
.bezel:fullscreen,
.bezel:-webkit-full-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.bezel.is-full video,
.bezel:fullscreen video,
.bezel:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bezel.is-full #slip:not(.waiting),
.bezel:fullscreen #slip:not(.waiting),
.bezel:-webkit-full-screen #slip:not(.waiting) {
  inset: 0;
  bottom: 0;
  height: 100%;
  min-height: 0;
  overflow: auto;
}

@media (max-width: 800px) {
  .bar { grid-template-columns: 1fr; justify-items: start; }
  .switch { justify-self: stretch; width: 100%; }
  .switch button { flex: 1; min-width: 0; }
  .reset { justify-self: start; }
  .compose-main { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .room-title { align-items: flex-start; }
  .room-title h1 { flex-basis: 100%; }
}

body.touring { overflow: hidden; }

.tour-veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(8, 7, 6, 0.72);
  backdrop-filter: blur(12px);
}

.tour-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-height: calc(100dvh - 20px);
  border-radius: 22px;
  border: 1px solid rgba(224, 177, 90, 0.34);
  background:
    radial-gradient(240px 120px at 12% 0%, rgba(224, 177, 90, 0.2), transparent 62%),
    #171614;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.tour-body {
  overflow: auto;
  min-height: 0;
  padding: 22px 18px 8px;
  -webkit-overflow-scrolling: touch;
}

.tour-card h2 {
  margin: 12px 0 0;
  padding-right: 28px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.tour-body p {
  margin: 10px 0 0;
  color: #e7e0d6;
  font-size: 15px;
}

.tour-steps {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--text);
}

.tour-steps li { margin: 8px 0; }

.tour-scene {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #100f0e;
  border: 1px solid var(--line);
  min-width: 0;
}

.tour-screen {
  display: block;
  height: 72px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(224, 177, 90, 0.18), transparent 55%),
    #1b1916;
}

.tour-time,
.tour-kicker {
  font-family: var(--mono);
  font-size: 12px;
  color: #f3d7a2;
}

.tour-note {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.tour-pill,
.tour-pills span {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--brass-ink);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.tour-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.tour-pills span {
  background: rgba(224, 177, 90, 0.16);
  border: 1px solid rgba(224, 177, 90, 0.72);
  color: #f6e7c4;
  font-weight: 600;
}

.tour-pills span.on {
  background: var(--brass);
  color: var(--brass-ink);
}

.tour-pills span.ok {
  background: var(--ok);
  border-color: var(--ok);
  color: var(--ok-ink);
}

.tour-pills span.go {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--brass-ink);
}

.tour-lane {
  position: relative;
  display: block;
  height: 28px;
  border-radius: 8px;
  background: #221f1c;
  overflow: hidden;
}

.tour-lane i {
  position: absolute;
  top: 8px;
  height: 10px;
  border-radius: 3px;
}

.tour-lane i.a { left: 18%; width: 46%; background: rgba(228, 69, 58, 0.85); }
.tour-lane i.b { left: 18%; top: 4px; width: 8px; height: 16px; background: #e4453a; border-radius: 2px 2px 0 0; }
.tour-lane i.flag { left: 38%; top: 4px; width: 8px; height: 16px; background: #e4453a; border-radius: 2px 2px 0 0; }

.tour-foot {
  flex: none;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--line);
  background: #171614;
}

.tour-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.tour-dots i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 244, 230, 0.2);
}

.tour-dots i.on { background: var(--brass); }

.tour-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(224, 177, 90, 0.72);
  background: rgba(224, 177, 90, 0.16);
  color: #f6e7c4;
  white-space: nowrap;
}

.step:hover:not(:disabled) { background: rgba(224, 177, 90, 0.28); color: #fff6e4; }

.step:disabled { opacity: 0.38; }

.tour-nav .primary { flex: 0 0 auto; white-space: nowrap; }

@media (min-width: 720px) {
  .tour-veil { align-items: center; padding: 24px; }
  .tour-card { max-height: min(680px, calc(100dvh - 48px)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
