:root {
  --bg: #f3f6fa;
  --bg-soft: #f8fafc;
  --panel: #ffffff;
  --panel-strong: #0f2742;
  --ink: #1f2d3d;
  --muted: #68778a;
  --line: #d9e0e8;
  --brand: #0b5cab;
  --brand-dark: #083b72;
  --brand-soft: #eaf3fb;
  --accent: #c58a2a;
  --success: #1f8a5b;
  --danger: #c2483d;
  --shadow: 0 18px 40px rgba(15, 39, 66, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: var(--ink);
  min-height: 100%;
}

body.screen-mode {
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 106, 0, 0.14), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(0, 209, 255, 0.14), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(255, 106, 0, 0.08), transparent 24%),
    linear-gradient(180deg, #0a0f1a 0%, #0b1220 58%, #09111c 100%);
  color: #eef6ff;
  height: 100vh;
  overflow: hidden;
}

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

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top right, rgba(11, 92, 171, 0.08), transparent 22%),
    radial-gradient(circle at left bottom, rgba(197, 138, 42, 0.08), transparent 20%);
}

body.screen-mode .site-bg {
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 106, 0, 0.10), transparent 18%),
    radial-gradient(circle at 88% 12%, rgba(0, 209, 255, 0.12), transparent 16%),
    linear-gradient(180deg, rgba(10, 15, 26, 0.82), rgba(9, 17, 28, 0.97));
}

.shell {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 252, 0.94);
  border-bottom: 1px solid rgba(15, 39, 66, 0.08);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand-block {
  display: grid;
  gap: 2px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links,
.nav-user,
.hero-actions,
.hero-note {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.user-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}

.page-main {
  padding: 18px 0 32px;
}

.screen-main {
  width: min(calc(100% - 6px), 1760px);
  height: 100vh;
  margin: 0 auto;
  padding: 4px 0 8px;
  overflow: hidden;
}

.hero,
.panel,
.auth-card {
  background: var(--panel);
  border: 1px solid rgba(15, 39, 66, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(7, 37, 69, 0.98), rgba(12, 84, 154, 0.96)),
    linear-gradient(180deg, #0f2742 0%, #0b5cab 100%);
  color: #f7fbff;
}

.hero-copy {
  max-width: 760px;
}

.hero p,
.screen-current-card p,
.screen-empty p {
  line-height: 1.7;
}

.hero p {
  color: rgba(247, 251, 255, 0.84);
}

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

.eyebrow,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #f7fbff;
}

.chip {
  background: #eef4f9;
  color: var(--brand-dark);
}

.chip-live {
  background: rgba(31, 138, 91, 0.12);
  color: var(--success);
}

.hero-note span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: rgba(247, 251, 255, 0.9);
}

.hero-status {
  margin-top: 14px;
}

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

h1 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  margin: 10px 0 8px;
}

h2 {
  font-size: 24px;
  margin-bottom: 0;
}

.stats-grid,
.panel-grid.two,
.meta-grid,
.form-grid.two {
  display: grid;
  gap: 14px;
}

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

.stat-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-card strong {
  display: block;
  font-size: 30px;
  margin-bottom: 6px;
  color: #ffffff;
}

.stat-card span {
  color: rgba(247, 251, 255, 0.78);
}

.panel-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  align-items: stretch;
}

.home-equal-grid > .home-equal-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-equal-grid > .home-equal-card .home-project-list {
  flex: 1;
}

.panel,
.auth-card {
  margin-top: 16px;
  padding: 18px;
}

.live-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.live-panel {
  padding: 18px;
  overflow: hidden;
}

.live-player {
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  background: #07111f;
}

.live-video {
  display: block;
  width: 100%;
  min-height: 560px;
  max-height: 70vh;
  border-radius: 24px;
  background: #07111f;
}

.live-player-note {
  margin: 14px 6px 0;
}

.live-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
}

.live-empty h2 {
  margin: 0 0 10px;
}

.live-empty p {
  margin: 0;
  color: var(--muted);
}

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

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-shell-loading {
  pointer-events: none;
}

.admin-shell-loading .admin-content {
  opacity: 0.45;
}

.admin-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 16px;
}

.admin-sidebar-panel,
.admin-nav-panel,
.admin-content-head {
  margin-top: 0;
}

.admin-sidebar-copy p,
.admin-content-head p {
  margin-bottom: 0;
  line-height: 1.6;
}

.admin-eyebrow {
  background: rgba(11, 92, 171, 0.12);
  color: var(--brand-dark);
}

.admin-sidebar-stats {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-stat-card {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #f1f6fc);
  border: 1px solid rgba(11, 92, 171, 0.10);
}

.admin-stat-card strong {
  font-size: 22px;
  color: var(--brand-dark);
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

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

.admin-tabs-vertical .tab-btn {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  text-align: left;
  border-radius: 14px;
}

.admin-tabs-vertical .tab-btn strong {
  font-size: 14px;
}

.admin-tabs-vertical .tab-btn span {
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  opacity: 0.75;
}

.admin-content {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.admin-content-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.admin-content-head h2 {
  margin: 8px 0 6px;
}

.admin-section-grid {
  margin-top: 0;
}

.tab-btn {
  padding: 10px 16px;
  border-radius: 10px;
  background: #f2f6fa;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.admin-project-card,
.rank-row,
.judge-row,
.project-admin-row,
.score-row,
.info-item,
.project-info-card {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 16px;
}

.admin-project-card {
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: grab;
}

.admin-project-card[data-project-card][draggable="true"]:hover {
  border-color: rgba(11, 92, 171, 0.28);
  box-shadow: 0 10px 24px rgba(11, 92, 171, 0.08);
  transform: translateY(-1px);
}

.admin-project-card[data-project-card][draggable="true"]:active {
  cursor: grabbing;
}

.admin-project-toolbar {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.admin-project-filter {
  flex: 1 1 360px;
  margin-bottom: 0;
}

.admin-global-minutes-form {
  flex: 0 0 auto;
}

.admin-project-bulk-actions {
  flex: 0 0 auto;
  margin-left: auto;
  margin-bottom: 0;
}

.admin-minutes-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-minutes-inline input {
  width: 92px;
}

.admin-inline-unit {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.small-btn {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
}

.project-card-dragging {
  opacity: 0.72;
  transform: scale(0.995);
}

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.project-stage-pill,
.project-next-step {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.project-stage-pill.stage-submitted {
  background: rgba(101, 116, 139, 0.12);
  color: #475569;
}

.project-stage-pill.stage-approved {
  background: rgba(11, 92, 171, 0.12);
  color: var(--brand-dark);
}

.project-stage-pill.stage-speaking {
  background: rgba(197, 138, 42, 0.16);
  color: #8c5e11;
}

.project-stage-pill.stage-speech_done,
.project-stage-pill.stage-scoring {
  background: rgba(31, 138, 91, 0.12);
  color: var(--success);
}

.project-stage-pill.stage-finished {
  background: rgba(128, 90, 213, 0.14);
  color: #6b46c1;
}

.project-next-step {
  background: rgba(15, 39, 66, 0.06);
  color: var(--muted);
}

.project-order-no {
  color: var(--brand-dark);
  font-weight: 800;
}

.project-stage-field {
  min-width: 108px;
  max-width: 108px;
  margin: 0;
}

.project-stage-field span {
  font-size: 12px;
  margin-bottom: 2px;
}

.project-stage-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-stage-label-row .dirty-flag {
  margin-left: auto;
}

.project-stage-field select {
  padding: 8px 10px;
  font-size: 13px;
}

.project-side-tools {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: max-content;
}

.project-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.project-admin-row-compact {
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
  padding: 0;
  align-items: stretch;
}

.project-side-tools {
  display: grid;
  grid-template-columns: 168px 132px;
  gap: 12px;
  align-items: end;
  justify-content: end;
}

.project-stage-field {
  min-width: 0;
}

.project-workflow-actions {
  width: 132px;
  min-height: 74px;
  align-self: end;
}

.project-workflow-actions .small-btn {
  width: 100%;
}

.project-main {
  min-width: 0;
  padding-right: 0;
}

.project-main strong,
.project-main .muted {
  overflow-wrap: anywhere;
}

.workflow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 2px 2px;
}

.bulk-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2px;
}

.admin-actions-row {
  display: flex;
  justify-content: flex-end;
}

.workflow-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dirty-flag {
  display: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(197, 138, 42, 0.14);
  color: #8c5e11;
  font-size: 12px;
  font-weight: 700;
}

.project-card-dirty {
  border-color: rgba(194, 72, 61, 0.72);
  background: linear-gradient(90deg, rgba(194, 72, 61, 0.08), rgba(248, 250, 252, 0.96));
  box-shadow: 0 0 0 1px rgba(194, 72, 61, 0.12);
}

.project-card-dirty .dirty-flag {
  display: inline-flex;
}

.dirty-flag.inline-feedback {
  display: inline-flex;
}

.dirty-flag.feedback-success {
  background: rgba(31, 138, 91, 0.14);
  color: var(--success);
}

.dirty-flag.feedback-error {
  background: rgba(194, 72, 61, 0.14);
  color: var(--danger);
}

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

.project-detail-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.meta-grid dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.meta-grid dd {
  margin: 0;
  line-height: 1.6;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

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

.admin-table-compact th,
.admin-table-compact td {
  padding: 10px 8px;
  font-size: 13px;
}

.table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: #f7f9fc;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash {
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 600;
  border: 1px solid transparent;
}

.flash-success {
  background: rgba(31, 138, 91, 0.08);
  border-color: rgba(31, 138, 91, 0.14);
  color: var(--success);
}

.flash-error {
  background: rgba(194, 72, 61, 0.08);
  border-color: rgba(194, 72, 61, 0.14);
  color: var(--danger);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-btn {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.primary-btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.secondary-btn,
.ghost-btn {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.secondary-btn:hover,
.ghost-btn:hover {
  background: #f4f7fa;
}

.secondary-btn.disabled,
.ghost-btn.disabled {
  background: #f4f7fa;
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

.project-detail-actions {
  justify-content: space-between;
}

.project-detail-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

.form-grid.single,
.stack,
.ranking-list,
.info-list,
.project-list {
  display: grid;
  gap: 10px;
}

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

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

.admin-compact-form {
  gap: 8px;
}

.account-inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px 12px;
  align-items: end;
}

.account-inline-actions {
  display: flex;
  align-items: flex-end;
}

.field span {
  font-size: 14px;
  font-weight: 700;
  color: #415264;
}

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

.field.compact span {
  font-size: 13px;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
}

.check-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #ffffff;
  color: var(--ink);
}

.admin-compact-form input,
.admin-compact-form select,
.admin-compact-form textarea,
.admin-toolbar input,
.admin-toolbar select {
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(11, 92, 171, 0.45);
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.08);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-compact-form textarea {
  min-height: 92px;
}

.registration-form-grid {
  gap: 8px 12px;
}

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

.registration-inline-field {
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 0;
}

.registration-inline-field span,
.registration-file-field span {
  margin: 0;
  white-space: nowrap;
}

.registration-attachment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 8px 12px;
  align-items: start;
}

.registration-file-field {
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}

.registration-file-field .field-hint {
  grid-column: 2;
  margin-top: -2px;
}

.registration-file-meta {
  gap: 6px;
  justify-content: center;
}

#current-attachment-box {
  line-height: 1.5;
}

.attachment-link,
#current-attachment-box a {
  margin-left: 8px;
  color: #0b5cab;
  font-weight: 700;
  text-decoration: none;
}

.attachment-link:hover,
#current-attachment-box a:hover {
  color: #083d73;
  text-decoration: underline;
}

.registration-fieldset {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.registration-form-grid textarea {
  min-height: 78px;
}

.registration-table td {
  vertical-align: middle;
}

.registration-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.registration-actions form {
  margin: 0;
}

.danger-btn {
  color: var(--danger);
  border-color: rgba(194, 72, 61, 0.24);
  background: rgba(194, 72, 61, 0.06);
}

.danger-btn:hover {
  background: rgba(194, 72, 61, 0.12);
  border-color: rgba(194, 72, 61, 0.38);
}

.auth-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 460px);
}

.rank-row,
.judge-row,
.project-admin-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.project-admin-row {
  grid-template-columns: 2fr 150px 100px 100px auto;
}

.rank-top {
  border-color: rgba(197, 138, 42, 0.32);
  background: linear-gradient(90deg, rgba(197, 138, 42, 0.12), rgba(248, 250, 252, 0.96));
}

.rank-no {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand-dark);
  background: #eaf3fb;
}

.rank-score,
.locked-score {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-dark);
}

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

.project-main strong {
  display: block;
  margin-bottom: 6px;
}

.judge-side {
  display: flex;
  justify-content: flex-end;
}

.score-form {
  display: grid;
  gap: 14px;
}

.score-row {
  display: grid;
  grid-template-columns: 130px 1fr 56px 70px;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.score-slider {
  width: 100%;
  accent-color: var(--brand);
}

.score-row output,
.score-row em {
  font-style: normal;
  font-weight: 700;
}

.score-total-box {
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(11, 92, 171, 0.08), rgba(12, 84, 154, 0.03));
  border: 1px solid rgba(11, 92, 171, 0.12);
}

.score-total-box strong {
  display: block;
  font-size: 40px;
  color: var(--brand-dark);
}

.info-item {
  padding: 16px 18px;
}

.project-info-card {
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-info-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.info-item strong {
  display: block;
  margin-bottom: 6px;
}

.info-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.inline-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.inline-status strong {
  color: var(--brand-dark);
}

.admin-inline-note {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.admin-inline-note strong {
  font-size: 13px;
  color: var(--brand-dark);
}

.admin-toolbar {
  align-items: end;
  margin-bottom: 10px;
}

.section-status {
  margin-bottom: 18px;
}

.screen-stage {
  height: 100%;
  padding: 2px 6px 10px;
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
}

.screen-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.screen-grid-lines,
.screen-pot-outline,
.screen-orbit {
  position: absolute;
  inset: 0;
}

.screen-grid-lines {
  background:
    linear-gradient(rgba(0, 209, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 209, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 94%);
  opacity: 0.24;
}

.screen-orbit {
  border-radius: 50%;
}

.screen-orbit-a {
  inset: auto auto -34% -12%;
  width: 58vw;
  height: 58vw;
  border: 1px solid rgba(255, 106, 0, 0.12);
  box-shadow:
    0 0 50px rgba(255, 106, 0, 0.12),
    inset 0 0 80px rgba(255, 106, 0, 0.05);
  animation: screen-orbit-drift 18s linear infinite;
}

.screen-orbit-b {
  inset: -30% -4% auto auto;
  width: 36vw;
  height: 36vw;
  border: 1px solid rgba(0, 209, 255, 0.14);
  box-shadow:
    0 0 70px rgba(0, 209, 255, 0.10),
    inset 0 0 80px rgba(0, 209, 255, 0.04);
  animation: screen-orbit-drift 26s linear infinite reverse;
}

.screen-pot-outline {
  inset: auto 3% 6% auto;
  width: 34vw;
  height: 34vw;
  border-radius: 44% 44% 46% 46%;
  opacity: 0.10;
  background:
    radial-gradient(circle at 50% 50%, transparent 54%, rgba(255, 255, 255, 0.04) 55%, transparent 56%),
    linear-gradient(180deg, rgba(255, 106, 0, 0.12), rgba(0, 209, 255, 0.02));
  clip-path: polygon(26% 14%, 74% 14%, 82% 34%, 82% 72%, 68% 86%, 32% 86%, 18% 72%, 18% 34%);
  filter: blur(1px);
}

.screen-headline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.screen-headline-copy {
  max-width: 880px;
}

.screen-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(0, 209, 255, 0.82);
}

.screen-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.95), rgba(0, 209, 255, 0.24));
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.42);
}

.screen-headline h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 4vw, 68px);
  line-height: 1.02;
  color: #f5fbff;
  text-shadow:
    0 0 20px rgba(0, 209, 255, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.48);
}

.screen-headline p {
  margin: 0;
  max-width: 760px;
  color: rgba(220, 235, 255, 0.74);
  line-height: 1.7;
}

.screen-status-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.screen-status-pill {
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 209, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 32px rgba(0, 0, 0, 0.24);
}

.screen-status-pill span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(213, 232, 255, 0.62);
}

.screen-status-pill strong {
  display: block;
  margin-top: 6px;
  color: #f6fbff;
  font-size: 22px;
}

.screen-status-live {
  border-color: rgba(255, 106, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 28px rgba(255, 106, 0, 0.14);
}

.screen-layout-full {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(320px, 0.84fr);
  gap: 10px;
  min-height: 0;
  height: 100%;
  align-items: stretch;
  overflow: visible;
  transform: scale(1);
  transform-origin: top center;
}

.screen-current-card,
.screen-side-card,
.screen-empty {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 14px;
  border-radius: 28px;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(14, 24, 40, 0.92), rgba(8, 15, 26, 0.96)),
    linear-gradient(135deg, rgba(255, 106, 0, 0.10), rgba(0, 209, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 30px 64px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
}

.screen-current-card::before,
.screen-side-card::before,
.screen-empty::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.07), transparent 24%),
    linear-gradient(110deg, rgba(0, 209, 255, 0.10), transparent 38%),
    linear-gradient(260deg, rgba(255, 106, 0, 0.10), transparent 26%);
  pointer-events: none;
}

.screen-current-card::after,
.screen-side-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  box-shadow:
    0 0 28px rgba(0, 209, 255, 0.08),
    inset 0 0 18px rgba(255, 106, 0, 0.04);
  animation: screen-card-breathe 2.8s ease-in-out infinite;
  pointer-events: none;
}

.screen-current-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(316px, 0.8fr);
  gap: 10px;
  align-items: stretch;
}

.screen-current-top,
.screen-timer-panel,
.screen-side-card {
  position: relative;
  z-index: 1;
}

.screen-stage-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.screen-stage-tag,
.screen-stage-live {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-stage-tag {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(229, 240, 255, 0.84);
}

.screen-stage-live {
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.24), rgba(255, 106, 0, 0.10));
  color: #ffd2b0;
  border: 1px solid rgba(255, 106, 0, 0.26);
  box-shadow:
    0 0 22px rgba(255, 106, 0, 0.20),
    inset 0 0 10px rgba(255, 106, 0, 0.12);
  animation: screen-live-pulse 2.4s ease-in-out infinite;
}

.screen-project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.screen-project-no {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #ffb16e;
}

.screen-current-card h2,
.screen-empty h2 {
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.05;
  margin-bottom: 6px;
}

.screen-current-card p,
.screen-empty p {
  color: rgba(236, 245, 255, 0.74);
  line-height: 1.54;
  font-size: 15px;
}

.screen-score-pulse {
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.16), rgba(0, 209, 255, 0.06));
  border: 1px solid rgba(255, 106, 0, 0.18);
  box-shadow:
    0 0 26px rgba(255, 106, 0, 0.10),
    inset 0 0 18px rgba(255, 255, 255, 0.03);
  animation: screen-card-breathe 2.6s ease-in-out infinite;
}

.screen-score-pulse span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 220, 192, 0.72);
}

.screen-score-pulse strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 900;
  color: #fff6ef;
  font-family: "Bahnschrift", "DIN Alternate", "Roboto Mono", monospace;
}

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

.screen-metric-card {
  padding: 9px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.screen-metric-card span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(201, 225, 255, 0.62);
}

.screen-metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: #f6fbff;
}

.screen-result-panel {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(0, 209, 255, 0.10);
}

.screen-result-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 209, 255, 0.72);
}

.screen-result-text {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.58;
  color: #eef7ff;
}

.screen-timer-panel {
  --timer-progress: 1;
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 166, 92, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 184, 120, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 176, 104, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 40px rgba(255, 106, 0, 0.10),
    0 22px 42px rgba(0, 0, 0, 0.22);
}

.screen-timer-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 440px);
  min-height: 218px;
  margin: 0 auto;
  justify-self: center;
  align-self: center;
  padding: 16px 22px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 176, 104, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 190, 128, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 42px rgba(255, 106, 0, 0.16),
    0 0 74px rgba(255, 132, 24, 0.06);
  animation: screen-timer-ring-breathe 3s ease-in-out infinite;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.screen-timer-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.006);
  border: 1px solid rgba(255, 224, 196, 0.18);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.01);
  pointer-events: none;
}

.screen-timer-ring::after {
  content: none;
  pointer-events: none;
}

.screen-timer-ring-core {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0;
  text-align: center;
  width: 100%;
  min-height: 130px;
  align-content: center;
  isolation: isolate;
}

.screen-timer-ring-core::before,
.screen-timer-ring-core::after {
  content: none;
  pointer-events: none;
  z-index: 0;
}

.screen-timer-label {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 222, 194, 0.78);
}

.screen-timer-value {
  font-size: clamp(72px, 7.8vw, 122px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  position: relative;
  z-index: 5;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  background: none;
  background-image: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #ffffff;
  font-family: "Bahnschrift", "DIN Alternate", "Roboto Mono", monospace;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.16),
    0 0 18px rgba(255, 255, 255, 0.06);
  animation: screen-timer-digit-pulse 1.8s ease-in-out infinite;
}

.screen-timer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100%, 500px);
  justify-self: center;
  align-self: center;
  margin-top: auto;
}

.screen-timer-btn {
  min-width: 132px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
  color: #eef7ff;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.screen-timer-btn.secondary-btn:hover {
  background: rgba(0, 209, 255, 0.14);
  border-color: rgba(0, 209, 255, 0.28);
  color: #eef7ff;
}

.screen-timer-btn.primary-btn {
  background: linear-gradient(135deg, #ff6a00, #ff8a1c);
  border-color: rgba(255, 142, 56, 0.80);
  color: #fff7f1;
  box-shadow:
    0 0 28px rgba(255, 106, 0, 0.24),
    0 18px 28px rgba(0, 0, 0, 0.28);
}

.screen-timer-btn.primary-btn:hover {
  background: linear-gradient(135deg, #ff7d1f, #ff9b39);
  border-color: rgba(255, 164, 88, 0.90);
  color: #fffaf5;
}

.screen-timer-panel.timer-paused .screen-timer-ring {
  box-shadow:
    0 0 32px rgba(0, 209, 255, 0.18),
    0 0 70px rgba(0, 209, 255, 0.12);
}

.screen-timer-panel.timer-paused .screen-timer-label {
  color: rgba(0, 209, 255, 0.86);
}

.screen-timer-panel.timer-finished {
  background:
    radial-gradient(circle at center, rgba(194, 72, 61, 0.22), transparent 44%),
    linear-gradient(180deg, rgba(194, 72, 61, 0.08), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 92, 92, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 40px rgba(194, 72, 61, 0.18),
    0 22px 42px rgba(0, 0, 0, 0.22);
}

.screen-timer-panel.timer-finished .screen-timer-ring {
  background:
    linear-gradient(135deg, rgba(194, 72, 61, 0.12), rgba(255, 106, 0, 0.04)),
    rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 92, 92, 0.72);
  box-shadow:
    0 0 44px rgba(194, 72, 61, 0.30),
    0 0 74px rgba(194, 72, 61, 0.12);
}

.screen-timer-panel.timer-finished .screen-timer-ring::before {
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.012);
}

.screen-timer-panel.timer-finished .screen-timer-ring::after {
  content: none;
}

.screen-timer-panel.timer-finished .screen-timer-value {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.16),
    0 0 18px rgba(194, 72, 61, 0.10);
}


.screen-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.screen-side-panel {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 28px;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(14, 24, 40, 0.92), rgba(8, 15, 26, 0.96)),
    linear-gradient(135deg, rgba(255, 106, 0, 0.10), rgba(0, 209, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 30px 64px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
}

.screen-side-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.07), transparent 24%),
    linear-gradient(110deg, rgba(0, 209, 255, 0.10), transparent 38%),
    linear-gradient(260deg, rgba(255, 106, 0, 0.10), transparent 26%);
  pointer-events: none;
}

.screen-side-panel::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  box-shadow:
    0 0 28px rgba(0, 209, 255, 0.08),
    inset 0 0 18px rgba(255, 106, 0, 0.04);
  animation: screen-card-breathe 2.8s ease-in-out infinite;
  pointer-events: none;
}

.screen-side-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.screen-side-head {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.screen-side-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.screen-side-total {
  min-width: 74px;
  padding: 7px 11px;
  border-radius: 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff4eb;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.20), rgba(255, 106, 0, 0.08));
  border: 1px solid rgba(255, 106, 0, 0.18);
}

.screen-next-speaker-card {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  min-height: 0;
}

.screen-next-speaker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.screen-next-speaker-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 214, 180, 0.84);
}

.screen-next-speaker-order {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 900;
  color: #fff8f2;
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.28), rgba(255, 106, 0, 0.12));
  border: 1px solid rgba(255, 160, 88, 0.28);
}

.screen-next-speaker-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  color: #f7fbff;
}

.screen-next-speaker-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.screen-next-speaker-meta {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-next-speaker-meta span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(195, 221, 246, 0.66);
}

.screen-next-speaker-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.35;
}

.screen-next-speaker-empty {
  font-size: 14px;
  color: rgba(210, 229, 249, 0.74);
}

.finalist-scroll-shell {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
}

.finalist-list {
  height: 100%;
}

.finalist-list-track {
  display: grid;
  gap: 6px;
}

.finalist-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.finalist-copy strong {
  display: block;
  color: #f6fbff;
  font-size: 15px;
  line-height: 1.35;
}

.finalist-stage {
  margin-top: 4px;
  color: rgba(191, 216, 244, 0.66);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.finalist-glow {
  position: absolute;
  inset: auto -20% -55% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.16), transparent 62%);
  pointer-events: none;
}

.finalist-active {
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.18), rgba(0, 209, 255, 0.10)),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 106, 0, 0.30);
  box-shadow:
    0 0 28px rgba(255, 106, 0, 0.16),
    inset 0 0 20px rgba(255, 255, 255, 0.03);
  transform: translateX(-4px);
}

.finalist-active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.22), transparent 36%);
  animation: finalist-highlight-slide 2.8s ease-in-out infinite;
}

.screen-current-card .rank-no,
.screen-side-card .rank-no {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 209, 255, 0.26), rgba(22, 76, 140, 0.28));
  color: #ffffff;
  border: 1px solid rgba(0, 209, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 22px rgba(0, 209, 255, 0.10);
  font-size: 18px;
}

.screen-empty {
  display: grid;
  place-items: center;
  text-align: center;
}

.screen-empty h2 {
  margin-top: 14px;
}

.screen-empty p {
  max-width: 560px;
}

@keyframes screen-card-breathe {
  0%,
  100% {
    box-shadow:
      0 0 26px rgba(0, 209, 255, 0.06),
      inset 0 0 18px rgba(255, 106, 0, 0.03);
  }
  50% {
    box-shadow:
      0 0 34px rgba(255, 106, 0, 0.12),
      inset 0 0 22px rgba(0, 209, 255, 0.05);
  }
}

@keyframes screen-live-pulse {
  0%,
  100% {
    box-shadow:
      0 0 18px rgba(255, 106, 0, 0.14),
      inset 0 0 10px rgba(255, 106, 0, 0.10);
  }
  50% {
    box-shadow:
      0 0 32px rgba(255, 106, 0, 0.26),
      inset 0 0 14px rgba(255, 106, 0, 0.16);
  }
}

@keyframes screen-timer-ring-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
}

@keyframes screen-timer-digit-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes screen-orbit-drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes finalist-highlight-slide {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateX(180%);
    opacity: 0;
  }
}

.home-project-list {
  max-height: min(46vh, 500px);
  overflow-y: auto;
  padding-right: 6px;
}

.home-project-list::-webkit-scrollbar {
  width: 8px;
}

.home-project-list::-webkit-scrollbar-thumb {
  background: rgba(11, 92, 171, 0.24);
  border-radius: 999px;
}

@keyframes finalist-marquee {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-50% - 6px));
  }
}

@keyframes timer-alert {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 18px 36px rgba(0, 0, 0, 0.20),
      0 0 0 rgba(255, 69, 69, 0);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 18px 36px rgba(0, 0, 0, 0.20),
      0 0 28px rgba(255, 78, 78, 0.36);
  }
}

@media (max-width: 1024px) {
  .hero,
  .panel-grid.two,
  .project-admin-row,
  .screen-layout-full {
    grid-template-columns: 1fr;
  }

  .screen-current-card {
    grid-template-columns: 1fr;
  }

  .screen-status-bar,
  .screen-project-title-row,
  .screen-side-head {
    width: 100%;
  }

  .screen-project-title-row,
  .screen-side-head {
    display: grid;
  }

  .screen-score-pulse {
    min-width: 0;
  }

  .screen-side-card {
    max-height: none;
  }

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

  .admin-project-toolbar {
    align-items: stretch;
  }

  .admin-global-minutes-form,
  .admin-project-filter,
  .admin-project-bulk-actions {
    flex: 1 1 100%;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .screen-side-card,
  .home-project-list {
    max-height: none;
  }

  .project-admin-row-compact {
    grid-template-columns: 1fr;
  }

  .project-side-tools {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .project-workflow-actions {
    width: 100%;
    min-height: 0;
  }

  .project-workflow-actions .small-btn {
    width: auto;
  }

  .project-side-tools,
  .project-stage-field,
  .project-card-actions {
    grid-column: 1;
  }

  .project-side-tools {
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
  }

  .project-card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .finalist-list-animated .finalist-list-track {
    animation: none;
  }
}

@media (max-width: 768px) {
  .shell {
    width: min(calc(100% - 20px), 1240px);
  }

  .stats-grid,
  .meta-grid,
  .form-grid.two,
  .score-row,
  .rank-row,
  .judge-row,
  .project-admin-row,
  .project-info-card,
  .admin-content-head {
    grid-template-columns: 1fr;
  }

  .project-detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .screen-timer-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .screen-timer-btn {
    width: 100%;
    min-width: 0;
  }

  .screen-metrics-grid {
    grid-template-columns: 1fr;
  }

  .screen-headline h1 {
    font-size: clamp(30px, 10vw, 48px);
  }

  .admin-minutes-inline,
  .project-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .registration-inline-grid,
  .registration-attachment-grid {
    grid-template-columns: 1fr;
  }

  .account-inline-form {
    grid-template-columns: 1fr;
  }

  .account-inline-actions {
    justify-content: flex-start;
  }

  .registration-inline-field,
  .registration-file-field {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .registration-file-field .field-hint {
    grid-column: auto;
    margin-top: 0;
  }

  .project-info-card {
    display: grid;
  }

  .admin-content-head {
    display: grid;
  }

  .site-header {
    position: static;
  }

  .hero,
  .panel,
  .auth-card,
  .screen-current-card,
  .screen-side-card,
  .screen-empty {
    border-radius: 18px;
  }
}
