:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #62706c;
  --paper: #fffaf2;
  --panel: rgba(255, 250, 242, 0.92);
  --line: rgba(23, 33, 31, 0.12);
  --coral: #d9472f;
  --coral-dark: #a83225;
  --teal: #0d766f;
  --teal-soft: #d8f2ee;
  --sun: #f6bd3f;
  --sea: #123c52;
  --shadow: 0 24px 70px rgba(18, 60, 82, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f5eadb;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: linear-gradient(135deg, #123c52 0%, #0d766f 48%, #fffaf2 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, transparent 0 34rem, #fffaf2 34rem 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.flow-page .app-shell {
  padding-top: 34px;
}

.flow-page .hero {
  display: none;
}

.flow-page .app-section {
  margin-top: 0;
}

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 82vh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 0;
  background: #fffaf2;
}

.hero-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fffaf2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-gallery img,
.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  filter: none;
  opacity: 1;
}

.hero-gallery img {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  object-position: center top;
}

.hero-video-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-width: 0;
  background: #000;
}

.hero-video {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.16);
  transform-origin: center center;
}

.hero-video-frame:first-child .hero-video {
  object-position: center 36%;
}

.hero-video-frame:nth-child(2) .hero-video {
  object-position: center 44%;
  transform: scale(1.34);
}

.topbar {
  position: fixed;
  left: 18px;
  top: 50%;
  bottom: auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(-50%);
}

.hero .topbar {
  width: auto;
  margin: 0;
}

.hero .hero-copy {
  position: relative;
  z-index: 2;
}

.brand {
  color: #fffaf2;
  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: clamp(1.35rem, 2.1vw, 2.35rem);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
}

.brand span:nth-child(8n + 1) {
  color: #f9e27d;
}

.brand span:nth-child(8n + 2) {
  color: #ff6f61;
}

.brand span:nth-child(8n + 3) {
  color: #50d6c8;
}

.brand span:nth-child(8n + 4) {
  color: #ffffff;
}

.brand span:nth-child(8n + 5) {
  color: #ff9fd1;
}

.brand span:nth-child(8n + 6) {
  color: #76b7ff;
}

.brand span:nth-child(8n + 7) {
  color: #d8ff74;
}

.brand span:nth-child(8n + 8) {
  color: #f6bd3f;
}

.nav-actions {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 999px;
  background: rgba(18, 60, 82, 0.42);
  backdrop-filter: blur(14px);
}

.nav-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #fffaf2;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-actions button:hover {
  background: rgba(255, 250, 242, 0.16);
}

.hero-copy {
  align-self: end;
  width: min(660px, 100%);
  color: #fffaf2;
  padding-bottom: 34px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.48);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.3rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 5px;
}

.hero-copy p:not(.eyebrow) {
  width: min(580px, 100%);
  color: rgba(255, 250, 242, 0.86);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  position: fixed;
  left: 16px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: calc(100vw - 128px);
  margin-top: 0;
}

.admin-corner-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  min-height: 44px;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  color: #fffaf2;
  background: rgba(18, 60, 82, 0.78);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  font-weight: 900;
}

.app-section {
  scroll-margin-top: 18px;
}

.button,
button.primary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  box-shadow: 0 16px 30px rgba(168, 50, 37, 0.24);
}

.gold-btn {
  color: #111;
  background: linear-gradient(45deg, #d4af37, #f9e27d);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.32);
  text-transform: uppercase;
}

.gold-btn:hover {
  transform: translateY(-1px) scale(1.02);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 250, 242, 0.9);
  box-shadow: none;
}

.hero-actions .button {
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  text-transform: none;
}

.hero-actions .button:nth-child(1) {
  color: #111;
  background: linear-gradient(45deg, #d4af37, #f9e27d);
}

.hero-actions .button:nth-child(2) {
  background: linear-gradient(135deg, #0d766f, #123c52);
}

.hero-actions .button:nth-child(3) {
  background: linear-gradient(135deg, #d9472f, #a83225);
}

.hero-actions .button:nth-child(4) {
  background: linear-gradient(135deg, #6f3bd4, #2f5bd9);
}

.hero-actions .button:nth-child(5) {
  background: linear-gradient(135deg, #1f9f5b, #0f5d36);
}

.hero-actions .button:nth-child(6) {
  background: linear-gradient(135deg, #c7257c, #7c1d5f);
}

.hero-actions .button:nth-child(7) {
  background: linear-gradient(135deg, #204fcf, #0f8a9f);
}

button.secondary {
  color: var(--ink);
  background: rgba(255, 250, 242, 0.9);
}

.dashboard-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: -62px;
  position: relative;
  z-index: 1;
}

.metric,
.event-panel,
.main-panel,
.judging-panel,
.register-panel,
.ticket-panel,
.sponsor-panel,
.jobs-panel,
.terms-panel,
.faq-panel,
.admin-panel,
.results-panel,
.glam-panel,
.map-panel,
.split-section {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 8px;
}

.metric span,
.leader-row p,
.contestant-card p,
.score-card p,
.house-rules p {
  color: var(--muted);
}

.metric strong {
  font-size: 2rem;
}

.workspace {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 18px;
  margin-top: 18px;
}

.event-panel,
.main-panel,
.judging-panel,
.register-panel,
.ticket-panel,
.sponsor-panel,
.jobs-panel,
.terms-panel,
.faq-panel,
.admin-panel,
.results-panel,
.glam-panel,
.map-panel,
.split-section {
  border-radius: 8px;
  padding: 24px;
}

.section-title.row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}

.timeline time {
  color: var(--teal);
  font-weight: 900;
}

.house-rules {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(18, 60, 82, 0.08);
}

.filter-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--sea);
  background: transparent;
  font-weight: 900;
}

.filter-tabs button.active {
  color: white;
  background: var(--sea);
}

.leaderboard,
.contestant-grid,
.score-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.leader-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.rank,
.stage-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--sea);
  background: var(--teal-soft);
  font-weight: 900;
}

.leader-row strong {
  font-size: 1.4rem;
  color: var(--coral-dark);
}

.split-section,
.judging-panel,
.register-panel,
.payment-panel,
.ticket-panel,
.sponsor-panel,
.jobs-panel,
.terms-panel,
.faq-panel,
.results-panel,
.glam-panel,
.map-panel,
.admin-panel {
  margin-top: 18px;
}

.jobs-panel {
  color: #111;
  background: #fff;
}

.jobs-panel .section-title,
.jobs-panel .entry-form label,
.terms-panel .section-title,
.terms-panel .terms-copy,
.faq-panel .section-title,
.faq-panel .faq-groups {
  color: #111;
}

.jobs-panel .eyebrow,
.terms-panel .eyebrow,
.faq-panel .eyebrow {
  color: #111;
}

.terms-panel,
.faq-panel {
  color: #111;
  background: #fff;
}

.terms-copy,
.faq-groups {
  display: grid;
  gap: 18px;
}

.terms-copy article,
.faq-groups article {
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: #fff;
}

.terms-copy h3,
.faq-groups h3 {
  margin-bottom: 10px;
}

.terms-copy p,
.terms-copy li,
.faq-groups p {
  line-height: 1.55;
}

.terms-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.faq-groups details {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.faq-groups details:first-of-type {
  border-top: 0;
}

.faq-groups summary {
  cursor: pointer;
  padding: 14px 0;
  color: #111;
  font-weight: 900;
}

.faq-groups p {
  margin: 0 0 14px;
  color: #222;
}

.visible-faq article {
  display: grid;
  gap: 10px;
}

.visible-faq p {
  padding: 12px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  color: #111;
}

.visible-faq p:first-of-type {
  border-top: 0;
}

.jobs-panel input {
  color: #111;
  background: #fff;
  border-color: rgba(17, 17, 17, 0.28);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.admin-metrics article {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.admin-metrics span {
  color: var(--muted);
  font-weight: 800;
}

.admin-metrics strong {
  font-size: 1.8rem;
}

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

.admin-actions,
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.admin-nav {
  justify-content: flex-start;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.payment-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.payment-card h3 {
  margin: 4px 0 8px;
  font-size: 1.7rem;
}

.payment-status {
  display: grid;
  gap: 6px;
  min-width: 130px;
  padding: 13px 16px;
  border-radius: 8px;
  background: rgba(18, 60, 82, 0.08);
}

.payment-status span {
  color: var(--muted);
  font-weight: 900;
}

.admin-nav button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--sea);
  background: rgba(18, 60, 82, 0.08);
  font-weight: 900;
}

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

.admin-command-grid button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--sea);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.admin-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.admin-card.wide {
  grid-column: 1 / -1;
}

.live-capacity {
  margin-top: 14px;
}

.capacity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 900;
}

.capacity-row strong {
  color: var(--coral-dark);
}

.capacity-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 60, 82, 0.1);
}

.capacity-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  transition: width 200ms ease;
}

.admin-card h3 {
  margin: 0;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.segment-pricing-list {
  display: grid;
  gap: 10px;
}

.segment-price-row {
  display: grid;
  grid-template-columns: 1fr 160px 160px auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 60, 82, 0.06);
}

.segment-price-row div,
.segment-price-row label {
  display: grid;
  gap: 6px;
}

.segment-price-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.segment-price-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

.admin-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(18, 60, 82, 0.06);
  font-weight: 800;
}

.admin-list strong {
  color: var(--ink);
}

.admin-table {
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

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

dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(18, 60, 82, 0.28);
}

dialog::backdrop {
  background: rgba(18, 60, 82, 0.36);
  backdrop-filter: blur(6px);
}

.admin-login-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
}

.admin-login-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.ticket-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 22px;
}

.ticket-grid.single {
  grid-template-columns: 1fr;
}

.gala-access-card {
  background: linear-gradient(145deg, rgba(18, 60, 82, 0.94), rgba(23, 33, 31, 0.92));
  color: #fffaf2;
}

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

.gala-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 210px;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(15px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gala-card:hover {
  transform: translateY(-6px);
  border-color: #d4af37;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.gala-card.premium {
  border: 2px solid #d4af37;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.18);
}

.gala-card.sold-out {
  opacity: 0.48;
  cursor: not-allowed;
}

.gala-card h3,
.gala-card p {
  margin: 0;
}

.gala-card p {
  color: rgba(255, 250, 242, 0.78);
}

.price {
  color: #d4af37 !important;
  font-size: 2.1rem;
  font-weight: 900;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #111;
  background: #d4af37;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-btn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #111;
  background: linear-gradient(45deg, #d4af37, #f9e27d);
  font-weight: 900;
  text-transform: uppercase;
}

.service-grid,
.tour-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.service-card,
.tour-current,
.ticket-status-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.service-card p,
.tour-current p,
.ticket-status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-card strong,
.tour-current strong {
  color: var(--coral-dark);
  font-size: 1.5rem;
}

.tour-current {
  grid-column: span 1;
}

.tour-current span {
  color: var(--muted);
  font-weight: 900;
}

.tour-city-list {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tour-city-list button {
  min-height: 68px;
  display: grid;
  gap: 4px;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  font-weight: 900;
}

.tour-city-list button.active {
  color: white;
  background: var(--sea);
}

.tour-city-list span {
  color: inherit;
  opacity: 0.72;
  font-size: 0.88rem;
}

#city-selector {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

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

.ticket-status-card {
  gap: 9px;
  padding: 12px;
}

.ticket-status-card h4 {
  margin: 0;
}

.progress-container {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 60, 82, 0.1);
}

.progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4af37, var(--coral));
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.result-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.result-card p {
  margin: 0;
  color: var(--muted);
}

.result-card strong {
  color: var(--coral-dark);
  font-size: 1.35rem;
}

.ticket-card,
.audience-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.ticket-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

.ticket-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ticket-options {
  display: grid;
  gap: 8px;
}

.ticket-options span,
.seat-meter span,
.ticket-note {
  color: var(--muted);
  font-weight: 800;
}

.ticket-options span {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(13, 118, 111, 0.09);
}

.price-label {
  font-size: 1.5rem;
  color: var(--coral-dark);
}

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

.seat-meter span {
  padding: 12px;
  border-radius: 8px;
  background: rgba(18, 60, 82, 0.08);
}

.seat-meter strong {
  display: block;
  color: var(--ink);
  font-size: 1.8rem;
}

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

.audience-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.audience-form input,
.audience-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.attendee-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 60, 82, 0.06);
}

.attendee-list h4 {
  margin: 0;
  color: var(--ink);
}

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

.seating-map-wrap {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.seating-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.seating-map-header strong {
  color: var(--ink);
}

.seating-map {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  max-height: 190px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 60, 82, 0.06);
}

.seat {
  aspect-ratio: 1;
  min-width: 8px;
  border-radius: 2px;
  background: rgba(13, 118, 111, 0.35);
}

.seat.sold {
  background: var(--coral);
}

.audience-form button {
  width: fit-content;
  min-width: 210px;
}

.audience-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.audience-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.8fr 0.8fr 0.8fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}

.audience-row span {
  color: var(--muted);
  font-weight: 800;
}

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

.sponsor-logo-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.sponsor-logo-card img {
  max-width: 160px;
  max-height: 70px;
  object-fit: contain;
}

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

.contestant-card,
.score-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.check-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.score-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}

output {
  justify-self: start;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.entry-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-top: 22px;
}

.entry-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.entry-form input,
.entry-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.form-check,
.consent-row {
  grid-column: 1 / -1;
}

.consent-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-content: start;
}

.entry-form button[type="submit"] {
  width: fit-content;
  min-width: 170px;
}

.entry-form input:focus,
.entry-form select:focus {
  outline: 3px solid rgba(13, 118, 111, 0.16);
  border-color: var(--teal);
}

@media (max-width: 940px) {
  .dashboard-band,
  .workspace,
  .ticket-grid,
  .results-grid,
  .service-grid,
  .tour-map-grid,
  .tour-city-list,
  .gala-grid,
  .segment-status-grid,
  .admin-metrics,
  .admin-grid,
  .admin-command-grid,
  .audience-form,
  .audience-row,
  .attendee-row,
  .payment-card,
  .sponsor-strip,
  .segment-price-row,
  .contestant-grid,
  .score-grid,
  .entry-form {
    grid-template-columns: 1fr;
  }

  .dashboard-band {
    margin-top: 0;
  }

  .hero {
    min-height: 720px;
  }

  .section-title.row,
  .topbar {
    display: grid;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    border-radius: 8px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    min-height: 660px;
  }

  .hero-copy {
    padding-bottom: 30px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .leader-row {
    grid-template-columns: 44px 1fr;
  }

  .leader-row strong {
    grid-column: 2;
  }

  .filter-tabs,
  .hero-actions {
    width: 100%;
  }

  .hero-actions {
    left: 10px;
    right: 10px;
    bottom: 78px;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-corner-button {
    right: 10px;
    bottom: 18px;
  }

  .topbar {
    left: 10px;
    right: auto;
    top: 50%;
    bottom: auto;
  }

  .brand {
    width: auto;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    line-height: 0.8;
    gap: 0;
  }

  .filter-tabs {
    overflow-x: auto;
    border-radius: 8px;
  }

  .button,
  button.primary {
    width: 100%;
  }
}
