:root {
  --ink: #172026;
  --muted: #62707a;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: #d9ddd7;
  --pine: #002f63;
  --pine-dark: #001f42;
  --coral: #c90016;
  --coral-bright: #f00019;
  --video-green: #00c853;
  --video-green-dark: #008f3a;
  --miami-blue: #00aeef;
  --miami-blue-dark: #008fc9;
  --prism-blue: #00a7ff;
  --prism-violet: #6c3cff;
  --prism-coral: #ff3d77;
  --prism-green: #13c77b;
  --pending-pink: #d90166;
  --pending-pink-dark: #9d0049;
  --attention-yellow: #ffdf00;
  --attention-yellow-dark: #f2b600;
  --scarlet: #c90016;
  --gold: #c90016;
  --sky: #e7f0fb;
  --shadow: 0 20px 50px rgba(21, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(231, 240, 251, 0.78), rgba(247, 245, 239, 0.55)),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-theme="darkview"] {
  --ink: #edf4ff;
  --muted: #9aaabc;
  --paper: #07101d;
  --panel: #111a28;
  --line: rgba(124, 148, 176, 0.34);
  --pine: #00aeef;
  --pine-dark: #73e4ff;
  --coral: #ff304b;
  --coral-bright: #ff1744;
  --sky: rgba(0, 174, 239, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  background:
    radial-gradient(circle at 16% -10%, rgba(0, 174, 239, 0.24), transparent 34%),
    radial-gradient(circle at 100% 12%, rgba(255, 23, 68, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(6, 13, 25, 0.96), rgba(9, 18, 32, 0.92)),
    var(--paper);
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 6px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

body[data-theme="darkview"] .topbar {
  background: rgba(5, 12, 22, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 132px;
  height: 92px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 132px !important;
  height: 92px !important;
  max-width: 132px;
  max-height: 92px;
  object-fit: contain;
}

body[data-theme="darkview"] .brand-logo {
  content: url("assets/crowdview-logo-header-dark.png?v=1");
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 174, 239, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--pine-dark);
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(21, 32, 38, 0.08);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--miami-blue);
  outline: 2px solid rgba(0, 174, 239, 0.22);
  outline-offset: 2px;
}

.theme-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, #0078ff, var(--miami-blue));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 174, 239, 0.28);
}

.public-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: none;
}

.public-auth[hidden] {
  display: none;
}

.public-auth.is-signed-in {
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(21, 32, 38, 0.06);
}

.public-auth-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(21, 32, 38, 0.08);
}

.public-auth.is-signed-in .public-auth-button {
  min-height: 32px;
  padding: 0 11px;
  box-shadow: none;
}

.public-auth span {
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-modal .field-hint {
  margin: 0;
}

#uploaderAuthModeToggle {
  margin-right: auto;
}

body[data-theme="darkview"] .theme-toggle {
  background: rgba(6, 13, 25, 0.86);
  color: var(--ink);
}

.theme-icon-toggle {
  position: relative;
}

.theme-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: block;
}

body[data-theme="darkview"] .theme-icon-sun {
  display: block;
}

body[data-theme="darkview"] .theme-icon-moon {
  display: none;
}

.top-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.ghost-button,
.event-item,
.request-venue,
.icon-button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
}

.primary-button {
  background: var(--pine);
  color: #fff;
  padding: 0 16px;
  font-weight: 750;
}

.primary-button:hover {
  background: var(--pine-dark);
}

.primary-button:disabled {
  cursor: not-allowed;
  background: #cad2d8;
  color: #5c6870;
}

.ghost-button {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  padding: 0 14px;
}

.ghost-button[aria-pressed="true"] {
  border-color: var(--pine);
  color: var(--pine-dark);
  box-shadow: inset 0 0 0 1px var(--pine);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  transition: grid-template-columns 0.22s ease;
}

.finder-panel-toggle {
  position: fixed;
  z-index: 50;
  top: 126px;
  left: 314px;
  min-height: 44px;
  border-color: rgba(115, 228, 255, 0.72);
  border-radius: 0 8px 8px 0;
  background: var(--miami-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 174, 239, 0.32);
  font-size: 0.76rem;
  font-weight: 850;
  text-shadow: 0 1px 1px rgba(0, 47, 99, 0.34);
  writing-mode: vertical-rl;
  transition: left 0.22s ease, background 0.18s ease;
}

.finder-panel-toggle:hover {
  background: var(--miami-blue-dark);
}

body.finder-collapsed .app-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

body.finder-collapsed .control-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-110%);
}

body.finder-collapsed .finder-panel-toggle {
  left: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 8px 14px 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer a {
  color: var(--pine);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.admin-shell {
  display: grid;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 14px 14px;
}

.admin-panel,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.admin-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.admin-panel h1,
.admin-panel p,
.admin-card h2,
.admin-card p {
  margin: 0;
}

.admin-login-gate {
  display: none !important;
}

body.admin-locked .admin-login-gate {
  display: grid !important;
  gap: 8px;
  padding: 18px;
}

body.admin-locked [data-admin-protected] {
  display: none !important;
}

.admin-panel h1 {
  color: var(--pine-dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
}

.admin-panel p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

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

.admin-auth {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(170px, 0.9fr) minmax(170px, 0.9fr) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid rgba(0, 47, 99, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.topbar .admin-auth {
  grid-template-columns: minmax(190px, 240px) minmax(140px, 180px) minmax(140px, 180px) auto;
  margin-left: auto;
  padding: 8px;
  background: rgba(248, 250, 252, 0.88);
  box-shadow: 0 10px 24px rgba(21, 32, 38, 0.06);
}

.topbar .admin-auth .eyebrow {
  font-size: 0.68rem;
}

.topbar .admin-auth input {
  min-height: 36px;
}

.topbar .admin-auth-actions button {
  min-height: 36px;
  white-space: nowrap;
}

body.admin-signed-in .topbar .admin-auth {
  grid-template-columns: minmax(180px, auto) auto;
  align-items: center;
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
}

.admin-auth > div,
.admin-auth label {
  display: grid;
  gap: 4px;
}

.admin-auth strong {
  color: var(--pine-dark);
}

.admin-auth span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-auth label span {
  font-weight: 800;
}

.admin-auth input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}

.admin-auth-actions {
  display: flex;
  gap: 8px;
}

#adminSignOutButton:disabled {
  display: none;
}

.admin-queue-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 47, 99, 0.18);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

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

.queue-panel-head > div {
  display: grid;
  gap: 3px;
}

.queue-panel-head strong {
  color: var(--pine-dark);
}

.queue-panel-head span,
.event-request-queue p {
  color: var(--muted);
  font-size: 0.86rem;
}

.event-request-queue {
  display: grid;
  gap: 8px;
}

.event-request-filter,
.map-request-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 4px;
}

.event-request-filter button,
.map-request-filter button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.event-request-filter button.active,
.map-request-filter button.active {
  background: var(--pine);
  color: #fff;
}

.event-request-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.event-request-item strong {
  color: var(--ink);
}

.event-request-item small {
  color: var(--muted);
}

.event-request-review-card {
  gap: 10px;
}

.event-request-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-request-review-head > div {
  display: grid;
  gap: 5px;
}

.event-request-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-request-detail-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px;
}

.event-request-detail-grid strong,
.event-request-meta-line strong {
  color: var(--pine-dark);
}

.event-request-meta-line {
  display: grid;
  gap: 4px;
}

.event-request-note {
  border-left: 3px solid rgba(0, 47, 99, 0.2);
  margin: 0;
  padding-left: 8px;
}

.event-request-audit {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(0, 47, 99, 0.12);
  border-radius: 8px;
  background: rgba(231, 240, 251, 0.58);
  padding: 8px;
}

.event-request-audit > strong {
  color: var(--pine-dark);
}

.event-request-audit dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 0;
}

.event-request-audit dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.event-request-audit dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.event-request-audit dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.event-duplicate-candidates {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(173, 111, 0, 0.25);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.82);
  padding: 8px;
}

.event-duplicate-candidates > strong {
  color: #8a5b00;
}

.event-duplicate-candidate {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(173, 111, 0, 0.22);
  padding-top: 8px;
}

.event-duplicate-candidate:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.event-duplicate-candidate div {
  display: grid;
  gap: 3px;
}

.event-duplicate-candidate span {
  justify-self: start;
  border-radius: 999px;
  background: rgba(173, 111, 0, 0.12);
  color: #7a4d00;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.event-duplicate-candidate strong {
  color: var(--ink);
}

.event-duplicate-candidate small {
  color: var(--muted);
}

.event-duplicate-candidate .ghost-button {
  justify-self: start;
  min-height: 34px;
}

.map-request-item > div:first-child {
  display: grid;
  gap: 3px;
}

.map-request-status-badge {
  justify-self: start;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.12);
  color: var(--pine-dark);
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-request-item[data-map-request-status="rejected"] .map-request-status-badge,
.map-request-item[data-map-request-status="archived"] .map-request-status-badge {
  background: rgba(194, 33, 43, 0.12);
  color: var(--scarlet);
}

.map-request-terminal-note {
  color: var(--muted);
}

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

.venue-merge-controls span {
  display: grid;
  gap: 4px;
}

.venue-merge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.venue-merge-preview {
  display: grid;
  gap: 10px;
}

.venue-merge-execution {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(194, 33, 43, 0.24);
  border-radius: 8px;
  background: #fff7f7;
  padding: 12px;
}

.venue-merge-execution[hidden] {
  display: none;
}

.venue-merge-execution h4,
.venue-merge-execution p {
  margin: 0;
}

.venue-merge-execution h4 {
  color: var(--pine-dark);
}

.venue-merge-execution p:not(.eyebrow) {
  color: var(--muted);
}

.venue-merge-result,
.venue-merge-card,
.venue-merge-move-summary,
.venue-merge-conflict-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.venue-merge-result {
  display: grid;
  gap: 4px;
}

.venue-merge-result strong,
.venue-merge-card h4,
.venue-merge-move-summary h4,
.venue-merge-conflict-list h4 {
  margin: 0;
  color: var(--pine-dark);
}

.venue-merge-result span,
.venue-merge-card small,
.venue-merge-move-summary p,
.venue-merge-conflict-list small {
  color: var(--muted);
}

.venue-merge-result-warning {
  border-color: rgba(217, 119, 6, 0.42);
  background: #fff7ed;
}

.venue-merge-result-error {
  border-color: rgba(194, 33, 43, 0.36);
  background: #fff1f2;
}

.venue-merge-result-ready {
  border-color: rgba(0, 47, 99, 0.2);
  background: #f8fafc;
}

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

.venue-merge-card {
  display: grid;
  gap: 6px;
}

.venue-merge-card dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.venue-merge-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 5px;
}

.venue-merge-card dt,
.venue-merge-card dd {
  margin: 0;
}

.venue-merge-card dt {
  color: var(--muted);
  font-weight: 800;
}

.venue-merge-card dd {
  color: var(--pine-dark);
  font-weight: 900;
  text-align: right;
}

.venue-merge-card dd span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.venue-merge-conflict-list {
  display: grid;
  gap: 8px;
}

.venue-merge-conflict-list article {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.event-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
}

.danger-button {
  border-color: rgba(194, 33, 43, 0.3);
  color: var(--scarlet);
}

.danger-button:hover {
  border-color: var(--scarlet);
  color: #9f1119;
}

.ghost-button:disabled,
.ghost-button:disabled:hover,
.danger-button:disabled,
.danger-button:disabled:hover {
  cursor: not-allowed;
  border-color: #d7dde3;
  background: #edf1f5;
  color: #7a8792;
  box-shadow: none;
}

.primary-link-button,
.ghost-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link-button {
  background: var(--pine);
  color: #fff;
}

.ghost-link-button {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

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

.admin-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.wizard-steps button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
}

.wizard-steps button span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--pine-dark);
  font-size: 0.78rem;
}

.wizard-steps button.active {
  border-color: var(--pine);
  background: var(--pine);
  color: #fff;
}

.wizard-steps button.active span {
  background: #fff;
  color: var(--pine-dark);
}

.builder-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(0, 174, 239, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.1), rgba(255, 255, 255, 0.96));
  padding: 10px;
}

.builder-status-strip article {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(0, 47, 99, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.builder-status-strip span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.builder-status-strip strong {
  overflow: hidden;
  color: var(--pine-dark);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 14px;
}

.builder-workspace > .builder-form,
.builder-workspace > [data-wizard-step],
.approval-panel[data-wizard-step] {
  grid-column: 1 / -1;
}

[hidden] {
  display: none !important;
}

.builder-form,
.builder-preview,
.builder-json-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.builder-form {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.builder-step-panel {
  display: grid;
  gap: 12px;
}

.builder-form h2 {
  margin: 0;
  color: var(--pine-dark);
  font-size: 1.35rem;
}

.drop-zone {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(0, 47, 99, 0.34);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.drop-zone.dragging {
  border-color: var(--pine);
  background: var(--sky);
  color: var(--pine-dark);
}

.builder-mode-panel,
.active-map-editor {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 47, 99, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.builder-mode-panel {
  background: linear-gradient(135deg, rgba(231, 240, 251, 0.62), rgba(255, 255, 255, 0.96));
}

.builder-mode-panel[hidden] {
  display: none;
}

.mode-panel-head,
.active-map-editor-head {
  display: grid;
  gap: 4px;
}

.mode-panel-head h3,
.active-map-editor-head h3 {
  margin: 0;
  color: var(--pine-dark);
  font-size: 1.08rem;
  line-height: 1.15;
}

.mode-panel-head p:not(.eyebrow),
.active-map-editor-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.active-map-editor {
  border-color: rgba(0, 174, 239, 0.28);
  box-shadow: 0 12px 28px rgba(0, 47, 99, 0.06);
}

.advanced-json-import {
  border: 1px solid rgba(0, 47, 99, 0.14);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.advanced-json-import summary {
  cursor: pointer;
  color: var(--pine-dark);
  font-weight: 900;
}

.advanced-json-import p {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.backend-map-loader {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 47, 99, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.venue-target-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid rgba(0, 47, 99, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.venue-target-panel > div {
  display: grid;
  gap: 6px;
}

.venue-target-panel .form-status {
  grid-column: 1 / -1;
}

.venue-duplicate-review {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(217, 119, 6, 0.34);
  border-left: 4px solid #d97706;
  border-radius: 8px;
  background: #fff8ed;
  padding: 10px;
}

.venue-duplicate-review[hidden] {
  display: none;
}

.venue-duplicate-review h4 {
  margin: 0;
  color: var(--pine-dark);
  font-size: 0.9rem;
}

.venue-duplicate-review p {
  margin: 0;
  color: #8a5a00;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

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

.venue-duplicate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 47, 99, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 8px;
}

.venue-duplicate-item > div {
  min-width: 0;
}

.venue-duplicate-item strong,
.venue-duplicate-item small {
  display: block;
}

.venue-duplicate-item strong {
  color: var(--pine-dark);
  font-size: 0.87rem;
}

.venue-duplicate-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.venue-duplicate-badge {
  display: inline-flex;
  width: max-content;
  margin-bottom: 3px;
  border-radius: 999px;
  background: rgba(0, 47, 99, 0.09);
  color: var(--pine-dark);
  padding: 3px 7px;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.venue-duplicate-item[data-venue-duplicate-category="exact"] .venue-duplicate-badge,
.venue-duplicate-item[data-venue-duplicate-category="test-suspicious"] .venue-duplicate-badge {
  background: rgba(194, 33, 43, 0.12);
  color: var(--scarlet);
}

.venue-duplicate-item[data-venue-duplicate-category="safe-separate"] .venue-duplicate-badge {
  background: rgba(0, 174, 239, 0.14);
  color: var(--pine-dark);
}

.backend-map-filter {
  display: grid;
  gap: 5px;
}

.backend-map-detail {
  min-height: 38px;
  border: 1px solid rgba(0, 174, 239, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 10px;
  font-size: 0.84rem;
  line-height: 1.35;
}

.backend-map-detail strong {
  color: var(--pine-dark);
}

.map-style-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid rgba(0, 174, 239, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(231, 240, 251, 0.74), rgba(255, 255, 255, 0.92));
  padding: 12px;
}

.map-style-panel > div {
  display: grid;
  gap: 6px;
}

.map-style-panel .form-status {
  grid-column: 1 / -1;
  min-height: 0;
}

.geo-calibration-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 47, 99, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.geo-pin-helper {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 47, 99, 0.14);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.geo-map-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.geo-venue-center-actions,
.geo-radius-measure-actions {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  border: 1px solid rgba(0, 47, 99, 0.14);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.geo-venue-center-actions .form-status {
  margin: 0;
  align-self: end;
}

.geo-radius-measure-actions .form-status {
  margin: 0;
  min-height: 0;
  align-self: end;
}

.geo-venue-center-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geo-radius-measure-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.geo-radius-input-control {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.geo-radius-input-control input {
  min-height: 38px;
}

.geo-nearby-venue-status {
  margin: 0;
  border-left: 3px solid rgba(138, 90, 0, 0.5);
  padding-left: 10px;
}

.geo-radius-measure-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.geo-radius-measure-actions .ghost-button:disabled {
  cursor: not-allowed;
  border-color: #d4dde5;
  background: #edf2f7;
  color: #65717c;
}

.geo-pin-helper-panel {
  display: grid;
  gap: 10px;
}

.geo-pin-basemap-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(92px, auto));
  gap: 4px;
  justify-self: start;
  padding: 4px;
  border: 1px solid rgba(0, 47, 99, 0.16);
  border-radius: 999px;
  background: #eef4f9;
}

.geo-pin-basemap-toggle button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.geo-pin-basemap-toggle button.active {
  background: var(--pine);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 47, 99, 0.18);
}

.geo-pin-map {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(0, 47, 99, 0.18);
  border-radius: 8px;
  background: #edf3f8;
}

.geo-corner-wizard {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 174, 239, 0.22);
  border-radius: 8px;
  background: #f8fcff;
}

.geo-corner-wizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.geo-corner-wizard-head span {
  display: block;
  color: var(--pine);
  font-size: 0.86rem;
  font-weight: 900;
}

.geo-corner-wizard-head small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.geo-corner-wizard-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geo-corner-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.geo-corner-progress button {
  min-height: 36px;
  border: 1px solid rgba(0, 47, 99, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.geo-corner-progress button.is-current,
.geo-corner-progress button[aria-pressed="true"] {
  border-color: var(--pine);
  background: var(--pine);
  color: #fff;
}

.geo-corner-progress button.is-current:focus-visible,
.geo-corner-progress button[aria-pressed="true"]:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.32);
  outline-offset: 2px;
}

.geo-corner-progress button.is-complete:not(.is-current) {
  border-color: rgba(0, 174, 239, 0.42);
  background: rgba(0, 174, 239, 0.12);
  color: var(--pine);
}

.geo-corner-progress button.is-complete:not(.is-current):active,
.geo-corner-progress button:not(.is-current):active {
  background: #e9f5fb;
  color: var(--pine);
}

.geo-pin-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(5, auto);
  gap: 8px;
  align-items: center;
}

.geo-pin-toolbar span {
  color: var(--pine);
  font-size: 0.84rem;
  font-weight: 850;
}

.geo-pin-toolbar .ghost-button,
.geo-pin-toolbar .primary-button {
  min-height: 36px;
  padding-inline: 12px;
  white-space: nowrap;
}

.geo-corner-panel {
  border: 1px solid rgba(0, 174, 239, 0.22);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.geo-corner-panel-title {
  color: var(--pine);
  font-weight: 850;
}

.geo-corner-panel p {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.geo-corner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

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

.field-with-action .ghost-button {
  min-height: 38px;
}

.geo-status-error,
.geo-status-warning {
  display: block;
  margin-top: 4px;
}

.geo-status-error {
  color: var(--red);
}

.geo-status-warning {
  color: #8a5a00;
  font-weight: 800;
}

.viewpoint-gps-status {
  align-self: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.image-replacement-panel {
  border: 1px solid rgba(0, 47, 99, 0.16);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.compact-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
}

.compact-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pine);
}

.compact-check span {
  display: grid;
  gap: 2px;
}

.compact-check strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.compact-check small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.map-setup-preview {
  display: grid;
  gap: 8px;
}

.setup-preview-frame {
  min-height: 220px;
  max-height: 420px;
  align-items: center;
  justify-content: center;
}

.setup-preview-frame img {
  width: 100%;
  max-height: 410px;
  object-fit: contain;
}

.inline-control-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto auto auto;
  gap: 8px;
}

@media (max-width: 920px) {
  .builder-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-control-row {
    grid-template-columns: 1fr 1fr;
  }

  .map-style-panel {
    grid-template-columns: 1fr;
  }

  .venue-target-panel {
    grid-template-columns: 1fr;
  }

  .venue-duplicate-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .venue-duplicate-item .ghost-button {
    width: 100%;
  }

  .geo-corner-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .geo-corner-wizard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .geo-corner-progress {
    grid-template-columns: 1fr 1fr;
  }

  .field-with-action {
    grid-template-columns: 1fr;
  }

  .geo-map-tool-grid,
  .geo-radius-measure-row {
    grid-template-columns: 1fr;
  }

  .geo-pin-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .geo-pin-toolbar span {
    grid-column: 1 / -1;
  }

  .inline-control-row select {
    grid-column: 1 / -1;
  }
}

.primary-button.publish-confirmed {
  border-color: #c8d2dc;
  background: #cfd7df;
  color: #52606d;
  box-shadow: none;
  cursor: default;
}

.primary-button.publish-failed {
  background: var(--coral-bright);
  box-shadow: 0 0 0 3px rgba(240, 0, 25, 0.14);
}

.admin-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(14, 22, 31, 0.32);
}

.admin-dialog::backdrop {
  background: rgba(10, 19, 29, 0.42);
}

.admin-dialog-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.admin-dialog-card h2,
.admin-dialog-card p {
  margin: 0;
}

.delete-summary {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(194, 33, 43, 0.24);
  border-radius: 8px;
  background: rgba(194, 33, 43, 0.05);
  padding: 12px;
  color: var(--ink);
}

.delete-summary strong {
  color: var(--scarlet);
}

.admin-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

#eventStatusConfirmButton:disabled,
#eventStatusConfirmButton:disabled:hover {
  background: #e8eef3;
  border-color: #cbd6df;
  color: #73808a;
  cursor: not-allowed;
  box-shadow: none;
}

#eventStatusConfirmButton:not(:disabled) {
  background: var(--scarlet);
  border-color: var(--scarlet);
  color: #fff;
}

#eventStatusConfirmButton:not(:disabled):hover {
  background: #9f1119;
  border-color: #9f1119;
  color: #fff;
}

.builder-preview {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
}

.builder-placement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
  gap: 14px;
}

.builder-map-column {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.builder-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.builder-preview-toolbar .map-controls strong {
  min-width: 42px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.builder-preview-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.builder-preview-frame {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 360px;
  border: 1px dashed rgba(0, 47, 99, 0.28);
  border-radius: 8px;
  background: #f8fafc;
  overflow: auto;
  color: var(--muted);
  font-weight: 800;
}

.builder-preview-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.builder-map-canvas {
  position: relative;
  display: block;
  flex: 0 0 calc(100% * var(--builder-zoom, 1));
  width: calc(100% * var(--builder-zoom, 1));
  max-width: none;
  margin: 0 auto;
  cursor: crosshair;
}

.builder-map-canvas img {
  width: 100%;
  max-width: none;
  max-height: none;
}

.builder-viewpoint-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  box-shadow: 0 3px 10px rgba(23, 32, 38, 0.22);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  z-index: 3;
}

.builder-viewpoint-marker.selected {
  background: var(--coral-bright);
  box-shadow: 0 0 0 4px rgba(240, 0, 25, 0.22), 0 3px 10px rgba(23, 32, 38, 0.22);
}

.builder-viewpoint-marker.dragging {
  cursor: grabbing;
  box-shadow: 0 0 0 5px rgba(240, 0, 25, 0.24), 0 8px 18px rgba(23, 32, 38, 0.28);
  z-index: 5;
}

.builder-polygon-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.builder-polygon-shape {
  fill: rgba(0, 47, 99, 0.12);
  stroke: var(--coral-bright);
  stroke-width: 0.45;
  stroke-dasharray: 1.2 0.8;
  vector-effect: non-scaling-stroke;
}

.builder-polygon-vertex {
  position: absolute;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--coral-bright);
  color: #fff;
  box-shadow: 0 2px 8px rgba(23, 32, 38, 0.2);
  font-size: 0.62rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.builder-preview-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 47, 99, 0.34);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.builder-direction-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.builder-direction-line {
  stroke: var(--pine);
  stroke-width: 0.7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.builder-direction-point {
  position: absolute;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  box-shadow: 0 2px 8px rgba(23, 32, 38, 0.2);
  font-size: 0.62rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}

.builder-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.viewpoint-editor {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 100px);
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.viewpoint-editor .form-grid,
.viewpoint-editor .section-manager-item {
  grid-template-columns: 1fr;
}

.bulk-area-tool {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.placement-tool-head,
.placement-panel-head {
  display: grid;
  gap: 2px;
}

.placement-tool-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.placement-tool-head span,
.placement-panel-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.placement-tool-head strong {
  border: 1px solid rgba(0, 174, 239, 0.38);
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.08);
  color: var(--pine-dark);
  padding: 5px 9px;
  font-size: 0.76rem;
}

.placement-panel-head small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.25;
}

.placement-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 6px;
}

.placement-stepper span {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--muted);
  padding: 4px 6px;
  font-size: 0.68rem;
  font-weight: 850;
}

.placement-stepper strong {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d7dee5;
  color: var(--muted);
  font-size: 0.68rem;
}

.placement-stepper .active {
  border-color: rgba(0, 174, 239, 0.55);
  background: rgba(0, 174, 239, 0.08);
  color: var(--pine-dark);
}

.placement-stepper .active strong,
.placement-stepper .complete strong {
  background: var(--miami-blue);
  color: #fff;
}

.placement-stepper .complete {
  border-color: rgba(0, 47, 99, 0.2);
  color: var(--pine-dark);
}

.placement-stepper .disabled {
  opacity: 0.48;
}

.placement-mode-panel {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(0, 47, 99, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.placement-mode-panel.is-active {
  border-color: rgba(0, 174, 239, 0.42);
  box-shadow: inset 3px 0 0 var(--miami-blue);
}

.placement-mode-panel[hidden] {
  display: none;
}

.placement-mode-panel :disabled {
  cursor: not-allowed;
}

.area-mode-panel {
  background: #fbfdff;
}

.bulk-area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.bulk-area-grid span {
  display: grid;
  gap: 4px;
}

.bulk-area-grid label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.section-marker-check {
  margin-top: 2px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 4px;
}

.segmented-control button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.segmented-control button.active {
  background: var(--pine);
  color: #fff;
}

#setRowDirection.active {
  border-color: var(--coral-bright);
  box-shadow: 0 0 0 3px rgba(240, 0, 25, 0.14);
}

.bulk-area-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-manager {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.section-manager-head,
.section-manager-item {
  display: grid;
  align-items: end;
  gap: 8px;
}

.section-manager-head {
  grid-template-columns: 1fr auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.section-manager .approval-empty {
  margin: 0;
}

.section-manager-item {
  grid-template-columns: minmax(160px, 1fr) auto auto auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}

.section-manager-item label {
  display: grid;
  gap: 4px;
}

.section-manager-item label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.section-manager-check {
  align-self: stretch;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-width: 132px;
}

.section-manager-check input {
  width: 16px;
  height: 16px;
}

.viewpoint-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.viewpoint-editor-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.viewpoint-editor-item.selected {
  border-color: var(--coral-bright);
  box-shadow: 0 0 0 3px rgba(240, 0, 25, 0.14);
}

.viewpoint-editor-item label {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
}

.viewpoint-editor-item .ghost-button {
  grid-column: 1 / -1;
}

.viewpoint-editor-item label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.viewpoint-select-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.builder-json-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.builder-json-panel pre {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  border-radius: 8px;
  background: #111820;
  color: #e7f0fb;
  padding: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.publish-summary article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

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

.publish-summary span {
  color: var(--muted);
  font-size: 0.84rem;
}

.publish-summary .publish-warning {
  grid-column: 1 / -1;
  border-color: rgba(217, 119, 6, 0.45);
  border-left: 4px solid #d97706;
  background: #fff8ed;
}

.publish-summary .publish-warning span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  color: #8a5a00;
  line-height: 1.45;
}

.approval-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 18px;
}

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

.published-head {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.approval-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.approval-item strong,
.approval-item small {
  display: block;
}

.approval-item small,
.approval-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.video-admin-shell {
  max-width: 1380px;
}

.video-admin-workspace {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 18px;
}

.video-admin-toolbar,
.video-upload-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.video-admin-toolbar h2,
.video-upload-card h3 {
  margin: 0;
  color: var(--pine-dark);
}

.video-admin-toolbar h2 {
  font-size: 1.45rem;
}

.video-admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-admin-toolbar-actions .ghost-button[aria-pressed="true"] {
  border-color: var(--miami-blue);
  background: rgba(0, 174, 239, 0.14);
  color: var(--pine-dark);
}

.video-filter-panel {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 10px;
  border: 1px solid rgba(0, 47, 99, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.video-filter-panel label {
  display: grid;
  gap: 5px;
}

.video-filter-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.video-filter-panel select,
.video-filter-panel input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}

.video-search-filter {
  grid-column: span 2;
}

.video-admin-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-admin-summary span,
.video-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(0, 47, 99, 0.14);
  border-radius: 999px;
  background: var(--sky);
  color: var(--pine-dark);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.video-admin-summary strong {
  margin-right: 4px;
}

.video-admin-summary .video-summary-active {
  border-color: var(--miami-blue);
  background: rgba(0, 174, 239, 0.14);
}

.worker-health-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 47, 99, 0.14);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.worker-health-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.worker-health-heading .eyebrow {
  margin: 0;
}

.worker-health-heading strong {
  color: var(--pine-dark);
  font-size: 0.92rem;
}

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

.worker-health-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.worker-health-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.worker-health-title-row strong {
  color: var(--pine-dark);
}

.worker-health-title-row span {
  border: 1px solid rgba(0, 47, 99, 0.14);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.worker-health-card.is-healthy .worker-health-title-row span {
  border-color: rgba(17, 163, 74, 0.3);
  background: #e9f9f0;
  color: #15713b;
}

.worker-health-card.is-active .worker-health-title-row span {
  border-color: rgba(0, 174, 239, 0.35);
  background: rgba(0, 174, 239, 0.12);
  color: var(--pine-dark);
}

.worker-health-card.is-warning .worker-health-title-row span {
  border-color: rgba(212, 0, 44, 0.22);
  background: #fff1f3;
  color: var(--red);
}

.worker-health-card.is-muted .worker-health-title-row span {
  background: #eef2f7;
  color: var(--muted);
}

.worker-health-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.worker-health-card dl div {
  border: 1px solid rgba(0, 47, 99, 0.08);
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px;
}

.worker-health-card dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.worker-health-card dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.worker-health-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.worker-metric-grid,
.worker-health-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.worker-metric-card,
.worker-health-section,
.upload-attempt-panel {
  border: 1px solid rgba(0, 47, 99, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.worker-metric-card {
  display: grid;
  gap: 4px;
}

.worker-metric-card span,
.worker-health-mini-grid dt,
.upload-attempt-summary dt,
.upload-attempt-details dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.worker-metric-card strong {
  color: var(--pine-dark);
  font-size: 1.25rem;
}

.worker-metric-card p,
.worker-health-note,
.upload-attempt-panel p,
.upload-attempt-error pre {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.worker-health-section {
  display: grid;
  gap: 9px;
}

.worker-health-subhead,
.upload-attempt-head,
.upload-attempt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.worker-health-subhead strong,
.upload-attempt-head strong,
.upload-attempt-row strong {
  color: var(--pine-dark);
}

.worker-health-subhead span,
.upload-attempt-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.worker-health-mini-grid,
.upload-attempt-summary,
.upload-attempt-details li dl {
  margin: 0;
}

.worker-health-mini-grid div,
.upload-attempt-summary div,
.upload-attempt-details li dl div {
  min-width: 0;
  border: 1px solid rgba(0, 47, 99, 0.08);
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px;
}

.worker-health-mini-grid dd,
.upload-attempt-summary dd,
.upload-attempt-details dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.worker-summary-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.worker-summary-lists dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.worker-summary-lists dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(0, 47, 99, 0.08);
  border-radius: 8px;
  background: #fbfdff;
  padding: 7px;
}

.worker-summary-lists dt,
.worker-summary-lists dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 850;
}

.worker-summary-lists dt {
  color: var(--muted);
}

.worker-summary-lists dd {
  color: var(--ink);
}

.worker-alert-list {
  display: grid;
  gap: 7px;
}

.worker-alert-item {
  border: 1px solid rgba(0, 47, 99, 0.1);
  border-left: 4px solid rgba(0, 174, 239, 0.7);
  border-radius: 8px;
  background: #f8fbff;
  padding: 9px;
}

.worker-alert-item.is-warning {
  border-left-color: var(--coral);
  background: #fff7f8;
}

.worker-alert-item strong {
  color: var(--pine-dark);
  font-size: 0.86rem;
}

.worker-alert-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.video-upload-list {
  display: grid;
  gap: 12px;
}

.video-upload-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.video-upload-media {
  overflow: hidden;
  min-height: 170px;
  border-radius: 8px;
  background: #0e151a;
}

.video-admin-preview,
.video-admin-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 170px;
  border: 0;
  background: #0e151a;
  object-fit: contain;
}

.video-admin-placeholder {
  display: grid;
  place-items: center;
  min-height: 170px;
  color: #fff;
  font-weight: 850;
}

.video-upload-body {
  display: grid;
  gap: 12px;
}

.video-upload-title-row p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.video-upload-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 360px;
}

.video-status-pill.pending_review {
  border-color: rgba(201, 0, 22, 0.24);
  background: #fff1f2;
  color: var(--coral);
}

.video-status-pill.approved,
.video-status-pill.sync_eligible,
.video-status-pill.youtube_complete {
  border-color: rgba(0, 200, 83, 0.24);
  background: #eafff2;
  color: #007a32;
}

.video-status-pill.processing {
  border-color: rgba(0, 174, 239, 0.3);
  background: #eaf8ff;
  color: var(--miami-blue-dark);
}

.video-status-pill.duplicate_exact {
  border-color: rgba(201, 0, 22, 0.28);
  background: #fff1f2;
  color: var(--coral);
}

.video-status-pill.duplicate_likely,
.video-status-pill.duplicate_possible {
  border-color: rgba(255, 196, 0, 0.42);
  background: #fff9db;
  color: #7a5800;
}

.video-status-pill.duplicate_unique {
  border-color: rgba(0, 200, 83, 0.2);
  background: #f3fff7;
  color: #007a32;
}

.video-status-pill.duplicate_resolved {
  border-color: rgba(0, 47, 99, 0.22);
  background: #f2f6fa;
  color: var(--pine);
}

.video-status-pill.failed,
.video-status-pill.denied,
.video-status-pill.sync_ineligible {
  border-color: rgba(201, 0, 22, 0.28);
  background: #fff5f5;
  color: var(--coral);
}

.video-status-pill.is-muted {
  border-color: rgba(0, 47, 99, 0.16);
  background: #f2f5f8;
  color: var(--muted);
}

.video-upload-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.video-upload-meta div {
  min-width: 0;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 8px;
}

.video-upload-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.video-upload-meta dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-attempt-panel {
  display: grid;
  gap: 9px;
}

.upload-attempt-head .eyebrow {
  margin: 0;
}

.upload-attempt-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.upload-attempt-details {
  border: 1px solid rgba(0, 47, 99, 0.1);
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
}

.upload-attempt-details summary {
  cursor: pointer;
  color: var(--pine-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.upload-attempt-details ol {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.upload-attempt-details li {
  display: grid;
  gap: 7px;
}

.upload-attempt-details li dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.upload-attempt-error {
  border: 1px solid rgba(201, 0, 22, 0.16);
  border-radius: 8px;
  background: #fff7f8;
  padding: 7px;
}

.upload-attempt-error summary {
  color: var(--coral);
}

.upload-attempt-error pre {
  overflow: auto;
  max-height: 160px;
  margin-top: 7px;
  white-space: pre-wrap;
}

.metadata-confidence-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.metadata-confidence-note strong {
  color: var(--ink);
  font-weight: 850;
}

.duplicate-note {
  margin: 0;
  border: 1px solid rgba(255, 196, 0, 0.42);
  border-radius: 8px;
  background: #fff9db;
  color: var(--ink);
  padding: 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

.duplicate-note strong {
  color: var(--coral);
  font-weight: 900;
}

.duplicate-candidates-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 196, 0, 0.42);
  border-radius: 8px;
  background: #fffdf0;
  padding: 10px;
}

.duplicate-candidates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.duplicate-candidates-header h4 {
  margin: 2px 0 0;
  color: var(--pine-dark);
  font-size: 0.98rem;
}

.duplicate-candidates-header span {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 196, 0, 0.42);
  border-radius: 999px;
  background: #fff8c7;
  color: #7a5800;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 850;
}

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

.duplicate-candidate-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 0.8fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 47, 99, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.duplicate-candidate-card strong {
  display: block;
  color: var(--pine-dark);
  font-size: 0.92rem;
}

.duplicate-candidate-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

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

.duplicate-candidate-card dl div {
  min-width: 0;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 7px;
}

.duplicate-candidate-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.duplicate-candidate-card dd {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duplicate-candidate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.video-error {
  margin: 0;
  border: 1px solid rgba(201, 0, 22, 0.28);
  border-radius: 8px;
  background: #fff5f5;
  color: var(--coral);
  padding: 8px;
  font-size: 0.86rem;
  font-weight: 750;
}

.metadata-correction-note {
  margin: 0;
  border: 1px solid rgba(0, 174, 239, 0.28);
  border-radius: 8px;
  background: #eef9ff;
  color: var(--ink);
  padding: 8px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.metadata-correction-note strong {
  color: var(--pine);
}

.video-upload-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.video-upload-card.is-action-pending {
  outline: 2px solid rgba(32, 184, 239, 0.45);
  outline-offset: 2px;
}

.video-upload-card.is-action-pending .video-upload-actions button {
  cursor: progress;
}

.video-upload-actions button.is-busy {
  background: linear-gradient(90deg, var(--prism-pink), var(--prism-blue));
  border-color: transparent;
  color: #fff;
}

.video-upload-actions button:disabled {
  opacity: 0.55;
}

.video-action-note {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0 8px;
}

.metadata-dialog {
  width: min(760px, calc(100vw - 32px));
}

.metadata-dialog-card {
  gap: 16px;
}

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

.metadata-current-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.metadata-current-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metadata-current-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metadata-dialog-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.metadata-dialog-card input,
.metadata-dialog-card select,
.metadata-dialog-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 10px;
}

.metadata-dialog-card textarea {
  resize: vertical;
}

.metadata-checkbox {
  align-content: center;
  grid-template-columns: auto 1fr;
  margin-top: 20px;
}

.metadata-checkbox input {
  width: auto;
  margin: 2px 0 0;
}

.event-manager-workspace {
  display: grid;
  gap: 16px;
}

.event-admin-mode-panel {
  display: grid;
  gap: 14px;
}

.event-admin-mode-panel[hidden] {
  display: none;
}

.event-manager-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.event-edit-workflow,
.event-edit-editor-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.event-edit-find-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  min-width: 0;
}

.event-edit-filter-form {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.event-edit-filter-row {
  display: grid;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.event-edit-filter-row-location {
  grid-template-columns: minmax(120px, 160px) minmax(140px, 180px) minmax(260px, 1fr);
}

.event-edit-filter-row-meta {
  grid-template-columns: minmax(110px, 140px) minmax(140px, 170px) minmax(180px, 220px) minmax(280px, 1fr);
}

.event-edit-filter-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.event-edit-filter-form select,
.event-edit-filter-form input {
  width: 100%;
  min-width: 0;
}

.event-edit-select-panel .event-manager-list {
  max-height: 520px;
}

#editEventEditorSlot,
#editEventEditorSlot .event-editor-panel {
  width: 100%;
  min-width: 0;
}

.event-list-panel,
.event-editor-panel,
.bulk-event-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  min-width: 0;
}

.event-manager-section-head,
.managed-event-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.event-manager-section-head h3,
.managed-event-title-row h4 {
  margin: 0;
  color: var(--pine-dark);
}

.event-manager-list {
  display: grid;
  gap: 10px;
  max-height: 820px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-color: var(--miami-blue) #e7f0fb;
}

.managed-event-card {
  display: grid;
  gap: 10px;
  border: 1px solid #e2e7eb;
  border-left: 4px solid var(--pine);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.managed-event-card.is-request {
  border-left-color: var(--pending-pink);
}

.managed-event-card.is-loaded {
  border-color: var(--miami-blue);
  border-left-color: var(--miami-blue);
  background: #f1fbff;
  box-shadow:
    0 0 0 3px rgba(0, 174, 239, 0.22),
    0 0 22px rgba(0, 174, 239, 0.28);
}

.managed-event-card p,
.managed-event-card small {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.event-editor-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.event-editor-step {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  min-width: 0;
}

.event-editor-step.is-active {
  border-color: var(--miami-blue);
  background: #f2fbff;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.14);
}

.event-editor-step.is-complete:not(.is-active) {
  background: #fbfcfd;
}

.event-editor-step-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.event-editor-step-head > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.event-editor-step.is-complete .event-editor-step-head > span {
  background: var(--pine);
}

.event-editor-step-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.event-editor-step-head strong {
  color: var(--pine-dark);
  font-size: 0.95rem;
}

.event-editor-step-head small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.event-editor-grid {
  display: grid;
  gap: 10px;
  align-items: start;
}

.event-editor-grid span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.event-editor-grid input,
.event-editor-grid select,
.event-editor-grid textarea {
  width: 100%;
  min-width: 0;
}

.event-editor-grid span.is-next-field {
  position: relative;
  border-radius: 7px;
  box-shadow: 0 0 0 2px rgba(126, 78, 255, 0.78), 0 0 0 6px rgba(126, 78, 255, 0.1);
}

.event-editor-grid span.is-next-field label::after {
  content: "Next";
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border-radius: 999px;
  background: rgba(126, 78, 255, 0.12);
  color: #5731c7;
  margin-left: 6px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.event-editor-grid-location {
  grid-template-columns: minmax(110px, 0.65fr) minmax(130px, 0.75fr) minmax(240px, 1.6fr);
}

.event-editor-grid-title {
  grid-template-columns: minmax(280px, 1.8fr) minmax(170px, 0.8fr);
}

.event-editor-grid-date {
  grid-template-columns: minmax(150px, 220px);
}

.event-editor-grid-time {
  grid-template-columns: minmax(140px, 0.8fr) minmax(140px, 0.8fr) minmax(220px, 1.2fr);
}

.event-editor-grid-optional {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) minmax(150px, 0.7fr);
}

.event-editor-grid-optional > span:not(.event-editor-notes-field) label {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 34px;
}

.event-editor-notes-field {
  grid-column: 1 / -1;
}

.event-editor-panel.is-idle {
  border-color: rgba(0, 174, 239, 0.28);
  background: linear-gradient(135deg, rgba(231, 240, 251, 0.56), rgba(255, 255, 255, 0.98));
}

.event-editor-panel.is-idle .event-editor-form > :not(.event-review-box) {
  opacity: 0.54;
}

body.admin-signed-in .admin-auth label,
body.admin-signed-in #adminSignInButton {
  display: none;
}

.field-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.optional-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: lowercase;
}

.event-review-box {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(0, 47, 99, 0.16);
  border-radius: 8px;
  background: var(--sky);
  color: var(--pine-dark);
  padding: 10px;
}

.event-review-box span {
  color: var(--muted);
  line-height: 1.35;
}

.event-review-box.ready {
  border-color: rgba(0, 200, 83, 0.24);
  background: #eafff2;
  color: #007a32;
}

.event-review-box.advisory {
  border-color: rgba(0, 174, 239, 0.34);
  background: #eef9ff;
  color: var(--pine-dark);
}

.event-review-box.needs-attention {
  border-color: rgba(217, 1, 102, 0.25);
  background: #fff1f7;
  color: var(--pending-pink-dark);
}

.event-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.event-import-confirm-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.bulk-event-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.bulk-event-source,
.bulk-event-preview {
  display: grid;
  gap: 10px;
}

.event-import-method-panel {
  display: grid;
  gap: 12px;
}

.event-import-two-column,
.event-import-manual-grid,
.event-import-source-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.82fr);
  gap: 14px;
  align-items: start;
}

.event-import-block {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.event-import-block-head {
  display: grid;
  gap: 3px;
}

.event-import-block-head strong {
  color: var(--pine-dark);
  font-size: 0.98rem;
}

.event-import-block-head small {
  color: var(--muted);
  line-height: 1.35;
}

.event-import-step-header-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.source-fetch-step-actions {
  margin-top: 0;
}

.event-search-step-label {
  display: block;
  color: var(--pine-dark);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.2;
}

#importResearchRequestInput,
#interpretImportRequestButton,
#createBroadDiscoveryImportButton {
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

#importResearchRequestInput.event-search-active-step,
#interpretImportRequestButton.event-search-active-step,
#createBroadDiscoveryImportButton.event-search-active-step {
  border-color: rgba(0, 120, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.12);
}

#importResearchRequestInput:not(.event-search-active-step):focus {
  border-color: var(--line);
  box-shadow: none;
}

.event-import-method {
  background: #fbfcfd;
}

.event-search-empty-state {
  display: grid;
  gap: 4px;
  padding: 4px 0 2px;
}

.event-search-empty-state strong {
  color: var(--pine-dark);
}

.event-search-empty-state span {
  color: var(--muted);
  line-height: 1.4;
}

.event-search-run-panel {
  display: grid;
  gap: 12px;
  padding: 2px 0 4px;
}

.event-search-run-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.event-search-run-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.event-search-run-copy strong {
  color: var(--pine-dark);
  font-size: 1.15rem;
}

.event-search-run-count {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.event-search-run-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef3;
}

.event-search-run-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pine);
  transition: width 320ms ease;
}

.event-search-run-progress.active span {
  background: linear-gradient(90deg, var(--pine), #228fe0);
}

.event-search-run-progress.ready span {
  background: #007853;
}

.event-search-run-progress.needs-attention span {
  background: var(--pending-pink);
}

.event-search-run-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--ink);
  font-weight: 800;
}

.event-search-run-context span:not(:last-child)::after {
  content: "/";
  margin-left: 12px;
  color: var(--muted);
  font-weight: 700;
}

.event-search-run-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.event-search-run-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.event-search-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-search-history-item {
  display: grid;
  gap: 5px;
}

.event-search-history-item small {
  color: var(--muted);
  font-weight: 800;
}

.event-search-history {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.event-search-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  color: var(--pine-dark);
  font-weight: 900;
}

.event-search-history summary strong {
  display: inline-grid;
  min-width: 26px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #e8f6ff;
  color: var(--pine);
  font-size: 0.82rem;
}

.event-search-history-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.event-search-history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}

.event-import-worker-status {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 47, 99, 0.14);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.event-import-worker-status-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.event-import-worker-status-head strong {
  color: var(--pine-dark);
}

.event-import-worker-status-head span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.event-import-worker-job-list {
  display: grid;
  gap: 8px;
}

.event-import-worker-job {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.event-import-worker-job.needs-attention {
  border-color: rgba(217, 1, 102, 0.28);
  background: #fff7fb;
}

.event-import-worker-job.advisory {
  border-color: rgba(0, 47, 99, 0.14);
  background: #f8fafc;
}

.event-import-worker-job div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.event-import-worker-job small {
  color: var(--muted);
  font-weight: 700;
}

.event-import-worker-job p {
  margin: 0;
  color: var(--pending-pink-dark);
  line-height: 1.35;
}

.event-import-worker-job p.event-import-job-stage {
  color: var(--muted);
}

.event-import-step-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  line-height: 1.35;
}

.event-import-step-line span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-import-step-line strong {
  color: var(--ink);
}

.event-import-step-line small {
  color: var(--muted);
}

.import-candidate-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.import-candidate-summary-copy {
  display: grid;
  gap: 4px;
}

.import-candidate-summary .event-request-actions {
  margin-top: 0;
}

.import-selected-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.import-selected-action-row small {
  max-width: 260px;
  color: var(--muted);
  line-height: 1.3;
}

.import-candidate-buckets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}

.import-candidate-bucket-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font-weight: 800;
}

.import-candidate-bucket-button strong {
  display: inline-grid;
  min-width: 28px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #e8f6ff;
  color: var(--pine);
  font-size: 0.86rem;
}

.import-candidate-bucket-button.active {
  border-color: var(--pine);
  background: var(--pine);
  color: #fff;
}

.import-candidate-bucket-button.active strong {
  background: #fff;
  color: var(--pine);
}

.import-candidate-select-all {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

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

.import-candidate-card-list,
.import-candidate-list {
  display: grid;
  gap: 8px;
}

.import-candidate-card-head {
  align-items: start;
  gap: 8px;
}

.import-candidate-list-row {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.import-candidate-list-row.ready {
  border-color: rgba(0, 120, 83, 0.22);
}

.import-candidate-list-row.needs-attention {
  border-color: rgba(217, 1, 102, 0.22);
}

.import-candidate-list-row.advisory {
  border-color: rgba(0, 96, 145, 0.2);
}

.import-candidate-list-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.import-candidate-list-select {
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.import-candidate-list-select span {
  min-width: 0;
}

.import-candidate-list-select strong,
.import-candidate-list-select small {
  display: block;
}

.import-candidate-list-select strong {
  color: var(--ink);
}

.import-candidate-list-select small {
  color: var(--muted);
  line-height: 1.35;
}

.import-candidate-list-status {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 132px;
  color: var(--muted);
  font-size: 0.82rem;
}

.import-candidate-row-details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.import-candidate-row-details summary {
  cursor: pointer;
  color: var(--pine);
  font-weight: 800;
}

.import-candidate-row-details[open] summary {
  margin-bottom: 8px;
}

.import-candidate-edit-grid {
  grid-template-columns: minmax(220px, 1.4fr) minmax(130px, 0.8fr) minmax(110px, 0.6fr) minmax(110px, 0.6fr);
}

.import-candidate-edit-grid span:nth-child(5),
.import-candidate-edit-grid span:nth-child(6) {
  grid-column: span 2;
}

.event-import-scope-grid {
  grid-template-columns: minmax(120px, 0.7fr) minmax(140px, 0.8fr) minmax(220px, 1.5fr);
}

.event-import-scope-grid-secondary {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.source-registry-form {
  display: grid;
  gap: 10px;
}

.source-registry-detail-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.58fr);
}

.source-registry-meta-grid {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.source-registry-status {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

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

.source-registry-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.source-registry-card.archived {
  opacity: 0.72;
}

.source-registry-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.source-registry-card-head strong {
  color: var(--pine-dark);
}

.source-registry-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.source-registry-card dl div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px;
}

.source-registry-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-registry-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.source-registry-card a {
  overflow-wrap: anywhere;
  color: var(--pine);
  font-weight: 750;
}

.source-registry-url-missing {
  color: var(--muted);
  font-weight: 750;
}

.source-registry-card p {
  margin: 0;
  color: var(--pending-pink-dark);
  line-height: 1.35;
}

.source-registry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bulk-event-preview {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-color: var(--miami-blue) #e7f0fb;
}

.bulk-event-card {
  border: 1px solid #e2e7eb;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.bulk-event-card.ready {
  border-color: rgba(0, 200, 83, 0.26);
  background: #f4fff8;
}

.bulk-event-card.advisory {
  border-color: rgba(0, 174, 239, 0.28);
  background: #f1fbff;
}

.bulk-event-card.needs-attention {
  border-color: rgba(217, 1, 102, 0.22);
  background: #fff7fb;
}

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

.admin-card span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--pine-dark);
  font-weight: 900;
}

.admin-card h2 {
  color: var(--pine-dark);
  font-size: 1rem;
}

.admin-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.control-panel,
.venue-workspace,
.map-panel,
.video-panel,
.view-card,
.timeline-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100vh - 112px);
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.92)),
    var(--panel);
  transition: opacity 0.18s ease, transform 0.22s ease;
}

.panel-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 47, 99, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(0, 47, 99, 0.04);
}

.control-panel .panel-section:first-child {
  padding: 4px 4px 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.finder-title {
  max-width: 280px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.85rem, 3.2vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.finder-copy {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.38;
}

.panel-section.grow {
  align-content: start;
  padding-bottom: 14px;
}

.venue-browse-controls {
  display: grid;
  gap: 10px;
}

.venue-browse-controls[hidden] {
  display: none;
}

.finder-request-actions {
  display: grid;
  gap: 8px;
}

.discovery-mode-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 5px;
}

.discovery-mode-control button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 8px;
  font-size: 0.86rem;
  font-weight: 900;
}

.discovery-mode-control button.active {
  background: linear-gradient(135deg, var(--prism-coral), var(--prism-violet) 58%, var(--prism-blue));
  color: #fff;
  box-shadow: 0 14px 30px rgba(108, 60, 255, 0.2);
}

.discovery-mode-control.event-admin-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.discovery-mode-control.event-import-tabs {
  width: min(100%, 780px);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.discovery-mode-control.builder-mode-tabs {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-shell .discovery-mode-control button.active {
  background: var(--pine);
  color: #fff;
  box-shadow: none;
}

.location-summary,
.date-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.selector-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.selector-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.location-summary strong,
.date-summary strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.1;
}

.location-controls,
.event-date-controls {
  display: grid;
  gap: 8px;
}

.location-controls .locate-in-settings {
  margin-top: 2px;
}

.location-controls[hidden],
.event-date-controls[hidden] {
  display: none;
}

.text-button {
  border: 1px solid rgba(32, 46, 70, 0.12);
  border-radius: 999px;
  background: rgba(247, 250, 252, 0.9);
  color: #4f5b64;
  padding: 5px 9px;
  font-size: 0.7rem;
  font-weight: 850;
}

.text-button:hover {
  background: #e8ecef;
  border-color: #b8c1c8;
}

.uploader-password-reset {
  justify-self: start;
  width: fit-content;
}

.settings-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(32, 46, 70, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.92)),
    #fff;
  color: var(--muted);
  box-shadow: 0 10px 22px rgba(0, 47, 99, 0.08);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.settings-icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-icon-button:hover,
.settings-icon-button:focus-visible,
.settings-icon-button.is-expanded {
  border-color: rgba(0, 167, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 61, 119, 0.1), rgba(0, 167, 255, 0.13)),
    #fff;
  color: var(--prism-violet);
  box-shadow:
    0 0 0 3px rgba(0, 167, 255, 0.11),
    0 14px 28px rgba(0, 47, 99, 0.12);
  transform: translateY(-1px);
}

.settings-icon-button.is-expanded svg {
  transform: rotate(35deg);
}

.eyebrow {
  margin: 0;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

select,
input,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
}

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

.event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 820px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 6px 2px 0;
  scrollbar-gutter: stable;
  scrollbar-color: var(--miami-blue) #e7f0fb;
}

.event-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 0.8fr);
  gap: 8px;
}

.event-search-field {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.event-search-field::before {
  content: none;
}

.event-search-field::after {
  content: none;
}

#eventSearch {
  -webkit-appearance: none;
  appearance: none;
  height: auto;
  min-height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 850;
  outline: 0;
}

#eventSearch::placeholder {
  color: rgba(18, 24, 38, 0.38);
  opacity: 1;
}

.event-date-filter {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 8px;
}

.event-date-filter span {
  display: grid;
  gap: 6px;
}

.event-day-filter {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 0 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--miami-blue) #e7f0fb;
}

.event-day-filter button {
  flex: 0 0 auto;
  min-height: 34px;
  border-color: rgba(0, 47, 99, 0.18);
  background: #fff;
  color: var(--muted);
  padding: 0 11px;
  font-size: 0.8rem;
  font-weight: 850;
}

.event-day-filter button.active {
  border-color: var(--pine);
  background: var(--pine);
  color: #fff;
}

.event-status {
  min-height: 0;
  font-size: 0.78rem;
  line-height: 1.25;
}

.event-status[data-system-note="latest-events"] {
  font-weight: 400;
}

.request-venue {
  width: 100%;
  background: #edf4fc;
  border-color: rgba(0, 47, 99, 0.28);
  color: var(--pine);
  font-weight: 800;
}

.event-item {
  box-sizing: border-box;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  text-align: left;
  background: #fff;
  border-color: var(--line);
  padding: 12px;
  line-height: 1.25;
  box-shadow: 0 1px 0 rgba(21, 32, 38, 0.04);
}

.event-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  padding: 12px;
  font-size: 0.86rem;
  font-weight: 750;
}

.event-date-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  width: fit-content;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 174, 239, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.event-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.9)),
    #fff;
  border-color: rgba(0, 47, 99, 0.12);
  box-shadow: 0 10px 24px rgba(0, 47, 99, 0.06);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.event-item:hover {
  border-color: rgba(0, 174, 239, 0.4);
  box-shadow: 0 14px 28px rgba(0, 47, 99, 0.1);
  transform: translateY(-1px);
}

.event-item.active {
  border-color: rgba(0, 167, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(0, 167, 255, 0.14), rgba(255, 61, 119, 0.08)),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(0, 167, 255, 0.14),
    0 16px 36px rgba(0, 167, 255, 0.1);
}

.event-item.venue-result {
  border-color: rgba(0, 174, 239, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 174, 239, 0.09), rgba(255, 255, 255, 0.94)),
    #fff;
}

.event-card-copy,
.event-card-copy strong,
.event-card-copy span,
.event-card-copy small {
  display: block;
}

.event-card-copy {
  min-width: 0;
}

.event-card-copy strong {
  color: var(--ink);
  line-height: 1.12;
}

.event-card-copy span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.84rem;
}

.event-card-copy small {
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.1);
  color: var(--pine);
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 850;
}

.event-date-badge {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 58px;
  min-height: 54px;
  border: 1px solid rgba(0, 174, 239, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 174, 239, 0.11), rgba(255, 255, 255, 0.92)),
    #fff;
  color: var(--pine-dark);
  line-height: 1;
}

.event-date-badge span {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-date-badge b {
  margin-top: 3px;
  color: var(--pine);
  font-size: 1.22rem;
  font-weight: 950;
}

.event-date-badge.venue-badge b,
.event-date-badge.muted-date b {
  font-size: 0.86rem;
}

.venue-workspace {
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.94)),
    var(--panel);
}

body[data-discovery-mode="share"] .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body[data-discovery-mode="share"] .control-panel,
body[data-discovery-mode="share"] .venue-workspace,
body[data-discovery-mode="share"] .finder-panel-toggle {
  display: none;
}

.share-video-workspace {
  min-width: 0;
  min-height: calc(100vh - 132px);
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 46, 163, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 174, 239, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 252, 255, 0.94));
  box-shadow: var(--shadow);
  padding: 20px;
}

.share-video-workspace[hidden] {
  display: none;
}

.share-video-shell {
  display: grid;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.share-video-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.share-video-header h1 {
  max-width: 760px;
}

.share-video-header p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.share-video-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.share-video-layout {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}

.share-video-workspace[data-has-file="false"] .share-video-layout {
  grid-template-columns: minmax(420px, 720px);
  justify-content: center;
}

.share-video-workspace[data-has-file="false"] .share-upload-mount {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.share-video-workspace[data-has-file="false"] .share-video-context {
  display: none;
}

.share-upload-mount,
.share-video-context {
  border: 1px solid rgba(0, 47, 99, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(0, 47, 99, 0.08);
}

.share-upload-mount {
  padding: 18px;
}

.share-video-context {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.share-video-context > .eyebrow,
.share-video-context > h2,
.share-video-context > p,
.share-video-context .share-video-facts {
  display: none;
}

.share-video-context p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.38;
}

.share-context-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(0, 174, 239, 0.18);
  border-radius: 14px;
  background: rgba(0, 174, 239, 0.06);
  padding: 12px;
}

.share-context-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.share-context-card strong {
  color: var(--pine-dark);
  font-size: 0.96rem;
  line-height: 1.24;
}

.share-video-facts,
.share-match-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 47, 99, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
}

.share-video-facts[hidden],
.share-match-panel[hidden] {
  display: none;
}

.share-video-facts > span,
.share-match-panel > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.share-video-facts > strong,
.share-match-panel > strong {
  color: var(--pine-dark);
  font-size: 1rem;
  line-height: 1.2;
}

.share-video-facts dl,
.share-match-panel dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.share-video-facts dl div,
.share-match-panel dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(0, 47, 99, 0.08);
  padding-top: 6px;
}

.share-video-facts dt,
.share-match-panel dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.share-video-facts dd,
.share-match-panel dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: right;
}

.share-video-facts p,
.share-match-panel p {
  margin: 0;
}

.share-video-facts .is-ready {
  color: #087846;
  font-weight: 900;
}

.share-video-facts .is-warning {
  color: var(--brand-red);
  font-weight: 900;
}

.share-match-panel[data-state="strong"] {
  border-color: rgba(0, 186, 112, 0.34);
  background: rgba(0, 186, 112, 0.08);
}

.share-match-panel[data-state="event_only"],
.share-match-panel[data-state="venue_only"],
.share-match-panel[data-state="time_only"] {
  border-color: rgba(0, 174, 239, 0.3);
  background: rgba(0, 174, 239, 0.08);
}

.share-match-panel[data-state="no_match"] {
  border-color: rgba(217, 1, 102, 0.28);
  background: rgba(217, 1, 102, 0.07);
}

.share-match-panel[data-confirmed="true"] {
  box-shadow:
    0 0 0 3px rgba(0, 186, 112, 0.14),
    0 14px 32px rgba(0, 47, 99, 0.1);
}

.share-match-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.share-event-picker-modal {
  width: min(760px, calc(100vw - 28px));
}

.share-event-picker {
  display: grid;
  gap: 12px;
}

.share-event-picker > div:not(.event-day-filter):not(.share-event-list) {
  display: grid;
  gap: 8px;
}

.share-event-day-filter {
  margin-top: 0;
}

.share-event-list {
  display: grid;
  gap: 8px;
  max-height: min(42vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.share-event-list .event-item {
  width: 100%;
  text-align: left;
}

.venue-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 4px 0 4px;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

#eventMeta,
#selectedDescription {
  margin: 0;
  color: var(--muted);
}

#eventMeta {
  margin-top: 5px;
  font-size: 1rem;
  font-weight: 760;
}

.venue-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.event-stats {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.event-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 47, 99, 0.05);
}

.event-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
}

.layout-mode-control {
  display: inline-flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(0, 47, 99, 0.06);
}

.layout-mode-control button {
  min-width: 88px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.layout-mode-control button.active {
  background: linear-gradient(135deg, var(--prism-coral), var(--prism-violet) 58%, var(--prism-blue));
  color: #fff;
  box-shadow: 0 14px 32px rgba(108, 60, 255, 0.2);
}

.mobile-timeline-control,
.mobile-timeline-toggle {
  display: none;
}

.workspace-grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: gap 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.workspace-grid > .map-panel,
.workspace-grid > .video-panel {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  transition:
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-width 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.workspace-grid > .map-panel {
  width: 62%;
}

.workspace-grid > .video-panel {
  width: calc(38% - 16px);
}

.workspace-grid.map-focus {
  gap: 16px;
}

.workspace-grid.map-focus > .map-panel {
  width: 68%;
}

.workspace-grid.map-focus > .video-panel {
  width: calc(32% - 16px);
}

.workspace-grid.video-focus {
  gap: 0;
}

.workspace-grid.video-focus .video-panel {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  gap: 10px;
  overflow: hidden;
}

.workspace-grid.video-focus .view-details {
  display: none;
}

.workspace-grid.video-focus .poster {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: calc(100dvh - 252px);
  min-height: 300px;
  margin-inline: auto;
}

.workspace-grid.map-focus .poster {
  aspect-ratio: 16 / 8;
}

.workspace-grid.video-focus .map-panel {
  flex: 0 0 0;
  min-height: 0;
  max-height: calc(100dvh - 170px);
  width: 0;
  min-width: 0;
  max-width: 0;
  padding-inline: 0;
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: scale(0.985);
}

.workspace-grid.video-focus .video-panel {
  transform: scale(1);
}

.workspace-grid.video-focus .timeline-match-card {
  order: -1;
  grid-template-columns: minmax(170px, 0.42fr) minmax(260px, 1fr);
  overflow: visible;
  padding-block: 8px;
  min-height: 64px;
}

.workspace-grid.video-focus .timeline-strip {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.workspace-grid.video-focus .timeline-range-shell {
  height: 42px;
}

.workspace-grid.video-focus .timeline-cues {
  height: 40px;
}

.map-panel {
  display: grid;
  align-self: start;
  gap: 14px;
  min-height: 0;
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
}

.seat-map {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
}

.amphitheater-map {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(108.8% * var(--map-zoom, 1));
  min-width: 100%;
  margin: 0 auto;
  aspect-ratio: 719 / 661;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

.tower-seat-map {
  display: grid;
  gap: 10px;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  flex-wrap: nowrap;
}

#mapControlsSlot {
  flex: 0 0 auto;
}

.map-tools-left {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.map-viewpoint-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
  flex: 0 1 360px;
  max-width: min(360px, 100%);
  border: 1px solid rgba(0, 174, 239, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 174, 239, 0.1), rgba(255, 255, 255, 0.92)),
    #fff;
  padding: 7px 8px 7px 12px;
  box-shadow: 0 10px 24px rgba(0, 47, 99, 0.06);
}

.map-viewpoint-summary.is-disabled-hint {
  border-color: rgba(108, 60, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(108, 60, 255, 0.05), rgba(255, 255, 255, 0.94)),
    #fff;
  box-shadow:
    0 0 0 2px rgba(108, 60, 255, 0.05),
    0 0 14px rgba(108, 60, 255, 0.11);
}

.map-viewpoint-summary.is-disabled-hint .map-action-button:disabled {
  background: #d9dce4;
  color: #657182;
  box-shadow: none;
}

.map-viewpoint-summary.attention-pulse {
  animation: viewpoint-summary-pulse 0.72s ease-out;
}

@keyframes viewpoint-summary-pulse {
  0% {
    border-color: var(--attention-yellow);
    box-shadow:
      0 0 0 3px rgba(255, 223, 0, 0.78),
      0 0 18px rgba(255, 223, 0, 0.42);
    background: #fffbe2;
  }

  55% {
    border-color: var(--miami-blue);
    box-shadow:
      0 0 0 3px rgba(0, 174, 239, 0.2),
      0 0 18px rgba(0, 174, 239, 0.2);
  }

  100% {
    border-color: rgba(0, 47, 99, 0.24);
    box-shadow: none;
    background: #edf4fc;
  }
}

.viewpoint-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: right;
}

.map-viewpoint-summary span {
  color: var(--scarlet);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-viewpoint-summary strong,
.map-viewpoint-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-viewpoint-summary strong {
  color: var(--pine-dark);
  font-size: 0.9rem;
}

.map-viewpoint-summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.map-action-button {
  flex: 0 0 auto;
  min-width: 112px;
  min-height: 40px;
  padding-inline: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--prism-green), #06b6d4);
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(19, 199, 123, 0.22);
}

.map-action-button:hover {
  background: linear-gradient(135deg, #0bbf77, #00a7c8);
}

.map-action-button.has-video {
  background: var(--video-green);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.24);
}

.map-action-button.has-video:hover {
  background: var(--video-green-dark);
}

.map-controls {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.map-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 850;
}

.map-controls span {
  min-width: 42px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.map-viewport-shell {
  position: relative;
  width: 100%;
}

.map-viewport-shell::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 1px;
  height: 54px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.92));
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 5;
}

.map-viewport-shell.show-scroll-hint::after {
  opacity: 1;
}

.map-scroll-hint {
  position: absolute;
  right: 50%;
  bottom: 14px;
  translate: 50% 0;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(0, 47, 99, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pine-dark);
  padding: 0 13px;
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(23, 32, 38, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  transform: translateY(4px);
}

.map-viewport-shell.show-scroll-hint .map-scroll-hint {
  opacity: 1;
  transform: translateY(0);
}

.map-viewport {
  width: 100%;
  height: clamp(420px, 58vh, 690px);
  aspect-ratio: auto;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  cursor: default;
  touch-action: none;
  user-select: none;
}

.map-viewport.is-zoomed {
  cursor: grab;
}

.map-viewport.is-dragging {
  cursor: grabbing;
}

.tower-viewport {
  height: clamp(420px, 58vh, 690px);
  aspect-ratio: auto;
}

.map-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: min(62vh, 620px);
  border: 1px dashed rgba(0, 47, 99, 0.28);
  border-radius: 8px;
  background: #f8fafc;
  padding: 28px;
  text-align: center;
}

.map-empty-state h2,
.map-empty-state p {
  margin: 0;
}

.map-empty-state h2 {
  color: var(--pine-dark);
  font-size: 1.35rem;
}

.map-empty-state p:not(.eyebrow) {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.45;
}

.map-empty-state .request-venue {
  width: auto;
  padding: 0 16px;
}

.mobile-event-picker {
  display: none;
}

.mobile-selection-dock {
  display: none;
}

.map-step-guide {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.map-step-guide span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(0, 47, 99, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 12px 0 8px;
  font-size: 0.82rem;
  font-weight: 850;
}

.map-step-guide strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--miami-blue);
  color: #fff;
  font-size: 0.78rem;
}

.map-step-guide .complete {
  border-color: rgba(0, 174, 239, 0.45);
  background: rgba(0, 174, 239, 0.08);
  color: var(--pine-dark);
}

.map-rotator {
  position: relative;
  width: calc(100% * var(--map-zoom, 1));
  aspect-ratio: 661 / 719;
  margin: 0 auto;
}

.venue-map,
.generic-venue-map {
  position: relative;
  width: calc(100% * var(--map-zoom, 1));
  margin: 0 auto;
}

.venue-map-image {
  width: 100%;
  display: block;
  height: auto;
}

.tower-map {
  position: relative;
  width: calc(100% * var(--map-zoom, 1));
  aspect-ratio: 2550 / 3225;
  margin: 0 auto;
  transform: rotate(180deg);
  transform-origin: center center;
}

.tower-seat-target {
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.95%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 0;
  transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.tower-seat-target:hover {
  background: rgba(0, 47, 99, 0.18);
  box-shadow: 0 0 0 2px rgba(0, 47, 99, 0.75);
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 3;
}

.tower-seat-target.has-video {
  background: var(--video-green);
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0, 143, 58, 0.38);
  z-index: 3;
}

.viewpoint-dot.has-pending-upload,
.tower-seat-target.has-pending-upload {
  background: var(--pending-pink);
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(217, 1, 102, 0.4);
  z-index: 3;
}

.viewpoint-dot.has-pending-upload::before,
.tower-seat-target.has-pending-upload::before {
  content: "";
  position: absolute;
  width: 42%;
  height: 42%;
  border-radius: 999px;
  background: #fff;
}

.tower-seat-target.selected {
  background: var(--coral-bright);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px var(--attention-yellow),
    0 5px 16px rgba(240, 0, 25, 0.42);
  z-index: 4;
}

.tower-seat-target.has-video.selected {
  background: var(--video-green);
  box-shadow:
    0 0 0 4px var(--coral-bright),
    0 0 0 7px var(--attention-yellow),
    0 0 0 9px #fff,
    0 6px 18px rgba(240, 0, 25, 0.4);
  z-index: 5;
}

.lawn-click-area {
  position: absolute;
  left: 56%;
  top: 14%;
  width: 38%;
  height: 67%;
  border-radius: 50% 42% 42% 54%;
  background: transparent;
  cursor: crosshair;
}

.viewpoint-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  min-width: 0;
  min-height: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0;
  box-shadow: 0 0 0 2px var(--pine), 0 4px 12px rgba(23, 32, 38, 0.22);
  font-size: 0;
  font-weight: 850;
  line-height: 1;
  transition: width 0.16s ease, height 0.16s ease, transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.viewpoint-dot[data-zone="reserved"] {
  opacity: 0;
  pointer-events: none;
}

.amphitheater-map.show-reserved-dots .viewpoint-dot[data-zone="reserved"] {
  opacity: 0.9;
  pointer-events: auto;
}

.viewpoint-dot:hover {
  transform: translate(-50%, -50%) scale(2.6);
  box-shadow: 0 0 0 1px #fff, 0 3px 10px rgba(23, 32, 38, 0.24);
  z-index: 4;
}

.seat-map.upload-placement-mode .viewpoint-dot,
.seat-map.upload-placement-mode .tower-seat-target {
  cursor: crosshair;
}

.seat-map.upload-placement-mode .viewpoint-dot:not(.has-video):not(.has-pending-upload),
.seat-map.upload-placement-mode .tower-seat-target:not(.has-video):not(.has-pending-upload) {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px rgba(0, 174, 239, 0.72),
    0 5px 16px rgba(0, 47, 99, 0.24);
}

.viewpoints-overview .viewpoint-dot.density-tight:not(.has-video):not(.has-pending-upload):not(.selected) {
  width: 5px;
  height: 5px;
  background: var(--miami-blue);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.88), 0 1px 4px rgba(0, 47, 99, 0.22);
}

.viewpoints-overview .viewpoint-dot.density-tight:not(.has-video):not(.has-pending-upload):not(.selected):hover {
  transform: translate(-50%, -50%) scale(2);
  box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0, 47, 99, 0.28);
}

.viewpoints-overview .tower-seat-target.density-tight:not(.has-video):not(.has-pending-upload):not(.selected) {
  width: 5px;
  height: 5px;
  aspect-ratio: auto;
  background: var(--miami-blue);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.88), 0 1px 4px rgba(0, 47, 99, 0.22);
}

.viewpoints-overview .tower-seat-target.density-tight:not(.has-video):not(.has-pending-upload):not(.selected):hover {
  background: var(--miami-blue);
  transform: translate(-50%, -50%) scale(2);
  box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0, 47, 99, 0.28);
}

.viewpoint-dot.has-video {
  width: 18px;
  height: 18px;
  background: var(--video-green);
  color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0, 143, 58, 0.38);
  z-index: 3;
}

.viewpoint-dot.has-pending-upload {
  width: 18px;
  height: 18px;
}

.viewpoint-dot.has-video::before,
.tower-seat-target.has-video::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  height: 58%;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-44%, -50%);
}

.viewpoint-dot.has-video::after,
.tower-seat-target.has-video::after {
  display: none;
}

.viewpoint-upload-count {
  position: absolute;
  right: -9px;
  top: -10px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--attention-yellow);
  color: var(--pine-dark);
  border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(23, 32, 38, 0.24);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.tower-seat-target.has-video::before {
  transform: translate(-56%, -50%) rotate(180deg);
}

.viewpoint-dot.selected {
  width: 14px;
  height: 14px;
  background: var(--coral-bright);
  color: #fff;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px var(--attention-yellow),
    0 8px 20px rgba(240, 0, 25, 0.42);
  z-index: 5;
}

.viewpoint-dot.selected:not(.has-video)::before,
.viewpoint-dot.selected:not(.has-video)::after,
.tower-seat-target.selected:not(.has-video)::before,
.tower-seat-target.selected:not(.has-video)::after {
  display: none;
}

.viewpoint-dot.has-video.selected {
  width: 18px;
  height: 18px;
  background: var(--video-green);
  box-shadow:
    0 0 0 4px var(--coral-bright),
    0 0 0 7px var(--attention-yellow),
    0 0 0 9px #fff,
    0 8px 22px rgba(240, 0, 25, 0.42);
  z-index: 6;
}

.viewpoint-dot.has-pending-upload.selected,
.tower-seat-target.has-pending-upload.selected {
  background: var(--pending-pink);
  box-shadow: 0 0 0 4px var(--coral-bright), 0 0 0 7px #fff, 0 6px 18px rgba(217, 1, 102, 0.4);
  z-index: 6;
}

.viewpoint-dot[data-zone="lawn"] {
  background: #fff;
  box-shadow: 0 0 0 2px var(--pine), 0 4px 12px rgba(23, 32, 38, 0.22);
}

.viewpoint-dot[data-zone="lawn"].has-video {
  width: 18px;
  height: 18px;
  background: var(--video-green);
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0, 143, 58, 0.38);
}

.viewpoint-dot[data-zone="lawn"].selected {
  width: 14px;
  height: 14px;
  background: var(--coral-bright);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px var(--attention-yellow),
    0 8px 20px rgba(240, 0, 25, 0.42);
}

.viewpoint-dot[data-zone="lawn"].has-video.selected {
  width: 18px;
  height: 18px;
  background: var(--video-green);
  box-shadow:
    0 0 0 4px var(--coral-bright),
    0 0 0 7px var(--attention-yellow),
    0 0 0 9px #fff,
    0 8px 22px rgba(240, 0, 25, 0.42);
}

.seat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.seat:hover {
  transform: translateY(-2px);
  border-color: var(--pine);
}

.seat.has-video {
  background: #edf4fc;
  border-color: rgba(0, 47, 99, 0.45);
  color: var(--pine-dark);
}

.seat.selected {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  box-shadow: 0 0 0 3px var(--attention-yellow), 0 12px 24px rgba(201, 0, 22, 0.24);
}

.seat.aisle {
  visibility: hidden;
  pointer-events: none;
}

.map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 13px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-block;
}

.legend-dot.has-video {
  position: relative;
  background: var(--video-green);
  border-color: var(--video-green-dark);
  box-shadow: 0 0 0 1px #fff;
}

.legend-dot.selected {
  background: var(--coral-bright);
  border-color: var(--coral-bright);
  box-shadow: 0 0 0 2px var(--attention-yellow);
}

.legend-overview {
  display: none !important;
}

.map-panel.uses-overview-markers .legend-overview {
  display: inline-flex !important;
}

.legend-pending[hidden] {
  display: none !important;
}

.legend-dot.pending {
  background: var(--pending-pink);
  border-color: var(--pending-pink-dark);
  box-shadow: 0 0 0 1px #fff;
}

.legend-dot.overview {
  width: 8px;
  height: 8px;
  align-self: center;
  background: var(--miami-blue);
  border-color: var(--miami-blue-dark);
  box-shadow: 0 0 0 1px #fff;
}

.legend-dot.empty {
  background: #fff;
}

.video-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.view-card,
.timeline-card {
  border-radius: 8px;
  overflow: hidden;
}

.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}

.watch-side-island {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 4;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto auto;
  gap: 8px;
  width: clamp(148px, 18vw, 230px);
  max-height: calc(100% - 28px);
  pointer-events: auto;
}

.watch-side-island[hidden] {
  display: none;
}

.watch-overlay-toggle {
  justify-self: end;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pine-dark);
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.watch-overlay-toggle:hover,
.watch-overlay-toggle:focus-visible {
  border-color: var(--miami-blue);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 174, 239, 0.22),
    0 10px 26px rgba(0, 0, 0, 0.24);
}

.watch-side-island.is-hidden {
  width: auto;
  max-height: none;
}

.watch-side-island.is-hidden .watch-map-inset,
.watch-side-island.is-hidden .angle-list {
  display: none;
}

.watch-side-island.is-temporary-reveal .watch-overlay-toggle {
  border-color: rgba(0, 200, 83, 0.54);
  background: rgba(241, 255, 246, 0.96);
}

.watch-map-inset {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 12px;
  background: rgba(8, 19, 28, 0.62);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.watch-map-inset[hidden] {
  display: none;
}

.watch-side-island .angle-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  height: fit-content;
  max-height: clamp(74px, calc(100dvh - 420px), 220px);
  min-height: 0;
  margin-top: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
  background: rgba(7, 16, 25, 0.74);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.watch-side-island .angle-list:empty {
  display: none;
}

.watch-side-island .angle-list-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
}

.watch-side-island .angle-list-context span {
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.watch-side-island .angle-item {
  flex: 0 0 auto;
  grid-template-columns: 32px minmax(0, 1fr);
  align-self: start;
  width: 100%;
  height: auto;
  gap: 8px;
  min-height: 52px;
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.watch-side-island .angle-item.selected {
  border-color: var(--video-green);
  background: rgba(241, 255, 246, 0.96);
}

.watch-side-island .angle-thumb {
  width: 32px;
  height: 28px;
  border-radius: 7px;
}

.watch-side-island .angle-item strong {
  font-size: 0.75rem;
  line-height: 1.05;
}

.watch-side-island .angle-item small {
  margin-top: 2px;
  font-size: 0.68rem;
  line-height: 1.12;
}

.watch-side-island .sync-badge {
  display: none;
}

.watch-side-island .angle-empty {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
}

.watch-map-preview {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 6px;
}

.watch-map-preview-inner {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(var(--mini-map-rotation, 0deg));
  transform-origin: center center;
}

.watch-map-preview-inner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.watch-map-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--attention-yellow);
  border-radius: 999px;
  background: var(--scarlet);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.92),
    0 0 14px rgba(255, 223, 0, 0.9);
  transform: translate(-50%, -50%);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.view-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.youtube-embed {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.media-source-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pine-dark);
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 850;
  box-shadow: 0 6px 18px rgba(23, 32, 38, 0.18);
}

.mobile-view-change-notice {
  display: none;
}

.media-empty {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pine-dark);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.poster.has-media .play-button,
.poster.has-media .media-empty {
  display: none;
}

@keyframes mobile-view-notice-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobile-view-notice-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
}

.play-button::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  border-left: 17px solid var(--pine);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.view-details,
.timeline-card {
  padding: 16px;
}

.view-details {
  display: grid;
  gap: 8px;
}

.timeline-match-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(250px, 1fr);
  align-items: center;
  gap: 8px;
  column-gap: 14px;
  overflow: visible;
  border-radius: 14px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(0, 174, 239, 0.09), rgba(255, 61, 119, 0.06)),
    rgba(255, 255, 255, 0.94);
}

.timeline-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1;
  min-width: 0;
}

.timeline-match-head .eyebrow {
  margin: 0 0 3px;
}

.timeline-match-head strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.12;
}

.timeline-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  grid-column: 2;
  gap: 10px;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.timeline-strip strong {
  color: var(--ink);
  white-space: nowrap;
}

.timeline-range-shell {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  height: 34px;
}

.timeline-range-shell input[type="range"] {
  position: relative;
  z-index: 2;
  width: 100%;
}

.timeline-cues {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 5;
  height: 34px;
  transform: translateY(-50%);
  pointer-events: none;
}

.timeline-cue {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  min-width: 22px;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

.timeline-cue::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 999px;
  background: var(--miami-blue);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.86),
    0 0 9px rgba(0, 174, 239, 0.42);
  transform: translateX(-50%);
}

.timeline-cue:hover,
.timeline-cue:focus-visible {
  outline: 2px solid rgba(0, 200, 83, 0.3);
  outline-offset: 2px;
}

.timeline-cue.selected {
  background: rgba(255, 223, 0, 0.1);
}

.timeline-cue:hover::before,
.timeline-cue:focus-visible::before {
  background: var(--video-green);
}

.timeline-cue.selected::before {
  background: var(--attention-yellow);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.92),
    0 0 12px rgba(255, 223, 0, 0.72);
}

.timeline-cue.cluster::before {
  width: 8px;
  background: linear-gradient(180deg, var(--miami-blue), var(--coral-bright));
}

.timeline-cue-count {
  position: absolute;
  left: 50%;
  top: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral-bright);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.mobile-sync-rail {
  display: none;
}

.timeline-cue-menu {
  position: absolute;
  top: -12px;
  z-index: 12;
  display: grid;
  gap: 4px;
  width: min(260px, 72vw);
  padding: 8px;
  border: 1px solid rgba(0, 174, 239, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(0, 32, 72, 0.18);
  pointer-events: auto;
  transform: translate(-50%, -100%);
}

.timeline-cue-menu-title {
  padding: 0 2px 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-cue-menu button {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 40px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.timeline-cue-menu button:hover,
.timeline-cue-menu button:focus-visible {
  border-color: var(--miami-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.16);
}

.timeline-cue-menu strong,
.timeline-cue-menu span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-cue-menu strong {
  font-size: 0.75rem;
}

.timeline-cue-menu span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
}

input[type="range"] {
  accent-color: var(--coral);
  padding: 0;
}

@media (max-width: 760px) {
  .workspace-grid.video-focus {
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .workspace-grid.video-focus .video-panel {
    width: 100%;
    max-width: 100%;
    gap: 10px;
    overflow: visible;
  }

  .workspace-grid.video-focus .view-card,
  .workspace-grid.video-focus .timeline-match-card,
  .workspace-grid.video-focus .angle-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .workspace-grid.video-focus .view-card {
    order: 1;
  }

  .workspace-grid.video-focus .timeline-match-card {
    order: 2;
    min-height: 0;
    padding: 10px 12px;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .workspace-grid.video-focus .angle-list {
    order: 3;
    margin-top: 0;
  }

  .workspace-grid.video-focus .poster {
    width: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .mobile-view-change-notice {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 14;
    display: grid;
    gap: 1px;
    max-width: min(250px, calc(100% - 76px));
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 10px;
    background: rgba(8, 19, 28, 0.78);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    pointer-events: none;
    animation: mobile-view-notice-in 0.18s ease-out both;
  }

  .mobile-view-change-notice.is-hiding {
    animation: mobile-view-notice-out 0.22s ease-in both;
  }

  .mobile-view-change-notice span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.58rem;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-view-change-notice strong,
  .mobile-view-change-notice small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-view-change-notice strong {
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1.06;
  }

  .mobile-view-change-notice small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 760;
    line-height: 1.08;
  }

  .workspace-grid.video-focus .watch-side-island {
    display: none;
  }

  .timeline-match-card {
    grid-template-columns: 1fr;
  }

  .timeline-match-head,
  .timeline-strip {
    grid-column: 1;
  }

  .workspace-grid.video-focus .timeline-match-head {
    min-width: 0;
  }

  .workspace-grid.video-focus .timeline-match-head strong {
    font-size: 0.86rem;
  }

  .workspace-grid.video-focus .timeline-strip {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .workspace-grid.video-focus .timeline-range-shell {
    height: 38px;
  }

  .workspace-grid.video-focus .timeline-cues {
    height: 36px;
  }

  .workspace-grid.map-focus .map-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
  }

  .workspace-grid.map-focus .map-panel > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .workspace-grid.map-focus .seat-map {
    order: 1;
  }

  .workspace-grid.map-focus .timeline-match-card {
    order: 2;
  }

  .map-toolbar,
  .map-tools-left,
  #mapControlsSlot,
  .seat-map,
  .map-viewport-shell {
    width: 100%;
    min-width: 0;
  }

  .workspace-grid.map-focus .timeline-match-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 12px;
    overflow: hidden;
  }

  .workspace-grid.map-focus .timeline-strip {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  #mapControlsSlot,
  .map-controls,
  .map-tools-left {
    max-width: 100%;
  }

  .map-legend {
    gap: 7px 10px;
    font-size: 0.82rem;
  }

  body:not([data-discovery-mode="share"]) .map-viewpoint-summary .map-action-button {
    display: none !important;
  }

  .map-viewport-shell {
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
  }

  .map-viewport,
  .tower-viewport {
    width: 100%;
    height: clamp(260px, 42vh, 360px);
    max-width: 100%;
    max-height: 360px;
    overscroll-behavior: contain;
  }

  .map-empty-state.has-mobile-picker {
    align-content: start;
    justify-items: stretch;
    min-height: min(58vh, 520px);
    padding: 12px;
    text-align: left;
  }

  .map-empty-state.has-mobile-picker h2,
  .map-empty-state.has-mobile-picker p {
    text-align: left;
  }

  .map-empty-state.has-mobile-picker .map-step-guide {
    display: none;
  }

  .map-empty-state.mobile-empty-selection-state {
    min-height: 118px;
    border-color: rgba(0, 47, 99, 0.18);
    background: rgba(248, 250, 252, 0.72);
    padding: 0;
  }

  .map-empty-state.mobile-empty-selection-state .eyebrow,
  .map-empty-state.mobile-empty-selection-state h2,
  .map-empty-state.mobile-empty-selection-state p,
  .map-empty-state.mobile-empty-selection-state .map-step-guide {
    display: none;
  }

  .mobile-selection-dock:not([hidden]) {
    display: grid;
    gap: 10px;
    width: 100%;
  }

  body[data-event-selected="false"]:not([data-discovery-mode="share"]) .workspace-grid.map-focus .map-panel {
    padding: 8px;
  }

  body[data-event-selected="false"]:not([data-discovery-mode="share"]) .workspace-grid.map-focus .map-toolbar {
    display: none;
  }

  body[data-event-selected="false"]:not([data-discovery-mode="share"]) .workspace-grid.map-focus .seat-map {
    display: none;
  }

  .mobile-event-picker {
    display: grid;
    align-content: start;
    gap: 12px;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin-top: 0;
  }

  .mobile-selection-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding: 0 0 2px;
    scrollbar-width: none;
  }

  .mobile-selection-tabs::-webkit-scrollbar {
    display: none;
  }

  .mobile-selection-tab {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    min-height: 36px;
    border: 1px solid rgba(0, 47, 99, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    padding: 0 14px;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: 0 7px 18px rgba(0, 47, 99, 0.07);
  }

  .mobile-selection-tab.active {
    border-color: rgba(0, 174, 239, 0.5);
    background: rgba(0, 174, 239, 0.11);
    color: var(--pine-dark);
  }

  .mobile-selection-panel {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(0, 47, 99, 0.11);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 10px 26px rgba(0, 47, 99, 0.08);
  }

  .mobile-location-picker {
    gap: 9px;
  }

  .mobile-location-search-wrap {
    display: grid;
    gap: 6px;
  }

  .mobile-location-search-wrap > span {
    color: var(--scarlet);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .mobile-location-search {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    padding: 0 14px;
    font-size: 16px;
    font-weight: 850;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .mobile-location-search:focus {
    border-color: rgba(0, 174, 239, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.13);
  }

  .mobile-location-letter-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 1px 1px 4px;
    scrollbar-width: none;
  }

  .mobile-location-letter-row::-webkit-scrollbar {
    display: none;
  }

  .mobile-location-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 47, 99, 0.17);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    padding: 0;
    font-size: 0.82rem;
    font-weight: 950;
  }

  .mobile-location-letter.active {
    border-color: rgba(0, 174, 239, 0.65);
    background: rgba(0, 174, 239, 0.12);
    color: var(--pine-dark);
  }

  .mobile-location-results {
    display: grid;
    gap: 7px;
    max-height: min(43vh, 350px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--miami-blue) #e7f0fb;
  }

  .mobile-location-count {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
  }

  .mobile-location-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 9px 10px;
    text-align: left;
  }

  .mobile-location-option.selected {
    border-color: rgba(0, 174, 239, 0.62);
    background: rgba(0, 174, 239, 0.1);
  }

  .mobile-location-option-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .mobile-location-option strong {
    color: var(--pine-dark);
    font-size: 0.92rem;
    line-height: 1.08;
  }

  .mobile-location-option span span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
  }

  .mobile-location-option small {
    justify-self: end;
    max-width: 112px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.12;
    text-align: right;
  }

  .mobile-location-more {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
  }

  .mobile-picker-grid {
    display: grid;
    gap: 10px;
  }

  .mobile-picker-grid label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 900;
  }

  .mobile-picker-grid label span,
  .mobile-picker-label {
    color: var(--scarlet);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .mobile-month-wheel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 1px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--miami-blue) #e7f0fb;
  }

  .mobile-month-button {
    display: grid;
    flex: 0 0 136px;
    gap: 2px;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 9px 10px;
    text-align: left;
  }

  .mobile-month-button strong {
    color: var(--pine-dark);
    font-size: 0.9rem;
    line-height: 1.05;
  }

  .mobile-month-button span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 850;
  }

  .mobile-month-button.active {
    border-color: rgba(0, 174, 239, 0.52);
    background: rgba(0, 174, 239, 0.1);
  }

  .mobile-event-choice-list {
    display: grid;
    gap: 8px;
    min-height: 0;
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--miami-blue) #e7f0fb;
  }

  .mobile-event-choice {
    display: grid;
    gap: 3px;
    width: 100%;
    min-height: 76px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: left;
  }

  .mobile-event-choice span,
  .mobile-event-choice small {
    color: var(--muted);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 850;
  }

  .mobile-event-choice strong {
    color: var(--pine-dark);
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .mobile-event-choice em {
    justify-self: start;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.12);
    color: var(--pine-dark);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-picker-note {
    padding: 10px 0 0;
    color: var(--muted);
    font-weight: 800;
  }

  body[data-event-selected="false"]:not([data-discovery-mode="share"]) .control-panel,
  body[data-event-selected="false"]:not([data-discovery-mode="share"]) .finder-panel-toggle {
    display: none !important;
  }

  body[data-event-selected="false"]:not([data-discovery-mode="share"]) .venue-header,
  body[data-event-selected="false"]:not([data-discovery-mode="share"]) .venue-action-row {
    display: none;
  }

  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .panel-section:first-child,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .location-section,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .date-summary,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .event-date-controls,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .venue-browse-controls,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .event-search-field,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .event-tools,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .finder-request-actions,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel #eventToolStatus,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel #eventList {
    display: none !important;
  }

  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .panel-section.grow {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 760px), (max-width: 980px) and (pointer: coarse) {
  .finder-panel-toggle {
    display: none !important;
  }

  body:not([data-discovery-mode="share"]) .venue-workspace {
    padding: 10px;
    border-radius: 14px;
  }

  body:not([data-discovery-mode="share"]) .workspace-grid {
    gap: 8px;
  }

  body:not([data-discovery-mode="share"]) .workspace-grid.map-focus .map-panel {
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
  }

  body:not([data-discovery-mode="share"]) .map-toolbar {
    gap: 6px;
  }

  body:not([data-discovery-mode="share"]) .map-viewport:not(.is-zoomed) {
    height: auto;
    min-height: 172px;
    max-height: min(360px, 50vh);
    aspect-ratio: var(--map-mobile-aspect-ratio, 16 / 10);
  }

  body:not([data-discovery-mode="share"]) .map-viewport.is-zoomed {
    height: min(360px, 42vh);
  }

  body:not([data-discovery-mode="share"]) .map-viewpoint-summary:not([hidden]) {
    flex: 0 0 auto;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin-left: 0;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(239, 250, 255, 0.84);
    box-shadow: none;
  }

  body:not([data-discovery-mode="share"]) .map-viewpoint-summary .viewpoint-copy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    width: 100%;
    gap: 0 8px;
    text-align: left;
  }

  body:not([data-discovery-mode="share"]) .map-viewpoint-summary .viewpoint-copy span {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(201, 0, 22, 0.08);
    font-size: 0.62rem;
    line-height: 1.1;
  }

  body:not([data-discovery-mode="share"]) .map-viewpoint-summary .viewpoint-copy strong,
  body:not([data-discovery-mode="share"]) .map-viewpoint-summary .viewpoint-copy small {
    grid-column: 2;
    min-width: 0;
  }

  body:not([data-discovery-mode="share"]) .map-viewpoint-summary .viewpoint-copy strong {
    font-size: 0.84rem;
    line-height: 1.06;
  }

  body:not([data-discovery-mode="share"]) .map-viewpoint-summary .viewpoint-copy small {
    font-size: 0.72rem;
    line-height: 1.08;
  }

  body:not([data-discovery-mode="share"]) .map-controls {
    gap: 4px;
    padding: 3px;
  }

  body:not([data-discovery-mode="share"]) .map-controls button {
    width: 28px;
    height: 28px;
  }

  body:not([data-discovery-mode="share"]) .map-controls span {
    min-width: 38px;
    font-size: 0.76rem;
  }

  body:not([data-discovery-mode="share"]) .map-legend {
    gap: 4px 8px;
    font-size: 0.78rem;
    line-height: 1.1;
  }

  body:not([data-discovery-mode="share"]) .legend-dot {
    width: 10px;
    height: 10px;
  }

  body:not([data-discovery-mode="share"]) .workspace-grid.map-focus .timeline-match-card,
  body:not([data-discovery-mode="share"]) .workspace-grid.video-focus .timeline-match-card {
    gap: 4px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  body:not([data-discovery-mode="share"]) .timeline-match-head {
    display: none;
  }

  body:not([data-discovery-mode="share"]) .timeline-strip {
    gap: 6px;
    font-size: 0.78rem;
  }

  body:not([data-discovery-mode="share"]) .timeline-range-shell,
  body:not([data-discovery-mode="share"]) .timeline-cues {
    height: 28px;
  }

  body:not([data-discovery-mode="share"]) .timeline-cue {
    width: 18px;
    min-width: 18px;
  }

  .mobile-timeline-control:not([hidden]) {
    position: relative;
    display: inline-grid;
    place-items: center;
  }

  .mobile-timeline-toggle {
    display: inline-grid;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(0, 47, 99, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--pine-dark);
    box-shadow: 0 8px 18px rgba(0, 47, 99, 0.06);
  }

  .mobile-timeline-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-timeline-menu {
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    z-index: 24;
    display: grid;
    gap: 5px;
    min-width: 116px;
    padding: 6px;
    border: 1px solid rgba(0, 47, 99, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(0, 47, 99, 0.18);
    opacity: 1;
    transform: translateX(calc(-50% + 5px));
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
  }

  .mobile-timeline-menu[hidden] {
    display: none;
  }

  .mobile-timeline-menu.is-closing {
    opacity: 0;
    transform: translate(calc(-50% + 5px), -4px);
  }

  .mobile-timeline-menu button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-align: left;
  }

  .mobile-timeline-menu button.active {
    border-color: rgba(0, 174, 239, 0.34);
    background: rgba(0, 174, 239, 0.1);
    color: var(--pine-dark);
  }

  body.mobile-sync-rail-prototype[data-mobile-timeline-mode="fade"]:not([data-discovery-mode="share"]) .workspace-grid.video-focus .timeline-match-card {
    display: none !important;
  }

  body.mobile-sync-rail-prototype[data-mobile-timeline-mode="fade"]:not([data-discovery-mode="share"]) .workspace-grid.video-focus .poster .mobile-sync-rail:not([hidden]) {
    position: absolute;
    right: 3px;
    top: 50%;
    bottom: auto;
    z-index: 12;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 40px;
    height: min(72vh, 430px);
    min-height: min(62vh, 340px);
    padding: 7px 4px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(9, 19, 28, 0.56);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    transform: translateY(-50%);
  }

  body.mobile-sync-rail-prototype[data-mobile-timeline-mode="fade"]:not([data-discovery-mode="share"]) .workspace-grid.video-focus .view-card,
  body.mobile-sync-rail-prototype[data-mobile-timeline-mode="fade"]:not([data-discovery-mode="share"]) .workspace-grid.video-focus .poster {
    overflow: visible;
  }

  body.mobile-sync-rail-prototype[data-mobile-timeline-mode="fade"]:not([data-discovery-mode="share"]) .workspace-grid.video-focus .poster .mobile-sync-rail:not([hidden]) {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(9, 19, 28, 0.18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
  }

  .mobile-sync-rail-time,
  .mobile-sync-rail-end {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.54rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
  }

  .mobile-sync-rail-end {
    color: rgba(255, 255, 255, 0.68);
  }

  body.mobile-sync-rail-prototype[data-mobile-timeline-mode="fade"]:not([data-discovery-mode="share"]) .mobile-sync-rail-time,
  body.mobile-sync-rail-prototype[data-mobile-timeline-mode="fade"]:not([data-discovery-mode="share"]) .mobile-sync-rail-end {
    color: rgba(255, 255, 255, 0.42);
  }

  .mobile-sync-rail-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 80px;
    margin: 5px 0;
  }

  .mobile-sync-rail-track::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 3px;
    bottom: 3px;
    width: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    transform: translateX(-50%);
  }

  body.mobile-sync-rail-prototype[data-mobile-timeline-mode="fade"]:not([data-discovery-mode="share"]) .mobile-sync-rail-track::before {
    background: rgba(255, 255, 255, 0.18);
  }

  .mobile-sync-rail-thumb {
    position: absolute;
    left: 50%;
    z-index: 4;
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--attention-yellow);
    box-shadow: 0 0 10px rgba(255, 223, 0, 0.5);
    transform: translate(-50%, -1px);
    pointer-events: none;
  }

  .mobile-sync-rail-cue {
    position: absolute;
    left: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    transform: translateX(-50%);
  }

  .mobile-sync-rail-cue::before {
    content: "";
    width: 14px;
    height: 3px;
    border-radius: 999px;
    background: var(--miami-blue);
    box-shadow:
      0 0 0 1.5px rgba(255, 255, 255, 0.84),
      0 0 7px rgba(0, 174, 239, 0.38);
  }

  .mobile-sync-rail-cue.cue-left::before {
    transform: translateX(-9px);
  }

  .mobile-sync-rail-cue.cue-right::before {
    transform: translateX(9px);
  }

  .mobile-sync-rail-cue.selected::before {
    background: var(--attention-yellow);
    box-shadow:
      0 0 0 1.5px rgba(255, 255, 255, 0.9),
      0 0 10px rgba(255, 223, 0, 0.62);
  }

  .mobile-sync-rail-cue.cluster::before {
    width: 16px;
    height: 4px;
    background: linear-gradient(180deg, var(--miami-blue), var(--coral-bright));
  }

  .mobile-sync-rail-cue span {
    position: absolute;
    right: 0;
    top: 0;
    display: grid;
    place-items: center;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    background: var(--coral-bright);
    color: #fff;
    font-size: 0.52rem;
    font-weight: 950;
    line-height: 1;
  }

  .mobile-sync-rail-menu {
    position: absolute;
    right: 46px;
    top: 50%;
    z-index: 8;
    display: grid;
    gap: 5px;
    width: min(184px, 58vw);
    padding: 8px;
    border: 1px solid rgba(0, 174, 239, 0.38);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transform: translateY(-50%);
  }

  .mobile-sync-rail-menu strong {
    color: var(--scarlet);
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .mobile-sync-rail-menu button {
    display: grid;
    gap: 2px;
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: left;
  }

  .mobile-sync-rail-menu span,
  .mobile-sync-rail-menu small {
    overflow: hidden;
    color: var(--pine-dark);
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-sync-rail-menu small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 760;
  }

  body:not([data-discovery-mode="share"]) .video-panel {
    gap: 8px;
  }

  body:not([data-discovery-mode="share"]) .venue-header {
    gap: 4px;
    margin-bottom: 8px;
  }

  body:not([data-discovery-mode="share"]) .venue-header h1 {
    margin: 0;
    font-size: 1.32rem;
    line-height: 1.08;
  }

  body:not([data-discovery-mode="share"]) #eventMeta {
    margin-top: 2px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.18;
  }

  body:not([data-discovery-mode="share"]) .view-details {
    gap: 4px;
    padding: 10px;
  }

  body:not([data-discovery-mode="share"]) #selectedTitle {
    font-size: 1rem;
    line-height: 1.12;
  }

  body:not([data-discovery-mode="share"]) #selectedDescription {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  body:not([data-discovery-mode="share"]) .angle-list {
    gap: 6px;
    margin-top: 8px;
  }

  body:not([data-discovery-mode="share"]) .angle-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 8px;
  }

  body:not([data-discovery-mode="share"]) .angle-thumb {
    width: 42px;
    height: 30px;
  }

  body:not([data-discovery-mode="share"]) .angle-item strong {
    font-size: 0.88rem;
    line-height: 1.08;
  }

  body:not([data-discovery-mode="share"]) .angle-item small {
    font-size: 0.76rem;
    line-height: 1.12;
  }

  body:not([data-discovery-mode="share"]) .angle-item .sync-badge {
    display: none;
  }

  body:not([data-discovery-mode="share"]) .viewpoint-dot:hover {
    transform: translate(-50%, -50%);
  }

  body:not([data-discovery-mode="share"]) .viewpoint-dot.has-video:hover {
    box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0, 143, 58, 0.38);
  }

  body:not([data-discovery-mode="share"]) .viewpoint-dot.selected:hover {
    box-shadow:
      0 0 0 2px #fff,
      0 0 0 5px var(--attention-yellow),
      0 8px 20px rgba(240, 0, 25, 0.42);
  }

  body:not([data-discovery-mode="share"]) .viewpoint-dot.has-video.selected:hover {
    box-shadow:
      0 0 0 4px var(--coral-bright),
      0 0 0 7px var(--attention-yellow),
      0 0 0 9px #fff,
      0 8px 22px rgba(240, 0, 25, 0.42);
  }
}

@media (max-width: 980px) and (pointer: coarse) {
  body:not([data-discovery-mode="share"]) .map-viewpoint-summary .map-action-button {
    display: none !important;
  }

  body[data-event-selected="false"]:not([data-discovery-mode="share"]) .control-panel,
  body[data-event-selected="false"]:not([data-discovery-mode="share"]) .finder-panel-toggle {
    display: none !important;
  }

  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .panel-section:first-child,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .location-section,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .date-summary,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .event-date-controls,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .venue-browse-controls,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .event-search-field,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .event-tools,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .finder-request-actions,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel #eventToolStatus,
  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel #eventList {
    display: none !important;
  }

  body[data-event-selected="true"]:not([data-discovery-mode="share"]) .control-panel .panel-section.grow {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
}

.angle-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.angle-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.angle-item:hover {
  border-color: rgba(0, 200, 83, 0.72);
}

.angle-item.selected {
  border-color: var(--video-green);
  background: #f1fff6;
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.24);
}

.angle-item.attention-pulse {
  animation: selected-angle-pulse 0.62s ease-out;
}

@keyframes selected-angle-pulse {
  0% {
    box-shadow:
      0 0 0 3px rgba(0, 200, 83, 0.28),
      0 0 0 0 rgba(0, 174, 239, 0.48);
  }

  100% {
    box-shadow:
      0 0 0 3px rgba(0, 200, 83, 0.24),
      0 0 0 11px rgba(0, 174, 239, 0);
  }
}

.angle-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 12px;
  font-size: 0.86rem;
}

.angle-thumb {
  width: 52px;
  height: 38px;
  border-radius: 6px;
  background:
    linear-gradient(140deg, rgba(0, 47, 99, 0.9), rgba(201, 0, 22, 0.82)),
    var(--pine);
}

.angle-thumb.youtube {
  position: relative;
  background: #111;
}

.angle-thumb.youtube::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 18px;
  border-radius: 5px;
  background: var(--coral-bright);
  transform: translate(-50%, -50%);
}

.angle-thumb.youtube::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translate(-36%, -50%);
}

.angle-item.selected .angle-thumb {
  box-shadow: 0 0 0 3px var(--video-green);
}

.angle-item strong,
.angle-item small {
  display: block;
}

.angle-item small {
  color: var(--muted);
}

.sync-badge {
  border-radius: 999px;
  background: rgba(231, 240, 251, 0.96);
  color: var(--pine);
  border: 1px solid rgba(0, 47, 99, 0.18);
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.upload-modal {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

#uploadModal {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
}

.owner-status-modal {
  width: min(640px, calc(100vw - 28px));
}

.owner-status-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.owner-status-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.owner-status-list {
  display: grid;
  gap: 10px;
  max-height: min(54vh, 440px);
  overflow: auto;
  padding-right: 2px;
}

.owner-status-item {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px;
}

.owner-status-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.owner-status-item h3 {
  min-width: 0;
  margin: 0;
  color: var(--pine);
  font-size: 0.98rem;
  line-height: 1.25;
}

.owner-status-meta,
.owner-status-detail,
.owner-status-timestamp {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
}

.owner-status-meta,
.owner-status-timestamp {
  color: var(--muted);
  font-weight: 760;
}

.owner-status-detail {
  color: var(--ink);
}

.owner-status-badge {
  border: 1px solid rgba(0, 47, 99, 0.16);
  border-radius: 999px;
  background: #edf4fc;
  color: var(--pine);
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.owner-status-processing {
  border-color: rgba(33, 171, 226, 0.34);
  background: rgba(33, 171, 226, 0.12);
}

.owner-status-reviewing,
.owner-status-submitted {
  border-color: rgba(248, 78, 133, 0.28);
  background: rgba(248, 78, 133, 0.1);
}

.owner-status-failed,
.owner-status-not-approved {
  border-color: rgba(191, 64, 42, 0.28);
  background: rgba(191, 64, 42, 0.1);
  color: #8f2f21;
}

.owner-status-published {
  border-color: rgba(35, 128, 88, 0.28);
  background: rgba(35, 128, 88, 0.1);
  color: #176344;
}

.upload-modal::backdrop {
  background: rgba(23, 32, 38, 0.42);
}

.upload-modal form {
  padding: 18px;
}

#uploadModal form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 28px);
  min-height: 0;
}

#uploadForm[data-surface="share"] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  padding: 0;
}

#uploadForm[data-surface="share"] .modal-head {
  display: none;
}

#uploadForm[data-surface="share"] #uploadModalClose {
  display: none;
}

#uploadForm[data-surface="share"] .upload-modal-body {
  max-height: none;
  overflow: visible;
}

#uploadForm[data-surface="share"][data-file-selected="false"] .upload-modal-body {
  display: block;
}

#uploadForm[data-surface="share"] .upload-flow {
  max-height: none;
  overflow: visible;
  gap: 14px;
  padding-right: 0;
}

#uploadForm[data-surface="share"][data-file-selected="false"] .upload-flow {
  justify-items: center;
}

#uploadForm[data-surface="share"] .upload-flow > * {
  order: 20;
}

#uploadForm[data-surface="share"] .upload-step-file {
  order: 1;
}

#uploadForm[data-surface="share"] .share-match-panel {
  order: 2;
}

#uploadForm[data-surface="share"] #gpsPlacementNote {
  order: 3;
}

#uploadForm[data-surface="share"] .upload-step-viewpoint {
  order: 4;
}

#uploadForm[data-surface="share"] .upload-step-title {
  order: 5;
}

#uploadForm[data-surface="share"] .handoff-note {
  display: none;
}

#uploadForm[data-surface="share"] .terms-gate {
  order: 7;
}

#uploadForm[data-surface="share"] .upload-progress {
  order: 8;
}

#uploadForm[data-surface="share"] .form-status {
  order: 9;
}

#uploadForm[data-surface="share"] .upload-step-viewpoint,
#uploadForm[data-surface="share"] .upload-step-title,
#uploadForm[data-surface="share"] #gpsPlacementNote,
#uploadForm[data-surface="share"] .terms-gate,
#uploadForm[data-surface="share"] .modal-actions {
  display: none;
}

#uploadForm[data-surface="share"][data-share-step="location"] #gpsPlacementNote,
#uploadForm[data-surface="share"][data-share-step="describe"] #gpsPlacementNote,
#uploadForm[data-surface="share"][data-share-step="ready"] #gpsPlacementNote,
#uploadForm[data-surface="share"][data-share-step="terms"] #gpsPlacementNote {
  display: grid;
}

#uploadForm[data-surface="share"][data-share-step="describe"] .upload-step-title,
#uploadForm[data-surface="share"][data-share-step="ready"] .upload-step-title,
#uploadForm[data-surface="share"][data-share-step="terms"] .upload-step-title {
  display: grid;
}

#uploadForm[data-surface="share"][data-terms-visible="true"] .terms-gate {
  display: grid;
}

#uploadForm[data-surface="share"][data-share-step="describe"] .modal-actions,
#uploadForm[data-surface="share"][data-share-step="ready"] .modal-actions,
#uploadForm[data-surface="share"][data-share-step="terms"] .modal-actions {
  display: flex;
}

#uploadForm[data-surface="share"][data-upload-complete="true"] .terms-gate,
#uploadForm[data-surface="share"][data-upload-complete="true"] .modal-actions,
#uploadForm[data-surface="share"][data-upload-complete="true"] .upload-step-title {
  display: none;
}

#uploadForm[data-surface="share"][data-upload-complete="true"] #gpsPlacementNote {
  opacity: 0.72;
}

#uploadForm[data-surface="share"] .upload-step-file {
  border: 1px solid rgba(0, 174, 239, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 3px rgba(0, 174, 239, 0.08),
    0 16px 36px rgba(0, 47, 99, 0.09);
  padding: 16px;
}

#uploadForm[data-surface="share"][data-file-selected="false"] .upload-step-file {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 22px;
}

#uploadForm[data-surface="share"] .upload-step-file label {
  color: var(--pine-dark);
  font-size: 1.2rem;
}

#uploadForm[data-surface="share"] .share-match-panel,
#uploadForm[data-surface="share"] #gpsPlacementNote {
  border: 1px solid rgba(0, 174, 239, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 3px rgba(0, 174, 239, 0.08),
    0 16px 36px rgba(0, 47, 99, 0.09);
  padding: 16px;
}

#uploadForm[data-surface="share"] .share-match-panel > span,
#uploadForm[data-surface="share"] #gpsPlacementNote::before {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--prism-coral), var(--prism-violet) 58%, var(--prism-blue));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  text-transform: uppercase;
}

#uploadForm[data-surface="share"] #gpsPlacementNote::before {
  content: "Step 3";
  grid-column: 1 / -1;
}

#uploadForm[data-surface="share"] .share-match-panel > strong,
#uploadForm[data-surface="share"] #gpsPlacementTitle {
  color: var(--pine-dark);
  font-size: 1.2rem;
  line-height: 1.15;
}

#uploadForm[data-surface="share"] .share-match-panel p,
#uploadForm[data-surface="share"] #gpsPlacementCopy {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

#uploadForm[data-surface="share"] #gpsPlacementNote {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

#uploadForm[data-surface="share"] #gpsPlacementNote > div {
  display: grid;
  gap: 6px;
}

#uploadForm[data-surface="share"] #gpsPlacementNote .ghost-button {
  align-self: end;
  white-space: nowrap;
}

#uploadForm[data-surface="share"] .upload-step.is-complete,
#uploadForm[data-surface="share"] #gpsPlacementNote.is-complete,
.share-match-panel.is-complete {
  border-color: rgba(0, 47, 99, 0.1);
  background: rgba(242, 247, 250, 0.86);
  box-shadow: none;
  opacity: 0.72;
}

#uploadForm[data-surface="share"] .upload-step.is-complete:hover,
#uploadForm[data-surface="share"] #gpsPlacementNote.is-complete:hover,
.share-match-panel.is-complete:hover {
  opacity: 0.88;
}

.share-file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid rgba(0, 174, 239, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-weight: 800;
  padding: 6px;
}

.native-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  padding: 0;
  white-space: nowrap;
}

.prism-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  min-height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--prism-coral), var(--prism-violet) 58%, var(--prism-blue));
  box-shadow: 0 10px 24px rgba(0, 119, 255, 0.22);
  color: #fff !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
  padding: 10px 18px;
  white-space: nowrap;
}

.share-file-picker span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-file-input:focus-visible + .prism-file-button,
.prism-file-button:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.28);
  outline-offset: 2px;
}

#uploadForm[data-surface="share"] .modal-actions {
  margin-top: 16px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.icon-button {
  width: 38px;
  height: 38px;
  background: #fff;
  border-color: var(--line);
}

.upload-flow {
  display: grid;
  gap: 10px;
}

.upload-step {
  display: grid;
  gap: 10px;
}

.upload-step-kicker {
  display: none;
}

#uploadForm[data-surface="share"] .upload-step-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--prism-coral), var(--prism-violet) 58%, var(--prism-blue));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  text-transform: uppercase;
}

.upload-modal-body {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(300px, 390px);
  align-items: center;
  gap: 18px;
  max-height: calc(100vh - 166px);
  min-height: 0;
  overflow: hidden;
}

#uploadModal .upload-flow {
  max-height: 100%;
  overflow: auto;
  padding-right: 4px;
}

.request-modal {
  width: min(640px, calc(100vw - 28px));
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-grid span {
  display: grid;
  gap: 10px;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--pine);
  font-size: 0.86rem;
  font-weight: 800;
}

.upload-progress {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 47, 99, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4ch;
  align-items: center;
  gap: 12px;
  color: var(--pine);
  font-size: 0.86rem;
  font-weight: 850;
}

.upload-progress-copy span,
.upload-progress-copy strong,
.upload-progress p {
  font-variant-numeric: tabular-nums;
}

.upload-progress-copy strong {
  text-align: right;
}

.upload-progress progress {
  width: 100%;
  height: 12px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #e3ebf1;
}

.upload-progress progress::-webkit-progress-bar {
  background: #e3ebf1;
}

.upload-progress progress::-webkit-progress-value {
  background: var(--miami-blue);
}

.upload-progress progress::-moz-progress-bar {
  background: var(--miami-blue);
}

.upload-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  min-height: 2.7em;
}

.upload-complete-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(7, 190, 99, 0.32);
  border-radius: 14px;
  background: rgba(7, 190, 99, 0.08);
  color: var(--pine-dark);
  padding: 14px;
}

.upload-complete-card[hidden] {
  display: none;
}

.upload-complete-card span {
  color: #07884a;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.upload-complete-card strong {
  color: var(--pine-dark);
  font-size: 1rem;
}

.upload-complete-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
}

.upload-complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-complete-card .ghost-button {
  justify-self: start;
}

.gps-placement-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(33, 171, 226, 0.34);
  border-radius: 8px;
  background: rgba(33, 171, 226, 0.08);
  padding: 10px 12px;
}

.gps-placement-note[hidden] {
  display: none;
}

.gps-placement-note strong {
  display: block;
  color: var(--pine);
  font-size: 0.88rem;
}

.gps-placement-note p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.28;
}

.gps-placement-note .ghost-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}

.gps-placement-note[data-state="success"] {
  border-color: rgba(7, 190, 99, 0.35);
  background: rgba(7, 190, 99, 0.08);
}

.gps-placement-note[data-state="warning"] {
  border-color: rgba(255, 196, 0, 0.46);
  background: rgba(255, 196, 0, 0.08);
}

.upload-placement-preview {
  align-self: center;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(33, 171, 226, 0.26);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 248, 255, 0.9));
  box-shadow: 0 18px 42px rgba(0, 47, 99, 0.12);
  padding: 12px;
}

.upload-placement-preview[hidden] {
  display: none;
}

.upload-placement-preview h3 {
  margin: 0;
  color: var(--pine);
  font-size: 0.95rem;
  line-height: 1.15;
}

.upload-placement-preview p {
  margin: 3px 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.28;
}

.upload-placement-map {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 47, 99, 0.12);
  border-radius: 10px;
  background: #eef4f8;
}

.upload-placement-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.upload-placement-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(23, 32, 38, 0.28);
}

.upload-placement-marker.is-clicked {
  background: var(--coral-bright);
  box-shadow:
    0 0 0 3px var(--attention-yellow),
    0 7px 18px rgba(240, 0, 25, 0.34);
}

.upload-placement-marker.is-suggested {
  background: var(--video-green);
  box-shadow:
    0 0 0 3px rgba(33, 171, 226, 0.82),
    0 7px 18px rgba(7, 190, 99, 0.34);
}

.upload-placement-marker.is-both {
  background: var(--video-green);
  box-shadow:
    0 0 0 3px var(--attention-yellow),
    0 0 0 6px rgba(33, 171, 226, 0.68),
    0 7px 18px rgba(7, 190, 99, 0.34);
}

.upload-placement-preview.is-share-picker {
  align-self: start;
}

.upload-placement-map.is-interactive {
  max-height: min(420px, 44vh);
}

.upload-placement-viewpoint {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid var(--pine-dark);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 47, 99, 0.18);
  cursor: pointer;
}

.upload-placement-viewpoint span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.upload-placement-viewpoint:hover,
.upload-placement-viewpoint:focus-visible {
  z-index: 4;
  border-color: var(--miami-blue);
  outline: none;
  box-shadow:
    0 0 0 5px rgba(0, 174, 239, 0.18),
    0 5px 14px rgba(0, 47, 99, 0.22);
}

.upload-placement-viewpoint.is-suggested {
  z-index: 2;
  border-color: var(--miami-blue);
  background: var(--video-green);
  box-shadow:
    0 0 0 4px rgba(33, 171, 226, 0.38),
    0 5px 14px rgba(7, 190, 99, 0.24);
}

.upload-placement-viewpoint.is-selected {
  z-index: 3;
  width: 18px;
  height: 18px;
  border-color: #fff;
  background: var(--coral-bright);
  box-shadow:
    0 0 0 4px var(--attention-yellow),
    0 6px 16px rgba(240, 0, 25, 0.28);
}

.upload-placement-viewpoint.is-both {
  background: var(--video-green);
  box-shadow:
    0 0 0 4px var(--attention-yellow),
    0 0 0 7px rgba(33, 171, 226, 0.5),
    0 6px 16px rgba(7, 190, 99, 0.28);
}

.upload-placement-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.upload-placement-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.upload-placement-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 47, 99, 0.18);
}

.upload-placement-legend .clicked i {
  background: var(--coral-bright);
}

.upload-placement-legend .suggested i {
  background: var(--video-green);
}

@media (max-width: 860px) {
  .share-video-layout {
    grid-template-columns: 1fr;
  }

  .share-video-context {
    position: static;
  }

  .share-video-header {
    align-items: stretch;
    flex-direction: column;
  }

  #uploadModal {
    overflow: auto;
  }

  #uploadModal form {
    display: block;
    max-height: none;
  }

  .upload-modal-body {
    grid-template-columns: 1fr;
    align-items: stretch;
    max-height: none;
    overflow: visible;
  }

  #uploadModal .upload-flow {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

.handoff-note {
  border: 1px solid rgba(0, 47, 99, 0.28);
  border-radius: 8px;
  background: #edf4fc;
  padding: 12px;
}

.handoff-note p {
  margin: 4px 0 0;
  color: var(--muted);
}

.terms-gate {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(33, 171, 226, 0.42);
  border-radius: 8px;
  background: rgba(33, 171, 226, 0.08);
  padding: 12px;
}

.terms-gate p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.terms-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.3;
}

.terms-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  border: 2px solid var(--logo-blue);
  border-radius: 4px;
  accent-color: var(--miami-blue);
  background: #fff;
}

.terms-check input:focus-visible {
  outline: 2px solid rgba(0, 174, 239, 0.32);
  outline-offset: 2px;
}

.terms-check a,
.terms-links a {
  color: var(--logo-blue);
  font-weight: 850;
  text-decoration: none;
}

.terms-check a:hover,
.terms-links a:hover {
  text-decoration: underline;
}

.terms-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.8rem;
}

.legal-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.legal-shell {
  width: min(860px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--logo-blue);
  font-weight: 850;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-shell h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.legal-note {
  max-width: 720px;
  margin: 0 0 28px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 1, 102, 0.22);
  border-radius: 8px;
  background: rgba(217, 1, 102, 0.06);
  color: var(--muted);
  font-weight: 700;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--logo-blue);
  font-weight: 850;
  text-decoration: none;
}

.legal-nav a:hover {
  border-color: rgba(35, 174, 239, 0.48);
  background: rgba(35, 174, 239, 0.08);
}

.legal-shell section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.legal-shell h2 {
  margin: 0 0 8px;
  color: var(--pine);
  font-size: 1.08rem;
}

.legal-shell h3 {
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: 0.98rem;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.legal-shell p {
  margin: 0;
}

.legal-shell ul {
  margin: 0;
  padding-left: 20px;
}

.legal-shell a {
  color: var(--logo-blue);
  font-weight: 800;
}

.legal-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.legal-form label,
.legal-form fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.legal-form fieldset {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.legal-form legend {
  padding: 0 6px;
  color: var(--logo-red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-form input,
.legal-form select,
.legal-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.legal-form input,
.legal-form select {
  min-height: 44px;
  padding: 8px 10px;
}

.legal-form textarea {
  min-height: 112px;
  padding: 10px;
  resize: vertical;
}

.legal-form input:focus,
.legal-form select:focus,
.legal-form textarea:focus {
  outline: 3px solid rgba(35, 174, 239, 0.18);
  border-color: var(--logo-blue);
}

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

.choice-row {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px !important;
  color: var(--muted) !important;
  font-weight: 750 !important;
}

.choice-row input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 680px) {
  .legal-form-grid {
    grid-template-columns: 1fr;
  }

  .event-request-filter,
  .map-request-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-request-detail-grid,
  .event-request-audit dl {
    grid-template-columns: 1fr;
  }

  .venue-merge-controls,
  .venue-merge-card-grid {
    grid-template-columns: 1fr;
  }

  .venue-merge-actions {
    justify-content: stretch;
  }

  .venue-merge-actions button {
    flex: 1;
  }
}

.modal-actions {
  justify-content: end;
  margin: 18px 0 0;
  padding: 0;
}

/* DarkView visual profile. DayView remains the default. */
body[data-theme="darkview"] .control-panel,
body[data-theme="darkview"] .venue-workspace,
body[data-theme="darkview"] .map-panel,
body[data-theme="darkview"] .video-panel,
body[data-theme="darkview"] .view-card,
body[data-theme="darkview"] .timeline-card,
body[data-theme="darkview"] .admin-panel,
body[data-theme="darkview"] .admin-card,
body[data-theme="darkview"] .admin-queue-panel,
body[data-theme="darkview"] .builder-form,
body[data-theme="darkview"] .builder-preview,
body[data-theme="darkview"] .builder-json-panel,
body[data-theme="darkview"] .approval-panel,
body[data-theme="darkview"] .video-filter-panel,
body[data-theme="darkview"] .worker-health-panel,
body[data-theme="darkview"] .video-upload-card,
body[data-theme="darkview"] .managed-event-card,
body[data-theme="darkview"] .request-modal,
body[data-theme="darkview"] .upload-modal form,
body[data-theme="darkview"] .share-video-workspace,
body[data-theme="darkview"] .share-upload-mount,
body[data-theme="darkview"] .share-video-context,
body[data-theme="darkview"] .admin-dialog-card {
  border-color: rgba(129, 156, 190, 0.28);
  background: linear-gradient(180deg, rgba(17, 26, 40, 0.94), rgba(10, 18, 31, 0.94));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

body[data-theme="darkview"] .venue-workspace,
body[data-theme="darkview"] .admin-panel,
body[data-theme="darkview"] .admin-card,
body[data-theme="darkview"] .builder-form,
body[data-theme="darkview"] .builder-preview,
body[data-theme="darkview"] .builder-json-panel {
  backdrop-filter: blur(18px);
}

body[data-theme="darkview"] .admin-auth,
body[data-theme="darkview"] .admin-queue-panel,
body[data-theme="darkview"] .builder-status-strip,
body[data-theme="darkview"] .builder-status-strip article,
body[data-theme="darkview"] .event-editor-step,
body[data-theme="darkview"] .event-edit-find-panel,
body[data-theme="darkview"] .event-request-detail-grid span,
body[data-theme="darkview"] .event-request-item,
body[data-theme="darkview"] .event-request-audit,
body[data-theme="darkview"] .event-duplicate-candidates,
body[data-theme="darkview"] .map-request-item,
body[data-theme="darkview"] .drop-zone,
body[data-theme="darkview"] .image-replacement-panel,
body[data-theme="darkview"] .setup-preview-frame,
body[data-theme="darkview"] .venue-target-panel,
body[data-theme="darkview"] .venue-duplicate-item,
body[data-theme="darkview"] .builder-mode-panel,
body[data-theme="darkview"] .active-map-editor,
body[data-theme="darkview"] .placement-workflow,
body[data-theme="darkview"] .placement-mode-panel,
body[data-theme="darkview"] .section-manager-item,
body[data-theme="darkview"] .viewpoint-editor-item,
body[data-theme="darkview"] .event-date-heading,
body[data-theme="darkview"] .event-empty,
body[data-theme="darkview"] .event-item,
body[data-theme="darkview"] .request-venue,
body[data-theme="darkview"] .metadata-current-grid div,
body[data-theme="darkview"] .metadata-correction-note,
body[data-theme="darkview"] .duplicate-note,
body[data-theme="darkview"] .duplicate-candidates-panel,
body[data-theme="darkview"] .duplicate-candidate-card,
body[data-theme="darkview"] .duplicate-candidate-card dl div,
body[data-theme="darkview"] .worker-health-card,
body[data-theme="darkview"] .worker-metric-card,
body[data-theme="darkview"] .worker-health-section,
body[data-theme="darkview"] .worker-health-mini-grid div,
body[data-theme="darkview"] .worker-summary-lists dl div,
body[data-theme="darkview"] .worker-alert-item,
body[data-theme="darkview"] .upload-attempt-panel,
body[data-theme="darkview"] .upload-attempt-summary div,
body[data-theme="darkview"] .upload-attempt-details,
body[data-theme="darkview"] .upload-attempt-details li dl div,
body[data-theme="darkview"] .video-upload-meta span,
body[data-theme="darkview"] .video-upload-pill,
body[data-theme="darkview"] .managed-event-card,
body[data-theme="darkview"] .gps-placement-note,
body[data-theme="darkview"] .upload-placement-preview,
body[data-theme="darkview"] .handoff-note,
body[data-theme="darkview"] .share-context-card,
body[data-theme="darkview"] .share-video-facts,
body[data-theme="darkview"] .share-match-panel,
body[data-theme="darkview"] .share-file-picker {
  border-color: rgba(129, 156, 190, 0.26);
  background: rgba(8, 16, 28, 0.68);
}

body[data-theme="darkview"] .venue-duplicate-review {
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(80, 52, 12, 0.28);
}

body[data-theme="darkview"] .venue-duplicate-review p {
  color: #f5c16c;
}

body[data-theme="darkview"] .venue-duplicate-badge {
  background: rgba(129, 156, 190, 0.18);
  color: var(--ink);
}

body[data-theme="darkview"] select,
body[data-theme="darkview"] input,
body[data-theme="darkview"] textarea {
  border-color: rgba(129, 156, 190, 0.38);
  background: rgba(4, 10, 19, 0.72);
  color: var(--ink);
}

body[data-theme="darkview"] .admin-auth input,
body[data-theme="darkview"] .builder-form input,
body[data-theme="darkview"] .builder-form select,
body[data-theme="darkview"] .builder-form textarea,
body[data-theme="darkview"] .video-filter-panel select,
body[data-theme="darkview"] .video-filter-panel input,
body[data-theme="darkview"] .event-manager-workspace input,
body[data-theme="darkview"] .event-manager-workspace select,
body[data-theme="darkview"] .event-manager-workspace textarea,
body[data-theme="darkview"] .request-modal input,
body[data-theme="darkview"] .request-modal select,
body[data-theme="darkview"] .request-modal textarea,
body[data-theme="darkview"] .upload-modal input,
body[data-theme="darkview"] .upload-modal select,
body[data-theme="darkview"] .upload-modal textarea,
body[data-theme="darkview"] .viewpoint-editor-item input,
body[data-theme="darkview"] .viewpoint-editor-item select,
body[data-theme="darkview"] .section-manager-item input {
  border-color: rgba(129, 156, 190, 0.38);
  background: rgba(4, 10, 19, 0.72);
  color: var(--ink);
}

body[data-theme="darkview"] select:focus,
body[data-theme="darkview"] input:focus,
body[data-theme="darkview"] textarea:focus {
  border-color: var(--pine);
  outline: 2px solid rgba(0, 174, 239, 0.24);
  outline-offset: 1px;
}

body[data-theme="darkview"] select option {
  background: #101827;
  color: var(--ink);
}

body[data-theme="darkview"] .ghost-button,
body[data-theme="darkview"] .wizard-steps button,
body[data-theme="darkview"] .discovery-mode-control button,
body[data-theme="darkview"] .layout-mode-control button,
body[data-theme="darkview"] .map-controls button,
body[data-theme="darkview"] .event-date-badge,
body[data-theme="darkview"] .upload-progress progress {
  border-color: rgba(129, 156, 190, 0.34);
  background: rgba(7, 14, 25, 0.82);
  color: var(--ink);
}

body[data-theme="darkview"] .primary-button,
body[data-theme="darkview"] .wizard-steps button.active,
body[data-theme="darkview"] .discovery-mode-control button.active,
body[data-theme="darkview"] .layout-mode-control button.active {
  background: linear-gradient(135deg, #0078ff, var(--pine));
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 174, 239, 0.24);
}

body[data-theme="darkview"] .admin-shell .discovery-mode-control button.active {
  background: var(--pine);
  color: #06101c;
  box-shadow: none;
}

body[data-theme="darkview"] .primary-button:hover,
body[data-theme="darkview"] .ghost-button:hover,
body[data-theme="darkview"] .request-venue:hover,
body[data-theme="darkview"] .event-item:hover {
  border-color: rgba(115, 228, 255, 0.72);
}

body[data-theme="darkview"] .event-item.active,
body[data-theme="darkview"] .managed-event-card.is-loaded {
  border-color: var(--pine);
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.18), rgba(13, 23, 39, 0.92));
  box-shadow: 0 0 0 1px rgba(0, 174, 239, 0.24), 0 18px 44px rgba(0, 0, 0, 0.32);
}

body[data-theme="darkview"] .event-item strong,
body[data-theme="darkview"] .admin-panel h1,
body[data-theme="darkview"] .admin-auth strong,
body[data-theme="darkview"] .queue-panel-head strong,
body[data-theme="darkview"] .event-editor-step-head strong,
body[data-theme="darkview"] .event-request-detail-grid strong,
body[data-theme="darkview"] .event-request-meta-line strong,
body[data-theme="darkview"] .event-request-audit > strong,
body[data-theme="darkview"] .event-request-audit dd,
body[data-theme="darkview"] .event-duplicate-candidates > strong,
body[data-theme="darkview"] .event-duplicate-candidate strong,
body[data-theme="darkview"] .builder-form h2,
body[data-theme="darkview"] .builder-status-strip strong,
body[data-theme="darkview"] .venue-header h1,
body[data-theme="darkview"] .selected-card h3,
body[data-theme="darkview"] .timeline-card h3,
body[data-theme="darkview"] .video-upload-title-row h3,
body[data-theme="darkview"] .managed-event-title-row h4,
body[data-theme="darkview"] .share-video-context h2,
body[data-theme="darkview"] .share-context-card strong,
body[data-theme="darkview"] .share-video-facts > strong,
body[data-theme="darkview"] .share-match-panel > strong,
body[data-theme="darkview"] .share-video-facts dd,
body[data-theme="darkview"] .share-match-panel dd {
  color: var(--ink);
}

body[data-theme="darkview"] .event-item span,
body[data-theme="darkview"] .event-item small,
body[data-theme="darkview"] .field-hint,
body[data-theme="darkview"] .builder-meta,
body[data-theme="darkview"] .admin-panel p,
body[data-theme="darkview"] .admin-card p,
body[data-theme="darkview"] .admin-auth span,
body[data-theme="darkview"] .queue-panel-head span,
body[data-theme="darkview"] .event-request-queue p,
body[data-theme="darkview"] .handoff-note p,
body[data-theme="darkview"] .share-video-facts p,
body[data-theme="darkview"] .share-match-panel p,
body[data-theme="darkview"] .share-video-facts dt,
body[data-theme="darkview"] .share-match-panel dt,
body[data-theme="darkview"] .share-video-facts > span,
body[data-theme="darkview"] .share-match-panel > span,
body[data-theme="darkview"] .share-file-picker span {
  color: var(--muted);
}

body[data-theme="darkview"] .owner-status-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(9, 18, 32, 0.92);
}

body[data-theme="darkview"] .owner-status-item h3,
body[data-theme="darkview"] .owner-status-detail {
  color: var(--ink);
}

body[data-theme="darkview"] .eyebrow,
body[data-theme="darkview"] .event-finder-eyebrow,
body[data-theme="darkview"] .selected-label,
body[data-theme="darkview"] .video-upload-venue,
body[data-theme="darkview"] .video-upload-review {
  color: var(--coral-bright);
}

body[data-theme="darkview"] .seat-map,
body[data-theme="darkview"] .map-viewport,
body[data-theme="darkview"] .builder-preview-frame,
body[data-theme="darkview"] .media-stage,
body[data-theme="darkview"] .poster {
  background-color: rgba(3, 8, 15, 0.76);
}

body[data-theme="darkview"] .map-viewport-shell::after {
  background: linear-gradient(180deg, rgba(3, 8, 15, 0), rgba(3, 8, 15, 0.92));
}

body[data-theme="darkview"] .map-scroll-hint {
  border-color: rgba(115, 228, 255, 0.26);
  background: rgba(8, 18, 33, 0.94);
  color: #f8fbff;
}

body[data-theme="darkview"] .upload-progress progress::-webkit-progress-bar {
  background: rgba(129, 156, 190, 0.22);
}

body[data-theme="darkview"] .admin-dialog::backdrop,
body[data-theme="darkview"] .upload-modal::backdrop,
body[data-theme="darkview"] .request-modal::backdrop {
  background: rgba(1, 5, 12, 0.7);
}

body[data-theme="darkview"] .map-request-filter {
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="darkview"] .map-request-filter button {
  color: rgba(255, 255, 255, 0.72);
}

body[data-theme="darkview"] .map-request-filter button.active {
  background: var(--sky);
  color: #06101f;
}

body[data-theme="darkview"] .venue-merge-result,
body[data-theme="darkview"] .venue-merge-card,
body[data-theme="darkview"] .venue-merge-move-summary,
body[data-theme="darkview"] .venue-merge-conflict-list {
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="darkview"] .venue-merge-execution {
  background: rgba(194, 33, 43, 0.14);
}

body[data-theme="darkview"] .venue-merge-result-warning {
  background: rgba(217, 119, 6, 0.14);
}

body[data-theme="darkview"] .venue-merge-result-error {
  background: rgba(194, 33, 43, 0.14);
}

body[data-theme="darkview"] .venue-merge-result-ready {
  background: rgba(0, 174, 239, 0.1);
}

body[data-theme="darkview"] .event-search-history,
body[data-theme="darkview"] .event-search-history-item,
body[data-theme="darkview"] .event-import-worker-status,
body[data-theme="darkview"] .event-import-worker-job,
body[data-theme="darkview"] .import-candidate-select-all,
body[data-theme="darkview"] .import-candidate-list-row,
body[data-theme="darkview"] .source-registry-card,
body[data-theme="darkview"] .source-registry-card dl div {
  border-color: rgba(173, 216, 255, 0.18);
  background: rgba(12, 23, 38, 0.82);
}

body[data-theme="darkview"] .event-search-empty-state strong,
body[data-theme="darkview"] .event-search-run-copy strong,
body[data-theme="darkview"] .event-search-history summary {
  color: var(--ink);
}

body[data-theme="darkview"] .event-search-run-progress {
  background: rgba(173, 216, 255, 0.16);
}

body[data-theme="darkview"] .import-candidate-list-select strong {
  color: var(--ink);
}

body[data-theme="darkview"] .event-import-worker-job.needs-attention {
  border-color: rgba(217, 1, 102, 0.34);
  background: rgba(217, 1, 102, 0.12);
}

body[data-theme="darkview"] .event-import-worker-job.advisory {
  border-color: rgba(173, 216, 255, 0.18);
  background: rgba(12, 23, 38, 0.82);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .video-upload-card {
    grid-template-columns: 1fr;
  }

  .duplicate-candidate-card {
    grid-template-columns: 1fr;
  }

  .event-manager-layout,
  .bulk-event-grid {
    grid-template-columns: 1fr;
  }

  .event-import-two-column,
  .event-import-manual-grid,
  .event-import-source-grid {
    grid-template-columns: 1fr;
  }

  .event-import-scope-grid,
  .event-import-scope-grid-secondary,
  .source-registry-detail-grid,
  .source-registry-meta-grid,
  .source-registry-card dl {
    grid-template-columns: 1fr;
  }

  .import-candidate-list-main {
    grid-template-columns: 1fr;
  }

  .import-candidate-list-status {
    justify-items: start;
    min-width: 0;
  }

  .import-candidate-edit-grid,
  .import-candidate-edit-grid span:nth-child(5),
  .import-candidate-edit-grid span:nth-child(6) {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .topbar .admin-auth {
    grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) auto;
  }

  body.admin-signed-in .topbar .admin-auth {
    grid-template-columns: minmax(160px, auto) auto;
  }

  .event-edit-filter-row-location,
  .event-edit-filter-row-meta {
    grid-template-columns: 1fr;
  }

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

  .worker-health-grid,
  .worker-metric-grid,
  .worker-health-mini-grid,
  .upload-attempt-summary,
  .upload-attempt-details li dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-placement-layout {
    grid-template-columns: 1fr;
  }

  .viewpoint-editor {
    position: static;
    max-height: none;
  }

  .finder-panel-toggle {
    top: 104px;
    left: 0;
  }

  body.finder-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

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

  .wizard-steps,
  .publish-summary {
    grid-template-columns: 1fr;
  }

  .builder-workspace {
    grid-template-columns: 1fr;
  }

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

  .workspace-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-grid > .map-panel,
  .workspace-grid > .video-panel,
  .workspace-grid.map-focus > .map-panel,
  .workspace-grid.map-focus > .video-panel,
  .workspace-grid.video-focus > .video-panel {
    width: 100%;
  }

  .workspace-grid.video-focus .map-panel {
    display: none;
  }

  .venue-workspace {
    order: -1;
    grid-row: 1;
  }

  .control-panel {
    grid-row: 2;
  }

  .control-panel {
    min-height: auto;
  }

  body.finder-collapsed .control-panel {
    display: none;
  }

  .venue-header {
    align-items: stretch;
    flex-direction: column;
  }

  .venue-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-stats {
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: 0;
  }

  .map-panel {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .builder-status-strip {
    grid-template-columns: 1fr;
  }

  .metadata-current-grid,
  .metadata-form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: center;
    flex-wrap: wrap;
    padding: 6px 12px;
  }

  .public-auth {
    order: 3;
    justify-content: flex-end;
    width: 100%;
    margin-left: 0;
  }

  .public-auth.is-signed-in {
    flex-wrap: wrap;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .public-auth span {
    max-width: min(100%, 28ch);
  }

  .topbar .admin-auth {
    order: 3;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    border-radius: 8px;
  }

  body.admin-signed-in .topbar .admin-auth {
    grid-template-columns: 1fr auto;
    width: auto;
    margin-left: auto;
    border-radius: 999px;
  }

  .brand {
    width: 96px;
    height: 66px;
  }

  .top-actions {
    width: auto;
  }

  .brand-logo {
    width: 96px !important;
    height: 66px !important;
    max-width: 96px;
    max-height: 66px;
  }

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

  .event-editor-grid-location,
  .event-editor-grid-title,
  .event-editor-grid-date,
  .event-editor-grid-time,
  .event-editor-grid-optional {
    grid-template-columns: 1fr;
  }

  .top-actions .ghost-button {
    display: none;
  }

  .top-actions .primary-button {
    min-height: 38px;
    padding: 0 12px;
  }

  .app-shell {
    padding: 12px;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 12px;
    padding: 8px 12px 16px;
  }

  .admin-shell {
    padding: 16px 12px 12px;
  }

  .admin-panel {
    padding: 18px;
  }

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

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

  .video-admin-toolbar,
  .video-upload-title-row,
  .event-manager-section-head,
  .managed-event-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .video-admin-toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .video-filter-panel,
  .video-upload-meta,
  .worker-health-grid,
  .worker-metric-grid,
  .worker-health-mini-grid,
  .worker-summary-lists,
  .upload-attempt-summary,
  .upload-attempt-details li dl {
    grid-template-columns: 1fr;
  }

  .worker-health-heading,
  .worker-health-subhead,
  .upload-attempt-head,
  .upload-attempt-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-search-filter {
    grid-column: auto;
  }

  .video-upload-actions,
  .video-upload-pills {
    justify-content: flex-start;
  }

  .approval-item {
    align-items: stretch;
    flex-direction: column;
  }

  .approval-actions {
    justify-content: flex-start;
  }

  .viewpoint-editor-item {
    grid-template-columns: 34px 1fr;
  }

  .bulk-area-grid,
  .section-manager-item {
    grid-template-columns: 1fr;
  }

  .viewpoint-editor-item .ghost-button {
    grid-column: 1 / -1;
  }

  .builder-preview-frame {
    min-height: 240px;
  }

  .seat-map {
    min-height: 0;
  }

  .viewpoint-dot {
    width: 4px;
    height: 4px;
  }

  .viewpoint-dot.selected {
    width: 13px;
    height: 13px;
  }

  .angle-item {
    grid-template-columns: 44px 1fr;
  }

  .sync-badge {
    grid-column: 2;
    justify-self: start;
  }
}
