:root {
  --bg: #02050a;
  --panel: rgba(3, 11, 20, 0.92);
  --panel-strong: #050b13;
  --line: rgba(113, 231, 255, 0.52);
  --line-soft: rgba(113, 231, 255, 0.22);
  --cyan: #5deaff;
  --cyan-bright: #a9f7ff;
  --white: #f8fbff;
  --muted: #8da4b5;
  --amber: #ffd166;
  --green: #55f29a;
  --red: #ff4d5d;
  --shadow: 0 0 36px rgba(93, 234, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(93, 234, 255, 0.15), transparent 28rem),
    linear-gradient(180deg, #030914 0%, #02050a 44%, #010205 100%);
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

.grid-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(rgba(93, 234, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 234, 255, 0.1) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82) 35%, rgba(0, 0, 0, 0.12));
}

.grid-backdrop::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -18%;
  height: 52%;
  border-top: 2px solid rgba(93, 234, 255, 0.42);
  background:
    linear-gradient(rgba(93, 234, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 234, 255, 0.2) 1px, transparent 1px);
  background-size: 70px 34px;
  transform: perspective(620px) rotateX(58deg);
  transform-origin: top center;
  box-shadow: 0 -16px 42px rgba(93, 234, 255, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr);
  gap: 0;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid rgba(93, 234, 255, 0.42);
  background:
    linear-gradient(90deg, rgba(0, 211, 255, 0.14), transparent 26%),
    rgba(1, 5, 10, 0.96);
  box-shadow: 0 0 24px rgba(93, 234, 255, 0.18);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 66px;
  padding: 8px 20px;
  border-right: 1px solid var(--line);
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border: 0;
  color: #24d9ff;
  background: transparent;
  box-shadow: none;
  font-size: 1.8rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-kicker,
.eyebrow,
.panel-header span,
.command-strip span,
.hero-metrics span,
.queue-card span {
  display: block;
  color: var(--cyan-bright);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-lockup strong {
  display: block;
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 950;
  line-height: 1;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
}

.nav-button {
  min-height: 66px;
  border: 0;
  border-left: 1px solid rgba(113, 231, 255, 0.18);
  border-right: 1px solid rgba(113, 231, 255, 0.08);
  border-radius: 0;
  padding: 8px 20px;
  color: var(--white);
  background: rgba(4, 13, 23, 0.48);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-button:hover,
.nav-button.active {
  color: var(--white);
  background: rgba(93, 234, 255, 0.12);
  box-shadow: inset 0 -3px 0 var(--cyan), 0 0 16px rgba(93, 234, 255, 0.32);
}

.nav-button.staff {
  border-color: rgba(255, 209, 102, 0.78);
}

.site-shell,
.site-footer {
  width: min(1480px, calc(100% - 20px));
  margin: 10px auto 0;
}

.command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  border: 1px solid var(--line);
  background: rgba(2, 8, 15, 0.82);
  box-shadow: var(--shadow);
}

.command-strip div,
.hero-metrics article,
.queue-card {
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--line-soft);
}

.command-strip div:last-child,
.hero-metrics article:last-child {
  border-right: 0;
}

.command-strip strong,
.queue-card strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-console {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 0.9fr);
  gap: 10px;
  margin-top: 10px;
}

.hero-copy,
.module-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(93, 234, 255, 0.08), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(14px, 2vw, 24px);
}

.hero-copy h1 {
  max-width: 980px;
  margin: 5px 0 8px;
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 4.15rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #d8edf4;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.4;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(2, 8, 15, 0.86);
  box-shadow: var(--shadow);
}

.hero-metrics article {
  display: grid;
  align-content: center;
  min-height: 118px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-metrics article:nth-child(even) {
  border-right: 0;
}

.hero-metrics article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.hero-metrics strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-metrics em,
.queue-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(460px, 1.58fr) minmax(240px, 0.7fr);
  gap: 10px;
  align-items: start;
  margin-top: 10px;
}

body.venue-profile-active .hero-console,
body.venue-profile-active .entity-panel,
body.venue-profile-active .review-panel {
  display: none;
}

body.venue-profile-active .workspace-layout {
  grid-template-columns: 1fr;
}

body.venue-profile-active .view-panel {
  border-color: rgba(93, 234, 255, 0.54);
  background: rgba(0, 5, 10, 0.34);
}

.module-panel {
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 18, 31, 0.95);
}

.panel-header strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 950;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.search-box {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.search-box span {
  color: var(--cyan-bright);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 6px 8px;
  color: var(--white);
  background: #02070e;
  outline: 0;
}

.search-box input:focus {
  border-color: var(--white);
  box-shadow: 0 0 14px rgba(93, 234, 255, 0.34);
}

.entity-list,
.view-root,
.review-panel {
  display: grid;
}

.entity-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  padding: 7px 8px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.entity-button:hover {
  background: rgba(93, 234, 255, 0.11);
}

.entity-button strong,
.entity-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-button strong {
  font-size: 0.86rem;
  text-transform: uppercase;
}

.entity-button span,
.entity-button em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.view-root {
  gap: 10px;
  padding: 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.stat-card,
.data-block {
  border: 1px solid var(--line-soft);
  background: rgba(0, 5, 10, 0.68);
}

.stat-card {
  min-height: 86px;
  padding: 8px;
}

.stat-card span {
  color: var(--cyan-bright);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 0.95;
}

.stat-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.data-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 8px;
}

.data-block h2 {
  margin: 0;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
}

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

.data-table th,
.data-table td {
  padding: 5px 7px;
  border-bottom: 1px solid rgba(113, 231, 255, 0.14);
  color: var(--white);
  font-size: 0.78rem;
  text-align: right;
}

.data-table th {
  color: var(--cyan-bright);
  background: rgba(93, 234, 255, 0.08);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}

.queue-card {
  border-right: 0;
  border-bottom: 1px solid var(--line-soft);
}

.queue-card.urgent {
  box-shadow: inset 3px 0 0 var(--amber);
}

.review-actions,
.review-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.review-action-row {
  justify-content: flex-start;
  padding-top: 8px;
}

.action-button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 4px 7px;
  color: var(--white);
  background: rgba(4, 13, 23, 0.94);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.action-button:hover {
  border-color: var(--white);
  color: #001018;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(93, 234, 255, 0.38);
}

.action-button.approve {
  border-color: rgba(85, 242, 154, 0.72);
}

.action-button.import {
  border-color: rgba(255, 209, 102, 0.78);
}

.action-button.reject {
  border-color: rgba(255, 77, 93, 0.72);
}

.table-link {
  border: 0;
  padding: 0;
  color: var(--cyan-bright);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.table-link:hover {
  color: var(--white);
  text-shadow: 0 0 10px rgba(93, 234, 255, 0.72);
}

.submission-detail,
.string-detail,
.house-profile {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.submission-detail.empty-detail,
.string-detail.empty-detail,
.house-profile.empty-detail {
  color: var(--muted);
  font-weight: 850;
}

.submission-detail dl,
.string-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.submission-detail dl div,
.string-detail dl div {
  min-width: 0;
  border: 1px solid var(--line-soft);
  padding: 6px;
  background: rgba(0, 5, 10, 0.54);
}

.submission-detail dt,
.string-detail dt {
  color: var(--cyan-bright);
  font-size: 0.65rem;
  font-weight: 950;
  text-transform: uppercase;
}

.submission-detail dd,
.string-detail dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: var(--white);
  font-weight: 850;
}

.submission-detail h3 {
  margin: 4px 0 0;
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.score-sheet {
  display: grid;
  gap: 8px;
}

.stats-pbp-art {
  display: grid;
  place-items: center;
}

.stats-box-art {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  font-size: 1rem;
  font-weight: 950;
}

.stats-box-art.tone-light {
  color: #17331e;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.62);
}

.stats-box-art.tone-dark {
  color: #ffffff;
  text-shadow: 0 1px 2px #000000;
}

.stats-box-art.pbp-box-art {
  width: 60px;
  height: 60px;
  font-size: 1.08rem;
}

.stats-pbp-list {
  display: grid;
  border: 1px solid rgba(113, 231, 255, 0.28);
}

.stats-pbp-box {
  display: grid;
  grid-template-columns: 44px minmax(92px, 1fr) 76px 74px;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid rgba(113, 231, 255, 0.2);
  background: rgba(0, 5, 10, 0.6);
}

.stats-pbp-box:last-child {
  border-bottom: 0;
}

.stats-pbp-box.fill-box {
  box-shadow: inset 3px 0 0 var(--amber);
}

.stats-pbp-number,
.stats-pbp-total {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: 1px solid rgba(113, 231, 255, 0.18);
}

.stats-pbp-number strong,
.stats-pbp-total strong {
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
}

.stats-pbp-number span,
.stats-pbp-total span {
  color: var(--cyan-bright);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

.admin-correction.empty-detail {
  color: var(--muted);
  font-weight: 850;
}

.league-correction-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.9fr) minmax(80px, 0.35fr) auto;
  gap: 6px;
  align-items: end;
  border: 1px solid var(--line-soft);
  padding: 7px;
  background: rgba(0, 5, 10, 0.54);
}

.league-correction-row span {
  display: block;
  color: var(--cyan-bright);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.league-correction-row strong,
.league-correction-row em {
  display: block;
  overflow-wrap: anywhere;
}

.league-correction-row strong {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.league-correction-row em {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.league-correction-row input {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 5px 7px;
  color: var(--white);
  background: #02070e;
  outline: 0;
}

.league-correction-row input:focus {
  border-color: var(--white);
  box-shadow: 0 0 12px rgba(93, 234, 255, 0.28);
}

.stats-pbp-rack {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.stats-rack-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.stats-pin {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #9aa7b2;
  border-radius: 50%;
  color: #1b1f24;
  background: #eef2f5;
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1;
}

.stats-pin.ball-1 {
  border-color: #256f46;
  color: #ffffff;
  background: #256f46;
}

.stats-pin.ball-2 {
  border-color: #bf7a1f;
  color: #ffffff;
  background: #bf7a1f;
}

.stats-pin.ball-3 {
  border-color: #8e3a59;
  color: #ffffff;
  background: #8e3a59;
}

.house-hero {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(93, 234, 255, 0.1), transparent 48%),
    rgba(0, 5, 10, 0.72);
}

.house-emblem {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 2px solid var(--cyan);
  color: var(--cyan-bright);
  background: #02070e;
  box-shadow: inset 0 0 18px rgba(93, 234, 255, 0.28), 0 0 18px rgba(93, 234, 255, 0.24);
  font-size: 0.8rem;
  font-weight: 950;
}

.house-hero span,
.house-edit-grid span,
.house-section-row span,
.house-panel-title strong,
.house-record-cell strong,
.house-save-row span {
  display: block;
  color: var(--cyan-bright);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.house-hero strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.house-hero em,
.house-hero a {
  display: block;
  overflow-wrap: anywhere;
  color: #d8edf4;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  text-decoration: none;
}

.house-hero a {
  color: var(--cyan-bright);
}

.house-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-soft);
}

.house-metrics article {
  min-width: 0;
  padding: 8px;
  border-right: 1px solid var(--line-soft);
  background: rgba(0, 5, 10, 0.58);
}

.house-metrics article:last-child {
  border-right: 0;
}

.house-metrics span {
  display: block;
  color: var(--cyan-bright);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.house-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

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

.house-edit-grid label,
.house-section-row label,
.house-record-cell {
  min-width: 0;
  border: 1px solid var(--line-soft);
  padding: 6px;
  background: rgba(0, 5, 10, 0.56);
}

.house-edit-grid input,
.house-section-row input,
.house-record-cell input,
.house-record-row input,
.house-record-row select {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 0;
  margin-top: 4px;
  padding: 5px 7px;
  color: var(--white);
  background: #02070e;
  outline: 0;
}

.house-edit-grid input:focus,
.house-section-row input:focus,
.house-record-cell input:focus,
.house-record-row input:focus,
.house-record-row select:focus {
  border-color: var(--white);
  box-shadow: 0 0 12px rgba(93, 234, 255, 0.28);
}

.house-section-panel {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line-soft);
  padding: 7px;
  background: rgba(0, 5, 10, 0.38);
}

.house-panel-title,
.house-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.house-section-list {
  display: grid;
  gap: 6px;
}

.house-section-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.2fr) repeat(3, minmax(58px, 0.45fr)) repeat(3, minmax(96px, 1fr)) auto;
  gap: 5px;
  align-items: end;
}

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

.house-record-list {
  display: grid;
  gap: 6px;
}

.house-record-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(110px, 0.8fr) minmax(160px, 1.2fr) minmax(80px, 0.55fr) minmax(120px, 0.8fr) minmax(104px, 0.58fr) auto;
  gap: 5px;
  align-items: end;
  border: 1px solid var(--line-soft);
  padding: 6px;
  background: rgba(0, 5, 10, 0.5);
}

.house-record-row span,
.house-record-row label > span {
  display: block;
  color: var(--cyan-bright);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.house-record-row .inline-check {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
}

.house-record-row .inline-check input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.house-record-division {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}

.house-record-division h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.house-record-cell input {
  min-height: 28px;
  font-size: 0.74rem;
}

.house-save-row {
  justify-content: flex-start;
}

.venue-profile-screen {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.venue-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.venue-page-title h2 {
  margin: 0;
  color: var(--white);
  font-size: 1.32rem;
  font-weight: 950;
  text-transform: uppercase;
}

.venue-warning {
  border: 1px solid rgba(255, 209, 102, 0.72);
  padding: 7px 9px;
  color: var(--amber);
  background: rgba(255, 209, 102, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.venue-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(420px, 1.6fr) minmax(270px, 1fr);
  gap: 8px;
  align-items: stretch;
}

.venue-panel,
.venue-big-metric {
  min-width: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(93, 234, 255, 0.08), transparent 44%),
    rgba(0, 5, 10, 0.76);
  box-shadow: inset 0 0 18px rgba(93, 234, 255, 0.04);
}

.venue-panel {
  padding: 8px;
}

.venue-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  margin-bottom: 7px;
}

.venue-panel-title h3 {
  margin: 0;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.venue-panel-title span,
.venue-panel-title select {
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.venue-panel-title select {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 4px 24px 4px 7px;
  background: #02070e;
}

.venue-identity {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.venue-logo-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(93, 234, 255, 0.24), 0 0 18px rgba(93, 234, 255, 0.28);
}

.venue-logo-mark span {
  width: 22px;
  height: 56px;
  border: 2px solid var(--white);
  border-radius: 14px;
  background:
    linear-gradient(#ffffff 0 28%, transparent 28% 38%, #24d9ff 38% 45%, transparent 45% 55%, #24d9ff 55% 62%, transparent 62%),
    rgba(255, 255, 255, 0.08);
}

.venue-identity h3 {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.venue-identity p,
.venue-identity a {
  margin: 2px 0;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.venue-metric-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
}

.venue-big-metric {
  display: grid;
  align-content: center;
  min-height: 122px;
  padding: 12px;
  border: 0;
  border-right: 1px solid var(--line-soft);
}

.venue-big-metric:last-child {
  border-right: 0;
}

.venue-big-metric span {
  color: var(--cyan-bright);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.venue-big-metric strong {
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 950;
  line-height: 1;
}

.venue-big-metric em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.venue-lane-map {
  grid-row: span 2;
}

.lane-map-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line-soft);
  scrollbar-color: var(--cyan) rgba(0, 5, 10, 0.68);
}

.lane-map-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82px;
  min-width: 100%;
  width: max-content;
  border: 0;
}

.venue-lane {
  display: grid;
  align-content: start;
  gap: 5px;
  justify-items: center;
  min-height: 260px;
  padding: 8px 6px;
  border-right: 1px solid var(--line-soft);
  background: rgba(2, 8, 15, 0.62);
}

.venue-lane.above {
  box-shadow: inset 0 -3px 0 var(--green);
}

.venue-lane.below {
  box-shadow: inset 0 -3px 0 var(--red);
}

.venue-lane.near {
  box-shadow: inset 0 -3px 0 var(--cyan);
}

.venue-lane.placeholder {
  opacity: 0.56;
}

.venue-lane.placeholder .lane-bed {
  border-style: dashed;
}

.venue-lane strong {
  color: var(--white);
  font-size: 1.05rem;
}

.venue-lane span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-pin-rack {
  display: grid;
  gap: 2px;
}

.mini-pin-rack div {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.mini-pin-rack i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.58);
}

.lane-bed {
  width: 54px;
  height: 154px;
  border: 1px solid rgba(216, 237, 244, 0.44);
  background: repeating-linear-gradient(90deg, rgba(113, 231, 255, 0.1) 0 2px, transparent 2px 6px);
}

.venue-summary-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.venue-summary-list div {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1fr);
  gap: 8px;
  padding: 6px 2px;
  border-bottom: 1px solid rgba(113, 231, 255, 0.16);
}

.venue-summary-list dt,
.venue-summary-list dd {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.venue-summary-list dt {
  color: var(--muted);
}

.venue-summary-list dd {
  color: var(--white);
}

.conversion-dial {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 6px auto;
  border: 16px solid rgba(93, 234, 255, 0.82);
  border-right-color: rgba(93, 234, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(93, 234, 255, 0.24);
}

.conversion-dial strong {
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
}

.conversion-dial span {
  color: var(--cyan);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.venue-highlights,
.venue-admin {
  grid-column: span 2;
}

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

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

.venue-admin-fields[hidden] {
  display: none;
}

.venue-record-book {
  display: grid;
  gap: 8px;
}

.venue-record-book section {
  min-width: 0;
}

.venue-record-book h4 {
  margin: 0 0 4px;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.venue-empty-note {
  border: 1px solid var(--line-soft);
  padding: 8px;
  color: var(--muted);
  background: rgba(0, 5, 10, 0.5);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.compact-table th,
.compact-table td {
  padding: 5px 6px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 0 22px;
  color: var(--muted);
}

.site-footer img {
  width: min(620px, 100%);
  height: auto;
}

.site-footer p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1060px) {
  .site-header,
  .hero-console,
  .workspace-layout,
  .venue-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: start;
  }
}

@media (max-width: 760px) {
  .command-strip,
  .hero-metrics,
  .stat-grid,
  .data-grid,
  .venue-metric-stack,
  .submission-detail dl,
  .string-detail dl {
    grid-template-columns: 1fr;
  }

  .score-sheet {
    grid-template-columns: 1fr;
  }

  .league-correction-row {
    grid-template-columns: 1fr;
  }

  .house-hero,
  .house-metrics,
  .house-edit-grid,
  .house-section-row,
  .house-record-grid,
  .house-record-division {
    grid-template-columns: 1fr;
  }

  .venue-highlights,
  .venue-admin {
    grid-column: auto;
  }

  .hero-metrics article,
  .venue-big-metric,
  .house-metrics article,
  .command-strip div {
    border-right: 0;
  }

  .hero-metrics article:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .hero-metrics article:last-child {
    border-bottom: 0;
  }
}
