/* =========================================================
   RONDERA · Terminal stylesheet
   Bloomberg-style dense monospace UI
   ========================================================= */

:root {
  /* Palette */
  --bg:        #0A0E14;
  --bg-soft:   #0F141C;
  --bg-2:      #131923;
  --bg-3:      #1A2230;
  --line:      #1A2230;
  --line-2:    #232C3A;
  --line-3:    #2C3849;
  --txt:       #D4DBE5;
  --txt-2:     #9AA5B5;
  --txt-3:     #5C6573;
  --txt-4:     #3A4252;
  --brand:     #FF6B35;
  --brand-2:   #FF8A4D;
  --green:     #00D68F;
  --green-d:   #00A86B;
  --red:       #FF4D6A;
  --red-d:     #D93551;
  --amber:     #FFB800;
  --blue:      #4D9EFF;
  --violet:    #9D7CFF;
  --pink:      #FF6B9D;

  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --row-h: 28px;
  --hd-h:  48px;
  --fk-h:  32px;
  --tk-h:  30px;
  --sb-h:  24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  font-feature-settings: "tnum", "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}
* { scrollbar-width: thin; scrollbar-color: var(--bg-3) var(--bg-soft); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }
::selection { background: var(--brand); color: var(--bg); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--brand-2); }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
input { background: none; border: 0; color: inherit; font: inherit; outline: none; }
ul { list-style: none; }

/* =========================================================
   LANGUAGE TOGGLE
   ========================================================= */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  height: 24px;
  overflow: hidden;
}
.lang-btn {
  padding: 0 8px;
  height: 100%;
  display: grid; place-items: center;
  color: var(--txt-3);
  background: transparent;
  border-right: 1px solid var(--line-2);
  transition: all 0.2s var(--ease);
  font-family: var(--mono);
}
.lang-btn:last-child { border-right: 0; }
.lang-btn:hover { color: var(--brand); }
.lang-btn.is-active {
  background: var(--brand);
  color: var(--ink);
}

/* =========================================================
   HEADER
   ========================================================= */
.hd {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 16px;
  height: var(--hd-h);
  padding: 0 12px;
  background: linear-gradient(180deg, #11161F 0%, #0B0F16 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.hd__left { display: flex; align-items: center; gap: 16px; }
.hd__center { display: flex; justify-content: center; }
.hd__right { display: flex; align-items: center; gap: 8px; }

.hd__brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 28px;
  background: var(--brand); color: var(--bg);
  font-weight: 800; font-size: 14px; letter-spacing: -0.04em;
  border-radius: 2px;
  font-family: var(--mono);
  position: relative;
  line-height: 1;
  white-space: nowrap;
}
.brand-mark span {
  font-weight: 800;
  display: inline-block;
  line-height: 1;
  margin-left: -1px;
}
.brand-mark::after {
  content: ""; position: absolute; inset: -2px;
  border: 1px solid var(--brand); border-radius: 3px; opacity: 0.4;
}
.brand-word { font-weight: 700; font-size: 14px; letter-spacing: 0.12em; color: var(--txt); }
.brand-tag  { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--txt-3); padding-left: 10px; border-left: 1px solid var(--line-2); }

.hd__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--txt-2);
  font-feature-settings: "tnum";
}
.hd__chip--alert { color: var(--amber); border-color: rgba(255,184,0,0.3); background: rgba(255,184,0,0.05); }
.hd__clock { font-size: 13px; font-weight: 600; color: var(--txt); font-feature-settings: "tnum"; min-width: 78px; text-align: right; }
.hd__date  { font-size: 11px; color: var(--txt-3); }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--txt-3); }
.dot--green { background: var(--green); box-shadow: 0 0 6px rgba(0,214,143,0.5); animation: pulse 2.4s ease-in-out infinite; }
.dot--red   { background: var(--red); }
.dot--amber { background: var(--amber); }
.dot--blue  { background: var(--blue); }
@keyframes pulse { 50% { opacity: 0.4; } }

/* GO search */
.go {
  display: flex; align-items: center; gap: 0;
  width: min(560px, 100%);
  background: var(--bg);
  border: 1px solid var(--line-2);
  height: 30px;
}
.go:focus-within { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.go__label {
  padding: 0 10px; height: 100%; display: grid; place-items: center;
  background: var(--brand); color: var(--bg);
  font-weight: 800; font-size: 12px; letter-spacing: 0.05em;
}
.go input { flex: 1; padding: 0 10px; font-size: 12px; color: var(--txt); }
.go input::placeholder { color: var(--txt-3); }
.go__hint {
  padding: 0 8px; font-size: 10px; color: var(--txt-3);
  border-left: 1px solid var(--line-2); height: 100%; display: grid; place-items: center;
}

/* =========================================================
   FUNCTION KEY BAR
   ========================================================= */
.fkey {
  display: flex; align-items: center;
  height: var(--fk-h);
  padding: 0 8px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  gap: 2px;
  overflow-x: auto;
}
.fkey__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: var(--mono); font-size: 11px; color: var(--txt-2);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.12s;
}
.fkey__btn:hover { background: var(--bg-2); border-color: var(--line-2); color: var(--txt); }
.fkey__btn span {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 16px; padding: 0 4px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-size: 9px; font-weight: 700; color: var(--txt-3);
  border-radius: 1px;
}
.fkey__btn:hover span { color: var(--brand); border-color: var(--brand); }
.fkey__btn--accent { color: var(--brand); }
.fkey__btn--accent span { color: var(--brand); border-color: rgba(255,107,53,0.4); }
.fkey__btn--accent:hover { background: rgba(255,107,53,0.08); }
.fkey__sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }

/* =========================================================
   TICKER
   ========================================================= */
.ticker {
  display: flex; align-items: stretch;
  height: var(--tk-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker__lbl {
  flex-shrink: 0;
  display: grid; place-items: center;
  padding: 0 10px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.15em;
  animation: live 1.6s steps(2) infinite;
}
@keyframes live { 50% { background: var(--red-d); } }
.ticker__viewport { flex: 1; overflow: hidden; position: relative; }
.ticker__track {
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap;
  padding-left: 100%;
  height: 100%;
  animation: tickerScroll 90s linear infinite;
  font-size: 11px;
}
.ticker__track .item { display: inline-flex; align-items: center; gap: 8px; }
.ticker__track .tk { color: var(--brand); font-weight: 700; }
.ticker__track .cp { color: var(--txt); }
.ticker__track .up { color: var(--green); }
.ticker__track .dn { color: var(--red); }
.ticker__track .sep { color: var(--txt-4); padding: 0 4px; }
@keyframes tickerScroll { to { transform: translateX(-100%); } }

/* =========================================================
   KPI STRIP
   ========================================================= */
.kpis {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.kpi {
  padding: 10px 14px;
  border-right: 1px solid var(--line);
  position: relative;
}
.kpi:last-child { border-right: 0; }
.kpi__lbl {
  font-size: 10px; color: var(--txt-3);
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.kpi__sub { color: var(--txt-4); font-size: 9px; }
.kpi__val {
  font-size: 24px; font-weight: 700; color: var(--txt);
  font-feature-settings: "tnum";
  margin: 4px 0 2px;
  letter-spacing: -0.01em;
}
.kpi__delta { font-size: 10px; color: var(--txt-3); font-feature-settings: "tnum"; }
.kpi__delta--up { color: var(--green); }
.kpi__delta--dn { color: var(--red); }
.kpi--alert .kpi__val { color: var(--amber); }
.kpi--alert { background: rgba(255,184,0,0.04); }
.kpi--alert .kpi__delta { color: var(--amber); font-weight: 700; }

/* =========================================================
   MAIN GRID
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1px;
  background: var(--line);
  padding: 1px;
}

/* Row 1: opportunity feed — full width */
#panelTable  { grid-column: span 12; grid-row: 1; min-height: 520px; }

/* Row 2: compact panels */
#panelWatch  { grid-column: span 4; grid-row: 2; min-height: 280px; }
#panelMovers { grid-column: span 4; grid-row: 2; min-height: 280px; }
#panelPipe   { grid-column: span 4; grid-row: 2; min-height: 280px; }

/* Row 3: heatmap + events */
#panelHeat   { grid-column: span 4; grid-row: 3; min-height: 280px; }
#panelEvents { grid-column: span 4; grid-row: 3; min-height: 280px; }

/* Row 4: news — full width, horizontal 3-col layout */
#panelNews   { grid-column: span 12; grid-row: 4; min-height: 260px; overflow: hidden; }

/* =========================================================
   PANEL
   ========================================================= */
.panel {
  background: var(--bg-soft);
  display: flex; flex-direction: column;
  position: relative;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-soft) 100%);
  min-height: 28px;
  flex-shrink: 0;
}
.panel__head h2 {
  font-size: 11px; font-weight: 600; color: var(--txt);
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.pn {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 14px; padding: 0 4px;
  background: var(--bg); border: 1px solid var(--line-2);
  color: var(--txt-3); font-size: 9px; font-weight: 700;
}
.panel__head h2 .sub { color: var(--txt-3); font-weight: 400; text-transform: none; letter-spacing: 0.05em; }

.panel__tools { display: inline-flex; align-items: center; gap: 4px; }
.tt {
  padding: 3px 8px;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--txt-3);
  border: 1px solid var(--line);
  background: var(--bg);
  font-feature-settings: "tnum";
}
.tt:hover { color: var(--brand); border-color: var(--brand); }
.tt.is-active { color: var(--bg); background: var(--brand); border-color: var(--brand); }

.panel__body { flex: 1; overflow: hidden; }
.panel__body--scroll { overflow: auto; }
.panel__foot {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 10px; color: var(--txt-3);
  flex-shrink: 0;
}
.panel__foot .sep { color: var(--txt-4); }
.status { display: inline-flex; align-items: center; gap: 5px; }
.status--live { color: var(--green); }

/* =========================================================
   TABLES
   ========================================================= */
.tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.tbl thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-2);
  color: var(--txt-3);
  text-align: left;
  font-weight: 500; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.tbl thead th:hover { color: var(--brand); }
.tbl thead th.ar { text-align: right; }
.tbl thead th.t-watch { width: 26px; padding: 5px 4px; cursor: default; }
.tbl thead th.is-sorted { color: var(--brand); }
.tbl thead th.is-sorted::after { content: " ↓"; }
.tbl thead th.is-sorted.is-asc::after { content: " ↑"; }

.tbl tbody tr { transition: background 0.08s; }
.tbl tbody tr:hover { background: rgba(255,107,53,0.04); }
.tbl--mini tbody tr { cursor: pointer; }
.tbl--mini td { padding: 4px 8px; border-bottom: 1px solid var(--bg); height: var(--row-h); }
.tbl--mini .tk { color: var(--brand); font-weight: 700; }
.tbl--mini .cp { color: var(--txt); font-feature-settings: "tnum"; text-align: right; }
.tbl--mini .delta-up { color: var(--green); }
.tbl--mini .delta-dn { color: var(--red); }

.tbl--main td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--bg);
  white-space: nowrap;
  vertical-align: middle;
}
.tbl--main tbody tr { cursor: pointer; }
.tbl--main .tk { color: var(--brand); font-weight: 700; }
.tbl--main .title { color: var(--txt); }
.tbl--main .co { color: var(--txt-2); }
.tbl--main .num { text-align: right; font-feature-settings: "tnum"; }
.tbl--main .ar { text-align: right; }
.tbl--main .watch-btn {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  color: var(--txt-4); font-size: 13px;
}
.tbl--main .watch-btn.is-on { color: var(--amber); }
.tbl--main tr.is-watched { background: rgba(255,184,0,0.04); }
.tbl--main tr.is-watched:hover { background: rgba(255,184,0,0.08); }
.tbl--main .row-act {
  padding: 3px 8px; font-size: 10px;
  color: var(--brand); border: 1px solid var(--line-2);
}
.tbl--main .row-act:hover { color: var(--bg); background: var(--brand); border-color: var(--brand); }

/* =========================================================
   BADGES & STATUS
   ========================================================= */
.badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--txt);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 1px;
}
.badge--job    { color: var(--blue);   border-color: rgba(77,158,255,0.4); }
.badge--intern { color: var(--violet); border-color: rgba(157,124,255,0.4); }
.badge--train  { color: var(--amber);  border-color: rgba(255,184,0,0.4); }
.badge--event  { color: var(--pink);   border-color: rgba(255,107,157,0.4); }
.badge--fellow { color: var(--green);  border-color: rgba(0,214,143,0.4); }
.badge--work   { color: var(--brand-2);border-color: rgba(255,138,77,0.4); }
.badge--scholar{ color: #14B8A6;                  border-color: rgba(20,184,166,0.45); background: rgba(20,184,166,0.06); }

.st { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.st--open    { color: var(--green); }
.st--open::before    { content: "●"; margin-right: 4px; }
.st--closing { color: var(--amber); }
.st--closing::before { content: "●"; margin-right: 4px; }
.st--closed  { color: var(--txt-4); }
.st--closed::before  { content: "●"; margin-right: 4px; }

/* =========================================================
   SPARKLINES
   ========================================================= */
.sp {
  display: inline-block; width: 60px; height: 18px; vertical-align: middle;
}
.sp svg { display: block; }
.sp .sp-line { fill: none; stroke-width: 1; }
.sp .sp-fill { stroke: none; opacity: 0.18; }
.sp--green .sp-line { stroke: var(--green); }
.sp--green .sp-fill { fill: var(--green); }
.sp--red .sp-line   { stroke: var(--red); }
.sp--red .sp-fill   { fill: var(--red); }
.sp--brand .sp-line { stroke: var(--brand); }
.sp--brand .sp-fill { fill: var(--brand); }

.sp-cell { display: flex; align-items: center; gap: 6px; }
.sp-val { font-size: 10px; color: var(--txt-3); font-feature-settings: "tnum"; }

/* =========================================================
   PIPELINE
   ========================================================= */
.pipe {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  height: 100%;
  border-bottom: 1px solid var(--line);
}
.pipe__col {
  background: var(--bg-soft);
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.pipe__col::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent, var(--txt-4));
}
.pipe__head { display: flex; justify-content: space-between; align-items: baseline; }
.pipe__lbl { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--txt-3); }
.pipe__val { font-size: 24px; font-weight: 700; color: var(--txt); font-feature-settings: "tnum"; line-height: 1; }
.pipe__bar { height: 4px; background: var(--bg); position: relative; margin-top: auto; }
.pipe__bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: var(--accent, var(--txt-3)); }
.pipe__delta { font-size: 10px; color: var(--txt-3); }

/* =========================================================
   HEATMAP
   ========================================================= */
.hm {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  background: var(--line);
  height: 100%;
  border-bottom: 1px solid var(--line);
}
.hm__cell {
  background: var(--bg-soft);
  padding: 8px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  cursor: pointer;
  transition: filter 0.15s;
}
.hm__cell:hover { filter: brightness(1.3); outline: 1px solid var(--brand); outline-offset: -1px; }
.hm__name { font-size: 10px; font-weight: 600; color: var(--txt); letter-spacing: 0.05em; }
.hm__match { font-size: 18px; font-weight: 700; font-feature-settings: "tnum"; }
.hm__delta { font-size: 9px; }
.hm__delta--up { color: var(--green); }
.hm__delta--dn { color: var(--red); }
.hm__count { font-size: 9px; color: var(--txt-3); }

/* =========================================================
   EVENTS
   ========================================================= */
.events { padding: 0; }
.events li {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px; align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--bg);
  font-size: 11px;
}
.events li:hover { background: var(--bg-2); }
.events .when { color: var(--amber); font-feature-settings: "tnum"; }
.events .what { color: var(--txt); }
.events .what .org { color: var(--txt-3); display: block; font-size: 10px; margin-top: 2px; }
.events .countdown {
  font-size: 10px; color: var(--txt-2); font-feature-settings: "tnum";
  padding: 2px 6px; background: var(--bg); border: 1px solid var(--line);
}
.events .countdown.urgent { color: var(--red); border-color: rgba(255,77,106,0.4); background: rgba(255,77,106,0.06); }

/* =========================================================
   NEWS — horizontal 3-column layout spanning full width
   ========================================================= */
.news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  padding: 1px;
  overflow: hidden;
}
.news li {
  background: var(--bg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 100px;
  transition: background 80ms;
  position: relative;
}
.news li:hover { background: var(--bg-2); }
.news .n-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--txt);
  text-decoration: none;
  height: 100%;
}
.news .n-link:hover { color: var(--brand); }
.news .n-link:hover .n-src { color: var(--amber); }
.news .n-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.news .n-time {
  color: var(--txt-3);
  font-feature-settings: "tnum";
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.news .n-tag {
  display: inline-block;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-2);
  white-space: nowrap;
}
.n-tag--NEW   { color: var(--green); border-color: rgba(0,214,143,0.4); background: rgba(0,214,143,0.06); }
.n-tag--MOVE  { color: var(--blue);  border-color: rgba(77,158,255,0.4); background: rgba(77,158,255,0.06); }
.n-tag--EVENT { color: var(--pink);  border-color: rgba(255,107,157,0.4); background: rgba(255,107,157,0.06); }
.n-tag--ALERT { color: var(--amber); border-color: rgba(255,184,0,0.4);  background: rgba(255,184,0,0.06); }
.n-tag--NOTE  { color: var(--txt-2); }
.news .n-text {
  color: var(--txt);
  font-size: 11px;
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.news .n-src {
  color: var(--txt-3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
}
.news .n-link:hover .n-src { color: var(--amber); }

/* responsive: 2 columns on tablet, 1 on mobile */
@media (max-width: 1280px) {
  .news { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .news { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .news { grid-template-columns: 1fr; }
}

/* clickable cells: ticker / title in tables, news rows, event names, etc. */
a.cell-link { color: inherit; text-decoration: none; border-bottom: 1px dotted transparent; transition: color 80ms, border-color 80ms; }
a.cell-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
a.cell-link--title { display: inline-block; max-width: 100%; }
.tbl--main tr:hover .cell-link--title { color: var(--brand); }
.event .what a.cell-link { font-weight: 600; }
.event .what a.cell-link:hover { color: var(--brand); }

/* =========================================================
   STATUS BAR
   ========================================================= */
.statusbar {
  display: grid; grid-template-columns: 1fr 2fr 1fr;
  align-items: center; gap: 16px;
  height: var(--sb-h);
  padding: 0 12px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 10px; color: var(--txt-3);
  letter-spacing: 0.08em;
}
.sb__l, .sb__c, .sb__r { display: flex; align-items: center; gap: 10px; }
.sb__c { justify-content: center; color: var(--txt-2); }
.sb__r { justify-content: flex-end; }
.sb__sep { color: var(--txt-4); }
.sb__dot { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 700; }
.sb strong { color: var(--txt); font-weight: 600; }

/* =========================================================
   COMMAND PALETTE
   ========================================================= */
.cmdk {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.65);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 14vh;
  backdrop-filter: blur(4px);
}
.cmdk.is-open { display: flex; }
.cmdk__panel {
  width: min(640px, 92vw);
  background: var(--bg-soft);
  border: 1px solid var(--line-3);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.cmdk__head { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); height: 44px; }
.cmdk__brand { font-weight: 800; color: var(--brand); font-size: 14px; }
.cmdk__head input { flex: 1; font-size: 13px; color: var(--txt); padding: 0 4px; }
.cmdk__head input::placeholder { color: var(--txt-3); }
.cmdk__esc { font-size: 10px; color: var(--txt-3); padding: 3px 6px; border: 1px solid var(--line-2); }
.cmdk__list { max-height: 50vh; overflow: auto; padding: 4px 0; }
.cmdk__row {
  display: grid; grid-template-columns: 60px 1fr 100px 60px;
  align-items: center; gap: 10px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  border-left: 2px solid transparent;
}
.cmdk__row:hover, .cmdk__row.is-active { background: var(--bg-2); border-left-color: var(--brand); }
.cmdk__row .tk { color: var(--brand); font-weight: 700; }
.cmdk__row .title { color: var(--txt); }
.cmdk__row .meta { color: var(--txt-3); font-size: 10px; text-align: right; }
.cmdk__row .type { color: var(--brand-2); font-size: 10px; text-align: right; }
.cmdk__empty { padding: 30px; text-align: center; color: var(--txt-3); font-size: 11px; }
.cmdk__foot {
  display: flex; gap: 16px;
  padding: 6px 14px;
  border-top: 1px solid var(--line);
  font-size: 10px; color: var(--txt-3);
  background: var(--bg);
}
.cmdk__foot kbd {
  display: inline-block; padding: 1px 5px; margin-right: 4px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 9px;
  border-radius: 1px; color: var(--txt-2);
}

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  padding: 40px 20px;
}
.modal.is-open { display: flex; }
.modal__panel {
  background: var(--bg-soft);
  border: 1px solid var(--line-3);
  width: min(900px, 100%);
  max-height: 90vh;
  overflow: auto;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 100px rgba(0,0,0,0.7);
}
.modal__head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.modal__ticker { display: flex; align-items: center; gap: 10px; flex: 1; }
.modal__ticker .tk {
  display: inline-grid; place-items: center;
  min-width: 56px; height: 28px; padding: 0 8px;
  background: var(--brand); color: var(--bg);
  font-weight: 800; font-size: 13px; letter-spacing: 0.05em;
}
.modal__company { font-size: 11px; color: var(--txt-3); letter-spacing: 0.15em; text-transform: uppercase; }
.modal__status { font-size: 11px; font-weight: 700; }
.modal__close {
  width: 28px; height: 28px; display: grid; place-items: center;
  color: var(--txt-2); font-size: 18px; line-height: 1;
}
.modal__close:hover { color: var(--brand); }
.modal__body { padding: 18px 20px; }
.modal__body h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.modal__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--txt-2); font-size: 11px; margin-bottom: 20px; }
.modal__meta .sep { color: var(--txt-4); }
.modal__grid { display: grid; grid-template-columns: 240px 1fr; gap: 30px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal__col h3 { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--txt-3); margin: 0 0 10px; font-weight: 500; }
.modal__col p { font-size: 12px; line-height: 1.65; color: var(--txt-2); margin-bottom: 16px; }
.kv {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 11px;
}
.kv span { color: var(--txt-3); letter-spacing: 0.05em; }
.kv strong { color: var(--txt); font-weight: 600; font-feature-settings: "tnum"; }
.spark-big { width: 100%; height: 80px; }
.legend { display: flex; gap: 14px; font-size: 10px; color: var(--txt-3); margin-top: 6px; }
.legend .dot { margin-right: 4px; vertical-align: middle; }
.modal__actions { display: flex; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.act {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--txt);
}
.act:hover { border-color: var(--brand); color: var(--brand); }
.act--primary { background: var(--brand); color: var(--bg); border-color: var(--brand); }
.act--primary:hover { background: var(--brand-2); color: var(--bg); border-color: var(--brand-2); }
.act__brand { color: var(--brand-2); font-weight: 800; white-space: nowrap; }
.act--primary .act__brand { color: var(--bg); }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-soft);
  border: 1px solid var(--line-3);
  color: var(--txt);
  padding: 10px 16px;
  font-size: 11px; letter-spacing: 0.05em;
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .b { color: var(--brand); font-weight: 800; margin-right: 6px; }

/* =========================================================
   FILTERS BAR (in panel head)
   ========================================================= */
.panel__tools--filters { gap: 2px; }
.ft {
  padding: 3px 8px;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--txt-3);
  border: 1px solid transparent;
  font-feature-settings: "tnum";
}
.ft:hover { color: var(--brand); }
.ft.is-active { color: var(--brand); border-color: rgba(255,107,53,0.3); background: rgba(255,107,53,0.06); }
.fsep { width: 1px; height: 14px; background: var(--line-2); margin: 0 4px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(4) { border-right: 0; }
  .kpi:nth-child(n+5) { border-top: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(8, 1fr); }
  #panelTable  { grid-column: span 8; grid-row: 1; }
  #panelWatch  { grid-column: span 4; grid-row: 2; }
  #panelMovers { grid-column: span 4; grid-row: 2; }
  #panelPipe   { grid-column: span 4; grid-row: 3; }
  #panelHeat   { grid-column: span 4; grid-row: 3; }
  #panelEvents { grid-column: span 4; grid-row: 4; }
  #panelNews   { grid-column: span 8; grid-row: 4; }
}
@media (max-width: 900px) {
  .fkey { display: none; }
  .hd__center { display: none; }
  .hd { grid-template-columns: 1fr auto; }
  .hd__date, .hd__chip:not(#userChip):not(#alertsChip) { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-right: 0; }
  .kpi:nth-child(odd) { border-right: 1px solid var(--line); }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; }
  #panelTable, #panelWatch, #panelMovers, #panelPipe, #panelHeat, #panelEvents, #panelNews {
    grid-column: span 1; grid-row: auto; min-height: 280px;
  }
  #panelNews { min-height: 320px; }
  .modal__grid { grid-template-columns: 1fr; gap: 16px; }
  .brand-tag { display: none; }
  .statusbar { grid-template-columns: 1fr 1fr; }
  .sb__c { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
