:root {
  color-scheme: dark;
  --ink: #e9f4f2;
  --muted: #8aa1a4;
  --paper: #090d12;
  --panel: rgba(14, 22, 28, 0.88);
  --line: rgba(143, 171, 175, 0.22);
  --deep: #05080d;
  --red: #ff5d4d;
  --teal: #24d6b0;
  --gold: #f3b94c;
  --blue: #63a4ff;
  --green: #60d46d;
  --violet: #b58cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(36, 214, 176, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 214, 176, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(36, 214, 176, 0.13), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(255, 93, 77, 0.12), transparent 27%),
    linear-gradient(135deg, #080b12, #0d1417 45%, #080b12),
    var(--paper);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100vh;
  padding: 24px 20px;
  border-right: 1px solid rgba(36, 214, 176, 0.18);
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.98), rgba(10, 17, 22, 0.95));
  color: #f8f6ef;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(36, 214, 176, 0.45);
  border-radius: 8px;
  background: rgba(4, 10, 15, 0.86);
  box-shadow: 0 0 22px rgba(36, 214, 176, 0.12);
}

.brand-mark img {
  width: 28px;
  height: 34px;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand div span {
  margin-top: 4px;
  color: rgba(248, 246, 239, 0.62);
  font-size: 0.78rem;
}

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

.nav-item,
.segment,
.topic-tab,
.region-pill {
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  color: rgba(248, 246, 239, 0.72);
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.source-stack {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 0.94rem;
  letter-spacing: 0;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.sidebar .panel-heading span {
  color: rgba(248, 246, 239, 0.66);
}

.source-meter {
  display: grid;
  gap: 14px;
}

.meter-row {
  display: grid;
  grid-template-columns: 64px 1fr 52px;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.meter-row b {
  text-align: right;
}

.meter-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.meter-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  transition: width 180ms ease;
}

.meter-fill.official,
.pipe-dot.official {
  background: var(--blue);
}

.meter-fill.unofficial {
  background: var(--teal);
}

.meter-fill.review,
.pipe-dot.review {
  background: var(--red);
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 22px;
  margin-bottom: 18px;
}

.headline p {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.headline h1 {
  max-width: 780px;
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.search-wrap {
  display: grid;
  gap: 8px;
}

.search-wrap label,
.confidence-control span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-wrap input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(6, 11, 16, 0.82);
  color: var(--ink);
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 140, 123, 0.18);
}

.control-strip {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(220px, 290px);
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.segmented,
.topic-tabs,
.region-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.segment,
.topic-tab,
.region-pill {
  min-height: 36px;
  padding: 0 13px;
  border-color: var(--line);
  background: rgba(8, 15, 20, 0.78);
  color: var(--ink);
}

.segment:hover,
.topic-tab:hover,
.region-pill:hover,
.segment.active,
.topic-tab.active,
.region-pill.active {
  border-color: rgba(36, 214, 176, 0.62);
  background: rgba(36, 214, 176, 0.14);
  color: var(--teal);
}

.confidence-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 15, 20, 0.78);
}

.confidence-control input {
  accent-color: var(--teal);
}

.confidence-control b {
  font-size: 0.82rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.55fr) minmax(320px, 0.95fr);
  grid-template-areas:
    "agent agent"
    "sources sources"
    "media media"
    "map brief"
    "feed intel"
    "feed pipe";
  gap: 16px;
}

.agent-panel,
.map-panel,
.brief-panel,
.feed-panel,
.intel-panel,
.pipeline-panel,
.source-network-panel,
.media-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.agent-panel,
.map-panel,
.brief-panel,
.intel-panel,
.pipeline-panel,
.source-network-panel,
.media-panel {
  padding: 18px;
}

.agent-panel {
  grid-area: agent;
}

.feed-panel {
  padding: 18px 18px 10px;
}

.map-panel {
  grid-area: map;
}

.brief-panel {
  grid-area: brief;
}

.feed-panel {
  grid-area: feed;
}

.intel-panel {
  grid-area: intel;
}

.pipeline-panel {
  grid-area: pipe;
}

.source-network-panel {
  grid-area: sources;
}

.media-panel {
  grid-area: media;
}

.agent-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.1fr) minmax(220px, 0.75fr);
  gap: 16px;
  align-items: center;
  border-color: rgba(36, 214, 176, 0.3);
  background:
    linear-gradient(90deg, rgba(36, 214, 176, 0.1), transparent 32%),
    rgba(9, 16, 22, 0.92);
}

.agent-status {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(23, 140, 123, 0.16);
}

.agent-status h2 {
  margin: 0 0 5px;
  font-size: 1rem;
  letter-spacing: 0;
}

.agent-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

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

.agent-metric {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 15, 0.72);
}

.agent-metric b {
  display: block;
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.agent-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.agent-metric span + span {
  margin-top: 3px;
  font-weight: 600;
}

.agent-controls {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.scan-button {
  min-height: 38px;
  border: 1px solid rgba(36, 214, 176, 0.68);
  border-radius: 8px;
  background: rgba(36, 214, 176, 0.18);
  color: var(--teal);
  font-weight: 800;
}

.auto-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 11, 16, 0.82);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.auto-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.next-sweep {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-size: 0.78rem;
}

.agent-queue {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.agent-task {
  min-height: 86px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 15, 0.72);
}

.agent-task b {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
}

.agent-task p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.agent-task span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(23, 140, 123, 0.11);
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 900;
}

.source-network-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.source-network-heading p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
}

.source-network-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.source-network-tools {
  display: grid;
  grid-template-columns: auto minmax(240px, 360px);
  align-items: center;
  gap: 10px;
}

.source-network-tools label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.source-network-tools input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(5, 11, 16, 0.84);
  color: var(--ink);
  outline: none;
}

.source-network-tools input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(99, 164, 255, 0.12);
}

.source-network-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.source-network-summary > span {
  display: inline-flex;
  align-items: baseline;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 11, 16, 0.72);
  color: var(--muted);
  font-size: 0.73rem;
}

.source-network-summary b {
  margin-right: 5px;
  color: var(--ink);
  font-size: 0.85rem;
}

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

.source-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 198px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 15, 0.72);
}

.source-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--blue);
  content: "";
}

.source-card.media::before {
  background: var(--teal);
}

.source-card.open::before {
  background: var(--gold);
}

.source-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.source-card-top h3 {
  margin: 5px 0 0;
  font-size: 0.88rem;
  line-height: 1.3;
}

.source-card-top > b {
  color: var(--ink);
  font-size: 1.15rem;
}

.source-kind {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
}

.source-card.media .source-kind {
  color: var(--teal);
}

.source-card.open .source-kind {
  color: var(--gold);
}

.source-card > p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.42;
}

.source-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.source-examples .tag {
  min-height: 21px;
  padding: 0 6px;
  font-size: 0.66rem;
}

.source-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.source-card-foot > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.source-detail-button,
.detail-button,
.news-detail-button,
.claim-detail-button {
  border: 1px solid rgba(36, 214, 176, 0.44);
  border-radius: 7px;
  background: rgba(36, 214, 176, 0.11);
  color: var(--teal);
  font-weight: 800;
}

.source-detail-button {
  min-height: 29px;
  padding: 0 9px;
  font-size: 0.7rem;
}

.source-detail-button:hover,
.detail-button:hover,
.news-detail-button:hover,
.claim-detail-button:hover {
  border-color: var(--teal);
  background: rgba(36, 214, 176, 0.18);
}

.source-empty {
  grid-column: 1 / -1;
}

.media-panel-heading {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.media-panel-heading p {
  margin: 0 0 5px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
}

.media-panel-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.media-tabs {
  display: flex;
  gap: 6px;
}

.media-tab {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(5, 11, 16, 0.76);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.media-tab:hover,
.media-tab.active {
  border-color: rgba(255, 93, 77, 0.55);
  background: rgba(255, 93, 77, 0.12);
  color: #ffffff;
}

.media-status {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 93, 77, 0.3);
  border-radius: 7px;
  background: rgba(255, 93, 77, 0.08);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

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

.media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 15, 0.76);
}

.media-card-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(99, 164, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 164, 255, 0.07) 1px, transparent 1px),
    #071019;
  background-size: 22px 22px;
}

.media-card-preview::before,
.media-card-preview::after {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--media-accent) 48%, transparent);
  border-radius: 50%;
  content: "";
}

.media-card-preview::before {
  width: 96px;
  height: 96px;
}

.media-card-preview::after {
  width: 152px;
  height: 52px;
  transform: rotate(-18deg);
}

.media-card-preview > b {
  z-index: 1;
  color: #ffffff;
  font-size: 1.5rem;
}

.media-card-grid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--media-accent) 24%, transparent), transparent 45%);
}

.media-card-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--media-accent);
  color: #05080d;
  font-size: 0.66rem;
  font-weight: 950;
}

.media-card.live .media-card-badge {
  color: #ffffff;
  animation: livePulse 1.4s ease-in-out infinite;
}

.media-card-wave {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: end;
  gap: 2px;
  height: 28px;
}

.media-card-wave i {
  width: 3px;
  height: 40%;
  background: var(--media-accent);
  animation: mediaWave 1.1s ease-in-out infinite alternate;
  animation-delay: var(--bar-delay);
}

.media-card.audio .media-card-preview::before {
  border-radius: 8px;
  transform: rotate(45deg);
}

.media-card-content {
  padding: 12px;
}

.media-card-source {
  color: var(--media-accent);
  font-size: 0.68rem;
  font-weight: 900;
}

.media-card-content h3 {
  min-height: 42px;
  margin: 6px 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.media-card-content > p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.42;
}

.media-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.media-card-meta .tag {
  min-height: 21px;
  padding: 0 6px;
  font-size: 0.64rem;
}

.media-open-button,
.selected-media-button,
.news-media-button,
.detail-media-button {
  border: 1px solid color-mix(in srgb, var(--teal) 56%, transparent);
  border-radius: 7px;
  background: rgba(36, 214, 176, 0.11);
  color: var(--teal);
  font-weight: 850;
}

.media-open-button {
  width: 100%;
  min-height: 34px;
  margin-top: 11px;
  border-color: color-mix(in srgb, var(--media-accent) 58%, transparent);
  background: color-mix(in srgb, var(--media-accent) 13%, transparent);
  color: var(--media-accent);
  font-size: 0.74rem;
}

.media-open-button:hover,
.selected-media-button:hover,
.news-media-button:hover,
.detail-media-button:hover {
  filter: brightness(1.2);
}

@keyframes mediaWave {
  0% { height: 24%; }
  100% { height: 100%; }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.world-stage {
  position: relative;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  border: 1px solid rgba(36, 214, 176, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(36, 214, 176, 0.14), transparent 42%),
    linear-gradient(0deg, rgba(36, 214, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 214, 176, 0.05) 1px, transparent 1px),
    #050a10;
  background-size: 40px 40px;
}

#globeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#globeCanvas:active {
  cursor: grabbing;
}

.globe-hud {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  min-width: 154px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 214, 176, 0.3);
  border-radius: 8px;
  background: rgba(5, 11, 16, 0.78);
}

.globe-hud span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.globe-hud b {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 1.8rem;
}

.globe-controls {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 4;
  display: grid;
  grid-template-columns: 34px 54px 34px 34px;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(36, 214, 176, 0.28);
  border-radius: 8px;
  background: rgba(5, 11, 16, 0.72);
  backdrop-filter: blur(12px);
}

.globe-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border: 1px solid rgba(143, 171, 175, 0.22);
  border-radius: 7px;
  background: rgba(8, 15, 20, 0.86);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.globe-controls button:hover {
  border-color: rgba(36, 214, 176, 0.64);
  color: var(--teal);
}

.globe-controls span {
  display: grid;
  place-items: center;
  height: 32px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.world-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world-map path {
  fill: rgba(36, 214, 176, 0.13);
  stroke: rgba(36, 214, 176, 0.3);
  stroke-width: 2;
}

.map-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.marker {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(23, 140, 123, 0.16);
}

.marker.official {
  background: var(--blue);
  box-shadow: 0 0 0 7px rgba(63, 99, 183, 0.17);
}

.marker.review {
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(219, 79, 67, 0.16);
}

.marker.muted {
  opacity: 0.24;
}

.marker:focus {
  outline: 3px solid rgba(197, 138, 37, 0.5);
  outline-offset: 3px;
}

.region-filter {
  margin-top: 14px;
}

.layer-toggles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.layer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 11, 16, 0.78);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.layer-toggle.active {
  border-color: rgba(36, 214, 176, 0.58);
  background: rgba(36, 214, 176, 0.12);
  color: var(--ink);
}

.layer-key {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

.signal-card {
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 15, 0.72);
}

.signal-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.signal-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.signal-card small {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 10px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(36, 214, 176, 0.1);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.selected-event {
  min-height: 132px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(36, 214, 176, 0.28);
  border-radius: 8px;
  background: rgba(4, 10, 15, 0.72);
}

.selected-event b {
  display: block;
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 0.92rem;
}

.selected-event p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.selected-event .news-meta {
  margin-top: 11px;
}

.selected-event-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 36px;
  margin-top: 12px;
}

.detail-button,
.selected-media-button {
  width: 100%;
  min-height: 36px;
}

.selected-event-actions > :only-child {
  grid-column: 1 / -1;
}

.news-feed,
.claim-list {
  display: grid;
  gap: 10px;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.news-card:first-child {
  border-top: 0;
}

.news-card h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.32;
  letter-spacing: 0;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.48;
}

.news-actions {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  width: 58px;
}

.news-detail-button {
  width: 58px;
  min-height: 30px;
  font-size: 0.72rem;
}

.news-media-button {
  width: 58px;
  min-height: 28px;
  font-size: 0.7rem;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag,
.risk-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 11, 16, 0.76);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.risk-tag {
  border-color: transparent;
  color: #ffffff;
}

.risk-tag.low {
  background: var(--green);
}

.risk-tag.medium {
  background: var(--gold);
}

.risk-tag.high {
  background: var(--red);
}

.cred {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(36, 214, 176, 0.1);
  color: var(--teal);
  font-weight: 900;
}

.claim-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 15, 0.72);
}

.claim-item b {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
}

.claim-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.claim-meter {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(143, 171, 175, 0.18);
}

.claim-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.claim-detail-button {
  min-height: 30px;
  margin-top: 10px;
  padding: 0 10px;
  font-size: 0.72rem;
}

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

.pipeline li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
}

.pipeline b {
  font-size: 0.88rem;
}

.pipeline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.42;
}

.pipe-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
}

.pipe-dot.media {
  background: var(--teal);
}

.pipe-dot.field {
  background: var(--gold);
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.media-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.media-backdrop[hidden] {
  display: none;
}

.media-viewer {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 31;
  width: min(1100px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(36, 214, 176, 0.34);
  border-radius: 8px;
  background: #071016;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -48%) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}

.media-viewer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.media-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 16, 22, 0.96);
}

.media-viewer-header p {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
}

.media-viewer-header h2 {
  margin: 0;
  font-size: 1.08rem;
}

.media-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 1.25rem;
}

.media-close:hover {
  border-color: var(--red);
  color: var(--red);
}

.media-viewer-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.8fr);
  min-height: 560px;
}

.media-stage {
  --media-accent: #24d6b0;
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--media-accent) 20%, transparent), transparent 36%),
    #050a10;
}

.media-stage-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(color-mix(in srgb, var(--media-accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--media-accent) 8%, transparent) 1px, transparent 1px);
  background-size: 38px 38px;
}

.media-stage-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(52vw, 430px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--media-accent) 58%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px color-mix(in srgb, var(--media-accent) 4%, transparent),
    0 0 70px color-mix(in srgb, var(--media-accent) 18%, transparent);
  transform: translate(-50%, -50%);
}

.media-stage-orbit::before,
.media-stage-orbit::after {
  position: absolute;
  inset: 12% -18%;
  border: 1px solid color-mix(in srgb, var(--media-accent) 45%, transparent);
  border-radius: 50%;
  content: "";
}

.media-stage-orbit::before {
  transform: rotate(24deg);
}

.media-stage-orbit::after {
  transform: rotate(-32deg);
}

.media-stage.playing .media-stage-orbit {
  animation: orbitTurn 14s linear infinite;
}

.media-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 120px;
  height: 190px;
  object-fit: contain;
  opacity: 0.34;
  transform: translate(-50%, -50%);
}

.media-stage-topline {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.media-stage-topline > span:nth-child(2) {
  color: rgba(233, 244, 242, 0.72);
}

.media-live-badge {
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--media-accent);
  color: #05080d;
}

.media-live-badge.live {
  background: var(--red);
  color: #ffffff;
  animation: livePulse 1.4s ease-in-out infinite;
}

.media-stage-topline time {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.media-stage-location {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
}

.media-stage-location span {
  color: var(--media-accent);
  font-size: 5.5rem;
  font-weight: 950;
  line-height: 0.9;
  opacity: 0.9;
}

.media-stage-location b {
  margin-top: 10px;
  color: #ffffff;
  font-size: 0.9rem;
}

.media-stage-caption {
  position: absolute;
  right: 18px;
  bottom: 28px;
  left: 18px;
  z-index: 2;
  padding: 13px 15px;
  border-left: 3px solid var(--media-accent);
  background: rgba(2, 7, 11, 0.88);
}

.media-stage-caption span {
  color: var(--media-accent);
  font-size: 0.68rem;
  font-weight: 900;
}

.media-stage-caption p {
  margin: 6px 0 0;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.45;
}

.media-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.media-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--media-accent);
  transition: width 300ms linear;
}

.media-stage.live .media-progress span {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: liveProgress 2.2s linear infinite;
}

.media-transcript-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px;
  background: #081016;
}

.media-transcript-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.media-transcript-heading h3 {
  margin: 0;
  font-size: 0.88rem;
}

.media-transcript-heading span {
  color: var(--muted);
  font-size: 0.68rem;
}

.media-transcript {
  display: grid;
  gap: 8px;
  max-height: 410px;
  padding: 12px 0;
  overflow: auto;
}

.media-transcript-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
}

.media-transcript-line.active {
  border-color: color-mix(in srgb, var(--media-accent) 42%, transparent);
  background: color-mix(in srgb, var(--media-accent) 8%, transparent);
}

.media-transcript-line time {
  color: var(--media-accent);
  font-size: 0.65rem;
  font-weight: 900;
}

.media-transcript-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.48;
}

.media-transcript-line.active p {
  color: var(--ink);
}

.media-player-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.media-player-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 850;
}

.media-player-controls button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

#mediaPrimary {
  border-color: color-mix(in srgb, var(--media-accent) 55%, transparent);
  background: color-mix(in srgb, var(--media-accent) 13%, transparent);
  color: var(--media-accent);
}

#mediaOpenDetail {
  grid-column: 1 / -1;
}

@keyframes orbitTurn {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes liveProgress {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

body.detail-open {
  overflow: hidden;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.detail-backdrop[hidden] {
  display: none;
}

.detail-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 21;
  width: min(650px, 92vw);
  overflow: auto;
  border-left: 1px solid rgba(36, 214, 176, 0.35);
  background: #081016;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.62);
  transform: translateX(102%);
  transition: transform 180ms ease;
}

.detail-drawer.open {
  transform: translateX(0);
}

.detail-drawer-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  min-height: 108px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 16, 22, 0.96);
  backdrop-filter: blur(18px);
}

.detail-drawer-header p {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 900;
}

.detail-drawer-header h2 {
  max-width: 530px;
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.32;
}

.detail-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 1.25rem;
}

.detail-close:hover {
  border-color: var(--red);
  color: var(--red);
}

.detail-content {
  display: grid;
  gap: 12px;
  padding: 18px 24px 32px;
}

.detail-overview,
.detail-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 15, 0.76);
}

.detail-overview > p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
}

.detail-media-button {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
}

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

.detail-stat {
  min-height: 82px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 15, 0.76);
}

.detail-stat b,
.detail-stat span {
  display: block;
  overflow-wrap: anywhere;
}

.detail-stat b {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 1.05rem;
}

.detail-stat span {
  color: var(--muted);
  font-size: 0.7rem;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.detail-claim,
.detail-section-intro {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.score-rows {
  display: grid;
  gap: 9px;
}

.score-rows > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.74rem;
}

.score-rows i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(143, 171, 175, 0.16);
}

.score-rows i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.score-rows strong {
  color: var(--ink);
  text-align: right;
}

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

.evidence-item {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 15, 20, 0.86);
}

.evidence-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.evidence-item b {
  font-size: 0.8rem;
}

.evidence-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(99, 164, 255, 0.12);
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.evidence-item p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.evidence-item small {
  color: rgba(138, 161, 164, 0.78);
  font-size: 0.68rem;
}

.detail-timeline {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 16px;
}

.detail-timeline li:last-child {
  padding-bottom: 0;
}

.detail-timeline li::before {
  position: absolute;
  top: 4px;
  bottom: -4px;
  left: 91px;
  width: 1px;
  background: rgba(36, 214, 176, 0.26);
  content: "";
}

.detail-timeline li:last-child::before {
  display: none;
}

.detail-timeline li::after {
  position: absolute;
  top: 3px;
  left: 87px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.detail-timeline > li > span {
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}

.detail-timeline b {
  font-size: 0.8rem;
}

.detail-timeline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.detail-data {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  margin: 0;
  font-size: 0.78rem;
}

.detail-data dt,
.detail-data dd {
  min-height: 34px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.detail-data dt:nth-of-type(1),
.detail-data dd:nth-of-type(1) {
  border-top: 0;
}

.detail-data dt {
  color: var(--muted);
}

.detail-data dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.source-detail-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-detail-examples {
  display: grid;
  gap: 8px;
}

.source-detail-examples > div {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.source-detail-examples .tag {
  margin-right: 6px;
  color: var(--ink);
}

.source-policy {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Refined command-center visual system */

.agent-status {
  position: relative;
}

.backend-status {
  grid-column: 2;
  width: max-content;
  margin-top: 8px;
  padding: 4px 7px;
  border: 1px solid #26343a;
  border-radius: 4px;
  color: #8f9ba0;
  background: #0d1519;
  font-size: 0.65rem;
  font-weight: 760;
}

.backend-status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: #77858a;
  vertical-align: 1px;
}

.backend-status[data-state="online"] {
  border-color: rgba(85, 215, 181, 0.28);
  color: #79d8bd;
}

.backend-status[data-state="online"]::before {
  background: #55d7b5;
}

.backend-status[data-state="refreshing"],
.backend-status[data-state="connecting"] {
  color: #d6bd75;
}

.backend-status[data-state="refreshing"]::before,
.backend-status[data-state="connecting"]::before {
  background: #d6bd75;
  animation: livePulse 1.4s ease-in-out infinite;
}

.backend-status[data-state="offline"] {
  border-color: rgba(225, 105, 96, 0.24);
  color: #cf817b;
}

.backend-status[data-state="offline"]::before {
  background: #cf817b;
}

.scan-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.source-detail-button,
.original-source-link {
  text-decoration: none;
}

.original-source-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 11px;
  border: 1px solid rgba(85, 215, 181, 0.28);
  border-radius: 5px;
  color: #78d7bc;
  background: #0d181a;
  font-size: 0.72rem;
  font-weight: 760;
}

.original-source-link:hover {
  border-color: rgba(85, 215, 181, 0.54);
}
:root {
  --ink: #f2f5f3;
  --muted: #8b989f;
  --paper: #06090c;
  --panel: #0b1115;
  --line: rgba(255, 255, 255, 0.09);
  --deep: #040608;
  --teal: #55d7b5;
  --red: #f16357;
  --gold: #e9b95a;
  --blue: #75a9e8;
  --green: #72c988;
  --violet: #aa91d4;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

body {
  background: linear-gradient(180deg, #0a0e11 0, #06090c 420px, #05080a 100%);
}

.shell {
  grid-template-columns: 232px minmax(0, 1fr);
}

.sidebar {
  gap: 32px;
  padding: 28px 18px 24px;
  border-right-color: var(--line);
  background: #060a0d;
}

.brand {
  gap: 14px;
  padding: 0 6px;
}

.brand-mark {
  width: 42px;
  height: 62px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.media-watermark {
  width: 126px;
  height: 196px;
  object-fit: cover;
  opacity: 0.22;
}

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

.brand div span {
  color: #748087;
  font-size: 0.7rem;
}

.nav-list {
  gap: 3px;
}

.nav-item {
  position: relative;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: #899399;
}

.nav-item::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 2px;
  background: transparent;
  content: "";
}

.nav-item:hover,
.nav-item.active {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.045);
  color: #f5f7f6;
}

.nav-item.active::before {
  background: var(--teal);
}

.nav-icon {
  width: 22px;
  height: 22px;
  color: #627078;
}

.nav-item.active .nav-icon {
  color: var(--teal);
}

.source-stack {
  padding: 20px 6px 0;
  border-top-color: var(--line);
}

.source-stack .panel-heading {
  margin-bottom: 18px;
}

.source-stack .panel-heading h2 {
  color: #cbd2d0;
  font-size: 0.78rem;
  font-weight: 700;
}

.source-meter {
  gap: 16px;
}

.meter-row {
  grid-template-columns: 58px 1fr 48px;
  gap: 8px;
  color: #869198;
  font-size: 0.72rem;
}

.meter-row b {
  color: #dfe4e2;
  font-size: 0.72rem;
}

.meter-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.09);
}

.workspace {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 38px 40px 72px;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) minmax(430px, 510px);
  align-items: center;
  gap: 40px;
  margin-bottom: 24px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.topbar-tools {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.language-control {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.language-control label {
  color: #6f7c83;
  font-size: 0.68rem;
  font-weight: 700;
}

.language-control select {
  width: 100%;
  height: 42px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #090e12;
  color: #dfe6e3;
  font: inherit;
  font-size: 0.76rem;
  outline: none;
}

.language-control select:focus {
  border-color: rgba(85, 215, 181, 0.55);
  box-shadow: 0 0 0 3px rgba(85, 215, 181, 0.08);
}

.translation-status {
  min-height: 14px;
  overflow: hidden;
  color: #66737a;
  font-size: 0.62rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.translation-status[data-state="loading"] {
  color: #d6bd75;
}

.translation-status[data-state="ready"] {
  color: #6bcab0;
}

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

.translated-content[dir="rtl"] {
  text-align: right;
}

.translation-pending {
  opacity: 0.68;
}

.headline p {
  margin-bottom: 8px;
  color: #75838a;
  font-size: 0.68rem;
  font-weight: 800;
}

.headline h1 {
  max-width: none;
  font-size: 2.05rem;
  font-weight: 680;
  line-height: 1.12;
}

.search-wrap {
  gap: 6px;
}

.search-wrap label,
.confidence-control span {
  color: #6f7c83;
  font-size: 0.68rem;
}

.search-wrap input,
.source-network-tools input {
  height: 42px;
  border-color: var(--line);
  border-radius: 5px;
  background: #090e12;
}

.search-wrap input:focus,
.source-network-tools input:focus {
  border-color: rgba(85, 215, 181, 0.55);
  box-shadow: 0 0 0 3px rgba(85, 215, 181, 0.08);
}

.control-strip {
  grid-template-columns: auto minmax(280px, 1fr) minmax(220px, 270px);
  gap: 18px;
  margin-bottom: 26px;
}

.segmented,
.topic-tabs,
.region-filter {
  gap: 5px;
}

.segment,
.topic-tab,
.region-pill,
.media-tab {
  min-height: 34px;
  padding: 0 12px;
  border-color: transparent;
  border-radius: 5px;
  background: transparent;
  color: #849098;
  font-size: 0.74rem;
}

.segment:hover,
.topic-tab:hover,
.region-pill:hover,
.segment.active,
.topic-tab.active,
.region-pill.active,
.media-tab:hover,
.media-tab.active {
  border-color: transparent;
  background: #11191e;
  color: #f1f5f3;
}

.confidence-control {
  min-height: 42px;
  border-color: var(--line);
  border-radius: 5px;
  background: #090e12;
}

.dashboard-grid {
  grid-template-columns: minmax(500px, 1.65fr) minmax(330px, 0.85fr);
  grid-template-areas:
    "agent agent"
    "market market"
    "vertical vertical"
    "map brief"
    "media media"
    "feed intel"
    "feed pipe"
    "sources sources";
  gap: 24px;
}

.agent-panel,
.map-panel,
.brief-panel,
.feed-panel,
.intel-panel,
.pipeline-panel,
.source-network-panel,
.media-panel,
.market-panel {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.agent-panel,
.map-panel,
.brief-panel,
.intel-panel,
.pipeline-panel,
.source-network-panel,
.media-panel,
.market-panel {
  padding: 22px;
}

.feed-panel {
  padding: 22px 22px 12px;
}

.panel-heading {
  min-height: 32px;
  margin-bottom: 18px;
}

.panel-heading h2,
.source-network-heading h2,
.media-panel-heading h2,
.market-heading h2 {
  color: #edf1ef;
  font-size: 0.9rem;
  font-weight: 720;
}

.panel-heading span {
  color: #69767d;
  font-size: 0.7rem;
}

.agent-panel {
  gap: 22px;
  border-color: var(--line);
  background: #0a1115;
}

.market-panel {
  grid-area: market;
  overflow: hidden;
}

.vertical-panel {
  grid-area: vertical;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.market-heading {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.market-heading p,
.market-heading h2 {
  margin: 0;
}

.market-heading p {
  margin-bottom: 6px;
  color: #53646c;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.market-controls,
.market-tabs {
  display: flex;
  align-items: center;
}

.market-controls {
  gap: 8px;
}

.market-tabs {
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #080d11;
}

.market-tab,
.market-refresh {
  border: 0;
  color: #7f8d93;
}

.market-tab {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 3px;
  background: transparent;
  font-size: 0.72rem;
}

.market-tab:hover,
.market-tab.active {
  background: #162126;
  color: #f1f5f3;
}

.market-refresh {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0a1115;
  font-size: 1.05rem;
}

.market-refresh:hover {
  border-color: #617079;
  color: #f1f5f3;
}

.market-refresh:disabled {
  cursor: wait;
  opacity: 0.55;
}

.market-status {
  color: #738087;
  font-size: 0.7rem;
  white-space: nowrap;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.9fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lithium-spotlight {
  min-width: 0;
  min-height: 330px;
  padding: 24px 24px 20px 0;
  border-right: 1px solid var(--line);
}

.lithium-kicker {
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.lithium-name-row,
.market-quote-heading,
.market-quote-value,
.market-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lithium-name-row h3 {
  margin: 0;
  color: #f2f5f3;
  font-size: 1.02rem;
}

.market-cadence {
  padding: 3px 6px;
  border: 1px solid rgba(243, 185, 76, 0.28);
  border-radius: 3px;
  color: #d5a94f;
  font-size: 0.62rem;
  white-space: nowrap;
}

.lithium-price {
  margin: 28px 0 8px;
  color: #f4f7f5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  font-weight: 650;
  line-height: 1;
}

.lithium-unit {
  color: #637179;
  font-size: 0.7rem;
}

.market-move {
  margin-top: 14px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.market-up {
  color: #55d7b5;
}

.market-down {
  color: #f17166;
}

.market-flat {
  color: #89969b;
}

.market-source-row {
  align-items: flex-end;
  margin-top: 30px;
  color: #69777e;
  font-size: 0.66rem;
}

.market-source-row a,
.market-quote-source {
  color: #8d9aa0;
  text-decoration: none;
}

.market-source-row a:hover,
.market-quote-source:hover {
  color: #d9e0dd;
}

.market-note {
  margin: 14px 0 0;
  color: #647178;
  font-size: 0.68rem;
  line-height: 1.55;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  align-content: start;
  min-width: 0;
}

.market-quote {
  min-width: 0;
  min-height: 164px;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.market-quote:nth-child(4n) {
  border-right: 0;
}

.market-quote-heading {
  align-items: flex-start;
}

.market-quote-heading h3 {
  overflow: hidden;
  margin: 0;
  color: #dfe5e2;
  font-size: 0.76rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-quote-heading span {
  color: #55656d;
  font-size: 0.61rem;
  white-space: nowrap;
}

.market-quote-value {
  align-items: baseline;
  margin-top: 23px;
}

.market-quote-price {
  color: #f1f4f2;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 1.18rem;
  font-weight: 650;
}

.market-quote-unit {
  overflow: hidden;
  color: #596870;
  font-size: 0.57rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-quote-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 20px;
  color: #526169;
  font-size: 0.6rem;
}

.market-quote-footer > span,
.market-quote-footer > a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 250px;
  color: #66757c;
  font-size: 0.76rem;
}

.market-disclaimer {
  margin: 14px 0 0;
  color: #59676e;
  font-size: 0.64rem;
  line-height: 1.5;
}

.vertical-heading {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.vertical-heading p,
.vertical-heading h2 {
  margin: 0;
}

.vertical-heading p {
  margin-bottom: 6px;
  color: #53646c;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.vertical-heading h2 {
  color: #edf1ef;
  font-size: 0.9rem;
  font-weight: 720;
}

.vertical-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #080d11;
}

.vertical-tab {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #7f8d93;
  font-size: 0.72rem;
}

.vertical-tab:hover,
.vertical-tab.active {
  background: #162126;
  color: #f1f5f3;
}

.vertical-status {
  color: #738087;
  font-size: 0.7rem;
  white-space: nowrap;
}

.vertical-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.vertical-item {
  min-width: 0;
  min-height: 176px;
  padding: 18px 22px 16px 0;
  border-bottom: 1px solid var(--line);
}

.vertical-item:nth-child(2n) {
  padding-right: 0;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.vertical-item-meta,
.vertical-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vertical-item-meta {
  color: #66747b;
  font-size: 0.66rem;
}

.vertical-item-meta span {
  overflow: hidden;
  color: #6bcab0;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vertical-item-meta time {
  white-space: nowrap;
}

.vertical-item h3 {
  margin: 13px 0 8px;
  color: #e6ebe8;
  font-size: 0.86rem;
  line-height: 1.42;
}

.vertical-item > p {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: #738087;
  font-size: 0.72rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vertical-item-footer {
  align-items: flex-end;
  margin-top: 14px;
}

.vertical-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.vertical-item-tags .tag {
  min-height: 21px;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 0.64rem;
}

.vertical-detail-button {
  min-width: 48px;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid rgba(85, 215, 181, 0.34);
  border-radius: 4px;
  background: transparent;
  color: #6bcab0;
  font-size: 0.68rem;
  font-weight: 750;
}

.vertical-detail-button:hover {
  border-color: #6bcab0;
  color: #eef4f1;
}

.vertical-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 180px;
  color: #66757c;
  font-size: 0.76rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 4px rgba(85, 215, 181, 0.08);
}

.agent-status h2 {
  font-size: 0.92rem;
}

.agent-status p {
  color: #78858c;
  font-size: 0.76rem;
}

.agent-metrics {
  gap: 0;
}

.agent-metric {
  min-height: 68px;
  padding: 6px 14px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.agent-metric b {
  font-size: 1.25rem;
}

.agent-controls {
  gap: 7px;
}

.scan-button,
.auto-toggle {
  min-height: 36px;
  border-color: var(--line);
  border-radius: 5px;
  background: #10191d;
}

.scan-button {
  color: var(--teal);
}

.agent-queue {
  gap: 0;
  border-top: 1px solid var(--line);
}

.agent-task {
  min-height: 76px;
  padding: 15px 14px 4px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.agent-task:first-child {
  border-left: 0;
}

.agent-task span {
  border-radius: 4px;
  background: transparent;
}

.world-stage {
  aspect-ratio: 16 / 9.5;
  width: calc(100% + 44px);
  margin-inline: -22px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(40, 91, 128, 0.16), transparent 44%),
    #020507;
}

.map-panel {
  overflow: hidden;
}

.globe-controls,
.globe-hud {
  border-color: var(--line);
  border-radius: 4px;
  background: rgba(6, 11, 14, 0.88);
  backdrop-filter: none;
}

.globe-controls button {
  border-color: transparent;
  border-radius: 3px;
  background: transparent;
}

.layer-toggles {
  gap: 5px;
}

.layer-toggle {
  min-height: 36px;
  border-color: transparent;
  border-radius: 4px;
  background: #0e1519;
  font-size: 0.72rem;
}

.layer-toggle.active {
  border-color: transparent;
  background: #131d22;
}

.signal-cards {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-card {
  min-height: 96px;
  padding: 16px 12px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.signal-card:nth-child(odd) {
  border-left: 0;
}

.signal-card small,
.tag,
.risk-tag {
  border: 0;
  border-radius: 4px;
  background: #11191e;
}

.signal-card small {
  color: #aeb7b4;
}

.selected-event {
  margin-top: 18px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.selected-event b {
  color: #dfe7e4;
}

.source-network-heading,
.media-panel-heading {
  margin-bottom: 18px;
}

.source-network-heading p,
.media-panel-heading p {
  color: #66747b;
}

.source-network-summary {
  gap: 2px;
  margin-bottom: 18px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.source-network-summary > span {
  min-height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.source-registry {
  gap: 0 20px;
}

.source-card {
  min-height: 174px;
  padding: 18px 8px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.source-card::before {
  inset: 0 auto auto 8px;
  width: 30px;
  height: 2px;
}

.source-card > p {
  color: #7c898f;
}

.source-examples .tag,
.media-card-meta .tag {
  min-height: 20px;
  background: transparent;
  color: #79868c;
}

.source-detail-button,
.detail-button,
.news-detail-button,
.claim-detail-button,
.selected-media-button,
.news-media-button,
.detail-media-button {
  border-color: var(--line);
  border-radius: 4px;
  background: transparent;
}

.media-tabs {
  gap: 2px;
}

.media-status {
  border: 0;
  border-radius: 4px;
  background: rgba(241, 99, 87, 0.08);
}

.media-feed {
  gap: 12px;
}

.media-card {
  border-color: var(--line);
  border-radius: 5px;
  background: #080e12;
}

.media-card-preview {
  min-height: 148px;
  border-bottom-color: var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #070d11;
  background-size: 28px 28px;
}

.media-card-grid {
  background: transparent;
}

.media-card-content {
  padding: 16px;
}

.media-card-content h3 {
  font-size: 0.92rem;
}

.media-open-button {
  border-color: var(--line);
  border-radius: 4px;
  background: transparent;
}

.news-feed,
.claim-list {
  gap: 0;
}

.news-card {
  padding: 18px 0;
}

.news-card h3 {
  font-size: 0.96rem;
  font-weight: 680;
}

.news-card p {
  color: #849097;
  font-size: 0.82rem;
}

.cred {
  border: 0;
  border-radius: 4px;
  background: #111a1f;
}

.claim-item {
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.claim-item:first-child {
  border-top: 0;
}

.pipeline {
  gap: 0;
}

.pipeline li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.pipeline li:first-child {
  border-top: 0;
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .source-stack {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "agent"
      "market"
      "vertical"
      "map"
      "brief"
      "media"
      "feed"
      "intel"
      "pipe"
      "sources";
  }

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

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

  .market-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .market-quote:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .market-quote:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 22px 16px 48px;
  }

  .topbar,
  .control-strip {
    grid-template-columns: 1fr;
  }

  .topbar-tools {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
  }

  .headline h1 {
    font-size: 1.35rem;
  }

  .nav-list,
  .signal-cards,
  .agent-panel,
  .agent-metrics,
  .agent-queue,
  .layer-toggles,
  .source-registry,
  .detail-stats,
  .source-detail-stats {
    grid-template-columns: 1fr;
  }

  .sidebar {
    gap: 20px;
    padding: 18px 16px;
  }

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

  .nav-item {
    justify-content: center;
    min-height: 42px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

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

  .control-strip {
    gap: 10px;
    margin-bottom: 18px;
  }

  .dashboard-grid {
    gap: 16px;
    grid-template-areas:
      "map"
      "brief"
      "market"
      "vertical"
      "agent"
      "media"
      "feed"
      "intel"
      "pipe"
      "sources";
  }

  .agent-panel,
  .map-panel,
  .brief-panel,
  .intel-panel,
  .pipeline-panel,
    .source-network-panel,
    .media-panel,
    .market-panel,
    .vertical-panel,
    .feed-panel {
      padding: 17px;
    }

  .market-heading {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .vertical-heading {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .vertical-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vertical-tab {
    min-width: 0;
    padding: 0 5px;
  }

  .vertical-feed {
    grid-template-columns: 1fr;
  }

  .vertical-item,
  .vertical-item:nth-child(2n) {
    min-height: 0;
    padding: 16px 0;
    border-left: 0;
  }

  .world-stage {
    width: calc(100% + 34px);
    margin-inline: -17px;
  }

  .globe-controls {
    left: 8px;
    top: 8px;
    grid-template-columns: 30px 44px 30px 30px;
    gap: 4px;
    padding: 4px;
  }

  .globe-controls button {
    width: 30px;
    height: 30px;
  }

  .globe-controls span {
    height: 30px;
    font-size: 0.7rem;
  }

  .globe-hud {
    right: 8px;
    bottom: 8px;
    min-width: 116px;
    padding: 7px 9px;
  }

  .globe-hud span {
    font-size: 0.56rem;
  }

  .globe-hud b {
    margin-top: 2px;
    font-size: 1.35rem;
  }

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

  .market-controls {
    justify-content: space-between;
  }

  .market-status {
    white-space: normal;
  }

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

  .lithium-spotlight {
    min-height: 265px;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .market-quote,
  .market-quote:nth-child(3n),
  .market-quote:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .market-quote:nth-child(2n) {
    border-right: 0;
  }

  .agent-metric,
  .agent-task {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .agent-metric:first-child,
  .agent-task:first-child {
    border-top: 0;
  }

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

  .agent-task:nth-child(2) {
    border-top: 0;
  }

  .signal-card,
  .signal-card:nth-child(odd) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .signal-card:first-child {
    border-top: 0;
  }

  .source-network-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .media-panel-heading {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .media-tabs {
    flex-wrap: wrap;
  }

  .media-status {
    width: fit-content;
  }

  .media-feed {
    grid-template-columns: 1fr;
  }

  .source-network-tools {
    grid-template-columns: 1fr;
  }

  .source-card {
    min-height: 184px;
  }

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

  .news-actions {
    grid-template-columns: auto auto;
    align-items: center;
    justify-items: start;
    width: auto;
  }

  .cred {
    width: 48px;
    height: 48px;
  }

  .detail-drawer {
    width: 100vw;
  }

  .media-viewer {
    width: 100vw;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .media-viewer-body {
    grid-template-columns: 1fr;
  }

  .media-stage {
    min-height: 430px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .media-stage-location span {
    font-size: 3.4rem;
  }

  .media-transcript {
    max-height: none;
  }

  .detail-drawer-header {
    min-height: 96px;
    padding: 18px 16px 14px;
  }

  .detail-drawer-header h2 {
    font-size: 1rem;
  }

  .detail-content {
    padding: 14px 16px 24px;
  }

  .detail-timeline li {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .detail-timeline li::before {
    left: 77px;
  }

  .detail-timeline li::after {
    left: 73px;
  }
}

@media (max-width: 460px) {
  .market-tabs {
    flex: 1;
  }

  .market-tab {
    flex: 1;
    min-width: 0;
    padding: 0 6px;
  }

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

  .market-quote,
  .market-quote:nth-child(2n),
  .market-quote:nth-child(3n),
  .market-quote:nth-child(4n) {
    border-right: 0;
  }
}
