/* ============================================================
   THE BASELINE WIRE — MASTER STYLESHEET
   Pre-1900 Broadsheet, Telegraphic Wire & Intaglio Engraving Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600&family=IM+Fell+English+SC&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* ── Pre-1900 Broadsheet & Antique Ink Palette ── */
  --bg-dark: #0a0c0e;
  --bg-card: rgba(16, 20, 26, 0.94);
  --bg-card-hover: rgba(22, 27, 35, 0.98);
  --border-subtle: rgba(212, 175, 55, 0.2);
  --border-active: rgba(212, 175, 55, 0.6);
  --border-engraved: #333d47;
  
  --text-primary: #f2eada;        /* warm ivory newsprint */
  --text-secondary: #c7bea8;      /* aged parchment */
  --text-muted: #857e70;          /* faded docket ink */
  
  --gold: #d4af37;                /* antique brass / gold leaf */
  --gold-glow: rgba(212, 175, 55, 0.16);
  --copper: #c28751;              /* vintage copperplate */
  --amber: #b87333;               /* telegraph wire amber */
  --crimson: #a83c3c;             /* printers vermilion / wax seal */
  --crimson-glow: rgba(168, 60, 60, 0.22);
  --cyan: #c28751;                /* copper replaces electric cyan */
  --accent-cyan: #c28751;
  --green: #7d9675;               /* historical ledger sage */
  --purple: #96708a;              /* aged gall-violet */
  
  /* ── Pre-1900 Typography Scale ── */
  --font-main: 'Crimson Text', Georgia, 'Times New Roman', serif;
  --font-display: 'IM Fell English SC', serif;
  --font-serif: 'Newsreader', 'Crimson Text', Georgia, serif;
  --font-mono: 'Space Mono', 'Courier Prime', monospace;
  
  /* Crisp letterpress edges */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --transition-fast: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Pre-1900 Broadsheet & Copperplate Intaglio Atmosphere */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(184, 115, 51, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 12% 25%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(168, 60, 60, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(10, 12, 14, 0.85) 0%, #06080a 100%);
  pointer-events: none;
  z-index: -2;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.015) 0px, rgba(212, 175, 55, 0.015) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.015) 0px, rgba(212, 175, 55, 0.015) 1px, transparent 1px, transparent 14px);
  pointer-events: none;
  z-index: -1;
}

/* Typography Utilities */
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.font-serif { font-family: var(--font-serif); }
.text-gold { color: var(--gold); }
.text-copper { color: var(--copper); }
.text-amber { color: var(--amber); }
.text-crimson { color: var(--crimson); }
.text-green { color: var(--green); }
.text-cyan { color: var(--copper); }

/* Header — Pre-1900 Broadsheet Masthead */
@view-transition { navigation: auto; }
::view-transition-old(master-header), ::view-transition-new(master-header) {
  animation: none;
  mix-blend-mode: normal;
}

.wire-header {
  view-transition-name: master-header;
  border-bottom: 3px double rgba(212, 175, 55, 0.35);
  background: rgba(10, 12, 14, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.brand-zone-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.15s ease;
}
.brand-zone-link:hover {
  opacity: 0.95;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.brand-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  gap: 1rem;
}

.pulse-indicator {
  position: relative;
  width: 16px;
  height: 16px;
}

.pulse-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 50%;
  top: 4px;
  left: 4px;
  box-shadow: 0 0 8px var(--gold);
}

.pulse-ring {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: pulse-ring 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.brand-title .site-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--copper);
  letter-spacing: 0.22em;
  font-weight: 700;
  display: block;
  text-transform: uppercase;
}

.brand-title h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.25);
  margin-bottom: 0.15rem;
}

.brand-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  border-top: 1px solid rgba(212, 175, 55, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  padding: 0.15rem 0.65rem;
  background: rgba(212, 175, 55, 0.08);
  text-transform: uppercase;
  margin-top: 0.25rem;
  line-height: 1.2;
}

.brand-ribbon::before,
.brand-ribbon::after {
  content: '❖';
  font-size: 0.7rem;
  color: var(--copper);
}

/* Telemetry Bar — Victorian Chronometer & Wire Register */
.telemetry-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(16, 20, 26, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.telemetry-bar::-webkit-scrollbar {
  display: none;
}

.telemetry-item {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
}

.telemetry-item .label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.telemetry-item .val {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.telemetry-item .highlight {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 20, 26, 0.8);
  transition: all 0.2s ease;
}

.nav-pill:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.nav-pill.gold,
.nav-pill.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
  font-weight: 700;
}

.nav-pill.gold:hover,
.nav-pill.active:hover {
  background: rgba(212, 175, 55, 0.25);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.account-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  white-space: nowrap;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(212, 175, 55, 0.4);
}

/* Breaking Ticker Banner — Victorian Telegraph Ribbon */
.breaking-banner {
  background: linear-gradient(90deg, #1b0f12, #0e1118 60%);
  border-bottom: 1px solid rgba(168, 60, 60, 0.45);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding: 0.45rem 1.5rem;
  overflow: hidden;
  position: relative;
  z-index: 20;
}

.banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow: hidden;
}

.badge-breaking-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.badge-breaking {
  background: var(--crimson);
  color: #f2eada;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  border: 1px solid rgba(242, 234, 218, 0.35);
  letter-spacing: 0.12em;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(168, 60, 60, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
}

.badge-breaking::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulseBreaking 1.5s infinite;
}

@keyframes pulseBreaking {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  will-change: transform;
  animation: tickerScroll 128s linear infinite;
}

.ticker-viewport:hover .ticker-track,
.breaking-banner:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
  text-decoration: none;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ticker-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.ticker-desk {
  color: var(--crimson);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ticker-item:hover .ticker-desk {
  color: var(--gold);
}

.ticker-headline {
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.ticker-sep {
  color: rgba(224, 69, 69, 0.6);
  font-size: 0.8rem;
  user-select: none;
}

.highlight-pulse {
  animation: cardPulseGlow 2.5s ease-out;
}

@keyframes cardPulseGlow {
  0% { box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.8); border-color: var(--gold); }
  100% { box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
}

/* Main Layout */
.main-layout {
  padding: 1.5rem 0 3rem;
}

.layout-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Controls Panel & Command Bar */
.controls-panel {
  margin-bottom: 1.5rem;
}

.command-bar-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.command-bar-row .search-box {
  flex: 1;
  min-width: 280px;
  margin-bottom: 0;
}

/* Daily Edition Selector Card */
.edition-selector-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(16, 22, 32, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.85rem;
  backdrop-filter: blur(10px);
  position: relative;
}

.edition-label-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edition-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  display: inline-block;
  animation: pulse-ring 2s infinite ease-out;
}

.edition-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.edition-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.edition-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.edition-dropdown:hover, .edition-dropdown:focus {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.edition-dropdown option {
  background: #0f131a;
  color: #fff;
  font-family: var(--font-mono);
  padding: 0.5rem;
}

.edition-dropdown-arrow {
  position: absolute;
  right: 0.6rem;
  pointer-events: none;
  font-size: 0.7rem;
  color: var(--gold);
}
/* Desk Classification Dropdown Card — Victorian Docket Register */
.desk-selector-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(16, 20, 26, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  backdrop-filter: blur(10px);
  position: relative;
}

.desk-label-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.desk-indicator-icon {
  color: var(--copper);
  font-size: 0.85rem;
  display: inline-block;
  text-shadow: 0 0 8px rgba(194, 135, 81, 0.4);
}

.desk-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--copper);
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.desk-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.desk-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(10, 12, 16, 0.9);
  color: var(--text-primary);
  border: 1px solid rgba(194, 135, 81, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.desk-dropdown:hover, .desk-dropdown:focus {
  border-color: var(--gold);
  background: rgba(194, 135, 81, 0.12);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.desk-dropdown option {
  background: #0d1015;
  color: var(--text-primary);
  font-family: var(--font-mono);
  padding: 0.5rem;
}

.desk-dropdown-arrow {
  position: absolute;
  right: 0.6rem;
  pointer-events: none;
  font-size: 0.7rem;
  color: var(--copper);
}

/* Daily Edition Status Banner — Broadsheet Date & Issue Register */
.edition-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, rgba(16, 20, 26, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.edition-status-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.edition-status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  background: var(--gold);
  color: #0a0c0e;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
}

.edition-status-pill.archive-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.edition-status-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edition-status-right {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-box {
  position: relative;
  margin-bottom: 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  background: rgba(16, 22, 32, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Desk Filter Carousel / Pills */
.desks-carousel {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.desk-pill {
  background: rgba(16, 22, 32, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.desk-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.desk-pill.active {
  background: var(--gold-glow);
  color: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

.desk-pill .count {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
}

/* Feed Grid */
.feed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .feed-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Stream Header */
.stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
}

.stream-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.feed-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Dispatch Cards — Victorian Telegram & Gazette Docket */
.dispatches-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dispatch-card {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px double rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}

.dispatch-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 12px rgba(212, 175, 55, 0.12);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.disp-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--copper);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.desk-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  background: rgba(10, 12, 14, 0.8);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.desk-badge[data-desk="ATMOSPHERIC"] { color: var(--copper); border-color: rgba(194, 135, 81, 0.4); }
.desk-badge[data-desk="ENFORCEMENT"] { color: var(--crimson); border-color: rgba(168, 60, 60, 0.4); }
.desk-badge[data-desk="ANATOMY/CRYPTID"] { color: #d4a054; border-color: rgba(212, 160, 84, 0.4); }
.desk-badge[data-desk="BEDROCK/INFRA"] { color: var(--text-secondary); border-color: var(--border-subtle); }
.desk-badge[data-desk="BIOLOGICAL/FOOD"] { color: var(--green); border-color: rgba(125, 150, 117, 0.4); }
.desk-badge[data-desk="CURRENCY/LEDGER"] { color: var(--gold); border-color: rgba(212, 175, 55, 0.5); }
.desk-badge[data-desk="FREQUENCIES/GRID"] { color: var(--copper); border-color: rgba(194, 135, 81, 0.4); }
.desk-badge[data-desk="CELESTIAL/SKY"] { color: #b69bc4; border-color: rgba(182, 155, 196, 0.4); }
.desk-badge[data-desk="ARCHIVE/HISTORY"] { color: var(--text-primary); border-color: rgba(242, 234, 218, 0.35); }
.desk-badge[data-desk="THE_UNINDEXED"] { color: var(--green); border-color: rgba(125, 150, 117, 0.4); }
.desk-badge[data-desk="DRIED_CREEKBED"] { color: #e09f67; border-color: rgba(224, 159, 103, 0.45); }

.disp-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
}

.dispatch-headline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.dispatch-headline-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dispatch-headline-link:hover {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.dispatch-origin {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 0.5rem;
}

.dispatch-section {
  margin-bottom: 0.95rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: block;
  text-transform: uppercase;
}

.label-event { color: var(--copper); }
.label-cover { color: var(--crimson); }
.label-breakdown { color: var(--gold); }
.label-evidence { color: var(--green); }

.dispatch-text {
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: break-word;
}

.dispatch-cover {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  padding-left: 0.85rem;
  border-left: 2px solid var(--crimson);
  overflow-wrap: break-word;
  word-break: break-word;
}

.dispatch-breakdown {
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: var(--text-primary);
  padding-left: 0.85rem;
  border-left: 2px solid var(--gold);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Evidence Ledger Accordion */
.evidence-container {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
}

.evidence-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.evidence-toggle:hover {
  color: var(--green);
}

.evidence-list {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.evidence-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--green);
}

/* Sidebar Rail */
.sidebar-rail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.rail-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.rail-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #fff;
}

.tag-foundational,
.tag-foundational {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.tag-btc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #f59e0b;
  border: 1px solid #f59e0b;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.tag-archive {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #cbd5e1;
  border: 1px solid #94a3b8;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.tag-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #ff6719;
  border: 1px solid #ff6719;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.doctrine-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.doctrine-card .highlight-text {
  color: var(--gold);
  font-weight: 500;
}

.doctrine-card .doctrine-action-row {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.25);
}

.doctrine-recruiting-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.75rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: all 0.2s ease;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.08);
}

.doctrine-recruiting-btn:hover {
  background: var(--gold);
  color: #0a0c0e;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.doctrine-recruiting-btn .btn-indicator {
  font-size: 0.8rem;
  margin-right: 0.4rem;
}

.doctrine-recruiting-btn .btn-arrow {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.doctrine-recruiting-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Desk 06 BTC Live Price Monitor */
.btc-live-monitor {
  background: rgba(16, 22, 32, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.btc-live-monitor:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
}

.btc-monitor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.btc-monitor-top .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.btc-currency-wrap {
  position: relative;
}

.btc-currency-select {
  background: rgba(7, 9, 12, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #f59e0b;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.btc-currency-select:hover,
.btc-currency-select:focus {
  border-color: var(--gold);
  background: rgba(16, 22, 32, 0.95);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.btc-currency-select option {
  background: #0d121b;
  color: #fff;
  padding: 0.3rem;
}

.btc-monitor-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.btc-price-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  transition: all 0.25s ease;
}

.btc-price-number.flash {
  color: #fff;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

.btc-price-change {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.btc-price-change.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.btc-price-change.positive {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Desk 06 Interactive Multi-Timeframe Chart */
.btc-chart-module {
  background: rgba(7, 9, 12, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.65rem 0.4rem;
  margin-bottom: 0.75rem;
}

.btc-chart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.btc-timeframe-pills {
  display: flex;
  gap: 0.25rem;
}

.tf-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.42rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tf-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.tf-btn.active {
  background: var(--gold-glow);
  color: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}

.tf-change-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.tf-change-pill.positive {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.tf-change-pill.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.btc-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 110px;
  cursor: crosshair;
}

#btc-price-canvas {
  width: 100%;
  height: 110px;
  display: block;
}

.btc-chart-crosshair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(212, 175, 55, 0.6);
  pointer-events: none;
}

.btc-chart-tooltip {
  position: absolute;
  top: 6px;
  background: rgba(13, 18, 27, 0.95);
  border: 1px solid var(--gold);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  transform: translateX(-50%);
  z-index: 10;
}

.btc-chart-axes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.btc-card-actions {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.btc-dossier-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.btc-dossier-link:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
}

/* Foundational Transmission Node (Bitcoin Address) */
.btc-transmission-box {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: rgba(10, 12, 16, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
}

.btc-transmission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.btc-transmission-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}

.btc-copy-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.btc-copy-btn:hover {
  background: var(--gold);
  color: #0a0c0e;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.btc-copy-btn.copied {
  background: var(--green);
  border-color: var(--green);
  color: #0a0c0e;
}

.btc-address-display {
  font-size: 0.7rem;
  color: var(--text-primary);
  word-break: break-all;
  user-select: all;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  border: 1px dashed rgba(212, 175, 55, 0.25);
  transition: all 0.2s ease;
}

.btc-address-display:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Metric Rows */
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.metric-row .lbl {
  color: var(--text-muted);
}

.metric-row .val {
  color: #fff;
  font-weight: 600;
}

.metric-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  line-height: 1.4;
}

/* Book Spotlight */
.book-spotlight {
  position: relative;
  border-left: 2px solid var(--gold);
}

/* Pre-1900 Archive Volume Dropdown */
.spotlight-dropdown-wrapper {
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spotlight-dropdown-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.spotlight-select-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.spotlight-dropdown {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(16, 22, 32, 0.9);
  color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.spotlight-dropdown:hover, .spotlight-dropdown:focus {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.spotlight-dropdown option {
  background: #0f131a;
  color: #fff;
  font-family: var(--font-mono);
  padding: 0.4rem;
}

.spotlight-dropdown-arrow {
  position: absolute;
  right: 0.75rem;
  pointer-events: none;
  font-size: 0.7rem;
  color: var(--gold);
}

.book-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.book-author {
  font-size: 0.78rem;
  color: var(--gold);
  font-family: var(--font-mono);
  margin-bottom: 0.6rem;
}

.book-summary {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.spotlight-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.book-ref {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  display: inline-block;
  border: 1px solid var(--border-subtle);
}

.spotlight-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.spotlight-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.spotlight-read-btn:hover {
  background: var(--gold);
  color: #0b0c10;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.spotlight-ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.spotlight-ext-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* Dragon Reconnaissance Card */
.dragon-reconnaissance-card {
  position: relative;
  border-left: 2px solid #e11d48;
  background: linear-gradient(175deg, rgba(225, 29, 72, 0.04) 0%, rgba(16, 22, 32, 0.85) 100%);
}

.tag-dragon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.45);
  color: #fb7185;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.dragon-intro-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.dragon-dropdown-wrapper {
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dragon-dropdown-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #fb7185;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.dragon-select-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.dragon-dropdown {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(16, 22, 32, 0.95);
  color: #fff;
  border: 1px solid rgba(225, 29, 72, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.dragon-dropdown:hover, .dragon-dropdown:focus {
  border-color: #fb7185;
  background: rgba(225, 29, 72, 0.1);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.25);
}

.dragon-dropdown optgroup {
  background: #0b0f17;
  color: #fb7185;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
}

.dragon-dropdown option {
  background: #0f131a;
  color: #fff;
  font-family: var(--font-mono);
  padding: 0.4rem;
}

.dragon-dropdown-arrow {
  position: absolute;
  right: 0.75rem;
  pointer-events: none;
  font-size: 0.7rem;
  color: #fb7185;
}

.dragon-meta-header {
  margin-bottom: 0.4rem;
}

.dragon-era-pill {
  font-size: 0.7rem;
  color: #fb7185;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: rgba(225, 29, 72, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(225, 29, 72, 0.3);
}

.dragon-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.dragon-location {
  font-size: 0.76rem;
  color: var(--gold);
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}

.dragon-summary {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.dragon-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.dragon-ref {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dragon-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dragon-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  background: #e11d48;
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dragon-read-btn:hover {
  background: #f43f5e;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
}

.dragon-ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

/* Cryptid Reconnaissance Card */
.cryptid-reconnaissance-card {
  position: relative;
  border-left: 2px solid #10b981;
  background: linear-gradient(175deg, rgba(16, 185, 129, 0.04) 0%, rgba(16, 22, 32, 0.85) 100%);
  margin-top: 1.25rem;
}

.tag-cryptid {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.cryptid-intro-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.cryptid-dropdown-wrapper {
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cryptid-dropdown-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #34d399;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.cryptid-select-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.cryptid-dropdown {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(16, 22, 32, 0.95);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.cryptid-dropdown:hover, .cryptid-dropdown:focus {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.cryptid-dropdown optgroup {
  background: #0b0f17;
  color: #34d399;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
}

.cryptid-dropdown option {
  background: #0f131a;
  color: #fff;
  font-family: var(--font-mono);
  padding: 0.4rem;
}

.cryptid-dropdown-arrow {
  position: absolute;
  right: 0.75rem;
  pointer-events: none;
  font-size: 0.7rem;
  color: #34d399;
}

.cryptid-meta-header {
  margin-bottom: 0.4rem;
}

.cryptid-era-pill {
  font-size: 0.7rem;
  color: #34d399;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cryptid-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.cryptid-location {
  font-size: 0.76rem;
  color: var(--gold);
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}

.cryptid-summary {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.cryptid-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.cryptid-ref {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cryptid-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cryptid-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  background: #059669;
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.cryptid-read-btn:hover {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.cryptid-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.65rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cryptid-gallery-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Field Sketches Lightbox Modal */
.sketch-gallery-dialog {
  max-width: 900px;
  width: 95%;
  background: rgba(11, 15, 23, 0.98);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.2);
}

.sketch-gallery-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-stage-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  max-height: 520px;
  background: #04070c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-display-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.gallery-stage-image {
  max-width: 100%;
  max-height: 440px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

.gallery-stage-image:hover {
  transform: scale(1.015);
}

.gallery-image-zoom-tag {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  pointer-events: none;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(16, 22, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.gallery-nav-btn:hover {
  background: #10b981;
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.gallery-prev-btn { left: 1rem; }
.gallery-next-btn { right: 1rem; }

.gallery-caption-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.gallery-caption-card h4 {
  font-size: 0.95rem;
  color: #34d399;
  margin-bottom: 0.25rem;
}

.gallery-ref {
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.gallery-caption-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.gallery-thumbnail-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.gallery-thumb-item {
  background: rgba(16, 22, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.gallery-thumb-img {
  width: 100%;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.gallery-thumb-item:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
}

.gallery-thumb-item:hover .gallery-thumb-img,
.gallery-thumb-item.active .gallery-thumb-img {
  opacity: 1;
}

.gallery-thumb-item.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.gallery-thumb-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #34d399;
  font-weight: 700;
  display: block;
}

.gallery-thumb-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 0.15rem;
}

.dragon-ext-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* Newsletter Card */
.newsletter-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.submit-btn {
  padding: 0.6rem;
  background: var(--gold);
  color: #07090c;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-btn:hover {
  background: #e6c555;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* Footer */
.wire-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 9, 12, 0.95);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-left p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-left .copyright {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.footer-btc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.footer-btc-label {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.footer-btc-address {
  font-size: 0.72rem;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  user-select: all;
}

.footer-btc-address:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-right {
  display: flex;
  gap: 1.5rem;
}

.footer-right a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--gold);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* A silent edition is a gap in the wire, not a broken query */
.empty-state.wire-silent {
  border-style: solid;
  border-color: var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 2rem 1rem;
}

.empty-state.wire-silent h3 {
  color: var(--text-muted);
  letter-spacing: 0.14em;
  font-size: 0.9rem;
}

/* Featured Investigations Grid */
.featured-section,
.edition-archives-section {
  margin-bottom: 2rem;
}

.investigations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.investigation-card {
  background: linear-gradient(155deg, rgba(18, 22, 28, 0.98), rgba(12, 15, 20, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-top: 3px double var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.investigation-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(212, 175, 55, 0.2);
}

.inv-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.inv-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  line-height: 1.35;
}

.inv-desk-row {
  margin-bottom: 0.1rem;
}

.inv-desk {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-glow);
  padding: 0.18rem 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: inline-block;
  font-size: 0.7rem;
  line-height: 1.3;
}

.inv-chrono-row {
  color: var(--cyan, #00ffd2);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.inv-chrono {
  color: var(--cyan, #00ffd2);
  letter-spacing: 0.04em;
}

.inv-date-row {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.inv-time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.inv-share-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.inv-share-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}

.inv-shortlink-btn {
  background: rgba(0, 255, 210, 0.08);
  border: 1px solid rgba(0, 255, 210, 0.35);
  color: var(--cyan, #00ffd2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.inv-shortlink-btn:hover {
  background: rgba(0, 255, 210, 0.22);
  border-color: #00ffd2;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(0, 255, 210, 0.3);
}

.inv-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.inv-title-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.inv-title-link:hover {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.inv-summary {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.inv-actions-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.inv-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #0a0c0e;
  background: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.inv-read-btn:hover {
  background: #f1cf68;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}

.inv-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.inv-popup-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* Dispatch Card Action Footer */
.dispatch-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dispatch-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-read-page {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: #07090c;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-read-page:hover {
  background: #f1cf68;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.btn-open-popup {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-open-popup:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.dispatch-tab-link {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 0.2s;
}

.dispatch-tab-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Share control: same footprint as the old direct-URL anchor, but clickable. */
.dispatch-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: transparent;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.dispatch-share-btn:hover {
  color: #fff;
  border-color: var(--cyan, #00ffd2);
  background: rgba(0, 255, 210, 0.06);
}

.dispatch-share-btn .share-glyph {
  font-size: 0.82rem;
  line-height: 1;
  color: var(--cyan, #00ffd2);
}

.dispatch-share-btn.shared {
  color: var(--cyan, #00ffd2);
  border-color: var(--cyan, #00ffd2);
}

/* Interactive Modal / Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(4, 6, 9, 0.88);
  backdrop-filter: blur(10px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  background: linear-gradient(165deg, #10141a 0%, #07090c 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-top: 3px double var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.15);
  overflow: hidden;
  animation: scaleUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUpModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.75rem 1.15rem 1.75rem;
  border-bottom: 3px double rgba(212, 175, 55, 0.35);
  background: rgba(14, 18, 24, 0.98);
}

.modal-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.modal-meta-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-header-btn-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  flex-wrap: wrap;
}

.modal-action-rect-btn {
  flex: 1;
  max-width: 240px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.modal-action-rect-btn.briefcase-btn {
  color: #00ffd2;
  border: 1px solid rgba(0, 255, 210, 0.45);
  background: rgba(0, 255, 210, 0.08);
}

.modal-action-rect-btn.briefcase-btn:hover {
  background: rgba(0, 255, 210, 0.22);
  border-color: #00ffd2;
  box-shadow: 0 0 12px rgba(0, 255, 210, 0.35);
  color: #ffffff;
}

.modal-action-rect-btn.briefcase-btn.in-briefcase {
  background: rgba(0, 255, 210, 0.25);
  border-color: #00ffd2;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 255, 210, 0.4);
}

.modal-action-rect-btn.share-btn {
  color: #00ffd2;
  border: 1px solid rgba(0, 255, 210, 0.45);
  background: rgba(0, 255, 210, 0.08);
}

.modal-action-rect-btn.share-btn:hover {
  background: rgba(0, 255, 210, 0.22);
  border-color: #00ffd2;
  box-shadow: 0 0 12px rgba(0, 255, 210, 0.35);
  color: #ffffff;
}

.modal-action-rect-btn.open-btn {
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
}

.modal-action-rect-btn.open-btn:hover {
  background: #D4AF37;
  color: #0a0c0e;
  border-color: #D4AF37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--gold);
}

.modal-body {
  padding: 2.25rem;
  overflow-y: auto;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.8;
}

/* Guard: suppress floating navigation headers or ambient wrappers when loaded into modal */
.modal-body .wire-header,
.modal-body .ambient-glow,
.modal-body .grid-overlay,
.modal-body .chrono-hover-card {
  display: none !important;
}

.modal-body .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  max-width: 100%;
  margin-bottom: 1.25rem;
}

.modal-body .desk-pill {
  white-space: normal;
  max-width: 100%;
  line-height: 1.4;
  box-sizing: border-box;
}

.modal-body h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--gold);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--copper);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-body p {
  margin-bottom: 1.4rem;
  text-align: justify;
}

.modal-body blockquote {
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.06);
  padding: 1.15rem 1.4rem;
  margin: 1.6rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.modal-body ul, .modal-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.modal-body th, .modal-body td {
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 0.9rem;
}

.modal-body th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--font-mono);
}

.modal-body td {
  background: rgba(0, 0, 0, 0.2);
}

.modal-body pre {
  background: #040507;
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: 'Consolas', 'Courier New', 'Liberation Mono', 'DejaVu Sans Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: pre;
  word-wrap: normal;
  tab-size: 2;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  margin: 1.5rem 0;
}

.modal-body pre code {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0;
  white-space: pre;
  word-wrap: normal;
}

/* ============================================================
   A-D HYBRID GRAPHICS SYSTEM INSIDE WIRE MODAL READER
   ============================================================ */
.modal-body .tbw-panel {
  background: #06080a;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-left: 3px solid var(--copper, #c87d4b);
  border-radius: var(--radius-sm, 3px);
  margin: 1.4rem 0 1.75rem;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.55);
}

.modal-body .tbw-panel-header {
  background: rgba(200, 125, 75, 0.11);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  padding: 0.7rem 1rem;
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  overflow-wrap: break-word;
}

.modal-body .tbw-panel-body {
  padding: 0.85rem 1rem;
}

.modal-body .tbw-vector-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.modal-body .tbw-vector-list li {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #cfd6de;
  padding-left: 1.15rem;
  position: relative;
  overflow-wrap: anywhere;
}

.modal-body .tbw-vector-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--copper, #c87d4b);
}

.modal-body .tbw-kv-grid {
  display: grid;
  gap: 0.7rem;
}

.modal-body .tbw-kv-row {
  display: grid;
  grid-template-columns: minmax(150px, 225px) 1fr;
  gap: 0.45rem 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-body .tbw-kv-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-body .tbw-kv-key {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--copper, #c87d4b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-body .tbw-kv-val {
  font-size: 0.94rem;
  line-height: 1.5;
  color: #e4e8ed;
  overflow-wrap: break-word;
}

.modal-body .tbw-table-wrap {
  margin: 1.4rem 0 1.8rem;
}

.modal-body .tbw-table-caption {
  background: rgba(200, 125, 75, 0.12);
  border: 1px solid var(--border-subtle, rgba(212, 175, 55, 0.25));
  border-left: 3px solid var(--copper, #c87d4b);
  border-bottom: none;
  padding: 0.68rem 0.95rem;
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
}

.modal-body table.tbw-responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.92rem;
}

.modal-body table.tbw-responsive-table th,
.modal-body table.tbw-responsive-table td {
  border: 1px solid var(--border-subtle, rgba(212, 175, 55, 0.22));
  padding: 0.72rem 0.9rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.modal-body table.tbw-responsive-table th {
  background: rgba(16, 20, 26, 0.92);
  color: var(--gold, #d4af37);
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-body table.tbw-responsive-table td {
  background: rgba(10, 12, 14, 0.55);
}

.modal-body .tbw-svg-frame {
  background: #06080a;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-left: 3px solid var(--copper, #c87d4b);
  border-radius: var(--radius-sm, 3px);
  padding: 0.65rem;
  margin: 1.4rem 0 1.8rem;
}

.modal-body .tbw-svg-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

.modal-body pre.tbw-scaled-pre {
  font-size: clamp(0.46rem, 1.02vw, 0.78rem) !important;
  overflow-x: auto;
}

@media (max-width: 680px) {
  .modal-body .tbw-kv-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .modal-body table.tbw-responsive-table thead {
    display: none;
  }

  .modal-body table.tbw-responsive-table,
  .modal-body table.tbw-responsive-table tbody,
  .modal-body table.tbw-responsive-table tr,
  .modal-body table.tbw-responsive-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .modal-body table.tbw-responsive-table tr {
    margin-bottom: 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-left: 3px solid var(--copper, #c87d4b);
    background: rgba(10, 12, 14, 0.6);
  }

  .modal-body table.tbw-responsive-table td {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.6rem 0.85rem;
  }

  .modal-body table.tbw-responsive-table td:last-child {
    border-bottom: none;
  }

  .modal-body table.tbw-responsive-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--copper, #c87d4b);
    margin-bottom: 0.22rem;
  }
}

/* ============================================================
   THE GENESIS CHRONOMETER — AUTONOMOUS TIMEKEEPING STYLES
   ============================================================ */
.chrono-trigger-btn {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.chrono-trigger-btn:hover {
  filter: brightness(1.2);
}

.chrono-trigger-btn:hover .label {
  color: #D4AF37;
}

.chrono-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.48rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(212, 175, 55, 0.14);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.18);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 0.35rem;
  vertical-align: middle;
  line-height: 1;
  box-sizing: border-box;
}

.chrono-dialog {
  max-width: 980px;
}

.chrono-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  color: var(--text-primary);
  font-family: var(--font-main);
}

.chrono-hero-card {
  background: rgba(0, 255, 210, 0.04);
  border: 1px solid rgba(0, 255, 210, 0.35);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 20px rgba(0, 255, 210, 0.03);
}

.chrono-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.chrono-hero-vector {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #00ffd2;
  text-shadow: 0 0 12px rgba(0, 255, 210, 0.4);
}

.chrono-hero-cadence {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

.chrono-grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.chrono-stat-box {
  background: rgba(10, 14, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  text-align: center;
}

.chrono-stat-box .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.chrono-stat-box .stat-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.chrono-table-wrapper {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.chrono-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.chrono-table th {
  background: rgba(20, 26, 36, 0.9);
  padding: 0.6rem 0.8rem;
  color: var(--gold);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.chrono-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chrono-table tr:hover {
  background: rgba(0, 255, 210, 0.03);
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 1rem 0;
  background: rgba(10, 14, 20, 0.9);
  padding: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.calendar-header-cell {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  padding: 4px;
  font-weight: 700;
}

.calendar-day-cell {
  background: rgba(18, 24, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  padding: 6px 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: all 0.2s ease;
}

.calendar-day-cell.active-day {
  background: rgba(0, 255, 210, 0.2);
  border-color: #00ffd2;
  color: #00ffd2;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 255, 210, 0.3);
}

.calendar-day-cell.retarget-day {
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.08);
}

.converter-panel {
  background: rgba(15, 20, 28, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.5rem;
}

.converter-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.converter-input {
  background: #080b10;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex: 1;
  min-width: 220px;
}

.converter-btn {
  background: rgba(0, 255, 210, 0.15);
  color: #00ffd2;
  border: 1px solid #00ffd2;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
}

.converter-result {
  margin-top: 0.75rem;
  padding: 0.6rem;
  background: #080b10;
  border-left: 3px solid #00ffd2;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #00ffd2;
}

/* ============================================================
   PROGRESSIVE WEB APP (PWA) & MOBILE NATIVE APPLICATION SYSTEM
   ============================================================ */

/* Bottom Navigation Bar for Mobile Devices */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 11, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 99999;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item .mob-nav-icon {
  font-size: 1.15rem;
  margin-bottom: 2px;
  line-height: 1;
}

.mobile-nav-item:hover,
.mobile-nav-item.active,
.mobile-nav-item:focus {
  color: var(--gold);
}

.mobile-nav-item.pwa-install-trigger {
  color: var(--gold);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
}

.mobile-nav-item.mobile-nav-share {
  color: #00ffd2;
  border: 1px solid rgba(0, 255, 210, 0.4);
  background: rgba(0, 255, 210, 0.1);
}

/* Offline Badge */
.pwa-offline-badge {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #a83c3c;
  color: #fff;
  text-align: center;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  z-index: 100000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* PWA iOS Instruction Modal */
.pwa-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100001;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pwa-modal-card {
  background: #0d1014;
  border: 1px solid var(--border-active);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px var(--gold-glow);
  border-radius: var(--radius-md);
  max-width: 420px;
  width: 100%;
  padding: 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  animation: pwaSlideUp 0.25s ease-out;
}

@keyframes pwaSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pwa-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.pwa-modal-header h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin: 0;
}

.pwa-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.pwa-modal-body p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.pwa-modal-body ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pwa-modal-body li {
  margin-bottom: 0.4rem;
}

.pwa-modal-body .share-icon,
.pwa-modal-body .add-icon {
  display: inline-block;
  padding: 0 4px;
  color: var(--gold);
  font-weight: bold;
}

.pwa-modal-tip {
  background: rgba(212, 175, 55, 0.07);
  border-left: 3px solid var(--gold);
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.pwa-confirm-btn {
  width: 100%;
  margin-top: 1.25rem;
  background: var(--gold);
  color: #07090c;
  border: none;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.pwa-confirm-btn:hover {
  opacity: 0.9;
}

/* Header Install Trigger Button */
.header-install-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-active);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-install-btn:hover {
  background: var(--gold);
  color: #07090c;
}

/* Responsive Overrides for Mobile App View */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
  }
  
  .mobile-bottom-nav {
    display: flex;
  }
  
  .header-install-btn {
    display: inline-flex;
  }

  /* Fix controls and dropdowns on mobile to prevent overflow */
  .command-bar-row {
    flex-direction: column !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .command-bar-row .search-box {
    min-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .edition-selector-card,
  .desk-selector-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.4rem !important;
    padding: 0.5rem 0.75rem !important;
  }

  .edition-label-group,
  .desk-label-group {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .edition-dropdown-wrapper,
  .desk-dropdown-wrapper {
    width: 100% !important;
    display: flex !important;
    position: relative !important;
  }

  .edition-dropdown,
  .desk-dropdown {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.76rem !important;
    padding-right: 2rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .modal-backdrop {
    padding: 0.65rem 0.65rem calc(70px + env(safe-area-inset-bottom, 0px));
    align-items: stretch;
  }

  .modal-dialog {
    max-height: 100%;
    height: 100%;
  }

  .modal-header {
    padding: 0.75rem 0.9rem 0.8rem;
    gap: 0.6rem;
    flex-shrink: 0;
  }

  .modal-header-btn-row {
    gap: 0.45rem;
  }

  .modal-header-btn-row .modal-action-rect-btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    height: 36px;
    padding: 0 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .modal-body {
    padding: 1.1rem 1rem 2rem;
  }
}



/* ============================================================
   CANONICAL DOSSIER MANDATE SEAL & FOOTER NAVIGATION
   (Ensures identical presentation across standalone pages & modals)
   ============================================================ */
.dossier-mandate-seal {
  margin: 3.5rem 0 2rem;
  padding: 1.5rem 1.2rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, rgba(7, 9, 12, 0.95) 75%);
  border: 1.5px solid var(--gold, #d4af37);
  border-radius: var(--radius-sm, 3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono, 'Space Mono', monospace);
}

.seal-header {
  color: var(--gold, #d4af37);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.seal-mandate {
  color: var(--text-primary, #e2d9c8);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.seal-telemetry {
  color: #00ffd2;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.article-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 3px double rgba(212, 175, 55, 0.35);
  flex-wrap: wrap;
}

.back-btn, .library-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm, 3px);
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  line-height: 1;
}

.back-btn {
  background: rgba(16, 20, 26, 0.7);
  border: 1px solid var(--border-subtle, rgba(212, 175, 55, 0.25));
  color: var(--text-primary, #e2d9c8);
  order: 1;
}

.back-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold, #d4af37);
  color: var(--gold, #d4af37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.library-btn {
  background: var(--gold-glow, rgba(212, 175, 55, 0.1));
  border: 1px solid var(--gold, #d4af37);
  color: var(--gold, #d4af37);
  order: 3;
}

.library-btn:hover {
  background: var(--gold, #d4af37);
  color: #0a0c0e;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.article-footer-nav .share-btn {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.8rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold, #d4af37);
  border-radius: var(--radius-sm, 3px);
  cursor: pointer;
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.article-footer-nav .share-btn:hover {
  background: var(--gold, #d4af37);
  color: #0a0c0e;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

/* Briefcase Action Buttons */
.inv-briefcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 255, 210, 0.08);
  border: 1px solid rgba(0, 255, 210, 0.35);
  color: var(--cyan, #00ffd2);
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm, 2px);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.inv-briefcase-btn:hover {
  background: rgba(0, 255, 210, 0.2);
  border-color: #00ffd2;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 255, 210, 0.25);
}

.briefcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 255, 210, 0.08);
  border: 1px solid rgba(0, 255, 210, 0.35);
  color: #00ffd2;
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.55rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.briefcase-btn:hover {
  background: rgba(0, 255, 210, 0.2);
  border-color: #00ffd2;
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 255, 210, 0.3);
}

.briefcase-nav-pill {
  cursor: pointer;
  background: rgba(0, 255, 210, 0.08);
  border: 1px solid rgba(0, 255, 210, 0.35);
  color: #00ffd2;
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.briefcase-nav-pill:hover {
  background: rgba(0, 255, 210, 0.2);
  border-color: #00ffd2;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 255, 210, 0.25);
}

/* ── Mobile legibility floor (WCAG: no label below 11px) ── */
@media (max-width: 768px) {
  .site-tag,
  .label,
  .label-event, .label-cover, .label-breakdown, .label-evidence,
  .nav-pill,
  .briefcase-count-pill,
  .briefcase-nav-pill,
  .chrono-tag {
    font-size: 0.75rem;
  }
}

/* --- Wire capture: the door in the footer --- */
.wire-capture {
  border-top: 1px solid rgba(200, 168, 96, 0.28);
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  max-width: 38rem;
}
.wire-capture-k {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: #c8a860;
  margin-bottom: 0.5rem;
}
.wire-capture p {
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 0.78;
  margin: 0 0 0.7rem;
}
.wire-form {
  display: flex;
  gap: 0;
  max-width: 26rem;
  border: 1px solid rgba(200, 168, 96, 0.4);
}
.wire-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 0.86rem;
  padding: 0.6rem 0.75rem;
  outline: none;
}
.wire-form input[type="email"]::placeholder { opacity: 0.45; }
.wire-form button {
  flex: 0 0 auto;
  background: #c8a860;
  color: #0b0b0b;
  border: 0;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  padding: 0 1rem;
  cursor: pointer;
}
.wire-form button:hover { background: #e0c483; }
.wire-form button[disabled] { opacity: 0.55; cursor: default; }
.wire-form-status {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  min-height: 1.1rem;
  margin: 0.5rem 0 0;
  color: #c8a860;
}
.wire-channels {
  margin-top: 0.6rem;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.wire-channels a { color: inherit; opacity: 0.65; text-decoration: none; }
.wire-channels a:hover { opacity: 1; color: #c8a860; }
.wire-channels span { opacity: 0.3; }
