:root {
  color-scheme: dark;
  --bg: #061631;
  --panel: rgba(8, 25, 55, 0.86);
  --line: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --cyan: #26d7ff;
  --yellow: #ffdd3d;
  --red: #ff4365;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body:not(.live-results-page) {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(38, 215, 255, 0.18), transparent 28%),
    linear-gradient(155deg, #031026 0%, #08265a 54%, #020814 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.platform-version {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 8, 20, 0.76);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  backdrop-filter: blur(8px);
}

a {
  color: inherit;
}

.portal-shell {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 24px 0 46px;
}

.portal-top-banner {
  width: 100%;
  aspect-ratio: 1760 / 256;
  max-height: 180px;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.portal-top-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero,
.panel,
.account-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  margin-bottom: 18px;
}

.hero.compact {
  grid-template-columns: 210px 1fr auto;
  padding: 18px 22px;
}

.home-hero {
  grid-template-columns: 240px 1fr;
}

.home-hero h1 {
  font-size: clamp(28px, 3.6vw, 54px);
  white-space: nowrap;
}

.hero-logo {
  width: 100%;
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  font-size: 24px;
}

.lead,
.muted,
.notice {
  color: var(--muted);
}

.lead {
  max-width: 680px;
  font-size: 18px;
}

.lead a {
  display: inline-block;
  margin: 0 0.18em;
}

.chrono-access-warning {
  margin: 14px 0 8px;
  color: var(--red);
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
}

.spectator-lead {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--yellow);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.42;
}

.chrono-access-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: center;
  border-color: rgba(255, 221, 61, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 221, 61, 0.08), rgba(38, 215, 255, 0.05)),
    var(--panel);
}

.chrono-access-main {
  display: grid;
  gap: 10px;
}

.chrono-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.chrono-access-copy {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 18px;
}

.chrono-access-copy .chrono-access-warning {
  margin-top: 0;
}

.chrono-access-copy .lead {
  margin: 0;
}

.hero-actions,
.section-title,
.account-card,
.inline-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: var(--yellow);
  color: #061631;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button.orange {
  background: #ff9f1c;
  color: #061631;
}

.button.danger {
  background: var(--red);
  color: #ffffff;
}

.button.help-button {
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, #ff4b63, #cf1738);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 67, 101, 0.24), 0 10px 24px rgba(255, 67, 101, 0.24);
  text-transform: uppercase;
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.48;
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.download-button {
  gap: 10px;
  justify-content: center;
  text-align: center;
}

.live-access-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(38, 215, 255, 0.28);
  border-radius: 8px;
  background: rgba(38, 215, 255, 0.08);
  padding: 14px;
}

.live-access-card .inline-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

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

.history-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 10px;
}

.history-admin-row strong,
.history-admin-row span,
.history-admin-row small {
  display: block;
}

.history-admin-row span {
  color: var(--yellow);
  font-weight: 800;
}

.history-admin-row small {
  margin-top: 3px;
  color: var(--muted);
}

.live-admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.live-admin-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.live-admin-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
}

.column-config-grid,
.status-mapping-grid {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.column-config-row {
  display: grid;
  grid-template-columns: 28px minmax(120px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 8, 20, 0.35);
  padding: 8px;
}

.column-config-row input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.column-config-row strong {
  color: #ffffff;
  font-size: 13px;
}

.column-config-row button {
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #101923;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.column-config-row button:disabled {
  opacity: 0.42;
  cursor: default;
}

.status-mapping-row {
  display: grid;
  grid-template-columns: 34px 72px minmax(110px, 1fr) 52px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 8, 20, 0.35);
  padding: 8px;
}

.status-mapping-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(38, 215, 255, 0.15);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.status-mapping-row input {
  min-height: 34px;
  padding: 6px 8px;
}

.status-mapping-row input[type="color"] {
  min-height: 34px;
  padding: 3px;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

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

.software-icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.software-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.software-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: -5px;
  width: 4px;
  height: 5px;
  background: currentColor;
}

.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-align: left;
}

.link-button:hover {
  text-decoration: underline;
}

.panel {
  padding: 20px;
  margin-bottom: 18px;
}

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

.split.wide {
  grid-template-columns: 1.1fr 0.9fr;
}

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

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

.form-card.narrow {
  max-width: 460px;
}

.reset-password-form {
  justify-self: center;
  width: min(460px, 100%);
  text-align: left;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: 9px 11px;
}

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

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%) calc(100% - 12px) 18px / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.08);
}

.form-help {
  margin: -8px 0 4px;
  font-size: 12px;
}

input[readonly] {
  color: var(--yellow);
  font-weight: 900;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: 18px;
  min-height: 18px;
}

.live-grid,
.image-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.archive-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}

.archive-search-form input {
  min-height: 46px;
  font-size: 16px;
}

.archive-result .archive-open-link {
  margin-top: 12px;
}

.live-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.live-card:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.live-card.ended {
  border-color: rgba(255, 209, 102, 0.22);
  background: rgba(255, 209, 102, 0.055);
}

.live-client-label {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.live-card-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.live-folder-pill {
  display: inline-grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 10px;
}

.live-folder-pill.has-image {
  grid-template-columns: 42px minmax(0, 1fr);
}

.live-folder-image {
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
}

.live-folder-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.live-folder-pill b,
.live-folder-pill small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-folder-pill b {
  color: #ffffff;
  font-size: 13px;
}

.live-folder-pill small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.live-folder-pill small a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.folder-icon {
  position: relative;
  display: inline-block;
  width: 21px;
  height: 15px;
  border: 2px solid var(--yellow);
  border-radius: 3px;
}

.folder-icon::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -7px;
  width: 10px;
  height: 6px;
  border: 2px solid var(--yellow);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.feature-bubble {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(38, 215, 255, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(5, 18, 42, 0.92), rgba(5, 18, 42, 0.76) 42%, rgba(5, 18, 42, 0.52)),
    linear-gradient(135deg, rgba(38, 215, 255, 0.22), rgba(255, 255, 255, 0.05)),
    url("commercial-map-bg.svg") center / cover no-repeat,
    var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  margin-bottom: 18px;
  padding: 22px;
  overflow: hidden;
}

.feature-bubble::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 48px;
  width: 28px;
  height: 28px;
  border-left: 1px solid rgba(38, 215, 255, 0.34);
  border-top: 1px solid rgba(38, 215, 255, 0.34);
  background: #08265a;
  transform: rotate(45deg);
}

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

.feature-pill {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
    rgba(6, 22, 49, 0.74);
  color: var(--muted);
  padding: 8px 14px 8px 8px;
  font-size: 13px;
  backdrop-filter: blur(8px);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.feature-pill:hover,
.feature-pill:focus-visible {
  border-color: rgba(38, 215, 255, 0.58);
  background:
    linear-gradient(90deg, rgba(38, 215, 255, 0.18), rgba(255, 255, 255, 0.1)),
    rgba(6, 22, 49, 0.82);
  outline: none;
  transform: translateY(-1px);
}

.feature-pill strong {
  color: #ffffff;
  font-size: 15px;
}

.feature-visual {
  position: relative;
  display: block;
  width: 78px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(38, 215, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(38, 215, 255, 0.28), rgba(255, 221, 61, 0.12)),
    url("commercial-map-bg.svg") center / 220px 82px no-repeat;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.34);
}

.feature-visual::before,
.feature-visual::after {
  content: "";
  position: absolute;
}

.feature-pill-map .feature-visual::before {
  left: 30px;
  top: 13px;
  width: 17px;
  height: 17px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  transform: rotate(-45deg);
  box-shadow: 0 0 18px rgba(255, 67, 101, 0.8);
}

.feature-pill-map .feature-visual::after {
  left: 14px;
  right: 14px;
  bottom: 11px;
  height: 3px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 16px rgba(255, 221, 61, 0.8);
}

.feature-pill-ranking .feature-visual::before {
  left: 13px;
  top: 10px;
  width: 12px;
  height: 30px;
  border-radius: 999px 999px 3px 3px;
  background: var(--yellow);
  box-shadow:
    18px 8px 0 #ffffff,
    36px 15px 0 var(--cyan);
}

.feature-pill-ranking .feature-visual::after {
  right: 12px;
  top: 9px;
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  border-left-color: var(--cyan);
}

.feature-pill-analytics .feature-visual::before {
  left: 12px;
  right: 12px;
  bottom: 13px;
  height: 26px;
  border-left: 3px solid rgba(255, 255, 255, 0.62);
  border-bottom: 3px solid rgba(255, 255, 255, 0.62);
}

.feature-pill-analytics .feature-visual::after {
  left: 18px;
  bottom: 22px;
  width: 43px;
  height: 23px;
  border-radius: 999px;
  background: transparent;
  border-top: 4px solid var(--yellow);
  border-right: 4px solid var(--cyan);
  transform: skewX(-18deg);
  box-shadow: 0 0 16px rgba(38, 215, 255, 0.45);
}

.feature-pill-stream .feature-visual::before {
  left: 9px;
  right: 9px;
  top: 10px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(7, 29, 73, 0.92) 0 36%, transparent 36%),
    linear-gradient(180deg, rgba(255, 221, 61, 0.95), rgba(255, 221, 61, 0.95)) 16px 8px / 8px 4px no-repeat,
    linear-gradient(180deg, rgba(38, 215, 255, 0.95), rgba(38, 215, 255, 0.95)) 16px 17px / 22px 4px no-repeat,
    rgba(6, 22, 49, 0.76);
  box-shadow: 0 0 18px rgba(38, 215, 255, 0.48);
}

.feature-pill-stream .feature-visual::after {
  right: 13px;
  bottom: 10px;
  width: 26px;
  height: 9px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow:
    -20px -20px 0 -2px var(--cyan),
    0 0 16px rgba(255, 221, 61, 0.72);
}

.feature-pill-history .feature-visual::before {
  left: 13px;
  top: 15px;
  width: 45px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--yellow) 0 36%, transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) 21px 9px / 18px 3px no-repeat,
    linear-gradient(180deg, rgba(38, 215, 255, 0.92), rgba(38, 215, 255, 0.92)) 21px 17px / 13px 3px no-repeat,
    rgba(7, 29, 73, 0.86);
  box-shadow: 0 0 18px rgba(38, 215, 255, 0.45);
}

.feature-pill-history .feature-visual::after {
  right: 13px;
  top: 9px;
  width: 17px;
  height: 17px;
  border: 3px solid var(--yellow);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-22deg);
  box-shadow: 0 0 14px rgba(255, 221, 61, 0.58);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  background: #a5adba;
}

.status-dot.live {
  background: #34d399;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.8);
}

.status-dot.ended {
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.58);
}

.image-slot {
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.image-slot-help {
  margin: -4px 0 0;
  font-size: 12px;
}

.image-preview {
  width: 100%;
  height: 92px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.image-preview.wide-preview {
  max-width: 420px;
  height: 118px;
}

.platform-settings-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
  margin: 16px 0 18px;
}

.inline-upload {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.stripe-settings-card {
  grid-template-columns: 1fr auto;
}

.stripe-grid,
.billing-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.billing-plan {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 118px;
  border: 1px solid rgba(36, 210, 255, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.billing-plan strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.billing-plan b {
  color: var(--yellow);
  font-size: 26px;
  line-height: 1;
}

.billing-plan small {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 800;
}

.billing-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin-top: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 217, 57, 0.34);
  border-radius: 8px;
  background: rgba(255, 217, 57, 0.08);
}

.billing-total span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-total strong {
  color: var(--yellow);
  font-size: 18px;
  font-weight: 1000;
  text-align: right;
}

.billing-plan-addons {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.billing-addon-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: center;
  width: auto;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.billing-addon-pill input {
  width: auto;
  margin: 0;
}

.billing-addon-pill span {
  color: #fff;
}

.billing-addon-pill em {
  grid-column: 2;
  color: var(--yellow);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.billing-addon-pill.included {
  border-color: rgba(255, 217, 57, 0.34);
  background: rgba(255, 217, 57, 0.08);
}

.billing-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.billing-addons label,
.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.billing-addons label span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.billing-addons input,
.checkbox-line input {
  width: auto;
}

.platform-banner-preview {
  width: 100%;
  aspect-ratio: 1760 / 256;
  max-height: 150px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.table-wrap {
  overflow: auto;
}

.admin-client-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}

.admin-stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
}

.admin-stat-pill strong {
  font-size: 20px;
  line-height: 1;
  color: var(--yellow);
}

.admin-stat-pill em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.admin-stat-pill.is-green strong {
  color: #8ff7b2;
}

.admin-stat-pill.is-yellow strong {
  color: var(--yellow);
}

.admin-stat-pill.is-red strong {
  color: #ff5d7c;
}

.admin-stat-pill.is-blue strong,
.admin-stat-pill.is-cyan strong {
  color: var(--cyan);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 8px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
}

.sort-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  padding: 0;
  text-align: left;
  text-transform: inherit;
}

.sort-button span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(38, 215, 255, 0.14);
  color: var(--yellow);
  font-size: 12px;
  line-height: 1;
}

.sort-button.is-active span {
  background: var(--yellow);
  color: #071d49;
}

.admin-client-row td {
  border-bottom: 0;
  padding-bottom: 4px;
}

.admin-action-row td {
  padding-top: 0;
  padding-bottom: 10px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-tools {
  max-width: none;
  align-items: center;
}

.admin-table .button.small,
.state-toggle {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1;
}

.state-cell {
  white-space: nowrap;
}

.state-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.state-toggle.is-on {
  color: #0d351f;
  background: #9df5bd;
}

.state-toggle.is-off {
  color: #3a2700;
  background: #ffe08a;
}

.state-toggle.is-static {
  cursor: default;
}

.state-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
  font-size: 12px;
}

.tag.ok {
  color: #0d351f;
  background: #9df5bd;
}

.tag.warn {
  color: #3a2700;
  background: #ffe08a;
}

.tag.danger {
  color: #3b0010;
  background: #ff9bb0;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(255, 67, 101, 0.42);
}

.delete-confirm-label {
  margin-top: 12px;
  max-width: 360px;
}

.directory-center {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.confirm-panel {
  display: grid;
  gap: 16px;
  margin-top: 10vh;
  text-align: center;
}

.confirm-logo {
  width: min(360px, 80vw);
  justify-self: center;
}

.help-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: center;
}

.help-screenshot {
  width: min(432px, 100%);
  justify-self: center;
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

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

.help-card {
  display: grid;
  gap: 10px;
}

.help-card p {
  margin: 0;
}

.help-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.help-list li {
  margin: 7px 0;
}

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

.path-list code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(2, 8, 20, 0.48);
  color: var(--yellow);
  padding: 10px;
  font-size: 12px;
}

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

.diagnostic-grid p {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  color: var(--muted);
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-content h2 {
  margin: 12px 0 0;
  color: #ffffff;
  font-size: 22px;
}

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

.legal-content strong,
.legal-content a {
  color: #ffffff;
}

.protected-email,
.protected-email-link {
  justify-self: start;
  font-size: 16px;
}

.protected-email-link {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.history-intro {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.history-intro strong {
  color: #ff8fa3;
}

.history-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.history-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.history-card-logo {
  display: grid;
  place-items: center;
  width: 92px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(2, 8, 20, 0.28);
  padding: 8px;
}

.history-card-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.history-card h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 34px);
  overflow-wrap: anywhere;
}

.history-card-event {
  display: grid;
  gap: 2px;
  margin: 0 0 7px;
  color: #ffffff;
  font-size: clamp(16px, 2vw, 23px);
  font-weight: 950;
  line-height: 1.08;
}

.history-card-event span {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.history-card strong {
  color: var(--yellow);
}

.history-card-time {
  margin: 8px 0 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.history-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

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

.platform-footer {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-align: center;
}

.platform-footer a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.platform-footer a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.footer-line {
  display: block;
  margin: 3px 0;
}

.footer-company {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.legal-links {
  font-weight: 900;
}

.live-footer {
  width: min(1760px, calc(100vw - 20px));
  margin: 6px auto 14px;
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 920px), (hover: none) and (pointer: coarse) {
  body.live-results-page > .live-footer {
    width: calc(100vw - 12px);
    margin: 2px auto 6px;
    font-size: 5.5px;
    line-height: 1.25;
    opacity: 0.78;
  }
}

.live-results-page .topbar-actions {
  min-width: 80px;
}

.live-results-page .topbar-actions a {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 8px 14px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .hero,
  .hero.compact,
  .copy-field,
  .stream-link-grid,
  .feature-bubble,
  .chrono-access-panel,
  .help-intro,
  .help-grid,
  .diagnostic-grid,
  .live-admin-grid,
  .split,
  .split.wide,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .archive-search-form {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-title,
  .account-card,
  .inline-actions,
  .inline-upload,
  .history-card,
  .history-card-meta,
  .history-admin-row,
  .danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    font-size: clamp(28px, 13vw, 46px);
  }

  .chrono-access-copy {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-left: 0;
    padding-top: 14px;
  }

  .chrono-access-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-logo {
    max-width: 260px;
  }

  .platform-settings-card {
    grid-template-columns: 1fr;
  }

  .history-card,
  .history-card-main {
    grid-template-columns: 1fr;
  }

  .history-card-logo {
    width: min(170px, 52vw);
    height: 78px;
  }
}
