/* ==========================================================================
   CONCORD DED // TV Broadcast Banner & Full Intelligence Pod Suite
   Preserves Sacred Geometry Color Palette:
   --primary: #325394;
   --secondary: #57C4DD;
   --accent: #EA428B;
   --dark-bg: #101C2F;
   --surface-blue: #243871;
   --surface-dark: #1A283E;
   --text-light: #F1F1F1;
   --text-dim: #B1E8F2;
   ========================================================================== */

/* Outer Section Wrapper in index.html */
.arch-banner-section {
  position: relative;
  width: 100%;
  background: #243871;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   1. TV Broadcast Banner (Lower-Third Chyron)
   ========================================================================== */
.concord-tv-banner {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(90deg, #101C2F 0%, #1A283E 40%, #243871 100%);
  border-top: 1px solid rgba(87, 196, 221, 0.35);
  border-bottom: 1px solid rgba(87, 196, 221, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  box-shadow: 0 4px 18px rgba(16, 28, 47, 0.6);
  font-family: 'Inter', sans-serif;
  color: #F1F1F1;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.concord-tv-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    rgba(255, 255, 255, 0.03) 50%, 
    rgba(0, 0, 0, 0.15) 50%
  );
  background-size: 100% 3px;
  pointer-events: none;
}

.tv-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-badge--live {
  background: rgba(234, 66, 139, 0.25);
  border: 1px solid #EA428B;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(234, 66, 139, 0.45);
}

.tv-badge--history {
  background: rgba(87, 196, 221, 0.2);
  border: 1px solid #57C4DD;
  color: #B1E8F2;
  box-shadow: 0 0 12px rgba(87, 196, 221, 0.35);
}

.tv-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #EA428B;
  box-shadow: 0 0 8px #EA428B;
  animation: tv-pulse 1s infinite alternate ease-in-out;
}

.tv-badge--history .tv-rec-dot {
  background: #57C4DD;
  box-shadow: 0 0 8px #57C4DD;
}

@keyframes tv-pulse {
  0% { opacity: 0.3; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); }
}

.tv-channel-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #57C4DD;
  font-weight: 600;
  text-transform: uppercase;
  border-left: 1px solid rgba(87, 196, 221, 0.35);
  padding-left: 10px;
}

.tv-banner-center {
  flex: 1;
  margin: 0 1.25rem;
  overflow: hidden;
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.tv-headline-wrapper {
  width: 100%;
  position: relative;
}

.tv-headline-content {
  font-size: 0.85rem;
  font-weight: 500;
  color: #F1F1F1;
  white-space: nowrap;
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tv-headline-content.transitioning {
  opacity: 0;
  transform: translateY(-8px);
}

.tv-highlight {
  color: #57C4DD;
  font-weight: 600;
}

.tv-alert-tag {
  color: #EA428B;
  font-weight: 700;
  margin-right: 6px;
}

.tv-time-tag {
  color: #B1E8F2;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-right: 6px;
}

.tv-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tv-btn {
  background: rgba(36, 56, 113, 0.5);
  border: 1px solid rgba(87, 196, 221, 0.4);
  color: #F1F1F1;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  font-family: inherit;
}

.tv-btn:hover {
  background: #325394;
  border-color: #57C4DD;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(87, 196, 221, 0.4);
}

.tv-audio-btn {
  padding: 5px 8px;
}

.tv-expand-btn {
  background: rgba(87, 196, 221, 0.15);
  border-color: #57C4DD;
  color: #B1E8F2;
}

.tv-expand-btn:hover {
  background: #57C4DD;
  color: #101C2F;
}

/* ==========================================================================
   2. Full Intelligence Pod Suite (Modal & Tabs)
   ========================================================================== */
.concord-pod-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(16, 28, 47, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.concord-pod-window {
  width: 100%;
  max-width: 1450px;
  height: 94vh;
  background: #101C2F;
  border: 1px solid #57C4DD;
  box-shadow: 0 0 40px rgba(87, 196, 221, 0.25), inset 0 0 25px rgba(16, 28, 47, 0.9);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  color: #F1F1F1;
}

/* Perspective Themes */
.concord-pod-window.mode-concord {
  --theme-accent: #57C4DD;
  --theme-alert: #EA428B;
  --theme-header: #243871;
}

.concord-pod-window.mode-scope {
  --theme-accent: #B1E8F2;
  --theme-alert: #57C4DD;
  --theme-header: #1E376E;
}

.concord-pod-window.mode-guristas {
  --theme-accent: #EA428B;
  --theme-alert: #39FFB2;
  --theme-header: #2E1538;
}

/* Header */
.pod-header {
  background: linear-gradient(90deg, #101C2F 0%, #1A283E 50%, var(--theme-header, #243871) 100%);
  border-bottom: 1px solid rgba(87, 196, 221, 0.35);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  flex-shrink: 0;
}

.pod-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.pod-led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--theme-accent, #57C4DD);
  box-shadow: 0 0 10px var(--theme-accent, #57C4DD);
  animation: tv-pulse 1.2s infinite alternate;
  flex-shrink: 0;
}

.pod-title-block {
  min-width: 0;
}

.pod-title-block h2 {
  font-family: 'El Messiri', serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: #F1F1F1;
  letter-spacing: 0.08em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pod-title-block p {
  font-size: clamp(0.6rem, 1.3vw, 0.72rem);
  color: var(--theme-accent, #57C4DD);
  letter-spacing: 0.06em;
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Short/Long Label Utilities */
.pod-mode-btn-short { display: none; }
.pod-mode-btn-long { display: inline; }
.pod-audio-short { display: none; }
.pod-audio-long { display: inline; }
.tab-label-short { display: none; }
.tab-label-full { display: inline; }
.pod-filter-label-short { display: none; }
.pod-filter-label-full { display: inline; }
.sec-label-short { display: none; }
.sec-label-full { display: inline; }
.tv-btn-text-short { display: none; }
.tv-btn-text-full { display: inline; }

.pod-header-controls,
.pod-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 1 auto;
}

.pod-modes {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.pod-modes-label {
  font-size: 0.68rem;
  color: #B1E8F2;
  font-weight: 600;
  text-transform: uppercase;
}

.pod-mode-btn {
  background: transparent;
  border: 1px solid rgba(87, 196, 221, 0.35);
  color: #B1E8F2;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pod-mode-btn:hover, .pod-mode-btn.active {
  background: var(--theme-accent, #57C4DD);
  color: #101C2F;
  border-color: var(--theme-accent, #57C4DD);
  box-shadow: 0 0 10px rgba(87, 196, 221, 0.4);
}

.pod-close-btn {
  background: transparent;
  border: 1px solid rgba(234, 66, 139, 0.4);
  color: #EA428B;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.pod-close-btn:hover {
  background: #EA428B;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(234, 66, 139, 0.5);
}

/* Metrics Bar */
.pod-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #111B26;
  border-bottom: 1px solid rgba(87, 196, 221, 0.2);
  flex-shrink: 0;
}

.pod-metric-box {
  padding: 8px 14px;
  border-right: 1px solid rgba(87, 196, 221, 0.15);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.pod-metric-box:last-child {
  border-right: none;
}

.pod-metric-label {
  font-size: clamp(0.58rem, 1.1vw, 0.68rem);
  color: var(--theme-accent, #57C4DD);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pod-metric-val {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: #F1F1F1;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pod-metric-val.accent {
  color: #EA428B;
}

.pod-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.pod-progress-fill {
  height: 100%;
  background: var(--theme-accent, #57C4DD);
  box-shadow: 0 0 6px var(--theme-accent, #57C4DD);
  transition: width 0.4s ease;
}

/* Tabs Bar */
.pod-tabs-bar {
  display: flex;
  background: #1A283E;
  border-bottom: 1px solid rgba(87, 196, 221, 0.25);
  padding: 0 12px;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}

.pod-tabs-bar::-webkit-scrollbar {
  display: none;
}

.pod-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #B1E8F2;
  padding: 9px 12px;
  font-size: clamp(0.68rem, 1.4vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.pod-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(87, 196, 221, 0.08);
}

.pod-tab-btn.active {
  color: #FFFFFF;
  border-bottom-color: var(--theme-accent, #57C4DD);
  background: rgba(87, 196, 221, 0.12);
}

/* Sub-Filters Bar (2-Row Tiered Filter: Security Sectors + Telemetry Source) */
.pod-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(16, 28, 47, 0.78);
  border-bottom: 1px dashed rgba(87, 196, 221, 0.25);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.pod-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.pod-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.pod-filter-label {
  color: #B1E8F2;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.68rem;
  white-space: nowrap;
}

.pod-chip-btn {
  background: transparent;
  border: 1px solid rgba(87, 196, 221, 0.3);
  color: #B1E8F2;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}

.pod-chip-btn:hover, .pod-chip-btn.active {
  background: var(--theme-accent, #57C4DD);
  color: #101C2F;
  border-color: var(--theme-accent, #57C4DD);
  font-weight: 600;
}

/* Security Dots */
.sec-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sec-dot-high {
  background-color: #57C4DD;
  box-shadow: 0 0 6px #57C4DD;
}

.sec-dot-low {
  background-color: #E5A93C;
  box-shadow: 0 0 6px #E5A93C;
}

.sec-dot-null {
  background-color: #EA428B;
  box-shadow: 0 0 6px #EA428B;
}

/* Specific Security Tier Button Color Themes */
.pod-sec-btn.sec-high:hover,
.pod-sec-btn.sec-high.active {
  background: rgba(87, 196, 221, 0.22);
  border-color: #57C4DD;
  color: #B1E8F2;
  box-shadow: 0 0 8px rgba(87, 196, 221, 0.35);
  font-weight: 600;
}

.pod-sec-btn.sec-low:hover,
.pod-sec-btn.sec-low.active {
  background: rgba(229, 169, 60, 0.22);
  border-color: #E5A93C;
  color: #FFF0D4;
  box-shadow: 0 0 8px rgba(229, 169, 60, 0.35);
  font-weight: 600;
}

.pod-sec-btn.sec-null:hover,
.pod-sec-btn.sec-null.active {
  background: rgba(234, 66, 139, 0.22);
  border-color: #EA428B;
  color: #FFE5F0;
  box-shadow: 0 0 8px rgba(234, 66, 139, 0.35);
  font-weight: 600;
}

.pod-filter-status {
  font-size: 0.68rem;
  color: #B1E8F2;
  white-space: nowrap;
  margin-left: auto;
}

/* Pod Main View Container */
.pod-view-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pod-tab-pane {
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pod-tab-pane.active {
  display: flex;
}

/* View 1: 3-Column Tactical Command Grid */
.pod-body-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.95fr;
  overflow: hidden;
  background: #101C2F;
}

.pod-col {
  border-right: 1px solid rgba(87, 196, 221, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pod-col:last-child {
  border-right: none;
}

.pod-col-header {
  background: #1A283E;
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--theme-accent, #57C4DD);
  border-bottom: 1px solid rgba(87, 196, 221, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pod-col-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Incident Cards */
.pod-incident-card {
  background: rgba(36, 56, 113, 0.25);
  border: 1px solid rgba(87, 196, 221, 0.25);
  border-left: 3px solid #57C4DD;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pod-incident-card:hover {
  transform: translateX(3px);
  background: rgba(36, 56, 113, 0.45);
}

.pod-incident-card.sev-OMEGA {
  border-left-color: #EA428B;
  background: rgba(234, 66, 139, 0.08);
}

.pod-incident-card.sev-OMEGA:hover {
  background: rgba(234, 66, 139, 0.15);
}

.pod-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 0.72rem;
}

.pod-badge {
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 2px;
  text-transform: uppercase;
}

.pod-badge-omega {
  background: rgba(234, 66, 139, 0.25);
  color: #EA428B;
  border: 1px solid #EA428B;
}

.pod-badge-beta {
  background: rgba(87, 196, 221, 0.2);
  color: #57C4DD;
  border: 1px solid #57C4DD;
}

.pod-badge-alpha {
  background: rgba(177, 232, 242, 0.1);
  color: #B1E8F2;
  border: 1px solid rgba(177, 232, 242, 0.3);
}

.pod-badge-source {
  border: 1px solid rgba(87, 196, 221, 0.35);
  color: #B1E8F2;
  font-size: 0.65rem;
}

.pod-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.35;
}

.pod-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.pod-subpoena-trigger {
  background: transparent;
  border: 1px solid rgba(87, 196, 221, 0.4);
  color: #57C4DD;
  padding: 3px 8px;
  font-size: 0.68rem;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

.pod-subpoena-trigger:hover {
  background: #57C4DD;
  color: #101C2F;
}

/* Radar Center Column */
.pod-radar-wrapper {
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 10px;
}

.pod-radar-canvas {
  width: 100%;
  height: 330px;
  background: rgba(17, 27, 38, 0.85);
  border: 1px solid rgba(87, 196, 221, 0.35);
  border-radius: 6px;
}

.pod-radar-stats {
  display: flex;
  justify-content: space-around;
  width: 100%;
  font-size: 0.7rem;
  color: #B1E8F2;
  padding: 6px 0;
  border-top: 1px dashed rgba(87, 196, 221, 0.25);
}

.pod-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pod-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-gallente { background: #57C4DD; box-shadow: 0 0 6px #57C4DD; }
.dot-border   { background: #E5A93C; box-shadow: 0 0 6px #E5A93C; }
.dot-guristas { background: #EA428B; box-shadow: 0 0 6px #EA428B; }

/* Wires / Intelligence Column */
.pod-wire-card {
  background: rgba(26, 40, 62, 0.6);
  border: 1px solid rgba(87, 196, 221, 0.25);
  border-left: 3px solid var(--theme-accent, #57C4DD);
  padding: 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #F1F1F1;
}

.pod-wire-meta {
  font-size: 0.68rem;
  color: #B1E8F2;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

/* View 2: Full Telemetry Table */
.pod-full-table-view {
  width: 100%;
  height: 100%;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pod-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.pod-table th {
  background: #1A283E;
  color: var(--theme-accent, #57C4DD);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(87, 196, 221, 0.3);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.pod-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(87, 196, 221, 0.15);
  color: #F1F1F1;
}

.pod-table tr:hover {
  background: rgba(36, 56, 113, 0.25);
}

/* View 5: Market Order Book (ESI) View */
#pane-market {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  flex-direction: column;
}

#pane-market.active {
  display: flex;
}

.pod-market-header-summary {
  padding: 12px 16px;
  background: rgba(16, 28, 47, 0.9);
  border-bottom: 1px solid rgba(87, 196, 221, 0.25);
  flex-shrink: 0;
}

.mkt-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mkt-history-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #57C4DD;
  background: rgba(87, 196, 221, 0.12);
  border: 1px solid rgba(87, 196, 221, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mkt-clock-icon {
  font-size: 0.85rem;
}

.pod-market-grid {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 16px;
  padding: 14px 16px;
  align-items: start;
}

.pod-market-box {
  background: rgba(26, 40, 62, 0.65);
  border: 1px solid rgba(87, 196, 221, 0.3);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  min-width: 0;
}

.pod-market-box-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.pod-market-box h3 {
  font-family: 'El Messiri', serif;
  font-size: 1.05rem;
  color: var(--theme-accent, #57C4DD);
  margin: 0;
}

.mkt-timeline-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding: 6px 0;
  border-top: 1px dashed rgba(87, 196, 221, 0.15);
  border-bottom: 1px dashed rgba(87, 196, 221, 0.15);
}

.mkt-timeline-btn {
  background: rgba(36, 56, 113, 0.35);
  border: 1px solid rgba(87, 196, 221, 0.3);
  color: #B1E8F2;
  padding: 4px 9px;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.mkt-timeline-btn:hover,
.mkt-timeline-btn.active {
  background: #57C4DD;
  color: #101C2F;
  border-color: #57C4DD;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(87, 196, 221, 0.35);
}

.pod-market-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: calc(100vh - 360px);
  min-height: 250px;
  padding-right: 6px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #57C4DD rgba(16, 28, 47, 0.8);
}

#pane-market::-webkit-scrollbar,
.pod-market-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

#pane-market::-webkit-scrollbar-track,
.pod-market-list::-webkit-scrollbar-track {
  background: rgba(16, 28, 47, 0.85);
  border-radius: 3px;
}

#pane-market::-webkit-scrollbar-thumb,
.pod-market-list::-webkit-scrollbar-thumb {
  background: #57C4DD;
  border-radius: 3px;
}

.mkt-order-card {
  background: rgba(16, 28, 47, 0.82);
  border: 1px solid rgba(87, 196, 221, 0.25);
  border-left: 3px solid #57C4DD;
  padding: 12px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.mkt-order-card:hover {
  background: rgba(26, 40, 62, 0.85);
  border-color: rgba(87, 196, 221, 0.6);
  box-shadow: 0 0 10px rgba(87, 196, 221, 0.15);
}

.mkt-order-card.period-two_days_ago {
  border-left-color: #EA428B;
}

.mkt-order-card.period-yesterday {
  border-left-color: #E5A93C;
}

.mkt-order-card.period-today {
  border-left-color: #57C4DD;
}

.mkt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.mkt-card-period-tag {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  display: inline-block;
}

.mkt-card-period-tag.tag-today {
  background: rgba(87, 196, 221, 0.2);
  color: #57C4DD;
  border: 1px solid rgba(87, 196, 221, 0.4);
}

.mkt-card-period-tag.tag-yesterday {
  background: rgba(229, 169, 60, 0.2);
  color: #E5A93C;
  border: 1px solid rgba(229, 169, 60, 0.4);
}

.mkt-card-period-tag.tag-two_days_ago {
  background: rgba(234, 66, 139, 0.2);
  color: #EA428B;
  border: 1px solid rgba(234, 66, 139, 0.4);
}

/* Subpoena Inspector Modal (Inner Layer) */
.pod-subpoena-modal {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(16, 28, 47, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 100;
  backdrop-filter: blur(5px);
}

.pod-subpoena-paper {
  width: 100%;
  max-width: 850px;
  max-height: 85%;
  background: #111B26;
  border: 2px solid var(--theme-accent, #57C4DD);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.pod-subpoena-header {
  background: #1A283E;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(87, 196, 221, 0.3);
}

.pod-subpoena-content {
  padding: 16px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #B1E8F2;
  white-space: pre-wrap;
}

.pod-subpoena-footer {
  padding: 10px 16px;
  background: #1A283E;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(87, 196, 221, 0.3);
}

/* ==========================================================================
   Comprehensive Responsive System for Intelligence Pod & Banner
   ========================================================================== */

/* 1. Large Tablets & Compact Desktops (<= 1100px) */
@media (max-width: 1100px) {
  .concord-pod-window {
    height: 96vh;
    max-width: 98vw;
  }

  .pod-body-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
    flex: 1;
  }

  .pod-col {
    border-right: none;
    border-bottom: 1px solid rgba(87, 196, 221, 0.2);
    min-height: 380px;
  }

  .pod-col:last-child {
    border-bottom: none;
  }

  .pod-market-grid {
    grid-template-columns: 1fr;
    padding: 12px 10px;
  }

  .pod-market-list {
    max-height: none;
    overflow-y: visible;
  }
}

/* 2. Tablets & Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
  .concord-pod-modal {
    padding: 8px;
  }

  .concord-pod-window {
    height: 98vh;
    border-radius: 6px;
  }

  /* Header transforms to a 2-row grid: Row 1 has Title + Close Button, Row 2 has Controls */
  .pod-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas: 
      "title close"
      "controls controls";
    gap: 8px 12px;
    padding: 10px 14px;
  }

  .pod-header-left {
    grid-area: title;
    min-width: 0;
  }

  .pod-close-btn {
    grid-area: close;
    align-self: center;
  }

  .pod-header-controls,
  .pod-header-right {
    grid-area: controls;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px dashed rgba(87, 196, 221, 0.2);
    padding-top: 8px;
  }

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

  .pod-metric-box:nth-child(1),
  .pod-metric-box:nth-child(2) {
    border-bottom: 1px solid rgba(87, 196, 221, 0.15);
  }

  .pod-metric-box:nth-child(2) {
    border-right: none;
  }

  .pod-metric-box {
    padding: 8px 12px;
  }

  .pod-filter-status {
    font-size: 0.65rem;
    width: 100%;
    margin-left: 0;
    padding-top: 4px;
    border-top: 1px dotted rgba(87, 196, 221, 0.2);
  }

  .pod-filter-bar {
    padding: 6px 12px;
  }
}

/* 3. Small Tablets & Responsive Ticker (<= 768px) */
@media (max-width: 768px) {
  /* TV Broadcast Banner Adjustments */
  .concord-tv-banner {
    padding: 0 0.75rem;
    min-height: 44px;
  }

  .tv-channel-tag {
    display: none;
  }

  .tv-banner-center {
    margin: 0 0.5rem;
  }

  /* Navigation Tabs: switch to concise labels to fit mobile viewports */
  .tab-label-full {
    display: none;
  }

  .tab-label-short {
    display: inline;
  }

  /* Security Sector Selector: switch to short labels */
  .sec-label-full {
    display: none;
  }

  .sec-label-short {
    display: inline;
  }

  .pod-tabs-bar {
    padding: 0 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(87, 196, 221, 0.3) transparent;
  }

  .pod-tabs-bar::-webkit-scrollbar {
    display: block;
    height: 3px;
  }

  .pod-tabs-bar::-webkit-scrollbar-thumb {
    background: rgba(87, 196, 221, 0.4);
    border-radius: 2px;
  }

  .pod-tab-btn {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .pod-filter-bar {
    padding: 6px 10px;
    gap: 6px;
  }

  .pod-filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .pod-filter-group {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 3px;
  }
}

/* 4. Mobile Devices (<= 600px) */
@media (max-width: 600px) {
  .concord-pod-modal {
    padding: 0;
  }

  .concord-pod-window {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .pod-header {
    padding: 8px 10px;
  }

  .pod-title-block h2 {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }

  .pod-title-block p {
    font-size: 0.58rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
  }

  /* Shorten TV and Pod button text */
  .tv-btn-text-full {
    display: none;
  }

  .tv-btn-text-short {
    display: inline;
  }

  .pod-mode-btn-long {
    display: none;
  }

  .pod-mode-btn-short {
    display: inline;
  }

  .pod-audio-long {
    display: none;
  }

  .pod-audio-short {
    display: inline;
  }

  .pod-filter-label-full {
    display: none;
  }

  .pod-filter-label-short {
    display: inline;
  }

  .pod-modes-label {
    display: none;
  }

  .pod-modes {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }

  .pod-close-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  .pod-mode-btn {
    padding: 4px 8px;
    font-size: 0.65rem;
  }

  .pod-metric-box {
    padding: 6px 10px;
  }

  .pod-metric-label {
    font-size: 0.6rem;
  }

  .pod-metric-val {
    font-size: 1.15rem;
  }

  .pod-tab-btn {
    padding: 8px 8px;
    font-size: 0.66rem;
  }

  .pod-chip-btn {
    padding: 2px 6px;
    font-size: 0.65rem;
  }

  .pod-col {
    min-height: 320px;
  }

  .pod-radar-canvas {
    height: 250px;
  }

  .pod-radar-stats {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
  }

  .pod-subpoena-paper {
    width: 96%;
    max-height: 92%;
    border-radius: 4px;
  }

  .pod-subpoena-header {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .pod-subpoena-content {
    padding: 10px;
    font-size: 0.68rem;
  }

  .pod-subpoena-footer {
    padding: 8px 10px;
    flex-direction: column;
    gap: 6px;
  }

  .pod-subpoena-footer .tv-btn {
    width: 100%;
    justify-content: center;
  }
}

/* 5. Extra-Small Mobiles (<= 440px) */
@media (max-width: 440px) {
  .pod-metrics-bar {
    grid-template-columns: 1fr;
  }

  .pod-metric-box {
    border-right: none;
    border-bottom: 1px solid rgba(87, 196, 221, 0.15);
  }

  .pod-metric-box:last-child {
    border-bottom: none;
  }

  .pod-header-controls,
  .pod-header-right {
    gap: 4px;
  }

  .pod-mode-btn {
    padding: 3px 6px;
    font-size: 0.62rem;
  }
}
