:root {
  --bg: #05070c;
  --panel: #0c1018;
  --panel-2: #121826;
  --panel-3: #171f31;
  --text: #eef2fb;
  --muted: #98a2ba;
  --accent: #f59e0b;
  --accent-2: #6ea8fe;
  --green: #22c55e;
  --red: #ef4444;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 18px 40px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.12), transparent 22%),
    radial-gradient(circle at 85% 12%, rgba(110, 168, 254, 0.10), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(245, 158, 11, 0.05), transparent 16%),
    linear-gradient(180deg, #05070c 0%, #0b111b 100%);
  color: var(--text);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.12;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.10), transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(110, 168, 254, 0.08), transparent 18%),
    radial-gradient(circle at 50% 75%, rgba(139, 92, 246, 0.06), transparent 20%);
  opacity: 0.7;
  transform: translateZ(0);
  will-change: transform, opacity;
  animation: ambientShift 24s ease-in-out infinite alternate;
}

.app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.09), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(110, 168, 254, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 22%),
    linear-gradient(180deg, rgba(10, 14, 22, 0.95), rgba(8, 12, 20, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: 8px;
  pointer-events: none;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.035), transparent 18%, transparent 82%, rgba(255,255,255,0.03));
  opacity: 0.32;
}

.hero-copy {
  flex: 1;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-left: 3px solid var(--accent);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffd089;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

h1 {
  margin: 0 0 8px;
  font-size: 2.55rem;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: none;
  white-space: nowrap;
}

h1 span {
  display: inline;
  white-space: nowrap;
}

h1 span + span::before {
  content: " ";
}

.subtitle, .panel-header p, .status-card, .item-meta, .empty {
  color: var(--muted);
}

.subtitle {
  max-width: 62ch;
  font-size: 0.96rem;
  line-height: 1.55;
}

.hero-pills {
  display: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7dff0;
  background: rgba(255,255,255,0.035);
  border: 1px dashed rgba(255,255,255,0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.status-card,
.panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%),
    linear-gradient(180deg, rgba(12, 16, 24, 0.97), rgba(10, 14, 22, 0.98));
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.status-card {
  min-width: 260px;
  padding: 14px 16px;
  line-height: 1.5;
}

/* Demote the header status block so it reads as a utility, not a hero module. */
/* Slim status bar in the header (replaces the large card). */
.status-pillbar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12, 16, 24, 0.35);
  box-shadow: none;
  align-self: flex-start;
}

/* (unused) kept for quick experimentation */
.status-pillbar-inline {
  margin-top: 12px;
}

.status-pillbar-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(184, 212, 255, 0.8);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-right: 2px;
}

.status-pillbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.status-pillbar-item strong {
  font-size: 0.74rem;
  color: rgba(226, 232, 240, 0.92);
}

.refresh-status-item {
  position: relative;
  overflow: hidden;
  padding-bottom: 7px;
  border-color: rgba(245, 158, 11, 0.15);
  background: rgba(245, 158, 11, 0.045);
}

.refresh-status-item strong {
  color: rgba(255, 208, 137, 0.96);
}

.refresh-progress {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.refresh-progress span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(245,158,11,0.95), rgba(255,208,137,0.72));
  transition: width 1s linear;
}

.mobile-status-line,
.mobile-bottom-nav,
.mobile-page-title,
.mobile-state-strip {
  display: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.status-live {
  color: rgba(184, 255, 207, 0.95);
}

.status-card-label {
  margin-bottom: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(184, 212, 255, 0.85);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}

.status-row span {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.status-row strong {
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.92);
}

.status-row:last-child {
  border-bottom: 0;
}

.live-pill {
  color: #b8ffcf;
  background: rgba(34, 197, 94, 0.12);
  border: 1px dashed rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.jump-nav {
  display: none;
  position: sticky;
  top: 10px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(10, 14, 22, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}

.jump-nav-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 4px 2px;
}

.jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(226, 232, 240, 0.88);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.jump-nav a::after {
  content: "→";
  opacity: 0.6;
}

.jump-nav a:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}

/* Ensure anchor jumps don't hide section headers under the sticky nav. */
:root { scroll-padding-top: 78px; }

.ticker-bar {
  margin-bottom: 14px;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%),
    linear-gradient(180deg, rgba(12, 16, 24, 0.97), rgba(10, 14, 22, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.ticker-bar::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255,255,255,0.05);
  border-radius: 6px;
  pointer-events: none;
}

.ticker-track-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-width: max-content;
  padding: 10px 16px;
  animation: ticker-scroll 42s linear infinite;
  will-change: transform;
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

/* Desk Read: top-level direction layer */
.desk-read-panel {
  margin-top: 12px;
  margin-bottom: 0;
}

.desk-read {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 12px;
  align-items: stretch;
}

.desk-read-lead,
.desk-read-cues {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,24,38,.86), rgba(9,13,24,.94));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 14px 30px rgba(0,0,0,0.13);
  backdrop-filter: blur(14px);
}

.desk-read-lead {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-left: 4px solid rgba(255, 208, 137, 0.55);
}

.desk-read-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background: radial-gradient(circle at 88% 18%, rgba(255,208,137,0.18), transparent 38%);
}

.desk-read-up { border-left-color: rgba(34,197,94,0.58); }
.desk-read-down { border-left-color: rgba(239,68,68,0.58); }
.desk-read-up::before { background: radial-gradient(circle at 88% 18%, rgba(34,197,94,0.18), transparent 38%); }
.desk-read-down::before { background: radial-gradient(circle at 88% 18%, rgba(239,68,68,0.18), transparent 38%); }

.desk-read-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 7px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 208, 137, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.desk-read-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.15rem, 1.8vw, 1.7rem);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: rgba(241,245,249,0.96);
  max-width: 70ch;
}

.desk-read-why {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  max-width: 82ch;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(199, 208, 228, 0.9);
}

.desk-read-cues {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.desk-read-cue {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.045);
}

.desk-read-cue span {
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148,163,184,0.82);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.desk-read-cue strong {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(226,232,240,0.94);
}

.desk-read-bias-up { color: rgba(134,239,172,0.96) !important; }
.desk-read-bias-down { color: rgba(252,165,165,0.96) !important; }
.desk-read-bias-neutral { color: rgba(255,208,137,0.92) !important; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}

.ticker-symbol {
  color: rgba(226, 232, 240, 0.95);
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.ticker-price {
  color: rgba(203, 213, 225, 0.9);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.ticker-change {
  font-variant-numeric: tabular-nums;
}

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

@keyframes ambientShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.62;
  }
  50% {
    transform: translate3d(-2%, 1.5%, 0) scale(1.04);
    opacity: 0.78;
  }
  100% {
    transform: translate3d(2%, -1.5%, 0) scale(1.08);
    opacity: 0.68;
  }
}

/* Secondary disclosure panels: reduce above-the-fold overload */
.secondary-panel,
.secondary-ops {
  margin-bottom: 12px;
}

/* Product focus mode: default view is Top Story + Market Cards + Watchlist. */
.desk-read-disclosure,
.command-desk-panel.secondary-panel,
.secondary-ops,
.delta-panel.secondary-panel,
.intelligence-disclosure {
  display: none;
}

.secondary-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,24,38,.72), rgba(9,13,24,.84));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
  color: rgba(226,232,240,0.92);
}

.secondary-summary::-webkit-details-marker { display: none; }

.secondary-summary::after {
  content: "+";
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255,208,137,0.78);
}

.secondary-panel[open] > .secondary-summary::after,
.secondary-ops[open] > .secondary-summary::after {
  content: "−";
}

.secondary-summary span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,208,137,0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.secondary-summary small {
  margin-left: auto;
  font-size: 0.72rem;
  color: rgba(148,163,184,0.84);
}

.secondary-panel > .panel-header,
.secondary-panel > .delta-grid,
.secondary-panel > .command-desk-grid,
.secondary-ops > .ops-grid,
.intelligence-disclosure > .intelligence-grid {
  margin-top: 12px;
}

.command-desk-panel {
  margin-top: 12px;
  margin-bottom: 12px;
}

.command-desk-panel,
.planner-panel,
.auto-brief-panel {
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(255,255,255,0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.035),
    0 14px 28px rgba(0,0,0,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent 16%),
    linear-gradient(180deg, rgba(13, 17, 28, 0.96), rgba(10, 14, 22, 0.99));
}

.command-desk-panel::before,
.planner-panel::before,
.auto-brief-panel::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255,255,255,0.06);
  pointer-events: none;
  border-radius: 6px;
}

.command-desk-panel .panel-header h2,
.planner-panel .panel-header h2,
.auto-brief-panel .panel-header h2 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.command-desk-panel .panel-header p,
.planner-panel .panel-header p,
.auto-brief-panel .panel-header p {
  color: #aeb9d0;
}

.command-desk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.desk-card {
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 11px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.012), transparent 16%),
    rgba(14, 18, 28, 0.82);
  display: grid;
  gap: 8px;
  position: relative;
}

.desk-card::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.18);
  opacity: 0.9;
}

.desk-card-title {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d8e0f1;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.desk-card-rows {
  display: grid;
  gap: 6px;
}

.desk-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 140px;
  grid-template-areas:
    "label text meta";
  align-items: start;
  column-gap: 10px;
  row-gap: 2px;
  text-decoration: none;
  color: var(--text);
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* For rows where the title should have more space: stack meta below the title. */
.desk-row-stack {
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-areas:
    "label text"
    "meta meta";
}

.desk-row-stack .desk-row-label {
  align-self: start;
}

.desk-row-stack .desk-row-meta {
  text-align: left;
  justify-self: start;
  opacity: 0.9;
}

.desk-card-rows > :first-child {
  border-top: none;
  padding-top: 0;
}

.desk-row-label {
  grid-area: label;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #93a2bd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.desk-row-text {
  grid-area: text;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #e9eefc;
  font-weight: 650;
  min-width: 0;
}

/* Default: keep single-line rows tidy. */
.desk-row:not(.desk-row-stack) .desk-row-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stacked rows: allow the main text to wrap to two lines before truncating. */
.desk-row-stack .desk-row-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.desk-row-meta {
  grid-area: meta;
  color: #9aa8c2;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: right;
  justify-self: end;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desk-row-up .desk-row-text { color: #d4f4e6; }
.desk-row-down .desk-row-text { color: #ffd5d5; }

.desk-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.desk-row-stack .desk-row-meta {
  opacity: 0.75;
}

@media (max-width: 560px) {
  .desk-row {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "label text"
      "meta meta";
  }
  .desk-row-meta {
    text-align: left;
    justify-self: start;
    opacity: 0.9;
  }
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

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

.agenda-column {
  display: grid;
  gap: 7px;
}

.agenda-title {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d8e0f1;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.agenda-list {
  display: grid;
  gap: 6px;
}

.agenda-item {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 7px;
  background: rgba(255,255,255,0.025);
  border: 1px dashed rgba(255,255,255,0.12);
}
.agenda-item-label {
  font-size: 0.79rem;
  line-height: 1.35;
  color: var(--text);
  font-weight: 600;
}

.agenda-item-meta {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a7b4cb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.agenda-item-data { border-left: 3px solid rgba(167, 139, 250, 0.55); }
.agenda-item-rates { border-left: 3px solid rgba(110, 168, 254, 0.55); }
.agenda-item-ai { border-left: 3px solid rgba(34, 197, 94, 0.55); }
.agenda-item-macro { border-left: 3px solid rgba(245, 158, 11, 0.55); }

.auto-brief {
  display: grid;
  gap: 10px;
}

.auto-brief-headline {
  font-size: 0.86rem;
  line-height: 1.48;
  color: #dbe6f8;
  font-weight: 600;
  padding: 9px 10px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.025);
  position: relative;
}

.auto-brief-headline::before {
  content: 'OUTPUT';
  position: absolute;
  top: -9px;
  left: 10px;
  padding: 0 5px;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ab4d5;
  background: #0d111c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.auto-brief-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auto-brief-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7dff0;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.auto-brief-list {
  display: grid;
  gap: 6px;
}

.auto-brief-item {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #c7d3ea;
  padding-left: 2px;
}

.delta-panel {
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(255,255,255,0.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.delta-panel::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255,255,255,0.05);
  border-radius: 6px;
  pointer-events: none;
}

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

.delta-card {
  border: 1px dashed rgba(255,255,255,0.13);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 18%),
    rgba(16, 21, 32, 0.92);
  position: relative;
}

.delta-card::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-right: 1px solid rgba(255,255,255,0.16);
}

.delta-title {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a9b6cc;
  margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.delta-value {
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 700;
}

.delta-card.up .delta-value,
.delta-card.high .delta-value {
  color: #8ef0bb;
}

.delta-card.down .delta-value {
  color: #ff9c9c;
}

.architecture-layout {
  display: grid;
  gap: 14px;
  align-items: start;
}

.execution-grid { order: 1; }
.intelligence-disclosure { order: 2; }

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.execution-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
  gap: 12px;
  align-items: start;
  max-width: 100%;
}

.execution-sidebar {
  display: grid;
  gap: 12px;
  align-self: start;
  min-width: 0;
  max-width: 100%;
}

.intelligence-panel,
.watchlist-shell {
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(255,255,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.intelligence-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.intelligence-panel::before,
.watchlist-shell::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255,255,255,0.05);
  border-radius: 6px;
  pointer-events: none;
}

.intelligence-panel .panel-header h2,
.watchlist-shell .panel-header h2 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.08em;
}

.politics-panel { background: linear-gradient(180deg, rgba(245,158,11,0.035), transparent 18%), rgba(10,14,22,0.98); }
.ai-panel { background: linear-gradient(180deg, rgba(110,168,254,0.04), transparent 18%), rgba(10,14,22,0.98); }
.tech-panel { background: linear-gradient(180deg, rgba(139,92,246,0.04), transparent 18%), rgba(10,14,22,0.98); }

.execution-main {
  min-width: 0;
}

.watchlist-shell {
  min-width: 0;
  max-width: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent 16%),
    linear-gradient(180deg, rgba(13, 17, 28, 0.96), rgba(10, 14, 22, 0.99));
}

.panel {
  padding: 14px;
  align-self: start;
}

.wide {
  grid-column: 1 / -1;
}

.panel-header h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel-header p {
  margin: 0 0 11px;
  font-size: 0.9rem;
}

.panel-header-split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.market-status-chip {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 6px;
  width: fit-content;
  margin: 0 0 0 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  background: rgba(245, 158, 11, 0.055);
  color: rgba(255, 208, 137, 0.86);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.market-status-chip::before {
  display: none;
}

.market-status-chip.session-open {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.09);
  color: rgba(187, 247, 208, 0.92);
}

.market-status-chip.session-pre,
.market-status-chip.session-after {
  border-color: rgba(110, 168, 254, 0.22);
  background: rgba(110, 168, 254, 0.09);
  color: rgba(191, 219, 254, 0.92);
}

.market-status-chip.session-closed {
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.075);
  color: rgba(255, 208, 137, 0.9);
}

.market-strip {
  white-space: nowrap;
  padding: 8px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.08);
  color: #ffd089;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}

.session-open {
  border-left-color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  color: #a7f3c0;
}

.session-open .session-dot {
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.session-pre,
.session-after {
  border-left-color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

.session-closed {
  border-left-color: #64748b;
  background: rgba(100, 116, 139, 0.08);
  color: #94a3b8;
}

.politics-strip {
  border-left-color: #f59e0b;
}

.ai-strip {
  border-left-color: #6ea8fe;
  background: rgba(110, 168, 254, 0.08);
  color: #b8d4ff;
}

.tech-strip {
  border-left-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
  color: #d4c2ff;
}

.crosscurrents-strip {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  color: #bbf7d0;
}

.command-strip {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  color: #ffd089;
}

.calendar-strip {
  border-left-color: #a78bfa;
  background: rgba(167, 139, 250, 0.08);
  color: #ddd6fe;
}

.brief-strip {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  color: #bbf7d0;
}

.alerts-rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.016), transparent 18%),
    linear-gradient(180deg, rgba(12, 16, 24, 0.96), rgba(10, 14, 22, 0.98));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.alerts-rail::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255,255,255,0.05);
  border-radius: 6px;
  pointer-events: none;
}

.alert-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.alert-preset-chip {
  appearance: none;
  border: 1px dashed rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.alert-preset-chip:hover {
  background: rgba(255,255,255,0.08);
}

.alert-preset-chip.active {
  color: #dbe9ff;
  border-color: rgba(110,168,254,0.32);
  background: rgba(110,168,254,0.12);
}

.alert-empty-state {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-size: 0.74rem;
}

.alert-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px dashed rgba(255,255,255,0.14);
  border-left: 3px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.05);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.alert-item:hover {
  transform: translateY(-1px);
}

.alert-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 0.58rem;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.alert-text {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-source {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--muted);
}

.alert-geopolit {
  background: rgba(248, 113, 113, 0.07);
  border-color: rgba(248, 113, 113, 0.2);
  border-left-color: #f87171;
}

.alert-geopolit:hover {
  background: rgba(248, 113, 113, 0.12);
}

.alert-geopolit .alert-label,
.alert-geopolit .alert-text {
  color: #f0d4d4;
}

.alert-fed,
.alert-rates {
  background: rgba(110, 168, 254, 0.07);
  border-color: rgba(110, 168, 254, 0.18);
  border-left-color: #6ea8fe;
}

.alert-fed:hover,
.alert-rates:hover {
  background: rgba(110, 168, 254, 0.11);
}

.alert-fed .alert-label,
.alert-fed .alert-text,
.alert-rates .alert-label,
.alert-rates .alert-text {
  color: #d9e8ff;
}

.alert-data {
  background: rgba(94, 234, 212, 0.06);
  border-color: rgba(94, 234, 212, 0.16);
  border-left-color: #5eead4;
}

.alert-data:hover {
  background: rgba(94, 234, 212, 0.1);
}

.alert-data .alert-label,
.alert-data .alert-text {
  color: #d8fff8;
}

.alert-oil {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
  border-left-color: #f59e0b;
}

.alert-oil:hover {
  background: rgba(245, 158, 11, 0.12);
}

.alert-oil .alert-label,
.alert-oil .alert-text {
  color: #ffe6bc;
}

.alert-equities {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.18);
  border-left-color: #22c55e;
}

.alert-equities:hover {
  background: rgba(34, 197, 94, 0.11);
}

.alert-equities .alert-label,
.alert-equities .alert-text {
  color: #dfffe8;
}

.alert-ai,
.alert-chips {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.18);
  border-left-color: #a855f7;
}

.alert-ai:hover,
.alert-chips:hover {
  background: rgba(168, 85, 247, 0.12);
}

.alert-ai .alert-label,
.alert-ai .alert-text,
.alert-chips .alert-label,
.alert-chips .alert-text {
  color: #f0dfff;
}

.alert-politics {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
  border-left-color: #fbbf24;
}

.alert-politics:hover {
  background: rgba(245, 158, 11, 0.12);
}

.alert-politics .alert-label,
.alert-politics .alert-text {
  color: #ffe8c2;
}

.alert-general {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  border-left-color: rgba(255,255,255,0.24);
}

.alert-general .alert-label,
.alert-general .alert-text {
  color: #e6ebf7;
}

.market-narrative {
  margin-bottom: 8px;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(199, 208, 228, 0.94);
  background: linear-gradient(180deg, rgba(18,24,38,.72), rgba(9,13,24,.82));
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid rgba(255, 208, 137, 0.28);
  backdrop-filter: blur(12px);
}

/* ── Regime History Trail ─────────────────────────────────────────────── */
.regime-history {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.055);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.regime-history::-webkit-scrollbar {
  display: none;
}

.regime-history-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.regime-history-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.regime-dot {
  font-size: 0.64rem;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.055);
  color: var(--muted);
  white-space: nowrap;
}

.regime-dot-up { color: var(--up); border-color: rgba(34,197,94,0.2); background: rgba(34,197,94,0.06); }
.regime-dot-down { color: var(--down); border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.06); }
.regime-dot-neutral { color: #b0b8cc; }

.regime-dot-current {
  font-weight: 800;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

.regime-arrow {
  font-size: 0.76rem;
  font-weight: 900;
  color: rgba(255, 208, 137, 0.55);
  text-shadow: 0 0 10px rgba(255, 208, 137, 0.08);
}

/* ── Event Calendar ───────────────────────────────────────────────────── */
.event-calendar {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 11px;
  margin-bottom: 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  border-left: 3px solid rgba(168, 148, 255, 0.35);
  flex-wrap: wrap;
}

.event-cal-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4b5fd;
  white-space: nowrap;
  padding-top: 1px;
}

.event-cal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.event-cal-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 0.7rem;
  white-space: nowrap;
}

.event-cal-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.07);
  color: var(--muted);
}

.event-cal-rates .event-cal-tag { background: rgba(110,168,254,0.15); color: #90b8ff; }
.event-cal-data .event-cal-tag  { background: rgba(168,148,255,0.15); color: #c4b5fd; }

.event-cal-name { color: var(--text); font-weight: 500; }

.event-cal-when {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
  margin-left: 2px;
}

.event-cal-item:first-child .event-cal-when {
  color: #fbbf24;
}

.event-cal-item.event-cal-urgent {
  border-color: rgba(251,191,36,0.25);
  background: rgba(251,191,36,0.06);
}
.event-cal-item.event-cal-urgent .event-cal-when {
  color: #fbbf24;
  font-weight: 800;
}

/* ── What changed ─────────────────────────────────────────────────────── */
.refresh-changes {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(110, 168, 254, 0.14);
  border-left: 3px solid rgba(110, 168, 254, 0.32);
}

.refresh-changes-head-one-line {
  align-items: baseline;
}

.refresh-changes-head-one-line .refresh-changes-summary {
  max-width: 82ch;
}

.refresh-changes-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.refresh-changes-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b8d4ff;
}

.refresh-changes-summary {
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.95);
}

.refresh-changes-list {
  display: none;
}

.refresh-change-pill {
  flex: 1 1 220px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #d7dff0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.refresh-change-up {
  color: #d4f4e6;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.14);
}

.refresh-change-down {
  color: #ffd5d5;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.14);
}

.refresh-change-neutral {
  color: #d7dff0;
}

.refresh-change-stable {
  color: var(--muted);
  font-style: italic;
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.04);
  flex: 1 1 100%;
}

.asset-alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.asset-alert {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 20%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.96), rgba(15, 21, 33, 0.98));
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.asset-alert:hover {
  transform: translateY(-1px);
}

.asset-alert-up {
  border-left: 3px solid rgba(34, 197, 94, 0.5);
}

.asset-alert-down {
  border-left: 3px solid rgba(239, 68, 68, 0.5);
}

.asset-alert-flat {
  border-left: 3px solid rgba(148, 163, 184, 0.4);
}

.asset-alert-top,
.asset-alert-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.asset-alert-symbol {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd089;
}

.asset-alert-badges {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.asset-alert-signal,
.asset-alert-confidence {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08);
}

.asset-alert-title {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
}

.asset-alert-text {
  font-size: 0.69rem;
  line-height: 1.4;
  color: var(--muted);
}

.asset-alert-meta {
  font-size: 0.66rem;
  color: var(--muted);
}

.asset-signal-rates { color: #d9e8ff; background: rgba(110, 168, 254, 0.1); border-color: rgba(110, 168, 254, 0.16); }
.asset-signal-geopol { color: #ffd5d5; background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.16); }
.asset-signal-crypto { color: #f0dfff; background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.18); }
.asset-signal-flow { color: #d4f4e6; background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.16); }
.asset-signal-macro,
.asset-signal-earnings { color: #d7dff0; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

.asset-confidence-high { color: #d4f4e6; background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.16); }
.asset-confidence-medium { color: #ffe3b0; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.16); }
.asset-confidence-low { color: #d7dff0; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

.narrative-up {
  border-left-color: rgba(46, 204, 113, 0.6);
  color: #d4f4e6;
}

.narrative-down {
  border-left-color: rgba(255, 107, 107, 0.6);
  color: #fde8e8;
}

.narrative-neutral {
  border-left-color: rgba(110, 168, 254, 0.4);
  color: #c7d0e4;
}

.market-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.12);
  font-size: 0.7rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.market-footer-item {
  flex: 1;
}

.market-footer-status {
  font-size: 0.65rem;
  flex-shrink: 0;
}

.status-live {
  color: #4ade80;
}

.status-stale {
  color: #fbbf24;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.market-evidence-label {
  margin: 10px 0 6px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 208, 137, 0.82);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.market-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.market-overview-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 2px;
}

.market-overview-card {
  min-width: 0;
  padding: 10px 11px 9px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,24,38,.84), rgba(9,13,24,.92));
  border: 1px solid rgba(255,255,255,0.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 10px 24px rgba(0,0,0,0.10);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.market-overview-card.up { border-left: 3px solid rgba(34, 197, 94, 0.42); }
.market-overview-card.down { border-left: 3px solid rgba(239, 68, 68, 0.42); }

.market-overview-top,
.market-overview-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.market-overview-label {
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 208, 137, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.market-overview-signal {
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.62);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.055);
  white-space: nowrap;
}

.market-overview-signal.up { color: rgba(134, 239, 172, 0.82); }
.market-overview-signal.down { color: rgba(252, 165, 165, 0.82); }

.market-overview-main { margin-top: 7px; }
.market-overview-symbol { font-size: 0.74rem; font-weight: 900; color: rgba(226,232,240,0.92); }
.market-overview-price { font-size: 1rem; font-weight: 850; font-variant-numeric: tabular-nums; color: rgba(226,232,240,0.94); }
.market-overview-change { margin-top: 3px; font-size: 0.68rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.market-overview-change.up { color: rgba(134, 239, 172, 0.86); }
.market-overview-change.down { color: rgba(252, 165, 165, 0.86); }
.market-overview-change.flat { color: rgba(148, 163, 184, 0.84); }

.market-overview-spark {
  height: 38px;
  margin-top: 5px;
  opacity: 0.95;
}

.market-overview-spark .watchlist-sparkline { height: 38px; width: 100%; }
.market-overview-spark .watchlist-sparkline-line {
  fill: none !important;
  stroke-width: var(--qt-stroke, 1.8);
  opacity: 0.92;
}
.market-overview-card.up .watchlist-sparkline-line { stroke: rgba(74, 222, 128, var(--qt-line-alpha, 0.8)) !important; }
.market-overview-card.down .watchlist-sparkline-line { stroke: rgba(248, 113, 113, var(--qt-line-alpha, 0.8)) !important; }
.market-overview-card.flat .watchlist-sparkline-line { stroke: rgba(148, 163, 184, 0.82) !important; }
.market-overview-spark .watchlist-sparkline-area { opacity: 0.58; stroke: none !important; }
.market-overview-card.up .qt-fill-stop-strong { stop-color: rgba(34,197,94,var(--qt-fill-strong,0.18)); }
.market-overview-card.up .qt-fill-stop-soft { stop-color: rgba(34,197,94,var(--qt-fill-soft,0.08)); }
.market-overview-card.up .qt-fill-stop-clear { stop-color: rgba(34,197,94,0); }
.market-overview-card.down .qt-fill-stop-strong { stop-color: rgba(248,113,113,var(--qt-fill-strong,0.18)); }
.market-overview-card.down .qt-fill-stop-soft { stop-color: rgba(248,113,113,var(--qt-fill-soft,0.08)); }
.market-overview-card.down .qt-fill-stop-clear { stop-color: rgba(248,113,113,0); }

.market-overview-helper {
  margin-top: 4px;
  font-size: 0.62rem;
  color: rgba(148, 163, 184, 0.78);
}

.market-cards-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 0;
}

/* Quick tape ultra-compact rows */
.quick-tape-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.quick-tape-range {
  display: inline-flex;
  gap: 6px;
}

.qt-range-btn {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.075);
  background: rgba(255,255,255,0.025);
  color: rgba(226, 232, 240, 0.72);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.qt-range-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  color: rgba(226, 232, 240, 0.92);
}

.qt-range-active {
  background: rgba(255,255,255,0.075);
  border-color: rgba(255,255,255,0.18);
  color: rgba(226, 232, 240, 0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 18px rgba(255,255,255,.06);
}

.quick-tape-row {
  padding: 7px 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,24,38,.86), rgba(9,13,24,.92));
  border: 1px solid rgba(255,255,255,0.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 10px 28px rgba(0,0,0,0.10);
  backdrop-filter: blur(14px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(68px, 0.78fr) minmax(80px, 1fr) minmax(70px, 0.72fr);
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.quick-tape-row.up { border-left: 3px solid rgba(34, 197, 94, calc(0.24 + (var(--qt-intensity, 0.5) * 0.34))); }
.quick-tape-row.down { border-left: 3px solid rgba(239, 68, 68, calc(0.24 + (var(--qt-intensity, 0.5) * 0.34))); }

.quick-tape-meta { min-width: 0; }

.quick-tape-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.quick-tape-symbol {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.quick-tape-signal {
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.66);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.055);
  white-space: nowrap;
}

.quick-tape-signal.up { color: rgba(134, 239, 172, calc(0.45 + (var(--qt-intensity, 0.55) * 0.38))); }
.quick-tape-signal.down { color: rgba(252, 165, 165, calc(0.45 + (var(--qt-intensity, 0.55) * 0.38))); }

.quick-tape-name {
  margin-top: 5px;
  font-size: 0.74rem;
  color: rgba(199, 208, 228, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-tape-axis {
  display: none;
}

.quick-tape-range-badge {
  position: absolute;
  left: 2px;
  top: 3px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  pointer-events: none;
}

.quick-tape-right {
  height: 58px;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quick-tape-price {
  font-size: 1rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  color: rgba(226, 232, 240, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-tape-change {
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-tape-change.up { color: rgba(134, 239, 172, calc(0.55 + (var(--qt-intensity, 0.75) * 0.45))); }
.quick-tape-change.down { color: rgba(252, 165, 165, calc(0.55 + (var(--qt-intensity, 0.75) * 0.45))); }

.quick-tape-spark {
  height: 58px;
  opacity: 0.98;
  padding: 3px 2px 2px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.10), rgba(3, 7, 18, 0.18));
  border: 1px solid rgba(255,255,255,0.018);
  position: relative;
  overflow: hidden;
}

.quick-tape-spark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: calc(0.06 + (var(--qt-intensity, 0.55) * 0.10));
  pointer-events: none;
  z-index: 0;
}

.quick-tape-row.up .quick-tape-spark::before {
  background:
    linear-gradient(14deg, transparent 8%, rgba(34,197,94,0.12) 50%, transparent 90%),
    radial-gradient(circle at 78% 28%, rgba(34,197,94,0.10), transparent 42%);
}

.quick-tape-row.down .quick-tape-spark::before {
  background:
    linear-gradient(-14deg, transparent 8%, rgba(248,113,113,0.11) 50%, transparent 90%),
    radial-gradient(circle at 78% 72%, rgba(248,113,113,0.10), transparent 42%);
}

.quick-tape-spark::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 10px;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(74,222,128,0.16), transparent);
  pointer-events: none;
}

.quick-tape-row.down .quick-tape-spark::after {
  background: linear-gradient(90deg, rgba(248,113,113,0.16), transparent);
}

.quick-tape-spark .watchlist-sparkline {
  height: 58px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.spark-label {
  font-size: 7px;
  fill: rgba(148, 163, 184, 0.85);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.quick-tape-row .spark-label {
  transition: opacity 160ms ease;
}

.quick-tape-row .spark-label-end {
  opacity: 0.72;
}

.quick-tape-row .spark-label-extrema {
  opacity: 0;
}

.quick-tape-row:hover .spark-label-extrema {
  opacity: 0.78;
}

.quick-tape-row:hover .spark-label-end {
  opacity: 0.92;
}

.spark-label-grid {
  font-size: 6.5px;
  fill: rgba(148, 163, 184, 0.65);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sparkline-grid {
  stroke: rgba(255,255,255,0.11);
  stroke-width: 0.8;
  stroke-dasharray: 2 2;
}

.spark-label-max { fill: rgba(134, 239, 172, 0.65); }
.spark-label-min { fill: rgba(252, 165, 165, 0.65); }

.quick-tape-row.down .spark-label-max { fill: rgba(252, 165, 165, 0.65); }
.quick-tape-row.down .spark-label-min { fill: rgba(134, 239, 172, 0.45); }

/* Quick tape sparkline: allow area fill + true 0% baseline. */
.quick-tape-spark .watchlist-sparkline-area {
  display: block;
  opacity: calc(0.58 + (var(--qt-intensity, 0.75) * 0.22));
  stroke: none !important;
}

.quick-tape-row.up .qt-fill-stop-strong,
.quick-tape-row:not(.down) .qt-fill-stop-strong { stop-color: rgba(34, 197, 94, var(--qt-fill-strong, 0.24)); }
.quick-tape-row.up .qt-fill-stop-soft,
.quick-tape-row:not(.down) .qt-fill-stop-soft { stop-color: rgba(34, 197, 94, var(--qt-fill-soft, 0.10)); }
.quick-tape-row.up .qt-fill-stop-clear,
.quick-tape-row:not(.down) .qt-fill-stop-clear { stop-color: rgba(34, 197, 94, 0); }

.quick-tape-row.down .qt-fill-stop-strong { stop-color: rgba(248, 113, 113, var(--qt-fill-strong, 0.24)); }
.quick-tape-row.down .qt-fill-stop-soft { stop-color: rgba(248, 113, 113, var(--qt-fill-soft, 0.10)); }
.quick-tape-row.down .qt-fill-stop-clear { stop-color: rgba(248, 113, 113, 0); }

.quick-tape-spark .sparkline-baseline {
  stroke: rgba(255,255,255,0.18);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.quick-tape-spark .watchlist-sparkline-line {
  fill: none !important;
  stroke-width: var(--qt-stroke, 3);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  stroke: rgba(74, 222, 128, var(--qt-line-alpha, 0.85)) !important;
  filter: none;
}

.quick-tape-row.down .quick-tape-spark .watchlist-sparkline-line {
  stroke: rgba(248, 113, 113, var(--qt-line-alpha, 0.85)) !important;
  filter: none;
}

.quick-tape-row:not(.up):not(.down) .quick-tape-spark .watchlist-sparkline-line {
  stroke: rgba(148, 163, 184, 0.9) !important;
}

.quick-tape-spark .watchlist-sparkline-dot {
  display: block;
  filter: none;
}
.quick-tape-spark .watchlist-sparkline-dot-start { opacity: 0.9; }
.quick-tape-spark .watchlist-sparkline-dot-end { opacity: 1; }

.quick-tape-spark .sparkline-baseline { opacity: 0.82; }

/* Compact variant for sidebar quick-tape cards. */
.market-card-compact .market-card-top {
  gap: 8px;
}

.market-card-compact .market-move {
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
}

.market-card-compact .signal-label {
  font-size: 0.54rem;
  padding: 1px 5px;
}

.market-card-compact .market-card h3,
.market-card-compact h3 {
  margin: 0 0 4px;
  font-size: 0.78rem;
}

.market-card-compact .price {
  font-size: 1.25rem;
}

.market-card-compact .change {
  margin-top: 3px;
  font-size: 0.76rem;
}

.market-card-compact .market-chart-panel {
  height: 28px;
  margin-top: 6px;
}

.market-card-compact .market-context.market-stats {
  display: none;
}

.market-card-compact .market-context {
  margin-top: 7px;
  padding-top: 7px;
}

.market-card-compact .market-context.market-driver-block {
  margin-top: 7px;
}

.market-card-compact .market-context.market-driver-block .context-row.context-block strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.market-card-compact .catalyst-headline {
  display: none;
}

.market-card {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.04), transparent 30%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.98) 0%, rgba(15, 20, 31, 0.98) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  position: relative;
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.market-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 12px 24px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.02);
}

.market-card::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-right: 1px solid rgba(255,255,255,0.16);
  opacity: 0.85;
}

.market-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(255,255,255,0.06);
}

.market-card.up::after {
  background: linear-gradient(180deg, rgba(46, 204, 113, 0.95), rgba(46, 204, 113, 0.2));
}

.market-card.down::after {
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.95), rgba(255, 107, 107, 0.2));
}

.crypto-card {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(22, 19, 14, 0.98) 0%, rgba(15, 20, 31, 0.98) 100%);
}

.crypto-card::after {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.95), rgba(245, 158, 11, 0.2));
}

.market-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 16px 30px rgba(0,0,0,0.14);
}

.market-panel::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  pointer-events: none;
}

.market-news-list {
  margin-top: 12px;
}

.market-top-story {
  margin-top: 6px;
}

.focus-auto-brief,
.focus-card,
.focus-themes {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,24,38,.80), rgba(9,13,24,.90));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.focus-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.focus-card-head span {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 208, 137, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.focus-card-head small {
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.82);
}

.focus-brief-title {
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 850;
  color: rgba(241,245,249,0.95);
}

.focus-brief-note {
  margin-top: 5px;
  font-size: 0.66rem;
  line-height: 1.3;
  color: rgba(148,163,184,0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-brief-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  font-size: 0.76rem;
  line-height: 1.42;
  color: rgba(199,208,228,0.9);
}

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

.focus-mini-list {
  display: grid;
  gap: 6px;
}

.focus-mini-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 0.72rem;
  line-height: 1.35;
}

.focus-mini-row strong {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148,163,184,0.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.focus-mini-row span {
  color: rgba(226,232,240,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-sector-board {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,24,38,.78), rgba(9,13,24,.88));
  border: 1px solid rgba(255,255,255,0.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  display: grid;
  gap: 8px;
}

.focus-theme-list {
  display: grid;
  gap: 6px;
}

.focus-theme {
  display: grid;
  grid-template-columns: 28px 132px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,0.022);
  border: 1px solid rgba(255,255,255,0.04);
}

.focus-theme em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 900;
  color: rgba(148,163,184,0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.focus-theme strong {
  min-width: 0;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255,208,137,0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-theme span {
  min-width: 0;
  font-size: 0.73rem;
  line-height: 1.32;
  color: rgba(199,208,228,0.9);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.desk-preview {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,24,38,.74), rgba(9,13,24,.86));
  border: 1px solid rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.desk-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,208,137,0.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.desk-preview-head small {
  color: rgba(148,163,184,0.74);
  font-size: 0.58rem;
  font-weight: 800;
}

.desk-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.desk-preview-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.045);
  color: rgba(226,232,240,0.92);
  text-decoration: none;
}

.desk-preview-card strong {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,208,137,0.82);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.desk-preview-card span {
  font-size: 0.76rem;
  line-height: 1.34;
  color: rgba(199,208,228,0.9);
}

.market-context-disclosure {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: none;
}

.market-context-disclosure > .market-narrative {
  margin-top: 12px;
}

/* ── Sector Board ────────────────────────────────────────────────────── */
.sector-board {
  margin: 10px 0;
  padding: 10px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,24,38,.78), rgba(9,13,24,.88));
  border: 1px solid rgba(255,255,255,0.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  display: grid;
  gap: 8px;
}

.sector-board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sector-board-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8e0f1;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sector-board-breadth {
  font-size: 0.68rem;
  color: var(--muted);
}

.sector-narrative {
  font-size: 0.72rem;
  color: #b8c8e8;
  line-height: 1.5;
  padding: 5px 0 2px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.sector-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 5px;
}

.sector-tile {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border-radius: 9px;
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.sector-tile:hover { transform: translateY(-1px); }

.sector-tile-up {
  border-color: rgba(34,197,94, calc(0.12 + (var(--sector-intensity, 0.4) * 0.18)));
  background: linear-gradient(180deg, rgba(34,197,94, calc(0.035 + (var(--sector-intensity, 0.4) * 0.07))), rgba(255,255,255,0.018));
}
.sector-tile-down {
  border-color: rgba(239,68,68, calc(0.12 + (var(--sector-intensity, 0.4) * 0.18)));
  background: linear-gradient(180deg, rgba(239,68,68, calc(0.035 + (var(--sector-intensity, 0.4) * 0.07))), rgba(255,255,255,0.018));
}

.sector-tile-name {
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sector-tile-pct {
  font-size: 0.82rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.sector-tile-up   .sector-tile-pct { color: rgba(134, 239, 172, 0.98); }
.sector-tile-down .sector-tile-pct { color: rgba(252, 165, 165, 0.98); }
.sector-tile-flat .sector-tile-pct { color: rgba(203, 213, 225, 0.86); }

.sector-tile-bar {
  height: 2px;
  border-radius: 1px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.sector-tile-fill { height: 100%; border-radius: 1px; }
.sector-tile-fill-up   { background: var(--up); }
.sector-tile-fill-down { background: var(--down); }
.sector-tile-fill-flat { background: var(--muted); }

/* ── Top Movers Rail ─────────────────────────────────────────────────── */
.top-movers {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  flex-wrap: wrap;
}

.top-movers-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.top-movers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}

.mover-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 5px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  font-size: 0.71rem;
  transition: background 0.15s;
  white-space: nowrap;
}
.mover-chip:hover { background: rgba(255,255,255,0.09); }

.mover-symbol { font-weight: 850; color: var(--text); }
.mover-pct    { font-weight: 850; font-variant-numeric: tabular-nums; }

.mover-chip-up {
  border-color: rgba(34,197,94,0.32);
  background: rgba(34,197,94,0.08);
}
.mover-chip-down {
  border-color: rgba(239,68,68,0.32);
  background: rgba(239,68,68,0.08);
}
.mover-chip-up   .mover-pct { color: #86efac; }
.mover-chip-down .mover-pct { color: #fca5a5; }
.mover-chip-flat .mover-pct { color: rgba(203,213,225,0.92); }

.top-story-card {
  display: grid;
  gap: 7px;
  padding: 11px 13px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-left: 3px solid rgba(245, 158, 11, 0.7);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.045), transparent 42%),
    linear-gradient(180deg, rgba(18,24,38,.84), rgba(9,13,24,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 10px 24px rgba(0,0,0,0.10);
  backdrop-filter: blur(14px);
}

.top-story-card:hover {
  border-color: rgba(245, 158, 11, 0.32);
}

.top-story-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.top-story-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffd089;
  font-weight: 800;
}

.top-story-title {
  font-size: 0.96rem;
  line-height: 1.34;
  font-weight: 800;
}

.why-it-matters {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #d7def0;
}

.why-it-matters-inline {
  margin-top: 8px;
  padding: 8px 9px;
  border-left: 2px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.05);
  border-radius: 4px;
}

.top-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.market-news-split {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.92fr);
  gap: 12px;
}

.market-lane {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,24,38,.74), rgba(9,13,24,.86));
  border: 1px solid rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
  backdrop-filter: blur(12px);
}

.market-lane + .market-lane {
  position: relative;
}

.market-lane + .market-lane::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(255,255,255,0.06);
}

.subsection-label {
  margin-bottom: 10px;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 208, 137, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.market-copy {
  min-width: 0;
  margin-top: 8px;
}

.market-copy h3 {
  max-width: 90%;
}

.market-chart-panel {
  height: 58px;
  margin-top: 10px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008)),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: auto, 18px 100%, 100% 14px;
  overflow: hidden;
  position: relative;
}

.sparkline-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.sparkline {
  width: 100%;
  height: 100%;
}

.sparkline-baseline {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.7;
  stroke-dasharray: 2 3;
}

.sparkline polygon {
  stroke: none;
}

.sparkline polyline {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline-dot {
  stroke: rgba(10, 14, 22, 0.9);
  stroke-width: 0.9;
}

.sparkline-up polygon {
  fill: rgba(34, 197, 94, 0.12);
}

.sparkline-up polyline,
.sparkline-up .sparkline-dot {
  stroke: rgba(74, 222, 128, 0.98);
  fill: rgba(74, 222, 128, 0.98);
}

.sparkline-down polygon {
  fill: rgba(239, 68, 68, 0.12);
}

.sparkline-down polyline,
.sparkline-down .sparkline-dot {
  stroke: rgba(248, 113, 113, 0.98);
  fill: rgba(248, 113, 113, 0.98);
}

.sparkline-flat polygon {
  fill: rgba(110, 168, 254, 0.09);
}

.sparkline-flat polyline,
.sparkline-flat .sparkline-dot {
  stroke: rgba(125, 177, 255, 0.95);
  fill: rgba(125, 177, 255, 0.95);
}

.market-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid;
  opacity: 0.85;
}

.signal-macro {
  color: #94a3b8;
  border-color: rgba(148,163,184,0.25);
  background: rgba(148,163,184,0.07);
}

.signal-rates {
  color: #fbbf24;
  border-color: rgba(251,191,36,0.25);
  background: rgba(251,191,36,0.07);
}

.signal-geopol {
  color: #f87171;
  border-color: rgba(248,113,113,0.25);
  background: rgba(248,113,113,0.07);
}

.signal-crypto {
  color: #a78bfa;
  border-color: rgba(167,139,250,0.25);
  background: rgba(167,139,250,0.07);
}

.signal-flow {
  color: #34d399;
  border-color: rgba(52,211,153,0.25);
  background: rgba(52,211,153,0.07);
}

.signal-earnings {
  color: #60a5fa;
  border-color: rgba(96,165,250,0.25);
  background: rgba(96,165,250,0.07);
}

.market-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}

.market-move.up {
  color: #8ef0bb;
  background: rgba(46, 204, 113, 0.12);
}

.market-move.down {
  color: #ff9c9c;
  background: rgba(255, 107, 107, 0.12);
}

.crypto-move {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.12);
  color: #ffd089;
}

.market-card h3 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: #c7d0e4;
}

.price {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.change {
  margin-top: 5px;
  font-weight: 700;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.market-context {
  margin-top: 9px;
  display: grid;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.market-context .context-row:first-child {
  margin-top: 2px;
}

.context-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 0.76rem;
  color: var(--muted);
}

.context-row span {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #93a2bd;
}

.context-row strong {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.context-block {
  align-items: flex-start;
}

.context-block strong {
  max-width: 100%;
  line-height: 1.36;
  text-align: left;
}

.catalyst-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.market-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
  gap: 6px;
}

.market-driver-block {
  margin-top: 2px;
}

.catalyst-source {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cfd7ea;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.catalyst-confidence {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.06);
}

.catalyst-confidence-high {
  color: #d4f4e6;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.16);
}

.catalyst-confidence-medium {
  color: #ffe3b0;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.16);
}

.catalyst-confidence-low {
  color: #d7dff0;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.catalyst-headline {
  margin-top: 2px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

.catalyst-link {
  display: block;
  text-decoration: none;
}

.catalyst-link:hover {
  color: #ffd089;
}

.up { color: var(--green); }
.down { color: var(--red); }

.president-wire {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.wire-card {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.05), transparent 36%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.96), rgba(15, 21, 33, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.wire-card:hover {
  border-color: rgba(245, 158, 11, 0.32);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(23, 31, 49, 0.96), rgba(18, 24, 38, 0.98));
}

.wire-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffd089;
  font-weight: 800;
}

.wire-headline {
  font-size: 0.92rem;
  line-height: 1.32;
  font-weight: 800;
}

.wire-meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.macro-desk {
  margin-bottom: 8px;
}

.macro-desk-card {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px dashed rgba(110, 168, 254, 0.2);
  border-left: 3px solid rgba(110, 168, 254, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(110, 168, 254, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.96), rgba(15, 21, 33, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
}

.macro-desk-card::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(110, 168, 254, 0.25);
  border-right: 1px solid rgba(110, 168, 254, 0.25);
}

.macro-desk-card:hover {
  border-color: rgba(110, 168, 254, 0.24);
  background:
    linear-gradient(180deg, rgba(110, 168, 254, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(23, 31, 49, 0.96), rgba(18, 24, 38, 0.98));
}

.macro-desk-top,
.macro-desk-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.macro-desk-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8d4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.macro-desk-summary {
  font-size: 0.9rem;
  line-height: 1.34;
  font-weight: 800;
}

.macro-desk-lead {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #d7dff0;
}

.macro-desk-why {
  font-size: 0.74rem;
  line-height: 1.42;
  color: var(--muted);
}

.macro-desk-bottom {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.watchlist-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.watchlist-panel {
  display: grid;
  gap: 6px;
}

.watchlist-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.watchlist-summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7dff0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.breadth-up {
  color: #d4f4e6;
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.16);
}

.breadth-down {
  color: #ffd5d5;
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.16);
}

.breadth-flat {
  color: #d7dff0;
}

.summary-leader {
  color: #b8d4ff;
  background: rgba(110, 168, 254, 0.10);
  border-color: rgba(110, 168, 254, 0.16);
}

.summary-leader-stress {
  color: #fff1f2;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.48), rgba(127, 29, 29, 0.52));
  border-color: rgba(248, 113, 113, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(239,68,68,0.08);
}

.summary-leader-up {
  color: #ecfdf5;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.34), rgba(20, 83, 45, 0.42));
  border-color: rgba(74, 222, 128, 0.52);
}

.risk-high {
  color: #ffd7ef;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.2);
}

.risk-low {
  color: #d4f4e6;
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.16);
}

.risk-neutral {
  color: #d7dff0;
}

.watchlist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 18%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.96), rgba(15, 21, 33, 0.98));
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

.watchlist-row:hover {
  border-color: rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%),
    linear-gradient(180deg, rgba(21, 28, 43, 0.98), rgba(15, 21, 33, 0.99));
}

.watchlist-row:focus-visible {
  outline: 2px solid rgba(110, 168, 254, 0.45);
  outline-offset: 1px;
}

.watchlist-row.up {
  border-color: rgba(34, 197, 94, 0.16);
}

.watchlist-row.down {
  border-color: rgba(239, 68, 68, 0.16);
}

.watchlist-row.index {
  border-left: 3px solid rgba(110, 168, 254, 0.4);
}

.watchlist-row.volatility {
  border-left: 3px solid rgba(168, 85, 247, 0.45);
}

.watchlist-row.macro {
  border-left: 3px solid rgba(245, 158, 11, 0.4);
}

.watchlist-row.equity {
  border-left: 3px solid rgba(255,255,255,0.08);
}

.watchlist-row.dragging {
  opacity: 0.55;
}

.watchlist-row.drag-target {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.watchlist-main,
.watchlist-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.watchlist-main {
  flex: 1 1 auto;
  overflow: hidden;
}

.watchlist-side {
  flex: 0 1 auto;
  margin-left: auto;
  overflow: hidden;
}

.watchlist-handle {
  color: rgba(152, 162, 186, 0.72);
  font-size: 0.72rem;
  letter-spacing: -0.14em;
  cursor: grab;
  user-select: none;
}

.watchlist-handle-disabled {
  opacity: 0.38;
  cursor: default;
}

.watchlist-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.watchlist-symbol-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.watchlist-symbol {
  min-width: 38px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffd089;
}

.watchlist-name {
  display: none;
}

.watchlist-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08);
  color: #d7dff0;
  background: rgba(255,255,255,0.04);
}

.watchlist-tag-index {
  color: #b8d4ff;
  background: rgba(110, 168, 254, 0.1);
  border-color: rgba(110, 168, 254, 0.18);
}

.watchlist-tag-volatility {
  color: #e5ccff;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.2);
}

.watchlist-tag-macro {
  color: #ffdba5;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.18);
}

.watchlist-state {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08);
}

.watchlist-state-risk-on {
  color: #ffd5d5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
}

.watchlist-state-risk-off {
  color: #d4f4e6;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.18);
}

.watchlist-state-neutral {
  color: #d7dff0;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.watchlist-price {
  min-width: 54px;
  text-align: right;
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.watchlist-spark {
  width: 68px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 4px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  background-size: 100% 100%, 18px 100%, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -8px 14px rgba(0,0,0,0.18);
}

.watchlist-sparkline {
  width: 100%;
  height: 100%;
}

.watchlist-sparkline polyline {
  fill: none;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.watchlist-sparkline-area {
  opacity: 0.16;
}

.watchlist-sparkline-dot {
  opacity: 0.9;
}

.watchlist-sparkline-up polyline,
.watchlist-sparkline-up .watchlist-sparkline-line,
.watchlist-sparkline-up .watchlist-sparkline-dot {
  stroke: rgba(34, 197, 94, 0.95);
  fill: rgba(34, 197, 94, 0.95);
}

.watchlist-sparkline-up .watchlist-sparkline-area {
  fill: rgba(34, 197, 94, 0.18);
}

.watchlist-sparkline-down polyline,
.watchlist-sparkline-down .watchlist-sparkline-line,
.watchlist-sparkline-down .watchlist-sparkline-dot {
  stroke: rgba(239, 68, 68, 0.95);
  fill: rgba(239, 68, 68, 0.95);
}

.watchlist-sparkline-down .watchlist-sparkline-area {
  fill: rgba(239, 68, 68, 0.18);
}

.watchlist-sparkline-flat polyline,
.watchlist-sparkline-flat .watchlist-sparkline-line,
.watchlist-sparkline-flat .watchlist-sparkline-dot {
  stroke: rgba(152, 162, 186, 0.95);
  fill: rgba(152, 162, 186, 0.95);
}

.watchlist-sparkline-flat .watchlist-sparkline-area {
  fill: rgba(152, 162, 186, 0.14);
}

.watchlist-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.watchlist-change.up {
  color: #d4f4e6;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.14);
}

.watchlist-change.down {
  color: #ffd5d5;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.14);
}

.watchlist-change.move-medium {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.watchlist-change.move-strong {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 0 16px rgba(110, 168, 254, 0.08);
}

.watchlist-remove,
.watchlist-add-btn,
.watchlist-openall-btn,
.watchlist-sort-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
}

.watchlist-remove {
  width: 22px;
  height: 22px;
  font-size: 0.94rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(3px);
  transition: opacity 140ms ease, transform 140ms ease, border-color 140ms ease, color 140ms ease;
}

.watchlist-row:hover .watchlist-remove,
.watchlist-row:focus-within .watchlist-remove {
  opacity: 0.9;
  pointer-events: auto;
  transform: translateX(0);
}

.watchlist-remove:hover,
.watchlist-add-btn:hover,
.watchlist-openall-btn:hover,
.watchlist-sort-btn:hover {
  border-color: rgba(245, 158, 11, 0.24);
  color: #ffd089;
}

.watchlist-add-btn,
.watchlist-openall-btn,
.watchlist-sort-btn {
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.watchlist-sort-btn {
  color: #ffdba5;
  border-color: rgba(245, 158, 11, 0.16);
  background: rgba(245, 158, 11, 0.08);
}

.watchlist-openall-btn {
  color: #b8d4ff;
  border-color: rgba(110, 168, 254, 0.16);
  background: rgba(110, 168, 254, 0.08);
}

.watchlist-openall-btn:hover {
  border-color: rgba(110, 168, 254, 0.26);
  color: #d6e6ff;
}

.watchlist-add-btn:disabled,
.watchlist-openall-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.news-list {
  display: grid;
  gap: 5px;
}

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

.crosscurrent-card {
  display: grid;
  gap: 7px;
  padding: 10px 11px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 18%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.96), rgba(15, 21, 33, 0.98));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.crosscurrent-card:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.05), transparent 35%),
    linear-gradient(180deg, rgba(23, 31, 49, 0.96), rgba(18, 24, 38, 0.98));
}

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

.crosscurrent-theme {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #bbf7d0;
}

.crosscurrent-sections {
  font-size: 0.66rem;
  color: var(--muted);
}

.crosscurrent-title {
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.crosscurrent-summary {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #c7d3ea;
}

.crosscurrent-echoes {
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--muted);
}

.crosscurrent-source {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.news-item {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 18%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.96), rgba(15, 21, 33, 0.98));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.news-item:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.22);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.05), transparent 35%),
    linear-gradient(180deg, rgba(23, 31, 49, 0.96), rgba(18, 24, 38, 0.98));
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.news-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
}

.news-summary::-webkit-details-marker {
  display: none;
}

.news-headline-link {
  flex: 1;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text);
  font-size: 0.92rem;
  text-decoration: none;
}

.news-headline-link:hover {
  color: #ffd089;
}

.news-summary-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.news-expand {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 0;
  cursor: pointer;
}

.compact-news[open] .news-expand {
  color: #ffd089;
}

.news-details {
  padding: 0 10px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.impact-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
}

.impact-high {
  color: #ffd5d5;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.28);
}

.impact-medium {
  color: #ffe3b0;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.28);
}

.impact-low {
  color: #c7d0e4;
  background: rgba(110, 168, 254, 0.1);
  border-color: rgba(110, 168, 254, 0.22);
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #b8d4ff;
  background: rgba(110, 168, 254, 0.1);
  border: 1px solid rgba(110, 168, 254, 0.16);
}

.news-link,
.news-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
}

.news-link {
  display: inline-block;
  margin-top: 8px;
  color: #ffd089;
  font-size: 0.86rem;
}

.news-link:hover,
.news-item a:hover {
  color: #ffd089;
}

.item-meta {
  margin-top: 8px;
  font-size: 0.8rem;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid var(--border);
  color: #ffd089;
  border-radius: 999px;
  padding: 3px 7px;
  margin-bottom: 8px;
}

.crypto-badge {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(245, 158, 11, 0.08);
}

.compact-badge {
  margin-bottom: 0;
}

.cluster-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8d4ff;
  background: rgba(110, 168, 254, 0.1);
  border: 1px solid rgba(110, 168, 254, 0.18);
}

.related-headlines {
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.related-item {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.related-item + .related-item {
  margin-top: 4px;
}

.empty {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

/* ── Tablet (≤ 1024px) ───────────────────────────────── */
@media (max-width: 1024px) {
  .app { padding: 16px; }
  .command-desk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-grid { grid-template-columns: 1fr; }
  .intelligence-grid { grid-template-columns: 1fr 1fr; }
  .tech-panel { grid-column: 1 / -1; }

  /* Tablet is its own layout: readable desk + persistent watchlist rail. */
  .execution-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 34vw);
    gap: 10px;
  }

  .execution-sidebar {
    gap: 10px;
  }

  .watchlist-shell,
  .market-panel {
    border-radius: 12px;
  }

  .watchlist-shell .panel-header,
  .market-panel .panel-header {
    gap: 8px;
  }

  .watchlist-shell .panel-header h2,
  .market-panel .panel-header h2 {
    font-size: 0.92rem;
  }

  .quick-tape-row {
    grid-template-columns: minmax(58px, 0.8fr) minmax(82px, 1fr) minmax(58px, 0.7fr);
    gap: 7px;
    padding: 7px;
  }

  .quick-tape-name,
  .quick-tape-signal {
    display: none;
  }

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

/* ── Narrow tablet / large phone (≤ 820px) ───────────── */
@media (max-width: 820px) {
  .architecture-layout { gap: 12px; }
  .intelligence-grid { grid-template-columns: 1fr; gap: 12px; }
  .execution-grid { grid-template-columns: 1fr; }
  .execution-sidebar { gap: 12px; }
  .command-desk-grid { grid-template-columns: 1fr; }
  .calendar-agenda { grid-template-columns: 1fr; }
  .delta-grid { grid-template-columns: repeat(2, 1fr); }
  .market-news-split { grid-template-columns: 1fr; }

  .topbar {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 12px;
  }
  h1 {
    max-width: none;
    font-size: 2.15rem;
  }
  .subtitle {
    max-width: none;
  }
  .hero-pills {
    margin-top: 12px;
  }
  .status-card {
    min-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  .status-card .status-row {
    flex: 1 1 33%;
    border-right: 1px solid var(--border);
  }
  .status-card .status-row:last-child { border-right: none; }

  .panel-header-split {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .panel { padding: 14px; }
  .desk-card { padding: 10px; }
  .agenda-item { padding: 7px 8px; }
  .auto-brief-headline { font-size: 0.84rem; }
  .asset-alerts { grid-template-columns: 1fr; }
  .market-chart-panel { height: 52px; }
  .market-stats { grid-template-columns: 1fr; }
  .price { font-size: 1.6rem; }
  .top-story-meta,
  .macro-desk-bottom {
    gap: 8px;
  }

  .alert-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .topbar {
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .topbar::before { inset: 7px; }

  .hero-copy {
    min-width: 0;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.72rem, 3.2vw, 2.1rem);
    line-height: 1;
    white-space: nowrap;
  }

  h1 span {
    display: inline;
    white-space: nowrap;
  }

  h1 span + span::before {
    content: " ";
  }

  .subtitle {
    max-width: 62ch;
    margin-top: 6px;
    font-size: 0.84rem;
    line-height: 1.28;
  }

  .hero-pills {
    display: none;
  }

  .status-pillbar {
    flex: 0 0 auto;
    max-width: 380px;
    align-self: center;
  }

  .focus-mini-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .focus-mini-row span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .quick-tape-spark {
    min-height: 46px;
  }

  .quick-tape-spark .watchlist-sparkline {
    height: 48px;
  }

  .quick-tape-spark .watchlist-sparkline-line {
    stroke-width: 2.65px;
  }
}

@media (min-width: 769px) and (max-width: 820px) {
  .execution-grid {
    grid-template-columns: minmax(0, 1fr) minmax(252px, 32vw);
    gap: 10px;
  }

  .execution-sidebar {
    gap: 10px;
  }

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

/* ── Mobile / compact tablet (≤ 768px) ────────────────── */
@media (max-width: 768px) {
  html { scroll-padding-bottom: 74px; }
  body { padding-bottom: 64px; }
  .app { padding: 8px 10px 18px; }

  .hero-pills,
  .jump-nav {
    display: none !important;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border-radius: 18px;
    background: rgba(7, 10, 18, 0.84);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 42px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: rgba(199,208,228,0.9);
    text-decoration: none;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }

  .mobile-bottom-nav a {
    position: relative;
  }

  .mobile-bottom-nav a::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    transform: translateX(-50%);
  }

  .mobile-bottom-nav a:active,
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a.mobile-nav-active {
    color: rgba(255,208,137,0.96);
    background: rgba(245,158,11,0.12);
  }

  .mobile-bottom-nav a.mobile-nav-active::before {
    background: rgba(245,158,11,0.95);
    box-shadow: 0 0 10px rgba(245,158,11,0.35);
  }

  /* Header */
  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    height: 36px;
    margin-bottom: 6px;
    padding: 0 8px;
    border-radius: 9px;
    border-style: solid;
    min-height: 0;
    background: linear-gradient(180deg, rgba(10,14,22,0.88), rgba(7,10,18,0.96));
    box-shadow: none;
  }
  .topbar::before,
  .topbar::after { display: none; }
  .hero-copy { display: contents; }
  h1 { display: none; }
  .eyebrow { grid-column: 1; font-size: 0.5rem; margin-bottom: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; width: fit-content; color: rgba(255, 208, 137, 0.86); }
  .eyebrow::after { content: " • LIVE"; color: #4ade80; }
  .subtitle { display: none; }
  .status-pillbar {
    grid-column: 2;
    justify-self: end;
    width: auto;
    max-width: 185px;
    min-width: 0;
    height: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    overflow: hidden;
  }
  .status-pillbar-label,
  .status-pillbar > .status-pillbar-item {
    display: none;
  }
  .mobile-status-line {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(148,163,184,0.9);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }

  .execution-sidebar {
    display: contents;
  }

  .watchlist-shell {
    display: none;
  }

  .watchlist-shell:target {
    position: fixed;
    display: block;
    inset: 10px 10px 68px;
    z-index: 70;
    overflow: auto;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.55);
  }

  .watchlist-shell:target::before {
    content: "Mobile watchlist";
    position: static;
    inset: auto;
    background: none;
    display: block;
    margin-bottom: 8px;
    color: rgba(255,208,137,0.88);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }

  .mobile-page-title {
    display: block;
    margin: 6px 1px 8px;
    color: rgba(226,232,240,0.94);
    font-size: 0.9rem;
    font-weight: 850;
    letter-spacing: -0.01em;
  }

  /* Ticker */
  .ticker-bar {
    margin-bottom: 8px;
    border-radius: 8px;
    border-style: solid;
    box-shadow: none;
    overflow: hidden;
  }
  .ticker-bar::before { display: none; }
  .ticker-track-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ticker-track-wrap::-webkit-scrollbar { display: none; }
  .ticker-track {
    display: flex;
    width: max-content;
    gap: 7px;
    padding: 6px 7px;
    font-size: 0.68rem;
    animation: none;
    transform: none !important;
  }
  .ticker-item {
    flex: 0 0 auto;
    gap: 6px;
    scroll-snap-align: start;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.045);
  }

  /* Delta panel */
  .delta-panel { margin-bottom: 10px; }
  .delta-grid { grid-template-columns: 1fr; gap: 8px; }
  .delta-card { padding: 10px; }
  .delta-title { margin-bottom: 6px; }
  .delta-value { font-size: 0.88rem; }

  /* Panels */
  .panel-header-split { gap: 6px; }
  .panel-header h2 { font-size: 0.94rem; }
  .panel-header p { margin-bottom: 10px; font-size: 0.82rem; }
  .panel { padding: 10px; border-radius: 8px; }
  .subsection-label { font-size: 0.66rem; margin-bottom: 6px; }

  .market-panel {
    padding: 10px;
  }

  .market-panel > .panel-header {
    display: none;
  }

  .market-top-story {
    margin-top: 0;
  }

  .focus-auto-brief,
  .focus-card,
  .focus-themes,
  .focus-sector-board {
    margin-top: 7px;
    padding: 8px 9px;
    border-radius: 9px;
  }

  .market-top-story + .focus-auto-brief {
    margin-top: 6px;
  }

  .focus-card-head {
    margin-bottom: 5px;
  }

  .focus-card-head span,
  .top-story-label,
  .market-evidence-label {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
  }

  .focus-brief-title {
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .focus-brief-note {
    margin-top: 3px;
    font-size: 0.6rem;
  }

  .focus-brief-list {
    gap: 3px;
    margin-top: 5px;
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .focus-two-col {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .focus-mini-row {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .focus-mini-row span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .mobile-state-strip {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 0;
    padding: 5px 6px 6px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.055);
    border-top: 0;
    border-radius: 0 0 9px 9px;
    scrollbar-width: none;
  }

  .focus-auto-brief:has(+ .mobile-state-strip) {
    border-radius: 9px 9px 0 0;
  }

  .mobile-state-strip::-webkit-scrollbar { display: none; }

  .mobile-state-chip {
    flex: 0 0 auto;
    padding: 3px 5px;
    border-radius: 5px;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(199,208,228,0.9);
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.06);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }

  .mobile-state-up { color: #86efac; background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.18); }
  .mobile-state-down { color: #fca5a5; background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.18); }
  .mobile-state-stress { color: #d8b4fe; background: rgba(168,85,247,0.13); border-color: rgba(168,85,247,0.20); }
  .mobile-state-closed { color: #ffd089; background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.16); }

  .focus-theme {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 4px 7px;
    padding: 7px 8px;
  }

  .focus-theme em {
    grid-row: 1 / span 2;
    font-size: 0.54rem;
  }

  .focus-theme strong {
    font-size: 0.58rem;
  }

  .focus-theme span {
    grid-column: 2;
    font-size: 0.68rem;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .desk-preview {
    margin-top: 7px;
    padding: 8px 9px;
    border-radius: 9px;
  }

  .desk-preview-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .desk-preview-card {
    padding: 8px;
  }

  .desk-preview-card span {
    font-size: 0.68rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Market evidence */
  .market-evidence-label {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    width: fit-content;
    margin: 7px 0 0;
    padding: 4px 7px;
    border-radius: 7px 7px 0 0;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255,255,255,0.055);
    border-bottom: 0;
    color: rgba(255,208,137,0.88);
  }

  .market-evidence-label small {
    max-width: 145px;
    color: rgba(148,163,184,0.78);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .market-cards {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
    padding: 8px;
    border-radius: 0 10px 10px 10px;
    background: rgba(255,255,255,0.024);
    border: 1px solid rgba(255,255,255,0.055);
  }

  .market-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 0;
  }

  .market-overview-card {
    padding: 8px;
    border-radius: 9px;
  }

  .market-overview-top,
  .market-overview-main {
    gap: 5px;
  }

  .market-overview-label {
    max-width: 100%;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .market-overview-signal {
    display: none;
  }

  .market-overview-symbol {
    min-width: 0;
    font-size: 0.66rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .market-overview-price { font-size: 0.82rem; }
  .market-overview-change {
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .market-overview-spark { height: 28px; margin-top: 4px; }
  .market-overview-spark .watchlist-sparkline { height: 28px; }
  .market-card { padding: 11px; border-radius: 8px; }
  .market-card-top { margin-bottom: 4px; }
  .card-top-right { gap: 6px; }
  .market-card h3 { font-size: 0.86rem; margin-bottom: 6px; }
  .price { font-size: 1.38rem; }
  .change { font-size: 0.8rem; margin-top: 4px; }
  .market-chart-panel { height: 44px; }
  .market-context { margin-top: 8px; gap: 5px; padding-top: 8px; }
  .market-stats { grid-template-columns: 1fr; }
  .context-row { font-size: 0.72rem; align-items: flex-start; }
  .context-row strong { max-width: 100%; }
  .catalyst-headline { font-size: 0.69rem; padding: 5px 7px; }
  .catalyst-source,
  .catalyst-confidence { font-size: 0.6rem; }

  /* Market narrative + editorial */
  .market-narrative { font-size: 0.8rem; padding: 9px 11px; margin-bottom: 10px; }
  .regime-history { padding: 6px 10px; gap: 7px; }
  .regime-dot { font-size: 0.63rem; padding: 2px 6px; }
  .event-calendar { padding: 7px 10px; gap: 7px; }
  .event-cal-item { font-size: 0.67rem; padding: 3px 7px; }
  .refresh-changes { padding: 9px 10px; gap: 7px; }
  .refresh-changes-summary { font-size: 0.68rem; }
  .refresh-change-pill { flex-basis: 100%; font-size: 0.7rem; padding: 7px 8px; }
  .asset-alert {
    padding: 9px 10px;
    gap: 5px;
  }
  .asset-alert-title { font-size: 0.8rem; }
  .asset-alert-text { font-size: 0.7rem; }
  .asset-alert-meta { font-size: 0.64rem; }
  .top-story-card,
  .macro-desk-card { padding: 8px 9px; gap: 5px; border-radius: 9px; }
  .top-story-title,
  .macro-desk-summary { font-size: 0.86rem; line-height: 1.22; }
  .why-it-matters,
  .macro-desk-why,
  .macro-desk-lead { font-size: 0.74rem; }
  .top-story-meta,
  .macro-desk-bottom { font-size: 0.68rem; }

  /* Alerts rail */
  .alerts-rail { padding: 6px; gap: 3px; margin-bottom: 8px; border-radius: 8px; box-shadow: none; }
  .alerts-rail::before { display: none; }
  .alert-presets { gap: 4px; }
  .alert-preset-chip { font-size: 0.58rem; padding: 4px 7px; }
  .alert-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 8px;
    padding: 8px 10px;
    align-items: start;
  }
  .alert-label { grid-column: 1 / -1; font-size: 0.6rem; letter-spacing: 0.08em; }
  .alert-text { width: auto; font-size: 0.78rem; white-space: normal; }
  .alert-source { align-self: end; font-size: 0.64rem; }

  /* News items */
  .news-summary { flex-wrap: wrap; gap: 6px; padding: 8px 9px; }
  .news-summary-right { flex-wrap: wrap; width: 100%; gap: 6px; }
  .news-headline-link { font-size: 0.82rem; }
  .news-expand { margin-left: auto; }
  .news-details { padding: 0 9px 9px; }
  .item-meta { font-size: 0.76rem; }
  .tag-chip,
  .badge,
  .cluster-pill,
  .impact-badge { font-size: 0.62rem; }

  /* President wire */
  .wire-card { padding: 9px 10px; }
  .wire-headline { font-size: 0.82rem; }
  .wire-meta { font-size: 0.72rem; }

  /* Market footer */
  .market-footer { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 10px; }
  .market-footer-item { width: 100%; }

  /* Watchlist */
  .watchlist-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .watchlist-sort-btn { grid-column: 1 / -1; }
  .watchlist-summary { gap: 5px; margin-bottom: 4px; }
  .watchlist-summary-chip { font-size: 0.58rem; }
  .watchlist-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .watchlist-main, .watchlist-side { width: 100%; justify-content: space-between; }
  .watchlist-copy { gap: 1px; }
  .watchlist-name { font-size: 0.62rem; }
  .watchlist-price { font-size: 0.9rem; }
  .watchlist-spark { width: 84px; height: 22px; }
  .watchlist-change { min-width: 0; font-size: 0.7rem; padding: 4px 7px; }
  .watchlist-remove { flex-shrink: 0; }
  .watchlist-add-btn, .watchlist-openall-btn, .watchlist-sort-btn { width: 100%; }

  /* Signal labels */
  .signal-label { font-size: 0.54rem; padding: 2px 5px; }

  /* Market strip */
  .market-strip { font-size: 0.72rem; padding: 6px 9px; }
}

@media (max-width: 420px) {
  .app { padding: 8px; }
  .topbar { padding: 7px 8px 9px; }
  h1 { font-size: 1.92rem; }
  .status-card .status-row { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .status-card .status-row:last-child { border-bottom: 0; }
  .ticker-track { gap: 14px; padding: 7px 9px; font-size: 0.72rem; }
  .alert-item { padding: 7px 9px; }
  .alert-text { font-size: 0.75rem; }
  .asset-alert-top,
  .asset-alert-meta { gap: 6px; }
  .price { font-size: 1.28rem; }
  .watchlist-actions { grid-template-columns: 1fr; }
  .watchlist-sort-btn { grid-column: auto; }
  .watchlist-main, .watchlist-side { gap: 8px; }
  .watchlist-spark { width: 76px; }
  .watchlist-change { font-size: 0.66rem; }
  .news-headline-link { font-size: 0.8rem; }
  .top-story-title,
  .macro-desk-summary { font-size: 0.84rem; }
}
