.term-app {
  --term-bg: #07090D;
  --term-panel: #0E1218;
  --term-panel-2: #141A23;
  --term-panel-3: #1B222D;
  --term-line: rgba(255, 255, 255, .075);
  --term-ring: rgba(255, 255, 255, .11);
  --term-grid: rgba(233, 237, 243, .09);
  --term-text: #E9EDF3;
  --term-muted: #8A93A3;
  --term-faint: #5E6778;
  --term-accent: #CBF24C;
  --term-focus: #22D3EE;
  --term-green: #3BD97E;
  --term-red: #FF6257;
  --term-green-soft: rgba(59, 217, 126, .14);
  --term-red-soft: rgba(255, 98, 87, .14);
  --term-blue: #4C8DFF;
  --term-violet: #7C8CF8;
  --term-orchid: #D08BF0;
  --term-amber: #F2B33D;
  --term-teal: #3ECFD5;
  --term-on-lime: #0B0B0B;
  --term-on-green: #04240F;
  --term-glass: rgba(7, 9, 13, .82);
  --term-depth: 0 18px 40px -26px rgba(0, 0, 0, .85);
}

.term-app[data-term-theme='light'] {
  --term-bg: #F4F5F7;
  --term-panel: #FFFFFF;
  --term-panel-2: #FAFAFB;
  --term-panel-3: #F0F1F4;
  --term-line: rgba(12, 13, 16, .085);
  --term-ring: rgba(12, 13, 16, .12);
  --term-grid: rgba(12, 13, 16, .09);
  --term-text: #0C0D10;
  --term-muted: #5C5D64;
  --term-faint: #87888F;
  --term-focus: #0E9BB0;
  --term-green: #00A34F;
  --term-red: #E52B1E;
  --term-green-soft: rgba(0, 163, 79, .16);
  --term-red-soft: rgba(229, 43, 30, .16);
  --term-glass: rgba(255, 255, 255, .86);
  --term-depth: 0 18px 36px -28px rgba(20, 22, 30, .3);
}

body:has(.term-app) { background: var(--term-bg); }
.term-app [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.term-app {
  min-height: 100vh;
  padding: 0;
  background: var(--term-bg);
  color: var(--term-text);
  font: 400 13px/1 Outfit, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.term-app button { font-family: inherit; cursor: pointer; }
.term-app :focus-visible { outline: 2px solid var(--term-focus); outline-offset: 2px; }
.term-flex { flex: 1; min-width: 0; }

.term-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--term-glass);
  border-bottom: 1px solid var(--term-line);
  backdrop-filter: blur(20px) saturate(160%);
}
.term-topbar { height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.term-brand { flex: none; display: flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.term-brand span { font: 600 15px/1 Outfit, system-ui, sans-serif; letter-spacing: -.4px; }
.term-brand em { color: var(--term-faint); font: 500 15px/1 Outfit, system-ui, sans-serif; font-style: normal; letter-spacing: -.4px; }
.term-brand:hover { opacity: .72; }
.term-rule { width: 1px; height: 22px; flex: none; background: var(--term-line); }

.term-boards { flex: none; display: flex; align-items: center; gap: 3px; max-width: 40vw; overflow-x: auto; scrollbar-width: none; }
.term-boards::-webkit-scrollbar { display: none; }
.term-board {
  flex: none; height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px;
  border: 0; border-radius: 8px; color: var(--term-muted); background: transparent;
  font: 500 13px/1 Outfit, system-ui, sans-serif; white-space: nowrap;
}
.term-board small { color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-board:hover { color: var(--term-text); background: var(--term-panel-2); }
.term-board.is-active { color: var(--term-text); background: var(--term-panel-3); }
.term-board-add { width: 30px; justify-content: center; padding: 0; box-shadow: inset 0 0 0 1px var(--term-ring); }

.term-search-slot { flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; justify-content: center; }
.term-search {
  width: 100%; max-width: 420px; min-width: 0; height: 34px;
  display: flex; align-items: center; gap: 9px; padding: 0 11px;
  border-radius: 10px; background: var(--term-panel); box-shadow: inset 0 0 0 1px var(--term-ring);
  color: var(--term-faint); cursor: pointer;
}
.term-search input {
  flex: 1; min-width: 0; height: 32px; border: 0; outline: 0; background: transparent;
  color: var(--term-text); font: 400 13px/1 Outfit, system-ui, sans-serif; cursor: pointer;
}
.term-search kbd {
  flex: none; padding: 3px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--term-ring);
  color: var(--term-faint); font: 500 10.5px/1 Outfit, system-ui, sans-serif;
}
.term-search:focus-within { box-shadow: inset 0 0 0 1px var(--term-focus); }

.term-topbar-right { flex: none; display: flex; align-items: center; gap: 8px; }
.term-market-state {
  margin: 0; height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 10px;
  border-radius: 8px; background: var(--term-panel); box-shadow: inset 0 0 0 1px var(--term-ring);
  color: var(--term-muted); font: 500 11.5px/1 Outfit, system-ui, sans-serif; white-space: nowrap;
}
.term-market-state::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 3px; background: var(--term-faint); }
.term-market-state.is-live::before { background: var(--term-green); }
.term-icon-button {
  width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 16px;
  color: var(--term-muted); background: transparent; box-shadow: inset 0 0 0 1px var(--term-ring);
  font: 600 13px/1 Outfit, system-ui, sans-serif;
}
.term-icon-button:hover { color: var(--term-text); }
.term-avatar {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 16px;
  background: var(--term-panel-3); color: var(--term-muted); font: 600 12px/1 Outfit, system-ui, sans-serif;
}

.term-toolbar {
  height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; border-top: 1px solid var(--term-line);
}
.term-views {
  display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--term-panel); box-shadow: inset 0 0 0 1px var(--term-line);
}
.term-views button {
  height: 28px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 7px;
  color: var(--term-muted); background: transparent; font: 600 12.5px/1 Outfit, system-ui, sans-serif;
}
.term-views button[aria-pressed='true'] { color: var(--term-text); background: var(--term-panel-3); }

.term-edit {
  height: 28px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-radius: 8px;
  color: var(--term-muted); background: transparent; box-shadow: inset 0 0 0 1px var(--term-ring);
  font: 600 12px/1 Outfit, system-ui, sans-serif;
}
.term-edit[aria-pressed='true'] { color: var(--term-on-lime); background: var(--term-accent); box-shadow: none; }

.term-button {
  height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 8px;
  color: var(--term-on-lime); background: var(--term-accent); font: 600 12px/1 Outfit, system-ui, sans-serif;
}
.term-button-quiet { color: var(--term-muted); background: transparent; box-shadow: inset 0 0 0 1px var(--term-ring); }
.term-button:hover { filter: brightness(1.06); }

.term-stage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  padding: 12px 16px 96px;
}
.term-view { display: none; }
.term-app[data-view='board'] .term-stage { display: grid; }
.term-app[data-view='screener'] .term-screen-view,
.term-app[data-view='compare'] .term-compare-view,
.term-app[data-view='company'] .term-company-view { display: block; }
.term-app:not([data-view='board']) .term-stage { display: none; }
.term-screen-view { padding: 12px 16px 96px; }
.term-screen-view .term-widget { grid-column: auto; height: calc(100vh - 208px); min-height: 480px; }

.term-widget {
  grid-column: span var(--widget-span, 3);
  height: var(--widget-h, 360px);
  position: relative;
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; background: var(--term-panel);
  box-shadow: inset 0 0 0 1px var(--term-line);
}
.term-widget.is-static { grid-column: auto; height: auto; }
.term-widget.is-active { box-shadow: inset 0 0 0 1px var(--term-line), 0 0 0 1.5px var(--term-focus), var(--term-depth); }
.term-widget.is-moving { opacity: .6; }
.term-widget.is-over { box-shadow: inset 0 0 0 1px var(--term-line), 0 0 0 1.5px var(--term-accent); }
.term-app.is-editing .term-widget { outline: 1.5px dashed var(--term-focus); outline-offset: -3px; }
.term-widget.is-maximized {
  position: fixed; inset: 0; z-index: 200;
  width: 100%; height: 100%; border-radius: 0;
}

.term-widget-head {
  position: relative; height: 36px; flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 10px; border-bottom: 1px solid var(--term-line); background: var(--term-panel-2);
}
.term-app.is-editing .term-widget-head { cursor: grab; user-select: none; }
.term-app.is-editing .term-widget-head:active { cursor: grabbing; }
.term-widget-head strong { font: 600 12px/1 Outfit, system-ui, sans-serif; letter-spacing: -.2px; white-space: nowrap; }
.term-widget-head small { flex: 1; min-width: 0; overflow: hidden; color: var(--term-faint); text-overflow: ellipsis; white-space: nowrap; font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-symbol-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--term-green); }
.term-symbol-dot-blue { background: var(--term-focus); }
.term-symbol-dot-red { background: var(--term-red); }
.term-symbol-dot-lime { background: var(--term-accent); }
.term-symbol-dot-grey { background: var(--term-muted); }
.term-widget-controls { flex: none; display: flex; gap: 3px; }

.term-add-tile {
  grid-column: span 2; height: 120px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; color: var(--term-muted); background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--term-ring); font: 500 12.5px/1 Outfit, system-ui, sans-serif;
}
.term-add-tile:hover { color: var(--term-text); }
.term-app:not(.is-editing) .term-add-tile { display: none; }
.term-widget-controls button {
  width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 6px;
  color: var(--term-muted); background: transparent;
}
.term-widget-controls button:hover { color: var(--term-text); background: var(--term-panel-3); }

.term-widget-menu {
  position: absolute; top: 34px; right: 8px; z-index: 30; width: 214px; padding: 5px;
  border-radius: 11px; background: var(--term-panel-2);
  box-shadow: inset 0 0 0 1px var(--term-ring), var(--term-depth);
}
.term-widget-menu button {
  width: 100%; height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 9px; border: 0; border-radius: 7px; color: var(--term-text); background: transparent;
  font: 400 .74rem/1 Outfit, system-ui, sans-serif;
}
.term-widget-menu button:hover { background: var(--term-panel-3); }
.term-widget-menu button.is-danger { color: var(--term-red); }
.term-widget-menu kbd { color: var(--term-faint); font: 500 .64rem/1 Outfit, system-ui, sans-serif; }

.term-resize {
  position: absolute; right: 0; bottom: 0; z-index: 5; width: 18px; height: 18px;
  border: 0; background: transparent; color: var(--term-focus); cursor: nwse-resize; opacity: 0;
}
.term-resize::after {
  content: ''; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; border-radius: 0 0 2px 0;
}
.term-app.is-editing .term-resize { opacity: .85; }

.term-widget-foot {
  height: 30px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px;
  border-top: 1px solid var(--term-line); color: var(--term-faint);
  font: 500 .64rem/1 Outfit, system-ui, sans-serif;
}
.term-widget-foot button {
  padding: 3px 6px; border: 0; border-radius: 4px; color: var(--term-muted); background: transparent;
  box-shadow: inset 0 0 0 1px var(--term-ring); font: 500 .62rem/1 Outfit, system-ui, sans-serif;
}
.term-widget-foot button[aria-pressed='true'] { color: var(--term-text); background: var(--term-panel-3); }

.term-chart { flex: 1; min-height: 0; display: flex; }
.term-draw-tools {
  width: 38px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 5px 0; overflow-y: auto; border-inline-end: 1px solid var(--term-line); scrollbar-width: none;
}
.term-draw-tools::-webkit-scrollbar { display: none; }
.term-draw-tools button {
  width: 27px; height: 27px; flex: none; display: grid; place-items: center; border: 0; border-radius: 8px;
  color: var(--term-muted); background: transparent;
}
.term-draw-tools button:hover { color: var(--term-text); background: var(--term-panel-3); }
.term-draw-tools button[aria-pressed='true'] { color: var(--term-focus); background: var(--term-panel-3); }
.term-draw-tools hr { width: 20px; height: 1px; margin: 3px 0; border: 0; background: var(--term-line); }

.term-chart-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.term-chart-bar {
  position: relative; height: 36px; flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 10px; border-bottom: 1px solid var(--term-line); overflow: visible;
}
.term-chart-bar b { font: 600 .78rem/1 Outfit, system-ui, sans-serif; }
.term-chart-bar > span { font: 500 .7rem/1 Outfit, system-ui, sans-serif; color: var(--term-muted); }
.term-ranges { display: flex; gap: 2px; }
.term-ranges button {
  height: 22px; min-width: 28px; padding: 0 7px; border: 0; border-radius: 6px;
  color: var(--term-muted); background: transparent; font: 500 .66rem/1 Outfit, system-ui, sans-serif;
}
.term-ranges button:hover { color: var(--term-text); }
.term-ranges button.is-active { color: var(--term-text); background: var(--term-panel-3); }
.term-chart-kind {
  height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border: 0; border-radius: 7px;
  color: var(--term-muted); background: transparent; box-shadow: inset 0 0 0 1px var(--term-ring);
  font: 500 .66rem/1 Outfit, system-ui, sans-serif; white-space: nowrap;
}
.term-chart-kind:hover { color: var(--term-text); }
.term-chart-menu {
  position: absolute; top: 32px; right: 10px; z-index: 34; width: 216px; max-height: min(420px, 60vh);
  overflow: auto; padding: 5px; border-radius: 12px; background: var(--term-panel-2);
  box-shadow: inset 0 0 0 1px var(--term-ring), var(--term-depth);
}
.term-chart-menu button {
  width: 100%; height: 30px; display: flex; align-items: center; gap: 9px; padding: 0 9px;
  border: 0; border-radius: 7px; color: var(--term-muted); background: transparent; text-align: start;
  font: 400 .72rem/1 Outfit, system-ui, sans-serif;
}
.term-chart-menu button:hover { color: var(--term-text); background: var(--term-panel-3); }
.term-chart-menu button[aria-checked='true'] { color: var(--term-text); background: var(--term-panel-3); }
.term-indicator-menu { width: 190px; }
.term-legend-dot { width: 10px; height: 3px; flex: none; border-radius: 2px; background: var(--term-muted); }
.term-legend-volume { background: var(--term-faint); }
.term-legend-sma20 { background: #f3b84b; }
.term-legend-sma50 { background: #b48cf5; }
.term-legend-ema20 { background: var(--term-blue); }
.term-legend-bollinger { background: #6fd7c4; }
.term-legend-vwap { background: var(--term-accent); }
.term-legend-rsi { background: #f07de0; }

.term-chart-wrap { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 58px; }
.term-chart-wrap svg { display: block; width: 100%; height: 100%; touch-action: none; }
.term-chart-wrap.is-drawing svg { cursor: crosshair; }
.term-chart-axis { position: relative; border-inline-start: 1px solid var(--term-line); background: var(--term-panel); }
.term-axis-tick {
  position: absolute; inset-inline: 0; top: var(--tick, 50%); transform: translateY(-50%); padding: 0 7px;
  color: var(--term-faint); text-align: end; font: 400 .6rem/1 Outfit, system-ui, sans-serif;
}
.term-axis-price {
  position: absolute; inset-inline: 3px; top: var(--tick, 50%); transform: translateY(-50%);
  padding: 3px 5px; border-radius: 4px; color: #06100a; background: var(--term-green);
  text-align: end; font: 700 .6rem/1 Outfit, system-ui, sans-serif;
}
.term-axis-price.is-down { color: #200608; background: var(--term-red); }

.term-grid-line { stroke: var(--term-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.term-chart-area { fill: color-mix(in srgb, var(--term-green) 16%, transparent); stroke: none; }
.term-chart-line { fill: none; stroke: var(--term-green); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.term-chart-base { stroke: var(--term-muted); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.term-series-up { fill: var(--term-green); stroke: var(--term-green); }
.term-series-down { fill: var(--term-red); stroke: var(--term-red); }
.term-series-hollow { fill: var(--term-panel); }
.term-series-wick, .term-series-tick { stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.term-series-body { stroke: none; }
.term-series-column { stroke: none; opacity: .84; }
.term-volume-bar { stroke: none; opacity: .5; }
.term-overlay { fill: none; stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.term-overlay-a { stroke: #f3b84b; }
.term-overlay-b { stroke: #b48cf5; }
.term-overlay-c { stroke: var(--term-blue); }
.term-overlay-d { stroke: #6fd7c4; opacity: .8; }
.term-overlay-e { stroke: var(--term-accent); }
.term-overlay-f { stroke: #f07de0; }
.term-sub-guide { stroke: var(--term-grid); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.term-event-line { stroke-width: .8; stroke-dasharray: 3 4; opacity: .5; vector-effect: non-scaling-stroke; }
.term-event-line.is-dividend { stroke: var(--term-blue); }
.term-event-line.is-split { stroke: var(--term-accent); }
.term-event-line.is-earnings { stroke: var(--term-green); }

.term-crosshair path { stroke: color-mix(in srgb, var(--term-text) 42%, transparent); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; fill: none; }
.term-crosshair circle { fill: var(--term-panel); stroke: var(--term-text); stroke-width: 1.4; vector-effect: non-scaling-stroke; }

.term-drawing { cursor: pointer; }
[data-chart-drawings].is-locked .term-drawing { cursor: default; pointer-events: none; }
.term-draw-line { stroke: var(--term-focus); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.term-draw-thin { stroke-width: 1; opacity: .72; }
.term-draw-free { stroke-linejoin: round; }
.term-draw-area { fill: color-mix(in srgb, var(--term-focus) 12%, transparent); stroke: var(--term-focus); stroke-width: 1; vector-effect: non-scaling-stroke; }
.term-draw-area.is-up { fill: color-mix(in srgb, var(--term-green) 16%, transparent); stroke: var(--term-green); }
.term-draw-area.is-down { fill: color-mix(in srgb, var(--term-red) 16%, transparent); stroke: var(--term-red); }
.term-draw-text { fill: var(--term-text); font: 600 9px Outfit, system-ui, sans-serif; }
.term-draw-end { text-anchor: end; }
.term-draw-middle { text-anchor: middle; }
.term-draw-note { fill: var(--term-focus); font-size: 11px; }
.term-draw-mark { fill: color-mix(in srgb, var(--term-accent) 40%, transparent); stroke: var(--term-accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.term-draw-handle { fill: var(--term-panel); stroke: var(--term-focus); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.term-drawing.is-selected .term-draw-line { stroke-width: 2; }
.term-fib-band { stroke: none; opacity: .07; }
.term-fib-band-1, .term-fib-band-4 { fill: var(--term-green); }
.term-fib-band-2, .term-fib-band-5 { fill: var(--term-blue); }
.term-fib-band-3, .term-fib-band-6 { fill: var(--term-red); }
.term-fib-0, .term-fib-6 { stroke: var(--term-muted); }
.term-fib-3 { stroke: var(--term-accent); }

.term-chart-empty {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; margin: 0;
  color: var(--term-muted); font: 500 .74rem/1.4 Outfit, system-ui, sans-serif;
}
.term-chart-tip {
  position: absolute; z-index: 7; min-width: 150px; padding: 8px 10px; border-radius: 8px;
  color: var(--term-text); background: var(--term-panel-2);
  box-shadow: inset 0 0 0 1px var(--term-ring), var(--term-depth);
  pointer-events: none; white-space: pre-line; font: 500 .64rem/1.5 Outfit, system-ui, sans-serif;
}

.term-chart-dates {
  position: relative; height: 40px; flex: none; margin-inline-end: 66px;
  border-top: 1px solid var(--term-line);
}
.term-date-tick {
  position: absolute; left: var(--tick, 50%); top: 6px; transform: translateX(-50%);
  color: var(--term-faint); white-space: nowrap; font: 400 .6rem/1 Outfit, system-ui, sans-serif;
}
.term-date-event {
  position: absolute; left: var(--tick, 50%); bottom: 5px; transform: translateX(-50%);
  height: 17px; padding: 0 7px; border: 0; border-radius: 9px; color: #06100a;
  font: 700 .58rem/1 Outfit, system-ui, sans-serif;
}
.term-date-event.is-dividend { background: var(--term-blue); color: #fff; }
.term-date-event.is-split { background: var(--term-accent); }
.term-date-event.is-earnings { background: var(--term-green); }

.term-chart-legend {
  min-height: 26px; flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 10px; overflow-x: auto; border-top: 1px solid var(--term-line); scrollbar-width: none;
}
.term-chart-legend::-webkit-scrollbar { display: none; }
.term-legend-item { flex: none; display: flex; align-items: center; gap: 5px; color: var(--term-faint); white-space: nowrap; font: 500 .62rem/1 Outfit, system-ui, sans-serif; }
.term-legend-item::before { content: ''; width: 10px; height: 3px; border-radius: 2px; background: currentColor; }
.term-legend-a { color: #f3b84b; }
.term-legend-b { color: #b48cf5; }
.term-legend-c { color: var(--term-blue); }
.term-legend-d { color: #6fd7c4; }
.term-legend-e { color: var(--term-accent); }
.term-legend-f { color: #f07de0; }
.term-legend-g { color: var(--term-faint); }
.term-legend-event.is-dividend { color: var(--term-blue); }
.term-legend-event.is-split { color: var(--term-accent); }
.term-legend-event.is-earnings { color: var(--term-green); }

.term-table-wrap { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.term-watch-table, .term-metrics-table, .term-screen-table { width: 100%; border-collapse: collapse; }
.term-watch-table thead th, .term-metrics-table thead th, .term-screen-table thead th {
  position: sticky; top: 0; z-index: 2; height: 26px; padding: 0 9px; background: var(--term-panel);
  color: var(--term-faint); text-align: end; white-space: nowrap;
  font: 600 .56rem/1 Outfit, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.term-watch-table thead th:first-child, .term-metrics-table thead th:first-child, .term-screen-table thead th:first-child { text-align: start; }
.term-watch-table tbody tr, .term-metrics-table tbody tr, .term-screen-table tbody tr { cursor: pointer; }
.term-watch-table tbody tr:hover, .term-metrics-table tbody tr:hover, .term-screen-table tbody tr:hover { background: var(--term-panel-2); }
.term-watch-table tbody tr.is-selected, .term-screen-table tbody tr.is-selected { background: color-mix(in srgb, var(--term-focus) 10%, transparent); }
.term-watch-table td, .term-watch-table tbody th,
.term-metrics-table td, .term-metrics-table tbody th,
.term-screen-table td, .term-screen-table tbody th {
  height: 34px; padding: 0 9px; border-top: 1px solid var(--term-line); text-align: end; white-space: nowrap;
  font: 500 .7rem/1 Outfit, system-ui, sans-serif;
}
.term-watch-table tbody th, .term-metrics-table tbody th, .term-screen-table tbody th { text-align: start; font-weight: 500; }
.term-watch-table tbody th > span:last-child, .term-screen-table tbody th > span:last-child {
  min-width: 0; display: inline-grid; gap: 3px; vertical-align: middle;
}
.term-metrics-table tbody th { display: table-cell; }
.term-metrics-table tbody th b, .term-watch-table tbody b, .term-screen-table tbody b { overflow: hidden; text-overflow: ellipsis; font: 600 .7rem/1 Outfit, system-ui, sans-serif; }
.term-metrics-table tbody th small, .term-watch-table tbody small, .term-screen-table tbody small {
  display: block; max-width: 15ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--term-faint); font: 500 .58rem/1.3 Outfit, system-ui, sans-serif;
}
.term-logo {
  width: 22px; height: 22px; flex: none; display: inline-grid; place-items: center; margin-inline-end: 8px;
  border-radius: 50%; background: var(--term-panel-3); color: var(--term-muted); vertical-align: middle;
  font: 700 .52rem/1 Outfit, system-ui, sans-serif;
}
.term-metric-spark { width: 56px; }
.term-metric-spark svg { display: block; width: 46px; height: 16px; margin-inline-start: auto; }
.term-metric-spark path { fill: none; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.term-up { color: var(--term-green); }
.term-down { color: var(--term-red); }

.term-performance-head { height: 32px; flex: none; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--term-line); }
.term-performance-chart { position: relative; flex: 1; min-height: 0; display: flex; align-items: stretch; gap: 4px; padding: 16px 14px 30px; overflow: hidden; }
.term-zero { position: absolute; inset-inline: 12px; top: 50%; height: 1px; background: var(--term-line); }
.term-perf-bar { position: relative; flex: 1; min-width: 18px; border: 0; background: transparent; }
.term-perf-bar i { position: absolute; inset-inline: 12%; top: var(--bar-top, 50%); height: var(--bar-height, 1px); border-radius: 3px; background: var(--bar-color, var(--term-line)); }
.term-perf-bar span { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%) rotate(-38deg); color: var(--term-faint); font: 600 .52rem/1 Outfit, system-ui, sans-serif; }
.term-bar-tip {
  position: absolute; z-index: 5; padding: 7px 9px; border-radius: 8px; color: var(--term-text);
  background: var(--term-panel-2); box-shadow: inset 0 0 0 1px var(--term-ring), var(--term-depth);
  pointer-events: none; white-space: nowrap; font: 600 .64rem/1 Outfit, system-ui, sans-serif;
}

.term-heatmap { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: 1fr; gap: 3px; padding: 7px; }
.term-heat-tile {
  min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 3px; overflow: hidden; border: 0; border-radius: 5px; color: #fff;
  background: color-mix(in srgb, var(--tile-color, var(--term-muted)) var(--tile-strength, 40%), var(--term-panel-3));
}
.term-heat-tile:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.term-heat-tile:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.term-heat-tile:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.term-heat-tile:nth-child(-n+9):nth-child(n+4) { grid-column: span 2; }
.term-heat-tile b { font: 700 .68rem/1 Outfit, system-ui, sans-serif; }
.term-heat-tile small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .74; font: 500 .52rem/1 Outfit, system-ui, sans-serif; }
.term-heat-tile span { font: 700 .6rem/1 Outfit, system-ui, sans-serif; }
.term-app[data-term-theme='light'] .term-heat-tile { color: #10140a; }

.term-screen-tools { min-height: 40px; flex: none; display: flex; align-items: center; gap: 9px; padding: 8px 10px 0; }
.term-filter-add {
  height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 8px;
  color: var(--term-muted); background: transparent; box-shadow: inset 0 0 0 1px var(--term-ring);
  font: 500 .68rem/1 Outfit, system-ui, sans-serif; white-space: nowrap;
}
.term-screen-tools form { flex: 1; min-width: 0; max-width: 420px; height: 30px; display: flex; border-radius: 15px; background: var(--term-panel-2); box-shadow: inset 0 0 0 1px var(--term-ring); }
.term-screen-tools label { flex: 1; min-width: 0; }
.term-screen-tools input { width: 100%; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--term-text); font: 400 .7rem/1 Outfit, system-ui, sans-serif; }
.term-screen-tools form button { width: 32px; border: 0; border-radius: 15px; color: var(--term-text); background: transparent; }
.term-screen-count { margin-inline-start: auto; color: var(--term-faint); font: 500 .66rem/1 Outfit, system-ui, sans-serif; white-space: nowrap; }
.term-filter-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px 0; }
.term-filter-chip {
  height: 26px; display: inline-flex; align-items: center; gap: 7px; padding: 0 5px 0 10px; border-radius: 8px;
  background: var(--term-panel-3); color: var(--term-muted); font: 500 .68rem/1 Outfit, system-ui, sans-serif;
}
.term-filter-chip button { width: 16px; height: 16px; display: grid; place-items: center; border: 0; border-radius: 8px; color: var(--term-faint); background: transparent; }
.term-screen-tabs { display: flex; gap: 3px; padding: 8px 10px 0; overflow-x: auto; scrollbar-width: none; }
.term-screen-tabs::-webkit-scrollbar { display: none; }
.term-screen-tabs button {
  flex: none; height: 26px; padding: 0 11px; border: 0; border-radius: 8px; color: var(--term-muted);
  background: transparent; font: 500 .7rem/1 Outfit, system-ui, sans-serif;
}
.term-screen-tabs button[aria-selected='true'] { color: var(--term-text); background: var(--term-panel-3); }
.term-screen-table-wrap { flex: 1; min-height: 0; margin-top: 8px; overflow: auto; scrollbar-width: thin; }

.term-filter-menu {
  position: fixed; z-index: 95; display: flex; align-items: flex-start; gap: 6px;
}
.term-filter-main, .term-filter-sub {
  width: 210px; max-height: 340px; overflow: auto; padding: 5px; border-radius: 12px;
  background: var(--term-panel-2); box-shadow: inset 0 0 0 1px var(--term-ring), var(--term-depth);
}
.term-filter-main label { display: block; height: 30px; margin-bottom: 3px; border-radius: 7px; background: var(--term-panel-3); }
.term-filter-main input { width: 100%; height: 30px; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--term-text); font: 400 .7rem/1 Outfit, system-ui, sans-serif; }
.term-filter-main button, .term-filter-sub button {
  width: 100%; height: 31px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border: 0;
  border-radius: 7px; color: var(--term-text); background: transparent; text-align: start;
  font: 400 .72rem/1 Outfit, system-ui, sans-serif;
}
.term-filter-main button span { flex: 1; min-width: 0; }
.term-filter-main button b { color: var(--term-faint); font-weight: 500; }
.term-filter-main button:hover, .term-filter-main button.is-active, .term-filter-sub button:hover { background: var(--term-panel-3); }
.term-filter-flag { width: 22px; height: 16px; display: grid; place-items: center; border-radius: 3px; background: var(--term-panel-3); color: var(--term-muted); font: 600 .52rem/1 Outfit, system-ui, sans-serif; }
.term-filter-editor { display: grid; gap: 8px; padding: 6px; }
.term-filter-title { margin: 0; color: var(--term-faint); font: 600 .62rem/1 Outfit, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.term-filter-editor > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.term-filter-editor label { display: grid; gap: 4px; color: var(--term-faint); font: 500 .6rem/1 Outfit, system-ui, sans-serif; }
.term-filter-editor input { height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--term-panel-3); color: var(--term-text); font: 500 .7rem/1 Outfit, system-ui, sans-serif; }
.term-filter-editor button { height: 30px; border: 0; border-radius: 7px; color: #10140a; background: var(--term-accent); font: 600 .68rem/1 Outfit, system-ui, sans-serif; }

.term-events { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.term-event { padding: 10px 12px; border-bottom: 1px solid var(--term-line); cursor: pointer; }
.term-event:hover { background: var(--term-panel-2); }
.term-event-head { display: flex; align-items: center; gap: 7px; }
.term-event-tag { height: 16px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 8px; font: 600 .56rem/1 Outfit, system-ui, sans-serif; }
.term-event-tag.is-dividend { color: var(--term-blue); background: color-mix(in srgb, var(--term-blue) 18%, transparent); }
.term-event-tag.is-split { color: var(--term-accent); background: color-mix(in srgb, var(--term-accent) 20%, transparent); }
.term-event-head time { color: var(--term-faint); font: 400 .62rem/1 Outfit, system-ui, sans-serif; }
.term-event-soon { margin-inline-start: auto; color: var(--term-green); font: 600 .58rem/1 Outfit, system-ui, sans-serif; }
.term-event-body { margin: 7px 0 5px; font: 500 .72rem/1.4 Outfit, system-ui, sans-serif; text-wrap: pretty; }
.term-event small { color: var(--term-faint); font: 400 .62rem/1 Outfit, system-ui, sans-serif; }
.term-empty-note { margin: 0; padding: 16px 14px; color: var(--term-faint); font: 400 .7rem/1.5 Outfit, system-ui, sans-serif; text-wrap: pretty; }

.term-notes { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.term-notes-symbol { margin: 0; font: 600 .7rem/1 Outfit, system-ui, sans-serif; }
.term-notes textarea {
  flex: 1; min-height: 0; padding: 10px; border: 0; outline: 0; border-radius: 10px; resize: none;
  background: var(--term-panel-2); box-shadow: inset 0 0 0 1px var(--term-ring); color: var(--term-text);
  font: 400 .72rem/1.55 Outfit, system-ui, sans-serif;
}
.term-notes textarea:focus { box-shadow: inset 0 0 0 1px var(--term-focus); }
.term-notes footer { color: var(--term-faint); font: 400 .62rem/1 Outfit, system-ui, sans-serif; }

.term-alerts { flex: 1; min-height: 0; overflow: auto; padding: 8px; scrollbar-width: thin; }
.term-alert { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; margin-bottom: 6px; border-radius: 10px; background: var(--term-panel-2); }
.term-alert-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--term-faint); }
.term-alert.is-armed .term-alert-dot { background: var(--term-green); }
.term-alert.is-fired .term-alert-dot { background: var(--term-red); }
.term-alert-text { flex: 1; min-width: 0; display: grid; gap: 3px; padding: 7px 0; }
.term-alert-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .7rem/1.2 Outfit, system-ui, sans-serif; }
.term-alert-text small { color: var(--term-faint); font: 400 .62rem/1.3 Outfit, system-ui, sans-serif; }
.term-alert-state { flex: none; color: var(--term-muted); font: 500 .66rem/1 Outfit, system-ui, sans-serif; }
.term-alert.is-fired .term-alert-state { color: var(--term-red); }
.term-alert-remove { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 0; border-radius: 6px; color: var(--term-faint); background: transparent; font: 600 .8rem/1 system-ui, sans-serif; }

.term-market-unavailable, .term-sales-empty { flex: 1; min-height: 0; display: grid; place-content: center; gap: 8px; padding: 18px; text-align: center; }
.term-market-unavailable strong, .term-sales-empty strong { font: 600 .78rem/1.3 Outfit, system-ui, sans-serif; }
.term-market-unavailable p, .term-sales-empty p { margin: 0; max-width: 46ch; color: var(--term-faint); font: 400 .68rem/1.55 Outfit, system-ui, sans-serif; text-wrap: pretty; }
.term-depth-placeholder { display: grid; gap: 5px; justify-items: center; margin-bottom: 4px; }
.term-depth-placeholder i { width: 120px; height: 5px; border-radius: 3px; background: var(--term-panel-3); }
.term-depth-placeholder i:nth-child(even) { width: 86px; }
.term-sales { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.term-sales-head { height: 24px; flex: none; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--term-line); color: var(--term-faint); font: 600 .56rem/1 Outfit, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.term-sales-head span { flex: 1; }
.term-sales-head span:not(:first-child) { text-align: end; }

.term-dock {
  position: fixed; left: 50%; bottom: 20px; z-index: 70; transform: translateX(-50%);
  display: flex; align-items: center; gap: 3px; padding: 5px; border-radius: 14px;
  background: var(--term-glass); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--term-ring), var(--term-depth);
}
.term-dock button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; color: var(--term-muted); background: transparent; }
.term-dock button:hover { color: var(--term-text); }
.term-dock button.is-active { color: var(--term-text); background: var(--term-panel-3); }

.term-app dialog {
  margin: auto; padding: 0; border: 0; border-radius: 18px; background: var(--term-panel); color: var(--term-text);
  box-shadow: inset 0 0 0 1px var(--term-ring), var(--term-depth);
}
.term-app dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }
.term-app dialog header { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--term-line); }
.term-app dialog header h2 { margin: 0; font: 600 .92rem/1.2 Outfit, system-ui, sans-serif; }
.term-app dialog header p { margin: 0 0 3px; color: var(--term-faint); font: 600 .56rem/1 Outfit, system-ui, sans-serif; letter-spacing: .1em; }
.term-app dialog header button { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--term-muted); background: transparent; font: 500 1rem/1 system-ui, sans-serif; }

.term-add-dialog { width: min(640px, 92vw); }
.term-widget-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; padding: 12px; }
.term-widget-library button {
  display: grid; gap: 6px; padding: 12px; border: 0; border-radius: 12px; background: var(--term-panel-2);
  box-shadow: inset 0 0 0 1px var(--term-line); color: var(--term-text); text-align: start;
}
.term-widget-library button:hover { box-shadow: inset 0 0 0 1px var(--term-focus); }
.term-widget-library button > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--term-panel-3); color: var(--term-muted); }
.term-widget-library b { margin-top: 4px; font: 600 .74rem/1 Outfit, system-ui, sans-serif; }
.term-widget-library small { color: var(--term-faint); font: 400 .64rem/1.4 Outfit, system-ui, sans-serif; text-wrap: pretty; }

.term-detail { width: min(440px, 92vw); max-height: 88vh; overflow: auto; }
.term-detail-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.term-detail-id small { color: var(--term-faint); font: 400 .64rem/1.3 Outfit, system-ui, sans-serif; }
.term-detail-quote { display: flex; align-items: baseline; gap: 10px; padding: 16px 16px 0; }
.term-detail-quote p { margin: 0; font: 600 1.7rem/1 Outfit, system-ui, sans-serif; letter-spacing: -.04em; }
.term-detail-quote span { font: 500 .74rem/1 Outfit, system-ui, sans-serif; }
.term-detail-chart { margin: 14px 16px 0; padding: 10px; border-radius: 12px; background: var(--term-panel-2); }
.term-detail-chart svg { display: block; width: 100%; height: 110px; }
.term-detail-chart path { fill: none; stroke: var(--term-text); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.term-detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 16px 16px 0; }
.term-detail-facts > div { display: flex; align-items: center; justify-content: space-between; height: 26px; font: 400 .7rem/1 Outfit, system-ui, sans-serif; }
.term-detail-facts dt { color: var(--term-faint); }
.term-detail-facts dd { margin: 0; font-weight: 500; }
.term-detail label { display: grid; gap: 7px; margin: 16px 16px 0; color: var(--term-faint); font: 500 .66rem/1 Outfit, system-ui, sans-serif; }
.term-detail label > span { display: flex; align-items: center; padding-inline-end: 4px; border-radius: 10px; background: var(--term-panel-2); box-shadow: inset 0 0 0 1px var(--term-ring); }
.term-detail input, .term-detail textarea {
  width: 100%; padding: 10px 12px; border: 0; outline: 0; border-radius: 10px; background: transparent;
  color: var(--term-text); font: 500 .76rem/1.5 Outfit, system-ui, sans-serif;
}
.term-detail textarea { resize: vertical; background: var(--term-panel-2); box-shadow: inset 0 0 0 1px var(--term-ring); }
.term-detail label > span b { flex: none; padding: 5px 9px; border-radius: 7px; background: var(--term-panel-3); color: var(--term-muted); font: 600 .64rem/1 Outfit, system-ui, sans-serif; }
.term-detail footer { display: flex; align-items: center; gap: 10px; padding: 16px; }
.term-detail footer button, .term-detail footer a {
  height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-radius: 9px;
  color: var(--term-focus); background: color-mix(in srgb, var(--term-focus) 14%, transparent); text-decoration: none;
  font: 600 .68rem/1 Outfit, system-ui, sans-serif;
}
.term-detail footer a { color: var(--term-muted); background: var(--term-panel-2); margin-inline-start: auto; }
.term-detail footer .term-danger { color: var(--term-red); background: color-mix(in srgb, var(--term-red) 14%, transparent); padding: 0 10px; }

.term-help { width: min(720px, 94vw); max-height: 86vh; overflow: auto; }
.term-help-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 16px; }
.term-help-body h3 { margin: 0 0 8px; color: var(--term-faint); font: 600 .6rem/1 Outfit, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.term-help-body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; align-items: center; }
.term-help-body dt { display: flex; gap: 3px; }
.term-help-body dd { margin: 0; color: var(--term-muted); font: 400 .68rem/1.35 Outfit, system-ui, sans-serif; }
.term-help-body kbd {
  min-width: 20px; padding: 3px 5px; border-radius: 5px; background: var(--term-panel-3);
  box-shadow: inset 0 0 0 1px var(--term-ring); color: var(--term-text); text-align: center;
  font: 600 .6rem/1 Outfit, system-ui, sans-serif;
}

.term-toast {
  position: fixed; left: 50%; bottom: 86px; z-index: 98; transform: translateX(-50%);
  padding: 10px 16px; border-radius: 11px; background: var(--term-panel-2);
  box-shadow: inset 0 0 0 1px var(--term-ring), var(--term-depth);
  font: 500 .72rem/1 Outfit, system-ui, sans-serif;
}

.term-app.is-popout .term-head, .term-app.is-popout .term-dock { display: none; }
.term-app.is-popout .term-stage { padding: 0; }

@media (max-width: 900px) {
  .term-topbar { height: auto; flex-wrap: wrap; padding: 8px 12px; }
  .term-toolbar { padding-inline: 12px; }
  .term-search-slot { order: 3; width: 100%; }
  .term-search { max-width: none; }
  .term-boards { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .term-avatar, .term-rule { display: none; }
  .term-stage { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 96px; }
  .term-widget { grid-column: 1 / -1; height: auto; min-height: 320px; }
  .term-widget-chart { min-height: 520px; }
  .term-add-tile { grid-column: 1 / -1; }
  .term-resize { display: none; }
  .term-chart-wrap { grid-template-columns: minmax(0, 1fr) 54px; }
  .term-chart-dates { margin-inline-end: 54px; }
  .term-heatmap { grid-template-columns: repeat(4, 1fr); }
  .term-heat-tile:nth-child(n) { grid-column: span 2; grid-row: span 1; }
  .term-company-grid, .term-company-row { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .term-app * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.term-search { position: relative; }
.term-search-results {
  position: absolute; left: 0; right: 0; top: 40px; z-index: 80; padding: 5px;
  border-radius: 12px; background: var(--term-panel-2);
  box-shadow: inset 0 0 0 1px var(--term-ring), var(--term-depth);
}
.term-search-results button {
  width: 100%; min-height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 9px;
  border: 0; border-radius: 8px; color: var(--term-text); background: transparent; text-align: start;
  font: 400 .72rem/1 Outfit, system-ui, sans-serif;
}
.term-search-results button.is-active, .term-search-results button:hover { background: var(--term-panel-3); }
.term-search-results b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.term-search-results small { flex: none; color: var(--term-faint); font: 500 .62rem/1 Outfit, system-ui, sans-serif; }
.term-search-kind {
  flex: none; padding: 3px 6px; border-radius: 5px; background: var(--term-panel-3); color: var(--term-faint);
  font: 600 .56rem/1 Outfit, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase;
}

.term-tool-slot { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; }
.term-tool { position: relative; }
.term-tool-caret {
  position: absolute; right: 2px; bottom: 2px; width: 0; height: 0;
  border-left: 3px solid transparent; border-bottom: 3px solid currentColor; opacity: .55;
}
.term-tool-menu {
  position: absolute; top: 0; left: 34px; z-index: 36; width: 268px; max-height: 60vh; overflow: auto;
  padding: 5px; border-radius: 12px; background: var(--term-panel-2);
  box-shadow: inset 0 0 0 1px var(--term-ring), var(--term-depth); scrollbar-width: thin;
}
.term-tool-menu p { margin: 0; padding: 8px 10px 7px; color: var(--term-faint); font: 600 10px/1 Outfit, system-ui, sans-serif; letter-spacing: .9px; }
.term-tool-menu button {
  width: 100%; height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 10px;
  border: 0; border-radius: 8px; color: var(--term-muted); background: transparent; text-align: start;
}
.term-tool-menu button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12.5px/1 Outfit, system-ui, sans-serif; }
.term-tool-menu button kbd { color: var(--term-faint); font: 500 11px/1 Outfit, system-ui, sans-serif; }
.term-tool-menu button svg { flex: none; opacity: .85; }
.term-tool-menu button:hover { background: var(--term-panel-3); }
.term-tool-menu button[aria-checked='true'] { color: var(--term-text); background: var(--term-panel-3); }

.term-chart-id { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px 0; min-width: 0; }
.term-chart-id > div { flex: 1; min-width: 0; }
.term-chart-id p { margin: 0; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.term-chart-id p b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 17px/1 Outfit, system-ui, sans-serif; letter-spacing: -.4px; }
.term-chart-id p em { flex: none; color: var(--term-muted); font: 500 12px/1 Outfit, system-ui, sans-serif; font-style: normal; }
.term-chart-id small { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--term-faint); font: 400 10.5px/1 Outfit, system-ui, sans-serif; }
.term-chart-id > b { flex: none; white-space: nowrap; font: 600 15px/1 Outfit, system-ui, sans-serif; }
.term-chart-id > span:last-child { flex: none; white-space: nowrap; font: 500 12px/1 Outfit, system-ui, sans-serif; }
.term-volume-label { position: absolute; left: 8px; bottom: 62px; color: var(--term-faint); font: 500 10px/1 Outfit, system-ui, sans-serif; pointer-events: none; }
.term-ranges-pill button { height: 22px; padding: 0 9px; border-radius: 11px; }

.term-book, .term-tape, .term-depth { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.term-book-venue { height: 30px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--term-line); }
.term-book-venue b { height: 20px; padding: 0 8px; border-radius: 6px; background: var(--term-panel-3); font: 500 11px/20px Outfit, system-ui, sans-serif; }
.term-book-venue small { color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-book-head, .term-tape-head {
  height: 22px; flex: none; display: flex; align-items: center; padding: 0 10px;
  color: var(--term-faint); font: 600 10px/1 Outfit, system-ui, sans-serif; letter-spacing: .7px;
}
.term-tape-head { height: 24px; border-bottom: 1px solid var(--term-line); }
.term-book-head span, .term-tape-head span { flex: 1; }
.term-book-head span:nth-child(2) { text-align: center; }
.term-book-head span:last-child, .term-tape-head span:not(:first-child) { text-align: end; }
.term-book-rows, .term-tape-rows { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.term-book-row { display: flex; align-items: center; height: 22px; padding: 0 10px; font: 500 11px/1 Outfit, system-ui, sans-serif; }
.term-book-side { position: relative; flex: 1; display: flex; align-items: center; height: 18px; }
.term-book-side.is-ask { justify-content: flex-end; }
.term-book-side i { position: absolute; inset-block: 0; right: 0; width: var(--fill, 0%); border-radius: 3px; background: var(--term-green-soft); }
.term-book-side.is-ask i { right: auto; left: 0; background: var(--term-red-soft); }
.term-book-side span { position: relative; color: var(--term-muted); }
.term-book-price { flex: 1; text-align: center; }

.term-tape-row { display: flex; align-items: center; height: 21px; padding: 0 10px; font: 500 11px/1 Outfit, system-ui, sans-serif; }
.term-tape-row:nth-child(odd) { background: var(--term-panel-2); }
.term-tape-row span { flex: 1; }
.term-tape-row span:first-child { color: var(--term-faint); }
.term-tape-row span:not(:first-child) { text-align: end; }
.term-tape-row span:last-child { color: var(--term-muted); }

.term-heat-filters { height: 32px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--term-line); overflow-x: auto; scrollbar-width: none; }
.term-heat-filters::-webkit-scrollbar { display: none; }
.term-heat-filter {
  flex: none; height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 9px; border: 0;
  border-radius: 6px; background: var(--term-panel-3); color: var(--term-muted);
  font: 500 11px/1 Outfit, system-ui, sans-serif;
}

.term-watch-head { height: 38px; }
.term-watch-name { display: flex; align-items: center; gap: 6px; min-width: 0; border: 0; background: transparent; color: inherit; }
.term-watch-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1 Outfit, system-ui, sans-serif; }
.term-watch-name svg { flex: none; color: var(--term-faint); }
.term-watch-head > button:not(.term-watch-name) {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 0; border-radius: 7px;
  color: var(--term-muted); background: transparent;
}
.term-watch-head > button:not(.term-watch-name):hover { color: var(--term-text); background: var(--term-panel-3); }
.term-watch-head [data-watch-add][aria-pressed='true'] { color: var(--term-accent); background: var(--term-panel-3); }
.term-watch-adder { flex: none; border-bottom: 1px solid var(--term-line); background: var(--term-panel-2); }
.term-watch-search { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--term-faint); }
.term-watch-search label { flex: 1; min-width: 0; }
.term-watch-search input { width: 100%; height: 34px; border: 0; outline: 0; background: transparent; color: var(--term-text); font: 400 12.5px/1 Outfit, system-ui, sans-serif; }
.term-watch-search button { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 0; border-radius: 11px; color: var(--term-faint); background: transparent; }
.term-watch-suggest { max-height: 150px; overflow: auto; padding: 0 6px 6px; scrollbar-width: thin; }
.term-watch-suggest button {
  width: 100%; height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 6px; border: 0;
  border-radius: 8px; background: transparent; color: var(--term-text); text-align: start;
}
.term-watch-suggest button:hover { background: var(--term-panel-3); }
.term-watch-suggest b { width: 56px; flex: none; font: 600 11.5px/1 Outfit, system-ui, sans-serif; }
.term-watch-suggest small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--term-faint); font: 400 11.5px/1 Outfit, system-ui, sans-serif; }
.term-watch-suggest svg { flex: none; color: var(--term-accent); }
.term-watch-group { width: 100%; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; background: var(--term-panel-2); color: var(--term-faint); }
.term-watch-group b { font: 600 9.5px/1 Outfit, system-ui, sans-serif; letter-spacing: 1px; }
.term-watch-group small { font: 500 9.5px/1 Outfit, system-ui, sans-serif; }
.term-watch-group[aria-expanded='false'] svg { transform: rotate(-90deg); }
.term-watch-venue { padding: 2px 3px; border-radius: 3px; background: var(--term-panel-3); color: var(--term-faint); font: 600 8px/1 Outfit, system-ui, sans-serif; }
.term-watch-live { width: 5px; height: 5px; border-radius: 3px; background: var(--term-faint); }
.term-watch-live.term-up { background: var(--term-green); }
.term-watch-live.term-down { background: var(--term-red); }
.term-watch-remove { width: 16px; height: 16px; display: grid; place-items: center; border: 0; border-radius: 8px; color: var(--term-faint); background: transparent; }
.term-watch-remove:hover { color: var(--term-red); background: var(--term-panel-3); }

.term-depth-top { height: 46px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--term-line); }
.term-depth-top div { display: grid; gap: 5px; }
.term-depth-top small { color: var(--term-faint); font: 400 9.5px/1 Outfit, system-ui, sans-serif; letter-spacing: .6px; }
.term-depth-top b { font: 600 14px/1 Outfit, system-ui, sans-serif; }
.term-depth-spread { flex: 1; justify-items: center; }
.term-depth-spread b { color: var(--term-muted); font: 500 12px/1 Outfit, system-ui, sans-serif; }
.term-depth-ask { justify-items: end; }
.term-depth-plot { position: relative; flex: 1; min-height: 0; }
.term-depth-plot svg { display: block; width: 100%; height: 100%; }
.term-depth-bid-fill { fill: var(--term-green); opacity: .16; }
.term-depth-ask-fill { fill: var(--term-red); opacity: .16; }
.term-depth-bid-line { fill: none; stroke: var(--term-green); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.term-depth-ask-line { fill: none; stroke: var(--term-red); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.term-depth-mid { stroke: var(--term-muted); stroke-width: .7; stroke-dasharray: 3 3; opacity: .5; vector-effect: non-scaling-stroke; }
.term-depth-wall { position: absolute; top: 8px; left: var(--wall, 50%); padding: 3px 6px; border-radius: 6px; white-space: nowrap; transform: translateX(-50%); font: 600 9.5px/1 Outfit, system-ui, sans-serif; }
.term-depth-wall.is-bid { background: var(--term-green-soft); color: var(--term-green); }
.term-depth-wall.is-ask { background: var(--term-red-soft); color: var(--term-red); }
.term-depth-ticks { position: relative; height: 22px; flex: none; }
.term-depth-ticks span { position: absolute; top: 2px; left: var(--tick, 50%); transform: translateX(-50%); white-space: nowrap; color: var(--term-faint); font: 400 9.5px/1 Outfit, system-ui, sans-serif; }
.term-depth .term-widget-foot b { font-weight: 500; }

.term-news-tabs { height: 32px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--term-line); overflow-x: auto; scrollbar-width: none; }
.term-news-tabs::-webkit-scrollbar { display: none; }
.term-news-tabs button {
  flex: none; height: 22px; padding: 0 9px; border: 0; border-radius: 6px; color: var(--term-muted);
  background: transparent; font: 500 11px/1 Outfit, system-ui, sans-serif;
}
.term-news-tabs button[aria-selected='true'] { color: var(--term-text); background: var(--term-panel-3); }
.term-news { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.term-news-item { display: block; width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--term-line); background: transparent; color: inherit; text-align: start; text-decoration: none; }
.term-news-item:hover { background: var(--term-panel-2); }
.term-news-top { display: flex; align-items: center; gap: 7px; }
.term-news-tag { height: 16px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--term-panel-3); color: var(--term-muted); font: 600 9.5px/1 Outfit, system-ui, sans-serif; }
.term-news-tag.term-up { background: var(--term-green-soft); }
.term-news-tag.term-down { background: var(--term-red-soft); }
.term-news-top time { color: var(--term-faint); font: 400 10.5px/1 Outfit, system-ui, sans-serif; }
.term-news-move { margin-inline-start: auto; font: 500 10.5px/1 Outfit, system-ui, sans-serif; }
.term-news-item h3 { margin: 7px 0 0; font: 500 12.5px/1.4 Outfit, system-ui, sans-serif; text-wrap: pretty; }
.term-news-item small { display: block; margin-top: 6px; color: var(--term-faint); font: 400 10.5px/1 Outfit, system-ui, sans-serif; }

.term-screen-query {
  height: 34px; min-width: 240px; max-width: 460px; flex: 1; display: flex; align-items: center; gap: 9px;
  padding: 0 5px 0 12px; border-radius: 17px; background: var(--term-panel-2);
  box-shadow: inset 0 0 0 1px var(--term-ring); color: var(--term-accent);
}
.term-screen-query:focus-within { box-shadow: inset 0 0 0 1px var(--term-focus); }
.term-screen-query label { flex: 1; min-width: 0; }
.term-screen-query input { width: 100%; height: 32px; border: 0; outline: 0; background: transparent; color: var(--term-text); font: 400 12.5px/1 Outfit, system-ui, sans-serif; }
.term-screen-query kbd { flex: none; padding: 4px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--term-ring); color: var(--term-faint); font: 500 10px/1 Outfit, system-ui, sans-serif; }
.term-screen-query button { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 0; border-radius: 13px; background: var(--term-accent); color: var(--term-on-lime); }
.term-screen-tabs small { color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-screen-tabs b { flex: none; padding: 3px 6px; border-radius: 5px; background: var(--term-panel-3); font: 600 11px/1 Outfit, system-ui, sans-serif; }
.term-screen-tabs em { flex: none; padding: 3px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--term-ring); color: var(--term-muted); font: 500 10.5px/1 Outfit, system-ui, sans-serif; font-style: normal; }
.term-filter-main button i { color: var(--term-faint); font: 500 10.5px/1 Outfit, system-ui, sans-serif; font-style: normal; }

.term-cmd { width: min(600px, 94vw); margin-top: 12vh; border-radius: 16px; overflow: hidden; }
.term-cmd::backdrop { background: rgba(4, 6, 10, .62); backdrop-filter: blur(3px); }
.term-cmd-head { height: 56px; display: flex; align-items: center; gap: 11px; padding: 0 16px; border-bottom: 1px solid var(--term-line); color: var(--term-faint); }
.term-cmd-head input { flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; color: var(--term-text); font: 400 15px/1 Outfit, system-ui, sans-serif; }
.term-cmd-head kbd { flex: none; padding: 4px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--term-ring); color: var(--term-faint); font: 500 10.5px/1 Outfit, system-ui, sans-serif; }
.term-cmd-body { padding: 8px; max-height: 52vh; overflow: auto; scrollbar-width: thin; }
.term-cmd-section { margin: 0; padding: 8px 10px 6px; color: var(--term-faint); font: 600 10px/1 Outfit, system-ui, sans-serif; letter-spacing: 1.1px; }
.term-cmd-row {
  width: 100%; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border: 0;
  border-radius: 11px; background: transparent; color: var(--term-text); text-align: start;
}
.term-cmd-row:hover, .term-cmd-row.is-active { background: var(--term-panel-2); }
.term-cmd-row > div { flex: 1; min-width: 0; }
.term-cmd-row p { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.term-cmd-row p b { flex: none; font: 600 13.5px/1 Outfit, system-ui, sans-serif; }
.term-cmd-row p span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--term-muted); font: 400 13px/1 Outfit, system-ui, sans-serif; }
.term-cmd-row small { display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-cmd-quote { flex: none; text-align: end; }
.term-cmd-quote b { display: block; font: 500 13px/1 Outfit, system-ui, sans-serif; }
.term-cmd-quote span { display: block; margin-top: 6px; font: 500 11.5px/1 Outfit, system-ui, sans-serif; }
.term-cmd-foot { height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-top: 1px solid var(--term-line); color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-cmd-empty { padding: 14px 10px 18px; color: var(--term-faint); font: 400 12.5px/1.5 Outfit, system-ui, sans-serif; }

.term-compare-view { max-width: 1720px; margin: 0 auto; padding: 12px 16px 96px; }
.term-compare-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.term-compare-head h2 { margin: 0; font: 600 18px/1 Outfit, system-ui, sans-serif; letter-spacing: -.5px; }
.term-compare-head p { margin: 0; color: var(--term-faint); font: 400 12px/1 Outfit, system-ui, sans-serif; }
.term-bench { display: flex; align-items: center; gap: 8px; }
.term-bench > span { color: var(--term-faint); font: 400 12px/1 Outfit, system-ui, sans-serif; }
.term-bench button {
  height: 26px; padding: 0 10px; border: 0; border-radius: 7px; color: var(--term-muted);
  background: transparent; font: 500 11.5px/1 Outfit, system-ui, sans-serif;
}
.term-bench button.is-active { color: var(--term-text); background: var(--term-panel-3); }
.term-switch {
  display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 12px; border: 0;
  border-radius: 16px; background: transparent; box-shadow: inset 0 0 0 1px var(--term-ring);
  color: var(--term-muted); font: 500 12px/1 Outfit, system-ui, sans-serif;
}
.term-switch i { width: 30px; height: 17px; flex: none; display: flex; align-items: center; justify-content: flex-start; padding: 2px; border-radius: 9px; background: var(--term-panel-3); }
.term-switch i::after { content: ''; width: 13px; height: 13px; border-radius: 7px; background: var(--term-muted); }
.term-switch[aria-pressed='true'] i { justify-content: flex-end; background: var(--term-green); }
.term-switch[aria-pressed='true'] i::after { background: var(--term-on-green); }
.term-compare-add {
  height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 9px;
  background: var(--term-accent); color: var(--term-on-lime); font: 600 12.5px/1 Outfit, system-ui, sans-serif;
}
.term-compare-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; padding: 8px; border-radius: 12px; background: var(--term-panel); box-shadow: inset 0 0 0 1px var(--term-line); }
.term-compare-picker button { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 9px; border: 0; border-radius: 9px; background: transparent; color: var(--term-text); text-align: start; }
.term-compare-picker button:hover { background: var(--term-panel-2); }
.term-compare-picker b { width: 52px; flex: none; font: 600 11.5px/1 Outfit, system-ui, sans-serif; }
.term-compare-picker small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--term-faint); font: 400 11.5px/1 Outfit, system-ui, sans-serif; }
.term-compare-board { overflow: auto; border-radius: 14px; background: var(--term-panel); box-shadow: inset 0 0 0 1px var(--term-line); scrollbar-width: thin; }
.term-compare-inner { min-width: var(--compare-min, 900px); }
.term-compare-cols { display: grid; grid-template-columns: var(--compare-grid, repeat(3, minmax(0, 1fr))); gap: 0 14px; }
.term-compare-heads { position: sticky; top: 0; z-index: 8; padding: 12px 14px; background: var(--term-panel); border-bottom: 1px solid var(--term-line); }
.term-compare-card { border-radius: 12px; background: var(--term-panel-2); box-shadow: inset 0 0 0 1px var(--term-line); padding: 11px 12px; }
.term-compare-card-top { display: flex; align-items: center; gap: 9px; }
.term-compare-card-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13.5px/1 Outfit, system-ui, sans-serif; }
.term-compare-card-top button { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 0; border-radius: 6px; color: var(--term-muted); background: transparent; }
.term-compare-card-top button:hover { color: var(--term-text); background: var(--term-panel-3); }
.term-compare-card-quote { display: flex; align-items: baseline; gap: 8px; margin-top: 9px; }
.term-compare-card-quote b { font: 600 17px/1 Outfit, system-ui, sans-serif; letter-spacing: -.5px; }
.term-compare-card-quote span { font: 500 11.5px/1 Outfit, system-ui, sans-serif; }
.term-compare-card-quote small { margin-inline-start: auto; color: var(--term-faint); font: 400 10.5px/1 Outfit, system-ui, sans-serif; }
.term-compare-norm { padding: 16px 14px 6px; }
.term-compare-norm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.term-compare-norm-head b { font: 600 13px/1 Outfit, system-ui, sans-serif; }
.term-compare-norm-head small { color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-compare-key { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.term-compare-key span { display: flex; align-items: center; gap: 6px; color: var(--term-muted); font: 500 11px/1 Outfit, system-ui, sans-serif; }
.term-compare-key i { width: 9px; height: 3px; border-radius: 2px; background: var(--term-muted); }
.term-compare-norm svg { display: block; width: 100%; height: 220px; margin-top: 12px; }
.term-compare-norm path { fill: none; stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.term-compare-fin { padding: 18px 14px 0; }
.term-compare-fin-head { display: flex; align-items: center; gap: 9px; }
.term-compare-fin-head i { width: 9px; height: 9px; border-radius: 3px; }
.term-compare-fin-head b { font: 600 13px/1 Outfit, system-ui, sans-serif; }
.term-compare-fin-head small { color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-compare-fin .term-compare-cols { margin-top: 11px; }
.term-fin-card { border-radius: 12px; background: var(--term-panel-2); box-shadow: inset 0 0 0 1px var(--term-line); padding: 12px 12px 10px; }
.term-fin-card-top { display: flex; align-items: baseline; justify-content: space-between; }
.term-fin-card-top span { color: var(--term-muted); font: 500 11.5px/1 Outfit, system-ui, sans-serif; }
.term-fin-card-top b { font: 600 13px/1 Outfit, system-ui, sans-serif; }
.term-fin-plot { display: flex; gap: 8px; height: 118px; margin-top: 12px; }
.term-fin-axis { width: 46px; flex: none; display: flex; flex-direction: column; justify-content: space-between; text-align: end; color: var(--term-faint); font: 400 9.5px/1 Outfit, system-ui, sans-serif; }
.term-fin-bars { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 3px; padding: 0 2px 0 6px; border-left: 1px solid var(--term-line); border-bottom: 1px solid var(--term-line); }
.term-fin-bars i { flex: 1; height: var(--h, 4%); border-radius: 2px 2px 0 0; background: var(--bar, var(--term-panel-3)); }
.term-fin-x { display: flex; justify-content: space-between; margin-top: 7px; padding-inline-start: 54px; color: var(--term-faint); font: 400 9.5px/1 Outfit, system-ui, sans-serif; }
.term-fin-foot { display: flex; align-items: center; gap: 12px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--term-line); }
.term-fin-foot small { display: block; color: var(--term-faint); font: 400 10px/1 Outfit, system-ui, sans-serif; }
.term-fin-foot b { display: block; margin-top: 6px; font: 600 12px/1 Outfit, system-ui, sans-serif; }
.term-compare-section { padding: 22px 14px 0; }
.term-compare-section > h3 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--term-line); font: 600 15px/1 Outfit, system-ui, sans-serif; letter-spacing: -.3px; }
.term-compare-cell { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 38px; padding: 0 10px; border-bottom: 1px solid var(--term-line); border-radius: 6px; }
.term-compare-cell.is-best { background: var(--term-green-soft); }
.term-compare-cell span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--term-faint); font: 400 12px/1 Outfit, system-ui, sans-serif; }
.term-compare-cell b { flex: none; white-space: nowrap; font: 500 12.5px/1 Outfit, system-ui, sans-serif; }
.term-compare-cell.is-best b { color: var(--term-green); }
.term-compare-sources { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 22px 14px 18px; color: var(--term-faint); font: 400 11.5px/1.5 Outfit, system-ui, sans-serif; }
.term-compare-sources b { color: var(--term-muted); font: 600 12px/1 Outfit, system-ui, sans-serif; }

.term-company-view { max-width: 1480px; margin: 0 auto; padding: 16px 20px 96px; }
.term-company-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.term-company-top .term-logo { width: 52px; height: 52px; border-radius: 26px; font: 600 15px/1 Outfit, system-ui, sans-serif; }
.term-company-name h2 { margin: 0; font: 600 30px/1 Outfit, system-ui, sans-serif; letter-spacing: -1.2px; }
.term-company-name p { margin: 9px 0 0; color: var(--term-faint); font: 400 12px/1 Outfit, system-ui, sans-serif; }
.term-company-quote { text-align: end; }
.term-company-quote > div { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; }
.term-company-quote b { font: 600 30px/1 Outfit, system-ui, sans-serif; letter-spacing: -1.2px; }
.term-company-quote span { font: 600 14px/1 Outfit, system-ui, sans-serif; }
.term-company-quote small { display: block; margin-top: 9px; color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-company-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.term-company-actions button, .term-company-actions a {
  height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border: 0; border-radius: 18px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--term-ring); color: var(--term-text);
  text-decoration: none; font: 500 13px/1 Outfit, system-ui, sans-serif;
}
.term-company-actions .term-icon-only { width: 36px; padding: 0; justify-content: center; color: var(--term-muted); }
.term-company-actions .term-primary { padding: 0 20px; background: var(--term-accent); color: var(--term-on-lime); box-shadow: none; font-weight: 600; }
.term-company-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; margin-top: 16px; align-items: start; }
.term-company-main, .term-company-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.term-card { border-radius: 16px; background: var(--term-panel); box-shadow: inset 0 0 0 1px var(--term-line); padding: 16px 18px; }
.term-card.is-flush { padding: 0; overflow: hidden; }
.term-card h3 { margin: 0; font: 600 16px/1 Outfit, system-ui, sans-serif; letter-spacing: -.4px; }
.term-card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.term-card-head small { color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-company-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.term-company-row.is-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.term-key { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.term-key span { display: flex; align-items: center; gap: 7px; color: var(--term-muted); font: 400 11.5px/1 Outfit, system-ui, sans-serif; }
.term-key i { width: 9px; height: 9px; border-radius: 3px; background: var(--term-muted); }
.term-key i.is-line { width: 9px; height: 3px; border-radius: 2px; }
.term-rows { margin-top: 12px; }
.term-rows div { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 36px; border-bottom: 1px solid var(--term-line); }
.term-rows dt, .term-rows span { min-width: 0; color: var(--term-muted); font: 400 12px/1 Outfit, system-ui, sans-serif; overflow-wrap: anywhere; }
.term-rows dd, .term-rows b { margin: 0; flex: none; white-space: nowrap; font: 600 14px/1 Outfit, system-ui, sans-serif; }
.term-rows.is-tight div { height: 34px; }
.term-rows.is-tight dd, .term-rows.is-tight b { font: 500 12px/1 Outfit, system-ui, sans-serif; }
.term-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--term-line); }
.term-facts small { display: block; color: var(--term-faint); font: 400 11px/1.35 Outfit, system-ui, sans-serif; overflow-wrap: anywhere; }
.term-facts b { display: block; margin-top: 8px; font: 600 17px/1 Outfit, system-ui, sans-serif; }
.term-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 12px; }
.term-ohlc { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--term-line); }
.term-ohlc div small { display: block; color: var(--term-faint); font: 600 9.5px/1 Outfit, system-ui, sans-serif; letter-spacing: .8px; }
.term-ohlc div b { display: block; margin-top: 8px; font: 600 14px/1 Outfit, system-ui, sans-serif; }
.term-area { display: flex; margin-top: 14px; }
.term-area-plot { flex: 1; min-width: 0; position: relative; }
.term-area-plot svg { display: block; width: 100%; height: 300px; }
.term-area-plot path.is-fill { opacity: .12; stroke: none; }
.term-area-plot path.is-line { fill: none; stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.term-area-axis { width: 78px; flex: none; position: relative; }
.term-area-axis span { position: absolute; top: var(--top, 0); right: 0; transform: translateY(-50%); color: var(--term-faint); font: 400 10.5px/1 Outfit, system-ui, sans-serif; }
.term-area-axis b { position: absolute; top: var(--top, 0); right: 0; transform: translateY(-50%); padding: 3px 6px; border-radius: 5px; font: 600 10.5px/1 Outfit, system-ui, sans-serif; }
.term-area-months { display: flex; justify-content: space-between; margin-top: 8px; padding-inline-end: 78px; color: var(--term-faint); font: 400 10.5px/1 Outfit, system-ui, sans-serif; }
.term-bars { display: flex; align-items: flex-end; gap: 6px; margin-top: 18px; }
.term-bars i { flex: 1; height: var(--h, 10%); border-radius: 3px; background: var(--bar, var(--term-panel-3)); }
.term-bar-x { display: flex; justify-content: space-between; margin-top: 8px; color: var(--term-faint); font: 400 10px/1 Outfit, system-ui, sans-serif; }
.term-bar-x span { flex: 1; text-align: center; }
.term-pair { display: flex; align-items: flex-end; gap: 14px; margin-top: 16px; }
.term-pair > div { flex: 1; display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.term-pair i { flex: 1; height: var(--h, 10%); border-radius: 3px 3px 0 0; background: var(--bar, var(--term-panel-3)); }
.term-track { position: relative; height: 7px; margin-top: 8px; border-radius: 4px; background: var(--term-panel-3); }
.term-track i { position: absolute; inset-block: 0; left: 0; width: var(--w, 0%); border-radius: 4px; background: var(--bar, var(--term-green)); }
.term-track b { position: absolute; top: -2px; left: var(--peer, 50%); width: 2px; height: 11px; background: var(--term-text); opacity: .65; }
.term-returns { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.term-returns > div > div { display: flex; align-items: baseline; justify-content: space-between; }
.term-returns span { color: var(--term-muted); font: 400 12px/1 Outfit, system-ui, sans-serif; }
.term-returns b { font: 600 13px/1 Outfit, system-ui, sans-serif; }
.term-football { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.term-football > div { display: flex; align-items: center; gap: 12px; }
.term-football > div > span { width: 150px; flex: none; color: var(--term-muted); font: 400 11.5px/1.3 Outfit, system-ui, sans-serif; overflow-wrap: anywhere; }
.term-football-bar { position: relative; flex: 1; height: 20px; }
.term-football-bar i { position: absolute; top: 5px; left: var(--l, 0%); width: var(--w, 10%); height: 10px; border-radius: 5px; background: var(--bar, var(--term-accent)); opacity: .85; }
.term-football-bar b { position: absolute; top: 0; left: var(--now, 50%); width: 2px; height: 20px; background: var(--term-text); }
.term-football > div > b { width: 110px; flex: none; text-align: end; white-space: nowrap; font: 500 11.5px/1 Outfit, system-ui, sans-serif; }
.term-donut { display: flex; justify-content: center; position: relative; margin-top: 14px; }
.term-donut svg { display: block; transform: rotate(-90deg); }
.term-donut circle { fill: none; stroke-width: 7; }
.term-donut div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.term-donut b { font: 600 19px/1 Outfit, system-ui, sans-serif; letter-spacing: -.6px; }
.term-donut small { margin-top: 6px; color: var(--term-faint); font: 400 10.5px/1 Outfit, system-ui, sans-serif; }
.term-legend-rows { margin-top: 14px; }
.term-legend-rows div { display: flex; align-items: center; gap: 9px; height: 32px; border-top: 1px solid var(--term-line); }
.term-legend-rows i { width: 8px; height: 8px; flex: none; border-radius: 4px; background: var(--term-muted); }
.term-legend-rows span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px/1 Outfit, system-ui, sans-serif; }
.term-legend-rows b { flex: none; color: var(--term-muted); font: 500 11.5px/1 Outfit, system-ui, sans-serif; }
.term-analyst { display: flex; gap: 3px; height: 8px; margin-top: 14px; }
.term-analyst i:first-child { border-radius: 4px 0 0 4px; background: var(--term-green); }
.term-analyst i:nth-child(2) { background: var(--term-panel-3); }
.term-analyst i:last-child { border-radius: 0 4px 4px 0; background: var(--term-red); }
.term-analyst-legend { display: flex; justify-content: space-between; margin-top: 10px; color: var(--term-muted); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-peer { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 18px; border: 0; border-top: 1px solid var(--term-line); background: transparent; color: inherit; text-align: start; }
.term-peer:hover { background: var(--term-panel-2); }
.term-peer b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12.5px/1 Outfit, system-ui, sans-serif; }
.term-peer small { display: block; margin-top: 6px; color: var(--term-faint); font: 400 10.5px/1 Outfit, system-ui, sans-serif; }
.term-peer div:last-child { flex: none; text-align: end; }
.term-cta { border-radius: 16px; background: var(--term-accent); color: var(--term-on-lime); padding: 18px; }
.term-cta h3 { margin: 0; font: 600 16px/1 Outfit, system-ui, sans-serif; letter-spacing: -.4px; }
.term-cta p { margin: 10px 0 0; opacity: .78; font: 400 12.5px/1.5 Outfit, system-ui, sans-serif; text-wrap: pretty; }
.term-cta a { display: inline-flex; align-items: center; height: 38px; margin-top: 14px; padding: 0 18px; border-radius: 19px; background: #0B0B0B; color: #fff; text-decoration: none; font: 600 12.5px/1 Outfit, system-ui, sans-serif; }
.term-badge { height: 16px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--term-green-soft); color: var(--term-green); font: 600 9.5px/1 Outfit, system-ui, sans-serif; }
.term-prov { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.term-prov div { display: flex; align-items: center; justify-content: space-between; gap: 14px; font: 400 11.5px/1.3 Outfit, system-ui, sans-serif; }
.term-prov dt, .term-prov span { color: var(--term-faint); }
.term-prov dd, .term-prov b { margin: 0; text-align: end; font-weight: 500; }
.term-detail-venue { margin: 16px 16px 0; color: var(--term-faint); font: 500 11px/1 Outfit, system-ui, sans-serif; }
.term-detail-quote { padding-top: 9px; }
.term-detail-chart div { display: flex; justify-content: space-between; margin-top: 6px; color: var(--term-faint); font: 400 10.5px/1 Outfit, system-ui, sans-serif; }
.term-detail-prov { margin: 18px 16px 0; padding: 12px; border-radius: 12px; background: var(--term-panel-2); box-shadow: inset 0 0 0 1px var(--term-line); }
.term-detail-prov-head { display: flex; align-items: center; gap: 8px; }
.term-detail-prov-head b { font: 600 11.5px/1 Outfit, system-ui, sans-serif; }
.term-detail-prov-head em { height: 16px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--term-green-soft); color: var(--term-green); font: 600 9.5px/1 Outfit, system-ui, sans-serif; font-style: normal; }
.term-detail-prov dl { display: flex; flex-direction: column; gap: 7px; margin: 10px 0 0; }
.term-detail-prov dl div { display: flex; align-items: center; justify-content: space-between; gap: 14px; font: 400 11.5px/1.3 Outfit, system-ui, sans-serif; }
.term-detail-prov dt { color: var(--term-faint); }
.term-detail-prov dd { margin: 0; text-align: end; font-weight: 500; }

.term-heat-tile:nth-child(n) { grid-column: span var(--tile-span, 1); grid-row: span var(--tile-rows, 1); }
.term-heat-tile.is-large b { font: 600 12.5px/1 Outfit, system-ui, sans-serif; }
.term-heat-tile b { font: 600 10px/1 Outfit, system-ui, sans-serif; }
.term-heat-tile span { font: 500 10px/1 Outfit, system-ui, sans-serif; opacity: .82; }

.term-watch-group-row td { height: 26px; padding: 0; border: 0; }
.term-watch-table tbody th > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.term-watch-table tbody th em { font-style: normal; }
.term-watch-table td:last-child > span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.term-watch-table td:last-child { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.term-watch-table tbody tr.is-selected { box-shadow: inset 0 0 0 1px var(--term-focus); }
svg.is-rotated { transform: rotate(-90deg); }

.term-perf-bar span { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%) rotate(-38deg); transform-origin: top left; white-space: nowrap; color: var(--term-faint); font: 500 9.5px/1 Outfit, system-ui, sans-serif; }
.term-perf-bar i {
  position: absolute; left: 0; right: 0; top: var(--bar-top, 50%); height: var(--bar-height, 1px);
  border-radius: 3px; background: var(--bar-color, var(--term-line));
}
.term-empty-note { max-width: 46ch; }

.term-ranges button[disabled] { opacity: .42; cursor: not-allowed; }

.term-co-ranges { flex: none; }
.term-co-ranges button { height: 26px; padding: 0 11px; font: 500 11.5px/1 Outfit, system-ui, sans-serif; }
.term-quiet {
  height: 30px; padding: 0 14px; border: 0; border-radius: 15px; color: var(--term-muted);
  background: transparent; box-shadow: inset 0 0 0 1px var(--term-ring);
  font: 500 12px/1 Outfit, system-ui, sans-serif;
}
.term-card-title { margin: 0; padding: 16px 18px 12px; font: 600 16px/1 Outfit, system-ui, sans-serif; letter-spacing: -.4px; }
.term-card-note { color: var(--term-muted); font: 500 11.5px/1 Outfit, system-ui, sans-serif; }
.term-card-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--term-line); }
.term-card-foot small { color: var(--term-faint); font: 400 11.5px/1 Outfit, system-ui, sans-serif; }
.term-card-foot b { font: 500 12px/1 Outfit, system-ui, sans-serif; }
.term-card-foot .term-key { margin-top: 0; }
.term-card-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--term-line); }
.term-card-block small { color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-card-block .term-bars { margin-top: 12px; }

.term-plot { display: flex; align-items: stretch; gap: 10px; margin-top: 16px; }
.term-plot .term-bars, .term-plot .term-pair { flex: 1; min-width: 0; margin-top: 0; }
.term-plot-stack { position: relative; flex: 1; min-width: 0; }
.term-plot-stack .term-bars { margin-top: 0; }
.term-plot-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.term-axis-column {
  width: 54px; flex: none; display: flex; flex-direction: column; justify-content: space-between;
  text-align: end; color: var(--term-faint); font: 400 10px/1 Outfit, system-ui, sans-serif;
}
.term-axis-column.is-left { width: 44px; text-align: start; }
.term-bars.is-grounded, .term-pair.is-grounded { border-bottom: 1px solid var(--term-line); }
.term-line-chart { display: block; width: 100%; height: 150px; margin-top: 12px; }
.term-line-chart path { vector-effect: non-scaling-stroke; }

.term-facts.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.term-facts.is-three b { font: 600 15px/1 Outfit, system-ui, sans-serif; }

.term-waterfall { display: flex; align-items: flex-start; gap: 6px; height: 170px; margin-top: 16px; }
.term-waterfall > div { flex: 1; height: 100%; display: flex; flex-direction: column; }
.term-waterfall i { border-radius: 2px; background: var(--bar, var(--term-panel-3)); }

.term-columns { display: flex; align-items: flex-end; gap: 18px; height: 140px; margin-top: 18px; }
.term-columns > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 7px; }
.term-columns i { border-radius: 4px 4px 0 0; background: var(--bar, var(--term-panel-3)); }
.term-columns b { text-align: center; font: 600 12px/1 Outfit, system-ui, sans-serif; }
.term-columns small { text-align: center; overflow-wrap: anywhere; color: var(--term-faint); font: 400 10.5px/1.3 Outfit, system-ui, sans-serif; }

.term-dots { position: relative; flex: 1; min-width: 0; height: 170px; display: flex; }
.term-dots > div { position: relative; flex: 1; }
.term-dots i { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 7px; transform: translate(-50%, -50%); }
.term-dots i.is-estimate { left: 64%; background: var(--term-panel); box-shadow: inset 0 0 0 1.6px var(--term-muted); }
.term-dots i.is-actual { left: 36%; background: var(--term-panel-3); }

.term-diverging { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin-top: 16px; }
.term-diverging > div { flex: 1; display: flex; flex-direction: column; height: 100%; }
.term-diverging > div > div { height: 50%; display: flex; }
.term-diverging > div > div:first-child { align-items: flex-end; }
.term-diverging > div > div:last-child { align-items: flex-start; }
.term-diverging i { width: 100%; height: var(--h, 0%); background: var(--term-panel-3); }
.term-diverging > div > div:first-child i { border-radius: 3px 3px 0 0; }
.term-diverging > div > div:last-child i { border-radius: 0 0 3px 3px; }

.term-revisions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.term-revisions small { flex: none; color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-revision-track { flex: 1; display: flex; height: 8px; overflow: hidden; border-radius: 4px; background: var(--term-panel-3); }
.term-revision-track i.is-up { width: var(--up, 0%); background: var(--term-green); }
.term-revision-track i.is-down { width: var(--down, 0%); background: var(--term-red); }
.term-revisions b { flex: none; font: 500 11px/1 Outfit, system-ui, sans-serif; }

.term-track.is-range { margin-top: 10px; height: 5px; }
.term-track.is-range b { top: -4px; width: 13px; height: 13px; border-radius: 7px; background: var(--term-text); opacity: 1; transform: translateX(-50%); }

.term-co-news { display: flex; align-items: flex-start; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--term-line); color: inherit; text-decoration: none; }
.term-co-news:hover { background: var(--term-panel-2); }
.term-co-news > span { width: 52px; flex: none; color: var(--term-faint); font: 400 11.5px/1.4 Outfit, system-ui, sans-serif; }
.term-co-news > div { flex: 1; min-width: 0; }
.term-co-news b { display: block; font: 500 13px/1.45 Outfit, system-ui, sans-serif; text-wrap: pretty; }
.term-co-news small { display: block; margin-top: 7px; color: var(--term-faint); font: 400 11px/1 Outfit, system-ui, sans-serif; }
.term-co-news em { flex: none; font-style: normal; font: 500 11.5px/1 Outfit, system-ui, sans-serif; }
.term-card-head .term-badge { margin-inline-start: 2px; }

.term-fin-empty { flex: 1; min-width: 0; display: grid; place-content: center; padding: 0 8px; text-align: center; color: var(--term-faint); font: 400 11px/1.4 Outfit, system-ui, sans-serif; }

.term-event-badge {
  flex: none; display: inline-grid; place-items: center; width: 20px; height: 16px;
  border-radius: 5px; color: #04240F; font: 700 8.5px/1 Outfit, system-ui, sans-serif; font-style: normal;
}
.term-event-badge.is-beat { background: #22C55E; }
.term-event-badge.is-miss { background: #FF6257; color: #2A0705; }
.term-event-badge.is-dividend { width: 16px; border-radius: 50%; background: #22D3EE; color: #04222A; }
.term-event-badge.is-split { width: 13px; height: 13px; border-radius: 3px; background: #CBF24C; color: #181D06; transform: rotate(45deg); }
.term-event-badge.is-split { font-size: 8px; }
.term-event-badge.is-alert { width: 16px; border-radius: 8px 8px 3px 3px; background: #FF6257; color: #2A0705; }

.term-alert-line { stroke: var(--term-text); stroke-width: 1; stroke-dasharray: 4 4; opacity: .45; vector-effect: non-scaling-stroke; }
.term-axis-price.is-alert { background: var(--term-panel-3); color: var(--term-muted); }
.term-axis-volume { position: absolute; right: 7px; bottom: 66px; color: var(--term-faint); font: 400 10px/1 Outfit, system-ui, sans-serif; }
.term-chart-legend .term-legend-item { gap: 6px; }

.term-date-event.is-earnings { background: #22C55E; color: #04240F; }
.term-date-event.is-dividend { border-radius: 50%; background: #22D3EE; color: #04222A; }
.term-date-event.is-split { border-radius: 3px; background: #CBF24C; color: #181D06; }

.term-screen-table tbody th, .term-screen-table thead th:first-child {
  position: sticky; left: 0; z-index: 4; background: var(--term-panel);
}
.term-screen-table thead th:first-child { z-index: 7; }
.term-screen-table tbody tr:hover th { background: var(--term-panel-2); }

.term-widget:not(.term-widget-chart) {
  content-visibility: auto;
  contain-intrinsic-size: auto var(--widget-h, 360px);
}
.term-company-main > *, .term-company-rail > *, .term-compare-section, .term-compare-fin {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

.term-widget { contain: layout paint style; }
.term-widget.is-maximized { contain: none; content-visibility: visible; }

@media (pointer: coarse) {
  .term-board, .term-views button, .term-edit, .term-dock button,
  .term-widget-controls button, .term-watch-remove, .term-news-tabs button,
  .term-screen-tabs button, .term-ranges button, .term-heat-filter,
  .term-widget-foot button, .term-watch-head > button, .term-watch-name { position: relative; }
  .term-board::after, .term-views button::after, .term-edit::after, .term-dock button::after,
  .term-widget-controls button::after, .term-watch-remove::after, .term-news-tabs button::after,
  .term-screen-tabs button::after, .term-ranges button::after, .term-heat-filter::after,
  .term-widget-foot button::after, .term-watch-head > button::after, .term-watch-name::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 24px);
    height: max(100%, 24px);
    transform: translate(-50%, -50%);
  }
}
