:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #62646a;
  --line: #d9d4cc;
  --paper: #f6f4f0;
  --panel: #ffffff;
  --stage: #080808;
  --wine: #9f1f34;
  --teal: #1e6666;
  --gold: #b78b34;
  --success: #237a4b;
  --warning: #a76512;
  --danger: #ad2d2d;
  --shadow: 0 16px 42px rgba(24, 20, 16, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid #e7e2d9;
  background: #fff;
  color: var(--stage);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand p,
.brand strong {
  display: block;
  margin: 0;
  line-height: 1.08;
}

.brand p {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand strong {
  font-size: 1.12rem;
}

.site-logo {
  width: 164px;
  max-width: 38vw;
  height: auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.production-switcher {
  display: flex;
  align-items: flex-end;
  min-width: 260px;
  gap: 10px;
  margin-left: auto;
}

.production-select {
  display: grid;
  min-width: 220px;
  gap: 5px;
}

.production-switcher label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.production-switcher select {
  min-height: 38px;
  border: 1px solid #d7d0c6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font-weight: 760;
}

.compact-button {
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
}

body.is-admin-locked .tabs {
  display: none;
}

body.is-admin-locked .topbar {
  justify-content: flex-start;
}

.tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #ded8cf;
  border-radius: 8px;
  background: #fff;
  color: #26221d;
}

.tab.active {
  border-color: var(--stage);
  background: var(--stage);
  color: #fff;
}

.tab.has-unread {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(159, 31, 52, 0.14);
}

.tab-alert {
  display: inline-flex;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 850;
  animation: blink-alert 1s steps(2, start) infinite;
}

.tab.active .tab-alert {
  background: #fff;
  color: var(--wine);
}

.app {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: start;
}

.hero-media {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 16, 15, 0.15), rgba(18, 16, 15, 0.78)),
    #211715;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
}

.hero-media img.hero-logo {
  height: clamp(220px, 24vw, 310px);
  max-height: none;
  object-fit: contain;
  padding: 22px 28px 8px;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: block;
}

.hero-media img.hero-image {
  width: 100%;
  height: auto;
  max-height: clamp(118px, 14vw, 170px);
  object-fit: contain;
  padding: 20px 28px 10px;
  background: transparent;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: block;
}

.production-mark {
  width: min(320px, 100%);
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 22px;
}

.hero-copy {
  padding: 16px 30px 28px;
}
.hero-copy h1 {
  max-width: 100%;
  font-size: clamp(2.2rem, 3.8vw, 3.7rem);
}

.hero-copy .meta-strip {
  margin: 14px 0;
}

.hero-copy .meta-strip span {
  padding: 12px;
}

.hero-copy .lede {
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  line-height: 1.55;
}

.lede {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.lede-dark {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.public-complete {
  display: grid;
  min-height: calc(100vh - 160px);
  place-items: center;
}

.public-complete .surface {
  max-width: 760px;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.meta-strip span {
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.meta-strip strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.production-banner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.production-banner img {
  width: 100%;
  max-height: 96px;
  object-fit: contain;
  border-radius: 6px;
  background: #f7f3ec;
  padding: 10px;
}

.production-banner p {
  margin: 6px 0 0;
  color: var(--muted);
}

.production-banner h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-surface {
  padding: clamp(20px, 3vw, 32px);
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field legend,
.label {
  color: #2c2c2c;
  font-size: 0.88rem;
  font-weight: 760;
}

.field input,
.field textarea,
.field select,
.compact-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfc8bc;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
}

.compact-select {
  width: auto;
  min-width: 160px;
}

.field textarea {
  min-height: 98px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.compact-input:focus {
  outline: 3px solid rgba(30, 102, 102, 0.18);
  border-color: var(--teal);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d6d0c7;
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--wine);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 15px;
  background: var(--stage);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
}

.button.secondary {
  border-color: #c9c1b6;
  background: #fff;
  color: var(--ink);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--teal);
}

.button.danger {
  background: var(--danger);
}

.button.success {
  background: var(--success);
}

.button.warning {
  background: var(--warning);
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 92px);
  place-items: center;
  padding: clamp(28px, 6vw, 76px) 18px;
}

.auth-card {
  width: min(520px, 100%);
  padding: clamp(24px, 4vw, 34px);
}

.form-error {
  display: block;
  margin-top: 8px;
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 760;
}

.call-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 84px;
}

.admin-main {
  min-width: 0;
}

body.is-panel-view .app {
  width: min(1760px, calc(100% - 32px));
}

.admin-workspace.admin-view-panel {
  grid-template-columns: minmax(0, 1fr);
}

.admin-workspace.admin-view-panel .layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: stretch;
}

.admin-workspace.admin-view-panel .split {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}

.admin-workspace.admin-view-panel .detail-panel {
  padding: 22px;
}

.admin-workspace.admin-view-panel .list-panel {
  min-height: calc(100vh - 238px);
}

.admin-workspace.admin-view-panel .candidate-list {
  max-height: min(252vh, 2940px);
}

.admin-workspace.admin-view-panel .field label,
.admin-workspace.admin-view-panel .field legend,
.admin-workspace.admin-view-panel .label {
  font-size: 0.95rem;
}

.admin-workspace.admin-view-panel .field input,
.admin-workspace.admin-view-panel .field textarea,
.admin-workspace.admin-view-panel .field select {
  min-height: 48px;
  border-color: #bcb3a6;
  font-size: 1rem;
  line-height: 1.45;
}

.admin-workspace.admin-view-panel .field textarea {
  min-height: 130px;
}

.admin-workspace.admin-view-panel #generalNotes,
.admin-workspace.admin-view-panel #stationNotes {
  min-height: 160px;
}

.admin-workspace.admin-view-panel .score-box input {
  min-height: 36px;
  font-size: 1rem;
}

.admin-workspace.admin-view-panel .video-panel {
  position: sticky;
  top: 92px;
  align-self: start;
}

.admin-workspace.admin-view-panel .record-state {
  align-items: flex-start;
  flex-direction: column;
}

.admin-workspace.admin-view-checkin .checkin-grid {
  grid-template-columns: minmax(0, 1fr);
}

.admin-workspace.admin-view-checkin .checkin-roster {
  width: 100%;
}

.checkin-identity {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
}

.checkin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.checkin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkin-roster {
  min-width: 0;
  padding: 16px;
}

.checkin-filters {
  grid-template-columns: 260px 280px minmax(260px, 1fr);
}

.checkin-table {
  min-width: 1040px;
}

.checkin-table td {
  font-size: 0.92rem;
  vertical-align: top;
}

.checkin-table td:nth-child(3) {
  width: 150px;
}

.checkin-table td:nth-child(4) {
  width: 240px;
}

.checkin-table td:nth-child(5) {
  min-width: 260px;
}

.checkin-table td:nth-child(6) {
  min-width: 210px;
}

.checkin-table td .muted {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
}

.checkin-table tr.is-checked-in td {
  background: rgba(35, 122, 75, 0.06);
}

.checkin-comment {
  width: 220px;
  min-height: 76px;
  border: 1px solid #cfc8bc;
  border-radius: 6px;
  padding: 8px;
  resize: vertical;
}

.checkin-table [data-checkin-slot] {
  width: 100%;
  max-width: 260px;
  margin-top: 8px;
}

.stack-actions {
  display: grid;
  gap: 8px;
}

.link-surface {
  margin-bottom: 16px;
  padding: 14px 16px;
}

.link-surface p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.chat-panel {
  position: sticky;
  top: 92px;
  padding: 16px;
}

.admin-global-chat {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 18px;
  top: auto;
  z-index: 48;
  width: min(380px, calc(100vw - 36px));
  max-height: calc(100vh - 128px);
  overflow: hidden;
  align-self: auto;
  padding: 0;
  box-shadow: var(--shadow);
}

.admin-global-chat:not([open]) {
  width: min(310px, calc(100vw - 36px));
}

.chat-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.chat-summary::-webkit-details-marker {
  display: none;
}

.chat-summary strong,
.chat-summary small {
  display: block;
}

.chat-summary strong {
  font-size: 0.98rem;
}

.chat-summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 206px);
  overflow: hidden;
  padding: 0 16px 16px;
}

.admin-global-chat .chat-body-title {
  display: none;
}

.admin-global-chat .chat-log {
  max-height: none;
}

.chat-indicator {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(35, 122, 75, 0.12);
  color: var(--success);
  font-weight: 900;
}

.chat-indicator.is-alert {
  background: var(--wine);
  color: #fff;
  animation: blink-alert 0.85s steps(2, start) infinite;
}

.chat-log {
  display: grid;
  flex: 1 1 auto;
  min-height: 150px;
  max-height: 460px;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.chat-message {
  border: 1px solid #e1d9ce;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.chat-message.mine {
  border-color: rgba(30, 102, 102, 0.28);
  background: rgba(30, 102, 102, 0.07);
}

.chat-message div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-message p {
  margin: 8px 0;
  white-space: pre-wrap;
}

.chat-message small {
  color: var(--muted);
}

.chat-form {
  display: grid;
  gap: 10px;
}

.chat-controls {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
}

.chat-form textarea {
  min-height: 74px;
  border: 1px solid #cfc8bc;
  border-radius: 6px;
  padding: 10px 11px;
  resize: vertical;
}

.full-width {
  width: 100%;
}

.mt-xs {
  margin-top: 8px;
}

@keyframes blink-alert {
  50% {
    opacity: 0.22;
  }
}

.layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.stat small {
  color: var(--muted);
  font-weight: 750;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.list-panel {
  min-height: 580px;
  padding: 14px;
}

.candidate-list {
  display: grid;
  gap: 5px;
  max-height: min(84vh, 980px);
  overflow: auto;
  padding-right: 4px;
}

.candidate-card {
  position: relative;
  width: 100%;
  border: 1px solid #ddd6cc;
  border-radius: 6px;
  background: #fff;
  padding: 7px 8px;
  text-align: left;
}

.candidate-no {
  display: inline-flex;
  min-width: 48px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--stage);
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 850;
}

.candidate-card.active {
  border-color: var(--wine);
  box-shadow: inset 4px 0 0 var(--wine);
}

.candidate-card strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-card-sub,
.candidate-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.candidate-card-top,
.candidate-card-sub {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.candidate-card-sub {
  justify-content: space-between;
  margin-top: 5px;
  white-space: nowrap;
}

.candidate-card-sub .is-checked {
  color: var(--success);
  font-weight: 850;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  border: 1px solid #ded8ce;
  border-radius: 999px;
  background: #f8f5ef;
  color: #3b3935;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 760;
}

.pill.green {
  border-color: rgba(35, 122, 75, 0.3);
  background: rgba(35, 122, 75, 0.1);
  color: var(--success);
}

.pill.red {
  border-color: rgba(173, 45, 45, 0.24);
  background: rgba(173, 45, 45, 0.08);
  color: var(--danger);
}

.pill.gold {
  border-color: rgba(183, 139, 52, 0.34);
  background: rgba(183, 139, 52, 0.12);
  color: #765715;
}

.mini-button {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-action {
  min-height: 30px;
  border: 1px solid #d8d1c6;
  border-radius: 999px;
  background: #fff;
  color: var(--stage);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.inline-number {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 6px;
  background: var(--stage);
  color: #fff;
  padding: 0 10px;
  font-size: 1rem;
  vertical-align: middle;
}

.detail-panel {
  padding: clamp(18px, 2.5vw, 28px);
}

.candidate-detail-header {
  position: sticky;
  top: 92px;
  z-index: 14;
  margin: -4px 0 14px;
  border-bottom: 1px solid #e5ded4;
  background: rgba(250, 247, 241, 0.96);
  padding: 10px 0 12px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.candidate-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.nav-arrow {
  min-width: 34px;
  padding: 0;
  font-size: 1.05rem;
}

.nav-arrow:disabled {
  opacity: 0.38;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 20px;
}

.assessment-form {
  margin: -2px 0 20px;
}

.assessment-notes {
  margin-bottom: 16px;
}

.info-item {
  border: 1px solid #e2dcd3;
  border-radius: 8px;
  background: #fffcf8;
  padding: 10px;
}

.info-item small {
  display: block;
  color: var(--muted);
  font-weight: 760;
}

.info-item span {
  overflow-wrap: anywhere;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.link-list a {
  border: 1px solid #d8d1c6;
  border-radius: 999px;
  color: var(--teal);
  padding: 3px 8px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(60px, 72px));
  gap: 7px;
  justify-content: start;
}

.assessment-score-grid {
  margin-bottom: 16px;
}

.score-box {
  border: 1px solid #d9d2c8;
  border-radius: 6px;
  padding: 7px;
  background: #fff;
  max-width: 72px;
  min-width: 0;
}

.score-box label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.score-box label span:last-child {
  display: none;
}

.score-box input {
  width: 54px;
  max-width: 100%;
  min-height: 36px;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.video-panel {
  border: 1px solid #ded7cc;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.record-preview,
.saved-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #111;
  object-fit: cover;
}

.record-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #a8a8a8;
}

.dot.live {
  background: var(--danger);
}

.video-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.video-item {
  border-top: 1px solid #e5ded4;
  padding-top: 12px;
}

.embedded-form {
  box-shadow: none;
  padding: 16px;
}

.station-list,
.mail-log,
.dance-list {
  display: grid;
  gap: 10px;
}

.station-card,
.communication-item,
.dance-card {
  border: 1px solid #e1d9ce;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.station-card strong,
.communication-item strong {
  display: block;
}

.station-card p,
.communication-item p {
  margin: 10px 0 0;
  white-space: pre-wrap;
}

.slim-actions {
  margin-top: 12px;
}

.compact-empty {
  min-height: 96px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  border-bottom: 1px solid #e4ddd3;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3efe8;
  color: #3d3934;
  font-size: 0.82rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.role-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.config-logo {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.config-logo img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  border: 1px solid #e2dbd1;
  border-radius: 8px;
  background: #f7f3ec;
  padding: 16px;
}

.dance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
  align-items: start;
}

.dance-recorder {
  margin-bottom: 18px;
  padding: 16px;
}

.dance-roster {
  margin-bottom: 18px;
  padding: 16px;
}

.dance-record-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}

.recording-selection {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px dashed #cfc7bc;
  border-radius: 8px;
  background: #fffcf8;
  padding: 9px;
}

.selection-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8d1c6;
  border-radius: 999px;
  background: #fff;
  padding: 4px 6px 4px 10px;
  font-size: 0.86rem;
  font-weight: 760;
}

.selection-chip button {
  border: 0;
  border-radius: 999px;
  background: #f1ece3;
  color: var(--stage);
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 820;
}

.dance-column {
  min-height: 420px;
  padding: 14px;
}

.dance-card .candidate-card {
  border-color: transparent;
  background: #fbfaf7;
}

.side-form {
  padding: 18px;
}

.empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed #cfc7bc;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.export-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.export-tile p {
  min-height: 52px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: 8px;
  background: var(--stage);
  color: #fff;
  padding: 13px 15px;
  box-shadow: var(--shadow);
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.mt {
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .hero,
  .layout,
  .split,
  .role-grid,
  .config-grid,
  .call-grid,
  .admin-workspace,
  .checkin-grid,
  .dance-grid,
  .dance-record-layout,
  .production-banner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    justify-content: flex-start;
    width: 100%;
  }

  .production-switcher {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
  }

  .production-select {
    width: 100%;
  }

  .tab {
    flex: 1 1 calc(50% - 8px);
  }

  .form-grid,
  .checkin-filters,
  .choice-grid,
  .language-grid,
  .stats,
  .checkin-stats,
  .score-grid,
  .info-grid,
  .export-grid,
  .meta-strip {
    grid-template-columns: 1fr;
  }

  .checkin-identity {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    position: static;
  }

  .admin-global-chat.chat-panel {
    position: fixed;
    left: 10px;
    right: auto;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    order: 0;
  }

  .admin-global-chat .chat-body {
    max-height: calc(100vh - 112px);
  }

  .hero-media img.hero-logo {
  height: clamp(220px, 24vw, 310px);
  max-height: none;
  object-fit: contain;
  padding: 22px 28px 8px;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: block;
}

  .hero-media img.hero-image {
  width: 100%;
  height: auto;
  max-height: clamp(118px, 14vw, 170px);
  object-fit: contain;
  padding: 20px 28px 10px;
  background: transparent;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: block;
}

  .config-logo {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 16px 20px 22px;
  }

  h1 {
    font-size: 2.55rem;
  }
}
