/* The Desk blocks from the Terminal design. Every measurement here comes from
   the mockup; only the content is ours. */

/* ---------- as_of bar ---------- */
/* lives inside the sticky header, styled as the mockup's own strip: a plain
   band with a hairline above it, not a floating card */
.asof {
  display: flex; align-items: center; gap: 14px; padding: 9px 22px;
  border-top: 1px solid #121519; background: #090A0C;
}
.asoflab, .asofval {
  font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: .14em;
  color: var(--ink-3); flex: none;
}
.asoflab { letter-spacing: .16em; }
.asofval { color: var(--accent); font-size: 11.5px; min-width: 46px; text-align: right; }
.asofhint { font-family: "JetBrains Mono", monospace; font-size: 9px; }
.asof input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); background: transparent; }
.asofhint { color: var(--ink-3); font-size: 11.5px; flex: none; }
@media (max-width: 860px) {
  .asofhint { display: none; }
  .asof { padding: 9px 14px; gap: 10px; }
}

/* .chead / .cfoot live in shell.css: the company and hub pages use them too
   and do not load this file. */
.heatscale {
  display: flex; align-items: center; gap: 7px;
  font-family: "JetBrains Mono", monospace; font-size: 9px; color: #666E76;
}
.heatscale span { width: 56px; height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, #1B2431, #2A3A2C, var(--accent)); }

/* ---------- hero ---------- */
.deskhero { padding: 28px 30px 24px; border-radius: 20px; }
.deskhero .htop { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.deskhero .htop .tag { font-size: 10px; letter-spacing: .16em; border: 0;
                       background: none; padding: 0; color: #7C848C; }
.deskhero .hmain {
  display: flex; align-items: flex-end; gap: 20px; margin-top: 18px; flex-wrap: wrap;
}
.deskhero .hsym {
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 64px;
  line-height: .9; letter-spacing: -.035em;
}
.deskhero .hco { font-size: 14.5px; color: var(--ink-2); line-height: 1.35;
                 padding-bottom: 9px; min-width: 0; flex: 1 1 180px; }
.deskhero .hco .sub { font-family: "JetBrains Mono", monospace; font-size: 11.5px;
                      color: #7C848C; margin-top: 4px; }
.deskhero .hr { height: 1px; background: linear-gradient(90deg, #242A31, transparent);
                margin: 22px 0 18px; }
.deskhero .hgrid { display: flex; gap: 30px; flex-wrap: wrap; }
.deskhero .hk { font-family: "JetBrains Mono", monospace; font-size: 9px;
                letter-spacing: .16em; color: #666E76; white-space: nowrap; }
.deskhero .hv { font-family: "JetBrains Mono", monospace; font-size: 17px; margin-top: 6px; }
.deskhero .hv.pos { color: var(--accent); }
.deskhero .hbtns { display: flex; gap: 9px; margin-top: 24px; flex-wrap: wrap; }
.deskhero .hcta {
  background: var(--accent); color: var(--on-accent); font-weight: 700;
  font-size: 13px; padding: 11px 17px; border-radius: 10px;
  text-decoration: none; white-space: nowrap;
}
.deskhero .hcta:hover { background: var(--accent-hi); color: var(--on-accent); }
.deskhero .hghost {
  border: 1px solid #2A3037; color: var(--ink-2); font-weight: 600;
  font-size: 13px; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; white-space: nowrap;
}
.deskhero .hghost:hover { border-color: #49525B; color: var(--ink); }
@media (max-width: 640px) { .deskhero .hsym { font-size: 46px; } }

/* ---------- KPI carousel ---------- */
/* The mockup's row: minmax(196px,1fr), 29px values, 24px sparklines. Below
   ~900px it becomes a swipeable strip instead of columns too narrow to read. */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
        gap: 13px; margin-bottom: 16px; }
.kpi {
  border: 1px solid var(--border); border-radius: 15px; min-width: 0;
  background: var(--surface); padding: 16px 18px; text-decoration: none; display: block;
}
@media (max-width: 900px) {
  .kpis { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .kpi { flex: none; width: 180px; }
}
/* Phone: a 2-up grid, not a carousel.
   The carousel left a third card sliced at the screen edge as its scroll
   affordance. Two readers in a row reported that as "it's cut off" (Yoni and
   Gal, 2026-09-03/04), and on iOS there is no scrollbar to say otherwise. An
   affordance that two out of two people read as a bug is a bug. A grid shows
   every card whole, at the cost of vertical space, which a phone has. */
@media (max-width: 560px) {
  .kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi .v { font-size: 22px; }
  .kpi .k { font-size: 9px; letter-spacing: .1em; }
}
@media (max-width: 380px) { .kpi .v { font-size: 20px; } }
.kpi:hover { border-color: #2C333A; }
/* The window is part of the number: "INSIDER BUYING · 14D" ellipsised to
   "INSIDER BUYING · …" throws away the half that says what period the figure
   covers, which is the one thing our own card rules forbid. It wraps now. */
.kpi .k {
  font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: .16em;
  color: #666E76; line-height: 1.45; min-height: 2.9em;
}
.kpi .row { display: flex; align-items: baseline; gap: 9px; margin-top: 8px; }
.kpi .v { font-size: 29px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.kpi .d { font-family: "JetBrains Mono", monospace; font-size: 11px; }
.kpi .d.up { color: var(--accent); } .kpi .d.dn { color: var(--sell); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 24px; margin-top: 11px; }
/* the verification card carries a sentence where the others carry bars */
.kpi .sub { font-size: 11px; color: var(--ink-3); line-height: 1.45; margin-top: 9px; }
.spark i { flex: 1; border-radius: 2px; display: block; }

/* ---------- Form 144 card ---------- */
.f144 { background: linear-gradient(160deg, #131A0B, #0B0C0F 68%); border-color: #2A3417;
        padding: 20px 22px 12px; }
.fkick { font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: .2em;
         color: var(--accent); }
.ftitle { font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
          font-size: 25px; line-height: 1.18; letter-spacing: 0; margin-top: 9px; }
.ftitle i { font-style: italic; }
.fsub { font-size: 12px; color: var(--ink-3); margin-top: 7px; line-height: 1.5; }
.fsub b { color: var(--ink); }
.frow {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 0; border-top: 1px solid #1B2114; margin-top: 2px;
}
.frow .l { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.frow .tk { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 12px;
            color: var(--accent); text-decoration: none; }
.frow .wh { font-size: 11px; color: var(--ink-3); overflow: hidden;
            text-overflow: ellipsis; white-space: nowrap; }
.frow .r { display: flex; gap: 9px; align-items: baseline; flex: none;
           font-family: "JetBrains Mono", monospace; }
.frow .amt { font-size: 12px; color: var(--warn); }
.frow .dt { font-size: 9px; color: var(--ink-3); }
.fmore { display: inline-block; margin: 10px 0 6px; font-size: 12.5px; font-weight: 600; }

/* ---------- double green light table (the mockup's column grid) ---------- */
.dglhead, .dgl {
  display: grid; column-gap: 14px; align-items: center; padding: 12px 21px;
  grid-template-columns: minmax(120px, 1.6fr) minmax(64px, .8fr)
                         minmax(44px, .5fr) minmax(48px, .6fr) minmax(46px, 82px);
}
.dgl .spk { display: flex; justify-content: flex-end; min-width: 0; overflow: hidden; }
.dglhead {
  padding: 9px 21px; border-top: 1px solid #14181C; border-bottom: 1px solid #14181C;
  font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: .14em;
  color: #535B63;
}
.dglhead > div:not(:first-child) { text-align: right; }
.dgl { border-bottom: 1px solid #101317; min-height: 54px; text-decoration: none; }
.dgl:hover { background: #0F1217; }
.dgl .co { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dgl .tick { width: 3px; height: 22px; border-radius: 2px; flex: none; background: var(--accent); }
.dgl .mid { min-width: 0; flex: 1; }
.dgl .t1 { display: flex; gap: 8px; align-items: baseline; }
.dgl .tk { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 12.5px; color: var(--ink); }
.dgl .nm { font-size: 12px; color: #7C848C; overflow: hidden;
           text-overflow: ellipsis; white-space: nowrap; }
.dgl .t2 { font-family: "JetBrains Mono", monospace; font-size: 10px;
           color: #666E76; margin-top: 3px; }
.dgl .num { font-family: "JetBrains Mono", monospace; font-size: 12.5px;
            text-align: right; color: var(--ink); }
.dgl .num.dim { color: var(--ink-2); }
.dgl .num.pos { color: var(--accent); } .dgl .num.neg { color: var(--sell); }
@media (max-width: 640px) {
  .dglhead, .dgl { grid-template-columns: minmax(120px, 1.6fr) minmax(64px, .8fr)
                                          minmax(44px, .5fr); }
  .dglhead > div:nth-child(n+4), .dgl > :nth-child(n+4) { display: none; }
}

/* ---------- live filing feed ---------- */
.stream { display: flex; align-items: center; gap: 5px;
          font-family: "JetBrains Mono", monospace; font-size: 9px; color: var(--ink-3); }
.stream .pip { width: 5px; height: 5px; }
.ffeed { display: flex; gap: 9px; padding: 11px 16px; border-top: 1px solid #14181C;
         align-items: flex-start; text-decoration: none; }
.ffeed:hover { background: #0F1217; }
.ffeed .tm { font-family: "JetBrains Mono", monospace; font-size: 9px; color: var(--ink-3);
             width: 38px; flex: none; padding-top: 3px; }
.ffeed .tx { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.ffeed .tx b { font-family: "JetBrains Mono", monospace; color: var(--accent); }
.ftag { font-family: "JetBrains Mono", monospace; font-size: 8.5px; letter-spacing: .06em;
        padding: 3px 6px; border-radius: 4px; flex: none; border: 1px solid var(--border);
        background: rgba(255,255,255,.03); color: var(--ink-2); }
.ftag.f4 { color: var(--accent); border-color: rgba(198,242,78,.25); background: rgba(198,242,78,.08); }
.ftag.f144 { color: var(--warn); border-color: rgba(255,180,78,.25); background: rgba(255,180,78,.08); }
.ftag.f13d { color: #8FD4A0; border-color: rgba(143,212,160,.25); background: rgba(143,212,160,.08); }

/* ---------- command palette ---------- */
.palette { display: none; position: fixed; inset: 0;
           width: 100vw; height: 100vh; height: 100dvh; z-index: 90;
           background: rgba(4,5,7,.78); backdrop-filter: blur(6px);
           align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.palette.on { display: flex; }
.pal-box { width: 100%; max-width: 640px; background: #0A0B0E;
           border: 1px solid #2A3037; border-radius: 16px; overflow: hidden;
           box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.pal-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px;
           border-bottom: 1px solid var(--border); }
.pal-top .cx { font-family: "JetBrains Mono", monospace; color: var(--accent); font-size: 14px; }
.pal-top input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
                 color: var(--ink); font: inherit; font-size: 15px; }
.pal-x { background: none; border: 0; color: var(--ink-3); font-size: 14px; cursor: pointer; }
.pal-list { max-height: 52vh; overflow-y: auto; }
.pal-row { display: flex; align-items: center; gap: 11px; padding: 13px 16px;
           border-bottom: 1px solid #121519; text-decoration: none; min-height: 50px; }
.pal-row:hover, .pal-row:focus { background: #121519; }
.pal-kind { font-family: "JetBrains Mono", monospace; font-size: 8.5px; letter-spacing: .06em;
            padding: 3px 6px; border-radius: 4px; flex: none; border: 1px solid var(--border);
            color: var(--ink-2); background: rgba(255,255,255,.03); }
.pal-kind.company { color: var(--accent); border-color: rgba(198,242,78,.25); background: rgba(198,242,78,.08); }
.pal-kind.screen  { color: #7FB0FF; border-color: rgba(90,140,255,.3); background: rgba(90,140,255,.08); }
.pal-kind.proof   { color: var(--warn); border-color: rgba(255,180,78,.25); background: rgba(255,180,78,.08); }
.pal-label { font-size: 13.5px; color: var(--ink); flex: 1; min-width: 0; line-height: 1.35; }
.pal-empty { padding: 22px 16px; color: var(--ink-3); font-size: 13px; }
.pal-foot { padding: 10px 16px; border-top: 1px solid var(--border);
            color: var(--ink-3); font-size: 11.5px; }
.pal-foot .kbd { font-family: "JetBrains Mono", monospace; border: 1px solid var(--border);
                 border-radius: 4px; padding: 1px 5px; }

/* ---------- signal heat map ---------- */
.heatwrap { overflow-x: auto; padding: 4px 21px 6px; }
/* The sector name has to stay put while the datasets scroll past it, or you
   are reading a row of numbers with no idea whose row it is. */
@media (max-width: 700px) {
  .heatwrap { padding-left: 0; }
  .heatgrid .heat-s {
    position: sticky; left: 0; z-index: 1;
    background: var(--surface); padding-left: 15px;
  }
}
.heatgrid { display: grid; gap: 3px; min-width: 620px; }
.heat-h, .heat-s {
  font-family: "JetBrains Mono", monospace; font-size: 8.5px; letter-spacing: .1em;
  color: var(--ink-3); display: flex; align-items: center;
}
.heat-h { justify-content: center; text-align: center; padding-bottom: 4px; line-height: 1.25; }
.heat-s { justify-content: flex-end; padding-right: 9px; white-space: nowrap;
          font-size: 9.5px; letter-spacing: .04em; color: var(--ink-2); }
.heat-c {
  height: 34px; border-radius: 5px; display: flex; align-items: center;
  justify-content: center; font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; border: 1px solid transparent; cursor: default;
}
.heat-c.na { color: #3B444D; background: #0C0E11; border-color: #14181C; }
.heatgrid:not(.open) .hx { display: none; }
.heat-more {
  display: block; margin: 10px 21px 4px; padding: 8px 14px; cursor: pointer;
  background: none; border: 1px solid #2A3037; border-radius: 9px;
  color: var(--ink-2); font: 600 12px Archivo, sans-serif;
}
.heat-more:hover { border-color: #49525B; color: var(--ink); }
.heatnote { color: var(--ink-3); font-size: 11.5px; line-height: 1.6;
            margin: 4px 21px 14px; max-width: 780px; }

/* The mockup's pairing grids: 420px columns for the hero row, 560px for the
   table row, both collapsing to one column when the window runs out. */
.autofit { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
           gap: 16px; align-items: stretch; margin-bottom: 16px; }
.autofit.wide { grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
                align-items: stretch; }
.autofit.wide > .stack { height: 100%; }
.autofit > .card { margin-bottom: 0; }
.autofit .deskhero { height: 100%; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack > .card { margin-bottom: 0; }
.stack > .grow { flex: 1; }
@media (max-width: 640px) {
  .autofit, .autofit.wide { grid-template-columns: 1fr; }
}

/* ---------- watchlist strip ----------
   One line above the hero for a signed-in visitor's own tickers. Scrolls
   sideways rather than wrapping: a variable-height first element would move
   the whole desk down by a different amount for every user. */
.wlstrip {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  overflow-x: auto; padding-bottom: 2px; scrollbar-width: none;
}
.wlstrip::-webkit-scrollbar { display: none; }
.wllab {
  font-family: "JetBrains Mono", monospace; font-size: 8.5px;
  letter-spacing: .14em; color: #5E666E; flex: none; padding-right: 2px;
}
.wlchip {
  display: flex; align-items: baseline; gap: 7px; flex: none;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); padding: 6px 13px; text-decoration: none;
}
.wlchip:hover { border-color: var(--accent); }
.wlchip b { font-size: 12px; color: var(--ink); font-weight: 700; }
.wlchip i { font-family: "JetBrains Mono", monospace; font-size: 10.5px;
            font-style: normal; color: #666E76; }
.wlchip i.pos { color: var(--accent); }
.wlchip i.neg { color: var(--sell); }
.wlall {
  flex: none; font-family: "JetBrains Mono", monospace; font-size: 9.5px;
  letter-spacing: .08em; color: var(--accent); text-decoration: none;
  padding: 0 4px;
}
@media (max-width: 560px) {
  .wlstrip { margin: 0 -14px 12px; padding: 0 14px 2px; }
}

/* ---------- hero carousel ----------
   Five strongest signals instead of one. Fixed height on the viewport: the
   hero is paired with the heat card in an .autofit row and balanceDesk()
   measures both, so a track whose height changed per slide would make the
   whole desk jump every seven seconds. */
.hcar { position: relative; overflow: hidden; }
/* The clip has to happen at the content box, not the card. Clipping on the
   card alone let the next slide show through the card's 30px padding, it
   read as a layout accident, and with arrows present the peek earns nothing. */
.hview { overflow: hidden; }
/* the arrows float over the card's edges, so the slide content is inset past
   them, otherwise ‹ sat on top of TOTAL BOUGHT's dollar figure */
.hcar .hview { margin: 0 26px; }
.hcar .hdots { padding: 0 26px; }
.hcar .hrank {
  font-family: "JetBrains Mono", monospace; font-size: 8.5px;
  letter-spacing: .16em; color: #5E666E; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
/* Window switch. The pressed state is carried by aria-pressed as well as the
   class, so it is announced and not only seen. */
.hcar .hwin { display: flex; gap: 4px; flex: none; }
.hcar .hwbtn {
  font-family: "JetBrains Mono", monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: .08em; color: #5E666E; background: transparent;
  border: 1px solid #2A3138; border-radius: 3px; padding: 3px 8px;
  cursor: pointer; line-height: 1.4;
}
.hcar .hwbtn:hover { color: #C7CDD3; border-color: #3C444C; }
.hcar .hwbtn.on { color: #10160C; background: var(--accent); border-color: var(--accent); }
.hcar .hwbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.htrack { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.hslide { flex: 0 0 100%; min-width: 100%; }
.hdots { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.hdot {
  font-family: "JetBrains Mono", monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: .06em; padding: 5px 9px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: #5E666E;
}
.hdot:hover { border-color: #2C333A; color: var(--ink-2); }
/* the label is the ticker, not an anonymous dot, you can see what you are
   skipping to rather than guessing */
.hdot.on { border-color: var(--accent); color: var(--accent);
           background: rgba(198,242,78,.08); }
@media (prefers-reduced-motion: reduce) { .htrack { transition: none; } }
@media (max-width: 560px) {
  .hcar .hrank { font-size: 8px; margin-bottom: 10px; }
  .hcar .hwbtn { font-size: 9px; padding: 3px 6px; }
  .hdots { gap: 5px; margin-top: 14px; }
  .hdot { font-size: 9px; padding: 5px 7px; }
}

/* carousel affordance: the slide looked accidentally cropped because nothing
   said "there are more". Arrows + a counter make the edge deliberate. */
.harr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 52px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(10,11,14,.75);
  color: var(--ink-2); font-size: 22px; line-height: 1; z-index: 2;
}
.harr:hover { border-color: var(--accent); color: var(--accent); }
.harr.prev { left: 10px; } .harr.next { right: 10px; }
.hcount { font-family: "JetBrains Mono", monospace; font-size: 9.5px;
          color: #5E666E; margin-left: auto; align-self: center; }
@media (max-width: 640px) {
  .harr { width: 30px; height: 44px; font-size: 19px; }
  .harr.prev { left: 6px; } .harr.next { right: 6px; }
}
