:root {
  --ink: #10272c;
  --black: #061214;
  --muted: #536669;
  --paper: #fbf4e6;
  --panel: #fffaf0;
  --line: #e6d9c2;
  --teal: #168f98;
  --teal-dark: #0b5c63;
  --orange: #f36b18;
  --green: #5c934e;
  --yellow: #e4a928;
  --shadow: 0 22px 60px rgba(16, 39, 44, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 108px;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12px 12px, rgba(22, 143, 152, 0.08) 1px, transparent 1.5px) 0 0 / 24px 24px,
    linear-gradient(180deg, #fff9ed 0%, var(--paper) 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 50%;
  display: flex;
  width: min(1160px, calc(100% - 32px));
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.brand,
.desktop-nav,
.hero-actions,
.site-footer,
.lead-magnet,
.link-card {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.brand img {
  width: 58px;
  height: 58px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  object-fit: cover;
}

.desktop-nav {
  gap: 6px;
}

.desktop-nav a,
.mobile-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  background: rgba(243, 107, 24, 0.12);
  color: var(--black);
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: var(--black);
  background: rgba(243, 107, 24, 0.16);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.profile-nav-link.is-signed-in,
[data-profile-link].is-signed-in {
  background: rgba(22, 143, 152, 0.12);
  color: var(--black);
}

.nav-demo-link {
  background: var(--ink);
  color: var(--panel) !important;
}

.product-demo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  padding: clamp(70px, 9vw, 118px) max(24px, calc((100vw - 1160px) / 2));
  border-top: 3px solid var(--teal);
  border-bottom: 3px solid var(--orange);
  background: #fff;
}

.product-demo-copy h2 {
  max-width: 650px;
  margin: 8px 0 20px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.product-demo-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.product-demo-points {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.product-demo-points li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.product-demo-points li::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  content: "✓";
}

.product-demo-note {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.product-demo-preview {
  overflow: hidden;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-demo-preview:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 74px rgba(16, 39, 44, 0.24);
}

.product-demo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.product-demo-preview span {
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  color: white;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .product-demo-section {
    grid-template-columns: 1fr;
  }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--orange);
}

.nav-toggle span + span {
  margin-top: 5px;
}

.mobile-nav {
  position: fixed;
  z-index: 19;
  top: 92px;
  left: 50%;
  display: none;
  width: min(1160px, calc(100% - 32px));
  padding: 10px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.mobile-nav.is-open {
  display: grid;
}

.hero {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 92px 24px 36px;
  border-bottom: 3px solid var(--orange);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 244, 230, 0.98) 0%, rgba(251, 244, 230, 0.9) 48%, rgba(251, 244, 230, 0.2) 100%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(22, 143, 152, 0.1) 38px 40px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(243, 107, 24, 0.08) 38px 40px);
  content: "";
}

.hero::after {
  position: absolute;
  top: 118px;
  right: max(18px, calc((100% - 1160px) / 2));
  width: min(40vw, 480px);
  height: 44%;
  border-top: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
  opacity: 0.75;
  content: "";
}

.hero-emblem {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100% - 1160px) / 2));
  bottom: 44px;
  width: min(36vw, 410px);
  aspect-ratio: 1;
  border: 3px solid var(--orange);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
.stat strong,
.process-row strong {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  max-width: 690px;
  color: var(--black);
  font-size: clamp(3.1rem, 5.6vw, 5.2rem);
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

h3 {
  font-size: 1.75rem;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: #23383b;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  font-weight: 700;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid var(--black);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--black);
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
}

.button.primary {
  background: var(--orange);
  color: var(--black);
}

.button.primary:hover {
  background: #ff812f;
}

.button.secondary {
  background: var(--panel);
  color: var(--teal-dark);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 22px;
}

.hero-metrics span {
  min-height: 54px;
  padding: 10px 12px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  color: var(--teal-dark);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-metrics strong {
  display: block;
  color: var(--orange);
}

.band {
  background: var(--panel);
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
}

.stat {
  min-height: 154px;
  padding: 34px clamp(20px, 5vw, 56px);
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.stat strong {
  display: block;
  color: var(--teal);
  font-size: clamp(2.4rem, 4.4vw, 4.6rem);
}

.stat span {
  color: var(--muted);
  font-weight: 900;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.muted,
.intro-grid p,
.poster-card p,
.lane-card p,
.service-item p,
.process-row p,
.lead-magnet p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  font-weight: 800;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 5vw, 64px);
  max-width: 1000px;
}

.intro-grid p {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 700;
}

.showcase {
  padding: 92px max(16px, calc((100% - 1160px) / 2));
  border-top: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
}

.showcase-subheading {
  max-width: 820px;
  margin: 0 0 20px;
}

.showcase-subheading h3 {
  margin: 0;
  color: var(--black);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.95;
}

.visual-subheading {
  margin-top: 36px;
}

.video-showcase {
  width: min(1480px, calc(100vw - 24px));
  margin-bottom: 36px;
  margin-left: 50%;
  padding: clamp(16px, 2.4vw, 24px);
  border: 2px solid rgba(243, 107, 24, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(251, 244, 230, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(22, 143, 152, 0.08) 32px 34px);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.video-showcase .showcase-subheading h3 {
  color: var(--black);
}

.system-feature {
  width: min(992px, 100%);
  margin: 36px auto 0;
  padding: 14px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.system-feature img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--orange);
  border-radius: 6px;
}

.video-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 290px);
  gap: clamp(14px, 2.3vw, 24px);
  align-items: stretch;
}

.video-player-shell {
  position: relative;
  display: grid;
  min-width: 0;
  cursor: pointer;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 143, 152, 0.32);
  border-radius: 8px;
  background: var(--black);
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 34px rgba(16, 39, 44, 0.18);
}

.video-frame-featured {
  border-width: 2px;
  border-color: rgba(243, 107, 24, 0.86);
  background:
    radial-gradient(circle at 12% 12%, rgba(22, 143, 152, 0.22), transparent 34%),
    var(--black);
  box-shadow: 0 22px 44px rgba(16, 39, 44, 0.22);
}

.video-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 22% 78%, rgba(243, 107, 24, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 64px);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.video-frame video,
.video-frame iframe,
.video-poster,
.video-cover {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-poster {
  background:
    radial-gradient(circle at 50% 44%, rgba(22, 143, 152, 0.24), transparent 34%),
    linear-gradient(135deg, #061015, #10272c 48%, #061015);
  object-fit: contain;
  padding: clamp(34px, 8vw, 96px);
}

.video-frame iframe {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  width: 124%;
  height: 124%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease;
}

.video-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  filter: saturate(0.9) contrast(1.08);
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 120ms ease, visibility 0ms linear;
}

.video-player-shell[data-video-ready="true"] .video-frame iframe,
.video-player-shell[data-video-state="playing"] .video-frame iframe {
  opacity: 1;
}

.video-player-shell[data-video-state="playing"] .video-cover {
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease 320ms, visibility 0ms linear 540ms;
}

.video-carousel-meta {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.video-carousel-meta h4 {
  margin: 0;
  color: var(--orange);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.7rem, 3vw, 3.35rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.video-carousel-meta p {
  margin: 0;
  color: var(--black);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}

.video-count {
  color: var(--teal-dark);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.video-selector-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.video-selector {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 6px 7px;
  border: 2px solid rgba(22, 143, 152, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 244, 230, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(22, 143, 152, 0.08) 22px 24px);
  color: var(--teal-dark);
  cursor: pointer;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(0.66rem, 0.68vw, 0.78rem);
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-align: left;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.video-icon {
  position: relative;
  z-index: 2;
  display: block;
  width: 17px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 7px 0 rgba(22, 143, 152, 0.12),
    0 0 0 rgba(243, 107, 24, 0);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.video-icon::before {
  position: absolute;
  left: -2px;
  right: -2px;
  top: -2px;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background:
    linear-gradient(135deg, currentColor 0 18%, transparent 18% 30%, currentColor 30% 48%, transparent 48% 60%, currentColor 60% 78%, transparent 78%);
  content: "";
  opacity: 0.68;
}

.video-icon::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  content: "";
  transform: translate(-34%, -42%);
}

.video-selector::after {
  position: absolute;
  inset: -34px auto -34px -68%;
  z-index: 0;
  width: 72%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 50%, rgba(255, 255, 255, 0.92), transparent 28%),
    radial-gradient(circle at 58% 50%, rgba(243, 107, 24, 0.5), transparent 48%),
    linear-gradient(105deg, transparent 0%, rgba(255, 184, 94, 0.1) 20%, rgba(255, 255, 255, 0.72) 50%, rgba(22, 143, 152, 0.24) 72%, transparent 100%);
  content: "";
  filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transform: skewX(-18deg) translateX(0);
  transition: opacity 220ms ease, transform 520ms ease;
}

.video-label {
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.video-selector:hover,
.video-selector:focus-visible {
  border-color: var(--orange);
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(16, 39, 44, 0.12);
}

.video-selector:hover::after,
.video-selector:focus-visible::after {
  opacity: 1;
  transform: skewX(-18deg) translateX(245%);
}

.video-selector:hover .video-icon,
.video-selector:focus-visible .video-icon {
  box-shadow:
    inset 0 7px 0 rgba(22, 143, 152, 0.11),
    0 0 18px rgba(243, 107, 24, 0.36);
  transform: scale(1.03);
}

.video-selector.is-active {
  border-color: var(--orange);
  background:
    linear-gradient(180deg, rgba(243, 107, 24, 0.98), rgba(210, 80, 14, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.12) 18px 20px);
  color: var(--panel);
  box-shadow: 0 10px 22px rgba(243, 107, 24, 0.2);
}

.video-selector.is-active .video-icon {
  background: rgba(255, 255, 255, 0.12);
}

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

.poster-card,
.lane-card,
.service-item,
.process-row article {
  position: relative;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--panel);
}

.poster-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) 1fr;
  gap: 20px;
  min-height: 350px;
  overflow: hidden;
  padding: 18px;
}

.poster-card::before,
.lane-card::before,
.service-item::before,
.process-row article::before {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 56px;
  height: 20px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  content: "";
}

.poster-card img {
  width: 100%;
  height: 100%;
  min-height: 315px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  object-fit: cover;
  object-position: top;
}

.poster-card > div {
  align-self: end;
  padding: 8px 4px;
}

.tag {
  display: inline-flex;
  margin-bottom: 46px;
  padding: 7px 10px;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: rgba(243, 107, 24, 0.11);
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tag.alt {
  border-color: var(--teal);
  background: rgba(22, 143, 152, 0.12);
  color: var(--teal-dark);
}

.lane-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.lane-card {
  min-height: 260px;
  padding: 24px;
}

.lane-card > span,
.service-item > span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background: var(--orange);
  color: var(--black);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
}

.lane-card p,
.service-item p,
.process-row p {
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(36px, 8vw, 92px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 112px;
}

.service-stack {
  display: grid;
  gap: 14px;
}

.service-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  min-height: 158px;
  align-items: start;
  padding: 24px;
}

.service-item > span {
  margin-bottom: 0;
}

.service-item.featured {
  border-color: var(--orange);
  box-shadow: var(--shadow);
}

.process {
  padding: 92px max(16px, calc((100% - 1160px) / 2));
  border-top: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
}

.process-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-row article {
  min-height: 200px;
  padding: 28px;
}

.process-row strong {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 2.2rem;
}

.lead-magnet {
  justify-content: space-between;
  gap: 32px;
}

.lead-magnet > div {
  max-width: 760px;
}

.studio-central-teaser {
  padding: clamp(28px, 5vw, 58px);
  border: 2px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(22, 143, 152, 0.1), rgba(255, 250, 240, 0.94) 56%),
    var(--panel);
  box-shadow: var(--shadow);
}

.studio-central-teaser h2 {
  color: var(--teal-dark);
}

.studio-central-teaser .eyebrow {
  color: var(--orange);
}

.ad-slot {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 32px;
  padding: 20px;
  border: 2px dashed rgba(22, 143, 152, 0.52);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--muted);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.links-section {
  padding: 92px max(16px, calc((100% - 1160px) / 2));
  border-top: 2px solid var(--teal);
  border-bottom: 2px solid var(--orange);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  position: relative;
  min-height: 164px;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.link-card::before {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 56px;
  height: 20px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  content: "";
}

.link-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.link-card span,
.link-card small {
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.link-card strong {
  color: var(--black);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.link-card small {
  color: var(--muted);
  text-transform: none;
}

.featured-link {
  border-color: var(--orange);
  background:
    linear-gradient(135deg, rgba(243, 107, 24, 0.16), rgba(22, 143, 152, 0.12)),
    var(--panel);
}

.contact {
  padding: 92px max(16px, calc((100% - 1160px) / 2));
  border-top: 2px solid var(--orange);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 900;
  text-transform: uppercase;
}

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

.hidden-field {
  display: none;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 52px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 132px;
  padding: 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(243, 107, 24, 0.16);
}

.form-status {
  align-self: center;
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 30px max(16px, calc((100% - 1160px) / 2));
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: none;
}

.livestream-page {
  background:
    radial-gradient(circle at 16px 16px, rgba(22, 143, 152, 0.06) 1px, transparent 1.5px) 0 0 / 26px 26px,
    linear-gradient(180deg, #fff9ed 0%, var(--paper) 100%);
}

.livestream-only {
  display: grid;
  min-height: 100vh;
  align-items: start;
  padding: 118px max(16px, calc((100% - 1240px) / 2)) 44px;
}

.livestream-player-only {
  width: 100%;
}

.studio-livestream {
  display: flex;
  justify-content: center;
}

.livestream-shell {
  width: min(1180px, 100%);
  overflow: hidden;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 12%, rgba(22, 143, 152, 0.25), transparent 30%),
    linear-gradient(135deg, #061214, #10272c 60%, #061214);
  box-shadow: var(--shadow);
}

.livestream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(22, 143, 152, 0.42);
}

.livestream-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.livestream-program-title {
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.livestream-title {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(120, 0, 0, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg, #ff2b32, #bd1017);
  box-shadow: 0 0 14px rgba(215, 25, 32, 0.32);
  color: #fff;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.livestream-title::after,
.livestream-stop::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  content: "";
  animation: livestreamSweep 2.4s linear infinite;
}

.air-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.air-status.active {
  border-color: rgba(243, 107, 24, 0.72);
  background: rgba(243, 107, 24, 0.18);
  color: #fff;
}

.livestream-note {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.livestream-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 18% 22%, rgba(22, 143, 152, 0.24), transparent 28%),
    #061214;
}

.livestream-frame iframe,
.livestream-frame video,
.livestream-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.livestream-frame iframe {
  pointer-events: none;
}

.livestream-page .livestream-frame iframe {
  pointer-events: auto;
}

.livestream-sound-prompt {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(6, 18, 20, 0.9);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.36);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.livestream-sound-prompt[hidden] {
  display: none;
}

.livestream-sound-prompt:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.livestream-stop {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  overflow: hidden;
  display: inline-flex;
  min-width: 68px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 43, 50, 0.68);
  border-radius: 999px;
  background: rgba(6, 18, 20, 0.76);
  box-shadow: 0 0 16px rgba(255, 43, 50, 0.24);
  color: white;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: auto;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.livestream-stop::before {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 2px;
  background: #ff2b32;
  box-shadow: 0 0 8px rgba(255, 43, 50, 0.85);
  content: "";
}

.livestream-stop[aria-pressed="true"] {
  border-color: rgba(22, 143, 152, 0.8);
  box-shadow: 0 0 16px rgba(22, 143, 152, 0.24);
}

.livestream-stop[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  margin-right: 8px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid var(--teal);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.livestream-empty {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 48%, rgba(22, 143, 152, 0.24), transparent 30%),
    #061214;
}

@keyframes livestreamSweep {
  0% {
    left: -45%;
  }

  100% {
    left: 125%;
  }
}

@media (max-width: 1020px) {
  .hero-emblem {
    opacity: 0.24;
  }

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

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

  .poster-card img {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

  .video-carousel {
    grid-template-columns: 1fr;
  }

  .video-selector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 76vh;
    padding-top: 96px;
  }

  .livestream-only {
    min-height: 100vh;
    padding-top: 104px;
  }

  .livestream-header {
    align-items: flex-start;
  }

  .livestream-left {
    flex: 1;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 244, 230, 0.98) 0%, rgba(251, 244, 230, 0.9) 63%, rgba(251, 244, 230, 0.58) 100%),
      repeating-linear-gradient(90deg, transparent 0 34px, rgba(22, 143, 152, 0.09) 34px 36px),
      repeating-linear-gradient(0deg, transparent 0 34px, rgba(243, 107, 24, 0.07) 34px 36px);
  }

  .hero::after {
    display: none;
  }

  .hero-emblem {
    right: -84px;
    bottom: 70px;
    width: 310px;
    opacity: 0.16;
  }

  .proof,
  .intro-grid,
  .poster-grid,
  .lane-grid,
  .split,
  .process-row,
  .links-grid,
  .notification-status-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

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

  .lead-magnet {
    align-items: flex-start;
    flex-direction: column;
  }

  .full {
    grid-column: auto;
  }

  .video-selector-grid {
    display: flex;
    gap: 6px;
    margin: 0 -10px;
    padding: 3px 10px 9px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    order: -1;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .video-selector {
    grid-template-columns: 16px minmax(0, 1fr);
    flex: 0 0 min(35vw, 122px);
    min-height: 34px;
    padding: 5px 7px;
    font-size: 0.68rem;
    scroll-snap-align: start;
  }

  .video-icon {
    width: 16px;
    height: 13px;
  }

  .video-frame iframe {
    width: 154%;
    height: 154%;
  }
}

@media (max-width: 560px) {
.site-header {
    top: 8px;
    width: calc(100% - 20px);
    padding: 0 12px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand {
    max-width: calc(100% - 54px);
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.85rem, 13.5vw, 4.05rem);
  }

  .hero {
    min-height: 74vh;
    padding-bottom: 30px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 18px;
  }

  .hero-metrics span {
    min-height: 46px;
    padding: 8px;
    font-size: 0.78rem;
    line-height: 1.05;
  }

  .video-selector-grid {
    display: flex;
  }

  .video-selector {
    flex-basis: min(34vw, 116px);
    min-height: 32px;
    font-size: 0.64rem;
  }

  .section,
  .showcase,
  .process,
  .links-section,
  .contact {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .livestream-only {
    padding: 92px 12px 22px;
  }

  .livestream-stop {
    top: 10px;
    right: 10px;
    min-width: 60px;
    height: 30px;
    padding: 0 10px;
    font-size: 0.66rem;
  }

  .poster-card,
  .lane-card,
  .service-item,
  .process-row article {
    padding: 20px;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

.admin-body {
  min-height: 100vh;
}

.admin-header {
  display: flex;
  width: min(1160px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: var(--shadow);
}

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

.admin-main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.admin-gate {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 26px;
  align-items: center;
  min-height: 58vh;
  padding: 38px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.1), rgba(22, 143, 152, 0.12)),
    var(--panel);
  box-shadow: var(--shadow);
}

.admin-gate h1 {
  max-width: 620px;
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.admin-gate p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 800;
}

.admin-login {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background: #fff;
}

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

.admin-login span {
  color: var(--teal-dark);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-login input {
  min-height: 52px;
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.admin-hero {
  display: grid;
  gap: 16px;
  padding: 40px 0 28px;
}

.admin-hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.admin-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 800;
}

.admin-panel {
  margin-top: 28px;
  padding: 22px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-panel-heading,
.admin-actions,
.table-toolbar {
  display: flex;
  align-items: center;
}

.admin-panel-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-panel-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.admin-actions,
.table-toolbar {
  flex-wrap: wrap;
  gap: 10px;
}

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

.video-count-control {
  display: grid;
  gap: 8px;
  max-width: 280px;
  margin-bottom: 18px;
}

.video-admin-grid label,
.csv-import,
.video-count-control {
  display: grid;
  gap: 8px;
}

.video-admin-grid span,
.csv-import span,
.video-count-control span {
  color: var(--teal-dark);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-admin-grid input,
.video-count-control select,
.csv-import textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.video-admin-grid input {
  min-height: 48px;
  padding: 10px 12px;
}

.video-count-control select {
  min-height: 48px;
  padding: 10px 12px;
}

.video-admin-grid label.is-muted {
  opacity: 0.58;
}

.video-admin-grid small {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.toggle-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.toggle-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toggle-control {
  position: relative;
  display: inline-flex;
  width: 62px;
  height: 34px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: rgba(22, 143, 152, 0.12);
  transition: background 160ms ease, border-color 160ms ease;
}

.toggle-control::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 2px 2px 0 var(--black);
  content: "";
  transition: transform 160ms ease, background 160ms ease;
}

.toggle-row input:checked + .toggle-control {
  border-color: var(--orange);
  background: rgba(243, 107, 24, 0.22);
}

.toggle-row input:checked + .toggle-control::after {
  background: var(--orange);
  transform: translateX(28px);
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row strong {
  color: var(--black);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.toggle-row small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.csv-import textarea {
  min-height: 160px;
  padding: 12px;
  resize: vertical;
}

.admin-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--teal-dark);
  font-weight: 900;
}

.livestream-agent-panel {
  border-color: var(--orange);
  background:
    linear-gradient(135deg, rgba(243, 107, 24, 0.07), rgba(22, 143, 152, 0.08)),
    var(--panel);
}

.livestream-agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 20px;
}

.livestream-agent-control,
.livestream-playlist-editor {
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.livestream-agent-state {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.livestream-agent-light {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 3px solid var(--black);
  border-radius: 50%;
  background: #9aa6aa;
  box-shadow: 3px 3px 0 rgba(6, 17, 27, 0.18);
}

.livestream-agent-state[data-stream-state="ready"] .livestream-agent-light {
  background: var(--teal);
}

.livestream-agent-state[data-stream-state="starting"] .livestream-agent-light,
.livestream-agent-state[data-stream-state="stopping"] .livestream-agent-light {
  background: #f2a02d;
  animation: livestreamAgentPulse 1s ease-in-out infinite alternate;
}

.livestream-agent-state[data-stream-state="live"] .livestream-agent-light {
  background: #ff2b32;
  box-shadow: 0 0 0 7px rgba(255, 43, 50, 0.12), 3px 3px 0 rgba(6, 17, 27, 0.18);
}

.livestream-agent-state[data-stream-state="failed"] .livestream-agent-light {
  background: var(--orange);
}

.livestream-agent-state small,
.livestream-agent-state strong {
  display: block;
}

.livestream-agent-state small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.livestream-agent-state strong {
  margin-top: 2px;
  color: var(--black);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.livestream-master-switch {
  margin-bottom: 16px;
  border-color: var(--teal);
}

.livestream-master-switch:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.62;
}

.livestream-audio-control {
  margin-bottom: 16px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.livestream-audio-heading strong,
.livestream-audio-heading small {
  display: block;
}

.livestream-audio-heading strong {
  color: var(--teal-dark);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.livestream-audio-heading small {
  min-height: 2.5em;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.livestream-audio-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.livestream-audio-options button {
  min-height: 42px;
  padding: 9px 10px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: 900 0.82rem/1.2 Inter, sans-serif;
}

.livestream-audio-options button:hover:not(:disabled),
.livestream-audio-options button:focus-visible {
  border-color: var(--teal);
  outline: 3px solid rgba(22, 143, 152, 0.15);
}

.livestream-audio-options button[aria-pressed="true"] {
  border-color: var(--black);
  background: var(--teal);
  color: #fff;
  box-shadow: 3px 3px 0 var(--black);
}

.livestream-audio-options button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.livestream-agent-readiness {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.livestream-agent-readiness div {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
}

.livestream-agent-readiness dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.livestream-agent-readiness dd {
  margin: 4px 0 0;
  color: var(--teal-dark);
  font-weight: 900;
}

.livestream-playlist-editor label,
.livestream-playlist-editor label span,
.livestream-playlist-editor label small,
.livestream-policy-note {
  display: block;
}

.livestream-title-editor {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line);
}

.livestream-playlist-library {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.livestream-playlist-library legend,
.livestream-advanced-playlist-label span {
  color: var(--teal-dark);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
}

.livestream-playlist-library-help {
  display: block;
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

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

.livestream-playlist-choice-wrap {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.livestream-playlist-editor .livestream-playlist-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 3px 10px;
  padding: 13px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  cursor: pointer;
}

.livestream-playlist-choice:has(input:checked) {
  border-color: var(--teal);
  background: rgba(22, 143, 152, 0.08);
  box-shadow: 3px 3px 0 rgba(6, 17, 27, 0.16);
}

.livestream-playlist-choice input {
  width: 20px;
  height: 20px;
  grid-row: 1 / span 2;
  accent-color: var(--teal);
}

.livestream-playlist-choice strong {
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 900;
}

.livestream-playlist-editor .livestream-playlist-choice small {
  margin: 0;
  font-size: 0.72rem;
}

.livestream-playlist-delete {
  min-height: 34px;
  padding: 6px 10px;
  border: 2px solid #9b2f1d;
  border-radius: 7px;
  background: #fff;
  color: #9b2f1d;
  cursor: pointer;
  font: 900 0.72rem/1 Inter, sans-serif;
  text-transform: uppercase;
}

.livestream-playlist-delete:hover:not(:disabled),
.livestream-playlist-delete:focus-visible,
.livestream-playlist-delete.confirming {
  background: #9b2f1d;
  color: #fff;
  outline: 3px solid rgba(155, 47, 29, 0.15);
}

.livestream-playlist-delete:disabled {
  cursor: wait;
  opacity: 0.6;
}

.livestream-playlist-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.livestream-playlist-upload {
  margin-top: 14px;
  padding: 14px;
  border: 2px dashed var(--teal);
  border-radius: 8px;
  background: rgba(22, 143, 152, 0.05);
}

.livestream-playlist-upload label span {
  font-size: 1.05rem;
}

.livestream-playlist-upload input[type="file"] {
  width: 100%;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: 800 0.8rem/1.35 Inter, sans-serif;
}

.livestream-playlist-upload-status {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4;
}

.livestream-loop-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 5px solid var(--teal);
  background: rgba(22, 143, 152, 0.08);
}

.livestream-loop-status > span {
  color: var(--teal-dark);
  font-size: 1.7rem;
  font-weight: 900;
}

.livestream-loop-status strong,
.livestream-loop-status small {
  display: block;
}

.livestream-loop-status strong {
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.livestream-loop-status small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
}

.livestream-title-editor input {
  width: 100%;
  margin: 14px 0;
  padding: 13px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: 800 1rem/1.4 Inter, sans-serif;
}

.livestream-title-editor input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(22, 143, 152, 0.15);
}

.livestream-playlist-editor label span {
  color: var(--teal-dark);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
}

.livestream-playlist-editor label small,
.livestream-policy-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.livestream-playlist-editor textarea {
  width: 100%;
  min-height: 130px;
  margin: 14px 0;
  padding: 13px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: 800 0.92rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  resize: vertical;
}

.livestream-agent-error {
  margin: 10px 0 0;
  padding: 11px 12px;
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  background: rgba(243, 107, 24, 0.1);
  color: #8a3000;
  font-weight: 900;
}

.livestream-agent-footnote {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 5px solid var(--teal);
  background: rgba(22, 143, 152, 0.08);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

@keyframes livestreamAgentPulse {
  from { transform: scale(0.88); opacity: 0.72; }
  to { transform: scale(1.08); opacity: 1; }
}

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

.notification-status-card {
  position: relative;
  overflow: hidden;
  min-height: 186px;
  padding: 18px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: #fff;
}

.notification-status-card::before {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 16px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  content: "";
}

.notification-status-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 10px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: rgba(22, 143, 152, 0.1);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.notification-status-card strong {
  display: block;
  color: var(--black);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.notification-status-card p,
.notification-status-card small {
  display: block;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.notification-status-card.ready {
  border-color: var(--teal);
}

.notification-status-card.ready span {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.notification-status-card.blocked,
.notification-status-card.failed {
  border-color: var(--orange);
}

.notification-status-card.blocked span,
.notification-status-card.failed span {
  border-color: var(--orange);
  background: rgba(243, 107, 24, 0.13);
  color: var(--orange);
}

.file-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.table-toolbar {
  justify-content: space-between;
  margin: 18px 0 12px;
}

.table-toolbar span {
  color: var(--orange);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
}

.submission-table-wrap {
  overflow: auto;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.submission-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

.submission-table th {
  background: rgba(22, 143, 152, 0.1);
  color: var(--teal-dark);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.submission-table td {
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.auth-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 5vw, 42px);
  border: 2px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(243, 107, 24, 0.11), rgba(22, 143, 152, 0.12)),
    var(--panel);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

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

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--teal-dark);
  font-weight: 900;
}

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

.metric-card {
  min-height: 150px;
  padding: 20px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: #fff;
}

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

.metric-card strong {
  display: block;
  margin-top: 14px;
  color: var(--orange);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.profile-tab {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--panel);
  color: var(--teal-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.profile-tab.is-active,
.profile-tab:hover {
  border-color: var(--orange);
  background: rgba(243, 107, 24, 0.14);
  color: var(--black);
}

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

.profile-card {
  min-height: 178px;
  padding: 20px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: #fff;
}

.profile-card-featured {
  border-color: var(--orange);
  background:
    linear-gradient(135deg, rgba(243, 107, 24, 0.12), rgba(22, 143, 152, 0.1)),
    #fff;
}

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

.profile-card strong {
  display: block;
  margin-top: 14px;
  color: var(--orange);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 0.92;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.profile-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.filter-row button[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
}

.error-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.weekly-report {
  display: grid;
  gap: 18px;
}

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

.report-grid article {
  min-height: 150px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-grid span {
  color: var(--orange);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-grid p,
.weekly-report li {
  color: var(--ink);
  font-weight: 800;
}

.weekly-report h3 {
  color: var(--teal-dark);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.dashboard-body {
  background:
    linear-gradient(180deg, rgba(22, 143, 152, 0.08), rgba(255, 250, 240, 0) 360px),
    var(--cream);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: stretch;
  padding: 40px 0 28px;
}

.dashboard-hero h1 {
  max-width: 860px;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
}

.dashboard-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 800;
}

.dashboard-total-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 22px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(243, 107, 24, 0.16), rgba(22, 143, 152, 0.1)),
    #fff;
  box-shadow: var(--shadow);
}

.dashboard-total-card span,
.site-kpi-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-total-card strong {
  color: var(--orange);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
}

.dashboard-total-card small,
.dashboard-note {
  color: var(--teal-dark);
  font-weight: 900;
}

.dashboard-filters {
  align-items: center;
}

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

.dashboard-sites {
  display: grid;
  gap: 10px;
}

.dashboard-site-panel {
  position: relative;
  overflow: hidden;
}

.dashboard-site-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--orange);
}

.dashboard-site-panel.is-pending::before {
  background: var(--teal);
}

.site-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.site-kpi-grid article {
  min-height: 120px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.site-kpi-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--orange);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.92;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.dashboard-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dashboard-table {
  min-width: 460px;
}

@media (max-width: 820px) {
  .admin-header,
  .admin-panel-heading,
  .admin-gate {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-gate {
    grid-template-columns: 1fr;
    padding: 24px;
  }

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

  .livestream-agent-layout {
    grid-template-columns: 1fr;
  }

  .livestream-playlist-choices {
    grid-template-columns: 1fr;
  }

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

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

  .report-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .network-summary-grid,
  .site-kpi-grid,
  .dashboard-table-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .metrics-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }
}
