/* THE TERMINAL (/terminal; web/templates/terminal.html, web/static/terminal.js): one dense, live screen - a trading desk
   built from the site's own tokens (site.css :root). Near-black panels on hairlines with corner ticks, mono micro-labels,
   every number tabular; signals as light (mint made money, red lost or liquidated, amber in between, blue the machine,
   violet the spread), glows only where something is happening. Wider than the site's column: the terminal takes the room.
   A phone stacks it, engine first after the desk; prefers-reduced-motion keeps every frame still. Every number answers
   the pointer: the hovers' section at the end. */

body.k-terminal main.wrap { max-width: none; padding: 0 clamp(8px, 1.2vw, 22px); }
body.k-terminal .subbar { display: none; }
.tm { --tp: rgba(7, 9, 12, .9); --te: rgba(130, 160, 220, .14); --te2: rgba(130, 160, 220, .26); --tg: rgba(79, 140, 255, .08);
  --violet: #9B7BFF; --cyan: #5FD3E8; --i1: rgba(236, 239, 244, .9); --i2: rgba(236, 239, 244, .66); --i3: rgba(236, 239, 244, .46);
  --i4: rgba(236, 239, 244, .3);
  max-width: 1760px; margin: 0 auto; padding: 8px 0 40px; position: relative; font-variant-numeric: tabular-nums; }
.tm .g { color: var(--mint); } .tm .r { color: var(--red); } .tm .a { color: var(--amber); } .tm .b { color: var(--blue); }
.tm a { color: inherit; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ---- the status bar: brand, the big counters, the clocks ---- */
.tm-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px;
  padding: 7px 12px; margin: 0 0 6px; background: rgba(4, 5, 7, .92); backdrop-filter: blur(10px);
  border: 1px solid var(--te); border-radius: 5px; font-size: 11px; letter-spacing: .07em; color: var(--i3); }
.tm-brand { display: inline-flex; gap: 6px; align-items: baseline; color: var(--ink); font-size: 13px; letter-spacing: .16em; }
.tm-brand b { font-weight: 800; } .tm-brand i { font-style: normal; color: var(--blue); text-shadow: 0 0 14px rgba(79, 140, 255, .6); }
.tm-on { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); padding: 2px 8px; border: 1px solid rgba(56, 242, 164, .35);
  border-radius: 3px; background: rgba(56, 242, 164, .06); }
.tm-on i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: tm-blink 1.6s infinite; }
@keyframes tm-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.tm-stat { display: inline-flex; flex-direction: column; line-height: 1.05; }
.tm-stat b { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.tm-stat em { font-style: normal; font-size: 9.5px; color: var(--i4); text-transform: uppercase; }
.tm-clockset { margin-left: auto; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.tm-clk { display: inline-flex; align-items: baseline; gap: 5px; }
.tm-clk b { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: .04em; text-shadow: 0 0 18px rgba(236, 239, 244, .18); }
.tm-clk em { font-style: normal; color: var(--i3); }
.tm-kv b { color: var(--ink); font-weight: 600; margin-left: 4px; }
@media (max-width: 759px) {
  .tm-bar { position: static; gap: 6px 14px; font-size: 10px; }
  .tm-bar .tm-xs { display: none; }
  .tm-clockset { margin-left: 0; width: 100%; justify-content: space-between; }
  .tm-clk b { font-size: 17px; }
}

/* ---- the ticker: live prices first, then every play, call and event ---- */
.tm-tape { overflow: hidden; white-space: nowrap; border: 1px solid var(--te); border-radius: 5px; background: rgba(4, 5, 7, .75);
  font-size: 11px; letter-spacing: .06em; color: var(--i2); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.tm-tape-in { display: inline-flex; gap: 30px; padding: 6px 0; animation: tm-tape 120s linear infinite; will-change: transform; }
.tm-tape:hover .tm-tape-in { animation-play-state: paused; }
@keyframes tm-tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tm-tk em { font-style: normal; color: var(--i3); } .tm-tk b { color: var(--ink); font-weight: 600; transition: color .6s, text-shadow .6s; }
.tm-tk b.fu { color: var(--mint); text-shadow: 0 0 12px rgba(56, 242, 164, .7); } .tm-tk b.fd { color: var(--red); text-shadow: 0 0 12px rgba(255, 77, 94, .7); }
.tm-tk s { text-decoration: none; } .tm-tk s.up { color: var(--mint); } .tm-tk s.dn { color: var(--red); }

/* ---- the page's own words, compact ---- */
.tm-head { padding: 12px 2px 6px; }
.tm-head h1 { font-size: clamp(20px, 2.1vw, 28px); margin: 0; letter-spacing: -.01em; }
.tm-head h1 span { font-size: .55em; color: var(--i3); font-weight: 400; margin-left: 10px; }
.tm-dek { margin: 4px 0 0; color: var(--i3); font-size: 12.5px; max-width: 120ch; }

/* ---- the desk: one card per part of the machine ---- */
.tm-agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin: 0; }
@media (min-width: 1180px) { .tm-agents { grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); } }   /* the desk: one row */
.tm-ag { position: relative; padding: 9px 10px 8px; border: 1px solid var(--te); border-radius: 5px; overflow: hidden;
  background: linear-gradient(180deg, rgba(79, 140, 255, .05), rgba(7, 9, 12, .92) 46%); }
.tm-ag::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(90deg, transparent, rgba(79, 140, 255, .09), transparent); transform: translateX(-100%);
  animation: tm-sweep 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * .45s); }
@keyframes tm-sweep { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.tm-ag header { display: flex; align-items: center; gap: 7px; }
.tm-ag header b { font-size: 11.5px; letter-spacing: .14em; color: var(--ink); }
.tm-ag header em { margin-left: auto; font-style: normal; font-size: 9.5px; color: var(--mint); letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; }
.tm-ag { container-type: inline-size; }
@container (max-width: 172px) { .tm-ag header em { display: none; } .tm-ag header b { letter-spacing: .08em; } }   /* a narrow card: the name alone */
.tm-ag header em i { font-style: normal; display: inline-block; animation: tm-dots 1.2s steps(4) infinite; width: 1.6ch; overflow: hidden; vertical-align: bottom; }
@keyframes tm-dots { from { width: 0; } to { width: 1.6ch; } }
.tm-ag-ic { width: 14px; height: 14px; border-radius: 3px; display: grid; place-items: center; border: 1px solid rgba(79, 140, 255, .5);
  box-shadow: 0 0 10px rgba(79, 140, 255, .35) inset; }
.tm-ag-ic i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); animation: tm-blink 2.2s infinite;
  animation-delay: calc(var(--i) * .3s); }
.tm-ag-r { margin: 4px 0 6px; font-size: 11px; color: var(--i3); line-height: 1.3; }
.tm-ag-n { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.tm-ag-n b { font-size: 21px; color: var(--ink); font-weight: 700; letter-spacing: .01em; }
.tm-ag-n small { font-size: 10px; color: var(--i3); text-transform: uppercase; letter-spacing: .06em; }
.tm-ag-bar { height: 3px; margin: 7px 0 5px; background: rgba(255, 255, 255, .07); border-radius: 2px; overflow: hidden; }
.tm-ag-bar i { display: block; height: 100%; width: var(--w); min-width: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 10px rgba(95, 211, 232, .6); transition: width .25s linear; }
.tm-ag-s { margin: 0; font-size: 10px; color: var(--i4); letter-spacing: .03em; }

/* ---- panels ---- */
.tm-rows { display: flex; flex-direction: column; gap: 8px; }
.tm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.tm-row > .tm-p { flex: 1 1 320px; min-width: 0; }
.tm-p { position: relative; background: var(--tp); border: 1px solid var(--te); border-radius: 5px; padding: 10px 12px 10px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 18px 40px -30px rgba(79, 140, 255, .35); }
.tm-p::before, .tm-p::after { content: ""; position: absolute; width: 9px; height: 9px; border-color: var(--te2); border-style: solid; pointer-events: none; }
.tm-p::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; } .tm-p::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.tm-ph { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 11px; letter-spacing: .16em; color: var(--ink); font-weight: 700; }
.tm-ph span { margin-left: auto; font-weight: 400; letter-spacing: .06em; color: var(--i3); font-size: 10.5px; text-transform: none; }
.tm-ph .d { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 9px var(--blue); flex: none; animation: tm-blink 2.4s infinite; }
.tm-ph .d.g { background: var(--mint); box-shadow: 0 0 9px var(--mint); } .tm-ph .d.r { background: var(--red); box-shadow: 0 0 9px var(--red); }
.tm-ph .d.a { background: var(--amber); box-shadow: 0 0 9px var(--amber); } .tm-ph .d.c { background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.tm-ph .d.v { background: var(--violet); box-shadow: 0 0 9px var(--violet); }
.tm-cv { display: block; width: 100%; }
.tm-sub { margin: 4px 0; font-size: 11.5px; color: var(--i2); line-height: 1.45; }
.tm-fine { margin: 6px 0 0; font-size: 10px; color: var(--i4); line-height: 1.5; letter-spacing: .02em; }
.tm-fine a { color: var(--i2); }

/* row 1: the lab (and the record) | the spot engine (terminal-spot.js builds it; three across from 1080 px of its own width) */
.tm-r1 > .tm-lab { flex: 1 1 280px; } .tm-r1 > .tm-spot { flex: 4 1 560px; padding: 9px 10px; }
.tm-mega { margin: 2px 0 0; line-height: 1; }
.tm-mega b { font-size: clamp(30px, 3vw, 44px); font-weight: 800; color: var(--mint); letter-spacing: -.01em;
  text-shadow: 0 0 26px rgba(56, 242, 164, .35); }
.tm-cells { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 8px 0; }
.tm-cells div { border: 1px solid var(--te); border-radius: 3px; padding: 5px 7px; background: rgba(255, 255, 255, .015); }
.tm-cells dt { font-size: 9px; color: var(--i4); letter-spacing: .12em; }
.tm-cells dd { margin: 1px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.tm-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin: 6px 0 2px; }
.tm-bars i { flex: 1; max-width: 22px; height: var(--h); min-height: 2px; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--cyan), rgba(79, 140, 255, .25)); box-shadow: 0 0 8px rgba(95, 211, 232, .35); }
.tm-rec { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--te); }
.tm-rec .tm-ph { font-size: 10.5px; }
.tm-big { margin: 0; } .tm-big b { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.tm-rec-cv { height: 70px; margin-top: 4px; }

/* the call grid: tiles with their coin's last 30 days */
.tm-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 4px;
  max-height: 134px; overflow: hidden; }                    /* two rows across the page, as a desk's resolution strip */
.tm-t a { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 5px 6px 4px; border-radius: 3px; text-decoration: none;
  border: 1px solid var(--te); background: rgba(255, 255, 255, .02); overflow: hidden; min-height: 62px; }
.tm-t em { font-style: normal; font-size: 9.5px; color: var(--i3); letter-spacing: .06em; position: relative; z-index: 1; }
.tm-t b { font-size: 12.5px; font-weight: 800; letter-spacing: 0; white-space: nowrap; position: relative; z-index: 1; }
.tm-t b small { font-size: 10px; font-weight: 600; opacity: .85; }
.tm-t.call.up a { border-color: rgba(56, 242, 164, .38); background: linear-gradient(180deg, rgba(56, 242, 164, .16), rgba(56, 242, 164, .03)); }
.tm-t.call.up b { color: var(--mint); text-shadow: 0 0 12px rgba(56, 242, 164, .45); }
.tm-t.call.dn a { border-color: rgba(255, 77, 94, .38); background: linear-gradient(180deg, rgba(255, 77, 94, .16), rgba(255, 77, 94, .03)); }
.tm-t.call.dn b { color: var(--red); text-shadow: 0 0 12px rgba(255, 77, 94, .45); }
.tm-t.sw b { color: var(--i1); }
.tm-sp { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; width: 100%; opacity: .9; }
.tm-t a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
  transform: translateX(-120%); animation: tm-scan 7s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); pointer-events: none; }
@keyframes tm-scan { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---- the engine: rules | the fan | the tally ---- */
.tm-eng { padding-bottom: 8px; }
.tm-sel { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.tm-chip { position: relative; font: 600 10.5px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--i2);
  background: rgba(255, 255, 255, .02); border: 1px solid var(--te); border-radius: 3px; padding: 6px 9px 7px; cursor: pointer; overflow: hidden; }
.tm-chip.on { color: var(--ink); border-color: rgba(79, 140, 255, .65); box-shadow: 0 0 0 1px rgba(79, 140, 255, .25), 0 0 18px -6px var(--blue); }
.tm-chip em { font-style: normal; margin-left: 6px; color: var(--amber); } .tm-chip em.er { color: var(--mint); }
.tm-chip i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.tm-eng-g { display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 10px; align-items: stretch; }
.tm-eng-l, .tm-eng-r { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tm-eng-t { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--ink);
  text-shadow: 0 0 30px rgba(79, 140, 255, .35); }
.tm-eng-d { margin: 0; font-size: 11.5px; color: var(--i3); line-height: 1.45; }
.tm-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0; }
.tm-trio div { border-left: 2px solid rgba(79, 140, 255, .55); padding: 0 0 0 6px; }
.tm-trio dt { font-size: 9px; color: var(--i4); letter-spacing: .12em; } .tm-trio dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.tm-born { margin: 4px 0 0; font-size: 10px; letter-spacing: .16em; color: var(--i3); font-weight: 600; }
.tm-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; }
.tm-steps li { display: flex; align-items: center; gap: 7px; padding: 3px 6px; border: 1px solid transparent; border-radius: 3px; color: var(--i3); }
.tm-steps li i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(79, 140, 255, .7); flex: none; }
.tm-steps li b { margin-left: auto; color: var(--ink); font-weight: 600; }
.tm-steps li.on { border-color: rgba(79, 140, 255, .35); background: rgba(79, 140, 255, .07); color: var(--i1); }
.tm-steps li.on i, .tm-steps li.done i { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.tm-code { margin: 0; padding: 7px 8px; font-size: 10px; line-height: 1.6; color: var(--i2); background: rgba(0, 0, 0, .45);
  border: 1px solid var(--te); border-radius: 3px; white-space: pre-wrap; overflow: hidden; }
.tm-code .tm-gl { display: block; margin: 0 -4px; padding: 0 4px; border-radius: 2px; }   /* a rule's line (terminal.js rules) */
.tm-code .c { color: var(--i4); } .tm-code .k { color: var(--cyan); } .tm-code .o { color: var(--i3); } .tm-code .v { color: var(--ink); }
.tm-code .ok { color: var(--mint); text-shadow: 0 0 8px rgba(56, 242, 164, .6); } .tm-code .no { color: var(--red); }
.tm-stage { position: relative; min-height: 440px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 4px; overflow: hidden;
  background: radial-gradient(120% 90% at 42% 50%, rgba(79, 140, 255, .07), rgba(0, 0, 0, 0) 60%), #030406; }
.tm-eng-cv { position: absolute; inset: 0; height: 100%; }
.tm-done { position: absolute; left: 10px; right: 10px; bottom: 30px; margin: 0; text-align: center; font-size: 10.5px; letter-spacing: .1em; pointer-events: none;
  color: var(--mint); text-shadow: 0 0 12px rgba(56, 242, 164, .6); background: rgba(3, 4, 6, .78); border: 1px solid rgba(56, 242, 164, .3);
  border-radius: 3px; padding: 5px 8px; }
.tm-eng-h { margin: 0; font-size: 12px; letter-spacing: .1em; color: var(--ink); font-weight: 700; }
.tm-cd { margin: 0; display: flex; flex-direction: column; }
.tm-cd b { font-size: 38px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: .01em; text-shadow: 0 0 24px rgba(236, 239, 244, .16); }
.tm-cd small { font-size: 9.5px; color: var(--i4); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.tm-tally { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tm-tally b { display: block; font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.tm-tally b.g { text-shadow: 0 0 22px rgba(56, 242, 164, .45); } .tm-tally b.r { text-shadow: 0 0 22px rgba(255, 77, 94, .45); }
.tm-tally small { font-size: 9px; color: var(--i4); letter-spacing: .12em; }
.tm-hud { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.tm-hud div { border: 1px solid var(--te); border-radius: 3px; padding: 4px 7px; background: rgba(255, 255, 255, .015); }
.tm-hud em { display: block; font-style: normal; font-size: 8.5px; color: var(--i4); letter-spacing: .12em; }
.tm-hud b { font-size: 14px; font-weight: 700; color: var(--ink); }
.tm-lc-h { margin: 2px 0 0; font-size: 10px; letter-spacing: .16em; color: var(--i3); font-weight: 600; display: flex; }
.tm-lc-h span { margin-left: auto; color: var(--i4); letter-spacing: .06em; font-weight: 400; }
.tm-lc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; flex: none;
  height: 288px; overflow: hidden; }   /* fixed: rows arriving must not grow the row, or the engine's canvas resizes and redraws */
.tm-lc li { display: grid; grid-template-columns: 42px 1fr 58px 44px; align-items: center; gap: 6px; padding: 2px 5px; border-radius: 2px;
  border-left: 2px solid var(--i4); background: rgba(255, 255, 255, .02); animation: tm-in .35s ease-out; }
.tm-lc li.w { border-left-color: var(--mint); } .tm-lc li.l { border-left-color: var(--red); } .tm-lc li.x { border-left-color: var(--red); background: rgba(255, 77, 94, .08); }
.tm-lc li span { color: var(--i3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-lc li b { text-align: right; font-weight: 700; } .tm-lc li.w b { color: var(--mint); } .tm-lc li.l b, .tm-lc li.x b { color: var(--red); }
.tm-lc li canvas { width: 44px; height: 14px; }
@keyframes tm-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.tm-cap { margin: 8px 0 0; font-size: 11px; color: var(--i3); line-height: 1.5; }
@media (max-width: 1179px) {
  .tm-eng-g { grid-template-columns: 1fr 1fr; }
  .tm-stage { grid-column: 1 / -1; order: -1; min-height: 360px; }
}
@media (max-width: 759px) {
  .tm-lc { height: 132px; }                 /* six live cases */
  .tm-tiles { max-height: 260px; }
  .tm-spot .tm-sp-asks .tm-sp-lv:nth-child(-n+4), .tm-spot .tm-sp-bids .tm-sp-lv:nth-child(n+7),
  .tm-spot .tm-sp-trs .tm-sp-tr:nth-child(n+9) { display: none; }   /* six levels a side, eight trades */
  .tm-eng { order: -1; }                    /* a phone: the engine first, the desk's panels after it */
  .tm-eng-g { grid-template-columns: 1fr; }
  .tm-stage { order: 0; } .tm-eng-r { order: 1; } .tm-eng-l { order: 2; }
  .tm-eng-t { display: none; }
  .tm-agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-ag { padding: 7px 8px; } .tm-ag-r { display: none; } .tm-ag-n b { font-size: 18px; }
  .tm-dek { font-size: 12px; }
  .tm-fh, .tm-log li { grid-template-columns: 78px 1fr 64px 46px; } .tm-fh span:nth-child(4), .tm-log li em { display: none; }
  .tm-stage { min-height: 300px; }
  .tm-eng-t { font-size: 24px; }
  .tm-cd b { font-size: 30px; } .tm-tally b { font-size: 26px; }
}

/* row 3: fills | landing | spectrum */
.tm-r3 > .tm-p { flex: 1 1 340px; }
.tm-fh { display: grid; grid-template-columns: 86px 1fr 92px 74px 54px; gap: 6px; padding: 0 4px 4px; font-size: 9px; color: var(--i4);
  letter-spacing: .12em; border-bottom: 1px solid var(--te); }
.tm-log { list-style: none; margin: 4px 0 0; padding: 0; max-height: 236px; overflow: hidden; font-size: 10.5px; }
.tm-log li { position: relative; display: grid; grid-template-columns: 86px 1fr 92px 74px 54px; white-space: nowrap; gap: 6px; padding: 3px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .03); }
.tm-log li time { color: var(--i4); } .tm-log li span { color: var(--i3); } .tm-log li em { font-style: normal; color: var(--i3); font-size: 9.5px; }
.tm-log li strong { text-align: right; } .tm-log li.good strong { color: var(--mint); } .tm-log li.bad strong { color: var(--red); } .tm-log li.flat strong { color: var(--amber); }
.tm-log li.new { animation: tm-flash 1.2s ease-out; }
@keyframes tm-flash { from { background: rgba(79, 140, 255, .22); } to { background: transparent; } }
.tm-land-cv, .tm-spec-cv { height: 230px; }

/* row 4: radar | catalysts | regime */
.tm-r4 > .tm-radar { flex: 3 1 300px; } .tm-r4 > .tm-cats { flex: 3 1 300px; } .tm-r4 > .tm-reg { flex: 5 1 420px; }
.tm-radar-cv { height: 280px; }
.tm-cal { list-style: none; margin: 0; padding: 0; font-size: 11.5px; }
.tm-cal li { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: baseline; padding: 5px 4px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.tm-cal .k { font-size: 9px; letter-spacing: .1em; color: var(--amber); }
.tm-cal a { text-decoration: none; color: var(--i2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-cal time { font-size: 10.5px; color: var(--ink); } .tm-cal time.soon { color: var(--amber); text-shadow: 0 0 10px rgba(255, 180, 77, .5); }
.tm-gauges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.tm-gauges li { font-size: 11px; color: var(--i3); padding: 4px 6px; border-radius: 4px; }
.tm-gauges em { display: block; font-style: normal; color: var(--i2); font-size: 10.5px; }
.tm-gauges b { color: var(--ink); font-size: 15px; } .tm-gauges small { font-size: 10px; }
.tm-gauges small.w { display: block; color: var(--i4); font-size: 9.5px; }
.tm-led { display: flex; gap: 2px; margin: 3px 0 2px; }
.tm-led i { flex: 1; height: 5px; border-radius: 1px; background: rgba(255, 255, 255, .07); }
.tm-led i.on { background: var(--cyan); box-shadow: 0 0 6px rgba(95, 211, 232, .6); }
.tm-led i.on:last-child, .tm-led i.on.hot { background: var(--amber); box-shadow: 0 0 6px rgba(255, 180, 77, .6); }

/* ---- hovers (owner, Oct 12: "its missing hover effect"): every number answers the pointer. A panel's corners reach out
   and its edge lights; a desk card lifts; a tile, a chip, a row, a cell lights up; the words come from the site's shared
   tooltip (site.js, data-tt) and the canvases' own readouts (terminal.js). A card, a tile, a fill opens what it counts. ---- */
.tm-p { transition: border-color .2s, box-shadow .25s; }
.tm-p::before, .tm-p::after { transition: border-color .2s, width .2s, height .2s; }
.tm-p:hover { border-color: var(--te2); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 18px 46px -24px rgba(79, 140, 255, .55); }
.tm-p:hover::before, .tm-p:hover::after { border-color: rgba(95, 211, 232, .8); width: 15px; height: 15px; }
.tm-lk { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.tm-lk:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.tm-bar [data-tt] { border-radius: 3px; transition: background .15s, box-shadow .15s; }
.tm-bar .tm-stat:hover, .tm-bar .tm-kv:hover, .tm-bar .tm-clk:hover { background: rgba(79, 140, 255, .1); box-shadow: 0 0 0 4px rgba(79, 140, 255, .1); }
.tm-stat:hover b, .tm-kv:hover b, .tm-clk:hover b { color: #fff; text-shadow: 0 0 14px rgba(95, 211, 232, .8); }
.tm-on:hover { background: rgba(56, 242, 164, .14); box-shadow: 0 0 16px -3px rgba(56, 242, 164, .6); }
.tm-tape-in > span { padding: 1px 5px; border-radius: 3px; transition: background .15s, color .15s; }
.tm-tape-in > span:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.tm-ag { transition: transform .18s ease, border-color .18s, box-shadow .25s; }
.tm-ag:hover { transform: translateY(-2px); border-color: rgba(79, 140, 255, .6);
  box-shadow: 0 12px 28px -14px rgba(79, 140, 255, .7), 0 0 0 1px rgba(79, 140, 255, .2) inset; }
.tm-ag:hover .tm-ag-ic { border-color: var(--cyan); box-shadow: 0 0 12px rgba(95, 211, 232, .6) inset, 0 0 10px rgba(95, 211, 232, .5); }
.tm-ag:hover .tm-ag-n b { text-shadow: 0 0 16px rgba(95, 211, 232, .6); }
.tm-ag.tm-go:hover header b::after { content: " →"; color: var(--cyan); }
.tm-cells div, .tm-hud div { transition: background .15s, border-color .15s; }
.tm-cells div:hover, .tm-hud div:hover { border-color: rgba(79, 140, 255, .55); background: rgba(79, 140, 255, .09); }
.tm-trio div { transition: border-color .15s, background .15s; }
.tm-trio div:hover { border-left-color: var(--cyan); background: rgba(79, 140, 255, .07); }
.tm-tally div { border-radius: 3px; transition: background .15s; }
.tm-tally div:hover { background: rgba(255, 255, 255, .035); }
.tm-tally div:hover b.g { text-shadow: 0 0 30px rgba(56, 242, 164, .85); } .tm-tally div:hover b.r { text-shadow: 0 0 30px rgba(255, 77, 94, .85); }
.tm-cd:hover b { text-shadow: 0 0 26px rgba(95, 211, 232, .55); }
.tm-mega:hover b { text-shadow: 0 0 36px rgba(56, 242, 164, .7); }
.tm-big:hover b { filter: brightness(1.25); }
.tm-bars i { transition: filter .15s, box-shadow .15s; }
.tm-bars i:hover { filter: brightness(1.6); box-shadow: 0 0 14px rgba(95, 211, 232, .95); }
.tm-t a { transition: border-color .16s, box-shadow .2s, background .2s; }
.tm-t a:hover { border-color: rgba(236, 239, 244, .42); background-color: rgba(255, 255, 255, .05); }
.tm-t.call.up a:hover { border-color: var(--mint); box-shadow: 0 0 18px -4px rgba(56, 242, 164, .65) inset; }
.tm-t.call.dn a:hover { border-color: var(--red); box-shadow: 0 0 18px -4px rgba(255, 77, 94, .65) inset; }
.tm-t a:hover .tm-sp { opacity: 1; filter: brightness(1.4); }
.tm-chip { transition: border-color .15s, color .15s, background .15s; }
.tm-chip:hover { color: var(--ink); border-color: rgba(79, 140, 255, .55); background: rgba(79, 140, 255, .09); }
.tm-steps li { transition: background .15s, border-color .15s, color .15s; }
.tm-steps li:hover { border-color: rgba(95, 211, 232, .35); background: rgba(95, 211, 232, .06); color: var(--i1); }
.tm-code .tm-gl[data-tt]:hover { background: rgba(79, 140, 255, .14); }
.tm-lc li { transition: background .15s; }
.tm-lc li:hover { background: rgba(79, 140, 255, .14); }
.tm-log li { transition: background .15s; }
.tm-log li:hover { background: rgba(79, 140, 255, .11); }
.tm-log li:hover strong { text-shadow: 0 0 10px currentColor; }
.tm-cal li { transition: background .15s; }
.tm-cal li:hover { background: rgba(255, 180, 77, .07); }
.tm-cal li:hover a { color: var(--ink); }
.tm-gauges li { transition: background .15s; }
.tm-gauges li:hover { background: rgba(95, 211, 232, .06); }
.tm-gauges li:hover b { text-shadow: 0 0 12px rgba(95, 211, 232, .6); }
.tm-gauges li:hover .tm-led i.on { box-shadow: 0 0 10px rgba(95, 211, 232, .95); }
.tm-eng-cv, .tm-land-cv, .tm-spec-cv, .tm-rec-cv { cursor: crosshair; touch-action: pan-y; }

/* ---- how to read ---- */
.tm-read { max-width: 980px; margin: 22px auto 0; color: var(--i2); font-size: 13.5px; line-height: 1.6; }
.tm-read h2 { font-size: 18px; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .tm-tape-in, .tm-ag::after, .tm-t a::after, .tm-on i, .tm-ph .d, .tm-ag-ic i, .tm-ag header em i { animation: none; }
  .tm-lc li, .tm-log li.new { animation: none; }
  .tm-ag, .tm-ag:hover { transform: none; }
}
