/* === PIMI DESIGN TOKENS === (Signal identity) */
:root {
  --bg: #f4f5f7;
  --bg-2: #eceef1;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --elevated: #ffffff;
  --paper: #ffffff;
  --mist: #eef0f3;
  --border: #e3e6ea;
  --border-2: #d4d8de;
  --border-3: #c2c7cf;
  --line: #e3e6ea;
  --line-2: #d4d8de;
  --line-3: #c2c7cf;

  --text: #0a0c10;
  --text-2: #363c45;
  --ink: #0a0c10;
  --ink-2: #363c45;
  --muted: #6a717b;
  --dim: #9aa1ab;
  --faint: #eef0f3;

  --accent: #1d4ed8;
  --accent-2: #0891b2;
  --blue: #1d4ed8;
  --cyan: #0891b2;
  --blue-deep: #1740b8;
  --brand-grad: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  --accent-dim: rgba(29, 78, 216, 0.10);
  --accent-line: rgba(29, 78, 216, 0.32);

  --up: #0c9b54;
  --up-dim: rgba(12, 155, 84, 0.12);
  --down: #e23b40;
  --down-dim: rgba(226, 59, 64, 0.12);
  --warn: #d97706;
  --neu: #71717a;

  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --r-sm: 4px;
  --r: 6px;
  --r-md: 8px;
  --r-lg: 12px;
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}
button { font-family: inherit; color: inherit; cursor: pointer; background: none; border: none; padding: 0; }
input, textarea { font-family: inherit; color: inherit; background: none; border: none; outline: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-3); }

.num { font-family: var(--serif); font-feature-settings: "lnum", "tnum"; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 500; }
.pimi-mark {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--brand-grad);
  color: #ffffff;
  border-radius: 24%;
  box-shadow: 0 8px 22px rgba(8, 145, 178, 0.16);
}
.pimi-mark-svg {
  width: 66%;
  height: 66%;
  display: block;
}
.api-note {
  margin: 14px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: rgba(96, 165, 250, 0.07);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.api-note.compact {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 8px;
  font-size: 9.5px;
}
.api-note.warn {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.08);
  color: var(--warn);
}
.loading-screen {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: 48px 28px;
  background: radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--bg) 100%);
}
.loading-screen.compact {
  min-height: 280px;
}
.loading-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.loading-stack .pimi-loader { margin: 0 auto 18px; }
.pimi-loader {
  display: inline-block;
  width: var(--sz, 48px);
  height: var(--sz, 48px);
  color: var(--accent);
  animation: pimi-spin 2s infinite;
  will-change: transform;
}
.pimi-loader svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pimi-loader .disc-fill { fill: currentColor; }
.pimi-loader .disc-ring {
  fill: none;
  stroke: currentColor;
}
.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.loading-title {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.loading-brand {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.loading-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.loading-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pimi-loader-pulse 1.6s ease-in-out infinite;
}
@keyframes pimi-spin {
  0%   { transform: rotate(0deg);   animation-timing-function: cubic-bezier(.45,.05,.25,1); }
  31%  { transform: rotate(185deg); animation-timing-function: cubic-bezier(.7,0,.35,1); }
  35%  { transform: rotate(180deg); animation-timing-function: linear; }
  50%  { transform: rotate(180deg); animation-timing-function: cubic-bezier(.45,.05,.25,1); }
  81%  { transform: rotate(365deg); animation-timing-function: cubic-bezier(.7,0,.35,1); }
  85%  { transform: rotate(360deg); animation-timing-function: linear; }
  100% { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pimi-loader { animation: pimi-loader-pulse 1.6s ease-in-out infinite; }
}
@keyframes pimi-loader-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* === LANDING === */
.landing-shell {
  --r-pill: 999px;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  background:
    radial-gradient(80% 60% at 50% -8%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(70% 55% at 88% 108%, rgba(8, 145, 178, 0.10), transparent 60%),
    var(--bg);
}
.landing-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(78% 78% at 50% 42%, #000 0%, transparent 80%);
  mask-image: radial-gradient(78% 78% at 50% 42%, #000 0%, transparent 80%);
}
.landing-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 22px 28px;
}
.landing-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: var(--r-pill);
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}
.landing-btn-login:hover {
  color: var(--text);
}
.landing-btn-login svg {
  width: 14px;
  height: 14px;
}
.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 28px 96px;
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
  cursor: default;
}
.landing-mark {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 14px 34px rgba(8, 145, 178, 0.28));
}
.landing-mark .landing-mark-art {
  transform-origin: 50% 50%;
  transition: transform 760ms cubic-bezier(.2, .8, .2, 1);
}
.landing-brand:hover .landing-mark .landing-mark-art,
.landing-brand:focus-visible .landing-mark .landing-mark-art {
  transform: rotate(360deg);
}
.landing-wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.landing-tagline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 64px;
  white-space: nowrap;
}
.landing-tagline span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.landing-waitlist {
  position: relative;
  height: 52px;
}
.landing-btn-waitlist {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 30px;
  border-radius: var(--r-pill);
  background: var(--brand-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
}
.landing-btn-waitlist:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.landing-btn-waitlist svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.landing-btn-waitlist:hover svg {
  transform: translateX(3px);
}
.landing-signup {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 28px rgba(15, 15, 25, 0.10);
}
.landing-signup input {
  border: none;
  outline: none;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  width: 248px;
}
.landing-signup input::placeholder {
  color: var(--dim);
}
.landing-signup-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--brand-grad);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease;
}
.landing-signup-submit:hover {
  transform: translateY(-1px);
}
.landing-confirm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(15, 15, 25, 0.08);
}
.landing-tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  display: grid;
  place-items: center;
}
.landing-tick svg {
  width: 13px;
  height: 13px;
}
.landing-kicker {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.landing-fade {
  animation: landing-fade 0.35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes landing-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-brand:hover .landing-mark .landing-mark-art,
  .landing-brand:focus-visible .landing-mark .landing-mark-art {
    transform: none;
  }
  .landing-fade {
    animation: none;
  }
}
@media (max-width: 560px) {
  .landing-brand {
    gap: 14px;
    margin-bottom: 30px;
  }
  .landing-mark {
    width: 64px;
    height: 64px;
  }
  .landing-wordmark {
    font-size: 46px;
  }
  .landing-signup input {
    width: 170px;
  }
}

/* === APP SHELL === */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  height: 100vh;
  overflow: hidden;
  transition: grid-template-columns 280ms cubic-bezier(.2,.8,.2,1);
}
.app.sidebar-collapsed {
  grid-template-columns: 44px 1fr;
}

/* === AUTH === */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 25% 20%, rgba(37, 99, 235, 0.11), transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(8, 145, 178, 0.08), transparent 30%),
    var(--bg);
}
.auth-card {
  width: min(460px, 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(15, 15, 25, 0.14);
  padding: 24px;
}
.auth-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.auth-back:hover {
  color: var(--text);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.auth-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.auth-sub {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 18px;
}
.auth-tabs button {
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
}
.auth-tabs button.active {
  background: var(--accent-dim);
  color: var(--text);
  border: 1px solid var(--accent-line);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-form input {
  height: 38px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--bg);
  padding: 0 11px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-submit, .auth-demo {
  width: 100%;
  height: 39px;
  border-radius: var(--r);
  border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(34, 211, 238, 0.13));
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 4px;
}
.auth-submit:disabled, .auth-demo:disabled {
  opacity: 0.55;
  cursor: wait;
}
.auth-demo {
  margin-top: 10px;
  border-color: var(--border-2);
  background: var(--surface);
  color: var(--text-2);
}
.auth-foot, .auth-loading {
  margin-top: 16px;
  text-align: center;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.auth-foot {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.auth-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-2);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: underline;
}
.auth-link:hover {
  color: var(--text);
}
.auth-hint {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.04em;
  margin-top: -2px;
}
.auth-hint.warn {
  color: var(--danger, #f87171);
}
.auth-reqs {
  list-style: none;
  margin: -2px 0 2px;
  padding: 0;
  display: grid;
  gap: 3px;
}
.auth-req {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--dim);
  transition: color 0.15s ease;
}
.auth-req-mark {
  display: inline-flex;
  width: 13px;
  justify-content: center;
  font-weight: 700;
}
.auth-req.met {
  color: var(--positive, #4ade80);
}
.auth-req.unmet {
  color: var(--text-2);
}

/* === SIDEBAR === */
.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  overflow: hidden;
  transition: background 180ms ease, border-color 180ms ease;
}
.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  transition: padding 280ms cubic-bezier(.2,.8,.2,1), gap 220ms ease;
}
.sb-home-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
}
.sb-home-link:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 3px;
}
.sb-collapse {
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  line-height: 1;
  transition: color 0.18s ease, transform 0.22s ease, background 0.18s ease, margin 280ms cubic-bezier(.2,.8,.2,1);
}
.sb-collapse:hover {
  color: var(--text);
  background: var(--bg-2);
  transform: translateX(-1px);
}
.sb-collapse-icon.left {
  display: grid;
  place-items: center;
  transform: rotate(180deg);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1);
}
.app.sidebar-collapsed .sb-collapse-icon.left {
  transform: rotate(0deg);
}
.collapsed-expand:hover {
  transform: translateX(1px);
}
.sb-logo {
  width: 26px; height: 26px;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(8, 145, 178, 0.16);
  transition: opacity 180ms ease, transform 220ms ease, width 260ms cubic-bezier(.2,.8,.2,1);
}
.sidebar .sb-logo {
  width: 30px;
  height: 30px;
}
.sidebar .sb-logo.pimi-mark {
  background: var(--brand-grad);
  color: #fff;
  border-radius: 24%;
  box-shadow: 0 8px 22px rgba(8, 145, 178, 0.16);
  cursor: pointer;
}
.sidebar .sb-logo.pimi-mark .pimi-mark-svg {
  width: 66%;
  height: 66%;
  transform-origin: center;
  transform: rotate(0deg);
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
}
.sidebar .sb-home-link:hover .sb-logo.pimi-mark .pimi-mark-svg {
  transform: rotate(360deg);
}
.sb-home-link:hover .sb-brand-name {
  color: var(--accent);
}
.sb-brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color 0.18s ease, opacity 180ms ease, transform 220ms ease, max-width 260ms cubic-bezier(.2,.8,.2,1);
}
.sb-brand-tag {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sb-new {
  margin: 12px;
  height: 36px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: margin 280ms cubic-bezier(.2,.8,.2,1), padding 280ms cubic-bezier(.2,.8,.2,1), background .18s cubic-bezier(.4,1.1,.4,1), border-color .18s cubic-bezier(.4,1.1,.4,1), box-shadow .18s cubic-bezier(.4,1.1,.4,1), transform .18s cubic-bezier(.4,1.1,.4,1), color .15s ease;
}
.sb-new svg { display: none; }
.sb-new::before {
  content: "/";
  font-family: var(--mono);
  color: var(--accent);
}
.sb-new:hover {
  color: var(--text);
  border-color: var(--border-3);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.sb-label {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: lowercase;
  font-weight: 500;
  white-space: nowrap;
}
.sb-new .kbd {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  padding: 1px 5px;
}

.sb-section {
  padding: 10px 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 280ms cubic-bezier(.2,.8,.2,1);
}
.sb-section.inline {
  padding: 10px 10px 5px;
}
.sb-section-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.sb-section-title-btn {
  padding: 0;
  text-align: left;
  transition: color 0.14s ease;
}
.sb-section-title-btn:hover {
  color: var(--text);
}
.sb-section-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}
.sb-recent-section {
  padding-right: 4px;
}
.sb-section-toggle {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border-radius: var(--r-sm);
  text-align: left;
  color: var(--muted);
  transition: background 0.14s ease, color 0.14s ease;
}
.sb-section-toggle:hover,
.sb-section-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
}
.sb-section-toggle:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 1px;
}
.sb-section-toggle-label {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sb-section-toggle .sb-section-title {
  color: inherit;
}
.sb-section-toggle .sb-section-count {
  flex: 0 0 auto;
  line-height: 1;
}
.sb-section-toggle-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--dim);
  transition: transform 180ms ease, color 0.14s ease;
}
.sb-section-toggle:hover .sb-section-toggle-icon,
.sb-section-toggle:focus-visible .sb-section-toggle-icon {
  color: var(--text);
}
.sb-recent-section.is-collapsed .sb-section-toggle-icon {
  transform: rotate(-90deg);
}
.sb-list {
  flex: 1;
  position: relative;
  overflow-y: auto;
  padding: 0 8px 16px;
  transition: padding 280ms cubic-bezier(.2,.8,.2,1);
}
.sb-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--paper);
  box-shadow: inset 2px 0 0 var(--accent);
  opacity: 0;
  z-index: 0;
  transition: transform .42s cubic-bezier(.22,1,.36,1), height .42s cubic-bezier(.22,1,.36,1), width .42s cubic-bezier(.22,1,.36,1), opacity .2s ease;
  pointer-events: none;
}
.sb-nav-floaticon {
  position: absolute;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-2);
  opacity: 0;
  z-index: 1;
  transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .2s ease;
  pointer-events: none;
}
.app.sidebar-collapsed .sb-nav-floaticon { display: none; }
.sb-group { margin-bottom: 4px; }
.sb-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 0;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  transition: padding 280ms cubic-bezier(.2,.8,.2,1), background 0.12s ease, color 0.12s ease;
  z-index: 2;
}
.sb-group .sb-nav-item:first-of-type { border-top: 0; }
.sb-nav-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.sb-nav-item:hover {
  background: var(--mist);
  color: var(--text);
}
.sb-nav-item:hover .sb-nav-icon {
  color: var(--text);
  border-color: var(--border-3);
}
.sb-nav-item.active {
  color: var(--text);
  font-weight: 600;
  border-top-color: transparent;
}
.sb-nav-item.active:hover {
  background: transparent;
}
.sb-list:has(.sb-nav-item.active:hover) .sb-nav-indicator { background: var(--mist); }
.app:not(.sidebar-collapsed) .sb-nav-icon { opacity: 0; transition: opacity .18s ease; }
.app.sidebar-collapsed .sb-nav-icon { opacity: 1; }
.sb-nav-full { display: inline-block; }
.sb-nav-short { display: none; }
.sb-empty {
  padding: 10px 8px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.4;
}
.sb-group-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 8px 4px;
}
.sb-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 8px;
  padding: 10px 8px;
  border-radius: 0;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-2);
  width: 100%;
  text-align: left;
  transition: padding 280ms cubic-bezier(.2,.8,.2,1), background 0.12s ease;
}
.sb-group .sb-item:first-of-type { border-top: 0; }
.sb-item:hover { background: var(--mist); color: var(--text); }
.sb-item.active {
  background: var(--paper);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--accent);
}
.sb-item.active::before {
  content: "";
  position: absolute;
}
.sb-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-item-market {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sb-item-tk {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  grid-column: 1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-item.active .sb-item-tk { color: var(--accent); }
.sb-item-name {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-item-chg {
  font-family: var(--mono);
  font-size: 10px;
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 6px;
  background: var(--surface);
}
.sb-foot {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  transition: padding 280ms cubic-bezier(.2,.8,.2,1), gap 220ms ease;
}
.sb-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-2);
}
.sb-user {
  flex: 1;
  min-width: 0;
}
.sb-user-name { font-size: 12px; color: var(--text); }
.sb-user-org { font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.sb-foot-btn {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 4px;
  color: var(--muted);
}
.sb-foot-btn:hover { background: var(--surface-2); color: var(--text); }
.sidebar.collapsed-only { background: var(--bg); }
.sidebar.collapsed-only .collapsed-expand {
  margin: 0;
}
.app.sidebar-collapsed .sidebar {
  overflow: hidden;
}
.app.sidebar-collapsed .sb-brand {
  justify-content: center;
  gap: 0;
  padding: 14px 8px;
  border-bottom-color: transparent;
}
.sb-brand-name,
.sb-brand-tag,
.sb-label,
.sb-section-title,
.sb-empty,
.sb-item-main,
.sb-item-name,
.sb-item-chg,
.sb-user,
.sb-nav-full {
  max-width: 220px;
  transition: opacity 180ms ease, transform 220ms ease, max-width 260ms cubic-bezier(.2,.8,.2,1);
}
.app.sidebar-collapsed .sb-logo {
  width: 0;
  opacity: 0;
  transform: translateX(-6px) scale(0.9);
}
.app.sidebar-collapsed .sb-brand-name,
.app.sidebar-collapsed .sb-brand-tag,
.app.sidebar-collapsed .sb-label,
.app.sidebar-collapsed .sb-new .kbd,
.app.sidebar-collapsed .sb-section-title,
.app.sidebar-collapsed .sb-empty,
.app.sidebar-collapsed .sb-item-main,
.app.sidebar-collapsed .sb-item-name,
.app.sidebar-collapsed .sb-item-chg,
.app.sidebar-collapsed .sb-user,
.app.sidebar-collapsed .sb-nav-full {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-6px);
  white-space: nowrap;
}
.app.sidebar-collapsed .sb-new {
  margin: 0;
  padding: 0;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}
.app.sidebar-collapsed .sb-section,
.app.sidebar-collapsed .sb-section.inline {
  padding: 0;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}
.app.sidebar-collapsed .sb-list {
  flex: 0;
  padding: 0;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}
.app.sidebar-collapsed .sb-nav-full {
  display: inline-block;
}
.app.sidebar-collapsed .sb-nav-short {
  display: none;
}
.app.sidebar-collapsed .sb-item-tk {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}
.app.sidebar-collapsed .sb-foot {
  padding: 0;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .app,
  .sidebar,
  .sb-brand,
  .sb-logo,
  .sb-collapse,
  .sb-collapse-icon.left,
  .sb-new,
  .sb-section,
  .sb-section-toggle,
  .sb-section-toggle-icon,
  .sb-list,
  .sb-nav-indicator,
  .sb-nav-floaticon,
  .sb-nav-item,
  .sb-nav-icon,
  .sb-item,
  .sb-foot,
  .sb-brand-name,
  .sb-brand-tag,
  .sb-label,
  .sb-section-title,
  .sb-empty,
  .sidebar .sb-logo.pimi-mark .pimi-mark-svg,
  .sb-item-main,
  .sb-item-name,
  .sb-item-chg,
  .sb-user,
  .sb-nav-full {
    transition: none;
  }
  .sidebar .sb-home-link:hover .sb-logo.pimi-mark .pimi-mark-svg {
    transform: none;
  }
}

/* === MAIN === */
.main {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.main.scroll {
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.main.scroll .topbar {
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar {
  position: relative;
  height: 60px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 16px;
  background: rgba(246, 246, 248, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.crumbs .sep { color: var(--accent); }
.crumbs .crumb-root {
  color: var(--accent);
  font: inherit;
  border: none;
  border-radius: 4px;
  padding: 2px 4px;
  margin-left: -4px;
}
.crumbs .crumb-root:hover { background: var(--surface-2); }
.crumbs .group { color: var(--dim); cursor: default; }
.crumbs, .crumbs .cur, .crumbs button { text-transform: lowercase; }
.crumbs .cur { color: var(--text); font-family: var(--mono); }
.crumbs button {
  color: var(--muted);
  font: inherit;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}
.crumbs button:hover {
  color: var(--text);
  background: var(--surface-2);
}
.topbar-spacer { flex: 1; }
.topbar-actions {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  z-index: 20;
}
.topbar-actions .topbar-btn {
  white-space: nowrap;
}
.topbar-actions .nav-group-start {
  margin-left: 12px;
}
.topbar-navset {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.topbar-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 22px;
  background: var(--border-2);
}
.topbar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-right: 2px;
}
.topbar-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--up);
}
.topbar-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  animation: ex-live-pulse 1.8s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .topbar-live i {
    animation: none;
    box-shadow: 0 0 0 3px var(--up-dim);
  }
}
.topbar-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--text-2);
}
.topbar-clock small {
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.topbar-btn.ghost.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: transparent;
}
.topbar-btn.ghost.active:hover {
  color: var(--accent);
  background: var(--accent-dim);
}
@media (max-width: 1180px) {
  .topbar { --topbar-nav-width: 520px; }
  .topbar-status { display: none; }
}
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  width: 260px;
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  font-size: 12px;
  color: var(--muted);
}
.topbar-search input {
  min-width: 0;
  flex: 1;
  font-size: 12px;
  color: var(--text);
}
.topbar-search input::placeholder {
  color: var(--muted);
}
.sports-search-wrap {
  position: relative;
  flex: 0 0 auto;
}
.sports-search {
  position: relative;
  z-index: 13;
}
.sports-search-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(420px, calc(100vw - 40px));
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(15, 15, 25, 0.16);
  z-index: 30;
  padding: 6px;
}
.sports-search-result {
  width: 100%;
  display: grid;
  gap: 3px;
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--r);
}
.sports-search-result:hover {
  background: var(--surface-2);
}
.sports-search-teams {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
}
.sports-search-teams span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}
.sports-search-meta,
.sports-search-state {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.sports-search-state {
  padding: 10px;
}
.sports-search-state.warn {
  color: var(--warn);
}
.topbar-search .kbd {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  padding: 1px 5px;
}
.topbar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: background .18s cubic-bezier(.4,1.1,.4,1), border-color .18s cubic-bezier(.4,1.1,.4,1), box-shadow .18s cubic-bezier(.4,1.1,.4,1), transform .18s cubic-bezier(.4,1.1,.4,1), color .15s ease;
}
.topbar-btn:hover {
  color: var(--text);
  border-color: var(--border-3);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.topbar-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-line);
}
.topbar-btn:active { transform: translateY(.5px) !important; }
.topbar-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 8px rgba(37, 99, 235, 0.28);
}
.topbar-btn.primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 14px rgba(37, 99, 235, 0.36);
}
.topbar-btn.ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
  box-shadow: none;
}
.topbar-btn.ghost:hover {
  background: var(--bg-2);
  color: var(--text);
  transform: none;
}
.topbar-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 14px;
  margin-left: 4px;
}

/* === NAV TERMINAL === */
.pimi-terminal-shell {
  position: fixed;
  left: 248px;
  right: 0;
  bottom: 0;
  height: var(--pimi-terminal-open-height, clamp(160px, 28vh, 220px));
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: #0d1118;
  color: #d7dce7;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -22px 60px rgba(15, 23, 42, 0.22);
  transform: translateY(calc(100% - 38px));
  transition: left 280ms cubic-bezier(.2,.8,.2,1), transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
  font-family: var(--mono);
}
.app:has(.pimi-terminal-shell.open) .main {
  height: calc(100vh - var(--pimi-terminal-open-height, clamp(160px, 28vh, 220px)));
}
.app.sidebar-collapsed .pimi-terminal-shell {
  left: 44px;
}
.pimi-terminal-shell.open {
  transform: translateY(0);
}
.pimi-terminal-tab {
  height: 38px;
  flex: 0 0 38px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #171d27 0%, #121822 100%);
  color: #d7dce7;
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
}
.pimi-terminal-tab:hover {
  background: #1a2230;
}
.pimi-terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 4px rgba(12, 155, 84, 0.14);
}
.pimi-terminal-title {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pimi-terminal-path {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9aa7bd;
}
.pimi-terminal-shortcut {
  margin-left: auto;
  color: #7d8798;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  padding: 2px 6px;
}
.pimi-terminal-toggle {
  display: inline-flex;
  color: #9aa7bd;
  transition: transform 180ms ease;
}
.pimi-terminal-shell.open .pimi-terminal-toggle {
  transform: rotate(180deg);
}
.pimi-terminal-panel {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(90% 120% at 70% 0%, rgba(29, 78, 216, 0.12), transparent 56%),
    #0d1118;
}
.pimi-terminal-log {
  overflow: auto;
  padding: 8px 14px;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.pimi-terminal-line {
  display: grid;
  grid-template-columns: minmax(96px, max-content) 1fr;
  gap: 8px;
  padding: 1px 0;
  font-size: 10.5px;
  line-height: 1.25;
  color: #c7cfdd;
}
.pimi-terminal-line.system .pimi-terminal-prompt {
  color: #60a5fa;
}
.pimi-terminal-line.success .pimi-terminal-prompt,
.pimi-terminal-line.success span:last-child {
  color: #86efac;
}
.pimi-terminal-line.error .pimi-terminal-prompt,
.pimi-terminal-line.error span:last-child {
  color: #fbbf24;
}
.pimi-terminal-prompt {
  color: #7d8798;
  white-space: nowrap;
}
.pimi-terminal-cmd {
  color: #ffffff;
}
.pimi-terminal-input {
  display: grid;
  grid-template-columns: max-content auto 1fr;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 13, 0.56);
  color: #9aa7bd;
  font-size: 11px;
}
.pimi-terminal-input span {
  max-width: min(420px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pimi-terminal-input b {
  color: var(--accent-2);
}
.pimi-terminal-input input {
  width: 100%;
  color: #ffffff;
  font: inherit;
}
.pimi-terminal-input input::placeholder {
  color: #667085;
}
@media (max-width: 700px) {
  .pimi-terminal-shell {
    left: 0 !important;
  }
  .pimi-terminal-shortcut {
    display: none;
  }
}

/* === HOME === */
.home-wrap {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.home-inner {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}
.home-inner.searching-mode {
  min-height: calc(100vh - 45px);
  display: grid;
  place-items: center;
}
.home-inner.results-mode {
  max-width: 1120px;
  padding-top: 52px;
}
.home-hello {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 auto 10px;
  padding: 0 0.12em 0.08em;
  color: var(--text);
  overflow: visible;
}
.home-hello em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.14em;
  margin-right: -0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.home-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 36px;
  letter-spacing: -0.005em;
}
.home-sub .mono { color: var(--text-2); font-size: 12px; }

.searching-shell {
  width: min(520px, 100%);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.searching-shell .pimi-loader { margin-bottom: 26px; }
.searching-title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.searching-query {
  max-width: 520px;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 14px;
}
.searching-sub {
  max-width: 480px;
  margin-top: 12px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.search-results {
  width: 100%;
}
.search-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.search-results-head h1 {
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.search-results-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.search-reset {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
}
.search-reset:hover {
  border-color: var(--accent-line);
  color: var(--text);
}
.market-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.market-result-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.market-result-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-1px);
}
.market-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.market-result-tk {
  min-width: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-result-venue {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.market-result-name {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: clamp(15px, 0.95vw, 17px);
  line-height: 1.32;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.market-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.market-result-meta b {
  color: var(--up);
  font-weight: 700;
}
.market-result-reason {
  margin-top: 10px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.45;
}
@media (max-width: 1180px) {
  .market-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .market-result-grid { grid-template-columns: 1fr; }
  .search-results-head { flex-direction: column; }
}

.composer {
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 14px 16px 10px;
  transition: border-color 0.2s ease;
  position: relative;
}
.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.composer::before {
  content: "\203A";
  position: absolute;
  left: 16px;
  top: 13px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  pointer-events: none;
}
.composer.sports-ask-box textarea { min-height: 24px; }
.composer textarea {
  width: 100%;
  resize: none;
  font-size: 13.5px;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  min-height: 60px;
  padding-left: 18px;
  padding-right: 44px;
  line-height: 1.5;
  font-family: var(--mono);
}
.composer textarea::placeholder { color: var(--dim); }
.composer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 6px;
}
.composer-tool {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--border);
}
.composer-tool:hover { color: var(--text); border-color: var(--border-3); }
.composer-tool.active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.composer-spacer { flex: 1; }
.composer-send {
  width: 32px; height: 32px;
  background: var(--accent);
  color: #ffffff;
  display: grid; place-items: center;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 8px rgba(37, 99, 235, 0.28);
  transition: all .18s cubic-bezier(.4,1.1,.4,1);
}
.composer-send:hover { background: var(--blue-deep); transform: translateY(-1px); }
.composer-send:disabled { background: var(--border-2); color: var(--dim); cursor: not-allowed; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
  transition: all 0.15s ease;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.chip:hover { border-color: var(--border-3); background: var(--surface-2); color: var(--text); }
.chip .chip-tk { font-family: var(--mono); font-size: 10.5px; color: var(--accent); font-weight: 600; }

/* === HOME - live market tape === */
.mkt-tape {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 8px 5px 8px 13px;
  margin-top: -8px;
  margin-bottom: 30px;
  overflow: hidden;
}
.mkt-tape-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 15px;
  margin-right: 5px;
  border-right: 1px solid var(--border);
}
.mkt-tape-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  animation: tape-pulse 2.4s ease-in-out infinite;
}
@keyframes tape-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.mkt-tape-track {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent);
}
.mkt-tape-scroll {
  display: flex;
  width: max-content;
  animation: tape-scroll 64s linear infinite;
}
.mkt-tape-track:hover .mkt-tape-scroll { animation-play-state: paused; }
.mkt-tape-run {
  display: flex;
  flex-shrink: 0;
}
@keyframes tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mkt-tape-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-right: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
}
.mkt-tape-item:hover .mkt-tape-tk { color: var(--accent); }
.mkt-tape-tk {
  color: var(--text-2);
  font-weight: 600;
  transition: color 0.15s ease;
}
.mkt-tape-prob { color: var(--text); }
.mkt-tape-delta { font-size: 11.5px; }
.mkt-tape-delta.up { color: var(--up); }
.mkt-tape-delta.down { color: var(--down); }
@media (prefers-reduced-motion: reduce) {
  .mkt-tape-scroll { animation: none; }
}

/* === HOME - hero kicker === */
.home-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.home-kicker-sep {
  width: 1px;
  height: 11px;
  background: var(--border-3);
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 48px;
}
.home-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.home-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.home-card-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-card-link {
  font-size: 11px; color: var(--muted);
  font-family: var(--mono);
}
.home-card-link:hover { color: var(--accent); }
.movers-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 12px;
}
.movers-row:last-child { border-bottom: none; }
.movers-row .tk { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.movers-row .nm { color: var(--muted); font-size: 11px; }
.movers-row .px { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.movers-row .ch { font-family: var(--mono); font-size: 11px; }

/* === ANALYSIS LAYOUT === */
.analysis {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
}
.an-head {
  border-bottom: 1px solid var(--border);
  padding: 16px 22px;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) auto;
  align-items: start;
  gap: 24px;
  background: var(--bg);
  flex-shrink: 0;
}
.an-head-id {
  display: flex; align-items: flex-start; gap: 12px;
}
.an-head-logo {
  width: 44px; height: 44px;
  border-radius: 8px;
}
.an-market-logo {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.06);
  flex: 0 0 auto;
  overflow: hidden;
}
.an-market-logo.has-image {
  width: clamp(112px, 10vw, 150px);
  height: 50px;
  padding: 0;
  border-radius: 14px;
  background: #ffffff;
}
.an-market-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.an-head-tk {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.an-head-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 4px;
  max-width: 780px;
}
.an-head-sub {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.an-head-meta {
  display: flex; gap: 12px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.an-head-meta span { display: flex; align-items: center; gap: 4px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--up); display: inline-block; }
.dot.dim { background: var(--dim); }
.an-head-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.an-head-px {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.an-head-chg {
  font-family: var(--mono);
  font-size: 13px;
  display: flex; gap: 8px;
  margin-top: 6px;
}
.an-head-actions {
  display: flex; gap: 8px;
  align-items: center;
  border-left: 1px solid var(--border);
  padding-left: 20px;
  margin-left: 4px;
  align-self: center;
}

.an-body {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  overflow: hidden;
  height: 100%;
}
.an-col {
  overflow-y: auto;
  height: 100%;
}
.an-col.left { border-right: 1px solid var(--border); }
.an-col.right { border-left: 1px solid var(--border); }
.an-col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px;
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 2;
}
.an-col-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.an-col-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}

/* Financials list */
.fin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.fin-row.tall { padding: 14px 14px; }
.fin-label {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fin-sub {
  font-size: 10px;
  color: var(--dim);
  font-family: var(--mono);
  margin-top: 2px;
}
.fin-val {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: right;
}
.fin-val.lg { font-size: 22px; }
.fin-chg {
  font-family: var(--mono);
  font-size: 10.5px;
  text-align: right;
  margin-top: 2px;
}
.fin-spark {
  grid-column: 1 / -1;
  margin-top: 6px;
  height: 22px;
}

/* Middle: chart */
.chart-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
.chart-controls {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.tf-group {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-2);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
  overflow: visible;
}
.tf-btn {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  border-right: 0;
  border-radius: 7px;
  background: transparent;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.tf-btn:last-child { border-right: none; }
.tf-btn:hover { color: var(--text-2); }
.tf-btn.active {
  color: var(--accent);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);
}
.chart-stat {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.chart-stat-label {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.chart-stat-val {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.chart-stat-val.mono { font-family: var(--mono); font-size: 13px; font-weight: 500; }

.chart-area {
  flex-shrink: 0;
  padding: 8px 22px 0;
  position: relative;
  min-height: 380px;
}
.chart-svg { width: 100%; height: 380px; display: block; }
.chart-after {
  padding: 16px 22px 24px;
}

.extras {
  border-top: 1px solid var(--border);
  padding: 0 22px 32px;
}
.extras-tabs {
  display: inline-flex;
  gap: 26px;
  border-bottom: 1px solid var(--border);
  padding-top: 16px;
  margin: 0 -22px 0;
  padding-left: 22px;
  padding-right: 22px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.extras-tab {
  padding: 11px 1px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  gap: 6px;
}
.extras-tab:hover { color: var(--text); }
.extras-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.extras-tab .ct {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  background: var(--surface-2);
  border-radius: 3px;
  padding: 1px 5px;
}
.extras-tab.active .ct { color: var(--accent); background: var(--accent-dim); }

.extras-body { padding: 20px 0; }

/* Ratio list (right) */
.ratio-group { border-bottom: 1px solid var(--border); padding: 8px 0 12px; }
.ratio-head {
  padding: 10px 14px 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.ratio-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 6px 14px;
  gap: 10px;
  font-size: 12px;
}
.ratio-row:hover { background: var(--surface); }
.ratio-name {
  color: var(--text-2);
  font-size: 11.5px;
}
.ratio-name .ratio-key {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  text-transform: uppercase;
  margin-left: 4px;
}
.ratio-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ratio-bench {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  width: 64px;
  text-align: right;
}
.ratio-bench .gt { color: var(--up); }
.ratio-bench .lt { color: var(--down); }

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.table th {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.table th:first-child { text-align: left; }
.table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  text-align: right;
  vertical-align: middle;
}
.table td:first-child { text-align: left; }
.table tr:hover td { background: var(--surface); }
.table .tk {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.table .name { color: var(--muted); font-size: 10.5px; margin-left: 8px; }
.table .me { color: var(--accent); }
.table .me .tk { color: var(--accent); }

/* Alerts table — fit within page width, no horizontal overflow */
.table-alerts { table-layout: fixed; width: 100%; }
.table-alerts th, .table-alerts td { padding: 9px 7px; overflow: hidden; }
.table-alerts th:first-child, .table-alerts td:first-child { padding-left: 2px; }
.table-alerts td:first-child {
  white-space: nowrap;
  text-overflow: ellipsis;
}
.table-alerts td:first-child .name {
  display: inline-block;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.table-alerts td:nth-child(3) { white-space: normal; text-wrap: pretty; }
.table-alerts .alert-actions { width: 40px; text-align: center; padding-right: 2px; }

.cal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cal-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--surface);
}
.cal-date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cal-title { font-size: 12.5px; margin-top: 4px; color: var(--text); }
.cal-stats { display: flex; gap: 14px; margin-top: 8px; }
.cal-stat { display: flex; flex-direction: column; }
.cal-stat-lbl { font-family: var(--mono); font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cal-stat-val { font-family: var(--serif); font-size: 14px; margin-top: 2px; }

.target-bar-wrap { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.target-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.target-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
}
.target-card-lbl { font-family: var(--mono); font-size: 9.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.target-card-val { font-family: var(--serif); font-size: 22px; margin-top: 4px; letter-spacing: -0.01em; }
.target-card-sub { font-family: var(--mono); font-size: 10.5px; margin-top: 2px; }

.target-scale {
  position: relative;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}
.target-scale .marker {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.target-scale .marker-lbl {
  position: absolute;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
}

/* === SENTIMENT === */
.sent-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.sent-hero {
  padding: 22px 26px 20px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.sent-hero-l h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.sent-hero-l .sub {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12.5px;
}
.sent-meter {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  min-width: 420px;
}
.sent-gauge { position: relative; width: 96px; height: 96px; }
.sent-gauge-num {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.sent-meter-rt { display: flex; flex-direction: column; gap: 6px; }
.sent-meter-title { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.sent-meter-lbl { font-family: var(--serif); font-size: 18px; color: var(--up); }
.sent-meter-detail { font-size: 11.5px; color: var(--muted); }
.sent-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.sent-bar {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px 8px;
}
.sent-bar-lbl { font-family: var(--mono); font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.sent-bar-val { font-family: var(--serif); font-size: 14px; margin-top: 2px; }
.sent-bar-track { height: 3px; background: var(--border); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.sent-bar-fill { height: 100%; border-radius: 2px; }

.sent-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 2;
}
.sent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface);
}
.sent-pill.active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.sent-pill .ct { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.sent-pill.active .ct { color: var(--accent); }
.sent-toolbar-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.sent-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-top: 0;
}
.sent-col-h {
  padding: 14px 22px 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.sent-col {
  border-right: 1px solid var(--border);
}
.sent-col:last-child { border-right: none; }
.news-item {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 16px;
  align-items: start;
}
.news-item:hover { background: var(--surface); }
.news-meta {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  align-items: center;
}
.news-source {
  color: var(--accent);
  font-weight: 600;
}
.news-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.3;
}
.news-snippet {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.news-thumb {
  height: 64px;
  border-radius: 5px;
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 6px, var(--surface) 6px 12px);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.news-score {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.news-score .v { display: block; font-family: var(--serif); font-size: 14px; margin-top: 2px; }

.x-item {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
}
.x-item:hover { background: var(--surface); }
.x-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a32, #15151c);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
}
.x-head {
  display: flex; align-items: baseline; gap: 6px; font-size: 12px;
}
.x-name { font-weight: 600; color: var(--text); }
.x-handle { color: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.x-time { color: var(--dim); font-family: var(--mono); font-size: 10.5px; margin-left: auto; }
.x-text { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.x-text .cash { color: var(--accent); font-weight: 600; }
.x-stats {
  display: flex; gap: 16px; margin-top: 8px;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
}
.x-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
}
.x-score.bull { color: var(--up); background: var(--up-dim); }
.x-score.bear { color: var(--down); background: var(--down-dim); }
.x-score.neu { color: var(--neu); background: rgba(161, 161, 170, 0.1); }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  cursor: pointer;
  user-select: none;
  background: var(--surface);
  color: var(--text-2);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: background .18s cubic-bezier(.4,1.1,.4,1), border-color .18s cubic-bezier(.4,1.1,.4,1), box-shadow .18s cubic-bezier(.4,1.1,.4,1), transform .18s cubic-bezier(.4,1.1,.4,1), color .15s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover {
  color: var(--text);
  border-color: var(--border-3);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-line);
}
.btn:active { transform: translateY(.5px) !important; }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn:disabled:hover {
  color: var(--text-2);
  border-color: var(--border-2);
  background: var(--surface);
}
.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 8px rgba(37, 99, 235, 0.28);
}
.btn.primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 14px rgba(37, 99, 235, 0.36);
}
.btn.warm {
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  box-shadow: none;
}
.btn.warm:hover { background: rgba(37, 99, 235, 0.17); transform: none; }
.btn.ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--bg-2);
  color: var(--text);
  transform: none;
}
.btn.danger {
  background: var(--down);
  color: #fff;
  border-color: var(--down);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 8px rgba(220, 38, 38, 0.28);
}
.btn.danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 14px rgba(220, 38, 38, 0.32);
}
.btn.sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 7px;
}
.btn.sm svg { width: 13px; height: 13px; }
.btn.lg {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: 11px;
}
.btn.lg svg { width: 17px; height: 17px; }
.btn.icon {
  width: 36px;
  padding: 0;
}
.btn.icon.sm { width: 28px; }
.btn.icon.lg { width: 44px; }
.btn.block { width: 100%; }
.btn[data-loading] {
  color: transparent !important;
  pointer-events: none;
}
.btn[data-loading] > * { visibility: hidden; }
.btn[data-loading]::after {
  content: "";
  position: absolute;
  visibility: visible;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  color: #fff;
  animation: btn-spin .6s linear infinite;
}
.btn.ghost[data-loading]::after,
.btn.warm[data-loading]::after {
  color: var(--accent);
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Canonical modal system from the Pimi branding guide. */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-wrap[data-open] {
  pointer-events: auto;
  opacity: 1;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 16px rgba(15, 23, 42, 0.08), 0 16px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transform: translateY(18px) scale(.96);
  transition: transform .42s cubic-bezier(.4,1.2,.4,1), opacity .22s ease;
  opacity: 0;
}
.modal-wrap[data-open] .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal--sm { max-width: 360px; }
.modal--lg { max-width: 640px; }
.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 0;
}
.modal-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  background: var(--modal-tint, var(--accent-dim));
  color: var(--modal-accent, var(--accent));
  box-shadow: inset 0 0 0 1px var(--modal-ring, rgba(37, 99, 235, 0.18)), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.modal-icon svg {
  width: 18px;
  height: 18px;
}
.modal-head-text {
  flex: 1;
  min-width: 0;
}
.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.modal-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
  text-wrap: pretty;
}
.modal-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  border-radius: 8px;
  margin: -2px -4px 0 0;
  transition: background .15s, color .15s;
}
.modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
}
.modal-close svg {
  width: 14px;
  height: 14px;
}
.modal-body {
  padding: 14px 20px 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}
.modal-body p { margin: 0 0 10px; }
.modal-body p:last-child { margin: 0; }
.modal-body + .modal-footer { border-top: 1px solid var(--border); }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
}
.modal-footer .footer-start { margin-right: auto; }
.modal-wrap--danger {
  --modal-accent: #dc2626;
  --modal-tint: rgba(220, 38, 38, 0.10);
  --modal-ring: rgba(220, 38, 38, 0.20);
}
.modal-wrap--warning {
  --modal-accent: #d97706;
  --modal-tint: rgba(217, 119, 6, 0.10);
  --modal-ring: rgba(217, 119, 6, 0.22);
}
.modal-wrap--success {
  --modal-accent: #16a34a;
  --modal-tint: rgba(22, 163, 74, 0.10);
  --modal-ring: rgba(22, 163, 74, 0.20);
}

.market-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  vertical-align: middle;
}
.market-actions.compact {
  justify-content: flex-end;
}
.market-action-btn {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid var(--border-2);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
  transition: background .18s cubic-bezier(.4,1.1,.4,1), border-color .18s cubic-bezier(.4,1.1,.4,1), box-shadow .18s cubic-bezier(.4,1.1,.4,1), transform .18s cubic-bezier(.4,1.1,.4,1), color .15s ease;
}
.market-action-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.market-action-btn.selected {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
  box-shadow: none;
  font-weight: 600;
}
.market-action-btn.watch.selected svg path {
  fill: currentColor;
}
.market-action-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}
.market-alert-wrap {
  position: relative;
  display: inline-flex;
}
.market-alert-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 158px;
  padding: 8px;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.10);
}
.market-alert-title {
  display: block;
  padding: 2px 6px 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.market-alert-menu button {
  width: 100%;
  padding: 7px 9px;
  border-radius: 7px;
  text-align: left;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}
.market-alert-menu button:hover {
  background: var(--surface-2);
  color: var(--text);
}
.alert-banners {
  position: fixed;
  top: 12px;
  left: max(260px, calc(env(safe-area-inset-left) + 12px));
  right: 12px;
  z-index: 80;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.sidebar-collapsed .alert-banners {
  left: 56px;
}
.alert-banner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: var(--r-md);
  background: rgba(255, 251, 235, 0.98);
  color: var(--text);
  box-shadow: 0 12px 36px rgba(15, 15, 25, 0.12);
  cursor: pointer;
}
.alert-banner b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}
.alert-banner small {
  display: block;
  color: var(--warn);
  font-family: var(--mono);
  font-size: 9.5px;
  margin-top: 2px;
}
.alert-banner-tk {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.alert-banner-close {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
}
.alert-banner-close:hover {
  background: rgba(217, 119, 6, 0.12);
  color: var(--warn);
}

.pimi-snackbar-host {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding: 22px;
  width: min(384px, 100vw);
  pointer-events: none;
}
.pimi-snackbar {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 340px;
  max-width: 100%;
  padding: 14px 13px 14px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  font-family: var(--sans);
}
.pimi-snackbar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--snk-accent);
}
.pimi-snackbar.info,
.pimi-snackbar[data-variant="info"] {
  --snk-accent: #2563eb;
  --snk-tint: rgba(37, 99, 235, 0.09);
  --snk-ring: rgba(37, 99, 235, 0.18);
}
.pimi-snackbar.success,
.pimi-snackbar[data-variant="success"] {
  --snk-accent: #16a34a;
  --snk-tint: rgba(22, 163, 74, 0.10);
  --snk-ring: rgba(22, 163, 74, 0.20);
}
.pimi-snackbar.warn,
.pimi-snackbar.warning,
.pimi-snackbar[data-variant="warning"] {
  --snk-accent: #d97706;
  --snk-tint: rgba(217, 119, 6, 0.10);
  --snk-ring: rgba(217, 119, 6, 0.22);
}
.pimi-snackbar.error,
.pimi-snackbar.danger,
.pimi-snackbar[data-variant="error"] {
  --snk-accent: #dc2626;
  --snk-tint: rgba(220, 38, 38, 0.10);
  --snk-ring: rgba(220, 38, 38, 0.20);
}
.pimi-snackbar.neutral,
.pimi-snackbar[data-variant="neutral"] {
  --snk-accent: #6a6a74;
  --snk-tint: rgba(106, 106, 116, 0.09);
  --snk-ring: rgba(106, 106, 116, 0.18);
}
.pimi-snackbar-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  background: var(--snk-tint);
  color: var(--snk-accent);
  box-shadow: inset 0 0 0 1px var(--snk-ring), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.pimi-snackbar-icon svg {
  width: 15px;
  height: 15px;
}
.pimi-snackbar-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.pimi-snackbar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.pimi-snackbar-msg {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  text-wrap: pretty;
}
.pimi-snackbar-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}
.pimi-snackbar-action,
.pimi-snackbar button {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--snk-ring);
  background: var(--snk-tint);
  color: var(--snk-accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  transition: background .15s ease;
}
.pimi-snackbar-action:hover,
.pimi-snackbar button:hover {
  background: color-mix(in srgb, var(--snk-tint) 120%, white);
}
.pimi-snackbar-prog {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--snk-accent);
  opacity: 0.5;
  transform-origin: left;
  animation: snk-prog linear forwards;
}
@keyframes snk-in-right {
  from { opacity: 0; transform: translateX(28px) scale(.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes snk-prog {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.pimi-snackbar.anim-in {
  animation: snk-in-right .5s cubic-bezier(.4,1.2,.4,1) both;
}

/* Chart tooltip */
.chart-tooltip {
  position: absolute;
  background: var(--elevated);
  border: 1px solid var(--border-3);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text);
  pointer-events: none;
  font-family: var(--mono);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 4;
}
.chart-tooltip .date { color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.chart-tooltip .px { font-family: var(--serif); font-size: 14px; }

/* === CROSS-VENUE TABLE === */
.venue-block {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.venue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.venue-table th {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  padding: 9px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  white-space: nowrap;
}
.venue-table th:first-child { text-align: left; }
.venue-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  text-align: right;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.venue-table td:first-child { text-align: left; }
.venue-table tr:last-child td { border-bottom: none; }
.venue-table tr:hover td { background: var(--surface-2); }
.venue-table tr.agg td {
  background: var(--surface-2);
  border-top: 1px solid var(--accent-line);
  font-weight: 600;
  color: var(--text);
}
.venue-table tr.agg:hover td { background: var(--surface-2); }
.venue-table tr.agg .agg-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.venue-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.venue-logo {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.venue-logo.has-image {
  width: 78px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #ffffff;
}
.venue-logo.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.venue-name {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--text);
  font-size: 12.5px;
}
.venue-url {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
}
.cell-yes { color: var(--up); }
.cell-no  { color: var(--down); }

/* === ANALYSIS NEW LAYOUT === */
.analysis {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  overflow: visible;
}
.an-body-3 {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  align-items: start;
}
.an-body-3 > .an-col {
  height: auto;
  overflow: visible;
}
.an-body-3 .an-col-head {
  position: sticky;
  top: 48px;
  background: var(--bg);
  z-index: 5;
}
.an-body-3 .sent-panel {
  height: auto;
  overflow: visible;
}
.an-body-3 .sent-tabs {
  position: sticky;
  top: 48px;
  z-index: 5;
}
.an-body-3 .extras-tabs {
  position: sticky;
  top: 48px;
  z-index: 5;
}

/* === EMBEDDED SENTIMENT PANEL === */
.sent-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
.sent-panel-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.sent-panel-head-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.sent-gauge-mini {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
}
.sent-mini-bars { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.sent-mini-bar { display: grid; grid-template-columns: 50px 1fr 32px; gap: 8px; align-items: center; font-size: 10.5px; }
.sent-mini-bar-lbl { font-family: var(--mono); font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.sent-mini-bar-track { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.sent-mini-bar-fill  { height: 100%; border-radius: 2px; }
.sent-mini-bar-val   { font-family: var(--mono); font-size: 10.5px; text-align: right; font-variant-numeric: tabular-nums; }

.sent-tabs {
  display: inline-flex;
  gap: 26px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 138px;
  z-index: 2;
}
.sent-tab {
  flex: 0 0 auto;
  padding: 11px 1px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--sans);
}
.sent-tab:hover { color: var(--text); }
.sent-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.sent-tab .ct { font-family: var(--mono); font-size: 9.5px; color: var(--dim); }
.sent-tab.active .ct { color: var(--accent); }

.sent-state {
  flex: 1 1 auto;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}
.sent-state.warn {
  color: var(--warn);
}

.sent-list { padding: 4px 0; }
.sent-news-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 32px;
  gap: 10px;
  align-items: start;
}
.sent-news-item:hover { background: var(--surface); }
.sent-news-meta { display: flex; gap: 6px; align-items: center; margin-bottom: 5px; font-family: var(--mono); font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sent-news-source { color: var(--accent); font-weight: 600; }
.sent-news-title  { font-family: var(--serif); font-size: 12.5px; line-height: 1.35; color: var(--text); margin: 0; font-weight: 500; }
.sent-news-score  { text-align: center; font-family: var(--mono); font-size: 10.5px; font-variant-numeric: tabular-nums; padding: 4px 0; border-radius: 4px; }
.sent-news-score.bull { color: var(--up);   background: var(--up-dim); }
.sent-news-score.bear { color: var(--down); background: var(--down-dim); }
.sent-news-score.neu  { color: var(--neu);  background: rgba(161,161,170,0.1); }

.sent-x-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.sent-x-item:hover { background: var(--surface); }
.sent-x-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 11.5px; }
.sent-x-head .x-name { font-weight: 600; color: var(--text); }
.sent-x-head .x-handle { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.sent-x-head .x-time { color: var(--dim); font-family: var(--mono); font-size: 10px; margin-left: auto; }
.sent-x-text { font-size: 12px; color: var(--text-2); line-height: 1.45; }
.sent-x-text .cash { color: var(--accent); font-weight: 600; }
.sent-x-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}
.sent-x-badge.bull { color: var(--up);   background: var(--up-dim); }
.sent-x-badge.bear { color: var(--down); background: var(--down-dim); }
.sent-x-badge.neu  { color: var(--neu);  background: rgba(161,161,170,0.1); }

/* Tighten the left "signal" column */
.an-col.signal-col { padding-bottom: 24px; }

/* === TOP VOLUME / TOP PREDICTORS (home) === */
.tv-row {
  display: grid;
  grid-template-columns: minmax(160px, 230px) minmax(160px, 1fr) 84px 70px 64px;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  font-size: 12px;
  text-align: left;
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  width: 100%;
}
.tv-row:last-child { border-bottom: none; }
.tv-row:hover .tv-name { color: var(--text); }
.tv-row .tv-tk {
  min-width: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-row .tv-name {
  min-width: 0;
  color: var(--text);
  font-size: clamp(13.5px, 0.9vw, 15.5px);
  line-height: 1.35;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.tv-row .tv-spark { display: block; min-width: 0; opacity: 0.92; }
.tv-row:hover .tv-spark { opacity: 1; }
.tv-row .tv-prob { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.tv-row .tv-yes  { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--text); text-align: right; }
.tv-row .tv-delta { font-family: var(--mono); font-size: 10px; }
.tv-row .tv-delta.up { color: var(--up); }
.tv-row .tv-delta.down { color: var(--down); }
.tv-row .tv-vol  { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); text-align: right; }
.tv-row .tv-vn   { font-family: var(--mono); font-size: 10px; color: var(--muted); }

.pred-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  text-align: left;
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  width: 100%;
}
.pred-row:last-child { border-bottom: none; }
.pred-rank { font-family: var(--mono); font-size: 11px; color: var(--dim); text-align: center; }
.pred-name { display: flex; flex-direction: column; gap: 1px; }
.pred-handle { font-size: 12px; color: var(--text); font-weight: 500; }
.pred-addr { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.pred-pnl  { font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--up); text-align: right; line-height: 1; }
.pred-pnl-sub { font-family: var(--mono); font-size: 9.5px; color: var(--muted); text-align: right; margin-top: 2px; }
.pred-rate { font-family: var(--mono); font-size: 11px; color: var(--text); text-align: right; width: 70px; }
.pred-rate-sub { font-family: var(--mono); font-size: 9.5px; color: var(--muted); }

/* === CATEGORY CARDS === */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 392px;
  padding: 24px 22px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .18s, box-shadow .2s, transform .2s cubic-bezier(.4,1.1,.4,1);
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--cat-accent, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.cat-card:hover {
  border-color: var(--border-3);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07), 0 18px 40px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 6px 5px 5px;
  flex-shrink: 0;
  background: var(--surface) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.cat-icon svg {
  width: 18px;
  height: 18px;
}
.cat-icon span {
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}
.cat-icon.big { width: 56px; height: 56px; border-radius: 10px; padding: 8px 6px 6px; }
.cat-card-meta { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.cat-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--text);
  white-space: normal;
  overflow-wrap: normal;
}
.cat-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: normal;
}
.cat-headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.cat-headline-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.cat-headline-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.cat-substats {
  display: flex;
}
.cat-substats > div {
  flex: 1;
  padding: 0 16px;
  border-left: 1px solid var(--border);
}
.cat-substats > div:first-child { padding-left: 0; border-left: 0; }
.cat-substats span {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1;
}
.cat-substats small {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.cat-stat-lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cat-stat-val {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cat-stat-val.big { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.cat-mkts {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.cat-mkts-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2px;
}
.cat-mkt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px 32px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.cat-mkt:first-of-type { border-top: 0; }
.cat-mkt-name {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.cat-mkt-bar {
  height: 5px;
  border-radius: 3px;
  background: var(--faint);
  overflow: hidden;
}
.cat-mkt-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--cat-accent, var(--accent));
  opacity: 0.9;
}
.cat-mkt-yes {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}
.cat-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.cat-cta i { font-style: normal; transition: transform .2s ease; }
.cat-card:hover .cat-cta i { transform: translateX(4px); }

/* === CATEGORIES PAGE === */
.cat-page { padding: 0 0 48px; }
.cat-page-hero {
  padding: 36px 28px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.cat-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cat-page-hero h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.cat-page-hero p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  max-width: 640px;
}
.cat-page-stats {
  display: flex;
  gap: 28px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.cat-page-stats .mono {
  font-family: var(--mono);
  color: var(--text);
  margin-right: 4px;
}
.cat-page > .cat-grid {
  padding: 0 28px;
}
.cat-detail-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.cat-detail-hero h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cat-detail-stats {
  display: flex;
  gap: 20px;
  margin-left: 12px;
}
.cat-detail-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--border);
  padding-left: 18px;
}

/* === EXCHANGES PAGE === */
.exchange-page {
  padding: 0 0 48px;
}
.exchange-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 36px 28px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.exchange-hero-logo {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
}
.exchange-hero-logo.has-image {
  padding: 9px;
  background: #fff;
}
.exchange-hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.exchange-hero h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.exchange-hero p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  max-width: 720px;
}
.exchange-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.exchange-hero-meta > span {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.exchange-section {
  padding: 0 28px 28px;
}
.exchange-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.exchange-section .label {
  margin-bottom: 12px;
}
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 18px;
}
.exchange-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 470px;
  padding: 28px 26px 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .18s, box-shadow .2s, transform .2s cubic-bezier(.4,1.1,.4,1);
}
.exchange-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.exchange-card:hover,
.exchange-card.active {
  border-color: var(--border-3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07), 0 18px 40px rgba(15, 23, 42, 0.06);
}
.exchange-card:hover::before,
.exchange-card.active::before { transform: scaleX(1); }

.exchange-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.exchange-logo {
  width: 124px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 8px 16px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}
.exchange-logo.has-image { background: #fff; }
.exchange-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}
.exchange-access {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.exchange-access i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
}
.exchange-access.live {
  border-color: rgba(22, 163, 74, 0.3);
  color: var(--up);
}
.exchange-access.live i {
  animation: ex-live-pulse 1.8s ease-out infinite;
}
@keyframes ex-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .exchange-access.live i { animation: none; box-shadow: 0 0 0 3px var(--up-dim); }
}

.exchange-name {
  color: var(--text);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.exchange-location {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.exchange-description {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
  margin: -3px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.exchange-headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.exchange-headline-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.exchange-headline-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.exchange-substats {
  display: flex;
}
.exchange-substats div {
  flex: 1;
  padding: 0 14px;
  border-left: 1px solid var(--border);
}
.exchange-substats div:first-child {
  padding-left: 0;
  border-left: 0;
}
.exchange-substats span {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1;
}
.exchange-substats small {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.exchange-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.exchange-foot-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.exchange-foot-row span {
  flex: 0 0 auto;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.exchange-foot-row strong {
  text-align: right;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.exchange-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.exchange-types span {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.exchange-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.exchange-cta i {
  font-style: normal;
  transition: transform .2s ease;
}
.exchange-card:hover .exchange-cta i,
.exchange-card.active .exchange-cta i { transform: translateX(4px); }
.muted-section {
  opacity: 0.82;
}
.exchange-markets {
  padding: 0 28px 48px;
}
.exchange-market-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.exchange-market-head h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}
.exchange-page-note {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.exchange-table {
  min-width: 1160px;
}
.exchange-filters {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  flex-wrap: wrap;
  padding: 2px 0 16px;
}
.exchange-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.exchange-filter-label {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.tf-group-scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tf-group-scroll::-webkit-scrollbar { display: none; }
.tf-group-scroll .tf-btn { white-space: nowrap; }
.exchange-filter-result {
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.exchange-filter-result .mono { color: var(--text); font-weight: 600; }
.ex-type {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ex-prob {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 56px;
}
.ex-prob-yes {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--up);
}
.ex-prob-bar {
  height: 4px;
  border-radius: 3px;
  background: var(--faint);
  overflow: hidden;
}
.ex-prob-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--up);
  opacity: 0.85;
}
.ex-calc-col {
  width: 176px;
  min-width: 176px;
  text-align: center !important;
}
.exchange-market-name {
  text-align: left !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
  font-size: clamp(13.5px, 0.85vw, 15.5px) !important;
  line-height: 1.32;
  font-weight: 500;
  min-width: 320px;
  white-space: normal !important;
}
.exchange-pagination {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-top: 0;
  background: var(--surface);
}
.exchange-pagination-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.exchange-pagination-copy strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.exchange-pagination-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.exchange-pagination-controls label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.exchange-pagination-controls select {
  min-width: 92px;
  border: 1px solid var(--border-2);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  padding: 6px 28px 6px 8px;
  font-family: var(--mono);
  font-size: 12px;
}
.category-market-name {
  text-align: left !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
  font-size: clamp(13.5px, 0.85vw, 15.5px) !important;
  line-height: 1.38;
  font-weight: 500;
  min-width: 420px;
  max-width: 760px;
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
}
.cat-row-calc-col {
  width: 176px;
  min-width: 176px;
  text-align: center !important;
}
.cat-row-calc {
  display: inline-grid;
  grid-template-columns: auto minmax(92px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 158px;
}
.cat-row-calc-sides {
  display: inline-flex;
  gap: 6px;
}
.cat-row-calc-sides button {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.cat-row-calc-sides button.yes {
  color: var(--up);
}
.cat-row-calc-sides button.no {
  color: var(--down);
}
.cat-row-calc-sides button.active {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cat-row-calc-body {
  display: grid;
  grid-template-columns: auto 42px 1fr;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--muted);
}
.cat-row-calc-body input {
  width: 42px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text);
}
.cat-row-calc-body b {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
  font-weight: 600;
  text-align: right;
}
.cat-row-calc-empty {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}

/* === ANALYSIS HEADER RETURNS === */
.an-head-returns {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.ret-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ret-lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ret-val {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 1px;
}
.ret-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  margin-top: 1px;
}
.ret-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* === MARKET RETURN CALCULATOR === */
.calc-block {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 22px 18px;
}
.calc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.calc-head h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.calc-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-input div {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--bg);
  padding: 0 10px;
}
.calc-input b {
  color: var(--dim);
  font-weight: 600;
}
.calc-input input,
.calc-input select {
  width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}
.calc-input select {
  height: 34px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--bg);
  padding: 0 10px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc-outcome {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  padding: 13px 14px;
}
.calc-outcome.yes {
  border-color: rgba(74, 222, 128, 0.22);
}
.calc-outcome.no {
  border-color: rgba(96, 165, 250, 0.22);
}
.calc-outcome-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-outcome-head b {
  font-size: 13px;
  color: var(--text);
}
.calc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.calc-metrics div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.calc-metrics span {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
}
.calc-metrics b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}
.calc-empty {
  padding: 8px 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
}
.calc-foot {
  margin-top: 10px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9.5px;
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 8px;
}
.option-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  text-align: left;
  cursor: pointer;
}
.option-row:hover,
.option-row.active {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(96, 165, 250, 0.08);
}
.option-label {
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}
.option-price {
  font-family: var(--mono);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .calc-head { flex-direction: column; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === SETTINGS / WATCHLIST / ALERTS === */
.set-wrap, .list-page { padding: 0 0 48px; }

.set-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 32px 28px 22px;
  border-bottom: 1px solid var(--border);
}
.set-hero h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.set-hero-meta {
  display: flex; gap: 8px; align-items: center;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.set-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.set-tabs {
  display: inline-flex;
  gap: 26px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 60px;
  z-index: 5;
}
.set-tab {
  padding: 11px 1px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--sans);
}
.set-tab:hover { color: var(--text); }
.set-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.set-tabbar { padding: 0 28px; }

.set-section { padding: 28px 28px 0; }
.set-section-h { margin-bottom: 18px; max-width: 720px; }
.set-section-h h2 { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 6px; }
.set-section-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.set-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  max-width: 880px;
}
.set-field {
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.set-field:nth-child(2n) { border-right: none; }
.set-field:nth-last-child(-n+2) { border-bottom: none; }
.set-field-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.set-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.set-field-val {
  flex: 1;
  font-size: 13.5px;
  color: var(--text);
}
.set-field-val.mono { font-family: var(--mono); font-size: 12.5px; }
.set-field-edit {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--border-2);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg);
}
.set-field-edit:hover { color: var(--accent); border-color: var(--accent-line); }

.acct-list { display: flex; flex-direction: column; gap: 12px; max-width: 920px; }
.acct-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px 16px;
}
.acct-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.acct-head-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.acct-name { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.acct-handle { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.acct-status {}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.status-pill.connected { color: var(--up); background: var(--up-dim); }
.status-pill.connected .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--up); box-shadow: 0 0 6px var(--up); }
.status-pill.available { color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border-2); }
.acct-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.acct-stats > div { display: flex; flex-direction: column; gap: 3px; }
.acct-stat-val { font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.acct-stat-val.mono { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.acct-perms { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 12px; }
.perm-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.acct-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 4px;
  gap: 18px;
}

.set-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 880px;
}
.set-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.set-row:last-child { border-bottom: none; }
.set-row-l { font-size: 13px; color: var(--text); font-weight: 500; }
.set-row-d { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.set-toggle {
  margin-left: auto;
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--border-2);
  position: relative;
  transition: background 0.15s;
  cursor: pointer;
}
.set-toggle.on { background: var(--accent); }
.set-toggle-knob {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px; left: 3px;
  transition: left 0.15s;
}
.set-toggle.on .set-toggle-knob { left: 19px; }

/* === LIST PAGES (Watchlist / Alerts) === */
.list-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 28px 24px;
  border-bottom: 1px solid var(--border);
}
.list-hero h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.list-hero p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
  max-width: 580px;
}
.list-hero-stats {
  margin-left: auto;
  display: flex;
  gap: 28px;
}
.list-hero-stats > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 48px;
  z-index: 5;
  align-items: center;
}
.list-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  background: var(--bg);
  position: sticky;
  top: 48px;
  z-index: 5;
}
.utabs {
  position: relative;
  display: inline-flex;
  gap: 26px;
  border-bottom: 1px solid var(--border);
}
.utab {
  position: relative;
  padding: 11px 1px 13px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease;
  white-space: nowrap;
}
.utab.active { color: var(--text); }
.utab:hover:not(.active) { color: var(--text-2); }
.utab .ct {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  margin-left: 6px;
}
.uind {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .28s cubic-bezier(.4,1.1,.4,1), width .28s cubic-bezier(.4,1.1,.4,1);
}
.list-tab-actions { margin-left: auto; }
.list-body { padding: 0 28px 32px; }

.fadein { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE SCALING SYSTEM === */
.main {
  min-width: 0;
}
.home-inner {
  max-width: min(1680px, calc(100vw - 248px - 64px));
  padding-left: clamp(20px, 3vw, 56px);
  padding-right: clamp(20px, 3vw, 56px);
}
.home-inner:not(.searching-mode):not(.results-mode) {
  max-width: min(1500px, calc(100vw - 248px - 64px));
}
.app.sidebar-collapsed .home-inner,
.app.sidebar-collapsed .home-inner:not(.searching-mode):not(.results-mode) {
  max-width: min(1560px, calc(100vw - 44px - 48px));
}
.home-hello,
.home-sub,
.composer,
.chip-row {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.home-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
  align-items: start;
}
.home-card {
  min-width: 0;
}
.market-result-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}
.cat-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.cat-page > .cat-grid,
.cat-page-hero,
.cat-detail-hero,
.list-hero,
.list-filters,
.list-body,
.set-hero,
.set-tabs,
.set-tabbar,
.set-section {
  padding-left: clamp(18px, 2.5vw, 48px);
  padding-right: clamp(18px, 2.5vw, 48px);
}
.cat-card,
.market-result-card,
.home-card,
.acct-card,
.set-grid,
.set-list {
  container-type: inline-size;
}
.an-head-name,
.venue-url,
.table .name {
  overflow-wrap: anywhere;
}
.set-grid,
.acct-list,
.set-list {
  max-width: min(1320px, 100%);
}
.set-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}
.set-field:nth-child(2n),
.set-field {
  border-right: 1px solid var(--border);
}
.set-field:nth-last-child(-n+2) {
  border-bottom: 1px solid var(--border);
}
.set-field:nth-child(2n) {
  border-right: none;
}
.set-field-val,
.acct-handle,
.set-row-d {
  overflow-wrap: anywhere;
}
.acct-stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.list-body,
.venue-block {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table,
.venue-table {
  min-width: 820px;
}
.cat-page .table {
  min-width: 1040px;
}
.table th,
.table td,
.venue-table th,
.venue-table td {
  white-space: nowrap;
}
.table td:nth-child(2),
.venue-table td:first-child {
  white-space: normal;
  min-width: 220px;
}
.analysis {
  min-width: 0;
}
.an-head {
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: clamp(14px, 2vw, 28px);
  padding-left: clamp(16px, 2vw, 32px);
  padding-right: clamp(16px, 2vw, 32px);
}
.an-head-id {
  min-width: 0;
}
.an-head-tk {
  font-size: clamp(16px, 1.45vw, 24px);
  overflow-wrap: anywhere;
}
.an-head-name {
  max-width: min(980px, 100%);
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.25;
}
.an-head-meta {
  flex-wrap: wrap;
  row-gap: 5px;
}
.an-head-price {
  min-width: 0;
}
.an-head-px {
  font-size: clamp(24px, 2vw, 36px);
}
.an-head-chg {
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}
.an-head-returns {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.calc-block {
  padding-left: clamp(16px, 2vw, 32px);
  padding-right: clamp(16px, 2vw, 32px);
}
.calc-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}
.calc-metrics {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.an-body-3 {
  grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 2.1fr) minmax(280px, 1fr);
}
.chart-controls,
.extras-tabs,
.sent-tabs {
  flex-wrap: wrap;
}
.chart-area {
  min-height: clamp(280px, 34vh, 440px);
}
.chart-svg {
  height: clamp(280px, 34vh, 440px);
}
.sent-body {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}

@media (min-width: 1800px) {
  .app {
    grid-template-columns: 280px 1fr;
  }
  .home-inner,
  .home-inner:not(.searching-mode):not(.results-mode) {
    max-width: 1720px;
  }
  .an-body-3 {
    grid-template-columns: minmax(260px, 0.75fr) minmax(620px, 2fr) minmax(360px, 1fr);
  }
  .cat-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
}

@media (max-width: 1320px) {
  .home-inner,
  .home-inner:not(.searching-mode):not(.results-mode) {
    max-width: 1180px;
  }
  .an-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .an-head-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 12px 0 0;
    margin: 0;
  }
  .an-body-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .an-body-3 .an-col,
  .an-col.left,
  .an-col.right {
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border);
  }
  .an-body-3 .an-col-head,
  .an-body-3 .sent-tabs,
  .an-body-3 .extras-tabs {
    position: static;
  }
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 44px 1fr;
  }
  .sidebar {
    display: flex;
  }
  .home-inner,
  .home-inner:not(.searching-mode):not(.results-mode) {
    max-width: 100%;
    padding-top: 36px;
  }
  .home-grid,
  .sent-body {
    grid-template-columns: 1fr;
  }
  .topbar {
    gap: 8px;
    overflow-x: auto;
    padding: 0 18px;
  }
  .topbar-actions {
    position: static;
    transform: none;
    width: auto;
    flex: 0 0 auto;
  }
  .topbar-spacer {
    min-width: 8px;
  }
  .an-head {
    grid-template-columns: 1fr;
  }
  .an-head-price,
  .an-head-chg,
  .ret-block {
    align-items: flex-start;
    text-align: left;
  }
  .an-head-returns {
    justify-content: flex-start;
  }
  .an-head-actions {
    justify-content: flex-start;
  }
  .cat-detail-hero,
  .exchange-hero,
  .list-hero,
  .set-hero,
  .sent-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .cat-detail-stats,
  .list-hero-stats {
    margin-left: 0;
    align-items: flex-start;
  }
  .set-tabs,
  .set-tabbar {
    overflow-x: auto;
  }
}

@media (max-width: 1180px) {
  .cat-row-calc-col {
    display: none;
  }
  .cat-page .table {
    min-width: 820px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 12px;
  }
  .home-hello {
    font-size: clamp(30px, 9vw, 44px);
  }
  .composer textarea {
    font-size: 15px;
  }
  .tv-row {
    grid-template-columns: 150px 1fr auto;
  }
  .tv-row .tv-vol,
  .tv-row .tv-spark,
  .tv-row .tv-vn {
    display: none;
  }
  .pred-row {
    grid-template-columns: 28px 1fr auto;
  }
  .pred-row > span:last-child {
    display: none !important;
  }
  .calc-head,
  .acct-head,
  .acct-empty,
  .set-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .calc-input {
    min-width: 0;
    width: 100%;
  }
  .list-filters,
  .list-tabs {
    position: static;
  }
  .list-tabs {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 12px;
  }
  .list-tab-actions {
    margin-left: 0;
  }
  .table,
  .venue-table {
    min-width: 720px;
  }
  .exchange-hero {
    align-items: flex-start;
  }
  .exchange-hero-logo {
    width: 60px;
    height: 60px;
  }
}

/* ============================================================
   ANALYSIS REDESIGN — focal research column + pricing sidebar
   ============================================================ */
.an-redesign { width: 100%; container-type: inline-size; container-name: anpage; }
.an-redesign .an-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.an-redesign .an-main { min-width: 0; }

/* pricing sidebar — stacked by default (narrow), styled as a sticky rail when wide */
.an-redesign .an-aside {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* compact context header */
.an-ctx {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.an-ctx-body { min-width: 0; }
.an-ctx-tk {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.an-ctx-type {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.an-ctx-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 5px;
  max-width: 880px;
  text-wrap: pretty;
}

/* full-width focal panels */
.an-redesign .an-panel { border-bottom: 1px solid var(--border); }
.an-redesign .an-panel:last-child { border-bottom: none; }
.an-redesign .chart-area { min-height: clamp(340px, 44vh, 540px); }
.an-redesign .chart-svg { height: 100%; }

/* shared section label header */
.an-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 10px;
}

/* market signal as a dense multi-column grid */
.signal-panel { padding-bottom: 8px; }
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 36px;
  padding: 2px 22px 18px;
}
.signal-grid .ratio-group { border-bottom: none; }

/* the redesign removes the old internal column borders/sticky on extras + venue */
.an-redesign .extras { border-top: none; padding-top: 6px; }
.an-redesign .venue-block { border-top: none; border-bottom: none; }

/* sentiment hero — drop internal sticky so it flows in the focal column */
.an-redesign .sent-panel { overflow: visible; height: auto; }
.an-redesign .sent-panel-head,
.an-redesign .sent-tabs { position: static; }

/* ----- ASIDE: price card ----- */
.aside-price-card {
  padding: 18px 20px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.aside-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.an-aside .an-head-px {
  font-family: var(--serif);
  font-size: 32.3px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.aside-contract-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.aside-contract-price { min-width: 0; }
.aside-contract-line .an-head-returns {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.aside-contract-line .ret-block {
  align-items: flex-end;
  text-align: right;
}
.an-aside .an-head-chg {
  font-family: var(--mono);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
}
.an-aside .an-head-returns {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.an-aside .ret-block { align-items: flex-start; }

/* ----- ASIDE: calculator (narrow overrides) ----- */
.an-aside .calc-block {
  padding: 16px 20px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.an-aside .calc-head {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 14px;
}
.an-aside .calc-head h3 { font-size: 16px; }
.an-aside .calc-input { min-width: 0; width: 100%; }
/* calculator: two-up when the sidebar is stacked full-width (narrow viewport) */
.an-aside .calc-grid { grid-template-columns: 1fr 1fr; }
.an-aside .options-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.an-aside .calc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* when the focal column is wide enough, promote the aside to a real sticky sidebar */
@container anpage (min-width: 1100px) {
  .an-redesign .an-split { grid-template-columns: minmax(0, 1fr) 510px; }
  .an-redesign .an-aside {
    position: sticky;
    top: 60px;
    align-self: start;
    border-left: 1px solid var(--border);
    border-top: 0;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  /* tab bar stays fixed; only the pane below it scrolls */
  .an-redesign .an-aside .aside-tabs { flex: 0 0 auto; }
  .an-redesign .an-aside .aside-pane,
  .an-redesign .an-aside .aside-feed {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
  .an-aside .calc-grid { grid-template-columns: 1fr; }
  .an-aside .options-grid { grid-template-columns: 1fr; }
}

/* ----- primary tab bar (main focal column) ----- */
.an-redesign .an-tabs {
  display: flex;
  gap: 2px;
  align-items: stretch;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 60px;
  z-index: 6;
  overflow-x: auto;
  scrollbar-width: none;
}
.an-redesign .an-tabs::-webkit-scrollbar { display: none; }
.an-redesign .an-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 13px 12px 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .15s ease;
}
.an-redesign .an-tab:hover { color: var(--text); }
.an-redesign .an-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.an-redesign .an-tab .ct {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  background: var(--surface-2);
  border-radius: 3px;
  padding: 1px 5px;
}
.an-redesign .an-tab.active .ct { color: var(--accent); background: var(--accent-dim); }
.an-tab-body { padding: 18px 22px 32px; }

/* ----- sidebar tab bar (pricing / newsfeed) ----- */
.an-aside .aside-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 4;
}
.an-aside .aside-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease;
}
.an-aside .aside-tab:hover { color: var(--text); }
.an-aside .aside-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.an-aside .aside-tab .ct {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
}
.an-aside .aside-tab.active .ct { color: var(--accent); }

/* sidebar newsfeed (X-only) */
.an-aside .aside-feed .sent-panel { padding-bottom: 8px; }
.an-aside .aside-feed .sent-x-item { padding: 12px 16px; }
.an-aside .aside-feed .sent-x-head {
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 3px;
  margin-bottom: 6px;
}
.an-aside .aside-feed .sent-x-head .x-name {
  flex: 1 1 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.an-aside .aside-feed .sent-x-badge { white-space: nowrap; }
.an-aside .aside-feed .sent-x-head .x-time { margin-left: auto; }

/* ============================================================= */
/* === ANALYSIS v3 — sliding indicators, multi-choice, calc  === */
/* ============================================================= */

/* ----- horizontal "slide across" for tab content + chart swap ----- */
@keyframes anSlideX {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.chart-swap { animation: anSlideX .34s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .chart-swap { animation: none; }
}

/* ----- sliding pill for the range (timeframe) selector ----- */
.tf-ind {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
  z-index: 0;
  opacity: 0;
}
.tf-btn.active { color: var(--accent); background: transparent; box-shadow: none; }

/* ----- sliding underline for the main tab bar ----- */
.an-tab-ind {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  z-index: 2;
}
.an-redesign .an-tab.active { border-bottom-color: transparent; }

/* ----- sliding underline for the aside tabs ----- */
.an-aside .aside-tabs { position: relative; }
.aside-tab-ind {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  z-index: 2;
}
.an-aside .aside-tab.active { border-bottom-color: transparent; }

/* ----- compact chart panel (multi-choice sidebar) ----- */
.chart-panel.chart-compact { padding: 14px 16px 16px; }
.chart-panel.chart-compact .chart-controls { gap: 10px; flex-wrap: wrap; }
.chart-area-sm { height: 170px; }
.chart-caption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ----- OUTCOME BOARD (multiple-choice focal list) ----- */
.ob-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ob-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.ob-row:hover { border-color: var(--border-3); box-shadow: 0 2px 8px rgba(15,23,42,.05); }
.ob-row.active {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), 0 4px 14px rgba(37,99,235,.10);
  background: linear-gradient(0deg, var(--accent-dim), transparent);
}
.ob-rank {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  width: 20px;
  text-align: center;
}
.ob-row.active .ob-rank { color: var(--accent); }
.ob-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; cursor: pointer; }
.ob-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ob-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ob-prob {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}
.ob-prob i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 1px; }
.ob-track {
  height: 6px;
  border-radius: 4px;
  background: var(--bg-2);
  overflow: hidden;
}
.ob-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.ob-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.ob-px {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.ob-buy {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 3px 9px;
  transition: all .18s ease;
}
.ob-row:hover .ob-buy { color: var(--accent); border-color: var(--accent-line); }
.ob-row.active .ob-buy { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ----- ASIDE: updated-at bar ----- */
.aside-updated {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 9px 20px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
}
.aside-updated b { color: var(--muted); font-weight: 600; }
.aside-updated-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px var(--up-dim);
}
.aside-px-tag {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-2);
  margin-left: 10px;
  letter-spacing: -0.01em;
}

/* ----- CALCULATOR: engaging stake + outcome cards ----- */
.calc-stake { margin-bottom: 14px; }
.calc-stake-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.calc-stake-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-stake-field {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  min-width: 150px;
  padding: 0 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.calc-stake-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.calc-stake-field b { color: var(--muted); font-weight: 600; font-family: var(--serif); font-size: 18px; }
.calc-stake-field input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.calc-chips { display: flex; gap: 6px; }
.calc-chip {
  flex: 1;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  transition: all .15s ease;
}
.calc-chip:hover { border-color: var(--border-3); color: var(--text); }
.calc-chip.active {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}
.calc-outcome-select { margin-bottom: 14px; }

.calc-outcome {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}
.calc-outcome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.co-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 5px;
}
.calc-outcome.yes .co-tag { color: var(--accent); background: var(--accent-dim); }
.calc-outcome.no .co-tag { color: var(--down); background: var(--down-dim); }
.calc-outcome.pick .co-tag { color: var(--accent); background: var(--accent-dim); }
.calc-outcome.yes { border-color: var(--accent-line); }
.calc-outcome.no { border-color: rgba(220,38,38,.30); }
.calc-outcome.pick { border-color: var(--accent-line); }
.co-px { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--text); }
.co-payout {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 14px 11px;
}
.co-payout-val {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.co-payout-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.co-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px 13px;
}
.co-foot div { display: flex; flex-direction: column; gap: 3px; }
.co-foot i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
}
.co-foot b { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text); }
.co-foot b.up { color: var(--up); }

/* ----- CALCULATOR: YES / NO side toggle ----- */
.calc-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.side-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.side-btn:hover { border-color: var(--border-3); }
.side-btn .side-lbl {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-btn .side-px {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.side-btn.yes.active {
  border-color: var(--accent-line);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.side-btn.yes.active .side-lbl { color: var(--accent); }
.side-btn.no.active {
  border-color: rgba(220,38,38,.55);
  background: var(--down-dim);
  box-shadow: 0 0 0 1px rgba(220,38,38,.4);
}
.side-btn.no.active .side-lbl { color: var(--down); }
.aside-px-tag.yes { color: var(--accent); }
.aside-px-tag.no { color: var(--down); }

/* ----- OUTCOME BOARD: per-row Yes / No buy buttons ----- */
.ob-sides { display: flex; gap: 6px; flex-shrink: 0; }
.ob-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 62px;
  padding: 7px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ob-side i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ob-side b { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); }
.ob-side.yes:hover { border-color: var(--accent-line); background: var(--accent-dim); }
.ob-side.no:hover { border-color: rgba(220,38,38,.5); background: var(--down-dim); }
.ob-side.yes.on { border-color: var(--accent); background: var(--accent); }
.ob-side.yes.on i, .ob-side.yes.on b { color: #fff; }
.ob-side.no.on { border-color: var(--down); background: var(--down); }
.ob-side.no.on i, .ob-side.no.on b { color: #fff; }

.co-market-est {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px 12px;
  border-top: 1px dashed var(--border);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.co-market-est b {
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 600;
  text-align: right;
}
.co-market-est.warn b { color: var(--warn); }
@media (prefers-reduced-motion: reduce) {
  .tf-ind,
  .an-tab-ind,
  .aside-tab-ind,
  .ob-fill {
    transition: none;
  }
}
