/* dormon design system — research mode (mint accent) · quant terminal shell */
/* Responsive: fluid type, hamburger drawer, touch targets, complete state vocabulary */

@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/IBMPlexSans-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/IBMPlexSans-Bold.ttf"); font-weight: 700; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("../assets/fonts/IBMPlexSansCondensed-Bold.ttf"); font-weight: 700; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-Medium.ttf"); font-weight: 500; }

:root {
  --bg: #0a0d10;
  --bg-deep: #050709;
  --surface: #11151a;
  --surface-2: #161b22;
  --surface-hover: #1a2028;
  --border: #1f262e;
  --border-hi: #2a333d;
  --text: #d6dde5;
  --text-dim: #8a96a4;
  --muted: #646e7a;              /* bumped from #555f6b → passes WCAG AA on --surface */
  --accent: #7ddcc4;
  --accent-dim: #3d8a78;
  --accent-bg: rgba(125, 220, 196, 0.1);
  --pos: #7ddcc4;
  --pos-bg: rgba(125, 220, 196, 0.1);
  --neg: #d97560;
  --neg-bg: rgba(217, 117, 96, 0.1);
  --warn: #e8b56a;
  --warn-bg: rgba(232, 181, 106, 0.15);
  --focus-ring: rgba(125, 220, 196, 0.45);
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --sans-cond: "IBM Plex Sans Condensed", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --nav-w: 188px;
  --statusbar-h: 34px;
  --z-raised: 10;
  --z-sticky: 20;
  --z-toast: 40;
  --z-backdrop: 50;
  --z-drawer: 60;
  /* Fluid type scale (mobile-first clamps) */
  --fs-xs: 10px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 16px;
  --fs-lg: clamp(17px, 1.4vw + 10px, 22px);
  --fs-xl: clamp(20px, 2vw + 12px, 28px);
}

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

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-feature-settings: "tnum";
  overflow-x: hidden;
}

/* ─── Focus ring (shared) ──────────────────────────────── */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-ring);
  border-radius: 2px;
}

/* ─── app shell ────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

.sidenav {
  width: var(--nav-w); flex-shrink: 0;
  background: var(--bg-deep); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* States: sticky (default), .open (mobile drawer) */
.sidenav.open { /* transform set in mobile media query below */ }

.brand { padding: 18px 16px 14px; border-bottom: 1px solid var(--border); }
.brand-title { font-family: var(--sans-cond); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.brand-title .accent { color: var(--accent); }
.brand-sub { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav-items { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: var(--fs-sm); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 9px 10px; border-radius: 4px;
  transition: color 130ms ease-out, background 130ms ease-out;
  min-height: 44px;                           /* touch target */
}
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-item:hover { color: var(--text-dim); background: var(--surface); }
.nav-item.active { color: var(--accent); background: var(--accent-bg); }
.nav-item:active { background: var(--surface-2); }
.nav-item[disabled], .nav-item.disabled { opacity: 0.45; pointer-events: none; cursor: default; }

.nav-foot {
  padding: 12px 16px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.1em;
  color: var(--muted); text-transform: uppercase; line-height: 1.8;
}
.nav-foot .val { color: var(--text-dim); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-bottom: var(--statusbar-h); }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px 12px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.page-title { font-family: var(--sans-cond); font-size: var(--fs-lg); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
.topbar-right { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); flex-wrap: wrap; }
.asof { color: var(--muted); }
.asof .val { color: var(--text); }

/* Hamburger toggle */
.topbar-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 44px; height: 44px;                           /* touch target */
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  transition: border-color 130ms ease-out, background 130ms ease-out;
}
.topbar-hamburger:hover { border-color: var(--border-hi); background: var(--surface); }
.topbar-hamburger:active { background: var(--surface-2); }
.hamburger-line {
  display: block;
  width: 18px; height: 2px;
  background: var(--text-dim);
  border-radius: 1px;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms ease-out;
}
.topbar-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.topbar-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

main#content { flex: 1; padding: 18px 22px 28px; min-width: 0; }

/* ─── KPI strip ────────────────────────────────────────── */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi {
  padding: 12px 14px 11px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  min-width: 0;
}
.kpi-label {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 7px; white-space: pre-line;
}
.kpi-value { font-family: var(--sans-cond); font-size: var(--fs-xl); font-weight: 700; line-height: 1; white-space: nowrap; }
.kpi-value .unit { font-size: var(--fs-md); color: var(--text-dim); font-weight: 400; }
.kpi-value.pos { color: var(--pos); }
.kpi-value.neg { color: var(--neg); }
.kpi-sub { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-dim); margin-top: 6px; }
.kpi-sub .pos { color: var(--pos); }
.kpi-sub .neg { color: var(--neg); }

/* adv/dec ratio bar */
.ratio-bar { display: flex; height: 3px; border-radius: 2px; overflow: hidden; margin-top: 8px; background: var(--surface-2); }
.ratio-bar .a { background: var(--pos); }
.ratio-bar .d { background: var(--neg); }

/* ─── panels ───────────────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; min-width: 0; }
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 14px 9px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.panel-title { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.panel-meta { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.panel-body { padding: 6px 8px 8px; }
.panel-body.pad { padding: 14px; }

.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); gap: 12px; }
.panel-grid > .panel { min-width: 0; }

/* ─── layout helpers ───────────────────────────────────── */
.two-col { display: flex; gap: 14px; align-items: flex-start; }
.sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.rail { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.main-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.section-label {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 10px;
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 14px; }

/* ─── forms ────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; min-width: 0; }
.field label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.field input, .field select {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 2px;
  color: var(--text); font-family: var(--mono); font-size: var(--fs-sm); padding: 7px 9px; outline: none;
  transition: border-color 130ms ease-out, box-shadow 130ms ease-out;
  color-scheme: dark;
}
.field input:focus-visible, .field select:focus-visible {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 2px var(--focus-ring);
}
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row .field { flex: 1; }

input.inline {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 2px;
  color: var(--text); font-family: var(--mono); font-size: var(--fs-sm); padding: 6px 9px; outline: none;
  transition: border-color 130ms ease-out, box-shadow 130ms ease-out;
}
input.inline:focus-visible {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 2px var(--focus-ring);
}
input.inline::placeholder { color: var(--muted); }

/* ─── Buttons ──────────────────────────────────────────── */
button.primary {
  background: var(--accent); color: var(--bg-deep);
  font-family: var(--mono); font-size: var(--fs-sm); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: none; border-radius: 4px; padding: 9px 18px; cursor: pointer;
  transition: filter 130ms ease-out, box-shadow 130ms ease-out;
  min-height: 44px;
}
button.primary:hover { filter: brightness(1.1); }
button.primary:active { filter: brightness(0.92); }
button.primary:disabled { background: var(--accent-dim); cursor: wait; filter: none; }

button.ghost {
  background: transparent; color: var(--accent);
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--accent-dim); border-radius: 4px; padding: 7px 12px; cursor: pointer;
  transition: background 130ms ease-out, box-shadow 130ms ease-out;
  min-height: 44px;
}
button.ghost:hover { background: var(--accent-bg); }
button.ghost:active { background: rgba(125, 220, 196, 0.18); }
button.ghost:disabled { color: var(--muted); border-color: var(--border); cursor: wait; background: transparent; }

button.icon {
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  font-size: 13px; line-height: 1; padding: 6px 8px; border-radius: 3px;
  transition: color 130ms ease-out, box-shadow 130ms ease-out;
  min-width: 32px; min-height: 32px;
}
button.icon:hover { color: var(--neg); }
button.icon:active { color: var(--text); }

/* ─── Chips / filter buttons ───────────────────────────── */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 6px 11px; cursor: pointer;
  transition: color 130ms ease-out, border-color 130ms ease-out, background 130ms ease-out, box-shadow 130ms ease-out;
  min-height: 44px;
}
.chip:hover { color: var(--text); border-color: var(--border-hi); }
.chip:active { background: var(--surface); }
.chip.active { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-bg); }
.chip[disabled], .chip.disabled { opacity: 0.45; pointer-events: none; cursor: default; }

/* ─── tables ───────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
  text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th:first-child, td:first-child { text-align: left; }
th.l, td.l { text-align: left; }
td {
  font-size: var(--fs-sm); padding: 5px 8px; text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
td.mono, td.sym { font-family: var(--mono); font-size: var(--fs-sm); }
td.sym { font-weight: 500; color: var(--text); }
tr:hover td { background: var(--surface-hover); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.dim { color: var(--text-dim); }

td.spark { padding: 2px 8px; }
td.spark canvas { display: block; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── pills / tags ─────────────────────────────────────── */
.pill {
  display: inline-block; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px;
}
.pill + .pill { margin-left: 4px; }
.pill.signal    { background: var(--pos-bg); color: var(--pos); }
.pill.stop_loss { background: var(--neg-bg); color: var(--neg); }
.pill.max_hold  { background: var(--warn-bg); color: var(--warn); }
.pill.end_of_data { background: var(--surface-2); color: var(--text-dim); }
.pill.builtin { background: var(--surface-2); color: var(--text-dim); }
.pill.custom { background: var(--accent-bg); color: var(--accent); }

/* ─── signal feed ──────────────────────────────────────── */
.feed { display: flex; flex-direction: column; }
.feed-date {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
  padding: 9px 6px 5px; border-bottom: 1px solid var(--border);
}
.feed-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 6px; border-bottom: 1px solid var(--border);
}
.feed-item:last-child { border-bottom: none; }
.feed-item .sym { font-family: var(--mono); font-size: var(--fs-sm); font-weight: 500; width: 52px; flex-shrink: 0; }
.feed-item .sigs { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 3px; }
.feed-item .delta { font-family: var(--mono); font-size: var(--fs-sm); flex-shrink: 0; }

/* ─── charts ───────────────────────────────────────────── */
.chart-box { height: clamp(200px, 30vw, 300px); }
.chart-box.short { height: clamp(100px, 15vw, 140px); }

/* ─── notices / skeleton ───────────────────────────────── */
.notice { font-family: var(--mono); font-size: var(--fs-sm); color: var(--text-dim); padding: 22px; text-align: center; }
.notice.error { color: var(--neg); }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 3px; min-height: 12px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(214, 221, 229, 0.05), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ─── status bar ───────────────────────────────────────── */
.statusbar {
  position: fixed; left: var(--nav-w); right: 0; bottom: 0; height: var(--statusbar-h);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0 20px; background: var(--bg-deep); border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--text-dim);
  z-index: var(--z-sticky);
  transition: left 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.status-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.status-left span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-right { flex-shrink: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot.live { background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: pulse 2.4s infinite; }
.dot.err { background: var(--neg); }
@keyframes pulse { 50% { opacity: 0.55; } }

/* data tab action rows */
.action-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.action-row .desc { font-size: var(--fs-sm); color: var(--text-dim); }

/* ─── Mobile drawer backdrop ───────────────────────────── */
.drawer-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(5, 7, 9, 0.65);
  backdrop-filter: blur(2px);
  z-index: var(--z-backdrop);
  opacity: 0;
  transition: opacity 220ms ease-out;
}
.drawer-backdrop.visible { opacity: 1; }

/* ─── Responsive: slide-over drawer below 720px ────────── */
@media (max-width: 720px) {
  :root { --fs-base: 13px; }              /* anchor: prevent sub-12px on tiny screens */

  .topbar-hamburger { display: flex; }

  .sidenav {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: 260px; max-width: 85vw;
    transform: translateX(-100%);
    z-index: var(--z-drawer);
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  .sidenav.open { transform: translateX(0); }

  .drawer-backdrop { display: block; }

  .app-main { width: 100%; }

  .statusbar { left: 0; }

  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar-right { width: 100%; order: 3; }
  .search-combo { flex: 1; min-width: 0; }
  .search-combo input { width: 100%; }

  .two-col { flex-direction: column; }
  .sidebar, .rail { width: 100%; }
  .panel-grid { grid-template-columns: 1fr; }
  main#content { padding: 12px; }

  .kpi-strip { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

  .heatmap-row { grid-template-columns: 80px 1fr 1fr; }

  .panel-head { padding: 8px 10px; }
}

@media (max-width: 380px) {
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 8px 10px; }
  main#content { padding: 8px; }
  .heatmap-row { grid-template-columns: 60px 1fr 1fr; }
  .heatmap-label { font-size: 8px; }
}

/* Large / ultrawide */
@media (min-width: 1800px) {
  :root {
    --nav-w: 220px;
    --fs-base: 15px;
  }
  main#content { padding: 24px 32px 36px; }
  .topbar { padding: 18px 28px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ─── Fundamentals drawer ──────────────────────────────── */
.fund-backdrop {
  position: fixed; inset: 0; z-index: var(--z-raised);
  background: rgba(5, 7, 9, 0.6); backdrop-filter: blur(2px);
}

.fund-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: calc(var(--z-raised) + 1);
  width: clamp(300px, 85vw, 400px);
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -8px 0 30px rgba(0,0,0,0.4);
  display: flex; flex-direction: column;
  overflow-y: auto;
  animation: fund-slide-in 180ms ease-out;
}

@keyframes fund-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.fund-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}

.fund-symbol {
  font-family: var(--sans-cond); font-size: var(--fs-lg); font-weight: 700;
  letter-spacing: -0.01em;
}

.fund-header .icon {
  background: transparent; border: none; color: var(--text-dim);
  font-size: 18px; cursor: pointer; padding: 8px 10px; border-radius: 3px;
  transition: color 130ms ease-out, background 130ms ease-out, box-shadow 130ms ease-out;
  min-width: 44px; min-height: 44px;
}
.fund-header .icon:hover { color: var(--text); background: var(--surface-hover); }
.fund-header .icon:active { background: var(--surface-2); }

.fund-loading {
  font-family: var(--mono); font-size: var(--fs-sm); color: var(--text-dim);
  padding: 28px 16px; text-align: center;
}

.fund-tiles { padding: 12px 16px 8px; }

.fund-section-label {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 6px; border-bottom: 1px solid var(--border); margin: 10px 0 8px;
}

.fund-tile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}

.fund-tile {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 3px; padding: 8px 10px;
}

.fund-tile-label {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}

.fund-tile-val {
  font-family: var(--sans-cond); font-size: var(--fs-md); font-weight: 700; line-height: 1;
}

.fund-tile-val.mono { font-size: var(--fs-sm); }

.fund-ttm { padding: 4px 16px 12px; }

.fund-table { width: 100%; border-collapse: collapse; }
.fund-table td {
  font-family: var(--mono); font-size: var(--fs-sm); padding: 5px 4px;
  border-bottom: 1px solid var(--border); text-align: right;
}
.fund-table td:first-child { text-align: left; color: var(--text-dim); }
.fund-table td:last-child { font-weight: 500; }
.fund-table tr:last-child td { border-bottom: none; }
.fund-table .r { text-align: right; }

.fund-trend { padding: 4px 16px 12px; }
.fund-spark { display: block; width: 100%; height: 40px; margin-top: 6px; }

.fund-provenance {
  padding: 10px 16px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.fund-provenance .text { color: var(--text-dim); }

.fund-empty { padding: 32px 16px; text-align: center; }
.fund-empty-title {
  font-family: var(--mono); font-size: var(--fs-sm); color: var(--text-dim); margin-bottom: 6px;
}
.fund-empty-sub {
  font-size: var(--fs-sm); color: var(--muted); line-height: 1.5;
}

/* Symbol link styling in tables */
td.sym a { color: var(--text); text-decoration: none; transition: color 130ms ease-out; }
td.sym a:hover { color: var(--accent); }
.feed-item .sym a { color: var(--text); text-decoration: none; }
.feed-item .sym a:hover { color: var(--accent); }

@media (max-width: 520px) {
  .fund-drawer { width: 100vw; max-width: 100vw; }
}
