@import url("/static/type.css");
:root {
  --ink: #141615;
  --surface: #1b1e1b;
  --panel: #20231f;
  --paper: #f3f0e6;
  --muted: #a5aaa0;
  --line: #353a32;
  --accent: #d8ed9d;
  --black: #171c11;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Arena Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 450;
}
h1 {
  letter-spacing: -0.055em;
  line-height: 1.02;
}
h2 {
  letter-spacing: -0.04em;
  line-height: 1.14;
}
h3 {
  letter-spacing: -0.02em;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--accent);
  color: var(--ink);
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.topbar {
  height: 83px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  letter-spacing: 0.065em;
  font-weight: 650;
  white-space: nowrap;
}
.edition {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-left: 18px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.session-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}
.session-label > span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 300px;
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.connection {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.connection i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bc9d68;
  margin-right: 7px;
}
.connection i.online {
  background: var(--accent);
}
.code-pill {
  font: 12px var(--mono);
  letter-spacing: 0.16em;
  border: 1px solid var(--line);
  padding: 9px 13px;
  background: none;
  border-radius: 5px;
}
.pill {
  display: inline-block;
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--accent);
}
.live-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow {
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.13em;
  color: var(--muted);
}
.button {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 5px;
  min-height: 48px;
  padding: 13px 19px;
  font-size: 13px;
  font-weight: 550;
  transition:
    background 0.18s,
    transform 0.18s,
    border-color 0.18s;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button.primary {
  background: var(--accent);
  color: var(--black);
}
.button.primary:hover:not(:disabled) {
  background: #e6f6bf;
}
.button.secondary {
  background: transparent;
  border-color: #4b5146;
}
.button.secondary:hover:not(:disabled) {
  background: #262b23;
  border-color: #747c6b;
}
.button.small {
  padding: 9px 13px;
  min-height: 36px;
  font-size: 11px;
}
.button.full {
  width: 100%;
}
.text-button,
.icon-button {
  background: none;
  border: 0;
  padding: 8px 0;
}
.text-button {
  font-size: 12px;
}
.text-button:hover {
  color: var(--accent);
}
.icon-button {
  width: 34px;
  min-height: 34px;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.icon-button:hover:not(:disabled) {
  background: var(--panel);
  color: var(--accent);
}
.dot-separator {
  color: #64705a;
  margin: 0 12px;
}
.landing-nav {
  justify-content: space-between;
  padding: 0 5vw;
}
.landing {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100svh - 160px);
  padding: 100px 5vw 75px;
  align-items: center;
}
.landing-intro > .eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 9px;
  margin-bottom: 35px;
}
.landing h1 {
  font-size: clamp(52px, 5.8vw, 92px);
  margin-bottom: 28px;
  font-weight: 450;
}
.landing h1 em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.065em;
  color: var(--accent);
}
.landing-intro > p {
  font-size: 16px;
  color: var(--muted);
  max-width: 410px;
  line-height: 1.8;
}
.landing-actions {
  display: flex;
  gap: 12px;
  margin: 34px 0 42px;
}
.join-inline {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}
.join-inline form {
  display: flex;
  border-bottom: 1px solid #646b5e;
  padding: 4px 0;
}
.join-inline input {
  width: 120px;
  border: 0 !important;
  background: none !important;
  padding: 8px 0 !important;
  font: 11px var(--mono) !important;
  letter-spacing: 0.13em;
  border-radius: 0 !important;
  min-height: unset !important;
  text-transform: uppercase;
}
.join-inline button {
  border: 0;
  background: none;
  font-size: 20px;
  color: var(--paper);
}
.landing-art {
  padding-top: 15px;
  min-width: 0;
}
.art-label {
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  letter-spacing: 0.09em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.art-stack {
  position: relative;
  height: 410px;
  margin: 34px 0 10px;
}
.art-stack img {
  position: absolute;
  width: 78%;
  height: 74%;
  object-fit: cover;
  box-shadow: 0 30px 50px #0004;
  border: 1px solid #ffffff10;
}
.art-back {
  top: 0;
  right: 0;
  transform: rotate(10deg);
}
.art-mid {
  top: 35px;
  left: 0;
  transform: rotate(-10deg);
}
.art-front {
  top: 65px;
  right: 5%;
  transform: rotate(1deg);
}
.art-caption {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}
.little-cross {
  font-size: 35px;
  color: var(--accent);
}
.caption-rule {
  flex: 1;
  border-bottom: 1px solid var(--line);
  margin-left: 15px;
}
.landing-footer {
  border-top: 1px solid var(--line);
  padding: 24px 5vw;
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  letter-spacing: 0.09em;
  color: var(--muted);
}
.workspace {
  min-height: calc(100svh - 83px);
}
.host-workspace {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}
.console {
  border-right: 1px solid var(--line);
  padding: 30px 23px 20px;
  background: #171a17;
}
.console-heading h2 {
  font-size: 29px;
  margin: 8px 0 22px;
}
.console-heading .eyebrow {
  font-size: 9px;
}
.control-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  padding: 12px 0 21px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.console-section {
  padding: 23px 0 18px;
  border-bottom: 1px solid var(--line);
}
.section-label {
  font: 9px var(--mono);
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-bottom: 15px;
}
.section-label > span {
  color: #727c65;
  margin-right: 12px;
}
.segmented {
  display: flex;
  padding: 3px;
  background: #10130f;
  border: 1px solid #30362a;
  border-radius: 5px;
}
.segmented button {
  flex: 1;
  white-space: nowrap;
  background: transparent;
  border: none;
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 3px;
  color: var(--muted);
}
.segmented button.active {
  background: #30362a;
  color: var(--paper);
}
.switch-row {
  padding: 20px 0 12px;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
.switch-row small {
  display: block;
  color: #969e8e;
  font-size: 10px;
  margin-top: 4px;
}
.switch {
  width: 30px;
  height: 17px;
  border-radius: 20px;
  background: #444c3c;
  padding: 3px;
  transition: background 0.2s;
}
.switch:before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform 0.2s;
}
.switch.on {
  background: var(--accent);
}
.switch.on:before {
  background: var(--black);
  transform: translateX(13px);
}
.console-button {
  border: 0;
  background: none;
  width: 100%;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  text-align: left;
}
.console-button:hover:not(:disabled) {
  color: var(--accent);
}
.console-button.muted {
  color: var(--muted);
}
.control-hint {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 10px 0 0;
}
.console .button {
  font-size: 11px;
  min-height: 42px;
  padding: 10px 13px;
  gap: 10px;
}
.console-bottom {
  padding-top: 15px;
}
.console-bottom .text-button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: var(--muted);
  font-size: 11px;
  margin: 4px 0;
}
.console-bottom .text-button:hover {
  color: var(--paper);
}
.arena-main {
  padding: 0 34px;
  min-width: 0;
}
.room-toolbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font: 9px var(--mono);
  letter-spacing: 0.04em;
}
.room-toolbar > div {
  display: flex;
  gap: 9px;
  align-items: center;
}
.toolbar-divider {
  margin: 0 3px;
  color: #555c4c;
}
.toolbar-muted {
  color: var(--muted);
  font:
    10px "Arena Sans",
    "Helvetica Neue",
    Arial,
    sans-serif;
}
.stage {
  background: #191c18;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-height: 480px;
  view-transition-name: arena-stage;
  isolation: isolate;
}
.stage > div {
  padding: 28px 30px 20px;
}
.stage-eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: 8px var(--mono);
  letter-spacing: 0.1em;
  color: var(--muted);
}
.stage-count {
  font-size: 8px;
  white-space: nowrap;
}
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 34px 0 24px;
  gap: 25px;
}
.gallery-heading h1 {
  font-size: clamp(25px, 2.8vw, 44px);
  max-width: 580px;
  margin: 8px 0 0;
  line-height: 1.1;
}
.gallery-heading .eyebrow {
  font-size: 8px;
  color: #b7c0ab;
}
.page-count {
  color: var(--muted);
  font: 10px var(--mono);
  padding-bottom: 5px;
  white-space: nowrap;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 18px;
}
.entry {
  min-width: 0;
  position: relative;
}
.entry-art {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  position: relative;
  background: none;
  text-align: left;
  overflow: hidden;
  border-radius: 3px;
}
.cover {
  aspect-ratio: 1.5;
  position: relative;
  background: #272e24;
  overflow: hidden;
  border-radius: 3px;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: transform 0.55s var(--ease);
}
.entry-art:hover img {
  transform: scale(1.035);
}
.entry-open {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  z-index: 2;
  opacity: 0;
  transform: translateY(5px);
  transition: 0.2s;
}
.entry-art:hover .entry-open,
.entry-art:focus-visible .entry-open {
  opacity: 1;
  transform: none;
}
.cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--accent);
  background: #2a3424;
}
.cover-fallback > span {
  font: 9px var(--mono);
  letter-spacing: 0.1em;
}
.cover-fallback strong {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.cover-fallback small {
  font-size: 9px;
  color: var(--muted);
}
.entry-info {
  display: flex;
  align-items: start;
  gap: 9px;
  padding: 12px 0 0;
}
.entry-number {
  color: #8d9684;
  font: 9px var(--mono);
  padding: 3px 0;
}
.entry-info > div {
  min-width: 0;
  flex: 1;
}
.entry h3 {
  font-size: 12px;
  margin: 0 0 3px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.entry-info p {
  font-size: 9px;
  color: var(--muted);
  margin: 0;
}
.entry-info .icon-button {
  font-size: 16px;
  width: 25px;
  min-height: 24px;
  margin-top: -3px;
}
.scene-baseline {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 7px var(--mono);
  letter-spacing: 0.07em;
  color: #a1aa96;
}
.room-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  color: var(--muted);
  font-size: 10px;
}
.pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  font: 10px var(--mono);
}
.pagination .icon-button {
  font-size: 16px;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  min-height: 330px;
  padding: 40px;
  gap: 14px;
}
.empty-state h1 {
  font-size: 48px;
}
.empty-state h2 {
  font-size: 30px;
  margin: 0;
}
.empty-state p {
  color: var(--muted);
  max-width: 420px;
  line-height: 1.8;
  font-size: 13px;
  margin: 0;
}
.empty-asterisk {
  font-size: 66px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}
.empty-code {
  font: 30px var(--mono);
  letter-spacing: 0.16em;
  font-weight: 400;
  color: var(--accent);
}
.empty-state.small {
  min-height: 120px;
  padding: 20px;
}
.lobby-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 185px;
  gap: 45px;
  align-items: center;
  min-height: 430px;
}
.lobby-body h1 {
  font-size: clamp(36px, 4vw, 64px);
  margin: 15px 0 20px;
  max-width: 650px;
}
.brief {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 580px;
  white-space: pre-line;
}
.join-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 30px;
}
.join-stage > span {
  font: 8px var(--mono);
  letter-spacing: 0.15em;
  color: var(--muted);
}
.join-stage strong {
  font: 40px var(--mono);
  letter-spacing: 0.16em;
  color: var(--accent);
}
.qr-card {
  padding: 15px;
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink);
  transform: rotate(3deg);
}
.qr-card img {
  width: 100%;
}
.qr-card span {
  display: block;
  font-size: 9px;
  text-align: center;
  margin-top: 7px;
}
.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  min-height: 450px;
  padding: 34px 0;
}
.spotlight-close {
  float: right;
  margin: -8px 0 12px 16px;
  min-height: 40px;
}
.spotlight-scene:has(.spotlight-close) .stage-eyebrow {
  min-height: 32px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.spotlight-cover {
  aspect-ratio: 1.15;
  background: #11130f;
}
.spotlight-cover img {
  object-fit: contain;
}
.spotlight-caption h1 {
  font-size: clamp(32px, 4vw, 65px);
  margin: 20px 0;
}
.spotlight-caption p {
  color: var(--muted);
  font-size: 13px;
}
.anonymous-label {
  display: block;
  font: 8px var(--mono);
  color: var(--muted);
  letter-spacing: 0.12em;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 50px;
}
.spotlight-caption dl {
  font-size: 12px;
}
.voting-body {
  max-width: 680px;
  margin: auto;
  text-align: center;
  padding: 60px 20px 35px;
}
.voting-body h1 {
  font-size: clamp(40px, 5vw, 75px);
  margin: 20px 0;
}
.voting-body .brief {
  margin: 0 auto 30px;
}
.ballot-meter {
  max-width: 350px;
  margin: 30px auto;
}
.ballot-meter > strong {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.06em;
  color: var(--accent);
}
.ballot-meter > strong > span {
  font-size: 24px;
  color: var(--muted);
}
.meter-track {
  height: 3px;
  background: #3e4735;
  margin: 20px 0;
}
.meter-track > div {
  height: 100%;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.results-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin: 36px 0;
}
.results-heading h1 {
  font-size: clamp(32px, 3.6vw, 56px);
  max-width: 700px;
  margin: 10px 0 0;
}
.result-seal {
  font-size: 58px;
  color: var(--accent);
  line-height: 1;
}
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  min-height: 320px;
}
.podium-entry {
  flex: 1;
  max-width: 400px;
  min-width: 0;
  animation: podium-in 0.6s var(--ease) both;
}
.podium-entry.rank-1 {
  flex: 1.3;
}
.podium-entry.rank-1 .cover {
  aspect-ratio: 1.2;
}
.rank-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 0 0 12px;
  color: var(--muted);
}
.rank-top > span {
  font: 8px var(--mono);
  letter-spacing: 0.1em;
}
.rank-top strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.05em;
}
.rank-1 .rank-top {
  color: var(--accent);
}
.podium-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 15px;
}
.podium-caption h3 {
  font-size: 16px;
  margin: 0 0 3px;
}
.podium-caption p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.podium-caption > span {
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-align: right;
  color: var(--accent);
}
.podium-caption small {
  display: block;
  font: 7px var(--mono);
  margin-top: 5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.full-ranking {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.full-ranking .podium-entry {
  max-width: none;
}
.full-ranking .podium-entry .cover {
  aspect-ratio: 1.5;
}
.full-ranking .rank-top strong {
  font-size: 24px;
}
.participant-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 34px 0;
}
.participant-toolbar h1 {
  font-size: 32px;
  margin: 8px 0 0;
  max-width: 580px;
  line-height: 1.1;
}
.participant-actions {
  display: flex;
  gap: 12px;
}
.collection-heading {
  display: flex;
  justify-content: space-between;
  padding: 22px 0 15px;
  border-top: 1px solid var(--line);
}
.collection-brief {
  color: var(--muted);
  font-size: 14px;
  max-width: 780px;
  margin-bottom: 28px;
  white-space: pre-line;
}
.voting-notice {
  padding: 14px 18px;
  background: #283021;
  border: 1px solid #424f35;
  border-radius: 4px;
  color: var(--accent);
  margin-bottom: 25px;
  font-size: 13px;
}
.vote-button {
  border: 1px solid #4d5a3e;
  background: none;
  width: 100%;
  padding: 11px 13px;
  display: flex;
  justify-content: space-between;
  border-radius: 4px;
  font-size: 11px;
  margin-top: 13px;
}
.vote-button:not(:disabled):hover,
.vote-button.selected {
  background: var(--accent);
  color: var(--ink);
  opacity: 1;
}
.vote-button:disabled {
  opacity: 0.5;
}
.vote-button.selected:disabled {
  opacity: 1;
}
body[data-view="participant"] .arena-main {
  max-width: 1460px;
  margin: auto;
  padding-bottom: 30px;
}
body[data-view="participant"] .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px 25px;
}
body[data-view="participant"] .entry h3 {
  font-size: 16px;
}
body[data-view="participant"] .entry-info p {
  font-size: 11px;
}
body[data-view="participant"] .entry-info {
  padding-top: 15px;
}
body[data-view="participant"] .entry-number {
  font-size: 11px;
}
body[data-view="participant"] .stage {
  margin-bottom: 25px;
}
body[data-view="stage"] .topbar {
  height: 68px;
}
body[data-view="stage"] .session-label {
  display: none;
}
body[data-view="stage"] .arena-main {
  padding: 35px 4vw 0;
}
body[data-view="stage"] .stage {
  min-height: calc(100svh - 155px);
  border: 0;
  background: var(--ink);
}
body[data-view="stage"] .stage > div {
  padding: 0;
}
body[data-view="stage"] .stage-eyebrow {
  font-size: 12px;
}
body[data-view="stage"] .stage-count {
  font-size: 11px;
}
body[data-view="stage"] .gallery-heading {
  margin: 28px 0;
}
body[data-view="stage"] .gallery-heading h1 {
  font-size: clamp(32px, 3.4vw, 64px);
  max-width: 1200px;
}
body[data-view="stage"] .gallery-heading .eyebrow {
  font-size: 11px;
}
body[data-view="stage"] .gallery-grid {
  gap: 24px 30px;
}
body[data-view="stage"] .cover {
  aspect-ratio: 1.85;
}
body[data-view="stage"] .entry h3 {
  font-size: clamp(14px, 1.2vw, 23px);
}
body[data-view="stage"] .entry-info p {
  font-size: 12px;
}
body[data-view="stage"] .entry-number {
  font-size: 12px;
}
body[data-view="stage"] .scene-baseline {
  font-size: 10px;
}
body[data-view="stage"] .room-footer {
  display: none;
}
body[data-view="stage"] .lobby-body {
  min-height: calc(100svh - 260px);
  grid-template-columns: 1fr 260px;
  gap: 80px;
}
body[data-view="stage"] .lobby-body h1 {
  font-size: clamp(60px, 6vw, 110px);
  max-width: 1000px;
}
body[data-view="stage"] .brief {
  font-size: 21px;
  max-width: 900px;
}
body[data-view="stage"] .join-stage strong {
  font-size: 64px;
}
body[data-view="stage"] .qr-card span {
  font-size: 13px;
}
body[data-view="stage"] .spotlight-layout {
  min-height: calc(100svh - 190px);
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}
body[data-view="stage"] .spotlight-cover {
  aspect-ratio: 1.25;
  max-height: 74svh;
}
body[data-view="stage"] .spotlight-caption h1 {
  font-size: clamp(50px, 5vw, 95px);
}
body[data-view="stage"] .spotlight-caption p {
  font-size: 22px;
}
body[data-view="stage"] .spotlight-caption .eyebrow,
body[data-view="stage"] .spotlight-caption dl {
  font-size: 16px;
}
body[data-view="stage"] .voting-body {
  padding-top: 12vh;
  max-width: 1100px;
}
body[data-view="stage"] .voting-body h1 {
  font-size: clamp(60px, 6vw, 110px);
}
body[data-view="stage"] .ballot-meter {
  max-width: 500px;
}
body[data-view="stage"] .ballot-meter > strong {
  font-size: 80px;
}
body[data-view="stage"] .results-heading h1 {
  font-size: clamp(40px, 4.6vw, 80px);
  max-width: 1200px;
}
body[data-view="stage"] .podium {
  gap: 40px;
  min-height: 50svh;
}
body[data-view="stage"] .podium-entry {
  max-width: 600px;
}
body[data-view="stage"] .rank-top > span {
  font-size: 13px;
}
body[data-view="stage"] .rank-top strong {
  font-size: 52px;
}
body[data-view="stage"] .podium-caption h3 {
  font-size: 24px;
}
body[data-view="stage"] .podium-caption p {
  font-size: 15px;
}
body[data-view="stage"] .podium-caption > span {
  font-size: 40px;
}
body[data-view="stage"] .podium-caption small {
  font-size: 11px;
}
dialog {
  background: var(--surface);
  color: var(--paper);
  border: 1px solid #4c5542;
  border-radius: 12px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 90svh;
  box-shadow: 0 35px 100px #0008;
}
dialog::backdrop {
  background: #080b08c9;
  backdrop-filter: blur(7px);
}
.dialog-inner {
  padding: 35px;
  position: relative;
}
.close-dialog {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 25px;
  color: var(--muted);
}
dialog h2 {
  font-size: 32px;
  margin: 8px 20px 20px 0;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  margin: 18px 0;
}
input,
textarea {
  background: #10140f;
  color: var(--paper);
  border: 1px solid #46503c;
  border-radius: 4px;
  padding: 12px 13px;
  min-height: 44px;
  width: 100%;
  font-size: 14px;
  transition: border 0.2s;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #767e6e;
}
input:focus,
textarea:focus {
  border-color: var(--accent);
}
.form-note {
  font-size: 11px !important;
}
.form-error {
  color: #efb3a5 !important;
  min-height: 5px;
  margin: 12px 0;
}
.upload-field {
  padding: 16px;
  border: 1px dashed #56604a;
  border-radius: 5px;
}
.upload-field input {
  padding: 5px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  min-height: 25px;
}
.upload-field small {
  font-size: 10px;
}
.share-room {
  padding: 20px;
  background: var(--paper);
  border-radius: 8px;
  color: var(--ink);
  text-align: center;
  margin: 25px 0;
}
.share-room img {
  width: 160px;
  margin: auto;
}
.share-room strong {
  display: block;
  font: 38px var(--mono);
  letter-spacing: 0.14em;
  margin: 15px 0 5px;
}
.detail-preview {
  margin: 20px 0;
}
.detail-preview .cover {
  aspect-ratio: 1.3;
  background: #10130f;
}
.detail-preview .cover img {
  object-fit: contain;
}
.detail-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 20px 0;
}
dl {
  font-size: 13px;
  margin: 25px 0;
}
dt {
  font: 10px var(--mono);
  color: var(--muted);
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
dd {
  margin: 6px 0 15px;
  overflow-wrap: anywhere;
}
.roster > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.roster small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.roster strong {
  font-size: 13px;
  font-weight: 500;
}
.history-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.history-item h3 {
  font-size: 18px;
}
.settings-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.danger {
  color: #efb3a5;
}
.danger-button {
  background: #713b30;
  color: #fff;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--accent);
  color: var(--ink);
  padding: 14px 22px;
  border-radius: 6px;
  box-shadow: 0 8px 30px #0005;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  font-size: 13px;
  max-width: calc(100vw - 30px);
  width: max-content;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 420px;
  color: var(--muted);
  gap: 20px;
}
.spinner {
  display: block;
  border: 2px solid #434e36;
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 0.8s linear infinite;
}
::view-transition-old(arena-stage) {
  animation: fade-out 0.2s ease both;
}
::view-transition-new(arena-stage) {
  animation: stage-in 0.45s var(--ease) both;
}
::view-transition-group(arena-stage) {
  animation-duration: 0.45s;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes podium-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1700px) {
  .host-workspace {
    grid-template-columns: 295px minmax(0, 1fr);
  }
  .console {
    padding: 35px 28px;
  }
  .arena-main {
    padding: 0 48px;
  }
  .stage > div {
    padding: 38px 42px 25px;
  }
  .gallery-heading {
    margin: 40px 0 32px;
  }
  .entry h3 {
    font-size: 16px;
  }
  .entry-info p {
    font-size: 11px;
  }
  .stage .gallery-grid {
    gap: 32px 25px;
  }
  .stage-eyebrow,
  .stage-count {
    font-size: 10px;
  }
  .console-section {
    padding: 27px 0 22px;
  }
  .console-button {
    font-size: 13px;
  }
  .stage .scene-baseline {
    font-size: 9px;
  }
}
@media (max-width: 1100px) {
  .edition {
    display: none;
  }
  .topbar {
    padding: 0 24px;
    gap: 20px;
  }
  .session-label {
    display: none;
  }
  .host-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .console {
    padding: 25px 18px;
  }
  .arena-main {
    padding: 0 22px;
  }
  .stage > div {
    padding: 22px;
  }
  .toolbar-muted {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stage .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .lobby-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }
  .qr-card {
    width: 130px;
    display: none;
  }
  .spotlight-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .spotlight-cover {
    aspect-ratio: 1.6;
  }
  .spotlight-caption h1 {
    font-size: 36px;
    margin: 15px 0;
  }
  .spotlight-caption .anonymous-label {
    margin-top: 15px;
  }
  .landing {
    gap: 25px;
    padding-top: 65px;
  }
  .art-stack {
    height: 340px;
  }
  .landing h1 {
    font-size: 60px;
  }
  .participant-toolbar {
    align-items: start;
  }
  .participant-actions {
    flex-direction: column;
  }
  .scene-baseline {
    font-size: 6px;
  }
  .header-right {
    gap: 14px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 68px;
    padding: 0 18px;
    gap: 12px;
  }
  .brand {
    font-size: 14px;
    gap: 8px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .header-right {
    gap: 9px;
  }
  .connection {
    font-size: 0;
  }
  .connection i {
    width: 6px;
    height: 6px;
    margin: 0;
  }
  .code-pill {
    font-size: 10px;
    padding: 8px;
  }
  .header-right .icon-button {
    width: 25px;
    font-size: 18px;
  }
  .landing {
    display: block;
    padding: 50px 24px 25px;
    min-height: 0;
  }
  .landing h1 {
    font-size: clamp(45px, 9vw, 68px);
  }
  .landing-intro > .eyebrow {
    font-size: 8px;
    letter-spacing: 0.06em;
    margin-bottom: 25px;
  }
  .landing-intro > p {
    font-size: 14px;
    max-width: 360px;
  }
  .landing-actions {
    gap: 10px;
    margin: 25px 0;
  }
  .landing-actions .button {
    gap: 15px;
    font-size: 12px;
    padding: 12px 14px;
  }
  .join-inline {
    margin-top: 25px;
    gap: 15px;
  }
  .landing-art {
    max-width: 470px;
    margin: 45px auto 0;
  }
  .art-stack {
    height: 320px;
    margin: 25px 0 0;
  }
  .art-label {
    font-size: 8px;
  }
  .art-caption {
    margin-top: -5px;
  }
  .landing-footer {
    padding: 22px 24px;
    gap: 20px;
    font-size: 8px;
    line-height: 1.7;
  }
  .landing-footer > span:last-child {
    display: none;
  }
  .landing-nav .text-button {
    font-size: 10px;
  }
  .host-workspace {
    display: flex;
    flex-direction: column;
  }
  .console {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 22px;
    padding: 22px 18px;
  }
  .console-heading {
    display: none;
  }
  .control-status {
    grid-column: 1/-1;
    padding: 0 0 12px;
  }
  .console-section {
    padding: 0 0 12px;
  }
  .console-section:nth-of-type(3) {
    grid-column: 1/-1;
  }
  .console-bottom {
    padding-top: 0;
  }
  .console-heading + .control-status {
    margin: 0;
  }
  .section-label {
    font-size: 8px;
  }
  .console-button {
    font-size: 11px;
    padding: 10px 0;
  }
  .console .control-hint {
    font-size: 9px;
  }
  .arena-main {
    padding: 0 16px;
    width: 100%;
  }
  .room-toolbar {
    height: 62px;
    gap: 10px;
  }
  .stage {
    min-height: 360px;
  }
  .stage > div {
    padding: 18px;
  }
  .stage-eyebrow {
    font-size: 6px;
    gap: 10px;
  }
  .stage-count {
    font-size: 6px;
  }
  .stage-count .dot-separator {
    margin: 0 4px;
  }
  .gallery-heading {
    margin: 28px 0 20px;
    gap: 12px;
  }
  .gallery-heading h1 {
    font-size: 29px;
    line-height: 1.05;
  }
  .page-count {
    font-size: 8px;
  }
  .stage .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .entry h3 {
    font-size: 11px;
  }
  .entry-info p {
    font-size: 8px;
  }
  .entry-number {
    font-size: 8px;
  }
  .entry-info {
    gap: 6px;
    padding-top: 8px;
  }
  .scene-baseline {
    font-size: 6px;
    line-height: 1.5;
    margin-top: 25px;
  }
  .scene-baseline span {
    max-width: 55%;
  }
  .scene-baseline span:last-child {
    text-align: right;
  }
  .stage .empty-state {
    padding: 30px 0;
    min-height: 280px;
  }
  .empty-state h2 {
    font-size: 24px;
  }
  .empty-state h1 {
    font-size: 36px;
  }
  .empty-state p {
    font-size: 12px;
  }
  .lobby-body {
    min-height: 370px;
  }
  .lobby-body h1 {
    font-size: 40px;
  }
  .brief {
    font-size: 12px;
  }
  .join-stage strong {
    font-size: 32px;
  }
  .spotlight-layout {
    padding: 25px 0 10px;
    min-height: 0;
  }
  .spotlight-cover {
    aspect-ratio: 1.2;
  }
  .spotlight-caption h1 {
    font-size: 38px;
  }
  .spotlight-caption .eyebrow {
    font-size: 8px;
  }
  .voting-body {
    padding: 35px 0 20px;
  }
  .voting-body h1 {
    font-size: 38px;
  }
  .ballot-meter > strong {
    font-size: 42px;
  }
  .results-heading {
    margin: 25px 0;
  }
  .results-heading h1 {
    font-size: 32px;
  }
  .result-seal {
    font-size: 35px;
  }
  .podium {
    gap: 15px;
    min-height: 200px;
    flex-wrap: wrap;
    align-items: start;
  }
  .podium-entry {
    min-width: calc(50% - 10px);
  }
  .podium-entry.rank-1 {
    flex-basis: 100%;
  }
  .podium-caption h3 {
    font-size: 12px;
  }
  .podium-caption p {
    font-size: 8px;
  }
  .rank-top > span {
    font-size: 7px;
  }
  .rank-top strong {
    font-size: 26px;
  }
  .full-ranking {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .full-ranking .podium-entry {
    min-width: 0;
  }
  .full-ranking .podium-entry.rank-1 {
    grid-column: 1/-1;
  }
  .participant-toolbar {
    flex-direction: column;
    padding: 25px 0;
    gap: 20px;
  }
  .participant-toolbar h1 {
    font-size: 32px;
  }
  .participant-actions {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .participant-actions .segmented button {
    font-size: 10px;
    padding: 8px;
  }
  .participant-actions .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  body[data-view="participant"] .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 14px;
  }
  body[data-view="participant"] .entry h3 {
    font-size: 12px;
  }
  body[data-view="participant"] .entry-info p {
    font-size: 9px;
  }
  body[data-view="participant"] .entry-number {
    font-size: 9px;
  }
  .vote-button {
    font-size: 9px;
    padding: 9px;
  }
  .collection-brief {
    font-size: 12px;
  }
  .dialog-inner {
    padding: 26px 22px;
  }
  dialog h2 {
    font-size: 29px;
  }
  .roster .pill {
    font-size: 7px;
  }
  .detail-meta {
    font-size: 11px;
  }
  .cover-fallback {
    padding: 12px;
  }
  .cover-fallback strong {
    font-size: 18px;
  }
  .cover-fallback small {
    font-size: 8px;
  }
}
/* Projector framing is height-aware: artwork remains completely visible. */
.cover img ~ .cover-fallback {
  visibility: hidden;
}
.cover.failed .cover-fallback {
  visibility: visible;
}
.podium .cover img {
  object-fit: contain;
}
.podium:not(.full-ranking) .rank-1 {
  order: 2;
}
.podium:not(.full-ranking) .rank-2 {
  order: 1;
}
.podium:not(.full-ranking) .rank-3 {
  order: 3;
}
@media (min-width: 761px) {
  body[data-view="stage"] .results-heading {
    margin: 24px 0;
  }
  body[data-view="stage"] .podium {
    min-height: 0;
    --podium-cover-height: clamp(160px, calc(100svh - 480px), 440px);
  }
  body[data-view="stage"] .podium .cover {
    aspect-ratio: auto;
    height: calc(var(--podium-cover-height) * 0.72);
  }
  body[data-view="stage"] .podium .rank-1 .cover {
    height: var(--podium-cover-height);
  }
  body[data-view="stage"] .podium.full-ranking .cover {
    height: clamp(100px, calc((100svh - 500px) / 2), 270px);
  }
  body[data-view="stage"] .podium.full-ranking .rank-top strong {
    font-size: 28px;
  }
  body[data-view="stage"] .podium.full-ranking .podium-caption h3 {
    font-size: 17px;
  }
  body[data-view="stage"] .podium.full-ranking .podium-caption > span {
    font-size: 25px;
  }
}
@media (min-width: 761px) {
  body[data-view="stage"] .gallery-scene .cover {
    aspect-ratio: auto;
    height: clamp(125px, calc((100svh - 500px) / 2), 290px);
    background: #1b1f18;
  }
  body[data-view="stage"] .gallery-scene .cover img {
    object-fit: contain;
  }
  body[data-view="stage"] .gallery-heading h1 {
    font-size: clamp(30px, 3vw, 56px);
  }
  body[data-view="stage"] .gallery-heading {
    margin: 23px 0;
  }
  body[data-view="stage"] .gallery-grid {
    gap: 22px 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
.account-layout {
  max-width: 1240px;
  margin: 70px auto;
  padding: 0 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 90px;
  align-items: start;
}
.account-intro h1,
.account-heading h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 400;
  margin: 24px 0;
}
.account-intro h1 em,
.account-heading h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.account-intro > p {
  max-width: 440px;
  line-height: 1.7;
  font-size: 18px;
}
.account-intro .form-note {
  font-size: 14px;
  margin-top: 48px;
}
.account-panel {
  border: 1px solid #41453d;
  background: #1c201b;
  padding: 38px;
  border-radius: 16px;
  box-shadow: 0 24px 80px #0002;
}
.account-panel h2 {
  font-size: 32px;
  font-weight: 400;
  margin: 20px 0;
}
.account-panel [role="status"] {
  line-height: 1.6;
  min-height: 50px;
  color: #c4c9bf;
}
.account-panel form {
  display: grid;
  gap: 18px;
}
.auth-divider {
  text-align: center;
  color: #a8afa4;
  font-size: 12px;
  margin: 24px 0;
}
.auth-options {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 24px;
}
.account-panel .full {
  margin-top: 12px;
}
.account-home {
  max-width: 1340px;
  margin: 64px auto;
  padding: 0 40px;
}
.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.account-heading p {
  color: #b7beb0;
  line-height: 1.6;
}
.room-search {
  display: block;
  max-width: 440px;
  margin: 42px 0 28px;
}
.room-search input {
  margin-top: 10px;
}
.room-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.library-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 28px;
  color: inherit;
  text-decoration: none;
  border: 1px solid #41453d;
  border-radius: 12px;
  background: #1c201b;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}
.library-card:hover {
  transform: translateY(-4px);
  border-color: #b6ce79;
  background: #242a20;
}
.library-card .eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.library-card h2 {
  font-size: 28px;
  font-weight: 400;
  overflow-wrap: anywhere;
  line-height: 1.15;
  margin: 28px 0 16px;
}
.library-card p,
.library-card footer {
  font-size: 13px;
  color: #b7beb0;
  line-height: 1.6;
}
.library-card footer {
  margin-top: auto;
  padding-top: 20px;
}
.account-footer {
  margin: 46px 0;
  border-top: 1px solid #41453d;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  color: #b7beb0;
  font-size: 14px;
  line-height: 1.6;
}
.account-footer p {
  max-width: 540px;
}
.account-footer > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: start;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .account-layout {
    gap: 40px;
    grid-template-columns: 1fr 1fr;
  }
  .room-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-panel {
    padding: 26px;
  }
}
@media (max-width: 640px) {
  .account-layout {
    grid-template-columns: 1fr;
    margin: 36px auto;
    padding: 0 20px;
    gap: 28px;
  }
  .account-intro .form-note {
    margin-top: 20px;
  }
  .account-home {
    padding: 0 20px;
    margin-top: 36px;
  }
  .account-heading,
  .account-footer {
    align-items: start;
    flex-direction: column;
  }
  .room-library {
    grid-template-columns: 1fr;
  }
  .account-heading h1 {
    margin: 20px 0;
  }
  .landing-nav .header-right {
    gap: 10px;
  }
  .landing-nav #rehearse-nav {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .library-card {
    transition: none;
  }
  .library-card:hover {
    transform: none;
  }
}
/* Room access controls share the studio's quiet, card-based visual language. */
.access-panel { padding: 20px; margin: 18px 0; border: 1px solid var(--line, #ddd); border-radius: 14px; }
.access-panel .button + .button { margin-top: 10px; }
.roster > div { gap: 12px; }
.roster > div > span { min-width: 0; overflow-wrap: anywhere; }
.roster .button { flex-shrink: 0; }

/* Media controls retain the studio's compact editorial rhythm. */
.media-policy, .edit-policy { border: 1px solid var(--line); border-radius: 8px; margin: 24px 0 8px; padding: 16px; min-width: 0; }
.media-policy legend, .edit-policy legend { font-size: 14px; padding: 0 8px; }
.edit-allowance-note { flex-basis: 100%; text-align: right; color: var(--muted); font-size: 11px; line-height: 1.5; }
.media-policy:disabled { opacity: .7; }
.policy-options { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.policy-options label { display: flex; flex-direction: row; align-items: center; gap: 7px; margin: 0; }
.policy-options input, .example-choice input { width: 16px; height: 16px; accent-color: var(--accent); }
select { width: 100%; padding: 12px; background: var(--bg, #171c16); color: var(--paper); border: 1px solid #4c5542; border-radius: 6px; font: inherit; }
dialog:has(.example-picker) { max-width: 1000px; }
.example-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.example-choice { position: relative; display: block; padding: 10px; border: 1px solid #4c5542; border-radius: 8px; cursor: pointer; margin: 0; min-width: 0; }
.example-choice:has(:checked) { border-color: var(--accent); background: #c5f0780b; }
.example-choice input { position: absolute; top: 16px; right: 16px; }
.example-choice img { display: block; width: 100%; height: 150px; object-fit: contain; background: #10130f; border-radius: 4px; margin-bottom: 12px; }
.example-choice strong, .example-choice small { display: block; }
.example-choice p { font-size: 11px; line-height: 1.5; margin-bottom: 0; }
.example-choice small { color: var(--muted); margin-top: 5px; }
.reference-list { display: grid; gap: 18px; margin: 20px 0; }
.reference-item { border: 1px solid #4c5542; padding: 14px; border-radius: 8px; min-width: 0; overflow-wrap: anywhere; }
.reference-item h3 { margin: 8px 0; }
.reference-cover { aspect-ratio: 1.5; margin-bottom: 14px; }
.reference-cover img, .composition-cover img, .spotlight-cover img { object-fit: contain; }
.resource-brief, .reference-caption { white-space: pre-wrap; overflow-wrap: anywhere; }
.participant-actions { flex-wrap: wrap; }
.detail-meta { gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .example-picker { grid-template-columns: 1fr; }
  .example-choice img { max-height: 190px; }
  .participant-actions { width: 100%; }
  .reference-item { padding: 12px; }
}
