:root {
  --blue: #073b7a;
  --blue2: #0b56a6;
  --cyan: #16b8d4;
  --red: #d51f2b;
  --gold: #f3b51b;
  --ink: #172033;
  --muted: #657089;
  --line: #dce3ee;
  --bg: #f3f6fb;
  --white: #fff;
  --good: #087f5b;
  --warn: #b46800;
  --bad: #c92a2a;
  --shadow: 0 12px 36px rgba(23, 32, 51, 0.11);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--blue);
}
.loading span {
  width: 28px;
  height: 28px;
  border: 3px solid #c9d7eb;
  border-top-color: var(--blue2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.center-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
}
.auth-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #031d42 0%, #084c98 55%, #0b7aae 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 6rem);
}
.auth-hero:before,
.auth-hero:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}
.auth-hero:before {
  width: 560px;
  height: 560px;
  right: -160px;
  top: -210px;
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, 0.035),
    0 0 0 160px rgba(255, 255, 255, 0.025);
}
.auth-hero:after {
  width: 340px;
  height: 340px;
  left: -180px;
  bottom: -150px;
  background: rgba(22, 184, 212, 0.2);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  transform: translateY(-5%);
}
.brand-lockup,
.side-brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand-lockup small,
.side-brand small {
  display: block;
  letter-spacing: 0.08em;
  opacity: 0.78;
  margin-top: 0.2rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid currentColor;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.brand-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}
.mobile-brand .brand-logo {
  width: 58px;
  height: 58px;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 2.3rem 0 0.8rem;
  color: #83e5f3;
}
.eyebrow.blue {
  color: var(--blue2);
  margin-top: 0;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.98;
  margin: 0 0 1.25rem;
  letter-spacing: -0.045em;
}
.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 620px;
  color: #dceeff;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #fff;
}
.auth-card {
  width: min(100%, 450px);
  background: #fff;
  padding: 2rem;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.auth-panel .auth-card {
  box-shadow: none;
}
.auth-card h1,
.auth-card h2 {
  margin: 0.25rem 0 0.75rem;
  color: var(--blue);
}
.auth-card label,
.form-grid label {
  display: grid;
  gap: 0.42rem;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 1rem 0;
}
.mobile-brand {
  display: none;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 3px rgba(11, 86, 166, 0.12);
}
textarea {
  resize: vertical;
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(7, 59, 122, 0.16);
  filter: saturate(1.08);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn:focus-visible,
.nav-item:focus-visible,
.icon-button:focus-visible,
.link-button:focus-visible {
  outline: 3px solid rgba(22, 184, 212, 0.5);
  outline-offset: 2px;
}
.btn.primary {
  background: var(--blue2);
  color: #fff;
}
.btn.ghost {
  background: #edf2f8;
  color: var(--blue);
}
.btn.light {
  background: #fff;
  color: var(--blue);
}
.btn.danger {
  background: #fee2e2;
  color: var(--bad);
}
.btn.warning {
  background: #fff0c2;
  color: #8a5600;
}
.btn.good {
  background: #dff7ed;
  color: var(--good);
}
.btn.small {
  font-size: 0.78rem;
  padding: 0.48rem 0.65rem;
}
.btn.wide {
  width: 100%;
  margin-top: 0.75rem;
}
.link-button {
  border: 0;
  background: none;
  color: #cde4ff;
  padding: 0.25rem 0;
  text-align: left;
}
.form-message {
  min-height: 1.2rem;
  color: var(--bad);
  font-size: 0.88rem;
}
.muted {
  color: var(--muted);
}
code {
  background: #edf2f8;
  border-radius: 5px;
  padding: 0.12rem 0.35rem;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: linear-gradient(180deg, #072f64, #041b3c);
  color: #fff;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.side-brand {
  padding: 0.2rem 0.25rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.side-brand .brand-mark {
  width: 43px;
  height: 43px;
  font-size: 0.75rem;
}
.side-brand small {
  font-size: 0.64rem;
}
.sidebar nav {
  display: grid;
  gap: 0.25rem;
  padding: 1.2rem 0;
  overflow: auto;
}
.nav-item {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #d9e9ff;
  text-align: left;
  padding: 0.76rem 0.85rem;
  font-weight: 700;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.nav-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.18);
}
.nav-icon {
  width: 1.35rem;
  text-align: center;
}
.side-footer {
  margin-top: auto;
  padding: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.25rem;
}
.side-footer small {
  color: #9fc2ea;
}
.main-area {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 82px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2.25rem);
}
.topbar h1 {
  font-size: 1.35rem;
  margin: 0;
  color: var(--blue);
}
.topbar p {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 1.25rem;
  padding: 0.45rem;
  border-radius: 8px;
}
.icon-button:hover {
  background: #edf2f8;
}
#menuButton {
  display: none;
}
.status-dot {
  font-size: 0.8rem;
  color: var(--good);
  font-weight: 700;
}
.status-dot:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #20c997;
  border-radius: 50%;
  margin-right: 0.4rem;
}
#content {
  padding: clamp(1rem, 3vw, 2.25rem);
  max-width: 1500px;
  margin: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
.span-3 {
  grid-column: span 3;
}
.span-4 {
  grid-column: span 4;
}
.span-6 {
  grid-column: span 6;
}
.span-8 {
  grid-column: span 8;
}
.span-12 {
  grid-column: span 12;
}
.panel,
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 3px 14px rgba(23, 32, 51, 0.045);
  padding: 1.15rem;
}
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card:after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(11, 86, 166, 0.07);
  right: -18px;
  top: -18px;
}
.stat-card small {
  color: var(--muted);
  font-weight: 700;
}
.stat-card strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  margin: 0.45rem 0;
}
.panel h2 {
  font-size: 1rem;
  color: var(--blue);
  margin: 0 0 1rem;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.action-toolbar {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 3px 14px rgba(23, 32, 51, 0.04);
}
.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.table-wrap {
  overflow: visible;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.data-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.data-section > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0.9rem 1rem;
  color: var(--blue);
  font-weight: 800;
  list-style: none;
  transition: background-color 0.18s ease;
}
.data-section > summary::-webkit-details-marker {
  display: none;
}
.data-section > summary:hover {
  background: #f1f6fc;
}
.data-section > summary:before {
  content: "▸";
  color: var(--blue2);
  transition: transform 0.18s ease;
}
.data-section[open] > summary:before {
  transform: rotate(90deg);
}
.data-section > summary span {
  margin-right: auto;
}
.data-count {
  font-size: 0.78rem;
  color: var(--muted);
}
.data-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.65rem;
  padding: 0.85rem;
  background: #f7f9fc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.data-controls label {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  color: #44506a;
  font-size: 0.75rem;
  font-weight: 800;
}
.data-controls input,
.data-controls select {
  padding: 0.6rem 0.7rem;
}
.data-section .table-wrap {
  border: 0;
  border-radius: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
}
th,
td {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid #e7ecf3;
  text-align: left;
  font-size: 0.84rem;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}
th {
  background: #f4f7fb;
  color: #44506a;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
}
tr:last-child td {
  border-bottom: 0;
}
.record-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.record-section > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.18s ease;
}
.record-section > summary::-webkit-details-marker {
  display: none;
}
.record-section > summary:hover {
  background: #f1f6fc;
}
.record-section > summary:before {
  content: "▸";
  color: var(--blue2);
  transition: transform 0.18s ease;
}
.record-section[open] > summary:before {
  transform: rotate(90deg);
}
.record-section > summary span {
  margin-right: auto;
  font-size: 1rem;
}
.record-count {
  color: var(--muted);
  font-size: 0.78rem;
}
.record-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
  padding: 0.85rem;
  background: #f7f9fc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.record-controls label {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  color: #44506a;
  font-size: 0.75rem;
  font-weight: 800;
}
.record-controls input,
.record-controls select {
  padding: 0.6rem 0.7rem;
}
.record-list {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}
.registration-total {
  margin: 0.8rem 0 0;
}
.record-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(300px, 1.6fr) minmax(260px, auto);
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.record-row[hidden] {
  display: none !important;
}
.record-row:hover {
  border-color: #a8c1e3;
  box-shadow: 0 7px 20px rgba(23, 32, 51, 0.07);
  transform: translateY(-1px);
}
.record-main,
.record-meta {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}
.record-main strong {
  color: var(--blue);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}
.record-main span,
.record-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}
.record-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: #e8eef7;
  color: #42516d;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}
.badge.good {
  background: #dff7ed;
  color: var(--good);
}
.badge.warn {
  background: #fff0c2;
  color: var(--warn);
}
.badge.bad {
  background: #fee2e2;
  color: var(--bad);
}
.alert {
  border-left: 4px solid var(--blue2);
  background: #eef5ff;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  margin: 0.6rem 0;
  font-size: 0.86rem;
}
.alert.warning {
  border-color: var(--gold);
  background: #fff8dc;
}
.alert.error {
  border-color: var(--bad);
  background: #fff0f0;
}
.empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.form-grid label {
  margin: 0.65rem 0;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-divider {
  display: grid;
  gap: 0.25rem;
  margin: 0.9rem 0 0.15rem;
  padding: 0.75rem 0.85rem;
  border-left: 4px solid var(--blue2);
  border-radius: 8px;
  background: #eef5ff;
}
.form-divider small {
  color: var(--muted);
  font-weight: 500;
}
.required-mark {
  color: var(--bad);
  font-weight: 900;
}
.stage-card {
  text-align: center;
  background: radial-gradient(circle at 50% 0, #0b5eb3, #052651);
  color: #fff;
  border: 0;
}
.stage-card h2 {
  color: #d8efff;
}
.stage-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  font-size: clamp(3.2rem, 10vw, 8rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0.8rem 0;
}
.stage-clock.warning {
  color: #ffe17b;
}
.stage-clock.overtime {
  color: #ff7070;
  animation: pulse 0.8s infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.65;
  }
}
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(94vw, 720px);
  max-height: 92vh;
}
dialog::backdrop {
  background: rgba(3, 17, 38, 0.65);
  backdrop-filter: blur(3px);
}
.modal-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.modal-card > header,
.modal-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.modal-card > header h2 {
  margin: 0;
  color: var(--blue);
  font-size: 1.1rem;
}
.modal-card > footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
  gap: 0.5rem;
}
.modal-card > #modalBody {
  padding: 1rem 1.25rem;
  overflow: auto;
}
.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: grid;
  gap: 0.5rem;
}
.toast {
  background: #15243b;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 380px;
  animation: slide 0.2s ease;
}
.toast.error {
  background: #8f1d24;
}
@keyframes slide {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
}
.public-view {
  min-height: 100vh;
  background: #031934;
  color: #fff;
}
.public-header {
  height: 78px;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.public-header .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 0.72rem;
}
.public-main {
  max-width: 1400px;
  margin: auto;
  padding: 2rem clamp(1rem, 4vw, 3rem);
}
.public-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(2rem, 6vw, 5rem);
  background: linear-gradient(135deg, #16a1e3 0%, #0072bc 55%, #005896 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: min(70vh, 780px);
  display: grid;
  align-items: center;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0, 74, 135, 0.3);
}
.public-stage-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 80, 145, 0.16), rgba(0, 68, 125, 0.28));
}
.public-hero.has-stage-banner .public-stage-shade {
  background: linear-gradient(180deg, rgba(0, 114, 188, 0.06), rgba(0, 72, 132, 0.18));
}
.public-hero.has-stage-banner > .public-stage-content > .eyebrow,
.public-hero.has-stage-banner #publicEventName {
  display: none;
}
.public-stage-content {
  position: relative;
  z-index: 1;
}
.public-hero .eyebrow {
  margin: 0 0 0.8rem;
}
.public-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  margin: 0.3rem 0;
}
.public-hero h2 {
  font-size: 1.5rem;
  margin: 0.8rem 0 0.2rem;
}
.public-stage-live {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: stretch;
  margin-top: clamp(1.2rem, 3vw, 2.5rem);
}
.public-clock-panel,
.public-performance-panel {
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(0, 132, 207, 0.94), rgba(0, 86, 157, 0.94));
  box-shadow: 0 14px 34px rgba(0, 48, 94, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(2px);
}
.public-clock-panel .stage-clock {
  color: #fff;
  text-shadow: 0 4px 16px rgba(0, 35, 75, 0.38);
}
.public-clock-panel h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 35, 75, 0.32);
}
#publicStatus {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #0065a9;
  font-weight: 900;
  box-shadow: 0 5px 16px rgba(0, 47, 88, 0.2);
}
.public-performance-panel {
  text-align: left;
}
.public-performance-label {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.public-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
  margin-top: 1rem;
}
.public-grid .panel {
  background: #fff;
  color: var(--ink);
}
.public-grid table {
  min-width: 580px;
}
.kpi-list {
  display: grid;
  gap: 0.65rem;
}
.kpi-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem;
  border-radius: 8px;
  background: #f5f7fb;
}
.progress {
  height: 8px;
  background: #e5eaf2;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue2), var(--cyan));
}
.score-total {
  font-size: 1.35rem;
  color: var(--blue);
  font-weight: 900;
}
.file-drop {
  border: 2px dashed #b9c8dc;
  border-radius: 12px;
  padding: 1.3rem;
  text-align: center;
  background: #f8fbff;
}
.public-notice {
  border-left: 3px solid var(--cyan);
  padding: 0.4rem 0 0.4rem 0.8rem;
  margin: 0.8rem 0;
}
.checks {
  display: grid;
  gap: 0.5rem;
}
.check-row {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.public-banner,
.banner-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16/5;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
  background: #fff;
}
.banner-preview {
  max-height: 360px;
}
.stage-banner-preview {
  aspect-ratio: 16/9;
  max-height: 460px;
}
.current-performances {
  display: grid;
  gap: 0.65rem;
}
.current-performances span {
  display: block;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #fff;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  color: #064f88;
  box-shadow: 0 6px 14px rgba(0, 49, 91, 0.16);
}
.current-performances span::before {
  content: "♪";
  margin-right: 0.55rem;
  color: #ed1c24;
}
.judge-unit {
  margin-bottom: 1.4rem;
  border-left: 4px solid var(--cyan);
  padding-left: 1rem;
}
.result-live {
  margin-bottom: 1rem;
}
.result-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.result-live-grid > div {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fc;
}
.result-live-grid span {
  color: var(--muted);
  font-size: 0.76rem;
}
.result-live-grid b {
  color: var(--blue);
}
.final-award-summary {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.final-award-summary > .panel:first-child {
  border-left: 5px solid var(--blue);
}
.award-category h3 {
  margin: 0 0 0.75rem;
  color: var(--blue);
}
.award-table .award-row td {
  font-weight: 800;
  background: #fff4cc;
}
.award-table .review-row td {
  font-weight: 800;
  color: #a61e4d;
  background: #ffe3e3;
}
.award-table td:last-child {
  min-width: 180px;
}
.public-result {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0.65rem 0;
  overflow: hidden;
}
.public-result summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  cursor: pointer;
  background: #f7f9fc;
}
.public-result summary span,
.public-result summary small {
  display: block;
}
.public-result summary small {
  color: var(--muted);
  margin-top: 0.25rem;
}
.public-result > p,
.public-score-card {
  margin: 0;
  padding: 0.85rem;
  border-top: 1px solid var(--line);
}
.public-view:fullscreen {
  overflow: auto;
  background: #031934;
}
@media (max-width: 1050px) {
  .record-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .record-actions {
    justify-content: flex-start;
  }
  .span-3 {
    grid-column: span 6;
  }
  .span-4 {
    grid-column: span 6;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    display: none;
  }
  .auth-panel {
    min-height: 100vh;
    background: linear-gradient(160deg, #eff6ff, #fff);
  }
  .auth-panel .auth-card {
    box-shadow: var(--shadow);
  }
  .mobile-brand {
    display: flex;
  }
  .public-grid {
    grid-template-columns: 1fr;
  }
  .public-stage-live {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-105%);
    transition: 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-area {
    grid-column: auto;
  }
  .topbar {
    height: 70px;
    padding: 0.7rem 1rem;
  }
  #menuButton {
    display: block;
  }
  .topbar h1 {
    font-size: 1.05rem;
  }
  .topbar p,
  .status-dot {
    display: none;
  }
  #content {
    padding: 1rem;
  }
  .span-3,
  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 12;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar > .actions {
    width: 100%;
  }
  .toolbar > .actions .btn {
    flex: 1;
  }
  .record-actions .btn {
    flex: 1 1 145px;
  }
  .result-live-grid {
    grid-template-columns: 1fr 1fr;
  }
  .public-main {
    padding: 1rem;
  }
  .public-header small {
    display: none;
  }
  .stage-clock {
    font-size: 4rem;
  }
  .auth-card {
    padding: 1.4rem;
  }
  .toast-region {
    left: 1rem;
    right: 1rem;
  }
  .toast {
    max-width: none;
  }
}
