:root {
  --pine: #12261f;
  --deep: #07120f;
  --harbor: #284f58;
  --brick: #a3483e;
  --gold: #e0b34e;
  --paper: #fff7e8;
  --panel: #f4ecdc;
  --ink: #161916;
  --muted: rgba(22, 25, 22, 0.66);
  --line: rgba(255, 247, 232, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--deep);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

input {
  min-width: 0;
}

button {
  cursor: pointer;
}

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

.chyron {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  height: 36px;
  overflow: hidden;
}

.chyron strong {
  align-items: center;
  align-self: stretch;
  background: var(--brick);
  display: flex;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.chyron-track {
  animation: ticker 34s linear infinite;
  display: flex;
  gap: 42px;
  min-width: 0;
  padding-left: 22px;
  white-space: nowrap;
  width: 100%;
}

.chyron > div {
  overflow: hidden;
}

.chyron-track span {
  color: rgba(255, 247, 232, 0.78);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 760;
}

.chyron button {
  align-self: stretch;
  background: rgba(255, 247, 232, 0.08);
  border: 0;
  border-left: 1px solid rgba(255, 247, 232, 0.12);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0 14px;
  position: relative;
  z-index: 2;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 340px;
  height: calc(100dvh - 36px);
  min-height: 620px;
}

.side-nav,
.chat-drawer {
  background: rgba(18, 38, 31, 0.96);
  border-color: var(--line);
  border-style: solid;
  min-width: 0;
}

.side-nav {
  border-width: 0 1px 0 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 14px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--paper);
  border-radius: 50%;
  color: var(--pine);
  display: flex;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: rgba(255, 247, 232, 0.6);
  font-size: 0.72rem;
  margin-top: 4px;
}

.nav-group,
.nav-list {
  display: grid;
  gap: 0;
  min-width: 0;
}

.nav-group button,
.nav-list a {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 247, 232, 0.1);
  border-radius: 0;
  color: var(--paper);
  display: flex;
  font-size: 0.84rem;
  font-weight: 850;
  justify-content: space-between;
  min-height: 34px;
  padding: 8px 2px;
  text-align: left;
}

.nav-group span,
.nav-list span {
  color: rgba(255, 247, 232, 0.52);
  font-size: 0.68rem;
  font-weight: 800;
}

.lane-toggle {
  color: var(--gold) !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lane-list {
  display: grid;
  gap: 0;
  padding-left: 10px;
}

.lane-list button {
  min-height: 31px;
}

.account-dock {
  align-items: center;
  border-top: 1px solid rgba(255, 247, 232, 0.14);
  display: flex;
  gap: 10px;
  min-width: 0;
  padding-top: 12px;
}

.user-mark {
  align-items: center;
  background: var(--paper);
  border-radius: 50%;
  color: var(--pine);
  display: flex;
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.account-dock strong,
.account-dock small {
  display: block;
  line-height: 1.05;
}

.account-dock strong {
  color: var(--paper);
  font-size: 0.9rem;
}

.account-dock small {
  color: rgba(255, 247, 232, 0.58);
  font-size: 0.7rem;
  margin-top: 4px;
}

.broadcast-stage {
  background:
    linear-gradient(90deg, rgba(7, 18, 15, 0.9), rgba(7, 18, 15, 0.2)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&q=86&w=2200") center/cover;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.topbar {
  align-items: center;
  background: rgba(255, 247, 232, 0.94);
  border: 1px solid rgba(255, 247, 232, 0.25);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px;
}

.topbar p,
.topbar strong {
  display: block;
  margin: 0;
}

.topbar p {
  color: var(--brick);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar strong {
  color: var(--pine);
  font-size: 0.95rem;
}

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

.top-actions button,
.source-row button,
.chat-drawer header button,
.chat-switcher button,
.chat-drawer footer button {
  border-radius: 999px;
  font-weight: 900;
}

.top-actions button {
  background: var(--pine);
  border: 0;
  color: var(--paper);
  min-height: 36px;
  padding: 0 14px;
}

.top-actions button:first-child {
  background: transparent;
  border: 1px solid rgba(22, 25, 22, 0.2);
  color: var(--pine);
}

.broadcast-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.48fr);
  min-height: 0;
}

.video-panel,
.tool-previews,
.action-dock article,
.chat-drawer {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.video-panel {
  border: 1px solid rgba(255, 247, 232, 0.16);
  border-radius: 10px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.video-bg {
  background-image: url("https://images.unsplash.com/photo-1515694346937-94d85e41e6f0?auto=format&fit=crop&q=86&w=1600");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.video-overlay {
  background:
    radial-gradient(circle at 72% 22%, rgba(224, 179, 78, 0.16), transparent 32%),
    linear-gradient(to top, rgba(7, 18, 15, 0.96), rgba(7, 18, 15, 0.42), rgba(40, 79, 88, 0.22));
  inset: 0;
  position: absolute;
}

.broadcast-meta {
  bottom: 0;
  left: 0;
  padding: 22px;
  position: absolute;
  right: 0;
}

.broadcast-meta span,
.feed-header span,
.chat-drawer header span,
.action-dock span {
  color: var(--gold);
  display: block;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.broadcast-meta strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.2vw, 4.35rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 8px 0 14px;
}

.broadcast-meta p {
  color: rgba(255, 247, 232, 0.84);
  font-size: clamp(0.96rem, 1.2vw, 1.12rem);
  line-height: 1.5;
  margin: 0;
  max-width: 720px;
}

.source-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
}

.lead-form {
  background: rgba(7, 18, 15, 0.72);
  border: 1px solid rgba(255, 247, 232, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  max-width: 720px;
  padding: 12px;
}

.lead-form label {
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 950;
}

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

.lead-row input {
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
}

.lead-row input[aria-invalid="true"] {
  border-color: var(--brick);
}

.lead-row button {
  background: var(--gold);
  border: 0;
  border-radius: 6px;
  color: var(--deep);
  font-weight: 950;
  min-height: 42px;
  padding: 0 14px;
}

.lead-consent,
.lead-status {
  color: rgba(255, 247, 232, 0.72);
  font-size: 0.74rem !important;
  line-height: 1.28 !important;
  margin: 0 !important;
}

.lead-status {
  min-height: 1.2em;
}

.lead-status[data-state="error"] {
  color: #ffd6d1;
}

.lead-status[data-state="success"] {
  color: #fff2c7;
  font-weight: 850;
}

.source-row small {
  color: rgba(255, 247, 232, 0.62);
}

.source-row button {
  background: var(--brick);
  border: 0;
  color: white;
  min-height: 38px;
  padding: 0 14px;
}

.tool-previews {
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.feed-header {
  border-bottom: 1px solid rgba(22, 25, 22, 0.12);
  padding-bottom: 12px;
}

.feed-header strong {
  color: var(--pine);
  display: block;
  font-size: 1rem;
  margin-top: 5px;
}

.tool-card p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.22;
  margin: 7px 0 0;
}

.tool-card {
  background: rgba(255, 247, 232, 0.95);
  border: 1px solid rgba(255, 247, 232, 0.22);
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}

.tool-title {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.tool-title span {
  color: var(--brick);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tool-title strong {
  color: var(--pine);
  font-size: 0.82rem;
}

.radar-preview {
  background:
    radial-gradient(circle at 60% 42%, rgba(163, 72, 62, 0.78) 0 7%, transparent 8%),
    radial-gradient(circle at 50% 45%, rgba(224, 179, 78, 0.68) 0 18%, transparent 19%),
    radial-gradient(circle at 40% 55%, rgba(40, 79, 88, 0.74) 0 20%, transparent 21%),
    linear-gradient(135deg, rgba(18, 38, 31, 0.14), rgba(40, 79, 88, 0.16));
  border-radius: 5px;
  height: 48px;
  margin-top: 8px;
  position: relative;
}

.radar-preview i {
  border: 1px solid rgba(18, 38, 31, 0.22);
  border-radius: 50%;
  height: 28px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
}

.radar-preview i:nth-child(2) {
  height: 52px;
  width: 52px;
}

.radar-preview i:nth-child(3) {
  height: 78px;
  width: 78px;
}

.radio-preview {
  align-items: end;
  background: var(--pine);
  border-radius: 5px;
  display: flex;
  gap: 5px;
  height: 48px;
  margin-top: 8px;
  overflow: hidden;
  padding: 9px;
}

.radio-preview b {
  background: var(--gold);
  border-radius: 2px 2px 0 0;
  display: block;
  flex: 1;
  height: 30%;
}

.radio-preview b:nth-child(2) {
  height: 78%;
}

.radio-preview b:nth-child(3) {
  height: 46%;
}

.radio-preview b:nth-child(4) {
  height: 92%;
}

.radio-preview b:nth-child(5) {
  height: 58%;
}

.contacts-card ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.contacts-card li {
  align-items: center;
  border-bottom: 1px solid rgba(22, 25, 22, 0.1);
  color: var(--muted);
  display: flex;
  font-size: 0.72rem;
  justify-content: space-between;
  padding-bottom: 4px;
}

.contacts-card em {
  color: var(--brick);
  font-style: normal;
  font-weight: 900;
}

.action-dock {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  min-height: 118px;
}

.action-dock article {
  background: rgba(255, 247, 232, 0.95);
  border: 1px solid rgba(255, 247, 232, 0.2);
  border-radius: 8px;
  color: var(--ink);
  min-width: 0;
  padding: 14px;
}

.action-dock strong {
  color: var(--pine);
  display: block;
  font-size: 1rem;
  margin: 7px 0;
}

.action-dock p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0;
}

.chat-drawer {
  border-width: 0 0 0 1px;
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  margin: 12px 12px 12px 0;
  padding: 12px;
  position: relative;
  right: -10px;
}

.drawer-tab {
  background: var(--brick);
  border: 1px solid rgba(255, 247, 232, 0.18);
  border-radius: 8px 0 0 8px;
  color: white;
  font-size: 0.7rem;
  font-weight: 950;
  left: -48px;
  letter-spacing: 0.1em;
  padding: 11px 8px;
  position: absolute;
  text-transform: uppercase;
  top: 66px;
  writing-mode: vertical-rl;
}

.drawer-tab span {
  font-size: 1rem;
  line-height: 0.7;
}

.chat-drawer header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.chat-drawer header strong {
  display: block;
  font-size: 1.02rem;
  margin-top: 4px;
}

.chat-drawer header button {
  background: rgba(255, 247, 232, 0.12);
  border: 1px solid rgba(255, 247, 232, 0.18);
  color: var(--paper);
  min-height: 34px;
  padding: 0 12px;
}

.chat-switcher {
  background: rgba(255, 247, 232, 0.07);
  border: 1px solid rgba(255, 247, 232, 0.1);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
}

.chat-switcher button {
  background: transparent;
  border: 0;
  color: rgba(255, 247, 232, 0.7);
  min-height: 32px;
}

.chat-switcher .active {
  background: var(--paper);
  border-radius: 4px;
  color: var(--pine);
}

.chat-list {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.chat-list article {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 247, 232, 0.1);
  border-radius: 0;
  padding: 8px 0;
}

.chat-list div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.chat-list strong {
  color: var(--paper);
  font-size: 0.88rem;
}

.chat-list span {
  color: rgba(255, 247, 232, 0.48);
  font-size: 0.7rem;
  font-weight: 850;
}

.chat-list p,
.chat-drawer footer p {
  color: rgba(255, 247, 232, 0.68);
  font-size: 0.78rem;
  line-height: 1.28;
  margin: 4px 0 0;
}

.chat-drawer footer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.chat-drawer footer p {
  margin: 0 0 10px;
}

.chat-drawer footer button {
  background: var(--brick);
  border: 0;
  color: white;
  min-height: 40px;
  width: 100%;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr) 330px;
  }

  .brand span:last-child,
  .nav-group button span,
  .nav-list span,
  .nav-group p {
    display: none;
  }

  .nav-group button,
  .nav-list a {
    font-size: 0.72rem;
    justify-content: center;
    padding: 8px 4px;
  }

  .side-nav {
    padding: 14px 8px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .chat-drawer {
    display: none;
  }

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

  .tool-previews {
    display: none;
  }

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

  .topbar {
    align-items: start;
  }

  .topbar strong {
    font-size: 0.92rem;
    line-height: 1.05;
  }

  .top-actions {
    flex: 0 0 auto;
  }

  .broadcast-meta {
    padding: 14px;
  }

  .broadcast-meta strong {
    font-size: 1.8rem;
    line-height: 0.92;
    margin: 4px 0 8px;
  }

  .broadcast-meta p {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .source-row {
    align-items: end;
    margin-top: 10px;
  }

  .lead-form {
    gap: 7px;
    margin-top: 10px;
    padding: 10px;
  }

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

  .lead-row input,
  .lead-row button {
    min-height: 40px;
  }

  .source-row small {
    max-width: 160px;
  }
}
