/* ==========================================================================
   Mission Telemetry & Vector Deck (Light Precision Edition)
   Tufte-inspired high-density tactical expedition control deck
   ========================================================================== */

:root {
  --tk-bg: #f8f9ff;
  --tk-surface: #ffffff;
  --tk-surface-alt: #f1f5f9;
  --tk-surface-accent: #f8fafc;
  --tk-border: #e2e8f0;
  --tk-border-focus: #cbd5e1;
  --tk-border-dark: #94a3b8;
  
  --tk-ink-primary: #0f172a;
  --tk-ink-secondary: #475569;
  --tk-ink-tertiary: #94a3b8;
  --tk-ink-faint: #cbd5e1;

  --tk-emerald: #10b981;
  --tk-emerald-bg: #ecfdf5;
  --tk-emerald-border: #a7f3d0;
  
  --tk-amber: #f59e0b;
  --tk-amber-bg: #fffbeb;
  --tk-amber-border: #fde68a;
  
  --tk-gold: #d97706;
  --tk-gold-bg: #fef3c7;
  --tk-gold-border: #fcd34d;
  
  --tk-cyan: #0284c7;
  --tk-cyan-bg: #f0f9ff;
  --tk-cyan-border: #bae6fd;
  
  --tk-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tk-font-mono: 'JetBrains Mono', 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Base Deck Wrapper */
.mission-deck-viewport {
  max-width: 1360px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
  font-family: var(--tk-font-sans);
  color: var(--tk-ink-primary);
  background-color: transparent;
  line-height: 1.45;
  box-sizing: border-box;
}

.mission-deck-viewport *,
.mission-deck-viewport *::before,
.mission-deck-viewport *::after {
  box-sizing: border-box;
}

/* Tactical Monospace */
.tk-mono {
  font-family: var(--tk-font-mono);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   1. Telemetry Top Header
   ========================================================================== */
.deck-topbar {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.deck-topbar-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tk-border);
}

.deck-identity-node {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-sys-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--tk-emerald-bg);
  border: 1px solid var(--tk-emerald-border);
  color: #065f46;
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.deck-pulse-emerald {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tk-emerald);
  box-shadow: 0 0 6px var(--tk-emerald);
  animation: tactical-pulse 2s infinite ease-in-out;
}

.deck-brand-title {
  font-family: var(--tk-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  letter-spacing: 0.06em;
}

.deck-base-coords {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--tk-font-mono);
  font-size: 12px;
  color: var(--tk-ink-secondary);
}

.deck-coord-pill {
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--tk-ink-primary);
  font-weight: 600;
}

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

.deck-clock-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.deck-clock-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-ink-tertiary);
  text-transform: uppercase;
}

.deck-clock-val {
  font-weight: 600;
  color: var(--tk-ink-primary);
  min-width: 72px;
}

/* Compact Mini Clocks (Right-Aligned in Fleet Switcher Bar) */
.fleet-switcher-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.deck-clocks-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.deck-clocks-mini .deck-clock-item {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.deck-clocks-mini .deck-clock-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--tk-ink-tertiary);
  text-transform: uppercase;
}

.deck-clocks-mini .deck-clock-val {
  font-weight: 600;
  color: var(--tk-ink-primary);
  font-size: 11px;
  min-width: 58px;
}

.deck-clocks-mini .deck-clock-sep {
  color: var(--tk-border-dark);
  font-size: 10px;
}

/* Secondary Row: Tabs & Action */
.deck-topbar-secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
}

.deck-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deck-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--tk-ink-secondary);
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
}

.deck-tab-btn:hover {
  background: var(--tk-surface-alt);
  color: var(--tk-ink-primary);
  border-color: var(--tk-border);
}

.deck-tab-btn.active {
  background: var(--tk-cyan-bg);
  border-color: var(--tk-cyan-border);
  color: var(--tk-cyan);
  font-weight: 700;
}

.deck-dossier-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  color: var(--tk-ink-primary);
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.deck-dossier-link:hover {
  background: var(--tk-ink-primary);
  color: #ffffff;
  border-color: var(--tk-ink-primary);
  text-decoration: none;
}

/* Mission Metrics Strip */
.deck-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.deck-metric-box {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.deck-metric-tag {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tk-ink-tertiary);
}

.deck-metric-val {
  font-family: var(--tk-font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--tk-ink-primary);
}

.deck-metric-sub {
  font-size: 11px;
  color: var(--tk-ink-secondary);
}

/* ==========================================================================
   2. Topological Vector Grid (Waypoints Rail)
   ========================================================================== */
.deck-section {
  margin-bottom: 24px;
}

.deck-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--tk-border);
  padding-bottom: 6px;
}

.deck-section-title {
  font-family: var(--tk-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tk-ink-primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-section-meta {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  color: var(--tk-ink-tertiary);
}

.waypoints-rail-container {
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}

.waypoints-rail-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

.waypoints-rail {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 720px;
}

.waypoint-card {
  flex: 1 1 0;
  min-width: 156px;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.waypoint-card:hover {
  border-color: var(--tk-border-dark);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.waypoint-connector {
  width: 28px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.waypoint-connector-line {
  width: 100%;
  height: 1px;
  background: var(--tk-border-focus);
}

.waypoint-connector-arrow {
  position: absolute;
  font-size: 9px;
  color: var(--tk-ink-tertiary);
  background: var(--tk-bg);
  padding: 0 2px;
}

.wp-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.wp-node-id {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-ink-tertiary);
  letter-spacing: 0.05em;
}

.wp-code-title {
  margin-bottom: 2px;
}

.wp-iata {
  font-family: var(--tk-font-mono);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tk-ink-primary);
  display: inline-block;
}

.wp-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--tk-ink-secondary);
  line-height: 1.3;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wp-coords {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  color: var(--tk-ink-tertiary);
  margin-bottom: 8px;
}

.wp-carrier-tag {
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 3px 6px;
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--tk-ink-secondary);
  margin-bottom: 10px;
  display: inline-block;
  white-space: nowrap;
}

.wp-status-badge {
  font-family: var(--tk-font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

.badge-confirmed {
  background: var(--tk-emerald-bg);
  color: #065f46;
  border: 1px solid var(--tk-emerald-border);
}

.badge-decision {
  background: var(--tk-amber-bg);
  color: #92400e;
  border: 1px solid var(--tk-amber-border);
}

.badge-anchor {
  background: var(--tk-gold-bg);
  color: #78350f;
  border: 1px solid var(--tk-gold-border);
  font-weight: 800;
}

/* ==========================================================================
   3. Tufte Spark-Temporal Calendar Strip
   ========================================================================== */
.tufte-strip-wrapper {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  overflow: hidden;
}

.tufte-strip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.tufte-strip-table th {
  background: var(--tk-surface-alt);
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tk-ink-tertiary);
  padding: 8px 12px;
  border-bottom: 1px solid var(--tk-border);
  border-right: 1px solid var(--tk-border-light);
}

.tufte-strip-table th:last-child {
  border-right: none;
}

.tufte-strip-row {
  border-bottom: 1px solid var(--tk-border);
  transition: background-color 0.1s ease;
}

.tufte-strip-row:hover {
  background-color: var(--tk-surface-hover);
}

.tufte-strip-row.row-wedding-anchor {
  background-color: #fffdf5;
  border-left: 3px solid var(--tk-gold);
}

.tufte-strip-row.row-wedding-anchor:hover {
  background-color: #fefce8;
}

/* Unconfirmed / Proposed / TBD Row (Grayed out & faint) */
.tufte-strip-row.row-unconfirmed {
  opacity: 0.45;
  background-color: rgba(241, 245, 249, 0.4);
}

.tufte-strip-row.row-unconfirmed:hover {
  opacity: 0.95;
  background-color: var(--tk-surface-hover);
}

.tufte-strip-row.row-unconfirmed .tufte-vector-label {
  font-style: italic;
  color: var(--tk-ink-tertiary);
  font-weight: 500;
}

.tufte-strip-row.row-unconfirmed .tufte-phase-desc {
  color: var(--tk-ink-tertiary);
}

.tufte-strip-cell {
  padding: 7px 12px;
  border-right: 1px solid var(--tk-border-light);
  vertical-align: middle;
}

.tufte-strip-cell:last-child {
  border-right: none;
}

.tufte-date-col {
  white-space: nowrap;
}

.tufte-date-num {
  font-family: var(--tk-font-mono);
  font-weight: 700;
  color: var(--tk-ink-primary);
  display: inline-block;
  min-width: 44px;
}

.tufte-date-day {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  color: var(--tk-ink-tertiary);
  margin-left: 4px;
}

.tufte-node-pill {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  color: var(--tk-ink-secondary);
}

.tufte-vector-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tufte-vector-bar {
  height: 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.bar-amber {
  background: var(--tk-amber);
  width: 28px;
}

.bar-emerald {
  background: var(--tk-emerald);
  width: 28px;
}

.bar-gold {
  background: var(--tk-gold);
  width: 36px;
}

.bar-neutral {
  background: var(--tk-ink-faint);
  width: 14px;
}

.tufte-vector-label {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--tk-ink-primary);
}

.vector-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s ease;
}

.vector-link:hover {
  color: var(--tk-cyan);
  text-decoration: underline;
}

.vector-link-icon {
  font-size: 9px;
  color: var(--tk-cyan);
  line-height: 1;
}

.tufte-phase-desc {
  color: var(--tk-ink-secondary);
  font-size: 12px;
}

.tufte-phase-desc.gold-anchor {
  color: #92400e;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tufte-base-cell {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  color: var(--tk-ink-secondary);
  white-space: nowrap;
}

.base-link {
  color: var(--tk-ink-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s ease;
}

.base-link:hover {
  color: var(--tk-cyan);
  text-decoration: underline;
}

.base-link-icon {
  font-size: 9px;
  color: var(--tk-cyan);
  line-height: 1;
}

.tufte-weather-cell {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  color: var(--tk-ink-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tufte-spark-bar {
  display: inline-block;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  width: 30px;
  position: relative;
  overflow: hidden;
}

.tufte-spark-fill {
  height: 100%;
  background: var(--tk-cyan);
}

/* ==========================================================================
   4. Bottom Split Deck (Agent Trace & Logistics Deck)
   ========================================================================== */
.deck-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Right Column: Inbound Signal Cards */
.signal-card,
.horizon-card,
.watchlist-card {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: all 0.15s ease;
}

.signal-card:hover,
.horizon-card:hover,
.watchlist-card:hover {
  border-color: var(--tk-border-focus);
}

.signal-card-head,
.horizon-card-head,
.watchlist-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.signal-card-tag,
.horizon-card-tag,
.watchlist-card-tag {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tk-cyan);
}

.signal-card-pill,
.horizon-card-pill,
.watchlist-card-pill {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--tk-amber);
  background: var(--tk-amber-bg);
  border: 1px solid var(--tk-amber-border);
}

.signal-card-title,
.horizon-card-title,
.watchlist-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.signal-card-desc,
.horizon-card-desc,
.watchlist-card-desc {
  font-size: 11px;
  color: var(--tk-ink-secondary);
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.signal-card-trigger,
.horizon-card-trigger,
.watchlist-card-trigger {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  color: var(--tk-ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-card-trigger .trigger-label,
.horizon-card-trigger .trigger-label,
.watchlist-card-trigger .trigger-label {
  font-weight: 700;
  color: var(--tk-ink-secondary);
}

/* Left Column: Agent Decision Engine */
.agent-trace-card {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.trace-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--tk-border);
  padding-bottom: 8px;
}

.trace-tag {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tk-cyan);
}

.trace-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trace-pill {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 600;
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--tk-ink-secondary);
}

.trace-pill.highlight-timeout {
  background: var(--tk-amber-bg);
  border-color: var(--tk-amber-border);
  color: #b45309;
}

.trace-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.trace-rationale {
  font-size: 12px;
  color: var(--tk-ink-secondary);
  line-height: 1.4;
  margin: 0;
}

/* HITL Tradeoff Cards */
.hitl-decision-node {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.hitl-node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.hitl-node-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hitl-dossier-pill {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-cyan);
  background: var(--tk-cyan-bg);
  border: 1px solid var(--tk-cyan-border);
  padding: 1px 6px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.hitl-dossier-pill:hover {
  background: var(--tk-cyan);
  color: #ffffff;
}

.hitl-node-title {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tk-ink-primary);
}

.hitl-node-status {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-amber);
  background: var(--tk-amber-bg);
  border: 1px solid var(--tk-amber-border);
  padding: 2px 6px;
  border-radius: 3px;
}

.hitl-node-status.status-confirmed {
  color: var(--tk-emerald);
  background: var(--tk-emerald-bg);
  border-color: var(--tk-emerald-border);
}

.hitl-ledger-intro {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
  color: var(--tk-ink-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.hitl-ledger-intro strong {
  color: var(--tk-ink-primary);
  font-family: var(--tk-font-mono);
  font-size: 11px;
}

.hitl-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px;
}

.hitl-options-grid.single-option {
  grid-template-columns: 1fr;
}

.hitl-decision-node.node-decided {
  padding: 12px 14px;
}

.hitl-option-card {
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.hitl-option-card.selected {
  background: var(--tk-surface);
  border-color: var(--tk-cyan);
  box-shadow: 0 0 0 1px var(--tk-cyan);
}

.hitl-option-card.locked.selected {
  border-color: var(--tk-emerald);
  box-shadow: 0 0 0 1px var(--tk-emerald);
}

.hitl-option-card.locked.selected .opt-btn {
  background: var(--tk-emerald);
  border-color: var(--tk-emerald);
  color: #ffffff;
  cursor: default;
}

.hitl-option-card.locked:not(.selected) {
  opacity: 0.65;
}

.hitl-option-card.locked:not(.selected) .opt-btn {
  cursor: default;
  opacity: 0.75;
}

.opt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.opt-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  line-height: 1.3;
}

.opt-score {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--tk-emerald);
  background: var(--tk-emerald-bg);
  padding: 1px 4px;
  border-radius: 3px;
}

.opt-metric-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tk-font-mono);
  font-size: 11px;
  color: var(--tk-ink-secondary);
  margin-bottom: 6px;
}

.opt-pros {
  font-size: 11px;
  color: var(--tk-ink-secondary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.opt-review-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.hitl-review-pill {
  font-family: var(--tk-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--tk-cyan);
  background: var(--tk-cyan-bg);
  border: 1px solid var(--tk-border-subtle);
  border-radius: var(--tk-radius-sm);
  padding: 2px 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.hitl-review-pill:hover {
  background: var(--tk-cyan);
  color: #ffffff;
}

.opt-btn {
  width: 100%;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 6px 8px;
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.opt-btn:hover {
  background: var(--tk-ink-primary);
  color: #ffffff;
  border-color: var(--tk-ink-primary);
}

.hitl-option-card.selected .opt-btn {
  background: var(--tk-cyan);
  border-color: var(--tk-cyan);
  color: #ffffff;
}

/* Right Column: Radar & Hardware Manifest */
.radar-widget-box {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.radar-telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--tk-border);
  padding-bottom: 6px;
}

.radar-svg-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.radar-screen {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #022c22 0%, #064e3b 60%, #022c22 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--tk-emerald);
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.radar-sweep-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.4) 0deg, transparent 60deg, transparent 360deg);
  border-radius: 50%;
  animation: radar-sweep 4s linear infinite;
}

.radar-crosshair-x {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(16, 185, 129, 0.25);
}

.radar-crosshair-y {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(16, 185, 129, 0.25);
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
}

.radar-ring.r1 { width: 36px; height: 36px; }
.radar-ring.r2 { width: 72px; height: 72px; }

.radar-blip {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 6px #34d399;
}

.blip-1 { top: 38%; left: 32%; }
.blip-2 { top: 58%; left: 74%; }

.radar-specs {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--tk-ink-secondary);
}

.radar-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.radar-spec-k {
  color: var(--tk-ink-tertiary);
}

.radar-spec-v {
  font-weight: 600;
  color: var(--tk-ink-primary);
}

/* Gauge Box */
.clearance-gauge-box {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.gauge-title {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tk-ink-primary);
}

.gauge-val {
  font-family: var(--tk-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--tk-emerald);
}

.gauge-track {
  width: 100%;
  height: 6px;
  background: var(--tk-surface-alt);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--tk-border);
}

.gauge-fill {
  height: 100%;
  background: var(--tk-emerald);
  width: 12.2%;
  transition: width 0.3s ease;
}

.gauge-footer-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--tk-font-mono);
  font-size: 10px;
  color: var(--tk-ink-tertiary);
}

/* Gear & Payload Manifest */
.payload-manifest-box {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.payload-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--tk-border);
  padding-bottom: 6px;
}

.payload-weight-tally {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tk-ink-primary);
}

.payload-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.payload-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--tk-border-light);
}

.payload-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payload-checkbox {
  cursor: pointer;
  accent-color: var(--tk-cyan);
}

.payload-weight {
  font-family: var(--tk-font-mono);
  color: var(--tk-ink-secondary);
}

/* Daemon Log Stream */
.daemon-log-box {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--tk-font-mono);
  color: #94a3b8;
  font-size: 11px;
}

.daemon-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.daemon-log-title {
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.daemon-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tk-emerald);
  box-shadow: 0 0 6px var(--tk-emerald);
}

.daemon-log-stream {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 140px;
  overflow-y: auto;
  line-height: 1.4;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

.daemon-log-entry {
  display: flex;
  gap: 8px;
}

.log-ts {
  color: #64748b;
  flex-shrink: 0;
}

.log-sub {
  color: var(--tk-cyan);
  flex-shrink: 0;
}

.log-msg {
  color: #cbd5e1;
}

.log-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: var(--tk-emerald);
  vertical-align: middle;
  margin-left: 4px;
  animation: cursor-blink 1s step-start infinite;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes radar-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes tactical-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   Fleet Switcher & Fleet Theater Overview Styles
   ========================================================================== */

/* Sub-Header Fleet Switcher Bar (View 01) */
.fleet-switcher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

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

.fleet-switcher-label {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tk-ink-tertiary);
  margin-right: 4px;
}

.fleet-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--tk-ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fleet-switch-btn:hover {
  background: var(--tk-surface);
  color: var(--tk-ink-primary);
  border-color: var(--tk-border-dark);
}

.fleet-switch-btn.active {
  background: var(--tk-emerald-bg);
  border-color: var(--tk-emerald-border);
  color: #065f46;
  font-weight: 700;
}

.fleet-switch-btn.active .fleet-dot-active {
  background: var(--tk-emerald);
  box-shadow: 0 0 6px var(--tk-emerald);
}

.fleet-dot-active {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tk-emerald);
}

.fleet-dot-archived {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

.fleet-dot-probe {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tk-cyan);
}

.btn-init-expedition {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px dashed var(--tk-border-dark);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tk-cyan);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-init-expedition:hover {
  background: var(--tk-cyan-bg);
  border-color: var(--tk-cyan);
  border-style: solid;
}

/* ==========================================================================
   Destination Filter & Focused Calendar Strip Styles
   ========================================================================== */
.dest-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dest-filter-label {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tk-ink-tertiary);
  margin-right: 4px;
}

.dest-filter-pill {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--tk-ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dest-filter-pill:hover {
  border-color: var(--tk-border-dark);
  color: var(--tk-ink-primary);
  background: var(--tk-surface-alt);
}

.dest-filter-pill.active {
  background: var(--tk-cyan-bg);
  border-color: var(--tk-cyan);
  color: var(--tk-cyan);
  font-weight: 700;
}

.dest-filter-pill.active-gold {
  background: var(--tk-gold-bg);
  border-color: var(--tk-gold-border);
  color: #78350f;
  font-weight: 700;
}

.dest-filter-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-family: var(--tk-font-mono);
  font-size: 11px;
  color: #166534;
  flex-wrap: wrap;
  gap: 8px;
}

.dest-filter-banner.banner-gold {
  background: #fffdf5;
  border-color: #fde68a;
  color: #92400e;
}

.dest-filter-banner.banner-cyan {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.dest-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dest-banner-btn {
  background: #ffffff;
  border: 1px solid currentColor;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dest-banner-btn:hover {
  opacity: 0.8;
}

/* Dynamic Destination Breadcrumb Chip in Fleet Bar */
.dest-breadcrumb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tk-cyan-bg);
  border: 1px solid var(--tk-cyan);
  color: var(--tk-cyan);
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.dest-breadcrumb-chip.is-gold {
  background: var(--tk-gold-bg);
  border-color: var(--tk-gold-border);
  color: #78350f;
}

.dest-breadcrumb-chip:hover {
  background: var(--tk-cyan);
  color: #ffffff;
}

.dest-breadcrumb-chip.is-gold:hover {
  background: var(--tk-gold);
  color: #ffffff;
}

.dest-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.dest-chip-close {
  font-size: 10px;
  margin-left: 2px;
  opacity: 0.8;
}

.waypoint-card.wp-interactive {
  cursor: pointer;
}

.waypoint-card.wp-interactive:hover {
  border-color: var(--tk-cyan);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}

.waypoint-card.wp-active {
  border-color: var(--tk-cyan) !important;
  box-shadow: 0 0 0 1.5px var(--tk-cyan) !important;
  background: #f0f9ff !important;
}

.waypoint-card.wp-active.is-gold-card {
  border-color: var(--tk-gold) !important;
  box-shadow: 0 0 0 1.5px var(--tk-gold) !important;
  background: #fffdf5 !important;
}

.orthodromic-map-box {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 20px;
  overflow: hidden;
}

.orthodromic-map-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--tk-border);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.orthodromic-map-svg {
  width: 100%;
  height: auto;
  max-height: 290px;
  display: block;
}

/* Breadcrumb in Single Deck */
.deck-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tk-font-mono);
  font-size: 11px;
  color: var(--tk-ink-tertiary);
  margin-bottom: 12px;
}

.deck-breadcrumb a {
  color: var(--tk-ink-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.deck-breadcrumb a:hover {
  color: var(--tk-cyan);
}

.deck-breadcrumb-sep {
  color: var(--tk-border-dark);
}

.deck-breadcrumb-current {
  color: var(--tk-ink-primary);
  font-weight: 700;
}

/* Lateral Fleet Switcher Pill */
.fleet-switch-btn.fleet-return-btn {
  background: var(--tk-cyan-bg);
  color: var(--tk-cyan);
  border-color: var(--tk-cyan-border);
}

.fleet-switch-btn.fleet-return-btn:hover {
  background: var(--tk-cyan);
  color: #ffffff;
}

/* Tab Pane for Deep Itinerary in Single View */
.tab-pane-dossier {
  margin-top: 28px;
  border-top: 1px solid var(--tk-border);
  padding-top: 24px;
}

.fleet-theater-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.global-fleet-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 14px 16px;
}

.global-fleet-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid var(--tk-border-light);
  padding-right: 12px;
}

.global-fleet-stat:last-child {
  border-right: none;
  padding-right: 0;
}

.global-stat-label {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tk-ink-tertiary);
}

.global-stat-val {
  font-family: var(--tk-font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--tk-ink-primary);
}

.global-stat-sub {
  font-size: 11px;
  color: var(--tk-ink-secondary);
}

/* Expedition Dossier Cards Grid */
.dossier-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dossier-card {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.dossier-card:hover {
  transform: translateY(-2px);
  border-color: var(--tk-border-dark);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.dossier-card.status-active {
  border-top: 3px solid var(--tk-emerald);
}

.dossier-card.status-archived {
  border-top: 3px solid #94a3b8;
}

.dossier-card.status-probe {
  border-top: 3px solid var(--tk-cyan);
}

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

.dossier-code {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--tk-ink-primary);
  letter-spacing: 0.04em;
}

.dossier-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  margin: 2px 0 0 0;
  line-height: 1.3;
}

.dossier-status-pill {
  font-family: var(--tk-font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pill-active {
  background: var(--tk-emerald-bg);
  border: 1px solid var(--tk-emerald-border);
  color: #065f46;
}

.pill-archived {
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  color: var(--tk-ink-tertiary);
}

.pill-probe {
  background: var(--tk-cyan-bg);
  border: 1px solid var(--tk-cyan-border);
  color: var(--tk-cyan);
}

.dossier-route-box {
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 12px;
  font-family: var(--tk-font-mono);
  font-size: 11px;
  color: var(--tk-ink-primary);
  font-weight: 600;
  line-height: 1.4;
}

.dossier-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 11px;
}

.dossier-metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dossier-m-key {
  color: var(--tk-ink-tertiary);
  font-family: var(--tk-font-mono);
}

.dossier-m-val {
  font-weight: 600;
  color: var(--tk-ink-primary);
  font-family: var(--tk-font-mono);
}

.dossier-probe-status {
  background: #f8fafc;
  border: 1px dashed var(--tk-border-dark);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--tk-font-mono);
  font-size: 10px;
  color: var(--tk-ink-secondary);
  line-height: 1.35;
  margin-bottom: 14px;
}

.dossier-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.dossier-action-btn:hover {
  background: var(--tk-ink-primary);
  color: #ffffff;
  border-color: var(--tk-ink-primary);
}

/* Cross-Trip Shared Utilities */
.cross-utilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.utility-panel {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 14px 16px;
}

.utility-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--tk-border);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.utility-panel-title {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Multi-segment Schengen Bar */
.schengen-segment-bar {
  display: flex;
  height: 10px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  margin-bottom: 10px;
}

.seg-past {
  background: #94a3b8;
  width: 18.9%; /* 17 / 90 days */
}

.seg-active {
  background: var(--tk-emerald);
  width: 12.2%; /* 11 / 90 days */
}

.seg-free {
  background: transparent;
  flex: 1;
}

.schengen-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--tk-font-mono);
  font-size: 10px;
  color: var(--tk-ink-secondary);
  flex-wrap: wrap;
  gap: 8px;
}

.schengen-leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.leg-color-box {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* Shared Gear Locker Table */
.gear-locker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.gear-locker-table th {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-ink-tertiary);
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--tk-border);
  padding: 4px 6px;
}

.gear-locker-table td {
  padding: 5px 6px;
  border-bottom: 1px dashed var(--tk-border-light);
  color: var(--tk-ink-primary);
}

.gear-tag {
  font-family: var(--tk-font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.gt-deployed {
  background: var(--tk-emerald-bg);
  color: #065f46;
  border: 1px solid var(--tk-emerald-border);
}

.gt-staged {
  background: var(--tk-cyan-bg);
  color: var(--tk-cyan);
  border: 1px solid var(--tk-cyan-border);
}

.gt-base {
  background: var(--tk-surface-alt);
  color: var(--tk-ink-tertiary);
  border: 1px solid var(--tk-border);
}

/* Modal for Initializing Expedition */
.expedition-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.expedition-modal-dialog {
  background: #ffffff;
  border: 1px solid var(--tk-border-dark);
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  padding: 20px 24px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--tk-border);
  padding-bottom: 8px;
}

.modal-title {
  font-family: var(--tk-font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--tk-ink-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  font-family: var(--tk-font-mono);
  font-size: 14px;
  cursor: pointer;
  color: var(--tk-ink-tertiary);
}

.modal-form-group {
  margin-bottom: 12px;
}

.modal-form-label {
  display: block;
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tk-ink-secondary);
  margin-bottom: 4px;
}

.modal-form-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  font-family: var(--tk-font-mono);
  font-size: 12px;
  color: var(--tk-ink-primary);
  background: var(--tk-surface-alt);
}

.modal-form-input:focus {
  outline: none;
  border-color: var(--tk-cyan);
  background: #ffffff;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* ==========================================================================
   Tactical Research Matrix & Dossier UX
   ========================================================================== */

/* Dossier Hub Key Points */
.dossier-key-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 14px 0;
  font-size: 11px;
}

.key-point-node {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--tk-ink-secondary);
  line-height: 1.4;
}

.kp-arrow {
  font-family: var(--tk-font-mono);
  color: var(--tk-cyan);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

/* Strategy Callout Card */
.deck-strategy-card {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 18px 20px;
}

.deck-strat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tk-border);
}

.deck-strat-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deck-strat-icon {
  font-size: 18px;
}

.deck-strat-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.deck-strat-desc {
  font-size: 13px;
  color: var(--tk-ink-secondary);
  line-height: 1.55;
  margin: 0 0 16px 0;
}

.deck-strat-mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.deck-mech-card {
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.deck-mech-label {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-ink-tertiary);
  letter-spacing: 0.05em;
}

.deck-mech-val {
  font-family: var(--tk-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--tk-ink-primary);
}

.deck-mech-sub {
  font-size: 11px;
  color: var(--tk-ink-secondary);
  line-height: 1.3;
}

/* Candidate Showcase Matrix */
.deck-candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.deck-candidate-card {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.deck-candidate-card:hover {
  border-color: var(--tk-border-dark);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.deck-candidate-card.is-top-pick {
  border-color: var(--tk-emerald);
  box-shadow: 0 0 0 1px var(--tk-emerald);
}

.candidate-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--tk-font-mono);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-bottom-left-radius: 6px;
  letter-spacing: 0.04em;
}

.ribbon-booked {
  background: var(--tk-emerald-bg);
  border: 1px solid var(--tk-emerald-border);
  color: #065f46;
}

.ribbon-top-pick {
  background: var(--tk-cyan-bg);
  border: 1px solid var(--tk-cyan-border);
  color: var(--tk-cyan);
}

.ribbon-runner-up {
  background: var(--tk-gold-bg);
  border: 1px solid var(--tk-gold-border);
  color: #78350f;
}

.ribbon-step-up {
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  color: var(--tk-ink-primary);
}

.ribbon-baseline {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.candidate-card-head {
  margin-bottom: 12px;
}

.candidate-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-right: 120px;
}

.candidate-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  margin: 0;
  line-height: 1.3;
}

.candidate-maps-link {
  color: var(--tk-ink-primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--tk-border-dark);
  transition: color 0.15s ease;
}

.candidate-maps-link:hover {
  color: var(--tk-cyan);
  text-decoration: none;
}

.candidate-stars {
  font-size: 11px;
  color: var(--tk-gold);
  letter-spacing: 1px;
}

.candidate-location-tag {
  font-size: 11px;
  color: var(--tk-ink-secondary);
  margin-top: 4px;
}

.candidate-addr {
  color: var(--tk-ink-tertiary);
}

/* Pricing Delta Box */
.candidate-pricing-box {
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.price-unit {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-tag-lbl {
  font-family: var(--tk-font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--tk-ink-tertiary);
  letter-spacing: 0.04em;
}

.price-tag-amt {
  font-family: var(--tk-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--tk-ink-secondary);
}

.price-tag-amt.highlight {
  color: #065f46;
  font-size: 15px;
}

.price-arrow-glyph {
  color: var(--tk-ink-tertiary);
  font-size: 14px;
}

.candidate-desc {
  font-size: 12px;
  color: var(--tk-ink-secondary);
  line-height: 1.5;
  margin: 0 0 12px 0;
}

/* Highlights Chips */
.candidate-highlights-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.candidate-chip {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--tk-ink-secondary);
}

/* Photo Reviews */
.candidate-reviews-box {
  margin-bottom: 14px;
  border-top: 1px dashed var(--tk-border);
  padding-top: 10px;
}

.reviews-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-ink-tertiary);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: block;
}

.reviews-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.candidate-review-pill {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--tk-cyan);
  background: var(--tk-cyan-bg);
  border: 1px solid var(--tk-cyan-border);
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.candidate-review-pill:hover {
  background: var(--tk-cyan);
  color: #ffffff;
  border-color: var(--tk-cyan);
  text-decoration: none;
}

/* Pros / Cons Split */
.candidate-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--tk-surface-accent);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 11px;
}

.candidate-pros-col, .candidate-cons-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pc-lbl {
  font-family: var(--tk-font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pc-pro {
  color: #065f46;
}

.pc-con {
  color: #b45309;
}

.candidate-pros-col ul, .candidate-cons-col ul {
  margin: 0;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--tk-ink-secondary);
  line-height: 1.35;
}

/* Disqualified / Ruled Out Table */
.deck-matrix-table-wrap {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  overflow-x: auto;
}

.deck-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.deck-matrix-table thead th {
  background: var(--tk-surface-alt);
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-ink-secondary);
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--tk-border);
  white-space: nowrap;
}

.deck-matrix-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--tk-border);
  color: var(--tk-ink-primary);
  vertical-align: middle;
}

.deck-matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.deck-matrix-table tbody tr:hover td {
  background: #fcfdfe;
}

.col-prop-name {
  font-weight: 600;
  white-space: nowrap;
}

.passed-stars {
  font-size: 10px;
  color: var(--tk-gold);
  margin-left: 4px;
}

.rate-strike {
  text-decoration: line-through;
  color: var(--tk-ink-tertiary);
}

.pass-reason-cell {
  color: var(--tk-ink-secondary);
  font-size: 11px;
  line-height: 1.4;
}

/* Inventory Constraints */
.deck-unavail-container {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 14px 18px;
}

.unavail-group-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--tk-ink-tertiary);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.unavail-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deck-unavail-chip {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
}

.chip-soldout {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.chip-unlisted {
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  color: var(--tk-ink-secondary);
}

/* Neighborhoods Grid */
.deck-neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.deck-neighborhood-card {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.neigh-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.neigh-vibe-badge {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--tk-ink-secondary);
}

.neigh-rank-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-cyan);
}

.neigh-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  margin: 0 0 6px 0;
}

.neigh-summary {
  font-size: 12px;
  color: var(--tk-ink-secondary);
  line-height: 1.45;
  margin: 0 0 12px 0;
}

.neigh-metrics-strip {
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  margin-bottom: 12px;
}

.nm-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nm-k {
  color: var(--tk-ink-tertiary);
  font-family: var(--tk-font-mono);
}

.nm-v {
  font-weight: 600;
  color: var(--tk-ink-primary);
}

.spots-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--tk-ink-tertiary);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

.spots-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.spot-chip {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--tk-ink-secondary);
}

/* Transit Timeline */
.deck-transit-box {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 18px 20px;
}

.transit-desc-text {
  font-size: 13px;
  color: var(--tk-ink-secondary);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.deck-transit-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 2px solid var(--tk-border);
  margin-left: 8px;
  padding-left: 16px;
}

.transit-step-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.transit-step-node::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tk-cyan);
  border: 2px solid #ffffff;
}

.transit-time-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-cyan);
  letter-spacing: 0.04em;
}

.transit-step-title {
  font-size: 13px;
  color: var(--tk-ink-primary);
}

.transit-step-detail {
  font-size: 12px;
  color: var(--tk-ink-secondary);
  line-height: 1.4;
  margin: 0;
}

/* Scoping Candidate Grid */
.deck-scoping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.deck-scoping-card {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scoping-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.scoping-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  margin: 0;
}

.scoping-zone-tag {
  font-size: 10px;
  color: var(--tk-ink-tertiary);
}

.scoping-desc-text {
  font-size: 12px;
  color: var(--tk-ink-secondary);
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.scoping-meta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--tk-ink-tertiary);
  border-top: 1px solid var(--tk-border);
  padding-top: 8px;
}

/* AI Synthesis Consensus Card */
.deck-synthesis-card {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 18px 20px;
}

.synth-overview-text {
  font-size: 13px;
  color: var(--tk-ink-primary);
  line-height: 1.55;
  margin: 0 0 16px 0;
  font-weight: 500;
}

.synth-takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.synth-takeaway-node {
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.st-topic-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--tk-cyan);
  letter-spacing: 0.04em;
}

.st-insight-text {
  font-size: 11px;
  color: var(--tk-ink-secondary);
  line-height: 1.4;
}

/* Detailed Field Notes Prose Card */
.deck-prose-card {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: 24px 28px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--tk-ink-secondary);
}

.deck-prose-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  margin: 24px 0 12px 0;
  border-bottom: 1px solid var(--tk-border);
  padding-bottom: 6px;
}

.deck-prose-card h3:first-child {
  margin-top: 0;
}

.deck-prose-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--tk-ink-primary);
  margin: 18px 0 8px 0;
}

.deck-prose-card p {
  margin: 0 0 14px 0;
}

.deck-prose-card ul, .deck-prose-card ol {
  margin: 0 0 14px 0;
  padding-left: 20px;
}

.deck-prose-card li {
  margin-bottom: 6px;
}

.deck-prose-card strong {
  color: var(--tk-ink-primary);
}

.deck-prose-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 12px;
}

.deck-prose-card table th {
  background: var(--tk-surface-alt);
  font-family: var(--tk-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-ink-secondary);
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border: 1px solid var(--tk-border);
  text-align: left;
}

.deck-prose-card table td {
  padding: 8px 12px;
  border: 1px solid var(--tk-border);
  color: var(--tk-ink-secondary);
}

.deck-prose-card table tr:hover td {
  background: #f8fafc;
}

.deck-prose-card hr {
  border: none;
  border-top: 1px solid var(--tk-border);
  margin: 24px 0;
}

.deck-prose-card blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  background: var(--tk-surface-alt);
  border-left: 3px solid var(--tk-cyan);
  color: var(--tk-ink-primary);
  font-size: 13px;
}

/* Bottom Actions Nav Bar */
.deck-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--tk-border);
}

/* ==========================================================================
   Tactical Collapsible Sections (Progressive Disclosure)
   ========================================================================== */
details.deck-collapse-panel {
  display: block;
}

summary.deck-collapse-trigger {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--tk-border);
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

summary.deck-collapse-trigger::-webkit-details-marker {
  display: none;
}

summary.deck-collapse-trigger:hover {
  background: var(--tk-surface-alt);
}

summary.deck-collapse-trigger:focus-visible {
  outline: 2px solid var(--tk-cyan);
  outline-offset: 1px;
}

.deck-collapse-content {
  margin-top: 10px;
}

/* Toggle glyph indicator */
.deck-collapse-toggle-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tk-font-mono);
  font-size: 10px;
  width: 14px;
  height: 14px;
  color: var(--tk-cyan);
  transition: transform 0.15s ease;
}

details.deck-collapse-panel[open] .deck-collapse-toggle-glyph {
  transform: rotate(90deg);
}

/* Expand / Collapse text hint */
.deck-collapse-state-badge {
  font-family: var(--tk-font-mono);
  font-size: 10px;
  color: var(--tk-ink-tertiary);
  margin-right: 8px;
  letter-spacing: 0.04em;
}

details.deck-collapse-panel[open] .deck-collapse-state-badge::before {
  content: "[-] COLLAPSE // ";
  color: var(--tk-ink-tertiary);
}

details.deck-collapse-panel:not([open]) .deck-collapse-state-badge::before {
  content: "[+] EXPAND // ";
  color: var(--tk-cyan);
}

/* Count badge pill */
.deck-count-pill {
  font-size: 10px;
  font-weight: 600;
  color: var(--tk-ink-secondary);
  padding: 1px 6px;
  background: var(--tk-surface-alt);
  border: 1px solid var(--tk-border);
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Print override: Always show full research content */
@media print {
  details.deck-collapse-panel {
    display: block !important;
  }
  details.deck-collapse-panel > summary.deck-collapse-trigger {
    pointer-events: none !important;
    background: transparent !important;
  }
  .deck-collapse-content {
    display: block !important;
  }
  .deck-collapse-state-badge,
  .deck-collapse-toggle-glyph {
    display: none !important;
  }
}

/* ==========================================================================
   Responsive Viewport Rules
   ========================================================================== */
@media (max-width: 1024px) {
  .deck-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .deck-split-grid {
    grid-template-columns: 1fr;
  }
  .global-fleet-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .dossier-cards-grid {
    grid-template-columns: 1fr;
  }
  .cross-utilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mission-deck-viewport {
    padding: 0 12px;
  }
  .deck-topbar-primary,
  .deck-topbar-secondary {
    flex-direction: column;
    align-items: flex-start;
  }
  .deck-base-coords,
  .deck-clocks {
    flex-wrap: wrap;
  }
  .deck-metrics-strip {
    grid-template-columns: 1fr;
  }
  .hitl-options-grid {
    grid-template-columns: 1fr;
  }
  .radar-svg-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .global-fleet-strip {
    grid-template-columns: 1fr;
  }
}

/* Highlight itinerary blocks explicitly marked special in calendar YAML. */
#dossier-pane .cal-block-row[data-tentpole="true"] {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-left: 4px solid #eab308;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(161, 98, 7, 0.16);
  padding: 10px 12px;
}
#dossier-pane .cal-block-row[data-tentpole="true"] .cal-block-time,
#dossier-pane .cal-block-row[data-tentpole="true"] .cal-block-title {
  color: #854d0e;
}
#dossier-pane .cal-block-row[data-tentpole="true"] .cal-block-desc {
  color: #713f12;
}
