:root {
  color-scheme: dark;
  --bg: #111313;
  --panel: #1c2220;
  --text: #f3f4ef;
  --muted: #b7beb7;
  --line: #37413d;
  --accent: #e4c15b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 32px;
}

.host-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

label {
  color: var(--text);
  font-weight: 700;
}

input,
select,
button {
  min-height: 48px;
  border-radius: 8px;
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #121815;
  color: var(--text);
  padding: 10px 12px;
}

button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.primary-action {
  margin-top: 8px;
  background: var(--accent);
  color: #1b1b16;
  padding: 12px 16px;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 14px;
  text-decoration: none;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--accent);
  color: #1b1b16;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
}

.notice {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.notice-error {
  border-left-color: #e67c73;
  color: #ffd3cd;
}

.field-help {
  margin: -4px 0 0;
  font-size: 14px;
}

.confirmed-value {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.next-step {
  margin-top: 24px;
  border: 1px solid var(--line);
  padding: 16px;
}

.next-step p {
  margin: 0;
}

.role-recommendation,
.recommendation-unavailable,
.role-deck-confirmed,
.deck-stale,
.manual-deck,
.role-assignments,
.role-assignments-confirmed,
.role-assignments-stale {
  margin-top: 24px;
  border: 1px solid var(--line);
  padding: 16px;
}

.role-recommendation h2,
.recommendation-unavailable h2,
.role-deck-confirmed h2,
.role-assignments h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.deck-confirmation-form {
  margin-top: 16px;
}

.deck-confirmation-form .primary-action {
  width: 100%;
}

.manual-deck {
  margin-top: 16px;
}

.manual-deck summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.manual-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.manual-role-grid label {
  display: grid;
  gap: 6px;
}

.status-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
}

.deck-stale {
  border-left: 3px solid var(--accent);
}

.scenario-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 700;
}

.recommendation-variants {
  display: grid;
  gap: 12px;
}

.recommendation-variant {
  border: 1px solid var(--line);
  padding: 14px;
}

.recommendation-variant h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.role-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
}

.role-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.role-list strong {
  flex: 0 0 auto;
}

.total-cards {
  margin: 16px 0 0;
  color: var(--text);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tv-public-page {
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #030404;
  color: #f5f6f4;
}

.tv-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 32px;
  padding: 56px 72px 48px;
  overflow: hidden;
  background: #050606;
  animation: tv-stage-enter 600ms ease-out both;
}

.tv-stage::after {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  content: "";
  pointer-events: none;
}

.tv-stage-art,
.tv-stage-fog,
.tv-stage-red,
.tv-stage-shade {
  position: absolute;
  pointer-events: none;
}

.tv-stage-art {
  inset: -2%;
  z-index: -6;
  background-color: #070808;
  background-image: url("/static/images/noir-stage-city-v1.webp");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.62;
  filter: grayscale(0.94) contrast(1.12) brightness(0.66);
  transform: scale(1.025);
  animation: tv-stage-drift 24s ease-in-out infinite alternate;
}

.tv-stage-fog,
.tv-stage-red {
  inset: -3%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  mix-blend-mode: screen;
}

.tv-stage-fog {
  z-index: -5;
  background-image: url("/static/images/noir-stage-fog-light-v1.webp");
  opacity: 0.22;
  transform: scale(1.03);
  animation: tv-stage-fog-drift 34s ease-in-out infinite alternate;
}

.tv-stage-red {
  z-index: -4;
  background-image: url("/static/images/noir-stage-red-atmosphere-v1.webp");
  opacity: 0.24;
  transform: scale(1.04) translateX(1%);
  animation: tv-stage-red-breathe 27s ease-in-out infinite alternate;
}

.tv-stage-shade {
  inset: 0;
  z-index: -3;
  width: 100%;
  background: rgba(2, 3, 3, 0.42);
}

.tv-stage-header,
.tv-stage-hero,
.tv-stage-footer {
  position: relative;
  z-index: 1;
}

.tv-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.tv-brand,
.tv-kicker,
.tv-title,
.tv-phase,
.tv-result,
.tv-meta-item,
.tv-winners {
  margin: 0;
  letter-spacing: 0;
}

.tv-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 30px;
  font-weight: 900;
}

.tv-brand-mark {
  display: inline-grid;
  min-width: 54px;
  min-height: 54px;
  place-items: center;
  background: #9d1720;
  color: #fff;
  line-height: 1;
}

.tv-kicker,
.tv-meta-item span,
.tv-winners span {
  color: #c8cdca;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}

.tv-stage-hero {
  width: min(1180px, 78%);
  align-self: center;
}

.tv-kicker {
  color: #c5363e;
}

.tv-title {
  max-width: 12ch;
  margin-top: 18px;
  color: #fff;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 156px;
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.tv-phase {
  max-width: 28ch;
  margin-top: 32px;
  color: #f0f2ef;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

.tv-result {
  max-width: 30ch;
  margin-top: 28px;
  border-left: 5px solid #9d1720;
  padding: 10px 0 10px 24px;
  color: #f2f3f1;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

.tv-stage-footer {
  min-height: 118px;
  display: flex;
  align-items: end;
  gap: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding-top: 24px;
}

.tv-meta-item {
  min-width: 150px;
  display: grid;
  gap: 4px;
}

.tv-meta-item strong {
  color: #fff;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 68px;
  line-height: 0.9;
}

.tv-timer strong {
  font-variant-numeric: tabular-nums;
}

.tv-winners {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.tv-winners strong {
  color: #fff;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 44px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.tv-stage [hidden] {
  display: none !important;
}

.tv-stage[data-tv-state="idle"] .tv-stage-art {
  opacity: 0.72;
  filter: grayscale(1) contrast(1.08) brightness(0.72);
}

.tv-stage[data-tv-state="idle"] .tv-stage-fog {
  opacity: 0.31;
}

.tv-stage[data-tv-state="idle"] .tv-stage-red {
  opacity: 0.2;
}

.tv-stage[data-tv-state="idle"] .tv-stage-shade {
  width: 100%;
  background: rgba(2, 3, 3, 0.34);
}

.tv-stage[data-tv-state="idle"] .tv-title {
  max-width: 10ch;
  font-size: 132px;
}

.tv-stage[data-phase-kind="night"] .tv-stage-art {
  opacity: 0.5;
  filter: grayscale(0.97) contrast(1.22) brightness(0.48);
}

.tv-stage[data-phase-kind="night"] .tv-stage-fog {
  opacity: 0.12;
}

.tv-stage[data-phase-kind="night"] .tv-stage-red {
  opacity: 0.46;
}

.tv-stage[data-phase-kind="night"] .tv-stage-shade {
  width: 100%;
  background: rgba(1, 2, 2, 0.62);
}

.tv-stage[data-phase-kind="day"] {
  background: #111313;
}

.tv-stage[data-phase-kind="day"] .tv-stage-art {
  opacity: 0.9;
  filter: grayscale(0.96) contrast(1.06) brightness(1);
}

.tv-stage[data-phase-kind="day"] .tv-stage-fog {
  opacity: 0.48;
}

.tv-stage[data-phase-kind="day"] .tv-stage-red {
  opacity: 0.1;
}

.tv-stage[data-phase-kind="day"] .tv-stage-shade {
  width: 100%;
  background: rgba(12, 14, 14, 0.2);
}

.tv-stage[data-has-result="true"] .tv-stage-red {
  opacity: 0.36;
}

.tv-stage[data-has-result="true"] .tv-stage-fog {
  opacity: 0.54;
}

.tv-stage[data-has-result="true"] .tv-result {
  max-width: 26ch;
  border-left-width: 8px;
  background: rgba(5, 6, 6, 0.62);
  padding: 16px 24px;
  color: #fff;
  font-size: 44px;
}

.tv-stage[data-tv-state="completed"] .tv-stage-hero {
  width: min(1360px, 86%);
}

.tv-stage[data-tv-state="completed"] .tv-title {
  max-width: 14ch;
  font-size: 126px;
  line-height: 0.92;
}

.tv-stage[data-terminal-tone="light"] {
  background: #111313;
}

.tv-stage[data-terminal-tone="light"] .tv-stage-art {
  opacity: 0.98;
  filter: grayscale(1) contrast(1.04) brightness(1.08);
}

.tv-stage[data-terminal-tone="light"] .tv-stage-fog {
  opacity: 0.68;
}

.tv-stage[data-terminal-tone="light"] .tv-stage-red {
  opacity: 0.14;
}

.tv-stage[data-terminal-tone="light"] .tv-stage-shade {
  width: 100%;
  background: rgba(8, 10, 10, 0.12);
}

.tv-stage[data-terminal-tone="light"] .tv-kicker {
  color: #fff;
}

.tv-stage[data-terminal-tone="dark"] .tv-stage-art {
  opacity: 0.62;
  filter: grayscale(0.9) contrast(1.25) brightness(0.54);
}

.tv-stage[data-terminal-tone="dark"] .tv-stage-fog {
  opacity: 0.16;
}

.tv-stage[data-terminal-tone="dark"] .tv-stage-red {
  opacity: 0.66;
}

.tv-stage[data-terminal-tone="dark"] .tv-stage-shade {
  width: 100%;
  background: rgba(1, 2, 2, 0.52);
}

.tv-stage.is-state-changing .tv-stage-hero,
.tv-stage.is-state-changing .tv-stage-footer {
  animation: tv-stage-reveal 650ms ease-out both;
}

.tv-stage.is-state-changing[data-has-result="true"] .tv-result {
  animation: tv-stage-result-accent 620ms ease-out both;
}

.tv-stage.is-state-changing[data-tv-state="completed"] .tv-title {
  animation: tv-stage-victory-reveal 720ms ease-out both;
}

@keyframes tv-stage-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes tv-stage-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tv-stage-drift {
  from {
    transform: scale(1.025) translateX(0);
  }

  to {
    transform: scale(1.055) translateX(-1.2%);
  }
}

@keyframes tv-stage-fog-drift {
  from {
    filter: brightness(0.86);
    transform: scale(1.03) translateX(0);
  }

  to {
    filter: brightness(1);
    transform: scale(1.06) translateX(-0.8%);
  }
}

@keyframes tv-stage-red-breathe {
  from {
    filter: brightness(0.8);
    transform: scale(1.04) translateX(1%);
  }

  to {
    filter: brightness(1.04);
    transform: scale(1.07) translateX(0);
  }
}

@keyframes tv-stage-result-accent {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tv-stage-victory-reveal {
  from {
    opacity: 0;
    transform: scale(0.975);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1500px) {
  .tv-stage {
    gap: 24px;
    padding: 42px 52px 36px;
  }

  .tv-stage::after {
    inset: 14px;
  }

  .tv-brand {
    font-size: 24px;
  }

  .tv-brand-mark {
    min-width: 46px;
    min-height: 46px;
  }

  .tv-kicker,
  .tv-meta-item span,
  .tv-winners span {
    font-size: 20px;
  }

  .tv-title {
    font-size: 112px;
  }

  .tv-phase {
    margin-top: 24px;
    font-size: 44px;
  }

  .tv-result {
    margin-top: 22px;
    font-size: 31px;
  }

  .tv-stage-footer {
    min-height: 98px;
    gap: 38px;
    padding-top: 18px;
  }

  .tv-meta-item strong {
    font-size: 56px;
  }

  .tv-winners strong {
    font-size: 36px;
  }

  .tv-stage[data-tv-state="idle"] .tv-title,
  .tv-stage[data-tv-state="completed"] .tv-title {
    font-size: 98px;
  }
}

@media (max-width: 1320px), (max-height: 760px) {
  .tv-stage {
    gap: 18px;
    padding: 34px 44px 30px;
  }

  .tv-stage-hero {
    width: 78%;
  }

  .tv-title {
    margin-top: 12px;
    font-size: 88px;
  }

  .tv-phase {
    margin-top: 18px;
    font-size: 38px;
  }

  .tv-result {
    margin-top: 16px;
    padding-block: 6px;
    font-size: 27px;
  }

  .tv-stage-footer {
    min-height: 84px;
  }

  .tv-meta-item strong {
    font-size: 48px;
  }

  .tv-winners strong {
    font-size: 31px;
  }

  .tv-stage[data-tv-state="idle"] .tv-title,
  .tv-stage[data-tv-state="completed"] .tv-title {
    font-size: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-stage,
  .tv-stage-art,
  .tv-stage-fog,
  .tv-stage-red,
  .tv-stage.is-state-changing .tv-stage-hero,
  .tv-stage.is-state-changing .tv-stage-footer,
  .tv-stage.is-state-changing .tv-result,
  .tv-stage.is-state-changing .tv-title {
    animation: none;
  }
}

.deck-builder {
  display: grid;
  gap: 16px;
}

.deck-side-summary,
.deck-total-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.deck-side-summary span,
.deck-total-status span {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: center;
}

.deck-total-status p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.deck-role-group {
  min-width: 0;
  margin: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
}

.deck-role-group legend {
  padding: 0 10px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.deck-role-grid {
  display: grid;
  gap: 10px;
}

.deck-role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.deck-role-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.deck-role-copy strong {
  font-size: 18px;
}

.deck-role-copy span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.deck-role-stepper {
  display: grid;
  grid-template-columns: 48px 64px 48px;
  gap: 6px;
  align-items: center;
}

.deck-role-stepper input {
  min-width: 0;
  padding-inline: 4px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.deck-count-button {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #121815;
  color: var(--text);
  font-size: 24px;
}

.deck-replace-button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
}

.deck-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deck-advisories {
  display: grid;
  gap: 8px;
}

.deck-advisory {
  margin: 0;
  border-left: 3px solid var(--line);
  padding: 10px 12px;
}

.deck-advisory-error {
  border-left-color: #e67c73;
}

.deck-advisory-warning {
  border-left-color: var(--accent);
}

.deck-advisory-info {
  border-left-color: #76a9dc;
}

@media (max-width: 480px) {
  .deck-side-summary,
  .deck-total-status {
    grid-template-columns: 1fr;
  }

  .deck-total-status p {
    grid-column: auto;
  }

  .deck-role-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .deck-role-stepper {
    grid-template-columns: 52px minmax(64px, 1fr) 52px;
  }

  .deck-replace-button {
    grid-column: auto;
    width: 100%;
  }

  .deck-editor-actions .secondary-action {
    width: 100%;
  }
}

.player-seats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.player-seat {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: center;
}

.role-assignment-form,
.role-assignment-fields {
  display: grid;
  gap: 12px;
}

.role-assignment-form {
  margin-top: 16px;
}

.role-assignment-field {
  display: grid;
  grid-template-columns: minmax(88px, 0.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.role-assignment-form.has-error {
  border-left: 3px solid #e67c73;
  padding-left: 12px;
}

.role-assignment-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.role-assignment-list li {
  display: grid;
  grid-template-columns: minmax(88px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}

.role-assignments-stale {
  border-left: 3px solid var(--accent);
}

.pre-game-briefing-entry {
  margin-top: 24px;
  border: 1px solid var(--line);
  padding: 16px;
}

.pre-game-briefing-entry h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.role-inventory {
  display: grid;
  gap: 12px;
  border-block: 1px solid var(--line);
  padding-block: 14px;
}

.role-inventory-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.role-inventory-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-inventory-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.role-inventory-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.role-inventory-list strong {
  flex: 0 0 auto;
  color: var(--accent);
}

.pre-game-briefing-page {
  min-width: 0;
}

.briefing-section {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.briefing-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.briefing-speech {
  color: var(--text);
  font-size: 18px;
}

.briefing-list,
.pre-game-role-list {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.briefing-completion-form {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: var(--panel);
}

.briefing-completion-form .primary-action {
  width: 100%;
  min-height: 48px;
}

.acquaintance-role-step,
.acquaintance-assignment-form {
  display: grid;
  gap: 16px;
}

.selection-counter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.acquaintance-seat-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.acquaintance-seat-fieldset legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.acquaintance-seat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}

.acquaintance-seat-choice {
  position: relative;
  display: grid;
  min-height: 64px;
  align-content: center;
  gap: 2px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
}

.acquaintance-seat-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.acquaintance-seat-choice:focus-within {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

.acquaintance-seat-choice.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.acquaintance-seat-choice.is-assigned {
  opacity: 0.62;
  cursor: not-allowed;
}

.seat-choice-number {
  font-size: 1.05rem;
  font-weight: 800;
}

.seat-choice-state {
  font-size: 0.82rem;
}

.speaking-cue-after {
  margin-top: 0;
}

.role-assignment-correction {
  margin-top: 16px;
}

.role-assignment-correction > summary {
  min-height: 44px;
  padding-block: 10px;
  font-weight: 700;
  cursor: pointer;
}

.hidden-information {
  margin: 0 0 20px;
  color: var(--accent);
  font-weight: 700;
}

.guidance-state,
.guidance-step,
.guidance-complete,
.guidance-unresolved,
.pre-game-briefing {
  margin-top: 20px;
  border: 1px solid var(--line);
  padding: 16px;
}

.pre-game-briefing h2,
.pre-game-briefing h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.pre-game-briefing h3 {
  margin-top: 22px;
}

.pre-game-checklist,
.pre-game-role-list {
  display: grid;
  gap: 12px;
  padding-left: 24px;
}

.pre-game-checklist li,
.pre-game-role-list li {
  line-height: 1.5;
}

.guidance-step h2 {
  margin: 20px 0 8px;
  font-size: 20px;
}

.guidance-step h2:first-of-type {
  margin-top: 0;
}

.guidance-title,
.guidance-phrase {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.guidance-seat-groups p {
  margin: 8px 0;
}

.guided-host-speaking-cue {
  margin: 12px 0;
  border: 1px solid #77b58a;
  border-left: 4px solid #77b58a;
  border-radius: 6px;
  background: #18241d;
  padding: 10px 12px;
}

.guided-host-speaking-cue p {
  margin: 4px 0;
}

.guided-host-speaking-cue p:first-child {
  color: #a9d8b6;
  font-size: 12px;
  text-transform: uppercase;
}

.guided-host-speaking-cue p:last-child {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.guidance-navigation {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.guidance-navigation .secondary-action,
.guidance-navigation .primary-link {
  flex: 1 1 132px;
  margin-top: 0;
}

.guidance-unresolved {
  border-left: 3px solid var(--accent);
}

.guidance-unresolved ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.night-intent-state,
.mafia-turn,
.lover-turn,
.doctor-turn,
.rastaman-turn,
.night-intent-confirmed {
  margin-top: 20px;
  border: 1px solid var(--line);
  padding: 16px;
}

.night-intent-stale {
  border-left: 3px solid var(--accent);
}

.mafia-turn h2,
.lover-turn h2,
.doctor-turn h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.rastaman-turn h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.intent-warning {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.night-intent-confirmed {
  border-left: 3px solid #77b58a;
}

.night-intent-edit {
  margin-top: 16px;
}

.night-intent-edit summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.mafia-target-form,
.doctor-target-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.rastaman-target-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mafia-target-form select,
.doctor-target-form select {
  width: 100%;
}

.rastaman-target-form select {
  width: 100%;
}

.night-intents-status {
  margin-top: 20px;
  border: 1px solid var(--line);
  padding: 16px;
}

.night-intents-status ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.night-intent-completeness,
.completeness-role-group,
.completeness-resolution,
.participant-initialization,
.participant-setup-lock,
.attack-treatment-preview,
.will-eligibility-preview,
.morning-commit-plan,
.morning-plan-group,
.morning-plan-blockers,
.committed-morning,
.committed-result-group,
.day-one-will-flow,
.day-one-will-nomination,
.day-one-host-state,
.day-one-ordinary-nomination,
.preview-outcome {
  margin-top: 20px;
  border: 1px solid var(--line);
  padding: 16px;
}

.night-intent-completeness h2,
.completeness-role-group h3,
.completeness-resolution h3,
.participant-initialization h2 {
  margin: 0 0 12px;
}

.completeness-actions,
.completeness-role-group ul,
.completeness-resolution ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.completeness-actions li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.completeness-status {
  white-space: nowrap;
}

.completeness-status-captured,
.completeness-confirmed {
  color: #4f8d63;
}

.completeness-status-stale,
.completeness-manual,
.completeness-unresolved,
.completeness-resolution,
.participant-initialization-inconsistent,
.participant-setup-lock {
  border-left: 3px solid var(--accent);
}

.participant-initialization form {
  margin-top: 16px;
}

.participant-initialization form .primary-action {
  width: 100%;
}

.participant-initialization-initialized {
  border-left: 3px solid #77b58a;
}

.attack-treatment-preview-available {
  border-left: 3px solid #77b58a;
}

.will-eligibility-preview-available,
.will-eligibility-preview-not_applicable {
  border-left: 3px solid #77b58a;
}

.attack-treatment-preview-blocked,
.attack-treatment-preview-unavailable,
.attack-treatment-preview-inconsistent,
.will-eligibility-preview-blocked,
.will-eligibility-preview-unavailable,
.will-eligibility-preview-inconsistent,
.morning-commit-plan-blocked,
.morning-commit-plan-unavailable,
.morning-commit-plan-inconsistent,
.preview-outcome {
  border-left: 3px solid var(--accent);
}

.attack-treatment-preview h2,
.will-eligibility-preview h2,
.morning-commit-plan h2,
.morning-plan-group h3,
.morning-plan-blockers h3,
.committed-morning h2,
.committed-result-group h3,
.day-one-will-flow h2,
.day-one-will-nomination h2,
.day-one-host-state h2,
.day-one-host-state h3,
.day-one-ordinary-nomination h2,
.day-one-ordinary-nomination h3,
.preview-outcome h3 {
  margin: 0 0 12px;
}

.morning-commit-plan-available,
.plan-ready,
.committed-morning {
  border-left: 3px solid #77b58a;
}

.morning-plan-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.morning-plan-list li,
.morning-plan-group p,
.morning-plan-blockers p {
  overflow-wrap: anywhere;
}

.plan-ready {
  margin: 20px 0 0;
  padding-left: 12px;
  color: var(--text);
  font-weight: 700;
}

.morning-commit-form {
  display: grid;
  margin-top: 16px;
}

.morning-commit-form .primary-action {
  width: 100%;
}

.commit-warning {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.committed-day,
.committed-intents {
  color: #77b58a;
}

.committed-result-group p {
  overflow-wrap: anywhere;
}

.day-one-will-flow {
  border-left: 3px solid #77b58a;
}

.day-one-will-nomination {
  border-left: 3px solid #77b58a;
}

.day-one-will-nomination p {
  overflow-wrap: anywhere;
}

.day-one-host-state {
  border-left: 3px solid #77b58a;
}

.day-one-state-grid {
  display: grid;
  gap: 16px;
}

.day-one-state-grid section,
.day-one-state-next-step {
  min-width: 0;
}

.day-one-state-grid p,
.day-one-state-next-step p {
  overflow-wrap: anywhere;
}

.day-one-state-next-step {
  margin-top: 16px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.day-one-host-state-inconsistent {
  border-left-color: var(--accent);
}

.day-one-ordinary-nomination {
  border-left: 3px solid #77b58a;
}

.ordinary-nomination-history ol,
.ordinary-nomination-counts ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 24px;
}

.ordinary-nomination-history li,
.ordinary-nomination-counts li,
.ordinary-voting-boundary {
  overflow-wrap: anywhere;
}

.qualification-status {
  color: #4f8d63;
  font-weight: 700;
}

.ordinary-nomination-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.ordinary-nomination-form fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  padding: 12px;
}

.ordinary-candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ordinary-candidate-grid label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 10px;
}

.ordinary-candidate-grid input {
  flex: 0 0 auto;
  margin: 0;
  width: auto;
}

.ordinary-limit-message {
  min-height: 20px;
  margin: 0;
}

.ordinary-nomination-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.day-one-first-voting-plan {
  border-left: 3px solid var(--accent);
}

.first-voting-plan-candidates {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.first-voting-plan-candidate,
.first-voting-plan-will,
.first-voting-plan-boundary {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 12px;
}

.first-voting-plan-candidate h3,
.first-voting-plan-will h3,
.first-voting-plan-boundary h3 {
  margin-top: 0;
}

.first-voting-plan-candidate p,
.first-voting-plan-will p,
.first-voting-plan-boundary p,
.first-voting-plan-exclusions li {
  overflow-wrap: anywhere;
}

.first-voting-plan-exclusions {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
  padding-left: 24px;
}

.first-voting-threshold {
  border-left: 3px solid #4f8d63;
  padding-left: 10px;
}

.first-voting-plan-will {
  margin-top: 16px;
  border-left: 3px solid #77b58a;
}

.first-voting-plan-boundary {
  margin-top: 16px;
  border-left: 3px solid var(--accent);
}

.first-voting-plan-inconsistent {
  border-left-color: var(--accent);
}

.day-one-primary-voting {
  border-left: 3px solid #4f8d63;
}

.primary-voting-entry-form,
.primary-voting-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.primary-voting-entry,
.primary-voting-result,
.primary-voting-resolution,
.primary-voting-application-boundary {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 12px;
}

.primary-voting-entry h3,
.primary-voting-result h3,
.primary-voting-resolution h3,
.primary-voting-application-boundary h3 {
  margin-top: 0;
}

.primary-voting-entry input[type="number"] {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  font-size: 20px;
}

.primary-voting-warning,
.primary-voting-application-boundary {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.primary-voting-resolution,
.primary-voting-application-boundary {
  margin-top: 16px;
}

.primary-voting-confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.primary-voting-confirm-actions form,
.primary-voting-confirm-actions button {
  width: 100%;
}

.primary-voting-confirm-actions .secondary-action {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  padding: 8px;
  text-align: center;
}

.primary-voting-entry p,
.primary-voting-result p,
.primary-voting-resolution p,
.primary-voting-application-boundary p {
  overflow-wrap: anywhere;
}

.classic-victory {
  border-left: 3px solid #77b58a;
}

.classic-victory p {
  overflow-wrap: anywhere;
}

.classic-victory-warning {
  min-width: 0;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 12px;
}

.classic-victory-warning h3 {
  margin-top: 0;
}

.day-one-completion {
  border-left: 3px solid #36685b;
}

.day-one-completion p,
.day-one-completion li {
  overflow-wrap: anywhere;
}

.day-one-completion-warning {
  min-width: 0;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 12px;
}

.day-one-completion-warning h3 {
  margin-top: 0;
}

.day-one-completion-completed {
  border-left-color: #77b58a;
}

.day-one-completion-blocked,
.day-one-completion-inconsistent {
  border-left-color: var(--accent);
}

@media (max-width: 520px) {
  .primary-voting-confirm-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ordinary-nomination-actions button {
  width: 100%;
}

.ordinary-nomination-inconsistent {
  border-left-color: var(--accent);
}

.will-nomination-restriction {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.day-one-will-flow form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.day-one-will-flow select,
.day-one-will-flow .primary-action {
  width: 100%;
}

.will-countdown {
  min-height: 76px;
  display: grid;
  place-items: center;
  margin: 16px 0;
  border: 1px solid var(--line);
  font-size: 44px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.will-expiry-warning {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--text);
}

.will-target-recorded {
  border-left-color: #77b58a;
}

.will-flow-inconsistent {
  border-left-color: var(--accent);
}

.preview-warning {
  color: var(--text);
}

.preview-limitation {
  font-size: 14px;
}

@media (max-width: 480px) {
  .shell {
    padding: 12px;
  }

  .panel {
    padding: 20px;
  }

  .role-assignment-field,
  .role-assignment-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .role-inventory-summary,
  .role-inventory-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel.tv {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 14px;
}

h1 {
  margin: 0 0 16px;
  font-size: 32px;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.actions a {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
}

.guided-host-shell {
  min-width: 0;
  margin: 20px 0 28px;
  border-top: 2px solid #77b58a;
  border-bottom: 1px solid var(--line);
  padding: 18px 0 20px;
}

.guided-host-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.guided-host-kicker {
  margin: 18px 0 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.guided-host-shell h2 {
  margin: 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.guided-host-instruction {
  margin-bottom: 16px;
  color: var(--text);
}

.guided-host-blockers {
  margin: 16px 0;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.guided-host-blockers p {
  margin-top: 0;
}

.guided-host-blockers ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.guided-host-blockers li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.guided-host-primary {
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  align-items: center;
  box-sizing: border-box;
}

.guided-host-next {
  margin: 18px 0 0;
  font-size: 14px;
}

.guided-host-help,
.guided-host-history {
  margin-top: 12px;
}

.guided-host-help > summary,
.guided-host-history > summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
}

.guided-host-shell-blocked,
.guided-host-shell-inconsistent {
  border-top-color: var(--accent);
}

.guided-host-shell-supported_slice_complete {
  border-top-color: #d2a84a;
}

@media (max-width: 480px) {
  .guided-host-meta {
    flex-direction: column;
    gap: 4px;
  }

  .guided-host-primary {
    width: 100%;
  }
}
.repeating-night-shell {
  max-width: 44rem;
  margin: 0 auto;
}

.night-step {
  padding-block: 1rem 1.5rem;
  border-top: 1px solid var(--border, #d8d8d8);
}

.night-step form {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}

.night-step select,
.night-step .primary-action {
  min-height: 3rem;
  width: 100%;
}

.terminal-game-result .terminal-outcome {
  font-size: 20px;
}

.terminal-neutral-survivors {
  margin: 16px 0;
  border-left: 3px solid #76a9dc;
  padding: 10px 12px;
}

.terminal-neutral-survivors h3,
.terminal-neutral-survivors h4 {
  margin-top: 0;
}

.terminal-neutral-survivors p {
  overflow-wrap: anywhere;
}

.terminal-game-result .secondary-action {
  width: 100%;
  max-width: 28rem;
}

.repeating-day-shell {
  max-width: 44rem;
  margin: 0 auto;
}

.day-cycle-step,
.day-cycle-summary {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.day-cycle-step form,
.day-cycle-form {
  display: grid;
  gap: 12px;
  max-width: 30rem;
}

.day-cycle-timer {
  display: grid;
  min-height: 76px;
  max-width: 12rem;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 40px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.day-cycle-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 20px;
}

.guided-seat-picker {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.guided-seat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.guided-seat-grid label,
.ordinary-candidate-grid label {
  min-width: 0;
}

.guided-seat-grid span,
.ordinary-candidate-grid span {
  display: grid;
  min-height: 48px;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.guided-seat-grid input,
.ordinary-candidate-grid input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.guided-seat-grid input:checked + span,
.ordinary-candidate-grid input:checked + span {
  border-width: 2px;
  border-color: var(--accent);
  background: #23382a;
  color: var(--text);
  font-weight: 700;
}

.guided-seat-grid input:focus-visible + span,
.ordinary-candidate-grid input:focus-visible + span {
  outline: 3px solid #76a9dc;
  outline-offset: 2px;
}

.timer-expired::after {
  content: "Время вышло";
  display: block;
  font-size: 13px;
  font-weight: 700;
}

html:has(.guided-command-center-ready),
body:has(.guided-command-center-ready) {
  height: 100%;
  overflow: hidden;
}

body:has(.guided-command-center-ready) {
  position: fixed;
  inset: 0;
  width: 100%;
}

.shell:has([data-one-action-host]) {
  height: 100dvh;
  overflow: hidden;
}

.host-one-action {
  display: flex;
  max-height: calc(100dvh - 48px);
  flex-direction: column;
}

.host-one-action.guided-command-center-ready > :not(.eyebrow):not(h1):not(.guided-action-current):not(.notice-error) {
  display: none;
}

.host-one-action .guided-action-current {
  display: grid;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.host-one-action.guided-command-center-ready > h1 {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.host-one-action .guided-action-current h2 {
  font-size: 26px;
}

.host-one-action .guided-action-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 12px;
}

.host-one-action .guided-action-footer {
  z-index: 2;
  display: grid;
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}

.host-one-action .guided-action-footer .primary-action {
  width: 100%;
  min-height: 48px;
  margin: 0;
}

.fast-submit-pending {
  pointer-events: none;
  opacity: 0.72;
}

.vote-stepper {
  display: grid;
  width: min(100%, 320px);
  grid-template-columns: 64px minmax(96px, 1fr) 64px;
  gap: 10px;
  align-items: stretch;
  margin: 10px auto;
}

.vote-stepper button,
.vote-stepper input {
  min-height: 56px;
  margin: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.vote-stepper button {
  padding: 0;
}

.vote-stepper input {
  width: 100%;
  appearance: textfield;
}

.vote-stepper input::-webkit-inner-spin-button,
.vote-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.vote-threshold {
  text-align: center;
  font-weight: 700;
}

.vote-review-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.vote-review-list li {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.briefing-back {
  width: 100%;
}

@media (max-width: 600px) {
  html:has(.guided-command-center-ready),
  body:has(.guided-command-center-ready) {
    height: 100%;
    overflow: hidden;
  }

  .shell:has([data-one-action-host]) {
    display: block;
    height: 100dvh;
    overflow: hidden;
    padding: 8px 12px 0;
  }

  .host-one-action {
    display: flex;
    min-width: 0;
    height: calc(100dvh - 8px);
    min-height: 0;
    flex-direction: column;
    border: 0;
    padding: 8px 4px 0;
  }

  .host-one-action.guided-command-center-ready > :not(.eyebrow):not(h1):not(.guided-action-current):not(.notice-error) {
    display: none;
  }

  .host-one-action > .eyebrow,
  .host-one-action > h1,
  .host-one-action > .hidden-information {
    order: -3;
  }

  .host-one-action > h1 {
    margin-bottom: 4px;
    font-size: 24px;
  }

  .host-one-action > .hidden-information {
    margin: 0 0 4px;
    font-size: 13px;
  }

  .host-one-action .guided-action-current {
    display: grid;
    order: -2;
    min-width: 0;
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    overscroll-behavior: contain;
    padding: 10px 0 0;
  }

  .host-one-action .guided-action-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 2px 12px;
  }

  .host-one-action .guided-action-current h2 {
    margin: 4px 0 8px;
    font-size: 26px;
  }

  .host-one-action .guided-action-current p {
    margin: 4px 0 8px;
  }

  .host-one-action .command-center-progress,
  .host-one-action .guided-host-next {
    font-size: 12px;
  }

  .host-one-action .command-center-progress {
    margin-bottom: 4px;
  }

  .host-one-action .guided-action-form {
    margin: 0;
  }

  .host-one-action .guided-action-footer {
    z-index: 2;
    display: grid;
    gap: 8px;
    margin: 0;
    border-top: 1px solid var(--line);
    background: var(--panel);
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  }

  .host-one-action .guided-action-content > .guided-host-help,
  .host-one-action .guided-action-content > .guided-host-history {
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .host-one-action .guided-action-footer .primary-action,
  .host-one-action .guided-action-footer .secondary-action {
    width: 100%;
    min-height: 48px;
    margin: 0;
  }

  .host-one-action .guided-seat-grid,
  .host-one-action .ordinary-candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .host-one-action .day-cycle-timer {
    min-height: 58px;
    font-size: 30px;
  }
}

/* Noir Command Center V1: completed-victory terminal experience. */
.noir-terminal-page {
  --terminal-bg: #030405;
  --terminal-panel: rgba(12, 14, 17, 0.9);
  --terminal-line: rgba(255, 255, 255, 0.18);
  --terminal-red: #c92130;
  background: var(--terminal-bg);
}

.noir-terminal-page .shell {
  min-height: 100svh;
  padding: 0;
  place-items: stretch center;
}

.terminal-host-shell {
  position: relative;
  width: min(100%, 460px);
  min-height: 100svh;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--terminal-bg);
  padding: 0;
}

.noir-terminal-page .terminal-host-shell {
  padding: 0;
}

.terminal-host-shell > :not(.terminal-experience) {
  display: none !important;
}

.terminal-host-shell .terminal-experience {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  border: 0;
  padding: 0;
}

.noir-terminal-page .terminal-host-shell .terminal-experience {
  border: 0;
  padding: 0;
}

.terminal-experience-content {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto minmax(48px, 1fr) auto auto;
  gap: 12px;
  overflow: hidden;
  padding: max(24px, env(safe-area-inset-top)) 18px
    max(18px, env(safe-area-inset-bottom));
  color: #f8f8f6;
}

.terminal-atmosphere {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: #050607 url("/static/images/noir-terminal-atmosphere-v1.webp")
    center -42px / cover no-repeat;
  opacity: 0.72;
  filter: saturate(0.92) contrast(1.08) brightness(0.9);
  transform: scale(1.015);
  animation: terminal-atmosphere-enter 700ms ease-out both;
}

.terminal-experience-content::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(2, 3, 4, 0.34);
  content: "";
  pointer-events: none;
}

.terminal-experience-content--light .terminal-atmosphere {
  background-position: 56% -28px;
  opacity: 0.84;
  filter: grayscale(0.32) contrast(1.02) brightness(1.12);
}

.terminal-experience-content--light::after {
  background: rgba(2, 3, 4, 0.2);
}

.terminal-experience-content--dark .terminal-atmosphere {
  background-position: 45% -54px;
  opacity: 0.72;
  filter: saturate(1.12) contrast(1.2) brightness(0.72);
}

.terminal-experience-content--dark::after {
  background: rgba(2, 3, 4, 0.43);
}

.terminal-heading {
  max-width: 420px;
  animation: terminal-heading-enter 560ms ease-out both;
}

.terminal-brand,
.terminal-label,
.terminal-winners > p {
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
}

.terminal-brand {
  color: #f8f8f6;
  font-size: 14px;
  font-weight: 800;
}

.terminal-label {
  margin-top: 22px;
  color: #e4515e;
  font-size: 13px;
  font-weight: 800;
}

.terminal-outcome {
  max-width: 420px;
  margin: 9px 0 0;
  color: #ffffff;
  font-size: 68px;
  font-weight: 900;
  line-height: 0.9;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.78);
}

.terminal-explanation {
  max-width: 350px;
  margin: 14px 0 0;
  color: #d5d6d8;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.86);
}

.terminal-experience-content--light .terminal-outcome {
  color: #ffffff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.66), 0 0 30px rgba(255, 255, 255, 0.16);
}

.terminal-experience-content--light .terminal-explanation {
  color: #f0f0ee;
}

.terminal-experience-content--dark .terminal-outcome {
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.9), 0 0 34px rgba(201, 33, 48, 0.2);
}

.terminal-hero-accent {
  align-self: end;
  width: 82px;
  height: 3px;
  margin-bottom: 2px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.28);
}

.terminal-experience-content--dark .terminal-hero-accent {
  width: 112px;
  background: var(--terminal-red);
  box-shadow: 0 0 28px rgba(201, 33, 48, 0.42);
}

.terminal-winners {
  align-self: end;
  border: 1px solid var(--terminal-line);
  border-left: 3px solid var(--terminal-red);
  background: rgba(8, 10, 12, 0.88);
  padding: 13px 14px;
  backdrop-filter: blur(10px);
}

.terminal-experience-content--light .terminal-winners {
  border-left-color: rgba(255, 255, 255, 0.88);
  background: rgba(12, 14, 16, 0.8);
}

.terminal-winners > p {
  color: #c8c9cc;
  font-size: 11px;
  font-weight: 800;
}

.terminal-winner-seats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.terminal-winner-seats span {
  display: grid;
  min-width: 54px;
  min-height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 6, 8, 0.8);
  color: #ffffff;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.terminal-result-notes {
  border-top: 1px solid var(--terminal-line);
  color: #f4f4f2;
}

.terminal-result-notes summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 700;
}

.terminal-result-notes p {
  margin: 0 0 10px;
  color: #c7c8cb;
  font-size: 13px;
}

.terminal-actions {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.terminal-actions form,
.terminal-actions .primary-action,
.terminal-actions .secondary-action {
  width: 100%;
  margin: 0;
}

.terminal-actions .primary-action,
.terminal-actions .secondary-action {
  min-height: 52px;
  border-radius: 6px;
}

.terminal-actions .primary-action {
  background: var(--terminal-red);
  color: #ffffff;
  font-size: 16px;
  text-transform: uppercase;
}

.terminal-actions .secondary-action {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(5, 6, 8, 0.82);
  color: #f8f8f6;
}

@keyframes terminal-atmosphere-enter {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes terminal-heading-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 390px), (max-height: 820px) {
  .terminal-experience-content {
    gap: 10px;
    padding: max(18px, env(safe-area-inset-top)) 14px
      max(12px, env(safe-area-inset-bottom));
  }

  .terminal-label {
    margin-top: 14px;
  }

  .terminal-outcome {
    font-size: 58px;
  }

  .terminal-explanation {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.3;
  }

  .terminal-winners {
    padding: 10px 12px;
  }

  .terminal-winner-seats span {
    min-height: 44px;
  }

  .terminal-actions .primary-action,
  .terminal-actions .secondary-action {
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-atmosphere,
  .terminal-heading {
    animation: none;
  }
}

/* Noir Command Center V1: scoped pilot for the repeating-Night Host surface. */
.noir-host-page {
  --noir-bg: #050607;
  --noir-panel: #0d0f12;
  --noir-raised: #16191d;
  --noir-line: #30343a;
  --noir-line-strong: #4b5058;
  --noir-text: #f7f7f5;
  --noir-muted: #a7a9ae;
  --noir-accent: #bd1f2d;
  --noir-accent-active: #d42a3a;
  background: var(--noir-bg);
  color: var(--noir-text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.noir-host-page .shell {
  background: var(--noir-bg);
}

.host-command-shell--noir {
  --noir-bg: #050607;
  --noir-panel: #0d0f12;
  --noir-raised: #16191d;
  --noir-line: #30343a;
  --noir-line-strong: #4b5058;
  --noir-text: #f7f7f5;
  --noir-muted: #a7a9ae;
  --noir-accent: #bd1f2d;
  --noir-accent-active: #d42a3a;
  width: min(100%, 430px);
  border: 1px solid var(--noir-line);
  border-radius: 8px;
  background: var(--noir-panel);
  color: var(--noir-text);
  padding: 18px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 48%);
}

.host-command-shell--noir .host-surface-label {
  margin: 0 0 6px;
  color: var(--noir-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.host-command-shell--noir .host-page-phase {
  margin: 0 0 8px;
  color: var(--noir-muted);
  font-size: 15px;
  font-weight: 650;
}

.host-command-shell--noir.guided-command-center-ready > .host-page-phase {
  display: none;
}

.host-command-shell--noir .night-step {
  border-top-color: var(--noir-line);
}

.host-command-shell--noir .host-phase-header,
.host-command-shell--noir .guided-host-meta {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--noir-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.host-command-shell--noir .host-phase-header span:last-child,
.host-command-shell--noir .guided-host-meta span:last-child {
  color: var(--noir-text);
}

.host-command-shell--noir .host-current-action-title,
.host-command-shell--noir .guided-action-current h2 {
  margin: 0 0 14px;
  color: var(--noir-text);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.host-command-shell--noir .host-speaking-cue,
.host-command-shell--noir .guided-host-speaking-cue {
  margin: 0 0 16px;
  border: 1px solid var(--noir-line-strong);
  border-left: 4px solid var(--noir-accent);
  border-radius: 6px;
  background: var(--noir-raised);
  padding: 14px 14px 15px;
}

.host-command-shell--noir .host-speaking-cue-label,
.host-command-shell--noir .guided-host-speaking-cue p:first-child {
  margin: 0 0 7px;
  color: #ef5361;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.host-command-shell--noir .host-speaking-cue-text,
.host-command-shell--noir .guided-host-speaking-cue p:last-child {
  margin: 0;
  color: var(--noir-text);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

.host-command-shell--noir .host-action-instruction {
  margin: 0 0 14px;
  color: var(--noir-muted);
  font-size: 15px;
  line-height: 1.45;
}

.host-command-shell--noir .status-label {
  color: #ef5361;
}

.host-command-shell--noir .guided-host-next {
  color: var(--noir-muted);
}

.host-command-shell--noir .guided-seat-picker legend {
  margin-bottom: 8px;
  color: var(--noir-text);
  font-size: 14px;
  font-weight: 750;
}

.host-command-shell--noir .guided-seat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.host-command-shell--noir .guided-seat-grid .host-seat-option {
  display: grid;
  min-height: 62px;
  align-content: center;
  place-items: center;
  gap: 1px;
  border: 1px solid var(--noir-line);
  border-radius: 6px;
  background: #101216;
  color: var(--noir-text);
  padding: 7px;
}

.host-command-shell--noir .host-seat-option small {
  color: var(--noir-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.host-command-shell--noir .host-seat-option strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.host-command-shell--noir .guided-seat-grid input:checked + .host-seat-option {
  border: 2px solid var(--noir-accent-active);
  background: #2a0e13;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}

.host-command-shell--noir .guided-seat-grid input:focus-visible + .host-seat-option {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.host-command-shell--noir .guided-action-footer {
  border-top-color: var(--noir-line);
  background: var(--noir-panel);
}

.host-command-shell--noir .guided-action-footer .primary-action {
  min-height: 52px;
}

.host-command-shell--noir .primary-action,
.host-command-shell--noir .primary-link {
  min-height: 52px;
  border: 1px solid #e44856;
  border-radius: 6px;
  background: var(--noir-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.host-command-shell--noir .primary-action:hover,
.host-command-shell--noir .primary-link:hover,
.host-command-shell--noir .primary-action:focus-visible,
.host-command-shell--noir .primary-link:focus-visible {
  background: var(--noir-accent-active);
}

.host-command-shell--noir .secondary-action,
.host-command-shell--noir .guided-host-help > summary,
.host-command-shell--noir .guided-host-history > summary {
  min-height: 48px;
  border-color: var(--noir-line);
  color: var(--noir-text);
}

.host-command-shell--noir .guided-host-help > summary,
.host-command-shell--noir .guided-host-history > summary {
  display: flex;
  align-items: center;
}

.host-command-shell--noir .notice-error {
  border-left-color: var(--noir-accent-active);
  color: #ffb9c0;
}

/* Final Host polish: First Night uses the accepted Noir controls without
   changing its existing forms or action order. */
.host-command-shell--first-night .participant-initialization,
.host-command-shell--first-night .night-intent-state,
.host-command-shell--first-night .mafia-turn,
.host-command-shell--first-night .lover-turn,
.host-command-shell--first-night .doctor-turn,
.host-command-shell--first-night .rastaman-turn {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.host-command-shell--first-night .intent-warning {
  border-left-color: var(--noir-accent);
  color: var(--noir-muted);
}

.host-command-shell--first-night .guided-seat-picker {
  min-height: 0;
  margin: 0;
  border-color: var(--noir-line);
  padding: 0;
}

.host-command-shell--first-night .guided-seat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.host-command-shell--first-night .night-intent-edit > summary {
  min-height: 48px;
  color: var(--noir-text);
}

.host-command-shell--vote-review .guided-host-history:not(.current-action-history) {
  display: none;
}

.host-command-shell--resolution .morning-commit-plan-available,
.host-command-shell--resolution .morning-action,
.host-command-shell--resolution .classic-victory-terminal_ready {
  border-left: 0;
}

@media (max-width: 600px) {
  .noir-host-page .shell:has(.host-command-shell--noir) {
    padding: 0;
  }

  .host-command-shell--noir {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: 14px 14px 0;
    box-shadow: none;
  }

  .host-command-shell--noir.host-one-action {
    height: 100dvh;
  }

  .host-command-shell--noir .guided-action-current {
    padding-top: 8px;
  }

  .host-command-shell--noir .guided-action-content {
    padding-inline: 0;
  }

  .host-command-shell--noir .host-current-action-title,
  .host-command-shell--noir .guided-action-current h2 {
    font-size: 28px;
  }

  .host-command-shell--noir .guided-action-footer {
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  }
}

/* Noir Command Center V1: bounded Day grammar for high-frequency Host actions. */
.noir-day-page {
  --noir-bg: #090a0c;
  --noir-panel: #121419;
  --noir-raised: #1b1e24;
  --noir-line: #3a3e46;
  --noir-line-strong: #555b65;
}

.host-command-shell--day .day-cycle-step,
.host-command-shell--day .day-one-will-flow,
.host-command-shell--day .day-one-ordinary-nomination,
.host-command-shell--day .day-one-primary-voting {
  border-top-color: var(--noir-line);
  border-left-color: var(--noir-line);
}

.host-command-shell--day .host-action-instruction {
  margin-bottom: 12px;
}

.host-command-shell--day .day-cycle-timer {
  display: flex;
  width: 100%;
  min-height: 94px;
  max-width: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  border: 1px solid var(--noir-line-strong);
  border-left: 4px solid var(--noir-accent);
  border-radius: 6px;
  background: var(--noir-raised);
  color: var(--noir-text);
  font-size: 48px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.host-command-shell--day .day-cycle-timer.timer-expired::after {
  margin-top: 8px;
  color: #ef5361;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.host-command-shell--day .will-expiry-note {
  margin: -4px 0 12px;
  border-left: 3px solid var(--noir-accent);
  color: var(--noir-text);
  padding-left: 10px;
  font-size: 14px;
  font-weight: 700;
}

.host-command-shell--day .will-target-picker {
  margin-top: 2px;
}

.host-command-shell--day .will-target-picker .guided-seat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.host-command-shell--day .ordinary-candidate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.host-command-shell--day .ordinary-candidate-grid .host-seat-option {
  display: grid;
  min-height: 62px;
  align-content: center;
  place-items: center;
  gap: 1px;
  border: 1px solid var(--noir-line);
  border-radius: 6px;
  background: #14171c;
  color: var(--noir-text);
  padding: 7px;
}

.host-command-shell--day .ordinary-candidate-grid .host-seat-option,
.host-command-shell--day .will-target-picker .host-seat-option {
  position: relative;
  overflow: hidden;
}

.host-command-shell--day .ordinary-candidate-grid input:checked + .host-seat-option::after,
.host-command-shell--day .will-target-picker input:checked + .host-seat-option::after {
  content: "Выбрано";
  position: absolute;
  right: 4px;
  bottom: 3px;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.host-command-shell--day .ordinary-candidate-grid input:disabled + .host-seat-option::after {
  content: "Лимит";
  position: absolute;
  right: 4px;
  bottom: 3px;
  color: var(--noir-muted);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.host-command-shell--day .host-seat-option small {
  color: var(--noir-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.host-command-shell--day .host-seat-option strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.host-command-shell--day .ordinary-candidate-grid input:checked + .host-seat-option {
  border: 2px solid var(--noir-accent-active);
  background: #2a0e13;
  color: var(--noir-text);
}

.host-command-shell--day .ordinary-candidate-grid input:focus-visible + .host-seat-option {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.host-command-shell--day .vote-stepper {
  width: min(100%, 340px);
  grid-template-columns: 68px minmax(110px, 1fr) 68px;
  gap: 10px;
  margin: 8px auto 12px;
}

.host-command-shell--day .vote-stepper button,
.host-command-shell--day .vote-stepper input {
  min-height: 64px;
  border: 1px solid var(--noir-line-strong);
  border-radius: 6px;
  background: var(--noir-raised);
  color: var(--noir-text);
}

.host-command-shell--day .vote-stepper button {
  font-size: 30px;
}

.host-command-shell--day .vote-stepper input {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

.host-command-shell--day .vote-stepper button:focus-visible,
.host-command-shell--day .vote-stepper input:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.host-command-shell--day .day-vote-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.host-command-shell--day .day-vote-context p {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--noir-line);
  border-radius: 6px;
  background: var(--noir-raised);
  color: var(--noir-muted);
  padding: 10px;
  font-size: 13px;
  line-height: 1.3;
}

.host-command-shell--day .day-vote-context strong {
  display: block;
  margin-top: 3px;
  color: var(--noir-text);
  font-size: 20px;
}

.host-command-shell--day .vote-stepper + .day-vote-context,
.host-command-shell--day label + .vote-stepper {
  margin-top: 4px;
}

.host-command-shell--day .guided-action-footer .secondary-action {
  border-color: var(--noir-line-strong);
  background: var(--noir-raised);
  color: var(--noir-text);
}

.host-command-shell--resolution .host-result-card,
.host-command-shell--noir .host-command-shell--resolution .host-result-card {
  margin: 0 0 14px;
  border: 1px solid var(--noir-line-strong);
  border-left: 4px solid var(--noir-accent);
  border-radius: 6px;
  background: var(--noir-raised);
  color: var(--noir-text);
  padding: 14px;
}

.host-command-shell--resolution .host-result-card strong {
  display: block;
  color: var(--noir-text);
  font-size: 19px;
  line-height: 1.25;
}

.host-command-shell--resolution .host-result-card p {
  margin: 6px 0 0;
  color: var(--noir-muted);
  line-height: 1.4;
}

.host-command-shell--resolution select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--noir-line-strong);
  border-radius: 6px;
  background: var(--noir-raised);
  color: var(--noir-text);
  padding: 10px 12px;
  font-size: 16px;
}

.host-command-shell--resolution .morning-plan-details,
.host-command-shell--resolution .day-one-completion-warning {
  margin: 10px 0 14px;
}

.host-command-shell--resolution .morning-plan-details > summary,
.host-command-shell--resolution .day-one-completion-warning > summary {
  min-height: 48px;
}

.host-command-shell--resolution .morning-plan-group {
  margin-top: 12px;
  border-top: 1px solid var(--noir-line);
  padding-top: 10px;
}

@media (max-width: 600px) {
  .noir-day-page .shell:has(.host-command-shell--day) {
    padding: 0;
  }

  .host-command-shell--day .day-cycle-timer {
    min-height: 84px;
    font-size: 44px;
  }

  .host-command-shell--day .ordinary-candidate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .host-command-shell--day .will-target-picker .guided-seat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Noir Command Center V1: calm entry grammar for setup, briefing and acquaintance. */
.noir-entry-page {
  --noir-bg: #08090b;
  --noir-panel: #111419;
  --noir-raised: #191d22;
  --noir-line: #383d44;
  --noir-line-strong: #575e68;
}

.noir-entry-page .shell {
  background: var(--noir-bg);
}

.host-command-shell--entry {
  overflow: hidden;
  box-shadow: 0 18px 54px rgb(0 0 0 / 38%);
}

.host-command-shell--entry.host-one-action {
  max-height: 100dvh;
}

.host-command-shell--entry .entry-phase,
.host-command-shell--entry .status-label,
.host-command-shell--entry .scenario-label {
  margin: 0 0 8px;
  color: #d84956;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.host-command-shell--entry > h1,
.host-command-shell--entry .entry-action h2 {
  margin: 0 0 12px;
  color: var(--noir-text);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.host-command-shell--entry .entry-lede,
.host-command-shell--entry .entry-action > p,
.host-command-shell--entry .field-help {
  color: var(--noir-muted);
  line-height: 1.45;
}

.host-command-shell--entry .entry-action,
.host-command-shell--entry .role-recommendation,
.host-command-shell--entry .pre-game-briefing-entry,
.host-command-shell--entry .guidance-state,
.host-command-shell--entry .guidance-step,
.host-command-shell--entry .guidance-complete {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.host-command-shell--entry .host-form {
  gap: 10px;
  margin-top: 18px;
}

.host-command-shell--entry input,
.host-command-shell--entry select {
  min-height: 52px;
  border-color: var(--noir-line-strong);
  border-radius: 6px;
  background: var(--noir-raised);
  color: var(--noir-text);
}

.host-command-shell--entry input:focus-visible,
.host-command-shell--entry select:focus-visible,
.host-command-shell--entry button:focus-visible,
.host-command-shell--entry a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.host-entry-surface {
  display: flex;
  min-height: min(680px, calc(100dvh - 48px));
  flex-direction: column;
}

.host-entry-surface .entry-club-name {
  margin: 0;
  color: var(--noir-muted);
}

.host-entry-surface .entry-active-session {
  margin-top: 24px;
  border: 1px solid var(--noir-line);
  border-left: 4px solid var(--noir-accent);
  border-radius: 6px;
  background: var(--noir-raised);
  padding: 14px;
}

.host-entry-surface .entry-active-session h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.host-entry-surface .entry-action-form {
  margin-top: auto;
  padding-top: 22px;
}

.host-entry-surface .entry-action-form .primary-action,
.host-entry-surface .entry-action-form .secondary-action {
  width: 100%;
  min-height: 52px;
  margin: 0;
}

.host-command-shell--entry .guided-action-current {
  padding-top: 6px;
}

.host-command-shell--entry .guided-action-content {
  scrollbar-color: var(--noir-line-strong) transparent;
}

.host-command-shell--entry .guided-action-footer {
  border-top-color: var(--noir-line);
  background: var(--noir-panel);
}

.host-command-shell--entry .recommended-deck-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.host-command-shell--entry .recommended-deck-list li {
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--noir-line);
  border-radius: 6px;
  background: var(--noir-raised);
  padding: 9px 10px;
}

.host-command-shell--entry .recommended-deck-list strong {
  display: grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: 4px;
  background: #2a0e13;
  color: #ff8d97;
  font-variant-numeric: tabular-nums;
}

.host-command-shell--entry .deck-side-summary,
.host-command-shell--entry .deck-total-status {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.host-command-shell--entry .deck-side-summary span,
.host-command-shell--entry .deck-total-status span {
  min-width: 0;
  border-color: var(--noir-line);
  border-radius: 6px;
  background: var(--noir-raised);
  padding: 8px 5px;
  color: var(--noir-muted);
  font-size: 12px;
}

.host-command-shell--entry .deck-side-summary strong,
.host-command-shell--entry .deck-total-status strong {
  display: block;
  color: var(--noir-text);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.host-command-shell--entry .deck-total-status p {
  color: var(--noir-text);
  font-size: 15px;
}

.host-command-shell--entry .manual-deck {
  margin: 0;
  border: 0;
  padding: 0;
}

.host-command-shell--entry .deck-role-group {
  margin-top: 12px;
  border-top-color: var(--noir-line);
  padding-top: 12px;
}

.host-command-shell--entry .deck-role-group legend {
  color: var(--noir-text);
  font-size: 17px;
}

.host-command-shell--entry .deck-role-row {
  border-bottom-color: var(--noir-line);
  padding: 10px 0;
}

.host-command-shell--entry .deck-role-copy strong {
  font-size: 16px;
}

.host-command-shell--entry .deck-role-copy span {
  color: var(--noir-muted);
  font-size: 13px;
  line-height: 1.35;
}

.host-command-shell--entry .deck-role-stepper {
  grid-template-columns: 48px 58px 48px;
}

.host-command-shell--entry .deck-count-button,
.host-command-shell--entry .deck-replace-button {
  border-color: var(--noir-line-strong);
  border-radius: 6px;
  background: var(--noir-raised);
  color: var(--noir-text);
}

.host-command-shell--entry .deck-editor-actions .secondary-action,
.host-command-shell--entry .entry-deck > .secondary-action {
  border-color: var(--noir-line);
  color: var(--noir-muted);
}

.host-command-shell--briefing .briefing-section {
  border: 0;
}

.host-command-shell--briefing .briefing-speaking-cue {
  margin-top: 4px;
}

.host-command-shell--briefing .briefing-speaking-cue .host-speaking-cue-text + .host-speaking-cue-text {
  margin-top: 10px;
  border-top: 1px solid var(--noir-line);
  padding-top: 10px;
}

.host-command-shell--briefing .pre-game-role-list {
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.host-command-shell--briefing .pre-game-role-list li {
  border: 1px solid var(--noir-line);
  border-radius: 6px;
  background: var(--noir-raised);
  padding: 12px;
}

.host-command-shell--briefing .pre-game-role-list strong {
  display: block;
  margin-bottom: 5px;
  color: #ff8d97;
}

.host-command-shell--briefing .pre-game-role-list .briefing-speech {
  color: var(--noir-text);
  font-size: 16px;
  line-height: 1.45;
}

.host-command-shell--briefing .briefing-back {
  border-color: var(--noir-line);
  color: var(--noir-muted);
}

.host-command-shell--acquaintance .hidden-information {
  color: #d84956;
}

.host-command-shell--acquaintance .acquaintance-role-step {
  gap: 12px;
}

.host-command-shell--acquaintance .selection-counter {
  border-color: var(--noir-line-strong);
  background: var(--noir-raised);
  color: var(--noir-muted);
}

.host-command-shell--acquaintance .selection-counter strong {
  color: var(--noir-text);
  font-variant-numeric: tabular-nums;
}

.host-command-shell--acquaintance .acquaintance-seat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.host-command-shell--acquaintance .acquaintance-seat-choice {
  min-height: 66px;
  border: 1px solid var(--noir-line);
  border-radius: 6px;
  background: #14171c;
  color: var(--noir-text);
  padding: 8px;
}

.host-command-shell--acquaintance .acquaintance-seat-choice.is-selected {
  border: 2px solid var(--noir-accent-active);
  background: #2a0e13;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}

.host-command-shell--acquaintance .acquaintance-seat-choice.is-assigned {
  border-style: dashed;
  background: #0e1013;
  opacity: 0.5;
}

.host-command-shell--acquaintance .seat-choice-number {
  color: var(--noir-text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.host-command-shell--acquaintance .seat-choice-state {
  color: var(--noir-muted);
  font-size: 11px;
}

.host-command-shell--acquaintance .speaking-cue-after {
  opacity: 0.78;
}

.host-command-shell--acquaintance .acquaintance-opening-cue {
  border-left-width: 1px;
  background: transparent;
  padding-block: 10px;
  opacity: 0.72;
}

.host-command-shell--acquaintance .acquaintance-opening-cue .host-speaking-cue-text {
  font-size: 16px;
}

@media (max-width: 600px) {
  .noir-entry-page .shell {
    padding: 0;
  }

  .host-command-shell--entry {
    height: 100dvh;
    padding: 14px 14px 0;
  }

  .host-entry-surface {
    min-height: 100dvh;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .host-command-shell--entry > h1,
  .host-command-shell--entry .entry-action h2 {
    font-size: 28px;
  }

  .host-command-shell--entry .entry-action-form {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .host-command-shell--entry .deck-role-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .host-command-shell--entry .deck-replace-button {
    grid-column: 1 / -1;
    width: auto;
  }

  .host-command-shell--entry .deck-editor-actions .secondary-action {
    width: auto;
  }
}

@media (max-width: 370px) {
  .host-command-shell--entry .recommended-deck-list {
    grid-template-columns: 1fr;
  }

  .host-command-shell--entry .acquaintance-seat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
