:root {
  color-scheme: dark;
  --ink: #edf3ef;
  --muted: #9aa69f;
  --line: #2a3731;
  --paper: #090e0c;
  --card: #111914;
  --green: #43d59c;
  --green-light: #173b2f;
  --orange: #ff7442;
  --red: #ff725e;
  --red-dark: #ff8a73;
  --blue: #65a9dc;
  --gold: #d9ab4a;
  --orange-on-dark: #ff8b62;
  --surface: #111914;
  --text: #edf3ef;
  --bg: #090e0c;
  --panel-strong: #151e19;
  --on-strong: #f4f7f5;
  --menu-divider-title-gap: 4px;
  --hero-title-bottom-gap: 6px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  min-height: 100%;
  background: #070b09;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -12%, rgba(67,213,156,.09), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(255,116,66,.055), transparent 28rem),
    var(--paper);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { color: inherit; }
button { font: inherit; }

.site-header {
  height: 76px;
  padding: 0 max(clamp(20px, 5vw, 72px), calc((100vw - 1440px) / 2 + 72px));
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: clamp(26px, 3vw, 52px);
  align-items: center;
  background: rgba(9,14,12,.88);
  box-shadow: 0 1px 0 rgba(255,255,255,.025), 0 18px 55px rgba(0,0,0,.12);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 29px;
  height: 22px;
  flex: 0 0 auto;
  background:
    linear-gradient(var(--ink),var(--ink)) 1px 8px/3px 10px no-repeat,
    linear-gradient(var(--orange),var(--orange)) 8px 2px/3px 18px no-repeat,
    linear-gradient(var(--ink),var(--ink)) 15px 6px/3px 12px no-repeat,
    linear-gradient(var(--orange),var(--orange)) 22px 0/3px 16px no-repeat;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 1px;
  top: 11px;
  height: 2px;
  background: var(--green);
  transform: rotate(-13deg);
  transform-origin: center;
}
.brand-wordmark { color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.055em; white-space: nowrap; }
.brand-wordmark span { color: var(--orange); }

.primary-nav {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  gap: clamp(14px, 1.5vw, 30px);
}
.primary-nav a {
  position: relative;
  color: var(--muted);
  font-size: 12pt;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a.active { color: var(--ink); }
.primary-nav a.active::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: -27px;
  background: var(--orange);
}
.mobile-menu-toggle { display: none; }

.icon-button {
  justify-self: end;
  width: 38px;
  height: 38px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}
.icon-button span { display: block; height: 1px; margin: 4px 0; background: var(--ink); }

main {
  max-width: 1440px;
  margin: auto;
  padding: 0 clamp(20px, 5vw, 72px) 70px;
  background: transparent;
}

.overview-view { padding: 0 clamp(20px,5vw,72px) 80px; }
.overview-hero { padding-bottom: var(--hero-title-bottom-gap); border-bottom: 1px solid var(--ink); }
.overview-hero h1 { margin: 0; font-size: clamp(32px,4.5vw,59px); letter-spacing: -.065em; line-height: .95; }
.overview-title-row { flex-wrap: wrap; }
.overview-hero .description { max-width: 760px; }
.market-glance { margin-top: 16px; overflow: hidden; border: 1px solid rgba(23,25,20,.72); border-radius: 14px; background: var(--card); box-shadow: 0 12px 32px rgba(23,25,20,.07); }
.market-glance > header { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); font-family: "DM Mono"; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.market-glance > header span { color: var(--orange); }
.market-glance > header time { color: var(--muted); }
.market-glance-grid { display: grid; grid-template-columns: repeat(7,minmax(150px,1fr)); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--orange) var(--line); }
.market-glance-grid::-webkit-scrollbar { height: 8px; }
.market-glance-grid::-webkit-scrollbar-track { background: var(--line); }
.market-glance-grid::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--orange); }
.market-glance-grid article { position: relative; min-width: 150px; padding: 14px 15px 13px; border-right: 1px solid var(--line); background: linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,0)); }
.market-glance-destination-link { position: absolute; z-index: 2; inset: 0; cursor: pointer; }
.market-glance-destination-link:focus-visible { border-radius: 4px; outline: 2px solid var(--orange); outline-offset: -3px; }
.sector-glance .market-glance-grid { grid-template-columns: repeat(7,minmax(220px,1fr)); }
.sector-glance .market-glance-grid article { display: grid; grid-template-columns: 52px minmax(150px,1fr); grid-template-rows: auto 1fr auto; column-gap: 8px; min-width: 220px; padding: 6px 5px 12px; }
.sector-glance .market-glance-grid article > span { grid-column: 1 / -1; overflow: visible; font-size: 10px; text-overflow: clip; white-space: nowrap; }
.sector-glance .market-glance-grid article strong { grid-column: 1; grid-row: 2; align-self: end; margin-top: 5px; font-size: 14px; }
.sector-glance .market-glance-grid article em { grid-column: 1; grid-row: 3; align-self: start; }
.sector-glance .market-glance-spark { grid-column: 2; grid-row: 2 / 4; align-self: center; margin-top: 0; }
.market-glance-grid article:last-child { border-right: 0; }
.market-glance-grid article > span { display: block; overflow: hidden; color: var(--muted); font-family: "DM Mono"; font-size: 10px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.market-glance-grid article strong { display: block; margin-top: 7px; font-size: 17px; letter-spacing: -.035em; }
.market-glance-grid article em { display: block; margin-top: 3px; color: var(--green); font-family: "DM Mono"; font-size: 10px; font-style: normal; }
.market-glance-grid article em.negative { color: var(--red); }
.market-glance-grid article em.unavailable { color: var(--muted); }
.market-glance-spark { display: block; width: 100%; height: 70px; margin-top: 9px; overflow: visible; }
.market-glance-spark line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.market-glance-spark path { fill: none; stroke: var(--green); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.market-glance-spark path.negative { stroke: var(--red); }
.market-glance-grid article.vix-defcon-card { position: relative; min-height: 159px; padding: 0; perspective: 900px; }
.vix-defcon-toggle { display: block; width: 100%; height: 100%; min-height: 159px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.vix-defcon-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.vix-defcon-inner { position: relative; display: block; width: 100%; height: 100%; min-height: 159px; transform-style: preserve-3d; transition: transform .72s cubic-bezier(.2,.72,.22,1); }
.vix-defcon-card.is-showing-defcon .vix-defcon-inner { transform: rotateY(180deg); }
.vix-defcon-face { position: absolute; inset: 0; display: block; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.vix-defcon-face-vix { padding: 14px 15px 13px; background: linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,0)); }
.vix-defcon-face-vix > span { display: block; overflow: hidden; color: var(--muted); font-family: "DM Mono"; font-size: 10px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.vix-defcon-face-defcon { display: grid; place-items: center; padding: 6px; transform: rotateY(180deg); background: #0a0a0a; }
.vix-defcon-face-defcon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vix-defcon-link { position: absolute; inset: 0; z-index: 2; display: block; pointer-events: none; }
.vix-defcon-card.is-showing-defcon .vix-defcon-link { pointer-events: auto; }
.vix-defcon-link:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  .vix-defcon-inner { transition-duration: .01ms; }
}
.sparkline-axis-line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sparkline-axis-label { fill: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: -.06em; }
.sparkline-axis-time { letter-spacing: -.08em; }
.overview-pulse-card.is-lead .sparkline-axis-label { fill: #bfc2b9; }
.overview-pulse-card.is-lead .sparkline-axis-line { stroke: rgba(255,255,255,.22); }
.overview-pulse { padding-top: 42px; }
.overview-calendar { padding-top: 42px; }
.overview-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 22px; }
.overview-section-heading h2 { margin: 5px 0 0; font-size: 28px; letter-spacing: -.045em; }
.overview-section-heading > p { max-width: 410px; margin: 0; color: var(--muted); font-family: "DM Mono"; font-size: 12px; line-height: 1.6; text-align: right; }
.market-driver-heading-meta { display: grid; justify-items: end; gap: 7px; max-width: 470px; text-align: right; }
.market-driver-heading-meta time { color: var(--green); font-family: "DM Mono"; font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.market-driver-heading-meta p { margin: 0; color: var(--muted); font-family: "DM Mono"; font-size: 12px; line-height: 1.6; }
.overview-pulse-grid { display: grid; grid-template-columns: 1fr; overflow: visible; border: 1px solid var(--ink); border-radius: 14px 14px 0 0; background: var(--line); box-shadow: 0 14px 36px rgba(23,25,20,.08); }
.overview-pulse-card { min-width: 0; padding: 18px 20px; background: var(--card); }
.overview-pulse-card:not(.is-lead) { display: none; }
.overview-pulse-card.is-lead { position: relative; display: grid; grid-template-columns: minmax(190px,.65fr) minmax(280px,1.35fr); gap: 36px; align-items: center; min-height: 190px; padding: 34px 118px 34px 38px; border-radius: 13px 13px 0 0; background: var(--ink); color: var(--paper); }
.overview-pulse-card.is-lead > div:first-child > span { color: var(--orange-on-dark); }
.overview-pulse-card.is-lead h3 { font-size: 28px; }
.overview-pulse-card.is-lead h3 small { color: #bfc2b9; }
.overview-pulse-card.is-lead .macro-mini-chart { display: none; }
.overview-pulse-card.is-lead .macro-chart-meta strong { color: var(--paper); font-size: 18px; }
.overview-pulse-card.is-lead .macro-chart-date { color: #bfc2b9; }
.overview-pulse-card.is-lead .macro-mini-chart svg { height: 146px; }
.overview-pulse-card.is-lead .macro-mini-chart line { stroke: rgba(255,255,255,.22); }
.overview-pulse-card.is-lead .macro-mini-chart path { stroke-width: 2.5; }
.overview-lead-insight { display: block; max-width: 680px; margin: 0; color: #d8dad3; font-size: clamp(16px,1.6vw,21px); font-weight: 500; line-height: 1.45; text-decoration-color: rgba(255,137,92,.7); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.overview-lead-insight[href] { cursor: pointer; }
.overview-lead-insight[href]::after { margin-left: 7px; color: var(--orange-on-dark); content: "↗"; }
.overview-lead-insight[href]:hover, .overview-lead-insight[href]:focus-visible { color: var(--paper); outline: none; text-decoration-color: var(--orange-on-dark); }
.market-driver-grid { display: grid; grid-template-columns: 1fr; overflow: visible; margin-top: 1px; border: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: 0 12px 32px rgba(23,25,20,.05); }
.market-driver-grid[hidden] { display: none; }
.market-driver-grid .calendar-event { position: relative; grid-template-columns: 86px minmax(0,1fr); min-height: 116px; padding: 20px 112px 20px 24px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); background: var(--card); }
.market-driver-grid .calendar-event:last-child { border-bottom: 0; }
.market-driver-story h3 a { color: inherit; text-decoration-color: rgba(237,100,47,.65); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.market-driver-story h3 a:hover, .market-driver-story h3 a:focus-visible { color: var(--orange); outline: none; }
.market-driver-story > b { color: var(--orange); }
.overview-lead-detail { min-width: 0; }
.market-driver-score-popover { position: absolute; top: 18px; right: 18px; z-index: 12; }
.market-driver-score-popover.is-lead-score { top: 24px; right: 26px; }
.market-driver-score-trigger { min-height: 40px; padding: 7px 11px; border: 1px solid rgba(23,25,20,.16); border-radius: 999px; background: var(--orange); color: var(--ink); cursor: help; font: 700 11px "DM Mono"; letter-spacing: .03em; text-transform: uppercase; }
.is-lead-score .market-driver-score-trigger { border-color: rgba(255,255,255,.22); background: var(--orange-on-dark); }
.market-driver-score-card { position: absolute; top: calc(100% + 8px); right: 0; width: min(340px,calc(100vw - 56px)); padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: 0 18px 46px rgba(23,25,20,.2); opacity: 0; visibility: hidden; transform: translateY(-5px); transition: opacity .16s ease,transform .16s ease,visibility .16s; pointer-events: none; }
.market-driver-score-card small { display: block; color: var(--muted); font: 500 10px "DM Mono"; letter-spacing: .08em; text-transform: uppercase; }
.market-driver-score-card strong { display: block; margin-top: 8px; color: var(--orange); font-size: 24px; letter-spacing: -.04em; }
.market-driver-score-card span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.market-driver-score-popover:hover .market-driver-score-card,.market-driver-score-popover:focus-within .market-driver-score-card { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.overview-pulse-card > div:first-child > span { color: var(--orange); font-family: "DM Mono"; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.overview-pulse-card h3 { margin: 6px 0 0; font-size: 19px; letter-spacing: -.04em; }
.overview-pulse-card h3 small { color: var(--muted); font-family: "DM Mono"; font-size: 10px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.overview-pulse-card h3 small::before { content: "· "; }
.overview-pulse-card > div:first-child > p { margin: 0; color: var(--muted); font-size: 12px; }
.overview-pulse-card .macro-mini-chart { margin-top: 12px; padding-top: 10px; }
.overview-pulse-card .macro-chart-meta b { font-size: 10px; }
.overview-pulse-card .macro-chart-meta strong { margin-right: 9px; color: var(--ink); font-family: "DM Mono"; font-size: 12px; }
.overview-pulse-card .macro-mini-chart svg { height: 96px; }
.overview-calendar { margin-top: 18px; }
.calendar-feature { display: grid; grid-template-columns: 84px 1fr auto; gap: 24px; align-items: center; padding: 24px 26px; border: 1px solid var(--ink); border-radius: 14px 14px 0 0; background: var(--ink); color: var(--paper); box-shadow: 0 12px 32px rgba(23,25,20,.08); }
.calendar-feature-date { display: grid; place-items: center; min-height: 76px; border: 1px solid rgba(255,255,255,.28); }
.calendar-feature-date strong { font-family: "DM Mono"; font-size: 30px; font-weight: 500; line-height: 1; }
.calendar-feature-date span { color: var(--orange-on-dark); font-family: "DM Mono"; font-size: 10px; }
.calendar-kicker { margin: 0 0 6px; color: var(--orange-on-dark); font-family: "DM Mono"; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.calendar-feature h3 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.calendar-feature h3 a, .calendar-event h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.calendar-feature h3 a:hover, .calendar-feature h3 a:focus-visible, .calendar-event h3 a:hover, .calendar-event h3 a:focus-visible { border-bottom-color: currentColor; }
.calendar-feature div > p:last-child { margin: 7px 0 0; color: #c9cbc4; font-size: 12px; }
.calendar-feature > time { font-family: "DM Mono"; font-size: 13px; white-space: nowrap; }
.calendar-grid { display: grid; grid-template-columns: repeat(2,1fr); overflow: hidden; border-left: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: 0 12px 32px rgba(23,25,20,.05); }
.calendar-event { position: relative; display: grid; grid-template-columns: 86px 1fr; gap: 20px; min-height: 150px; padding: 24px 54px 24px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-event > time { padding-right: 16px; border-right: 1px solid var(--line); }
.calendar-event > time strong, .calendar-event > time span { display: block; font-family: "DM Mono"; }
.calendar-event > time strong { color: var(--orange); font-size: 27px; font-weight: 500; }
.calendar-event > time span { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.calendar-event div p { margin: 0 0 7px; color: var(--muted); font-family: "DM Mono"; font-size: 10px; text-transform: uppercase; }
.calendar-event h3 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.calendar-event div span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.calendar-event > b { position: absolute; top: 24px; right: 18px; color: var(--red-dark); font-family: "DM Mono"; font-size: 10px; letter-spacing: .06em; }
.calendar-event.has-results > b { color: var(--green); }
@media (max-width: 900px) { .overview-pulse-card.is-lead { grid-template-columns: 1fr; gap: 22px; } .calendar-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .overview-pulse-grid { grid-template-columns: 1fr; } .overview-pulse-card.is-lead { grid-column: auto; } }
@media (max-width: 650px) { .overview-hero, .overview-section-heading { display: block; } .overview-hero .market-status, .overview-section-heading > p { margin-top: 20px; text-align: left; } .market-driver-heading-meta { justify-items: start; margin-top: 12px; text-align: left; } .calendar-feature { grid-template-columns: 64px 1fr; } .calendar-feature > time { grid-column: 2; } .calendar-event { grid-template-columns: 64px 1fr; padding-right: 42px; } }
.ipo-calendar-view{padding-bottom:80px}.ipo-calendar-card{padding:44px 0}.ipo-calendar-controls{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(3,minmax(150px,.7fr));gap:14px;margin:28px 0 18px}.ipo-calendar-controls label{display:grid;gap:7px;color:var(--muted);font-family:"DM Mono";font-size:10px;text-transform:uppercase;letter-spacing:.06em}.ipo-calendar-controls input,.ipo-calendar-controls select{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--ink);font:12px "DM Mono"}.ipo-calendar-legend{display:flex;flex-wrap:wrap;gap:18px;padding:0 0 24px;color:var(--muted);font:10px "DM Mono";text-transform:uppercase}.ipo-calendar-legend span{display:flex;align-items:center;gap:7px}.ipo-calendar-legend i{width:8px;height:8px;border-radius:50%;background:#777}.ipo-calendar-legend .confirmed{background:var(--green)}.ipo-calendar-legend .filed{background:var(--blue)}.ipo-calendar-legend .announced{background:var(--gold)}.ipo-calendar-legend .postponed{background:var(--red-dark)}.ipo-calendar-legend .reported{background:#777}.ipo-month{margin-top:34px}.ipo-month>header{display:flex;justify-content:space-between;align-items:baseline;padding:0 0 12px;border-bottom:1px solid var(--ink)}.ipo-month>header h3{margin:0;font-size:22px}.ipo-month>header span{color:var(--muted);font:10px "DM Mono"}.ipo-event{min-height:210px}.ipo-event h3 small{display:inline-block;margin-left:6px;color:var(--orange);font:10px "DM Mono"}.ipo-event footer{display:flex;flex-wrap:wrap;gap:7px 12px;margin-top:15px}.ipo-event footer em,.ipo-event footer a{color:var(--muted);font:10px "DM Mono";font-style:normal;text-decoration:none}.ipo-event footer a{color:var(--ink);border-bottom:1px solid var(--ink)}.ipo-event.status-confirmed{box-shadow:inset 3px 0 var(--green)}.ipo-event.status-filed{box-shadow:inset 3px 0 var(--blue)}.ipo-event.status-announced{box-shadow:inset 3px 0 var(--gold)}.ipo-event.status-postponed{box-shadow:inset 3px 0 var(--red-dark)}.ipo-event.status-reported{box-shadow:inset 3px 0 #777}@media(max-width:900px){.ipo-calendar-controls{grid-template-columns:1fr 1fr}}@media(max-width:560px){.ipo-calendar-controls{grid-template-columns:1fr}.primary-nav{gap:10px}.primary-nav a{font-size:10px}}

.hero {
  padding: var(--menu-divider-title-gap) 0 var(--hero-title-bottom-gap);
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.eyebrow, .section-label {
  margin: 0 0 15px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 12pt;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.title-row { display: flex; gap: 18px; align-items: center; }
.eyebrow,
.title-row > .ticker,
.dead-projects-hero .section-label,
.market-calendar-panel > header .section-label,
.market-calendar-panel > header > span { display: none; }
.site-header .auth-button { justify-self: end; display: inline-grid; place-items: center; width: auto; min-width: 0; height: 36px; padding: 0 15px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; font-family: "DM Mono"; font-size: 11px; line-height: 1; transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.site-header .auth-button.is-signed-in { width: 44px; height: 44px; padding: 0; border-color: var(--green); border-radius: 50%; background: var(--green-light); color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.account-status { justify-self: end; display: flex; align-items: center; gap: 9px; }
.theme-toggle { display: inline-flex; min-width: 70px; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; align-items: center; justify-content: center; gap: 7px; background: var(--card); color: var(--ink); cursor: pointer; font: 10px "DM Mono", monospace; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.theme-toggle-icon { width: 13px; color: var(--orange); font-family: Arial, sans-serif; font-size: 16px; line-height: 1; text-align: center; }
.theme-toggle-label { line-height: 1; }
.auth-button:hover, .auth-button:focus-visible { background: var(--ink); color: var(--card); outline: none; }
.site-header .auth-button.is-signed-in:hover, .site-header .auth-button.is-signed-in:focus-visible { border-color: var(--green); background: var(--green); color: var(--card); transform: translateY(-1px); }
.site-header .auth-button:focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.auth-dialog { width: min(500px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
.auth-dialog::backdrop { background: rgba(23,25,20,.58); backdrop-filter: blur(3px); }
.auth-dialog > section { padding: 26px; }
.auth-dialog header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-dialog header .section-label { margin-bottom: 7px; font-size: 10px; }
.auth-dialog h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.auth-dialog header > button { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 24px; }
.auth-tabs { display: grid; grid-template-columns: repeat(2,1fr); margin: 20px 0; border: 1px solid var(--line); }
.auth-tabs[hidden] { display: none; }
.auth-tabs button { padding: 10px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; font-family: "DM Mono"; font-size: 11px; }
.auth-tabs button:last-child { border-right: 0; }
.auth-tabs button.active { background: var(--ink); color: var(--card); }
#auth-signup-form label, #auth-login-form label, #auth-reset-form label, #auth-profile-form label { display: block; margin-top: 14px; color: var(--muted); font-family: "DM Mono"; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.auth-signup-name { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.auth-signup-name[hidden] { display: none; }
#auth-signup-form input, #auth-login-form input, #auth-reset-form input, #auth-profile-form input { box-sizing: border-box; width: 100%; height: 42px; margin-top: 7px; padding: 0 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-family: "DM Mono"; font-size: 13px; }
#auth-signup-form label small, #auth-reset-form label small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; text-transform: none; letter-spacing: 0; }
.auth-privacy-notice { margin: 13px 0 0; color: var(--muted); font-family: "DM Mono"; font-size: 10px; line-height: 1.55; }
.auth-privacy-notice a { color: inherit; text-underline-offset: 2px; }
.auth-submit, .auth-account button { width: 100%; margin-top: 18px; padding: 11px; border: 1px solid var(--ink); background: var(--ink); color: var(--card); cursor: pointer; font-family: "DM Mono"; font-size: 11px; }
.auth-secondary { width: 100%; margin-top: 10px; padding: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-family: "DM Mono"; font-size: 11px; text-decoration: underline; }
.auth-message { min-height: 18px; margin: 10px 0 0; color: var(--red-dark); font-family: "DM Mono"; font-size: 10px; }
.auth-account { padding-top: 20px; }
.auth-account[hidden] { display: none; }
.auth-account strong, .auth-account p { font-family: "DM Mono"; }
.auth-account strong { font-size: 14px; }
.auth-account p { color: var(--muted); font-size: 12px; }
.account-billing { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-billing .section-label { margin: 0 0 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.account-billing > p { margin: 7px 0 0; line-height: 1.5; }
.billing-upgrade { margin-top: 14px; padding: 13px; border: 1px solid var(--line); background: var(--card); }
.billing-upgrade[hidden] { display: none; }
.billing-upgrade > p { margin: 0; line-height: 1.5; }
.billing-upgrade > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.billing-upgrade button { margin-top: 12px; }
.billing-upgrade .billing-legal-notice { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.billing-upgrade .billing-legal-notice a { color: inherit; text-underline-offset: 2px; }
#billing-manage[hidden] { display: none; }
#billing-message { color: var(--red-dark); }
.welcome-content { padding-top: 22px; }
.welcome-content p { margin: 0; color: var(--muted); font-family: "DM Mono"; font-size: 12px; line-height: 1.6; }
h1 { margin: 0; font-size: clamp(41px, 6vw, 77px); line-height: .9; letter-spacing: -.08em; }
.ticker {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 12pt;
}
.description { max-width: 560px; margin: 28px 0 0; color: var(--muted); font-size: 12pt; line-height: 1.7; }

.market-status {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  align-items: center;
  padding-bottom: 4px;
  font-size: 12pt;
  font-weight: 600;
}
.market-status time { grid-column: 2; color: var(--muted); font-family: "DM Mono"; font-size: 12pt; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.metrics article { padding: 24px 20px; border-right: 1px solid var(--line); }
.metrics article:first-child { padding-left: 0; }
.metrics article:last-child { border: 0; }
.metrics p { margin: 0 0 9px; color: var(--muted); font-size: 12pt; text-transform: uppercase; letter-spacing: .08em; }
.metrics .metric-label { display: flex; gap: 8px; align-items: baseline; }
.metrics .metric-label time { font: inherit; }
.metrics strong { display: block; font-family: "DM Mono"; font-size: 17px; font-weight: 500; letter-spacing: -.05em; }
.metrics strong i { color: var(--line); font-style: normal; }
.metrics span { display: block; margin-top: 6px; color: var(--muted); font-family: "DM Mono"; font-size: 12pt; }
.metrics span b, .metrics span em { font: inherit; }
.metrics span b { color: var(--red); }
.metrics span em { color: var(--green); font-style: normal; }
.metrics span i { color: var(--line); font-style: normal; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.chart-card { padding: 52px 0 24px; border-bottom: 1px solid var(--line); }
.chart-header { display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(360px, 1.3fr); gap: 28px; align-items: end; }
.chart-header h2 { margin: 0; color: var(--green); font-family: "DM Mono"; font-size: 28px; font-weight: 500; letter-spacing: -.06em; }
.chart-header span { color: var(--muted); font-size: 12pt; }
.focus-range {
  min-width: 190px;
  padding: 0 22px 2px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.focus-range p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12pt;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.focus-range strong {
  display: block;
  font-family: "DM Mono";
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.05em;
}
.focus-range strong i { color: var(--line); font-style: normal; }
.focus-range span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: "DM Mono";
  font-size: 12pt;
}
.focus-range span b, .focus-range span em { font: inherit; }
.focus-range span b { color: var(--red); }
.focus-range span em { color: var(--green); font-style: normal; }
.focus-range span i { color: var(--line); font-style: normal; }
.range-controls { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 700px; }
.range-controls button {
  width: 42px;
  height: 30px;
  border: 0;
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  font-family: "DM Mono";
  font-size: 12pt;
  cursor: pointer;
}
.range-controls button:hover, .range-controls button.active { color: var(--card); background: var(--ink); }
.range-controls .rotate-button {
  width: 30px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.range-controls .rotate-button.active {
  border-color: var(--ink);
  color: var(--card);
  background: var(--green);
}

.chart-wrap { position: relative; width: 100%; height: 390px; margin-top: 28px; }
#chart { width: 100%; height: 100%; overflow: visible; }
.grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.axis-text { fill: var(--muted); font-family: "DM Mono"; font-size: 12pt; }
.area { fill: url(#areaGradient); }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.data-point { fill: var(--card); stroke: var(--green); stroke-width: 2; }
.record-high-dot { fill: var(--orange); stroke: var(--card); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(237, 100, 47, .48)); }
.record-high-label { fill: var(--orange); font-family: "DM Mono"; font-size: 12pt; font-weight: 500; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.hover-line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; }
.hover-dot { fill: var(--card); stroke: var(--green); stroke-width: 2; opacity: 0; }
.interaction { fill: transparent; cursor: crosshair; }

.tooltip {
  position: absolute;
  z-index: 2;
  width: 128px;
  padding: 10px 11px;
  border: 1px solid var(--ink);
  background: var(--card);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
}
.tooltip span, .tooltip strong, .tooltip em { display: block; font-family: "DM Mono"; font-size: 12pt; font-style: normal; }
.tooltip span { margin-bottom: 5px; color: var(--muted); }
.tooltip strong { font-size: 12pt; font-weight: 500; }
.tooltip em { margin-top: 4px; color: var(--green); }

.chart-footer { display: flex; justify-content: space-between; color: var(--muted); font-family: "DM Mono"; font-size: 12pt; }
.chart-footer p { margin: 0; }
.legend-line { display: inline-block; width: 18px; height: 2px; margin: 0 8px 3px 0; background: var(--green); }

.lower-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.lower-grid article { background: var(--paper); padding: 48px 0; }
.movers-card { padding-right: 50px !important; }
.brief-card { padding-left: 50px !important; }
.card-title { display: flex; justify-content: space-between; align-items: start; margin-bottom: 34px; }
.card-title h2, .brief-card h2 { margin: 0; font-size: 22px; letter-spacing: -.05em; }
.card-title > span { color: var(--muted); font-family: "DM Mono"; font-size: 12pt; }
.sector-row { display: grid; grid-template-columns: 30px 120px 1fr 60px; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.sector-row > span, .sector-row em { color: var(--muted); font-family: "DM Mono"; font-size: 12pt; font-style: normal; }
.sector-row strong { font-size: 12pt; }
.sector-row em { color: var(--green); text-align: right; }
.sector-track { height: 3px; background: var(--line); }
.sector-track i { display: block; height: 100%; background: var(--green); }
.brief-card h2 { max-width: 400px; font-size: 27px; line-height: 1.25; }
.brief-card > p:not(.section-label) { max-width: 420px; margin: 22px 0; color: var(--muted); font-size: 12pt; line-height: 1.8; }
.brief-card a { font-size: 12pt; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); }
.brief-card a span { margin-left: 5px; color: var(--orange); }

body > footer { padding: 25px clamp(20px, 5vw, 72px); display: grid; gap: 20px; color: var(--muted); font-family: "DM Mono"; font-size: 12pt; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
body > footer p { margin: 0; }
body > footer span { color: var(--line); }
body > footer .copyright { color: #000; font-family: Arial, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 0; text-rendering: geometricPrecision; }
.footer-actions, .footer-notice { display: flex; justify-content: center; align-items: center; gap: 20px; }
.footer-actions { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer-actions a, .footer-actions button { min-height: 40px; padding: 9px 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font: 11px "DM Mono"; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.footer-actions a:hover, .footer-actions button:hover { background: var(--ink); color: var(--card); }
.footer-actions .youtube-link { display: inline-flex; min-width: 42px; padding-inline: 10px; align-items: center; justify-content: center; }
.footer-actions .youtube-link svg { width: 24px; height: 18px; color: #ff0033; fill: currentColor; }
.footer-actions .youtube-link .youtube-play { fill: #fff; }
.contact-dialog form { padding-top: 20px; }
.contact-dialog label { display: block; margin-top: 14px; color: var(--muted); font-family: "DM Mono"; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.contact-dialog input, .contact-dialog textarea { box-sizing: border-box; width: 100%; margin-top: 7px; padding: 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 13px "Manrope"; }
.contact-dialog textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.contact-dialog .contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-message.is-success { color: var(--green); }

@media (max-width: 1100px) {
  .site-header {
    height: auto;
    min-height: 76px;
    padding-top: 17px;
    padding-bottom: 17px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    row-gap: 0;
  }
  .site-header .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .mobile-menu-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--ink);
    background: transparent;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    cursor: pointer;
    font-family: "DM Mono";
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus-visible, .mobile-menu-toggle[aria-expanded="true"] {
    background: var(--ink);
    color: var(--card);
    outline: none;
  }
  .mobile-menu-icon, .mobile-menu-icon::before, .mobile-menu-icon::after {
    display: block;
    width: 15px;
    height: 1px;
    background: currentColor;
  }
  .mobile-menu-icon { position: relative; }
  .mobile-menu-icon::before, .mobile-menu-icon::after { content: ""; position: absolute; left: 0; }
  .mobile-menu-icon::before { top: -5px; }
  .mobile-menu-icon::after { top: 5px; }
  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    margin-top: 14px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  .site-header .account-status { grid-column: 3; grid-row: 1; }
  .primary-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }
  .primary-nav a.active::after { right: auto; bottom: -1px; width: 42px; }
}

@media (max-width: 800px) {
  .hero { padding-top: 48px; display: block; }
  .market-status { margin-top: 32px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(3), .metrics article:nth-child(4) { border-top: 1px solid var(--line); }
  .metrics article:nth-child(3) { padding-left: 0; }
  .chart-header { display: block; }
  .focus-range { margin-top: 25px; padding: 18px 0 0; border-left: 0; border-right: 0; border-top: 1px solid var(--line); }
  .range-controls { margin-top: 25px; justify-content: flex-start; max-width: none; }
  .chart-wrap { height: 300px; }
  .lower-grid { display: block; background: transparent; }
  .movers-card { padding-right: 0 !important; }
  .brief-card { padding-left: 0 !important; border-top: 1px solid var(--line); }
  .footer-notice { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  h1 { font-size: 41px; }
  .metrics strong { font-size: 12pt; }
  .metrics article { padding: 20px 10px; }
  .sector-row { grid-template-columns: 22px 95px 1fr 55px; gap: 7px; }
  .chart-footer { gap: 12px; }
}

.series-panel {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}

.series-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.series-tabs button {
  min-width: 42px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  font-family: "DM Mono";
  font-size: 12pt;
  cursor: pointer;
}

.series-tabs button:hover,
.series-tabs button.active {
  color: var(--card);
  background: var(--ink);
  border-color: var(--ink);
}

.static-note {
  min-width: 220px;
  padding: 0 0 2px 24px;
  border-left: 1px solid var(--line);
}

.static-note p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12pt;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.static-note span {
  color: var(--muted);
  font-family: "DM Mono";
  font-size: 12pt;
}

@media (max-width: 800px) {
  .series-panel { grid-template-columns: 1fr; }
  .static-note { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

.correction-label {
  fill: var(--red);
  font-family: "DM Mono";
  font-size: 12pt;
  font-weight: 500;
  paint-order: stroke;
  stroke: var(--card);
  stroke-width: 4px;
  stroke-linejoin: round;
}

[data-panel][hidden] { display: none !important; }

.analysis-view { display: block; }
.analysis-hero {
  padding: var(--menu-divider-title-gap) 0 var(--hero-title-bottom-gap);
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.analysis-method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.analysis-method article {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
}

.analysis-method article:first-child { padding-left: 0; }
.analysis-method article:last-child { border-right: 0; }
.analysis-method strong {
  display: block;
  font-family: "DM Mono";
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.05em;
}
.analysis-method span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: "DM Mono";
  font-size: 12pt;
}
.analysis-method:has(.macro-story) { grid-template-columns: minmax(270px, 1.15fr) repeat(3, minmax(190px, 1fr)); }
.macro-story span { max-width: 620px; line-height: 1.55; }
.macro-story-label { display: flex; align-items: center; gap: 12px; font-family: "DM Mono", monospace; font-size: 12pt; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.macro-story-label time { padding-left: 12px; border-left: 1px solid var(--line); color: var(--orange); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.macro-points { margin: 14px 0 0; padding: 0; list-style: none; }
.macro-points li { position: relative; margin-top: 9px; padding-left: 18px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 12pt; line-height: 1.55; }
.macro-points li::before { position: absolute; left: 0; color: var(--orange); content: "\2192"; }
.macro-detail-story span { line-height: 1.55; }
.macro-mini-chart { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.macro-mini-chart p { margin: 0; color: var(--muted); font-family: "DM Mono"; font-size: 11px; }
.macro-chart-meta { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 6px; font-family: "DM Mono"; font-size: 10px; }
.macro-chart-meta.with-title { align-items: baseline; justify-content: space-between; }
.macro-chart-meta b { font-weight: 500; }
.macro-chart-meta > span { display: inline-flex; align-items: baseline; gap: 8px; }
.macro-chart-meta > span strong { color: var(--ink); font-size: 13px; font-weight: 500; }
.macro-contract-tooltip { position: relative; border-bottom: 1px dotted var(--orange); color: var(--orange); cursor: help; outline: none; }
.macro-contract-tooltip i { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: 190px; padding: 7px 9px; border: 1px solid var(--ink); background: var(--ink); color: var(--card); font-family: "DM Mono"; font-size: 10px; font-style: normal; font-weight: 400; line-height: 1.35; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease; }
.macro-contract-tooltip:hover i, .macro-contract-tooltip:focus i { opacity: 1; transform: translate(-50%, 0); }
.macro-chart-meta em { color: var(--green); font-style: normal; }
.macro-chart-meta em.negative { color: var(--red); }
.macro-chart-date { display: block; margin: -2px 0 8px; color: var(--muted); font-family: "DM Mono"; font-size: 10px; }
.macro-mini-chart svg { display: block; width: 100%; height: 96px; overflow: visible; }
.macro-mini-chart path { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.macro-mini-chart path.negative { stroke: var(--red); }
.macro-mini-chart line { stroke: var(--line); stroke-width: 1; }
.macro-detail-story, .macro-story { position: relative; }
.analysis-method article > .macro-mini-chart, .macro-current-story > .macro-mini-chart { margin-top: auto; }
.macro-stock-stories { padding: 38px 0 42px; border-bottom: 1px solid var(--line); }
.macro-stock-stories > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.macro-stock-stories > header .section-label { margin: 0; }
.focus-history-link { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--orange); cursor: pointer; font: 600 18px "Manrope"; }
.focus-history-link small { padding: 3px 5px; border: 1px solid currentColor; font: 600 10px/1 "DM Mono"; letter-spacing: .08em; text-transform: uppercase; }
.focus-history-link b { font-size: 13px; font-weight: 500; }
.focus-history-link:disabled { cursor: progress; opacity: .55; }
.focus-history-link:hover, .focus-history-link:focus-visible { color: var(--ink); outline: none; }
.macro-stock-stories h2 { margin: 0; font-size: 27px; letter-spacing: -.05em; }
.macro-stock-story-grid { display: grid; grid-template-columns: 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(23,25,20,.05); }
.macro-stock-story { grid-template-columns: 86px minmax(0,1fr) 190px; align-items: center; min-height: 116px; padding: 20px 58px 20px 24px; border-right: 0; border-bottom: 1px solid var(--line); background: var(--card); }
.macro-stock-story:last-child { border-bottom: 0; }
.macro-stock-story.major { box-shadow: inset 3px 0 var(--red-dark); background: rgba(167,60,39,.035); }
.macro-stock-story h3 a { color: inherit; text-decoration-color: rgba(237,100,47,.65); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.macro-stock-posted { display: block; margin-top: 9px; color: var(--orange); font-family: "DM Mono"; font-size: 10px; letter-spacing: .03em; }
.focus-history-edition li small { display: inline; margin-left: 6px; color: var(--orange); font-family: "DM Mono"; font-size: 10px; font-weight: 400; }
.macro-stock-story h3 a:hover, .macro-stock-story h3 a:focus-visible { color: var(--orange); outline: none; }
.macro-stock-story .focus-ticker-link { color: var(--orange); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.macro-stock-story .focus-ticker-link:hover, .macro-stock-story .focus-ticker-link:focus-visible { color: var(--ink); outline: none; }
.macro-focus-sparkline { min-width: 0; }
.macro-focus-sparkline svg { display: block; width: 100%; height: 74px; overflow: visible; }
.macro-focus-sparkline path { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.macro-focus-sparkline svg.negative path { stroke: var(--red); }
.focus-sparkline-empty { color: var(--muted); font-family: "DM Mono"; font-size: 10px; }
.macro-stock-conclusions { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--ink); }
.macro-stock-conclusions > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.macro-stock-conclusions h3 { margin: 5px 0 0; font-size: 26px; letter-spacing: -.04em; }
.macro-stock-conclusions > header button { border: 0; border-bottom: 1px solid currentColor; padding: 2px 0; background: transparent; color: var(--orange); font-family: "DM Mono"; font-size: 11px; cursor: pointer; }
.macro-stock-conclusions ol { display: grid; grid-template-columns: 1fr; overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(23,25,20,.05); list-style: none; }
.macro-stock-conclusions li { min-height: 190px; padding: 22px 78px 22px 24px; border-right: 0; border-bottom: 1px solid var(--line); background: var(--card); }
.macro-stock-conclusions li:last-child { border-bottom: 0; }
.macro-stock-conclusions li::before { content: none; }
.macro-conclusion-story.strong { box-shadow: inset 3px 0 #39704b; }
.macro-conclusion-story.weak { box-shadow: inset 3px 0 #a76527; }
.conclusion-validation-evidence { margin-top: 16px; padding: 14px 16px; border-left: 2px solid var(--orange); background: rgba(23,25,20,.035); }
.conclusion-validation-evidence > strong { display: block; color: var(--orange); font-family: "DM Mono"; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.conclusion-validation-evidence > p { margin: 8px 0 0; color: var(--muted); font-family: "DM Mono"; font-size: 12px; line-height: 1.55; }
.conclusion-validation-evidence > a { display: inline-block; margin-top: 9px; color: var(--orange); font-family: "DM Mono"; font-size: 10px; text-decoration: none; border-bottom: 1px solid currentColor; }
.macro-stock-validation-grid { display: grid; grid-template-columns: 1fr; overflow: hidden; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(23,25,20,.05); }
.macro-stock-validation-grid[hidden] { display: none; }
.macro-stock-validation { min-height: 132px; padding: 20px 78px 20px 24px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(23,25,20,.018); }
.macro-stock-validation:last-child { border-bottom: 0; }
.macro-stock-validation.strong { box-shadow: inset 3px 0 #39704b; }
.macro-stock-validation.weak { box-shadow: inset 3px 0 #a76527; }
.macro-stock-validation a { display: inline-block; margin-top: 10px; color: var(--orange); font-family: "DM Mono"; font-size: 10px; text-decoration: none; border-bottom: 1px solid currentColor; }
.focus-history-dialog { width: min(860px,calc(100vw - 32px)); }
.focus-history-content { max-height: 65vh; overflow: auto; padding-top: 20px; }
.focus-history-empty { margin: 0; color: var(--muted); font-family: "DM Mono"; font-size: 12px; }
.focus-history-edition { padding: 18px 0; border-bottom: 1px solid var(--line); }
.focus-history-edition:first-child { padding-top: 0; }
.focus-history-edition h3 { margin: 0; font-size: 18px; }
.focus-history-edition > small { display: block; margin-bottom: 7px; color: var(--orange); font-family: "DM Mono"; font-size: 10px; text-transform: uppercase; }
.focus-history-edition ul, .focus-history-edition ol { margin: 12px 0 0; padding-left: 22px; }
.focus-history-edition li { margin: 7px 0; color: var(--muted); font-family: "DM Mono"; font-size: 12px; line-height: 1.5; }
#myanalysis-view > [hidden] { display: none !important; }
.current-story-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.current-story-label > span { display: inline; margin: 0; color: inherit; font: inherit; letter-spacing: inherit; }
.current-story-label time { color: var(--orange); font-family: "DM Mono"; font-size: 10px; letter-spacing: .05em; white-space: nowrap; }
.macro-detail-story.has-story-history, .macro-story.has-story-history { padding-bottom: calc(24px + var(--history-space)); }
.macro-current-story { position: relative; z-index: 10; display: flex; flex-direction: column; min-height: 100%; padding: 14px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 7px 15px rgba(23,25,20,.08); }
.macro-history-layers { position: absolute; z-index: 1; inset: 24px 12px auto 12px; height: 100%; pointer-events: none; }
.macro-history-card { position: absolute; z-index: var(--history-layer); top: var(--history-offset); left: var(--history-inset); right: 0; height: 25%; min-height: 52px; padding: 12px 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: 0 6px 12px rgba(23,25,20,.07); text-align: left; cursor: pointer; pointer-events: auto; }
.macro-history-card:hover, .macro-history-card:focus-visible { border-color: var(--orange); outline: none; }
.macro-history-card small, .macro-history-card strong { display: block; overflow: hidden; font-family: "DM Mono"; text-overflow: ellipsis; white-space: nowrap; }
.macro-history-card small { color: var(--orange); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.macro-history-card strong { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.story-history-dialog { width: min(620px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
.story-history-dialog::backdrop { background: rgba(23,25,20,.58); backdrop-filter: blur(3px); }
.story-history-dialog article { padding: 26px; }
.story-history-dialog header { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.story-history-dialog .section-label { margin-bottom: 8px; font-size: 10px; }
.story-history-dialog h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.story-history-dialog header button { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 24px; }
.story-history-dialog > article > p { margin: 22px 0 0; color: var(--muted); font-family: "DM Mono"; font-size: 12pt; line-height: 1.65; }
.analysis-area { fill: url(#analysisAreaGradient); }

.watchlist-toolbar{display:flex;justify-content:space-between;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}.watchlist-toolbar p{margin:0 0 5px}.watchlist-toolbar strong{font-family:"DM Mono";font-size:14px;font-weight:500}.watchlist-toolbar button{padding:10px 16px;border:1px solid var(--ink);background:transparent;cursor:pointer;font-family:"DM Mono";font-size:12px}.watchlist-toolbar button:hover{color:var(--card);background:var(--ink)}.watchlist-toolbar button:disabled{opacity:.5;cursor:wait}.watchlist-card{padding:48px 0 72px}.watchlist-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:26px}.watchlist-heading h2{margin:0;font-size:27px;letter-spacing:-.05em}.watchlist-heading>span{color:var(--muted);font-family:"DM Mono";font-size:12px}.watchlist-table{border-top:1px solid var(--ink)}.watchlist-row{display:grid;grid-template-columns:70px minmax(220px,1.2fr) minmax(170px,.8fr) minmax(230px,1fr);gap:22px;align-items:center;min-height:94px;border-bottom:1px solid var(--line)}.watchlist-header{min-height:42px;color:var(--muted);font-family:"DM Mono";font-size:11px;text-transform:uppercase;letter-spacing:.08em}.watchlist-company strong,.watchlist-company span,.watchlist-earnings small{display:block}.watchlist-company strong{margin-bottom:5px;font-family:"DM Mono";font-size:18px}.watchlist-company span,.watchlist-earnings small{color:var(--muted);font-size:12px}.watchlist-rank{color:var(--orange);font-family:"DM Mono"}.watchlist-cap{font-family:"DM Mono";font-size:15px;font-weight:500}.watchlist-earnings a,.earnings-date{display:inline-block;margin-bottom:5px;font-size:13px;font-weight:700}.watchlist-earnings a{text-decoration:none;border-bottom:1px solid var(--ink)}.watchlist-earnings a span{color:var(--orange)}.watchlist-message{padding:35px 0;color:var(--muted)}
@media(max-width:800px){.watchlist-row{grid-template-columns:42px 1fr 1fr;gap:14px;padding:18px 0}.watchlist-row>:last-child{grid-column:2/-1}.watchlist-header span:last-child{display:none}}

@media (max-width: 800px) {
  .analysis-hero { padding-top: 48px; display: block; }
  .analysis-method, .analysis-method:has(.macro-story) { grid-template-columns: repeat(2, 1fr); }
  .macro-stock-story-grid { grid-template-columns: 1fr; }
  .macro-stock-story { grid-template-columns: 64px minmax(0,1fr); }
  .macro-focus-sparkline { grid-column: 2; }
  .macro-stock-conclusions ol { grid-template-columns: 1fr; }
  .macro-stock-validation-grid { grid-template-columns: 1fr; }
  .macro-stock-story:nth-child(3n) { border-right: 1px solid var(--line); }
  .macro-stock-story:nth-child(2n) { border-right: 0; }
  .analysis-method article:nth-child(2) { border-right: 0; }
  .analysis-method article:nth-child(3), .analysis-method article:nth-child(4) { border-top: 1px solid var(--line); }
  .analysis-method article:nth-child(3) { padding-left: 0; }
}

@media (max-width: 480px) {
  .analysis-method { grid-template-columns: 1fr; }
  .macro-stock-story-grid { grid-template-columns: 1fr; }
  .macro-stock-conclusions ol { grid-template-columns: 1fr; }
  .macro-stock-conclusions li { border-right: 0; }
  .macro-stock-validation-grid { grid-template-columns: 1fr; }
  .macro-stock-validation { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .macro-stock-story { min-height: 0; border-right: 0 !important; }
  .analysis-method article { padding-left: 0; border-right: 0; border-top: 1px solid var(--line); }
  .analysis-method article:first-child { border-top: 0; }
}

/* Blog page. */
.blog-view, .blog-article-view { display: block; }
.blog-index-hero { padding: var(--menu-divider-title-gap) 0 var(--hero-title-bottom-gap); border-bottom: 1px solid var(--ink); }
.blog-index-hero .eyebrow { margin-bottom: 54px; }
.blog-index-hero > div { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: clamp(50px, 9vw, 140px); align-items: end; }
.blog-index-hero h1 { max-width: 900px; margin: 0; font-size: clamp(58px, 7.5vw, 112px); line-height: .9; letter-spacing: -.08em; }
.blog-index-hero > div > p { max-width: 530px; margin: 0 0 8px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.blog-topic-bar { display: flex; gap: 8px; padding: 22px 0; overflow-x: auto; border-bottom: 1px solid var(--line); font: 10px "DM Mono"; letter-spacing: .06em; text-transform: uppercase; scrollbar-width: none; }
.blog-topic-bar::-webkit-scrollbar { display: none; }
.blog-topic-bar strong, .blog-topic-bar span { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); font-weight: 500; }
.blog-topic-bar strong { border-color: var(--ink); color: var(--card); background: var(--ink); }
.blog-feed { border-bottom: 1px solid var(--ink); }
.blog-post-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 92px; gap: clamp(28px, 5vw, 76px); align-items: start; padding: 42px 0; border-top: 1px solid var(--line); }
.blog-post-row:first-of-type { border-top: 0; }
.blog-post-row.is-featured { padding-block: 62px; }
.blog-post-meta { display: grid; gap: 9px; color: var(--muted); font: 10px "DM Mono"; letter-spacing: .055em; text-transform: uppercase; }
.blog-post-meta time { color: var(--orange); }
.blog-post-copy { max-width: 880px; }
.blog-post-kicker { margin: 0 0 15px !important; color: var(--green) !important; font: 10px "DM Mono" !important; letter-spacing: .08em; text-transform: uppercase; }
.blog-post-copy h2 { margin: 0; font-size: clamp(27px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.055em; }
.blog-post-row.is-featured h2 { font-size: clamp(38px, 4.8vw, 68px); line-height: .98; }
.blog-post-copy h2 a { text-decoration: none; }
.blog-post-copy h2 a:hover, .blog-post-copy h2 a:focus-visible { color: var(--orange); outline: none; }
.blog-post-copy > p { max-width: 720px; margin: 20px 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.blog-post-author { display: block; font: 10px "DM Mono"; letter-spacing: .04em; }
.blog-read-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--ink); font: 10px "DM Mono"; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.blog-read-link span { color: var(--orange); font-size: 15px; }
.blog-read-link:hover, .blog-read-link:focus-visible { color: var(--card); background: var(--ink); outline: none; }
.blog-index-note { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0, 1.65fr); gap: 48px; padding: 54px 0 82px; }
.blog-index-note p { margin: 0; }
.blog-index-note > p:last-child { max-width: 780px; font-size: clamp(23px, 2.5vw, 36px); line-height: 1.3; letter-spacing: -.035em; }
.blog-article { width: 100%; max-width: none; margin: 0 auto; padding: var(--menu-divider-title-gap) 0 92px; }
.blog-back-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 76px; font: 10px "DM Mono"; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.blog-back-link span { color: var(--orange); font-size: 15px; }
.blog-back-link:hover, .blog-back-link:focus-visible { color: var(--orange); outline: none; }
.blog-article > header { width: 100%; max-width: none; padding-bottom: var(--hero-title-bottom-gap); border-bottom: 1px solid var(--ink); }
.blog-article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 30px; color: var(--muted); font: 10px "DM Mono"; letter-spacing: .06em; text-transform: uppercase; }
.blog-article-meta span:first-child { color: var(--orange); }
.blog-article h1 { max-width: 1100px; margin: 0; font-size: clamp(36px, 4.25vw, 64px); line-height: 1; letter-spacing: -.06em; }
.blog-article-dek { max-width: 760px; margin: 30px 0 26px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.blog-article-author { margin: 0; font: 11px "DM Mono"; }
.blog-article-layout { display: grid; grid-template-columns: clamp(170px, 18vw, 240px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); width: 100%; padding: 56px 0 84px; }
.blog-article-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; align-self: start; position: sticky; top: 28px; padding-top: 16px; border-top: 1px solid var(--ink); }
.blog-article-aside strong { margin-bottom: 7px; color: var(--orange); font: 10px "DM Mono"; letter-spacing: .07em; text-transform: uppercase; }
.blog-article-aside a { color: var(--muted); font-size: 11px; line-height: 1.45; text-decoration: none; }
.blog-article-aside a:hover, .blog-article-aside a:focus-visible { color: var(--ink); text-decoration: underline; outline: none; }
.blog-article-body { grid-column: 2; width: 100%; min-width: 0; max-width: 920px; }
.blog-article-aside[hidden] + .blog-article-body { grid-column: 1 / -1; max-width: none; }
.blog-article-body > p { margin: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.blog-article-body .blog-article-lead { color: var(--ink); font-size: 22px; line-height: 1.65; letter-spacing: -.02em; }
.blog-article-body h2 { margin: 62px 0 20px; scroll-margin-top: 28px; font-size: 32px; line-height: 1.12; letter-spacing: -.05em; }
.blog-article-body h3 { margin: 42px 0 16px; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
.blog-article-body a, .blog-published-evidence a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 28px; padding-left: 24px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.blog-article-body blockquote { margin: 44px 0; padding: 26px 0 26px 28px; border-left: 3px solid var(--orange); font-size: clamp(23px, 2.4vw, 34px); line-height: 1.4; letter-spacing: -.035em; }
.blog-article-body pre { max-width: 100%; margin: 34px 0; padding: 22px; overflow: auto; background: var(--ink); color: var(--card); font: 12px/1.65 "DM Mono"; }
.blog-article-body code { font-family: "DM Mono"; font-size: .86em; }
.blog-media { margin: 42px 0; }
.blog-media img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.blog-media figcaption { margin-top: 12px; color: var(--muted); font: 10px/1.6 "DM Mono"; text-align: center; }
.blog-published-evidence { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(38px, 8vw, 110px); padding: 42px 0; border-top: 1px solid var(--ink); }
.blog-published-evidence p { color: var(--muted); line-height: 1.7; }
.blog-published-evidence ol { margin: 16px 0 0; padding-left: 20px; }
.blog-published-evidence li { margin-bottom: 10px; padding-left: 5px; font-size: 13px; line-height: 1.5; }
.blog-technical-callout { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 42px 0; padding: 24px; border: 1px solid var(--ink); background: var(--card); font: 10px "DM Mono"; letter-spacing: .04em; text-transform: uppercase; }
.blog-technical-callout i { color: var(--orange); font-style: normal; }
.blog-quote { margin: 44px 0; padding: 30px 0 30px 28px; border-left: 3px solid var(--orange); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.35; letter-spacing: -.04em; }
.blog-article-next { display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding-top: 28px; border-top: 1px solid var(--ink); }
.blog-article-next > span { color: var(--orange); font: 10px "DM Mono"; letter-spacing: .07em; text-transform: uppercase; }
.blog-article-next a { justify-self: start; max-width: 700px; font-size: clamp(24px, 3vw, 42px); line-height: 1.15; letter-spacing: -.045em; text-decoration: none; }
.blog-article-next a b { color: var(--orange); font-weight: 400; }
.blog-article-next a:hover, .blog-article-next a:focus-visible { color: var(--orange); outline: none; }
@media (max-width: 800px) {
  .blog-index-hero { padding-top: 48px; }
  .blog-index-hero .eyebrow { margin-bottom: 36px; }
  .blog-index-hero > div { grid-template-columns: 1fr; gap: 30px; }
  .blog-index-hero h1 { font-size: clamp(54px, 16vw, 78px); }
  .blog-post-row, .blog-post-row.is-featured { grid-template-columns: 1fr; gap: 24px; padding-block: 36px; }
  .blog-post-meta { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 14px; }
  .blog-read-link { justify-self: start; }
  .blog-index-note { grid-template-columns: 1fr; gap: 24px; }
  .blog-article { padding-top: 32px; }
  .blog-back-link { margin-bottom: 50px; }
  .blog-article-layout { grid-template-columns: 1fr; gap: 44px; padding-block: 50px 64px; }
  .blog-article-aside { position: static; }
  .blog-article-body { grid-column: 1; max-width: none; }
  .blog-article-next { grid-template-columns: 1fr; gap: 20px; }
  .blog-published-evidence { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .blog-post-meta { grid-template-columns: 1fr; }
  .blog-article h1 { font-size: clamp(32px, 9vw, 46px); }
  .blog-article-body .blog-article-lead { font-size: 19px; }
  .blog-article-body > p { font-size: 15px; }
  .blog-technical-callout { align-items: flex-start; flex-direction: column; }
  .blog-technical-callout i { transform: rotate(90deg); }
}

/* About page. */
.about-hero { align-items: end; }
.about-hero > div:first-child { min-width: 0; }
.about-hero h1 { font-size: clamp(21px, 1.875vw, 32px); white-space: nowrap; }
.about-statement { max-width: 260px; padding: 24px 0 4px 28px; border-left: 1px solid var(--line); }
.about-statement span, .about-statement strong { display: block; }
.about-statement span { margin-bottom: 12px; color: var(--muted); font-family: "DM Mono"; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.about-statement strong { font-size: 18px; line-height: 1.45; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.about-grid article { min-height: 280px; padding: 34px 30px 42px; border-right: 1px solid var(--line); }
.about-grid article:first-child { padding-left: 0; }
.about-grid article:last-child { padding-right: 0; border-right: 0; }
.about-grid h2, .about-principles h2 { margin: 28px 0 16px; font-size: 25px; letter-spacing: -.04em; }
.about-grid article > p:last-child, .about-principles li p, .about-disclosure > p:last-child { color: var(--muted); line-height: 1.75; }
.about-principles { display: grid; grid-template-columns: minmax(240px,.8fr) 1.4fr; gap: 70px; padding: 72px 0; border-bottom: 1px solid var(--ink); }
.about-principles h2 { max-width: 360px; }
.about-principles ol { margin: 0; padding: 0; list-style: none; }
.about-principles li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.about-principles li:first-child { border-top-color: var(--ink); }
.about-principles li > span { color: var(--orange); font-family: "DM Mono"; font-size: 12px; }
.about-principles li strong { font-size: 16px; }
.about-principles li p { margin: 8px 0 0; }
.about-disclosure { display: grid; grid-template-columns: minmax(180px,.45fr) 1.55fr; gap: 40px; padding: 38px 0 68px; }
.about-disclosure > p { margin: 0; }
@media (max-width: 800px) {
  .about-statement { max-width: none; margin-top: 30px; padding-left: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid article, .about-grid article:first-child, .about-grid article:last-child { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-grid article:last-child { border-bottom: 0; }
  .about-principles, .about-disclosure { grid-template-columns: 1fr; gap: 26px; }
}

/* Plans page. */
.plans-view { padding-bottom: 96px; }
.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: 56px; border: 1px solid var(--line); background: var(--line); }
.plan-card { position: relative; display: flex; min-width: 0; min-height: 640px; flex-direction: column; padding: 34px; background: var(--card); }
.plan-card > header > span { color: var(--muted); font: 10px "DM Mono"; letter-spacing: .08em; text-transform: uppercase; }
.plan-card h2 { margin: 24px 0 12px; font-size: clamp(34px,3.2vw,48px); letter-spacing: -.065em; }
.plan-card header p { min-height: 74px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.plan-card-pro { z-index: 1; box-shadow: inset 0 4px var(--orange), 0 18px 60px rgba(0,0,0,.16); }
.plan-card-institutional { box-shadow: inset 0 4px var(--green); }
.plan-recommended { position: absolute; top: -1px; right: 20px; padding: 7px 10px 8px; background: var(--orange); color: #160d09; font: 700 10px "DM Mono"; letter-spacing: .08em; text-transform: uppercase; }
.plan-price { min-height: 94px; margin: 30px 0 28px; padding: 25px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-price strong, .plan-price small { display: block; }
.plan-price strong { font-size: clamp(30px,2.5vw,40px); line-height: 1; letter-spacing: -.055em; }
.plan-price small { margin-top: 10px; color: var(--muted); font: 10px/1.6 "DM Mono"; }
.plan-card ul { display: grid; gap: 14px; margin: 0 0 32px; padding: 0; list-style: none; }
.plan-card li { position: relative; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.plan-card li::before { content: "+"; position: absolute; left: 0; color: var(--green); font: 13px "DM Mono"; }
.plan-card li em { display: inline-block; margin-left: 4px; color: var(--orange); font: 10px "DM Mono"; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.plan-action { display: inline-flex; width: 100%; min-height: 48px; margin-top: auto; align-items: center; justify-content: center; border: 1px solid var(--ink); background: transparent; cursor: pointer; font: 700 11px "DM Mono"; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; transition: background .18s ease,color .18s ease,border-color .18s ease; }
.plan-action:hover, .plan-action:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.plan-action-primary { border-color: var(--orange); background: var(--orange); color: #160d09; }
.plan-action-primary:hover, .plan-action-primary:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.plan-action-inverse { border-color: var(--green); color: var(--green); }
.plan-action-inverse:hover, .plan-action-inverse:focus-visible { background: var(--green); color: #07100c; }
.plans-comparison { padding: 88px 0 0; }
.plans-comparison > header { display: grid; grid-template-columns: minmax(170px,.4fr) minmax(0,1.6fr); gap: 46px; align-items: start; margin-bottom: 28px; }
.plans-comparison h2 { max-width: 760px; margin: 0; font-size: clamp(28px,3vw,44px); line-height: 1.08; letter-spacing: -.055em; }
.plans-comparison-table { border-top: 1px solid var(--ink); }
.plans-comparison-row { display: grid; grid-template-columns: minmax(260px,1.45fr) repeat(3,minmax(120px,.55fr)); min-height: 58px; align-items: center; border-bottom: 1px solid var(--line); }
.plans-comparison-row > * { margin: 0; padding: 15px 18px; border-left: 1px solid var(--line); font-size: 12px; }
.plans-comparison-row > :first-child { padding-left: 0; border-left: 0; }
.plans-comparison-row b { color: var(--muted); font: 10px "DM Mono"; text-transform: uppercase; }
.plans-comparison-row b:not(:empty) { color: var(--green); }
.plans-comparison-head { min-height: 46px; background: var(--card); }
.plans-comparison-head > * { color: var(--muted); font: 10px "DM Mono"; letter-spacing: .07em; text-transform: uppercase; }
.plans-faq { display: grid; grid-template-columns: minmax(220px,.55fr) minmax(0,1.45fr); gap: clamp(42px,8vw,120px); padding: 92px 0 0; }
.plans-faq h2 { margin: 12px 0 0; font-size: clamp(30px,3.3vw,48px); letter-spacing: -.06em; }
.plans-faq details { border-top: 1px solid var(--line); }
.plans-faq details:last-child { border-bottom: 1px solid var(--line); }
.plans-faq summary { position: relative; padding: 22px 40px 22px 0; cursor: pointer; font-size: 15px; font-weight: 700; list-style: none; }
.plans-faq summary::-webkit-details-marker { display: none; }
.plans-faq summary::after { content: "+"; position: absolute; top: 19px; right: 3px; color: var(--orange); font: 20px "DM Mono"; }
.plans-faq details[open] summary::after { content: "−"; }
.plans-faq details p { max-width: 780px; margin: -3px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.75; }
@media (max-width: 980px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 0; }
  .plan-card header p { min-height: 0; }
  .plans-comparison > header, .plans-faq { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 650px) {
  .plans-view { padding-bottom: 64px; }
  .plan-grid { margin-top: 40px; }
  .plan-card { padding: 28px 22px; }
  .plans-comparison { padding-top: 64px; overflow-x: auto; }
  .plans-comparison > header { position: sticky; left: 0; }
  .plans-comparison-table { min-width: 720px; }
  .plans-faq { padding-top: 64px; }
}

/* Watchlist seven-column layout and Three.js previews. */
.watchlist-heading-title { display: flex; min-width: 0; align-items: center; gap: 18px; }
.watchlist-list-triggers { display: flex; min-width: 0; align-items: stretch; gap: 10px; }
.watchlist-heading-actions { display: grid; min-width: 0; justify-items: end; gap: 9px; }
#watchlist-heading { word-spacing: .08em; }
.watchlist-card { padding-top: 24px; }
.crypto-overview { padding: var(--menu-divider-title-gap) 0 0; }
.crypto-overview-lead { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(560px,.95fr); gap: 42px; align-items: end; padding-bottom: var(--hero-title-bottom-gap); border-bottom: 1px solid var(--ink); }
.crypto-overview-lead h1 { margin: 0; font-size: clamp(36px,4.875vw,65px); letter-spacing: -.07em; line-height: .94; }
.crypto-overview-lead .description { max-width: 720px; }
.crypto-overview-features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: stretch; }
.crypto-overview-chart { padding: 18px 20px; border: 1px solid var(--line); background: var(--card); }
.crypto-overview-chart > span { color: var(--orange); font: 10px "DM Mono"; letter-spacing: .09em; text-transform: uppercase; }
.crypto-overview-chart h2 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.04em; }
.crypto-overview-chart h2 a { color: inherit; text-decoration: none; }
.crypto-overview-chart h2 a[href] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.crypto-overview-chart h2 a[href]:hover { color: var(--orange); }
.crypto-overview-chart h2 small { color: var(--muted); font: 10px "DM Mono"; }
.crypto-overview-chart .macro-mini-chart { margin-top: 12px; padding-top: 10px; }
.crypto-overview-chart .macro-mini-chart svg { height: 96px; }
.crypto-top-news { display: flex; min-width: 0; padding: 18px 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--card); flex-direction: column; }
.crypto-top-news > span { color: var(--orange); font: 10px "DM Mono"; letter-spacing: .09em; text-transform: uppercase; }
.crypto-top-news h2 { margin: 7px 0 8px; font-size: 18px; letter-spacing: -.035em; line-height: 1.25; }
.crypto-top-news h2 a { color: inherit; text-decoration: none; }
.crypto-top-news h2 a[href] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.crypto-top-news h2 a[href]:hover, .crypto-top-news h2 a[href]:focus-visible { color: var(--orange); outline: none; }
.crypto-top-news > p { display: -webkit-box; margin: 0 0 14px; overflow: hidden; color: var(--paper); font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.crypto-top-news footer { display: flex; margin-top: auto; align-items: center; justify-content: space-between; gap: 10px; color: #a9aaa5; font: 10px "DM Mono"; letter-spacing: .04em; text-transform: uppercase; }
.crypto-top-news footer strong { color: var(--card); font-weight: 500; }
.crypto-top-news footer > span { display: inline-flex; align-items: center; gap: 10px; }
.crypto-top-news footer a { color: var(--card); text-decoration: none; border-bottom: 1px solid var(--orange); }
.crypto-top-news footer a small { color: var(--orange); font-size: inherit; }
.crypto-news-archive-entry { padding: 18px 0; border-bottom: 1px solid var(--line); }
.crypto-news-archive-entry:first-child { padding-top: 0; }
.crypto-news-archive-entry h3 { margin: 6px 0 8px; font-size: 18px; }
.crypto-news-archive-entry h3 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crypto-news-archive-entry p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.crypto-news-archive-entry small { color: var(--orange); font: 10px "DM Mono"; text-transform: uppercase; }
.crypto-page .watchlist-hero { display: none; }
.crypto-page #watchlist-heading { display: none; }
.crypto-page .watchlist-heading-title { display: none; }
.crypto-overview-metrics { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--ink); }
.crypto-overview-metrics article { min-width: 0; padding: 8px 20px; border-right: 1px solid var(--line); background: var(--card); }
.crypto-overview-metrics article:last-child { border-right: 0; }
.crypto-overview-metrics span, .crypto-overview-metrics strong, .crypto-overview-metrics small { display: block; }
.crypto-overview-metrics span { margin-bottom: 16px; color: var(--orange); font: 10px "DM Mono"; letter-spacing: .08em; text-transform: uppercase; }
.crypto-overview-metrics strong { font: 500 18px "DM Mono"; letter-spacing: -.04em; }
.crypto-overview-metrics small { margin-top: 7px; color: var(--muted); font: 10px "DM Mono"; }
.crypto-data-attribution { margin: 9px 0 0; color: var(--muted); font: 10px "DM Mono"; text-align: right; }
.crypto-data-attribution a { color: var(--orange); text-decoration: none; border-bottom: 1px solid currentColor; }
.crypto-taxonomy-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-top: 0; background: var(--card); }
.crypto-taxonomy-group { display: flex; min-width: 0; align-items: flex-start; gap: 10px; }
.crypto-taxonomy-label { padding-top: 7px; color: var(--muted); font: 500 10px "DM Mono"; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.crypto-class-legend, .crypto-activity-legend { display: flex; flex-wrap: wrap; gap: 7px; }
.crypto-type-badge { display: inline-flex; min-height: 30px; padding: 2px 8px 2px 2px; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font: 10px "DM Mono"; white-space: nowrap; }
.crypto-type-badge b, .crypto-type-code { display: inline-grid; min-width: 24px; height: 24px; padding: 0 5px; place-items: center; border: 1px solid currentColor; font: 700 10px "DM Mono"; }
.crypto-type-badge > span { color: var(--ink); }
.type-s { color: var(--blue) !important; }
.type-sv { color: #9a6d00 !important; }
.type-u { color: var(--green) !important; }
.type-p { color: #73528f !important; }
.type-m { color: var(--red) !important; }
.type-g { color: #31547a !important; }
.type-st { color: var(--green) !important; }
.type-mi { color: var(--orange) !important; }
.crypto-taxonomy-activity { margin-left: auto; }
.crypto-dead-projects-link { min-height: 30px; padding: 7px 10px; border: 1px solid var(--ink); color: var(--ink); font: 700 10px "DM Mono"; text-decoration: none; white-space: nowrap; }
.crypto-dead-projects-link:hover, .crypto-dead-projects-link:focus-visible { color: var(--card); background: var(--ink); outline: none; }
.crypto-dead-projects-link i { color: var(--orange); font-style: normal; }
.crypto-page .watchlist-hero { padding-top: 42px; }
.crypto-page .watchlist-card { padding-top: 18px; }
.watchlist-heading { align-items: center; gap: 22px; }
.watchlist-universe-caption { margin: -12px 0 18px; color: var(--muted); font: 10px/1.5 "DM Mono"; letter-spacing: .015em; white-space: nowrap; }
.watchlist-universe-caption[hidden] { display: none; }
.watchlist-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.watchlist-controls input { width: 210px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0; background: var(--card); color: var(--ink); font-family: "DM Mono"; font-size: 11px; }
.global-stock-search { position: relative; width: 240px; }
.global-stock-search #watchlist-search { width: 100%; }
.global-stock-search-results { position: absolute; z-index: 1100; top: calc(100% + 6px); right: 0; width: min(430px,calc(100vw - 24px)); padding: 6px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 18px 42px rgba(23,25,20,.2); }
.global-stock-search-results[hidden] { display: none; }
.global-stock-search-results button { display: grid; grid-template-columns: 62px minmax(130px,1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.global-stock-search-results button:last-child { border-bottom: 0; }
.global-stock-search-results button:hover, .global-stock-search-results button:focus-visible { background: var(--card); outline: none; }
.global-stock-search-results strong, .global-stock-search-results em { font-family: "DM Mono"; font-style: normal; }
.global-stock-search-results strong { color: var(--orange); font-size: 12px; }
.global-stock-search-results span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.global-stock-search-results em { color: var(--green); font-size: 10px; white-space: nowrap; }
.watchlist-controls button.active { color: var(--card); background: var(--ink); }
.watchlist-heading button { padding: 8px 12px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-family: "DM Mono"; font-size: 11px; }
.watchlist-heading button:hover { color: var(--card); background: var(--ink); }
.watchlist-heading button:disabled { opacity: .5; cursor: wait; }
.watchlist-controls > .watchlist-page-status { min-width: 118px; padding: 0 8px; color: var(--muted); font: 10px/34px "DM Mono"; text-align: right; white-space: nowrap; }
@media (min-width: 1100px) {
  .crypto-data-attribution { display: flex; min-height: 42px; align-items: center; justify-content: flex-end; }
  .crypto-page .watchlist-card { margin-top: -42px; padding-top: 0; }
  .crypto-page .watchlist-heading { min-height: 42px; margin-bottom: 8px; }
  .crypto-page .watchlist-heading-actions { justify-items: start; }
}
.watchlist-infinite-controls { position: relative; display: flex; min-height: 76px; margin-top: 20px; align-items: center; justify-content: center; gap: 14px; border-top: 1px solid var(--line); }
.watchlist-infinite-controls .watchlist-page-status,
#watchlist-infinite-status { color: var(--muted); font: 10px/1.4 "DM Mono"; }
#watchlist-load-more { min-height: 38px; padding: 9px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font: 11px "DM Mono"; }
#watchlist-load-more:hover:not(:disabled), #watchlist-load-more:focus-visible { color: var(--card); background: var(--ink); outline: none; }
#watchlist-load-more:focus-visible { box-shadow: 0 0 0 2px var(--orange); }
#watchlist-load-more:disabled { opacity: .55; cursor: wait; }
#watchlist-load-more[hidden] { display: none; }
#watchlist-infinite-status { max-width: 360px; }
#watchlist-sentinel { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; pointer-events: none; }
@media (max-width:700px) {
  .watchlist-infinite-controls { flex-wrap: wrap; padding: 16px 0; gap: 10px 14px; }
  #watchlist-infinite-status { flex-basis: 100%; text-align: center; }
}
.watchlist-pager { display: grid; grid-template-columns: repeat(2,34px) minmax(88px,auto) repeat(2,34px); align-items: center; width: max-content; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: 0 5px 14px rgba(23,25,20,.04); }
.watchlist-pagination-bottom { margin: 20px 0 0 auto; }
.watchlist-pager button,
.watchlist-heading .watchlist-pager button { display: grid; width: 34px; height: 34px; min-height: 0; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: color .15s ease, background .15s ease, transform .15s ease; }
.watchlist-pager button:hover:not(:disabled),
.watchlist-heading .watchlist-pager button:hover:not(:disabled) { color: var(--card); background: var(--ink); transform: scale(.94); }
.watchlist-pager button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.watchlist-pager button:disabled,
.watchlist-heading .watchlist-pager button:disabled { color: var(--muted); background: transparent; opacity: .28; cursor: default; }
.watchlist-pager .watchlist-pager-jump { opacity: .62; }
.watchlist-pager svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.watchlist-pager .watchlist-page-status { min-width: 88px; padding: 0 10px; border-right: 1px solid var(--line); border-left: 1px solid var(--line); color: var(--muted); font: 10px "DM Mono"; line-height: 34px; text-align: center; white-space: nowrap; }
.watchlist-heading #watchlist-favorites { display: inline-flex; width: max-content; min-height: 42px; padding: 3px; align-items: center; justify-content: flex-start; gap: 6px; border-color: var(--line); border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: 0 5px 14px rgba(23,25,20,.04); font: 11px/1 "DM Mono"; white-space: nowrap; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.watchlist-heading #watchlist-favorites::before { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--orange); content: "☆"; font: 13px/1 "DM Mono"; transition: transform .15s ease, background .15s ease; }
.watchlist-heading #watchlist-favorites::after { content: none; }
.watchlist-heading #watchlist-favorites:hover { border-color: var(--ink); background: var(--ink); color: var(--card); }
.watchlist-heading #watchlist-favorites:hover::before { background: rgba(255,255,255,.08); transform: scale(.94); }
.watchlist-heading #watchlist-favorites:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.watchlist-heading #watchlist-favorites.active { border-color: var(--ink); background: var(--ink); color: var(--card); }
.watchlist-heading #watchlist-favorites.active::before { background: rgba(255,255,255,.08); content: "★"; }
.watchlist-heading .asset-list-trigger { display: flex; min-width: 245px; padding: 10px 12px; align-items: center; justify-content: space-between; gap: 24px; border-color: var(--line); background: var(--card); color: var(--ink); text-align: left; }
.watchlist-heading .asset-list-trigger[hidden] { display: none !important; }
.watchlist-heading .asset-list-trigger:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }
.asset-list-trigger span, .asset-list-trigger small, .asset-list-trigger strong { display: block; }
.asset-list-trigger small { margin-bottom: 4px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.asset-list-trigger strong { font-family: "Manrope"; font-size: 13px; }
.asset-list-trigger b { color: var(--orange); font-size: 10px; font-weight: 500; white-space: nowrap; }
.asset-list-trigger i { font-style: normal; }
.asset-list-dialog { width: min(760px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
.asset-list-dialog::backdrop { background: rgba(23,25,20,.62); backdrop-filter: blur(3px); }
.asset-list-dialog > section { padding: 28px; }
.asset-list-dialog header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.asset-list-dialog header h2 { margin: 5px 0 6px; font-size: 31px; letter-spacing: -.055em; }
.asset-list-dialog header p { margin-bottom: 0; color: var(--muted); }
.asset-list-dialog header button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 23px; }
.asset-list-dialog header button:hover { color: var(--card); background: var(--ink); }
.asset-list-search { display: grid; grid-template-columns: 110px 1fr; align-items: center; margin: 22px 0 18px; border: 1px solid var(--line); background: var(--card); }
.asset-list-search span { padding-left: 14px; color: var(--muted); font-family: "DM Mono"; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.asset-list-search input { height: 46px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); font: 13px "DM Mono"; outline: none; }
.asset-list-search:focus-within { border-color: var(--ink); }
.asset-list-library { display: grid; gap: 10px; }
.asset-list-group-label { margin: 8px 0 1px; color: var(--muted); font-family: "DM Mono"; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.asset-list-option { position: relative; display: grid; grid-template-columns: 48px 1fr auto; gap: 15px; align-items: center; width: 100%; min-height: 82px; padding: 14px 16px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.asset-list-option:hover, .asset-list-option:focus-visible { border-color: var(--ink); background: var(--card); outline: none; transform: translateX(3px); }
.asset-list-option.active { border-color: var(--ink); }
.asset-list-option.active::before { position: absolute; inset: -1px auto -1px -1px; width: 4px; background: var(--orange); content: ""; }
.asset-list-option-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); color: var(--orange); font: 600 14px "DM Mono"; }
.asset-list-option strong, .asset-list-option small { display: block; }
.asset-list-option strong { margin-bottom: 4px; font-size: 14px; }
.asset-list-option small { max-width: 480px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.asset-list-option em { color: var(--orange); font: normal 10px "DM Mono"; }
.asset-list-empty { padding: 34px 0; color: var(--muted); text-align: center; }
.watchlist-row { grid-template-columns: 58px minmax(93px,.619fr) 150px minmax(120px,.65fr) minmax(80px,.4fr) minmax(220px,1.25fr) minmax(175px,.9fr) minmax(175px,.9fr); gap: 16px; }
.watchlist-rank span, .watchlist-rank small { display: block; }
.watchlist-rank small { margin-top: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.watchlist-chart { width: 150px; height: 70px; }
.watchlist-chart[data-ticker] { cursor: crosshair; }
.watchlist-chart[data-ticker]:focus-visible { outline: 1px solid var(--orange); outline-offset: 4px; }
.market-3d-trigger { position: relative; display: block; width: 150px; height: 70px; padding: 0; overflow: hidden; border: 1px solid transparent; border-radius: 2px; background: transparent; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.market-3d-trigger:hover, .market-3d-trigger:focus-visible { border-color: var(--line); background: var(--card); outline: none; }
.market-2d-preview { display: block; width: 150px; height: 70px; }
.market-2d-preview path { fill: none; stroke: var(--green); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.market-2d-preview.negative path { stroke: var(--red); }
.market-3d-trigger > span { position: absolute; right: 4px; bottom: 2px; color: var(--orange); font-family: "DM Mono"; font-size: 10px; opacity: 0; transition: opacity .15s ease; }
.market-3d-trigger:hover > span, .market-3d-trigger:focus-visible > span { opacity: 1; }
.year-chart-popover { position: fixed; z-index: 1200; min-height: 274px; padding: 20px 22px 16px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 0 22px 60px rgba(23,25,20,.24); pointer-events: none; }
.year-chart-popover[hidden] { display: none; }
.year-chart-popover header, .year-chart-popover footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.year-chart-popover header small, .year-chart-popover header strong { display: block; }
.year-chart-popover header small { margin-bottom: 4px; color: var(--orange); font: 10px "DM Mono"; letter-spacing: .08em; text-transform: uppercase; }
.year-chart-popover header strong { font-size: 16px; }
.year-chart-popover header b, .year-chart-popover footer { font-family: "DM Mono"; }
.year-chart-popover .positive { color: var(--green); }
.year-chart-popover .negative { color: var(--red); }
.year-chart-svg { display: block; width: 100%; height: 210px; margin-top: 8px; }
.year-chart-svg path { fill: none; stroke: var(--green); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.year-chart-svg.negative path { stroke: var(--red); }
.year-chart-svg line { stroke: var(--line); stroke-width: 1; }
.year-chart-popover footer { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.year-chart-popover footer strong { color: var(--ink); font-size: 12px; }
.year-chart-loading { display: grid; min-height: 230px; place-items: center; color: var(--muted); font: 11px "DM Mono"; }
.watchlist-company { position: relative; }
.favorite-stock { display: block; margin-top: 6px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.favorite-stock.active { color: var(--orange); }
.sparkline-empty { color: var(--muted); font-family: "DM Mono"; font-size: 11px; }
.watchlist-price strong, .watchlist-price small { display: block; }
.watchlist-price strong { font-family: "DM Mono"; font-size: 16px; font-weight: 500; }
.private-listing-row { background: linear-gradient(90deg, rgba(237,100,47,.06), transparent 58%); }
.private-listing-row .watchlist-price strong { color: var(--orange); }
.watchlist-company .company-ticker { display:block; width:max-content; margin-bottom:5px; color:var(--ink); font-family:"DM Mono"; font-size:18px; font-weight:700; text-decoration:none; border-bottom:1px solid transparent; }
.watchlist-company .company-ticker:hover, .watchlist-company .company-ticker:focus-visible { border-bottom-color:var(--orange); color:var(--orange); outline:none; }
.watchlist-company .company-ticker span { display:inline; color:var(--orange); font-size:11px; }
.watchlist-company .dividend-notation { display: block; width: max-content; margin-top: 6px; padding: 3px 6px; color: var(--green); background: rgba(13,123,81,.08); font: 700 10px "DM Mono"; letter-spacing: .02em; }
.watchlist-price small { margin-top: 5px; color: var(--green); font-size: 11px; }
.watchlist-earnings .earnings-missed, .watchlist-next-earnings .earnings-missed { color: var(--red); }
.watchlist-earnings .earnings-in-line, .watchlist-next-earnings .earnings-in-line { color: var(--gold); }
.watchlist-earnings .earnings-exceeded, .watchlist-next-earnings .earnings-exceeded { color: var(--green); }
.watchlist-earnings .earnings-result, .watchlist-next-earnings .earnings-result { display: inline-block; margin-bottom: 5px; font-family: "DM Mono"; font-size: 10px; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.watchlist-earnings .earnings-result span { display: block; color: inherit; }
.watchlist-next-earnings small { display: block; color: var(--muted); font-size: 10px; }
.watchlist-next-earnings { display: flex; flex-direction: column; align-items: flex-start; row-gap: 7px; }
.watchlist-next-earnings .earnings-date, .watchlist-next-earnings .earnings-result { display: block; width: max-content; max-width: 100%; }
.watchlist-next-earnings .earnings-date { text-decoration: none; border-bottom: 1px solid var(--ink); }
.watchlist-next-earnings .earnings-date span { color: var(--orange); }
.watchlist-next-earnings .earnings-tbd { color: var(--muted); border-bottom-color: transparent; }
.earnings-unavailable { color: var(--muted); }
.watchlist-volume strong, .watchlist-volume small { display: block; font-family: "DM Mono"; }
.watchlist-volume strong { font-size: 14px; font-weight: 500; }
.watchlist-volume small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.watchlist-story { padding: 18px 22px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.55; }
.watchlist-story.major { color: var(--red-dark); }
.watchlist-story.major p { font-weight: 700; }
.watchlist-story p { margin: 0; }
.watchlist-header [data-column="story"] { padding-inline: 22px; }
.story-text-link { color: inherit; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-text-link:hover, .story-text-link:focus-visible { color: inherit; text-decoration-line: underline; outline: none; }
.watchlist-crypto-story { color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; }
.watchlist-crypto-story.major { color: var(--red-dark); }
.watchlist-crypto-story p { margin: 0; }
.watchlist-crypto-story a { display: inline-block; margin-top: 5px; color: inherit; font-family: "DM Mono"; font-size: 10px; text-decoration: none; border-bottom: 1px solid currentColor; }
.watchlist-crypto-story a span { color: var(--orange); }
.crypto-story-pending { color: var(--muted); font-family: "DM Mono"; font-size: 10px; font-weight: 500; }
.watchlist-row { grid-template-columns: 54px minmax(150px,1.1fr) minmax(120px,.8fr) minmax(110px,.7fr) minmax(110px,.7fr) minmax(110px,.7fr) minmax(95px,.6fr) minmax(250px,1.65fr) minmax(105px,.7fr) minmax(115px,.8fr); gap: 0; }
.watchlist-table.crypto-profile .watchlist-row { grid-template-columns: 50px minmax(130px,1fr) minmax(100px,.65fr) minmax(110px,.75fr) minmax(150px,.9fr) minmax(105px,.65fr) minmax(260px,1.7fr) minmax(100px,.62fr) 82px; }
.watchlist-header [data-column] { position: relative; cursor: grab; user-select: none; outline-offset: 4px; }
.watchlist-header [data-column]:active { cursor: grabbing; }
.watchlist-header [data-column]:focus-visible { color: var(--ink); outline: 1px solid var(--orange); }
.watchlist-header [aria-sort="ascending"]::after { content: " ↑"; color: var(--orange); }
.watchlist-header [aria-sort="descending"]::after { content: " ↓"; color: var(--orange); }
.watchlist-header .dragging { opacity: .35; }
.watchlist-header .drag-target { color: var(--ink); box-shadow: inset 3px 0 var(--orange); }
#watchlist-type-header[hidden] { display: none !important; }
#watchlist-previous-close-header[hidden] { display: none !important; }
#watchlist-change-header[hidden] { display: none !important; }
.watchlist-previous-close strong, .watchlist-previous-close small { display: block; }
.watchlist-previous-close strong { font-family: "DM Mono"; font-size: 15px; }
.watchlist-previous-close small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.watchlist-change { display: flex; align-items: center; gap: 6px; white-space: nowrap; font: 500 12px "DM Mono"; }
.watchlist-change strong.positive { color: var(--green); }
.watchlist-change strong.negative { color: var(--red); }
.watchlist-change strong.neutral, .watchlist-change strong.unavailable { color: var(--muted); }
.watchlist-change span { color: var(--muted); }
.watchlist-crypto-type { min-width: 0; }
.watchlist-crypto-type .crypto-type-code { margin-bottom: 5px; }
.watchlist-crypto-type > .crypto-activity-code { display: grid; width: max-content; margin-top: 4px; font: 700 10px "DM Mono"; }
.crypto-context strong, .crypto-context span { display: block; }
.crypto-context strong { margin-bottom: 5px; color: var(--green); font-family: "DM Mono"; font-size: 15px; }
.crypto-context strong.negative { color: var(--red); }
.crypto-context span { color: var(--muted); font-size: 10px; font-weight: 500; }
.crypto-data strong, .crypto-data small, .crypto-data span { display: block; font-family: "DM Mono"; }
.crypto-data strong { font-size: 13px; font-weight: 500; }
.crypto-data strong.positive { color: var(--green); }
.crypto-data strong.negative { color: var(--red); }
.crypto-data small, .crypto-data span { margin: 4px 0; color: var(--muted); font-size: 10px; }
.watchlist-volume .volume-average { margin-top: 5px; color: var(--ink); font-size: 10px; white-space: nowrap; }
.watchlist-volume .volume-average.warning { color: var(--gold); font-weight: 600; }
.watchlist-volume .volume-average.unavailable { color: var(--red-dark); }
.crypto-performance { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; width: 100%; }
.crypto-performance > div { min-width: 0; padding-left: 10px; border-left: 1px solid var(--line); }
.crypto-performance strong, .crypto-performance small { display: block; font-family: "DM Mono"; }
.crypto-performance strong { font-size: 13px; font-weight: 500; }
.crypto-performance strong.positive { color: var(--green); }
.crypto-performance strong.negative { color: var(--red); }
.crypto-performance small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.story-priority { display: inline-flex; align-items: center; gap: 6px; color: var(--red-dark); font-family: "DM Mono"; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.story-priority b { display: inline-grid; width: 18px; height: 18px; place-items: center; color: var(--card); background: var(--red-dark); font-size: 11px; }
@media (min-width: 801px) {
  .watchlist-row { gap: 0; }
  .watchlist-company, .watchlist-crypto-type, .watchlist-price, .watchlist-previous-close, .watchlist-change, .watchlist-story, .watchlist-crypto-story, .watchlist-volume, .watchlist-earnings, .watchlist-next-earnings,
  .watchlist-header span:not(:first-child) { margin-left: 16px; }
}

.market-3d-dialog { width: min(980px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
.market-3d-dialog::backdrop { background: rgba(23,25,20,.62); backdrop-filter: blur(3px); }
.market-3d-shell { padding: 24px; }
.market-3d-shell > header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.market-3d-shell h2 { margin: 0; font-size: 28px; letter-spacing: -.05em; }
.market-3d-shell header button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; font-size: 25px; cursor: pointer; }
.market-visual-story { height: 188px; margin-top: 14px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.market-visual-story[hidden] { display: none; }
.market-visual-story svg { display: block; width: 100%; height: 145px; }
.story-heading { height: 42px; display: grid; grid-template-columns: 1fr auto 120px; gap: 14px; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); }
.story-heading strong { font-size: 12px; }
.story-heading span { font-family: "DM Mono"; font-size: 14px; }
.story-heading i { position: relative; display: block; width: 120px; height: 5px; background: var(--line); }
.story-heading i b { position: absolute; inset: 0 auto 0 0; background: var(--orange); }
.story-heading i em { position: absolute; top: -3px; bottom: -3px; left: 62.5%; width: 1px; background: var(--ink); }
.today-action-heading { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 16px; background: linear-gradient(to bottom, rgba(244,242,236,.96), rgba(244,242,236,.72), transparent); font-family: "DM Mono"; pointer-events: none; }
.today-action-heading strong { font-family: "Manrope"; font-size: 13px; }
.market-visual-story text { fill: var(--muted); font-family: "DM Mono"; font-size: 14px; }
.story-reference { stroke: #a9aaa1; stroke-width: 1; stroke-dasharray: 3 5; }
.story-origin { fill: var(--ink); }
.story-bridge { fill: none; stroke: #a9aaa1; stroke-width: 1.2; stroke-dasharray: 3 4; }
.story-price { fill: none; stroke: var(--green); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.story-price.negative { stroke: var(--red); }
.story-end { fill: var(--green); stroke: var(--card); stroke-width: 3; }
.story-end.negative { fill: var(--red); }
.story-gate { stroke: var(--orange); stroke-width: 1; opacity: .45; }
.story-bracket { fill: none; stroke: var(--ink); stroke-width: 1; }
.story-volume rect { fill: var(--orange); opacity: .25; }
.story-gap { fill: var(--green) !important; font-size: 14px !important; font-weight: 500; paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.story-gap.negative { fill: var(--red) !important; }
.story-close-price { fill: var(--ink) !important; font-weight: 500; paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.market-3d-stage { position: relative; height: min(54vh, 500px); min-height: 360px; margin-top: 14px; border: 1px solid var(--line); overflow: hidden; }
#market-3d-canvas { display: block; width: 100%; height: 100%; touch-action: pan-x pan-y pinch-zoom; }
.market-3d-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: var(--paper); font-family: "DM Mono"; font-size: 12px; }
.market-3d-loading[hidden] { display: none; }
.market-3d-metrics { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-top: 0; }
.market-3d-metrics span { padding: 15px 18px; border-right: 1px solid var(--line); }
.market-3d-metrics span:last-child { border-right: 0; }
.market-3d-metrics small, .market-3d-metrics strong { display: block; font-family: "DM Mono"; }
.market-3d-metrics small { margin-bottom: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.market-3d-metrics strong { font-size: 15px; font-weight: 500; }
.market-3d-shell > footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 0; color: var(--muted); font-family: "DM Mono"; font-size: 11px; text-transform: none; letter-spacing: 0; }
.market-3d-shell > footer button { padding: 8px 12px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-family: "DM Mono"; font-size: 11px; }
.market-3d-shell > footer button:hover { color: var(--card); background: var(--ink); }

/* Per-asset intelligence object */
.asset-intelligence-trigger { display: inline-flex; min-height: 28px; margin-top: 7px; padding: 4px 7px; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: 11px "DM Mono"; }
.asset-intelligence-trigger::before { width: 7px; height: 7px; border: 1px solid currentColor; background: var(--orange); box-shadow: 4px -4px 0 -1px var(--paper), 4px -4px 0 0 currentColor; content: ""; transform: rotate(45deg); }
.asset-intelligence-trigger:hover { border-color: var(--ink); background: var(--ink); color: var(--card); }
.asset-intelligence-trigger:hover::before { box-shadow: 4px -4px 0 -1px var(--ink), 4px -4px 0 0 currentColor; }

.asset-intelligence-dialog { width: min(1260px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
.asset-intelligence-dialog::backdrop { background: rgba(23,25,20,.72); backdrop-filter: blur(5px); }
.asset-intelligence-shell { padding: 22px; }
.asset-intelligence-header { display: grid; grid-template-columns: minmax(0,1fr) auto 42px; gap: 20px; align-items: start; padding-bottom: 17px; border-bottom: 1px solid var(--ink); }
.asset-intelligence-header h2 { margin: 2px 0 5px; font-size: clamp(24px,3vw,40px); letter-spacing: -.06em; line-height: 1; }
.asset-intelligence-header p { margin: 0; color: var(--muted); font-size: 12px; }
.asset-intelligence-header > button { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 24px; }
.asset-intelligence-header > button:hover { color: var(--card); background: var(--ink); }
.asset-intelligence-quote { min-width: 145px; padding: 5px 0 0; text-align: right; }
.asset-intelligence-quote strong, .asset-intelligence-quote span { display: block; font-family: "DM Mono"; }
.asset-intelligence-quote strong { font-size: 21px; font-weight: 500; }
.asset-intelligence-quote span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.asset-intelligence-quote span.positive { color: var(--green); }
.asset-intelligence-quote span.negative { color: var(--red); }

.asset-intelligence-workspace { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(270px,.55fr); min-height: 550px; border-bottom: 1px solid var(--line); }
.asset-intelligence-stage { position: relative; min-height: 550px; overflow: hidden; border-right: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; cursor: grab; touch-action: pan-x pan-y pinch-zoom; user-select: none; }
.asset-intelligence-stage:active { cursor: grabbing; }
#asset-intelligence-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#asset-intelligence-svg line { vector-effect: non-scaling-stroke; }
.asset-intelligence-edge-back { stroke: var(--line); stroke-width: 1; }
.asset-intelligence-edge-front { stroke: var(--ink); stroke-width: 1.4; }
.asset-intelligence-edge-core { stroke: var(--orange); stroke-width: 1; stroke-dasharray: 3 5; opacity: .66; }
.asset-intelligence-node { position: absolute; z-index: 2; display: grid; width: 112px; min-height: 50px; padding: 7px 9px; align-content: center; border: 1px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; text-align: left; transform: translate(-50%,-50%); transform-origin: center; transition: background .15s ease, color .15s ease, opacity .15s ease; }
.asset-intelligence-node:hover, .asset-intelligence-node.is-selected { background: var(--ink); color: var(--card); }
.asset-intelligence-node small, .asset-intelligence-node strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-intelligence-node small { color: currentColor; font: 10px "DM Mono"; opacity: .68; }
.asset-intelligence-node strong { margin-top: 3px; font: 500 11px "DM Mono"; }
.asset-intelligence-node[data-state="missing"] { border-style: dashed; color: var(--muted); }
.asset-intelligence-node[data-state="derived"]::after, .asset-intelligence-node[data-state="observed"]::after { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); content: ""; }
.asset-intelligence-node[data-state="observed"]::after { background: var(--green); }
.asset-intelligence-core { position: absolute; z-index: 4; display: grid; width: 114px; height: 114px; padding: 0; place-content: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--ink); color: var(--card); cursor: pointer; text-align: center; transform: translate(-50%,-50%); box-shadow: 0 0 0 9px rgba(237,100,47,.14), 0 0 0 10px var(--orange); }
.asset-intelligence-core small, .asset-intelligence-core strong, .asset-intelligence-core span { display: block; font-family: "DM Mono"; }
.asset-intelligence-core small { color: var(--orange); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.asset-intelligence-core strong { margin: 2px 0; font-size: 22px; font-weight: 500; }
.asset-intelligence-core span { font-size: 10px; }
.asset-intelligence-stage-key { position: absolute; right: 12px; bottom: 11px; display: flex; gap: 14px; color: var(--muted); font: 10px "DM Mono"; pointer-events: none; }
.asset-intelligence-stage-key span::before { display: inline-block; width: 14px; height: 1px; margin: 0 6px 3px 0; background: var(--ink); content: ""; }
.asset-intelligence-stage-key span:last-child::before { background: var(--orange); }

.asset-intelligence-lens { min-width: 0; padding: 26px 22px; background: var(--card); }
.asset-intelligence-lens-heading { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: start; }
.asset-intelligence-lens-heading > span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--ink); font: 11px "DM Mono"; }
.asset-intelligence-lens-heading small { display: block; color: var(--orange); font: 10px "DM Mono"; letter-spacing: .07em; text-transform: uppercase; }
.asset-intelligence-lens h3 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.04em; }
.asset-intelligence-lens > strong { display: block; margin: 38px 0 13px; font: 500 clamp(22px,2.4vw,34px) "DM Mono"; letter-spacing: -.05em; overflow-wrap: anywhere; }
.asset-intelligence-lens > p { min-height: 72px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.asset-intelligence-lens dl { margin: 28px 0 0; border-top: 1px solid var(--line); }
.asset-intelligence-lens dl div { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.asset-intelligence-lens dt { color: var(--muted); font: 10px "DM Mono"; text-transform: uppercase; }
.asset-intelligence-lens dd { margin: 0; font: 11px "DM Mono"; overflow-wrap: anywhere; }
.asset-intelligence-lens > a { display: inline-block; margin-top: 22px; color: var(--ink); font: 11px "DM Mono"; text-decoration: none; border-bottom: 1px solid var(--orange); }

.asset-intelligence-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); }
.asset-intelligence-controls > div { display: flex; gap: 7px; }
.asset-intelligence-controls button { min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: 11px "DM Mono"; }
.asset-intelligence-controls button:hover, .asset-intelligence-controls button[aria-pressed="true"] { color: var(--card); background: var(--ink); }
.asset-intelligence-controls p, .asset-intelligence-controls > span { margin: 0; font: 10px "DM Mono"; }
.asset-intelligence-controls p { color: var(--orange); text-align: center; }
.asset-intelligence-controls > span { color: var(--muted); text-align: right; }
.asset-intelligence-evidence { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); }
.asset-intelligence-evidence button { min-width: 0; min-height: 58px; padding: 9px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.asset-intelligence-evidence button:last-child { border-right: 0; }
.asset-intelligence-evidence button:hover, .asset-intelligence-evidence button.is-selected { background: var(--ink); color: var(--card); }
.asset-intelligence-evidence small, .asset-intelligence-evidence strong { display: block; overflow: hidden; font-family: "DM Mono"; text-overflow: ellipsis; white-space: nowrap; }
.asset-intelligence-evidence small { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.asset-intelligence-evidence button:hover small, .asset-intelligence-evidence button.is-selected small { color: var(--orange); }
.asset-intelligence-evidence strong { font-size: 10px; font-weight: 500; }

@media (max-width: 900px) {
  .asset-intelligence-workspace { grid-template-columns: 1fr; }
  .asset-intelligence-stage { min-height: 460px; border-right: 0; border-bottom: 1px solid var(--line); }
  .asset-intelligence-lens { min-height: 300px; }
  .asset-intelligence-lens > p { min-height: 0; }
  .asset-intelligence-controls { grid-template-columns: 1fr auto; padding: 10px 0; }
  .asset-intelligence-controls p { text-align: right; }
  .asset-intelligence-controls > span { grid-column: 1 / -1; text-align: left; }
  .asset-intelligence-evidence { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .asset-intelligence-evidence button:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .asset-intelligence-shell { padding: 12px; }
  .asset-intelligence-header { grid-template-columns: minmax(0,1fr) 40px; }
  .asset-intelligence-header > div:first-child p:last-child { display: none; }
  .asset-intelligence-quote { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .asset-intelligence-header > button { grid-column: 2; grid-row: 1; }
  .asset-intelligence-workspace { min-height: 0; }
  .asset-intelligence-stage { min-height: 390px; }
  .asset-intelligence-node { width: 92px; min-height: 46px; padding: 6px; }
  .asset-intelligence-core { width: 92px; height: 92px; }
  .asset-intelligence-lens { padding: 20px 14px; }
  .asset-intelligence-controls { grid-template-columns: 1fr; }
  .asset-intelligence-controls p { text-align: left; }
  .asset-intelligence-evidence { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .asset-intelligence-evidence button { border-bottom: 1px solid var(--line); }
  .asset-intelligence-stage-key { display: none; }
}
@media (max-width: 650px) {
  .market-3d-shell { padding: 14px; }
  .market-3d-stage { min-height: 320px; }
  .market-3d-metrics { grid-template-columns: repeat(2,1fr); }
  .market-3d-metrics span:nth-child(2) { border-right: 0; }
  .market-3d-metrics span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .market-3d-shell > footer span { display: none; }
}
@media (max-width: 800px) {
  .crypto-overview-lead { grid-template-columns: 1fr; gap: 26px; }
  .crypto-overview-features { grid-template-columns: 1fr; }
  .crypto-overview-metrics { grid-template-columns: repeat(2,1fr); }
  .crypto-overview-metrics article:nth-child(2) { border-right: 0; }
  .crypto-overview-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .watchlist-heading { display: block; }
  .watchlist-universe-caption { margin-top: 12px; white-space: normal; }
  .watchlist-heading-title, .watchlist-list-triggers { width: 100%; }
  .watchlist-heading .asset-list-trigger { width: 50%; min-width: 0; }
  .watchlist-heading-actions { width: 100%; margin-top: 14px; }
  .watchlist-controls { justify-content: flex-start; }
  .watchlist-row { grid-template-columns: 42px 1fr 1fr; }
  .watchlist-chart, .watchlist-volume, .watchlist-cap { display: none; }
  .watchlist-row > .watchlist-price { grid-column: auto; }
  .watchlist-row > .watchlist-previous-close { grid-column: 2; }
  .watchlist-row > .watchlist-change { grid-column: 3; }
  .watchlist-row > .watchlist-story, .watchlist-row > .watchlist-earnings, .watchlist-row > .watchlist-next-earnings, .watchlist-row > .watchlist-crypto-story { grid-column: 2 / -1; }
  .watchlist-header span:nth-child(4), .watchlist-header span:nth-child(6), .watchlist-header span:nth-child(7), .watchlist-header span:nth-child(8), .watchlist-header span:nth-child(9), .watchlist-header span:nth-child(10) { display: none; }
  .watchlist-table.crypto-profile #watchlist-type-header { display: inline; }
  .crypto-row > .watchlist-price { grid-column: 2; }
  .crypto-row > .watchlist-story { grid-column: 2 / -1; }
  .crypto-row > .watchlist-crypto-story { grid-column: 2 / -1; }
  .crypto-row > .watchlist-earnings { display: none; }
  .crypto-row > .watchlist-next-earnings { grid-column: 2 / -1; }
  .crypto-taxonomy-bar { display: grid; grid-template-columns: 1fr; }
  .crypto-taxonomy-activity { margin-left: 0; }
}
@media (max-width: 520px) {
  .crypto-overview-metrics { grid-template-columns: 1fr; }
  .crypto-overview-metrics article { border-right: 0; border-bottom: 1px solid var(--line); }
  .crypto-overview-metrics article:last-child { border-bottom: 0; }
  .crypto-taxonomy-group { display: grid; grid-template-columns: 64px minmax(0,1fr); }
  .crypto-taxonomy-activity .crypto-dead-projects-link { grid-column: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .asset-list-dialog > section { padding: 18px; }
  .asset-list-dialog header h2 { font-size: 26px; }
  .asset-list-search { grid-template-columns: 1fr; }
  .asset-list-search span { padding: 10px 12px 0; }
  .asset-list-search input { border-left: 0; }
  .asset-list-option { grid-template-columns: 42px 1fr; }
  .asset-list-option-icon { width: 42px; height: 42px; }
  .asset-list-option em { display: none; }
}

/* Retirement account linking. */
.retirement-view { padding-bottom: 80px; }
.retirement-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); min-height: 0; border-bottom: 1px solid var(--ink); }
.retirement-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 0 7vw var(--hero-title-bottom-gap) 0; }
.retirement-hero h1 { max-width: 900px; font-size: clamp(42px, 5.625vw, 78px); }
.retirement-hero .description { max-width: 780px; margin: 30px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.retirement-actions { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.retirement-connect-button { min-width: 220px; padding: 14px 17px; border: 1px solid var(--ink); background: var(--ink); color: var(--card); cursor: pointer; font-family: "DM Mono"; font-size: 11px; text-align: left; }
.retirement-connect-button span { float: right; color: var(--orange-on-dark); }
.retirement-connect-button:hover, .retirement-connect-button:focus-visible { background: var(--orange); border-color: var(--orange); outline: none; }
.retirement-connect-button:disabled { opacity: .48; cursor: not-allowed; }
#retirement-connect-status { max-width: 330px; color: var(--muted); font-family: "DM Mono"; font-size: 10px; line-height: 1.5; }
.retirement-trust-card { display: flex; flex-direction: column; justify-content: flex-end; margin: var(--menu-divider-title-gap) 0 var(--hero-title-bottom-gap); padding: 34px; border: 1px solid var(--ink); background: var(--ink); color: var(--card); }
.retirement-trust-card .section-label { color: #bfc2ba; font-size: 10px; }
.retirement-trust-card > strong { max-width: 300px; font-size: 33px; line-height: 1.05; letter-spacing: -.05em; }
.retirement-trust-card ul { margin: 34px 0 0; padding: 0; list-style: none; }
.retirement-trust-card li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.18); color: #d7d9d3; font-size: 12px; }
.retirement-trust-card li span { color: var(--orange-on-dark); font-family: "DM Mono"; font-size: 12px; }
.retirement-content { display: grid; grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr); border-bottom: 1px solid var(--ink); }
.retirement-setup-card, .retirement-accounts-card { padding: 48px 0; }
.retirement-setup-card { padding-right: 48px; border-right: 1px solid var(--line); }
.retirement-accounts-card { padding-left: 48px; }
.retirement-setup-card h2, .retirement-accounts-card h2 { margin: 5px 0 0; font-size: 30px; line-height: 1.1; letter-spacing: -.05em; }
.retirement-steps { margin: 34px 0 0; padding: 0; list-style: none; }
.retirement-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.retirement-steps b { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%; color: var(--orange); font-family: "DM Mono"; font-size: 11px; }
.retirement-steps strong, .retirement-steps span { display: block; }
.retirement-steps strong { font-size: 13px; }
.retirement-steps span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.retirement-provider-note { margin: 24px 0 0; color: var(--muted); font-family: "DM Mono"; font-size: 11px; line-height: 1.6; }
.retirement-provider-note a { text-decoration: none; border-bottom: 1px solid currentColor; }
.retirement-provider-note a span { color: var(--orange); }
.retirement-accounts-card > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.retirement-accounts-card > header > span { color: var(--muted); font-family: "DM Mono"; font-size: 10px; }
.retirement-connections { min-height: 255px; }
.retirement-empty { margin: 0; padding: 42px 0; color: var(--muted); font-family: "DM Mono"; font-size: 11px; line-height: 1.7; }
.retirement-connection { padding: 24px 0; border-bottom: 1px solid var(--line); }
.retirement-connection > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.retirement-connection h3 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.retirement-connection header p { margin: 6px 0 0; color: var(--muted); font-family: "DM Mono"; font-size: 11px; }
.retirement-disconnect { padding: 7px 9px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-family: "DM Mono"; font-size: 10px; }
.retirement-disconnect:hover, .retirement-disconnect:focus-visible { border-color: var(--red-dark); color: var(--red-dark); outline: none; }
.retirement-account-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 18px; }
.retirement-account { padding: 14px; border: 1px solid var(--line); background: var(--card); }
.retirement-account strong, .retirement-account span { display: block; }
.retirement-account strong { font-size: 12px; }
.retirement-account span { margin-top: 5px; color: var(--muted); font-family: "DM Mono"; font-size: 10px; text-transform: capitalize; }
.retirement-privacy { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--ink); }
.retirement-privacy > div { padding: 28px; border-right: 1px solid var(--line); }
.retirement-privacy > div:first-child { padding-left: 0; }
.retirement-privacy > div:last-child { border-right: 0; }
.retirement-privacy .section-label { margin-bottom: 8px; font-size: 10px; }
.retirement-privacy strong { display: block; max-width: 320px; font-size: 12px; line-height: 1.6; }

@media (min-width: 1101px) and (max-width: 1200px) {
  .site-header { column-gap: 20px; }
  .primary-nav { width: 100%; gap: 10px; }
  .primary-nav a { font-size: 10px; }
}
@media (max-width: 920px) {
  .retirement-hero { grid-template-columns: 1fr; }
  .retirement-hero-copy { padding-right: 0; }
  .retirement-trust-card { margin-top: 0; }
  .retirement-content { grid-template-columns: 1fr; }
  .retirement-setup-card { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .retirement-accounts-card { padding-left: 0; }
}

/* Integrated TraderHiFi market calendar */
.market-calendar-view { padding: 24px 0 70px; }
.market-calendar-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--ink); background: var(--card); }
.market-calendar-summary article { min-height: 98px; padding: 17px clamp(16px,2vw,30px); border-right: 1px solid var(--ink); }
.market-calendar-summary article:last-child { border-right: 0; }
.market-calendar-summary span,.market-calendar-summary small { display: block; color: var(--muted); font: 500 10px/1.4 "DM Mono"; letter-spacing: .06em; text-transform: uppercase; }
.market-calendar-summary strong { display: block; margin: 7px 0 5px; font-size: clamp(23px,2.3vw,34px); letter-spacing: -.055em; line-height: 1; }
.market-calendar-summary .warm { background: #ffd9cc; }
.market-calendar-summary .dark { background: var(--ink); color: var(--paper); }
.market-calendar-summary .dark span,.market-calendar-summary .dark small { color: #aeb9b3; }
.market-calendar-workspace { display: grid; grid-template-columns: 116px minmax(480px,.78fr) minmax(520px,1.22fr); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.market-calendar-months { padding: 28px 16px 32px 20px; border-right: 1px solid var(--line); background: rgba(255,255,255,.16); }
.market-calendar-months > div:first-of-type { margin-top: 22px; }
.market-calendar-months button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; text-align: left; }
.market-calendar-months button span { font: 500 11px/1 "DM Mono"; }
.market-calendar-months button.active { color: var(--ink); font-weight: 700; }
.market-calendar-months button.active::after { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--orange); content: ""; }
.market-calendar-session-key { display: grid; gap: 10px; margin-top: 34px; color: var(--muted); font: 500 10px/1 "DM Mono"; text-transform: uppercase; }
.market-calendar-session-key .section-label { margin-bottom: 4px; }
.market-calendar-session-key span { display: flex; align-items: center; gap: 9px; }
.market-calendar-session-key i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.market-calendar-session-key i.early { border: 2px solid #c98e18; background: transparent; }
.market-calendar-session-key i.closed { background: var(--line); }
.market-calendar-panel { min-width: 0; padding: 24px clamp(16px,2vw,26px) 28px; border-right: 1px solid var(--ink); }
.market-calendar-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.market-calendar-panel h1 { margin: 6px 0 0; font-size: clamp(21px,2.1vw,30px); letter-spacing: -.065em; line-height: 1; }
.market-calendar-panel h1 span { color: var(--muted); font-weight: 400; }
.market-calendar-panel > header > span { color: var(--muted); font: 500 10px/1 "DM Mono"; letter-spacing: .1em; text-transform: uppercase; }
.market-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(52px,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.market-calendar-weekday { padding: 8px 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font: 500 10px/1 "DM Mono"; text-align: center; }
.market-calendar-day { position: relative; min-height: 50px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.21); }
.market-calendar-day.empty { background: repeating-linear-gradient(135deg,transparent,transparent 6px,rgba(23,25,20,.035) 6px,rgba(23,25,20,.035) 7px); }
.market-calendar-date { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.market-calendar-date strong { font: 500 10px/1 "DM Mono"; }
.market-calendar-date span { color: var(--muted); font: 500 10px/1 "DM Mono"; letter-spacing: .08em; }
.market-calendar-day > small { display: block; overflow: hidden; margin-top: 7px; color: var(--muted); font: 500 10px/1.15 "DM Mono"; text-overflow: ellipsis; white-space: nowrap; }
.market-calendar-day.is-closed { background: rgba(23,25,20,.06); color: #8b918c; }
.market-calendar-day.is-early { background: #fff0c9; }
.market-calendar-dots { position: absolute; right: 5px; bottom: 5px; display: flex; flex-wrap: wrap; justify-content: flex-end; max-width: 28px; gap: 2px; }
.market-calendar-dots i { width: 6px; height: 6px; border-radius: 50%; background: #2466dd; box-shadow: 0 0 0 1px var(--paper); }
.market-calendar-dots i.policy { background: var(--orange); }
.market-calendar-dots i.climate { background: var(--green); }
.market-calendar-dots i.civic { background: #7952b3; }
.market-calendar-dots i.ai { background: #d83c82; }
.market-calendar-dots i.quantum { background: #008c91; }
.market-calendar-dots i.space { background: #5146c7; }
.market-calendar-dots i.crypto { background: #d56f16; }
.market-calendar-dots i.seasonal { background: #c98e18; }
.market-calendar-feed { min-width: 0; padding: 28px clamp(24px,3vw,44px) 42px; background: var(--card); }
.market-calendar-search { display: block; }
.market-calendar-search > span { display: block; margin-bottom: 8px; color: var(--orange); font: 500 10px/1 "DM Mono"; letter-spacing: .1em; text-transform: uppercase; }
.market-calendar-search > div { display: flex; align-items: center; border: 1px solid var(--ink); background: var(--paper); }
.market-calendar-search input { width: 100%; min-width: 0; padding: 12px 13px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 12px/1.2 "Manrope"; }
.market-calendar-search input:focus { box-shadow: inset 0 0 0 2px var(--orange); }
.market-calendar-search button { flex: 0 0 auto; margin-right: 6px; padding: 6px 8px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; font: 500 11px/1 "DM Mono"; text-transform: uppercase; }
.market-calendar-search-summary { margin: 10px 0 0; color: var(--muted); font: 500 10px/1.35 "DM Mono"; text-transform: uppercase; }
.market-calendar-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 4px; }
.market-calendar-filters button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); cursor: pointer; font: 500 11px/1 "DM Mono"; }
.market-calendar-filters button.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.market-calendar-events { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 30px; }
.market-calendar-event { min-width: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
.market-calendar-event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.market-calendar-event-meta time { margin-right: auto; color: var(--muted); font: 500 10px/1 "DM Mono"; text-transform: uppercase; }
.market-calendar-event-meta span { padding: 5px 7px; border-radius: 3px; background: #dfe7fb; color: #2466dd; font: 500 10px/1 "DM Mono"; letter-spacing: .06em; text-transform: uppercase; }
.market-calendar-event-meta span.policy { background: #ffe0d9; color: #b33521; }
.market-calendar-event-meta span.climate { background: #d9ebdf; color: #126347; }
.market-calendar-event-meta span.civic { background: #eae2f5; color: #69428e; }
.market-calendar-event-meta span.ai { background: #f7dce9; color: #a61f61; }
.market-calendar-event-meta span.quantum { background: #d9efee; color: #00666a; }
.market-calendar-event-meta span.space { background: #e3e2f8; color: #4036a6; }
.market-calendar-event-meta span.crypto { background: #f8e2cb; color: #9b4a08; }
.market-calendar-event-meta span.seasonal { background: #f5e7be; color: #815b0e; }
.market-calendar-event-meta .impact,.market-calendar-event-meta .timing { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.market-calendar-event-meta .impact.high { color: var(--orange); }
.market-calendar-event h2 { margin: 14px 0 8px; font-size: 19px; letter-spacing: -.04em; line-height: 1.15; }
.market-calendar-event h2 a { color: inherit; text-decoration: none; }
.market-calendar-event h2 a:hover,.market-calendar-event h2 a:focus-visible { color: var(--orange); text-decoration: underline; text-underline-offset: 4px; }
.market-calendar-event > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.market-calendar-exposures { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.market-calendar-exposures span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font: 500 10px/1 "DM Mono"; }
.market-calendar-source { display: inline-block; margin-top: 14px; color: var(--ink); font: 500 10px/1 "DM Mono"; text-underline-offset: 3px; }
.market-calendar-empty { padding-top: 42px; color: var(--muted); }

@media (max-width: 1200px) {
  .market-calendar-workspace { grid-template-columns: 140px minmax(0,1fr); }
  .market-calendar-feed { grid-column: 1 / -1; border-top: 1px solid var(--ink); }
  .market-calendar-panel { border-right: 0; }
}
@media (max-width: 760px) {
  .market-calendar-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-calendar-summary article { min-height: 86px; padding: 14px 16px; }
  .market-calendar-summary article:nth-child(2) { border-right: 0; }
  .market-calendar-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .market-calendar-workspace { display: block; }
  .market-calendar-months { padding: 26px 20px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .market-calendar-months > div:first-of-type { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 16px; }
  .market-calendar-session-key { grid-template-columns: repeat(3,auto); justify-content: start; margin-top: 24px; }
  .market-calendar-session-key .section-label { grid-column: 1 / -1; }
  .market-calendar-panel { padding: 30px 20px 38px; overflow-x: auto; }
  .market-calendar-grid { min-width: 630px; }
  .market-calendar-events { display: block; }
}
@media (max-width: 650px) {
  .retirement-hero h1 { font-size: 39px; }
  .retirement-actions { display: block; }
  #retirement-connect-status { display: block; margin-top: 14px; }
  .retirement-trust-card { padding: 25px; }
  .retirement-account-list, .retirement-privacy { grid-template-columns: 1fr; }
  .retirement-privacy > div, .retirement-privacy > div:first-child { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .retirement-privacy > div:last-child { border-bottom: 0; }
}

/* Locally stored inactive crypto archive. */
.dead-header-tag { justify-self: end; color: var(--muted); font: 10px "DM Mono"; text-transform: uppercase; letter-spacing: .08em; }
.dead-projects-view { padding-bottom: 80px; }
.dead-projects-hero { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(250px,.65fr); gap: 60px; align-items: end; min-height: 0; padding: var(--menu-divider-title-gap) 0 var(--hero-title-bottom-gap); border-bottom: 1px solid var(--ink); }
.dead-projects-hero h1 { margin: 8px 0 0; font-size: clamp(44px,6vw,84px); line-height: .88; letter-spacing: -.075em; }
.dead-projects-hero .description { max-width: 760px; margin: 34px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.dead-projects-summary { padding: 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--card); }
.dead-projects-summary span, .dead-projects-summary small, .dead-projects-summary strong { display: block; }
.dead-projects-summary span { color: #bfc2ba; font: 10px "DM Mono"; text-transform: uppercase; letter-spacing: .08em; }
.dead-projects-summary strong { margin-top: 18px; color: var(--orange-on-dark); font-size: clamp(48px,6vw,82px); line-height: 1; letter-spacing: -.06em; }
.dead-projects-summary small { margin-top: 15px; color: #d7d9d3; font: 10px/1.5 "DM Mono"; }
.dead-projects-method { display: grid; grid-template-columns: 180px 1fr; gap: 36px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.dead-projects-method strong { font: 10px "DM Mono"; text-transform: uppercase; }
.dead-projects-method p { max-width: 980px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.dead-projects-directory { padding: 56px 0 0; }
.dead-projects-directory > header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.dead-projects-directory h2 { margin: 5px 0 0; font-size: 30px; letter-spacing: -.045em; }
.dead-projects-directory > header a { font-size: 11px; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.dead-projects-directory > header a span { color: var(--orange); }
.dead-projects-controls { display: grid; grid-template-columns: minmax(240px,1fr) minmax(200px,.45fr) auto; gap: 14px; align-items: end; padding: 22px 0; }
.dead-projects-controls label { display: grid; gap: 6px; color: var(--muted); font: 10px "DM Mono"; text-transform: uppercase; }
.dead-projects-controls input, .dead-projects-controls select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--card); color: var(--ink); font: 11px "DM Mono"; }
.dead-projects-controls p { margin: 0 0 11px; color: var(--muted); font: 10px "DM Mono"; white-space: nowrap; }
.dead-projects-table { border: 1px solid var(--ink); }
.dead-projects-row { display: grid; grid-template-columns: 110px minmax(220px,1.2fr) minmax(180px,.8fr) 110px 100px; gap: 20px; align-items: center; min-height: 58px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font: 10px "DM Mono"; }
.dead-projects-row:last-child { border-bottom: 0; }
.dead-projects-head { min-height: 40px; background: var(--ink); color: var(--card); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.dead-project-symbol { color: var(--orange); font-weight: 700; }
.dead-project-name { color: var(--ink); font-family: "Manrope"; font-size: 12px; font-weight: 700; }
.dead-project-status { color: var(--red-dark); text-transform: uppercase; }
.dead-projects-row a { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.dead-projects-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px 0; }
.dead-projects-pagination button { padding: 8px 12px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font: 11px "DM Mono"; }
.dead-projects-pagination button:hover:not(:disabled), .dead-projects-pagination button:focus-visible { background: var(--ink); color: var(--card); outline: none; }
.dead-projects-pagination button:disabled { opacity: .35; cursor: default; }
.dead-projects-pagination span { min-width: 100px; text-align: center; font: 10px "DM Mono"; }
.dead-projects-disclaimer { max-width: 850px; margin: 0 auto; color: var(--muted); font: 10px/1.6 "DM Mono"; text-align: center; }

@media (max-width: 800px) {
  .dead-header-tag { display: none; }
  .dead-projects-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 52px; }
  .dead-projects-method { grid-template-columns: 1fr; gap: 10px; }
  .dead-projects-controls { grid-template-columns: 1fr; }
  .dead-projects-controls p { margin: 0; }
  .dead-projects-table { border: 0; }
  .dead-projects-head { display: none; }
  .dead-projects-row { grid-template-columns: 72px 1fr; gap: 7px 14px; padding: 16px 0; }
  .dead-projects-row > span:nth-child(n+3) { grid-column: 2; }
}

/* Compact viewport polish: keep every primary surface readable without a
   desktop-sized canvas or tightly packed controls. */
@media (max-width: 600px) {
  html, body { max-width: 100%; overflow-x: clip; }
  main { width: 100%; padding-inline: 16px; }

  .site-header {
    padding: 12px 16px;
    grid-template-columns: minmax(0,1fr) 42px;
    column-gap: 10px;
  }
  .brand-wordmark { font-size: 16px; }
  .mobile-menu-toggle {
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }
  .mobile-menu-toggle > span:last-child { display: none; }
  .site-header .account-status {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-top: 10px;
    justify-content: space-between;
  }
  .primary-nav,
  .primary-nav.is-open {
    grid-row: 3;
    grid-template-columns: 1fr;
  }

  .hero,
  .overview-hero,
  .crypto-overview,
  .about-hero,
  .dead-projects-hero { padding-top: 34px; }
  h1,
  .crypto-overview-lead h1,
  .dead-projects-hero h1,
  .retirement-hero h1 {
    font-size: clamp(32px,9.75vw,44px);
    overflow-wrap: anywhere;
  }
  .description { margin-top: 18px; font-size: 14px; line-height: 1.6; }

  .calendar-feature,
  .calendar-event,
  .macro-stock-story {
    grid-template-columns: 48px minmax(0,1fr);
    gap: 12px;
    padding: 18px 16px;
  }
  .overview-pulse-card.is-lead { padding: 26px 20px; }
  .market-glance-grid {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  .watchlist-toolbar,
  .watchlist-heading-title,
  .watchlist-list-triggers {
    align-items: stretch;
    flex-direction: column;
  }
  .watchlist-toolbar { gap: 14px; }
  .watchlist-controls { display: grid; grid-template-columns: auto minmax(0,1fr); width: 100%; }
  .watchlist-controls input,
  .global-stock-search,
  .watchlist-heading .asset-list-trigger { width: 100%; min-width: 0; }
  .global-stock-search { grid-column: 1 / -1; }
  .watchlist-controls span { min-width: 0; }
  .watchlist-controls .watchlist-pager { grid-column: 2; justify-self: end; }
  .watchlist-header { display: none; }
  .watchlist-row,
  .watchlist-table.crypto-profile .watchlist-row {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 10px 12px;
    min-height: 0;
    padding: 20px 0;
  }
  .watchlist-row > * { min-width: 0; grid-column: 2; }
  .watchlist-row > .watchlist-rank { grid-column: 1; grid-row: 1 / span 3; }
  .watchlist-row > .watchlist-company,
  .watchlist-row > .watchlist-price,
  .crypto-row > .watchlist-price { grid-column: 2; }
  .watchlist-row > .watchlist-price { padding-top: 4px; }
  .watchlist-story,
  .watchlist-crypto-story { padding: 12px 0 0; border-top: 1px solid var(--line); }
  .crypto-performance { grid-template-columns: 1fr 1fr; }

  .crypto-overview-chart,
  .crypto-top-news { padding: 16px; }
  .crypto-taxonomy-bar { padding: 14px 0; border-inline: 0; }
  .crypto-class-legend { display: flex; }

  .market-calendar-view { padding-top: 16px; }
  .market-calendar-panel,
  .market-calendar-feed,
  .market-calendar-months { padding-inline: 16px; }
  .market-calendar-months > div:first-of-type { grid-template-columns: repeat(2,1fr); }
  .market-calendar-session-key { grid-template-columns: 1fr; }
  .market-calendar-grid { min-width: 560px; }
  .market-calendar-events { display: grid; grid-template-columns: 1fr; }

  .retirement-hero-copy,
  .retirement-setup-card,
  .retirement-accounts-card { padding-block: 34px; }
  .retirement-accounts-card > header,
  .retirement-connection > header { align-items: flex-start; flex-direction: column; }

  .dead-projects-directory > header { align-items: flex-start; flex-direction: column; }
  .dead-projects-row { grid-template-columns: 58px minmax(0,1fr); }

  .auth-dialog,
  .asset-list-dialog,
  .market-3d-dialog,
  .story-history-dialog { width: calc(100vw - 20px); }
  .auth-signup-name { grid-template-columns: 1fr; }
  .market-3d-stage { min-height: 260px; height: 48vh; }

  body > footer { padding-inline: 16px; font-size: 10px; }
}

@media (max-width: 380px) {
  main { padding-inline: 12px; }
  .site-header { padding-inline: 12px; }
  .brand-mark { width: 25px; transform: scale(.9); transform-origin: left center; }
  .brand-wordmark { font-size: 15px; }
  .watchlist-controls { grid-template-columns: auto minmax(0,1fr); }
  .global-stock-search { grid-column: 1 / -1; }
  .watchlist-controls .watchlist-pager { grid-column: 2; justify-self: end; }
  .crypto-type-badge { white-space: normal; }
  .market-calendar-summary { grid-template-columns: 1fr; }
  .market-calendar-summary article,
  .market-calendar-summary article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .market-calendar-summary article:last-child { border-bottom: 0; }
}

/* Small-screen lists stay tabular: rows run straight across and their
   containers provide horizontal scrolling instead of wrapping into cards. */
@media (max-width: 600px) {
  .watchlist-table,
  .dead-projects-table,
  .macro-stock-story-grid,
  .macro-stock-validation-grid,
  .macro-stock-conclusions,
  .calendar-grid {
    width: calc(100% + 16px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .watchlist-header { display: grid; }
  .watchlist-row,
  .watchlist-table.crypto-profile .watchlist-row {
    position: static;
    display: grid;
    grid-template-columns: 54px minmax(150px,1.1fr) minmax(120px,.8fr) minmax(110px,.7fr) minmax(110px,.7fr) minmax(110px,.7fr) minmax(95px,.6fr) minmax(250px,1.65fr) minmax(105px,.7fr) minmax(115px,.8fr);
    gap: 0;
    width: max-content;
    min-width: 1370px;
    min-height: 72px;
    padding: 0;
  }
  .watchlist-table.crypto-profile .watchlist-row {
    grid-template-columns: 50px minmax(130px,1fr) minmax(100px,.65fr) minmax(110px,.75fr) minmax(150px,.9fr) minmax(105px,.65fr) minmax(260px,1.7fr) minmax(100px,.62fr) 82px;
    min-width: 1190px;
  }
  .watchlist-row > *,
  .watchlist-row > .watchlist-rank,
  .watchlist-row > .watchlist-company,
  .watchlist-row > .watchlist-price,
  .watchlist-row > .watchlist-earnings,
  .watchlist-row > .watchlist-next-earnings,
  .watchlist-row > .watchlist-story,
  .watchlist-row > .watchlist-crypto-story,
  .crypto-row > .watchlist-price,
  .crypto-row > .watchlist-story,
  .crypto-row > .watchlist-crypto-story,
  .crypto-row > .watchlist-next-earnings {
    display: block;
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    align-self: center;
  }
  .watchlist-row > *:not(:first-child),
  .watchlist-header span:not(:first-child) { margin-left: 16px; }
  .watchlist-table:not(.crypto-profile) .watchlist-company + .watchlist-chart { margin-left: 6px; }
  .watchlist-header span,
  .watchlist-header span:nth-child(4),
  .watchlist-header span:nth-child(6),
  .watchlist-header span:nth-child(7),
  .watchlist-header span:nth-child(8),
  .watchlist-header span:nth-child(9),
  .watchlist-header span:nth-child(10),
  .watchlist-chart,
  .watchlist-volume,
  .watchlist-cap,
  .crypto-row > .watchlist-earnings { display: block; }
  .watchlist-story,
  .watchlist-crypto-story { padding: 14px 4px; border-top: 0; }

  .dead-projects-row {
    display: grid;
    grid-template-columns: 110px minmax(220px,1.2fr) minmax(180px,.8fr) 110px 100px;
    gap: 20px;
    width: max-content;
    min-width: 820px;
    padding: 12px 16px;
  }
  .dead-projects-row > span:nth-child(n+3) { grid-column: auto; }
  .dead-projects-head { display: grid; }

  .macro-stock-story-grid,
  .macro-stock-validation-grid,
  .calendar-grid { display: grid; min-width: 760px; }
  .market-driver-card,
  .macro-stock-story,
  .calendar-event { min-width: 0; }
}

/* Keep dense mobile market rows compact and aligned within the horizontal
   table without enlarging charts or forcing story copy onto one line. */
@media (max-width: 600px) {
  .watchlist-row {
    grid-template-columns: 48px 160px 120px 120px 110px 110px 110px 280px 140px 140px;
    width: 1350px;
    min-width: 1350px;
  }
  .watchlist-table.crypto-profile .watchlist-row {
    grid-template-columns: 48px 150px 76px 120px 120px 110px 280px 120px 140px;
    width: 1164px;
    min-width: 1164px;
  }
  .watchlist-row > *:not(:first-child),
  .watchlist-header span:not(:first-child) { margin-left: 12px; }

  .watchlist-chart {
    display: grid;
    width: 120px;
    height: 56px;
    margin-left: 0 !important;
    place-items: center;
    justify-self: center;
    align-self: center;
  }
  .market-3d-trigger,
  .market-2d-preview {
    width: 120px;
    height: 56px;
  }

  .watchlist-story,
  .watchlist-crypto-story {
    width: auto;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .watchlist-story p,
  .watchlist-crypto-story p,
  .watchlist-story a,
  .watchlist-crypto-story a,
  .story-text-link {
    max-width: 100%;
    font-size: inherit;
    line-height: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .watchlist-header [data-column="story"] {
    padding-inline: 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* Expose a deliberate horizontal viewport for wide tabular lists on small
   browser windows. */
@media (max-width: 600px) {
  .watchlist-card,
  .dead-projects-directory,
  .macro-stock-stories,
  .market-calendar-view { min-width: 0; }

  .watchlist-table,
  .dead-projects-table,
  .macro-stock-story-grid,
  .macro-stock-validation-grid,
  .macro-stock-conclusions,
  .calendar-grid {
    display: block;
    max-width: calc(100vw - 16px);
    padding-bottom: 8px;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-gutter: stable;
    scrollbar-color: var(--orange) var(--line);
    touch-action: pan-x pan-y pinch-zoom;
  }
  .watchlist-table::-webkit-scrollbar,
  .dead-projects-table::-webkit-scrollbar,
  .macro-stock-story-grid::-webkit-scrollbar,
  .macro-stock-validation-grid::-webkit-scrollbar,
  .macro-stock-conclusions::-webkit-scrollbar,
  .calendar-grid::-webkit-scrollbar { height: 10px; }
  .watchlist-table::-webkit-scrollbar-track,
  .dead-projects-table::-webkit-scrollbar-track,
  .macro-stock-story-grid::-webkit-scrollbar-track,
  .macro-stock-validation-grid::-webkit-scrollbar-track,
  .macro-stock-conclusions::-webkit-scrollbar-track,
  .calendar-grid::-webkit-scrollbar-track { background: var(--line); }
  .watchlist-table::-webkit-scrollbar-thumb,
  .dead-projects-table::-webkit-scrollbar-thumb,
  .macro-stock-story-grid::-webkit-scrollbar-thumb,
  .macro-stock-validation-grid::-webkit-scrollbar-thumb,
  .macro-stock-conclusions::-webkit-scrollbar-thumb,
  .calendar-grid::-webkit-scrollbar-thumb {
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--orange);
  }
}

/* iPhone-width alignment: headers and data rows use identical fixed tracks
   and one shared column gap, with hidden headers removed from the grid. */
@media (max-width: 600px) {
  .watchlist-row {
    grid-template-columns: 48px 160px 120px 120px 110px 110px 110px 280px 140px 140px;
    column-gap: 12px;
    width: 1446px;
    min-width: 1446px;
  }
  .watchlist-table.crypto-profile .watchlist-row {
    grid-template-columns: 48px 112px 120px 120px 150px 110px 280px 120px 76px;
    column-gap: 12px;
    width: 1232px;
    min-width: 1232px;
  }
  .watchlist-row > *,
  .watchlist-row > *:not(:first-child),
  .watchlist-header span,
  .watchlist-header span:not(:first-child),
  .watchlist-header [data-column="story"] {
    margin-left: 0;
  }
  .watchlist-header > [hidden] { display: none !important; }
  .watchlist-header > span {
    min-width: 0;
    padding-inline: 0;
    align-self: center;
  }
  .watchlist-header [data-column="story"],
  .watchlist-story,
  .watchlist-crypto-story { padding-inline: 0; }
  .watchlist-chart { justify-self: start; }
}

/* Crypto defaults: rank, asset, current price, sparkline, 24h/7d change,
   volume, story, previous close, then classification. */
@media (max-width: 600px) {
  .watchlist-table.crypto-profile .watchlist-row {
    grid-template-columns: 48px 112px 120px 120px 150px 110px 280px 120px 76px;
    width: 1232px;
    min-width: 1232px;
  }
}

/* Compact phone navigation keeps controls on one header row and opens a
   short, evenly spaced menu grid below it. */
@media (max-width: 600px) {
  .site-header {
    min-height: 54px;
    padding: 9px 14px;
    grid-template-columns: minmax(0,1fr) auto 34px;
    column-gap: 8px;
    row-gap: 0;
  }
  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .site-header .account-status {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    margin: 0;
    gap: 6px;
    justify-content: flex-end;
  }
  .site-header .auth-button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }
  .theme-toggle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
  }
  .theme-toggle-label { display: none; }
  .site-header .auth-button.is-signed-in {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 11px;
  }

  .mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
    width: 34px;
    min-height: 34px;
    padding: 0;
  }
  .mobile-menu-icon,
  .mobile-menu-icon::before,
  .mobile-menu-icon::after { width: 13px; }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 9px;
    padding-top: 8px;
  }
  .primary-nav.is-open {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0 10px;
  }
  .primary-nav a {
    min-width: 0;
    min-height: 34px;
    font-size: 10px;
    line-height: 1.15;
    white-space: normal;
  }
  .primary-nav a.active::after { width: 28px; }
}

@media (max-width: 350px) {
  .site-header { padding-inline: 10px; }
  .primary-nav.is-open { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Crypto Asset track is intentionally 25% narrower than its prior width. */
@media (max-width: 600px) {
  .watchlist-table.crypto-profile .watchlist-row {
    grid-template-columns: 48px 112px 120px 120px 150px 110px 280px 120px 76px;
    width: 1232px;
    min-width: 1232px;
  }
}

/* Route-wide phone polish for iPhone-class viewports. Data tables retain
   their dedicated horizontal scrollers; surrounding page UI reflows. */
@media (max-width: 480px) {
  main { padding-inline: 14px; padding-bottom: 48px; }
  img, canvas { max-width: 100%; }
  p, h1, h2, h3, strong, span, a { overflow-wrap: break-word; }

  h1,
  .crypto-overview-lead h1,
  .retirement-hero h1,
  .dead-projects-hero h1 {
    font-size: clamp(29px,9vw,38px);
    line-height: .98;
    letter-spacing: -.065em;
  }
  .about-hero h1 { font-size: 26px; white-space: normal; }
  .description { margin-top: 16px; font-size: 13px; line-height: 1.6; }
  .eyebrow, .section-label { margin-bottom: 10px; font-size: 10px; }

  .hero,
  .analysis-hero,
  .overview-hero,
  .about-hero,
  .crypto-overview,
  .retirement-hero,
  .dead-projects-hero {
    display: block;
    min-height: 0;
    padding-top: 32px;
    padding-bottom: 30px;
  }
  .market-status { margin-top: 22px; font-size: 11px; }
  .market-status time { font-size: 10px; }

  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics article,
  .metrics article:first-child,
  .metrics article:nth-child(3) { padding: 16px 10px; }
  .metrics article:nth-child(odd) { padding-left: 0; }
  .metrics p, .metrics span { font-size: 10px; }
  .metrics strong { font-size: 14px; }

  .chart-card { padding-top: 34px; }
  .chart-header h2 { font-size: 22px; }
  .focus-range { min-width: 0; padding-inline: 0; }
  .range-controls { gap: 3px; }
  .range-controls button { width: 36px; height: 32px; font-size: 11px; }
  .chart-wrap { height: 240px; margin-top: 20px; }
  .axis-text, .record-high-label { font-size: 10px; }
  .chart-footer { flex-wrap: wrap; gap: 8px 14px; font-size: 10px; }

  .series-panel { gap: 18px; padding-block: 20px; }
  .series-tabs { gap: 5px; }
  .series-tabs button { min-width: 34px; height: 30px; padding-inline: 9px; font-size: 11px; }
  .static-note { min-width: 0; }

  .lower-grid article { padding-block: 32px; }
  .card-title,
  .overview-section-heading,
  .macro-stock-stories > header,
  .macro-stock-conclusions > header,
  .dead-projects-directory > header,
  .ipo-month > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .card-title { margin-bottom: 22px; }
  .macro-stock-stories > header { align-items: center; flex-direction: row; width: 100%; gap: 12px; }
  .focus-history-link { font-size: 15px; }
  .sector-row { grid-template-columns: 22px 82px minmax(45px,1fr) 48px; gap: 7px; }
  .sector-row > span, .sector-row strong, .sector-row em { font-size: 10px; }
  .brief-card h2 { font-size: 23px; }
  .brief-card > p:not(.section-label), .brief-card a { font-size: 13px; }

  .analysis-method,
  .analysis-method:has(.macro-story) { display: block; }
  .analysis-method article,
  .analysis-method article:first-child,
  .analysis-method article:nth-child(3) {
    min-width: 0;
    padding: 20px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .analysis-method article:first-child { border-top: 0; }
  .analysis-method strong { font-size: 14px; }
  .analysis-method span, .macro-points li { font-size: 12px; }
  .macro-story-label, .current-story-label { align-items: flex-start; flex-direction: column; }
  .macro-story-label time { padding: 5px 0 0; border-left: 0; }
  .macro-stock-conclusions li,
  .macro-stock-validation { min-height: 0; padding: 18px; }

  .watchlist-card { padding-bottom: 48px; }
  .watchlist-heading h2 { font-size: 23px; }
  .watchlist-controls { grid-template-columns: auto minmax(0,1fr); }
  .global-stock-search { grid-column: 1 / -1; }
  .watchlist-controls button,
  .watchlist-toolbar button,
  .watchlist-heading button { min-height: 34px; padding: 7px 9px; font-size: 11px; }
  .watchlist-pagination-bottom { margin-inline: auto; }

  .about-statement { margin-top: 22px; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .about-grid h2, .about-principles h2 { font-size: 22px; }
  .about-principles { padding-block: 42px; }
  .about-principles li { grid-template-columns: 34px minmax(0,1fr); gap: 10px; }
  .about-disclosure { padding-bottom: 44px; }

  .ipo-calendar-card { padding-block: 32px; }
  .ipo-calendar-controls { margin-top: 20px; }
  .ipo-calendar-controls input,
  .ipo-calendar-controls select { min-height: 42px; font-size: 11px; }
  .ipo-calendar-legend { gap: 10px 14px; }
  .ipo-event { min-height: 0; }

  .retirement-hero-copy { padding-block: 18px 30px; }
  .retirement-actions { margin-top: 24px; }
  .retirement-connect-button { width: 100%; min-width: 0; padding: 12px 14px; }
  .retirement-trust-card { padding: 22px; }
  .retirement-trust-card > strong { font-size: 27px; }
  .retirement-setup-card, .retirement-accounts-card { padding-block: 32px; }
  .retirement-setup-card h2, .retirement-accounts-card h2 { font-size: 25px; }
  .retirement-steps li { grid-template-columns: 34px minmax(0,1fr); gap: 10px; }

  .market-calendar-summary strong { font-size: 24px; }
  .market-calendar-panel > header { align-items: flex-start; flex-direction: column; }
  .market-calendar-panel h1 { font-size: 28px; }
  .market-calendar-months > div:first-of-type { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-calendar-feed { padding: 24px 16px 34px; }
  .market-calendar-filters { gap: 5px; }
  .market-calendar-filters button { padding: 7px 9px; font-size: 11px; }
  .market-calendar-event { padding-block: 20px; }

  .dead-projects-summary { padding: 22px; }
  .dead-projects-summary strong { font-size: 52px; }
  .dead-projects-controls input,
  .dead-projects-controls select { min-height: 42px; }

  .auth-dialog > section,
  .asset-list-dialog > section,
  .story-history-dialog article,
  .market-3d-shell { padding: 16px; }
  .auth-dialog h2,
  .asset-list-dialog header h2,
  .story-history-dialog h2,
  .market-3d-shell h2 { font-size: 22px; }
  .asset-list-option { grid-template-columns: 38px minmax(0,1fr); padding: 12px; }
  .asset-list-option-icon { width: 38px; height: 38px; }
  .asset-list-option em { grid-column: 2; }
  .global-stock-search-results {
    position: fixed;
    inset: auto 10px 12px;
    width: auto;
    max-height: 55vh;
    overflow-y: auto;
  }

  body > footer { padding: 20px 14px; gap: 6px; font-size: 10px; line-height: 1.5; }
}

@media (max-width: 360px) {
  .watchlist-controls .watchlist-pager { grid-template-columns: 34px minmax(82px,auto) 34px; }
  .watchlist-controls .watchlist-pager .watchlist-pager-jump { display: none; }
}

/* Market Drivers is a reading feed, not a wide data table. Keep the lead story
   and ranked follow-ups in one fluid stack on phone-sized viewports. */
@media (max-width: 600px) {
  .overview-pulse {
    min-width: 0;
    padding-top: 34px;
  }
  .overview-driver-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
  }
  .market-driver-heading-meta {
    width: 100%;
    max-width: none;
    margin-top: 0;
    gap: 6px;
    justify-items: start;
    text-align: left;
  }
  .market-driver-heading-meta p {
    max-width: 46ch;
    font-size: 12px;
    line-height: 1.55;
  }
  .overview-pulse-grid {
    width: 100%;
    min-width: 0;
    overflow: visible;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: none;
  }
  .overview-pulse-card.is-lead {
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
    min-height: 0;
    padding: 68px 20px 24px;
  }
  .overview-pulse-card.is-lead h3 {
    font-size: clamp(24px,7.5vw,30px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .overview-pulse-card.is-lead h3 small {
    display: table;
    margin-top: 12px;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
  }
  .overview-pulse-card.is-lead h3 small::before { content: none; }
  .overview-lead-insight {
    max-width: none;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.16);
    font-size: 14px;
    line-height: 1.55;
  }
  .market-driver-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 0;
    padding-bottom: 0;
    overflow: visible;
    border-radius: 0 0 12px 12px;
    box-sizing: border-box;
    scrollbar-gutter: auto;
    touch-action: auto;
  }
  .market-driver-grid .market-driver-story {
    grid-template-columns: 44px minmax(0,1fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 64px 16px 18px;
    box-sizing: border-box;
  }
  .market-driver-story > time { padding-right: 10px; }
  .market-driver-story > time strong { font-size: 22px; }
  .market-driver-story h3 {
    font-size: 15px;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }
  .market-driver-story div span {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .market-driver-story > b {
    top: 19px;
    right: 13px;
  }
  .market-driver-score-popover,.market-driver-score-popover.is-lead-score { top: 14px; right: 14px; }
  .market-driver-score-card { width: min(320px,calc(100vw - 52px)); }
}

/* Contract: every route title region begins 16px below the menu divider,
   independent of viewport-specific hero layout. */
main > #overview-view > .overview-hero,
main > #fred-view > .hero,
main > .analysis-view > .analysis-hero,
main > .about-view > .analysis-hero,
main > .watchlist-view > .analysis-hero,
main > #ipo-calendar-view,
main > .watchlist-view > .crypto-overview,
main > .retirement-view > .retirement-hero,
main > .market-calendar-view,
main > .blog-view > .blog-index-hero,
main > .blog-article-view > .blog-article,
main.dead-projects-view > .dead-projects-hero {
  padding-top: var(--menu-divider-title-gap);
}

main > #overview-view > .overview-hero,
main > #fred-view > .hero,
main > .analysis-view > .analysis-hero,
main > .about-view > .analysis-hero,
main > .watchlist-view > .analysis-hero,
main > #ipo-calendar-view > .overview-hero,
main > .watchlist-view > .crypto-overview > .crypto-overview-lead,
main > .blog-view > .blog-index-hero,
main > .blog-article-view > .blog-article > header,
main > .retirement-view > .retirement-hero > .retirement-hero-copy,
main.dead-projects-view > .dead-projects-hero {
  padding-bottom: var(--hero-title-bottom-gap);
}

main > #ipo-calendar-view > .overview-hero,
main > .retirement-view > .retirement-hero > .retirement-hero-copy {
  padding-top: 0;
}

main > .retirement-view > .retirement-hero > .retirement-hero-copy {
  justify-content: flex-start;
}

@media (max-width: 380px) {
  .overview-pulse-card.is-lead { padding: 22px 16px; }
  .market-driver-grid .market-driver-story {
    grid-template-columns: 36px minmax(0,1fr);
    gap: 10px;
    padding: 62px 12px 16px;
  }
  .market-driver-story > time { padding-right: 8px; }
  .market-driver-story > time strong { font-size: 19px; }
  .market-driver-story > b {
    top: 17px;
    right: 10px;
  }
}

/* Compact and mobile crypto tables retain one shared header/row grid. */
@media (max-width: 800px) {
  .watchlist-table.crypto-profile {
    width: calc(100% + 16px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .watchlist-table.crypto-profile .watchlist-row {
    position: static;
    display: grid;
    grid-template-columns: 48px 112px 120px 120px 150px 110px 280px 120px 76px;
    column-gap: 12px;
    width: 1232px;
    min-width: 1232px;
    min-height: 72px;
    padding: 0;
  }

  .watchlist-table.crypto-profile .watchlist-header > [data-column],
  .watchlist-table.crypto-profile .crypto-row > [data-column] {
    display: block;
    min-width: 0;
    margin-left: 0;
    padding-inline: 0;
    grid-column: auto;
    grid-row: auto;
    align-self: center;
  }

  .watchlist-table.crypto-profile .watchlist-header > [hidden] {
    display: none !important;
  }

  .watchlist-table.crypto-profile .watchlist-story,
  .watchlist-table.crypto-profile .watchlist-crypto-story {
    padding: 10px 0;
    border-top: 0;
  }
}

/* STYLE_CONTRACT.md enforcement
   Keep these rules last so component-specific hover treatments cannot erase
   shared accessibility, sizing, and viewport guarantees. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  line-height: 1.5;
}

:where(button, input, select, textarea) {
  min-width: 40px !important;
  min-height: 40px !important;
}

:where(a[href], button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--orange) !important;
  outline-offset: 2px;
}

dialog {
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

dialog > :first-child {
  max-height: calc(100dvh - 26px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.range-controls button,
.series-tabs button,
.watchlist-pager button,
.watchlist-heading .watchlist-pager button {
  min-width: 40px;
  width: 40px;
  min-height: 40px;
  height: 40px;
}

.focus-history-link {
  min-width: 0;
  padding: 8px 0;
}

.overview-section-heading .section-label,
.macro-stock-stories > header .section-label {
  margin: 0;
}

@media (max-width: 800px) {
  .overview-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .market-driver-heading-meta {
    justify-items: start;
    width: 100%;
    max-width: 62ch;
    text-align: left;
  }

  h1,
  .crypto-overview-lead h1,
  .dead-projects-hero h1,
  .retirement-hero h1 {
    font-size: clamp(38px, 10vw, 58px);
    line-height: 1;
  }

  .macro-stock-stories > header {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  main {
    padding-inline: 16px;
  }

  .crypto-overview { padding-bottom: 18px; }
  .crypto-overview-lead { gap: 18px; padding-bottom: var(--hero-title-bottom-gap); }
  .crypto-overview-chart,
  .crypto-top-news { padding: 14px; }
  .crypto-overview-metrics article { padding: 8px 16px; }
  .crypto-taxonomy-bar { padding-block: 10px; }
  .crypto-page .watchlist-card { padding-top: 12px; }

  .overview-section-heading {
    gap: 12px;
  }

  .overview-section-heading .section-label,
  .macro-stock-stories > header .section-label {
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Keep the crypto overview's dense summary rows intact on smaller screens.
   Each section owns its horizontal overflow so the page itself never pans. */
@media (max-width: 800px) {
  .crypto-overview-metrics {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 72vw);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .crypto-overview-metrics article,
  .crypto-overview-metrics article:nth-child(2),
  .crypto-overview-metrics article:nth-child(-n+2) {
    min-width: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    scroll-snap-align: start;
  }

  .crypto-overview-metrics article:last-child { border-right: 0; }

  .crypto-taxonomy-bar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 14px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .crypto-taxonomy-group {
    display: flex;
    flex: 0 0 auto;
    grid-template-columns: none;
  }

  .crypto-class-legend,
  .crypto-activity-legend { flex-wrap: nowrap; }

  .crypto-taxonomy-activity { margin-left: 0; }
  .crypto-taxonomy-activity .crypto-dead-projects-link { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Editorial cards collapse into readable feeds on narrow screens. Horizontal
   scrolling remains reserved for genuinely tabular market and archive data. */
@media (max-width: 600px) {
  .macro-stock-story-grid,
  .macro-stock-validation-grid,
  .macro-stock-conclusions,
  .calendar-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding-bottom: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .macro-stock-story,
  .calendar-event {
    grid-template-columns: 44px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    padding: 18px 16px;
  }

  .macro-stock-story .macro-focus-sparkline {
    grid-column: 2;
  }

  .macro-stock-validation,
  .macro-stock-conclusions li {
    min-width: 0;
    padding: 18px 16px;
  }
}

/* Spatial asset intelligence — desktop Figma contract.
   This layer intentionally follows the older rules so mobile retains the
   established fallback while desktop receives the dense orbital workspace. */
.watchlist-company .company-ticker {
  display: block;
  width: fit-content;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 500 18px/1.05 "DM Mono", monospace;
  letter-spacing: -.04em;
  text-align: left;
}

.watchlist-company .company-ticker::before {
  display: none;
}

.watchlist-company .company-ticker:hover,
.watchlist-company .company-ticker:focus-visible {
  background: transparent;
  color: var(--orange);
}

/* Market-list layout overrides must follow the shared style contract. */
@media (min-width: 801px) {
  .watchlist-table:not(.crypto-profile) .watchlist-company,
  .watchlist-table:not(.crypto-profile) .watchlist-chart {
    margin-left: 6px;
  }

  .watchlist-table.crypto-profile .watchlist-company,
  .watchlist-table.crypto-profile .watchlist-price,
  .watchlist-table.crypto-profile .watchlist-chart {
    margin-left: 6px;
  }

  .watchlist-table .watchlist-story {
    padding-inline: 4px;
  }

  .watchlist-table.crypto-profile .watchlist-story {
    margin-left: 4px;
  }
}

.company-name-link {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  text-decoration: none;
}

a.company-name-link:hover,
a.company-name-link:focus-visible {
  color: var(--orange);
}

.company-name-link span {
  flex: 0 0 auto;
  font: 10px "DM Mono", monospace;
}

@keyframes asset-intelligence-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 192, 147, .45); opacity: 1; }
  50% { box-shadow: 0 0 0 8px rgba(91, 192, 147, 0); opacity: .7; }
}

@media (min-width: 901px) {
  .asset-intelligence-dialog {
    width: min(1440px, calc(100vw - 24px));
    height: min(900px, calc(100vh - 24px));
    max-height: none;
    overflow: hidden;
    border: 1px solid #3b3e36;
    background: #171914;
    color: #f2f1e8;
  }

  .asset-intelligence-shell {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 720px;
    padding: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 50%, rgba(65, 70, 59, .18), transparent 32%),
      linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
      #171914;
    background-size: auto, 48px 48px, 48px 48px, auto;
  }

  .asset-intelligence-header {
    position: absolute;
    z-index: 30;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    height: 112px;
    padding: 27px 36px;
    border: 0;
    pointer-events: none;
  }

  .asset-intelligence-header > div:first-child {
    max-width: 560px;
  }

  .asset-intelligence-header .section-label {
    margin: 0 0 8px;
    color: #ef6434;
    font: 600 10px/1 "DM Mono", monospace;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  .asset-intelligence-header h2 {
    margin: 0;
    color: #f2f1e8;
    font: 500 clamp(22px, 2vw, 30px)/1.05 "DM Sans", sans-serif;
    letter-spacing: -.045em;
  }

  .asset-intelligence-header #asset-intelligence-subtitle {
    margin-top: 6px;
    color: #8c9185;
    font: 10px/1.25 "DM Mono", monospace;
    letter-spacing: .045em;
    text-transform: uppercase;
  }

  .asset-intelligence-quote {
    display: none;
  }

  .asset-intelligence-lens-tabs {
    position: absolute;
    top: 31px;
    right: 83px;
    display: flex;
    padding: 3px;
    border: 1px solid #3b3e36;
    background: rgba(23,25,20,.88);
    pointer-events: auto;
  }

  .asset-intelligence-lens-tabs button {
    min-height: 29px;
    padding: 6px 12px;
    border: 0;
    background: transparent;
    color: #888d82;
    cursor: pointer;
    font: 11px "DM Mono", monospace;
    text-transform: uppercase;
  }

  .asset-intelligence-lens-tabs button.active {
    background: #ef6434;
    color: #171914;
  }

  .asset-intelligence-header > #asset-intelligence-close {
    position: absolute;
    top: 31px;
    right: 36px;
    display: grid;
    width: 35px;
    height: 35px;
    border: 1px solid #3b3e36;
    background: rgba(23,25,20,.88);
    color: #f2f1e8;
    pointer-events: auto;
    font-size: 20px;
  }

  .asset-intelligence-header > #asset-intelligence-close:hover {
    border-color: #ef6434;
    background: #ef6434;
    color: #171914;
  }

  .asset-intelligence-workspace {
    position: absolute;
    inset: 0;
    display: block;
    min-height: 0;
    border: 0;
  }

  .asset-intelligence-stage {
    position: absolute;
    inset: 0;
    min-height: 0;
    overflow: hidden;
    border: 0;
    background: none;
    cursor: grab;
  }

  #asset-intelligence-svg {
    z-index: 3;
  }

  .asset-intelligence-edge-core {
    opacity: .78;
    stroke: #ef6434;
    stroke-width: 1;
    stroke-dasharray: 4 7;
  }

  .asset-intelligence-ring {
    position: absolute;
    z-index: 1;
    top: 51%;
    left: 50%;
    border: 1px solid rgba(145,151,137,.28);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%,-50%) rotate(var(--asset-orbit-angle, 0deg));
    transition: transform .18s ease;
  }

  .asset-intelligence-ring::after {
    position: absolute;
    inset: 5px;
    border: 1px dotted rgba(145,151,137,.09);
    border-radius: inherit;
    content: "";
  }

  .asset-intelligence-ring span {
    position: absolute;
    top: -7px;
    left: 50%;
    min-width: max-content;
    padding: 1px 6px;
    background: #171914;
    color: #b7b9ae;
    font: 600 12px/1.15 "DM Mono", monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
    transform: translateX(-50%);
  }

  .asset-intelligence-ring-r4 { width: 55.6%; height: 76.4%; }
  .asset-intelligence-ring-r3 { width: 47.2%; height: 64.4%; }
  .asset-intelligence-ring-r2 { width: 38.9%; height: 51.2%; }
  .asset-intelligence-ring-r1 { width: 31.95%; height: 40.1%; }

  .asset-intelligence-ring-r4 span {
    top: 58%;
    left: 98%;
  }

  .asset-intelligence-ring-r3 span {
    top: 40%;
    left: 98%;
  }

  .asset-intelligence-ring-r2 span {
    top: 26%;
    left: 92%;
  }

  #asset-intelligence-nodes {
    position: absolute;
    z-index: 6;
    inset: 0;
    pointer-events: none;
  }

  .asset-intelligence-node-wrap {
    position: absolute;
    width: 144px;
    pointer-events: auto;
    transform: translate(-50%,-50%);
  }

  .asset-intelligence-node {
    position: relative;
    display: grid;
    width: 144px;
    min-height: 86px !important;
    padding: 8px;
    align-content: start;
    border: 1px solid #c6c7bf;
    background: #f2f1e8;
    color: #171914;
    cursor: pointer;
    text-align: left;
    transform: none;
    box-shadow: 0 8px 26px rgba(0,0,0,.17);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  }

  .asset-intelligence-node:hover,
  .asset-intelligence-node.is-selected {
    border-color: #ef6434;
    background: #f2f1e8;
    color: #171914;
    box-shadow: 0 11px 30px rgba(0,0,0,.28), 0 0 0 1px #ef6434;
    transform: translateY(-2px);
  }

  .asset-intelligence-node small,
  .asset-intelligence-node strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .asset-intelligence-node small {
    padding-right: 12px;
    color: #5d6259;
    font: 600 10px/1.15 "DM Mono", monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .asset-intelligence-node strong {
    margin-top: 5px;
    color: #171914;
    font: 500 13px/1.15 "DM Mono", monospace;
    letter-spacing: -.035em;
  }

  .asset-intelligence-node > i {
    display: block;
    height: 1px;
    margin: 9px 0 7px;
    background: #d7d6cf;
  }

  .asset-intelligence-node em {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #70756c;
    font: normal 600 10px/1 "DM Mono", monospace;
    letter-spacing: .06em;
  }

  .asset-intelligence-node em b {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5bc093;
  }

  .asset-intelligence-node[data-tone="info"] { border-top: 3px solid #5a9fe0; }
  .asset-intelligence-node[data-tone="caution"] { border-top: 3px solid #e3ac43; }
  .asset-intelligence-node[data-tone="negative"] { border-top: 3px solid #d7655f; }
  .asset-intelligence-node[data-tone="derived"] { border-top: 3px solid #9e79cf; }
  .asset-intelligence-node[data-tone="observed"] { border-top: 3px solid #5bc093; }
  .asset-intelligence-node[data-tone="missing"] {
    border-style: dashed;
    border-top: 3px solid #777b72;
    color: #777b72;
  }

  .asset-intelligence-node[data-state="missing"]::after,
  .asset-intelligence-node[data-state="derived"]::after,
  .asset-intelligence-node[data-state="observed"]::after {
    display: none;
  }

  .asset-intelligence-node[data-state="missing"] em b { background: #777b72; }
  .asset-intelligence-node[data-state="derived"] em b { background: #9e79cf; }

  .asset-intelligence-freshness {
    position: absolute;
    top: -17px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8c9185;
    font: 600 10px "DM Mono", monospace;
    letter-spacing: .08em;
  }

  .asset-intelligence-freshness::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5bc093;
    content: "";
  }

  .asset-intelligence-freshness.is-live::before {
    animation: asset-intelligence-pulse 1.8s ease-out infinite;
  }

  .asset-intelligence-causal {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    display: grid;
    color: #c5c7bd;
    font: 600 10px/1.2 "DM Mono", monospace;
    letter-spacing: .035em;
    white-space: nowrap;
  }

  .asset-intelligence-causal i {
    display: block;
    max-width: 120px;
    height: 2px;
    margin-top: 4px;
    background: #ef6434;
  }

  .asset-intelligence-core {
    z-index: 10;
    top: 51%;
    left: 50%;
    display: grid;
    width: 196px;
    height: 196px;
    padding: 39px 20px 78px;
    place-content: start center;
    border: 1px solid #ef6434;
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 38%, #34372f 0, #23261f 47%, #171914 74%);
    color: #f2f1e8;
    box-shadow: 0 0 0 8px rgba(239,100,52,.08), 0 0 48px rgba(239,100,52,.12);
  }

  .asset-intelligence-core:hover,
  .asset-intelligence-core:focus-visible {
    background:
      radial-gradient(circle at 50% 38%, #3b3e35 0, #282b24 47%, #171914 74%);
    box-shadow: 0 0 0 8px rgba(239,100,52,.12), 0 0 60px rgba(239,100,52,.2);
  }

  .asset-intelligence-core small {
    display: none;
  }

  .asset-intelligence-core strong {
    margin: 0;
    color: #f2f1e8;
    font: 600 27px/1 "DM Mono", monospace;
    letter-spacing: -.06em;
  }

  .asset-intelligence-core span {
    margin-top: 7px;
    color: #f2f1e8;
    font: 500 14px/1 "DM Mono", monospace;
  }

  .asset-intelligence-core-details {
    position: absolute;
    z-index: 12;
    top: calc(51% - 10px);
    left: 50%;
    display: grid;
    width: 166px;
    justify-items: center;
    color: #d8d9d1;
    font: 10px/1.45 "DM Mono", monospace;
    letter-spacing: .01em;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%,0);
  }

  .asset-intelligence-core-details span {
    display: block;
  }

  .asset-intelligence-core-details .asset-intelligence-core-kind {
    margin-bottom: 5px;
    color: #ef6434;
    font-weight: 600;
    letter-spacing: .06em;
  }

  .asset-intelligence-core-details .asset-intelligence-core-change {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .asset-intelligence-core-details .positive { color: #5bc093; }
  .asset-intelligence-core-details .negative { color: #d7655f; }

  .asset-intelligence-core-details .asset-intelligence-core-health {
    max-width: 140px;
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid #45483f;
    color: #8c9185;
    font-size: 10px;
  }

  .asset-intelligence-deep-dives {
    position: absolute;
    z-index: 14;
    top: 18.5%;
    left: 3.8%;
    display: grid;
    width: 184px;
    border: 1px solid #3b3e36;
    background: rgba(23,25,20,.9);
  }

  .asset-intelligence-deep-dives[hidden] {
    display: none;
  }

  .asset-intelligence-deep-dives > small {
    padding: 10px 11px;
    border-bottom: 1px solid #3b3e36;
    color: #8c9185;
    font: 600 10px "DM Mono", monospace;
    letter-spacing: .07em;
  }

  .asset-intelligence-deep-dives a {
    display: flex;
    min-height: 34px;
    padding: 8px 11px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2e312b;
    color: #d8d9d1;
    font: 10px/1.25 "DM Mono", monospace;
    text-decoration: none;
  }

  .asset-intelligence-deep-dives a:last-child { border-bottom: 0; }
  .asset-intelligence-deep-dives a:hover { background: #ef6434; color: #171914; }

  .asset-intelligence-tokenomics {
    position: absolute;
    z-index: 15;
    top: 19.3%;
    left: 3.8%;
    width: 248px;
    max-height: 68.9%;
    padding: 15px;
    overflow: auto;
    border: 1px solid #565a50;
    background: rgba(23,25,20,.96);
    color: #f2f1e8;
    scrollbar-color: #565a50 #23261f;
    scrollbar-width: thin;
  }

  .asset-intelligence-tokenomics[hidden] {
    display: none;
  }

  .asset-intelligence-tokenomics::-webkit-scrollbar {
    width: 6px;
  }

  .asset-intelligence-tokenomics::-webkit-scrollbar-track {
    background: #23261f;
  }

  .asset-intelligence-tokenomics::-webkit-scrollbar-thumb {
    background: #565a50;
  }

  .asset-intelligence-tokenomics > small {
    color: #ef6434;
    font: 600 10px "DM Mono", monospace;
    letter-spacing: .09em;
  }

  .asset-intelligence-tokenomics h3 {
    margin: 7px 0 3px;
    font: 600 18px/1 "DM Sans", sans-serif;
    letter-spacing: -.04em;
  }

  .asset-intelligence-tokenomics > p {
    margin: 0 0 13px;
    color: #8c9185;
    font: 10px "DM Mono", monospace;
  }

  .asset-intelligence-token-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #3b3e36;
  }

  .asset-intelligence-token-metrics article {
    min-width: 0;
    padding: 9px;
  }

  .asset-intelligence-token-metrics article + article {
    border-left: 1px solid #3b3e36;
  }

  .asset-intelligence-token-metrics small,
  .asset-intelligence-token-metrics strong,
  .asset-intelligence-token-metrics em {
    display: block;
    font-family: "DM Mono", monospace;
    font-style: normal;
  }

  .asset-intelligence-token-metrics small { color: #8c9185; font-size: 10px; }
  .asset-intelligence-token-metrics strong { margin: 5px 0 3px; font-size: 15px; }
  .asset-intelligence-token-metrics em { color: #5bc093; font-size: 10px; }

  .asset-intelligence-issuance {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-top: 13px;
    color: #8c9185;
    font: 10px/1.2 "DM Mono", monospace;
  }

  .asset-intelligence-issuance small { grid-column: 1 / -1; }

  .asset-intelligence-issuance i {
    grid-column: 1 / -1;
    height: 23px;
    margin: 5px 0;
    border-top: 1px solid #ef6434;
    border-radius: 50%;
    transform: skewX(-22deg);
  }

  .asset-intelligence-issuance span:nth-last-child(2) { text-align: center; }
  .asset-intelligence-issuance span:last-child { text-align: right; }

  .asset-intelligence-tokenomics dl {
    margin: 11px 0 0;
    border-top: 1px solid #3b3e36;
  }

  .asset-intelligence-tokenomics dl div {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 7px;
    padding: 7px 0;
    border-bottom: 1px solid #2e312b;
  }

  .asset-intelligence-tokenomics dt {
    color: #8c9185;
    font: 10px/1.25 "DM Mono", monospace;
  }

  .asset-intelligence-tokenomics dd {
    margin: 0;
    color: #d8d9d1;
    font: 10px/1.35 "DM Mono", monospace;
  }

  .asset-intelligence-token-links {
    display: grid;
    margin-top: 10px;
  }

  .asset-intelligence-token-links a {
    display: flex;
    padding: 7px 0;
    justify-content: space-between;
    border-bottom: 1px solid #3b3e36;
    color: #f2f1e8;
    font: 10px "DM Mono", monospace;
    text-decoration: none;
  }

  .asset-intelligence-token-links a:hover {
    color: #ef6434;
  }

  .asset-intelligence-lens {
    position: absolute;
    z-index: 40;
    top: 118px;
    right: 28px;
    width: 310px;
    min-width: 0;
    max-height: calc(100% - 190px);
    padding: 21px;
    overflow: auto;
    border: 1px solid #565a50;
    background: rgba(242,241,232,.98);
    color: #171914;
    box-shadow: 0 20px 55px rgba(0,0,0,.35);
  }

  .asset-intelligence-lens[hidden] {
    display: none;
  }

  .asset-intelligence-lens-close {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    width: 27px;
    height: 27px;
    padding: 0;
    place-items: center;
    border: 1px solid #bdbdb6;
    background: transparent;
    cursor: pointer;
    font-size: 17px;
  }

  .asset-intelligence-lens-heading {
    padding-right: 24px;
  }

  .asset-intelligence-lens > strong {
    margin: 28px 0 12px;
  }

  .asset-intelligence-lens > p {
    min-height: 0;
  }

  .asset-intelligence-controls {
    position: absolute;
    z-index: 20;
    right: 28px;
    bottom: 20px;
    left: 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: 43px;
    padding: 0;
    border: 0;
    pointer-events: none;
  }

  .asset-intelligence-controls > div {
    pointer-events: auto;
  }

  .asset-intelligence-controls button {
    min-height: 31px;
    border-color: #3b3e36;
    color: #b7b9ae;
  }

  .asset-intelligence-controls button:hover,
  .asset-intelligence-controls button[aria-pressed="true"] {
    background: #ef6434;
    color: #171914;
  }

  .asset-intelligence-controls p {
    color: #ef6434;
    align-self: end;
    text-align: center;
  }

  .asset-intelligence-controls > span {
    color: #777c72;
    align-self: end;
  }

  .asset-intelligence-stage-key,
  .asset-intelligence-evidence {
    display: none;
  }

  .asset-intelligence-dialog[data-asset-class="crypto"] .asset-intelligence-ring-r4,
  .asset-intelligence-dialog[data-asset-class="crypto"] .asset-intelligence-ring-r3,
  .asset-intelligence-dialog[data-asset-class="crypto"] .asset-intelligence-ring-r2,
  .asset-intelligence-dialog[data-asset-class="crypto"] .asset-intelligence-ring-r1 {
    margin-left: 6.7%;
  }

  .asset-intelligence-dialog[data-asset-class="crypto"] .asset-intelligence-core,
  .asset-intelligence-dialog[data-asset-class="crypto"] .asset-intelligence-core-details {
    left: 56.7%;
  }

  .asset-intelligence-dialog[data-asset-class="crypto"] .asset-intelligence-node-wrap {
    margin-left: 6.7%;
  }

  .asset-intelligence-dialog[data-asset-class="crypto"] #asset-intelligence-svg {
    transform: translateX(6.7%);
  }

  .asset-intelligence-dialog[data-asset-class="crypto"] .asset-intelligence-ring-r4 span {
    left: 105%;
  }

  .asset-intelligence-dialog[data-asset-class="crypto"] .asset-intelligence-ring-r3 span {
    left: 108%;
  }

  .asset-intelligence-dialog[data-asset-class="crypto"] .asset-intelligence-ring-r2 span {
    left: 112%;
  }
}

/* iOS hides native overflow scrollbars. Keep a persistent equity-list
   scrollbar visible beneath the table at iPhone widths. */
.watchlist-mobile-scrollbar {
  display: none;
}

@media (max-width: 600px) {
  .watchlist-table:not(.crypto-profile) {
    scrollbar-width: none;
  }

  .watchlist-table:not(.crypto-profile)::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  /* The shared .75rem grid gap plus this .75rem story offset produces the
     requested 1.5rem Volume-to-story boundary without shifting it farther. */
  .watchlist-table:not(.crypto-profile) .watchlist-header [data-column="story"],
  .watchlist-table:not(.crypto-profile) .watchlist-story {
    margin-left: .75rem;
  }

  .watchlist-mobile-scrollbar:not([hidden]) {
    display: block;
    width: 100%;
    height: 28px;
    margin: 8px 0 12px;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: ew-resize;
    touch-action: pan-x pinch-zoom;
  }

  .watchlist-mobile-scrollbar::-webkit-slider-runnable-track {
    height: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--line);
  }

  .watchlist-mobile-scrollbar::-webkit-slider-thumb {
    width: 52px;
    height: 16px;
    margin-top: -5px;
    border: 2px solid var(--paper);
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--orange);
    box-shadow: 0 0 0 1px var(--ink);
  }

  .watchlist-mobile-scrollbar::-moz-range-track {
    height: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--line);
  }

  .watchlist-mobile-scrollbar::-moz-range-thumb {
    width: 48px;
    height: 12px;
    border: 2px solid var(--paper);
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 0 0 1px var(--ink);
  }

  .watchlist-mobile-scrollbar:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
  }
}

/* Dark theme polish: keep data-dense surfaces distinct from the page. */
::selection {
  background: rgba(67,213,156,.28);
  color: var(--on-strong);
}

* { scrollbar-color: var(--orange) #16201b; }

body,
button,
input,
select,
textarea { accent-color: var(--green); }

input::placeholder,
textarea::placeholder {
  color: #6f7d75;
  opacity: 1;
}

.overview-hero,
.hero,
.watchlist-table,
.ipo-month > header { border-color: var(--line); }

.market-glance,
.overview-pulse-grid,
.market-driver-grid,
.calendar-feature,
.calendar-grid,
.macro-stock-story-grid,
.macro-stock-conclusions ol,
.macro-stock-validation-grid {
  box-shadow: 0 18px 50px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.025);
}

.market-glance {
  border-color: #38463f;
  background: rgba(17,25,20,.94);
}

.market-glance-grid article,
.vix-defcon-face-vix {
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 72%);
}

.overview-pulse-grid {
  border-color: #34423b;
  background: var(--line);
}

.overview-pulse-card.is-lead,
.calendar-feature,
.careers-hero-note,
.retirement-connect-button,
.retirement-trust-card,
.dead-projects-summary,
.dead-projects-head {
  border-color: #394840;
  background: var(--panel-strong);
  color: var(--on-strong);
}

.overview-pulse-card.is-lead .macro-chart-meta strong,
.overview-lead-insight[href]:hover,
.overview-lead-insight[href]:focus-visible { color: var(--on-strong); }

.overview-pulse-card.is-lead h3 small,
.overview-pulse-card.is-lead .macro-chart-date,
.overview-lead-insight,
.calendar-feature div > p:last-child,
.retirement-trust-card li { color: #b9c5be; }

.auth-button:hover,
.auth-button:focus-visible,
.auth-tabs button.active,
.auth-submit,
.auth-account button,
.range-controls button:hover,
.range-controls button.active,
.watchlist-toolbar button:hover,
.crypto-dead-projects-link:hover,
.crypto-dead-projects-link:focus-visible,
.watchlist-controls button.active,
.watchlist-heading button:hover,
.watchlist-heading .watchlist-pager button:hover:not(:disabled),
.watchlist-heading #watchlist-favorites:hover,
.watchlist-heading #watchlist-favorites.active,
.asset-list-dialog header button:hover,
.market-3d-shell > footer button:hover,
.dead-projects-pagination button:hover:not(:disabled),
.dead-projects-pagination button:focus-visible {
  border-color: #46574e;
  background: #202b25;
  color: var(--on-strong);
}

.macro-contract-tooltip i {
  border-color: #46574e;
  background: #202b25;
  color: var(--on-strong);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.auth-dialog,
.story-history-dialog,
.asset-list-dialog,
.market-3d-dialog,
.year-chart-popover,
.global-stock-search-results {
  border-color: #405047;
  background: #0d1410;
  box-shadow: 0 28px 80px rgba(0,0,0,.56);
}

.auth-dialog::backdrop,
.story-history-dialog::backdrop,
.asset-list-dialog::backdrop,
.market-3d-dialog::backdrop { background: rgba(0,0,0,.76); }

.conclusion-validation-evidence,
.macro-stock-validation { background: rgba(255,255,255,.018); }

.macro-current-story,
.macro-history-card,
.watchlist-pager,
.watchlist-heading #watchlist-favorites {
  box-shadow: 0 12px 34px rgba(0,0,0,.26);
}

.today-action-heading {
  background: linear-gradient(to bottom, rgba(9,14,12,.98), rgba(9,14,12,.78), transparent);
}

:focus-visible { outline-color: var(--orange); }

@media (max-width: 760px) {
  .site-header {
    background: rgba(9,14,12,.96);
    backdrop-filter: blur(14px);
  }
}

/* Restored editorial light palette for the remembered theme toggle. */
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #171914;
  --muted: #596057;
  --line: #d8d8cf;
  --paper: #f4f2ec;
  --card: #fbfaf6;
  --green: #0d7b51;
  --green-light: #c8e6d6;
  --orange: #ed642f;
  --red: #c2482d;
  --red-dark: #a73c27;
  --blue: #2f668b;
  --gold: #a87800;
  --orange-on-dark: #ff895c;
  --surface: #fbfaf6;
  --text: #171914;
  --bg: #f4f2ec;
  --panel-strong: #171914;
  --on-strong: #f4f2ec;
  background: #f4f2ec;
}

:root[data-theme="light"] body { background: var(--paper); }

:root[data-theme="light"] .site-header {
  background: rgba(244,242,236,.9);
  box-shadow: 0 1px 0 rgba(23,25,20,.025), 0 18px 55px rgba(23,25,20,.04);
}

:root[data-theme="light"] * { scrollbar-color: var(--orange) var(--line); }

:root[data-theme="light"] ::selection {
  background: rgba(13,123,81,.18);
  color: var(--ink);
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder { color: #7b8178; }

:root[data-theme="light"] .market-glance {
  border-color: rgba(23,25,20,.72);
  background: var(--card);
}

:root[data-theme="light"] .market-glance-grid article,
:root[data-theme="light"] .vix-defcon-face-vix {
  background: linear-gradient(180deg, rgba(255,255,255,.28), transparent);
}

:root[data-theme="light"] .market-glance,
:root[data-theme="light"] .overview-pulse-grid,
:root[data-theme="light"] .market-driver-grid,
:root[data-theme="light"] .calendar-feature,
:root[data-theme="light"] .calendar-grid,
:root[data-theme="light"] .macro-stock-story-grid,
:root[data-theme="light"] .macro-stock-conclusions ol,
:root[data-theme="light"] .macro-stock-validation-grid {
  box-shadow: 0 12px 32px rgba(23,25,20,.07);
}

:root[data-theme="light"] .auth-dialog,
:root[data-theme="light"] .story-history-dialog,
:root[data-theme="light"] .asset-list-dialog,
:root[data-theme="light"] .market-3d-dialog,
:root[data-theme="light"] .year-chart-popover,
:root[data-theme="light"] .global-stock-search-results {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 22px 60px rgba(23,25,20,.18);
}

:root[data-theme="light"] .auth-dialog::backdrop,
:root[data-theme="light"] .story-history-dialog::backdrop,
:root[data-theme="light"] .asset-list-dialog::backdrop,
:root[data-theme="light"] .market-3d-dialog::backdrop { background: rgba(23,25,20,.6); }

:root[data-theme="light"] .conclusion-validation-evidence { background: rgba(23,25,20,.035); }
:root[data-theme="light"] .macro-stock-validation { background: rgba(23,25,20,.018); }

:root[data-theme="light"] .today-action-heading {
  background: linear-gradient(to bottom, rgba(244,242,236,.96), rgba(244,242,236,.72), transparent);
}

/* Equity list contract: every equity collection uses the same single-row grid.
   The table owns horizontal overflow, while column widths follow column
   identity (including saved reordering) instead of viewport position. */
.watchlist-table:not(.crypto-profile) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.watchlist-table:not(.crypto-profile) .watchlist-row {
  position: static;
  display: grid;
  grid-template-columns: 54px minmax(130px,.85fr) minmax(96px,.6fr) minmax(100px,.62fr) minmax(96px,.6fr) minmax(88px,.52fr) minmax(160px,.9fr) minmax(235px,1.25fr) minmax(96px,.62fr) minmax(140px,.82fr);
  grid-template-areas: none;
  column-gap: 10px;
  row-gap: 0;
  width: 100%;
  min-width: 1285px;
  min-height: 72px;
  padding: 0;
  align-items: center;
}

.watchlist-table:not(.crypto-profile) .watchlist-header { display: grid; }

.watchlist-table:not(.crypto-profile) .watchlist-row > * {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  margin-left: 0 !important;
  align-self: center;
}

.watchlist-table:not(.crypto-profile) .watchlist-header > span:not([hidden]),
.watchlist-table:not(.crypto-profile) .watchlist-chart,
.watchlist-table:not(.crypto-profile) .watchlist-previous-close,
.watchlist-table:not(.crypto-profile) .watchlist-volume,
.watchlist-table:not(.crypto-profile) .watchlist-story,
.watchlist-table:not(.crypto-profile) .watchlist-earnings { display: block; }

.watchlist-table:not(.crypto-profile) #watchlist-previous-close-header,
.watchlist-table:not(.crypto-profile) .watchlist-previous-close {
  visibility: visible;
}

.watchlist-table:not(.crypto-profile) .watchlist-next-earnings { display: flex; }

.watchlist-table:not(.crypto-profile) .watchlist-change {
  display: grid;
  grid-template-columns: max-content max-content;
  grid-template-rows: auto auto;
  gap: 3px 6px;
  align-items: center;
}

.watchlist-table:not(.crypto-profile) .watchlist-change > strong:first-child {
  grid-column: 1;
  grid-row: 1;
}

.watchlist-table:not(.crypto-profile) .watchlist-change > span {
  grid-column: 2;
  grid-row: 1;
}

.watchlist-table:not(.crypto-profile) .watchlist-change > strong:last-child {
  grid-column: 1;
  grid-row: 2;
}

.watchlist-table:not(.crypto-profile) .watchlist-story {
  margin: 0 !important;
  padding: 18px 2px;
  border-top: 0;
}

.watchlist-table:not(.crypto-profile) .watchlist-header [data-column="story"] {
  margin: 0;
  padding-inline: 2px;
}

@media (max-width: 600px) {
  .watchlist-table:not(.crypto-profile) { scrollbar-width: none; }
}

@media (min-width: 601px) and (max-width: 1355px) {
  .watchlist-view:not(.crypto-page) .watchlist-card { min-width: 0; }

  .watchlist-view:not(.crypto-page) .watchlist-heading {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
    align-items: end;
  }

  .watchlist-view:not(.crypto-page) .watchlist-heading-title,
  .watchlist-view:not(.crypto-page) .watchlist-list-triggers { min-width: 0; }

  .watchlist-view:not(.crypto-page) .watchlist-controls {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
}

@media (min-width: 1100px) and (max-width: 1355px) {
  .watchlist-view:not(.crypto-page) .watchlist-heading {
    grid-template-columns: minmax(0,1fr) auto;
  }

  .watchlist-view:not(.crypto-page) .watchlist-controls {
    width: auto;
    justify-content: flex-end;
  }
}

@media (min-width: 601px) and (max-width: 720px) {
  .watchlist-view:not(.crypto-page) .watchlist-controls { flex-wrap: wrap; }
  .watchlist-view:not(.crypto-page) .global-stock-search { width: 100%; }
}

/* Compact market-data accuracy line beside the equity collection picker. */
.watchlist-data-status {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 500 10px/1.25 "DM Mono";
  letter-spacing: .02em;
  white-space: nowrap;
}

.watchlist-data-status time {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.watchlist-data-status[hidden] { display: none !important; }

@media (max-width: 800px) {
  .watchlist-view:not(.crypto-page) .watchlist-data-status {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .watchlist-view:not(.crypto-page) .watchlist-data-status { justify-content: flex-end; }
}

/* Keep list navigation and legal links in view while the center panel scrolls. */
body.watchlist-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

body.watchlist-shell > .site-header,
body.watchlist-shell > .site-footer {
  position: relative;
  z-index: 20;
}

body.watchlist-shell > main {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

body.watchlist-shell .watchlist-column-header-viewport {
  position: sticky;
  top: 0;
  z-index: 8;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 10px 20px color-mix(in srgb, var(--paper) 82%, transparent);
}

body.watchlist-shell .watchlist-table { overflow: visible; }

body.watchlist-shell .watchlist-header {
  background: var(--paper);
  will-change: transform;
}

body.watchlist-shell .watchlist-rows-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

body.watchlist-shell .watchlist-row[role="row"] { scroll-margin-top: 78px; }

.watchlist-position-tools {
  position: fixed;
  right: max(clamp(20px, 5vw, 72px), calc((100vw - 1440px) / 2 + 72px));
  bottom: 104px;
  z-index: 18;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

body:not(.watchlist-shell) .watchlist-position-tools { display: none; }

.watchlist-position-tools button,
.watchlist-jump-menu > summary {
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  backdrop-filter: blur(14px) saturate(130%);
  cursor: pointer;
  font: 600 11px/1 "DM Mono", monospace;
  letter-spacing: .03em;
}

.watchlist-back-top {
  padding: 0 15px;
  pointer-events: auto;
}

.watchlist-back-top span { font-size: 15px; }

.watchlist-jump-menu {
  position: relative;
  pointer-events: auto;
}

.watchlist-jump-menu > summary {
  display: grid;
  min-width: 76px;
  padding: 0 15px;
  place-items: center;
  list-style: none;
}

.watchlist-jump-menu > summary::-webkit-details-marker { display: none; }
.watchlist-jump-menu[open] > summary { background: var(--ink); color: var(--paper); }

.watchlist-jump-menu form {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  width: min(280px, calc(100vw - 28px));
  padding: 16px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 97%, transparent);
  box-shadow: 0 16px 42px rgba(0,0,0,.18);
  backdrop-filter: blur(18px) saturate(130%);
}

.watchlist-jump-menu label {
  font: 600 10px/1.2 "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.watchlist-jump-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

.watchlist-jump-entry input {
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 600 13px/1 "DM Mono", monospace;
}

.watchlist-jump-entry button { min-width: 48px; padding: 0 12px; }
.watchlist-jump-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.watchlist-jump-shortcuts button { min-height: 34px; padding: 0 8px; border-color: var(--line); box-shadow: none; }
.watchlist-position-tools button:hover,
.watchlist-position-tools button:focus-visible,
.watchlist-jump-menu > summary:hover,
.watchlist-jump-menu > summary:focus-visible { border-color: var(--accent); outline: none; }
.watchlist-position-tools button:disabled { cursor: not-allowed; opacity: .45; }

#watchlist-jump-status {
  color: var(--muted);
  font: 500 10px/1.35 "DM Mono", monospace;
}

body.watchlist-shell > .site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 10px;
  gap: 6px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 -14px 34px rgba(0,0,0,.08);
  backdrop-filter: blur(18px) saturate(130%);
}

body.watchlist-shell > .site-footer .footer-actions {
  min-width: 0;
  padding: 0;
  justify-content: center;
  border: 0;
}

body.watchlist-shell > .site-footer .footer-notice {
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .watchlist-position-tools {
    right: 12px;
    bottom: 98px;
  }

  body.watchlist-shell > .site-footer {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 8px;
    gap: 6px;
  }

  body.watchlist-shell > .site-footer .footer-actions {
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    white-space: nowrap;
  }

  body.watchlist-shell > .site-footer .footer-notice {
    justify-content: space-between;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .watchlist-position-tools { bottom: 88px; }
  .watchlist-back-top { padding-inline: 11px; }
  body.watchlist-shell > .site-footer .footer-actions > :is(a, button) {
    display: inline-flex;
    flex: 0 0 136px;
    width: 136px;
    height: 40px;
    align-items: center;
    justify-content: center;
  }
  body.watchlist-shell > .site-footer .footer-notice p:last-child { display: none; }
}
