/* ═══════════════ BRASH Resource Hub — direction C, "Catalogue" ═══════════════
   Claude Design, 30 Sep 2026; brought onto the platform's brand on 5 Oct
   2026. The layout is the design's; the type and the colours are the
   platform's (platform/tokens.css, as Atlas and the OS carry them): Neue
   Haas Grotesk Display, paper #F3F2EF and graphite #141414, white cards,
   red #F40000 as the one accent — fill-only, with --red-text for words —
   the OS's court blue for what is live or active, green for movement, amber
   for a degraded feed. Loaded AFTER intel-tokens.css and edition.css: the
   token block reskins the desks the Hub keeps from the Edition (System, the
   sheet, ⌘K) and the hb-* classes are the Hub's own screens. */

@font-face{font-family:"Neue Haas Display";src:url("../../../platform/fonts/NeueHaasDisplayRoman.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Neue Haas Display";src:url("../../../platform/fonts/NeueHaasDisplayBold.ttf") format("truetype");font-weight:600 800;font-display:swap}
@font-face{font-family:"Neue Haas Display";src:url("../../../platform/fonts/NeueHaasDisplayLight.ttf") format("truetype");font-weight:300;font-display:swap}

.ed-root, .ed-root[data-edition="day"]{
  --paper:#F3F2EF; --card:#FFFFFF; --card-2:#ECEBE7; --card-3:#F7F6F4; --rule:rgba(0,0,0,.08); --rule-2:#111111;
  --ink:#111111; --ink-2:#4A4A48; --ink-3:#66655F; --ink-4:#4A4A48;
  --red:#F40000; --red-text:#D40000; --on-red:#0b0b0b; --wash:rgba(244,0,0,.10);
  /* "blue" is BRASH red since 5 Oct 2026: the name stayed so the 30-odd
     rules below did not have to; as words it is --red-text, as a wash --wash */
  --blue:var(--red-text); --blue-wash:var(--wash);
  --amber-text:#9A5C00; --amber-wash:rgba(245,166,35,.16); --amber-rule:rgba(245,166,35,.5); --green-text:#1E7F4A; --blue-text:var(--red-text); --focus:#2F6FED;
  --shadow:rgba(0,0,0,.14);
  --sans:"Neue Haas Display","Helvetica Neue",Helvetica,Arial,sans-serif; --display:"Neue Haas Display","Helvetica Neue",Helvetica,Arial,sans-serif; --logo-f:none;
  --logo-filter:none; /* the masthead sits on --paper since the uniform bar (5 Oct 2026), so the wordmark is red as drawn */
}
.ed-root[data-edition="night"]{
  --paper:#141414; --card:#1C1C1E; --card-2:#26262A; --card-3:#222226; --rule:rgba(255,255,255,.10); --rule-2:#F5F5F3;
  --ink:#F5F5F3; --ink-2:#C9C8C4; --ink-3:#9C9B96; --ink-4:#C9C8C4;
  --red:#F40000; --red-text:#FF5A4F; --on-red:#0b0b0b; --wash:rgba(244,0,0,.18);
  --blue:var(--red-text); --blue-wash:var(--wash);
  --amber-text:#F5A623; --amber-wash:rgba(245,166,35,.18); --amber-rule:rgba(245,166,35,.5); --green-text:#4FC57A; --blue-text:var(--red-text); --focus:#7FB2FF;
  --shadow:rgba(0,0,0,.6); --logo-f:invert(1);
  --logo-filter:none;
}
html,body{background:var(--paper)}
body{font-family:var(--sans);color:var(--ink);font-size:13px;line-height:1.45;-webkit-font-smoothing:antialiased}
.ed-root{font-family:var(--sans);background:var(--paper);color:var(--ink);min-height:100vh;display:flex;flex-direction:column;font-size:13px}
.ed-root h1,.ed-root h2,.ed-root h3,.ed-h2,.ed-h3{font-family:var(--display);font-weight:700;letter-spacing:-.02em}
.ed-root a{text-decoration:none;color:inherit}
.ed-root button,.ed-root input,.ed-root select,.ed-root textarea{font:inherit}
.ed-main{max-width:none!important;margin:0!important;padding:0!important;flex:1;display:flex;flex-direction:column;min-height:0}
.ed-legend,.ed-mast{display:none!important}

/* ── masthead: the platform's uniform app bar (5 Oct 2026) ──
   The same rules as New Biz's masthead (assets/css/newbiz.css, the .nb-*
   block — the reference), under the Hub's class names: a 64px paper bar with
   a rule beneath, the wordmark corner, the desks as a pill rail, and 36px
   controls at 10px radius on the right — the clock, ⌘K, Alerts, Saved and
   the appearance switch. Change one, change the other. */
.hb-mast{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px;padding:0 24px;border-bottom:1px solid var(--rule);background:var(--paper);position:sticky;top:0;z-index:20}
/* the platform's uniform corner: the red wordmark at 24px, then the name — as Atlas's header */
.hb-brand{display:flex;align-items:center;gap:12px;min-width:0;flex:none}
.hb-logo{height:24px;width:auto;display:block;flex:none;filter:var(--logo-filter,none)} /* red on paper and graphite; black on white (platform/tokens.css) */
.hb-brand .n{font-size:15px;line-height:20px;font-weight:700;white-space:nowrap}
.hb-nav{display:flex;gap:4px;padding:4px;background:var(--card-2);border-radius:999px;font-size:13px}
.hb-nav a{display:flex;align-items:center;gap:8px;height:32px;padding:0 14px;border-radius:999px;color:var(--ink-2);white-space:nowrap}
.hb-nav a span:first-child{font-size:11px}
.hb-nav a.ed-on{background:var(--paper);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(34,32,28,.08)}
.hb-tools{display:flex;align-items:center;gap:10px;font-size:13px}
.hb-clock{color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.hb-kbtn{display:flex;align-items:center;gap:10px;height:36px;padding:0 12px;border:1px solid var(--rule);background:var(--card);border-radius:10px;font-size:13px;color:var(--ink-2);cursor:pointer;white-space:nowrap;flex:none}
.hb-kbd{font-size:11px;padding:2px 5px;border:1px solid var(--rule);border-radius:4px}
.hb-alerts,.hb-saved{display:flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:10px;color:var(--ink);white-space:nowrap}
.hb-alerts:hover,.hb-saved:hover,.hb-nav a:hover{background:var(--card)}
.hb-mast .hb-ibtn{width:36px;height:36px;border:1px solid var(--rule);background:var(--card);border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--ink);padding:0}
.hb-mast .hb-ibtn svg,.hb-kbtn svg,.hb-alerts svg,.hb-saved svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* the solid fills that carried white on blue are now the platform's red
   fill, #F40000, with its --on-red ink (5.0:1) — red is fill-only, and white
   on it would not clear AA at these sizes */
.hb-btn.fill,.hb-tag.flash,.hb-sig .sc .n.hb-score-hi,.ed-btn-fill,.ed-tag-flash,.ed-sheet-foot .ed-sheet-act:first-child{background:var(--red)!important;border-color:var(--red)!important;color:var(--on-red)!important}
.ed-live-dot{background:var(--red)}

/* ── kit ── */
.hb-h1{margin:0;font-family:var(--display);font-size:40px;font-weight:700;letter-spacing:-.03em;line-height:1}
.hb-h2{margin:0;font-family:var(--display);font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
.hb-sub{margin:0;color:var(--ink-2);font-size:14px}
.hb-sub .live{color:var(--blue)}
.hb-label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.hb-cap{font-size:11px;color:var(--ink-3)}
.hb-btn{background:var(--card);border:1px solid var(--rule);border-radius:8px;padding:10px 14px;color:var(--ink-2);cursor:pointer;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-weight:500;line-height:1.2}
.hb-btn.fill{background:var(--blue);color:#fff;border-color:var(--blue);font-weight:600}
.hb-btn.ink{background:var(--ink);color:var(--paper);border-color:var(--ink);font-weight:600}
.hb-btn.hb-on{border-color:var(--blue);color:var(--blue)}
.hb-btn.sm{padding:6px 10px;min-height:36px}
.hb-btn:hover{border-color:var(--ink-3);color:var(--ink)}
.hb-btn.fill:hover{color:#fff;opacity:.92}
.hb-tag{background:var(--card-2);border-radius:4px;padding:3px 7px;font-size:11px;color:var(--ink-2);white-space:nowrap}
.hb-tag.blue{background:var(--blue-wash);color:var(--blue);font-weight:600}
.hb-tag.flash{background:var(--blue);color:#fff;font-weight:700}
.hb-tag.ink{background:var(--ink);color:var(--paper);font-weight:600}
.hb-input{background:var(--card);border:1px solid var(--rule);border-radius:8px;padding:10px 14px;color:var(--ink);outline:0;min-width:0}
.hb-input:focus{border-color:var(--blue)}
.hb-select{background:var(--card);border:1px solid var(--rule);border-radius:8px;padding:10px 32px 10px 14px;color:var(--ink-2);cursor:pointer;-webkit-appearance:none;appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--ink-3) 50%),linear-gradient(135deg,var(--ink-3) 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.hb-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hb-form .hb-input{flex:1}
.hb-card{background:var(--card);border-radius:12px}
.hb-pad{padding:28px 32px 0;display:flex;flex-direction:column;gap:24px;flex:1;min-width:0;min-height:0}
.hb-titlerow{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.hb-titlerow .l{display:flex;align-items:flex-end;gap:14px}
.hb-titlerow .t{display:flex;flex-direction:column;gap:4px}
.hb-titlerow .r{display:flex;gap:10px;flex-wrap:wrap}
.hb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hb-status{display:flex;align-items:center;gap:12px;padding:10px 32px;background:var(--amber-wash);border-bottom:1px solid var(--amber-rule);color:var(--amber-text);font-size:13px}
.hb-status.err{background:var(--wash);border-color:var(--blue-wash);color:var(--ink)}
.hb-status .r{margin-left:auto}
.hb-empty{display:flex;flex-direction:column;gap:10px;padding:40px 0;max-width:520px}
.hb-empty h2{margin:0;font-family:var(--display);font-size:22px;font-weight:700;letter-spacing:-.02em}
.hb-empty p{margin:0;color:var(--ink-2);font-size:14px;line-height:1.5}
.hb-skel{height:56px;border-radius:12px;background:linear-gradient(90deg,var(--card-2),var(--card),var(--card-2));background-size:200% 100%;animation:hbShimmer 1.4s infinite}
@keyframes hbShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.hb-ibtn{background:transparent;border:0;color:var(--ink-3);padding:4px;width:28px;height:28px;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.hb-ibtn.box{background:var(--card);border:1px solid var(--rule);width:44px;height:44px;border-radius:8px;color:var(--ink-2)}
.hb-ibtn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ── Library ── */
.hb-lib{display:flex;flex:1;min-height:0}
.hb-shelves{width:248px;flex:none;background:var(--card);border-right:1px solid var(--rule);padding:20px 12px;display:flex;flex-direction:column;gap:2px;overflow:auto}
.hb-shelves .head{display:flex;justify-content:space-between;align-items:center;padding:0 8px 12px}
.hb-shelf{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border-radius:8px;min-height:44px;cursor:pointer}
.hb-shelf .row{display:flex;justify-content:space-between;gap:8px}
.hb-shelf .row .l{font-weight:500}
.hb-shelf .row .n{font-variant-numeric:tabular-nums;color:var(--ink-3)}
.hb-shelf .d{font-size:11px;color:var(--ink-4)}
.hb-shelf.hb-on{background:var(--card-2)}
.hb-shelf.hb-on .row .l{font-weight:600}
.hb-shelf.hb-on .row .n{color:var(--blue);font-weight:600}
.hb-shelf:hover{background:var(--card-3)}
.hb-index{display:flex;flex-direction:column;gap:10px;padding:12px 8px 0;border-top:1px solid var(--rule);margin-top:auto}
.hb-index .s{font-size:12px;color:var(--ink-2);line-height:1.5}
.hb-index .s .live{color:var(--blue)}
.hb-shelfcards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.hb-shelfcard{display:flex;flex-direction:column;gap:14px;background:var(--card);border-radius:12px;padding:16px;min-height:108px;cursor:pointer}
.hb-shelfcard.all{background:var(--ink);color:var(--paper)}
.hb-shelfcard .n{font-family:var(--display);font-size:32px;font-weight:700;letter-spacing:-.03em;line-height:1}
.hb-shelfcard .l{font-weight:600;display:block}
.hb-shelfcard .d{font-size:11px;color:var(--ink-4);display:block}
.hb-shelfcard.all .d{color:#b6bcc5}
.hb-shelfcard.hb-on{outline:2px solid var(--blue)}
.hb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start;padding-bottom:32px}
.hb-entry{display:flex;flex-direction:column;gap:12px;background:var(--card);border-radius:12px;padding:18px;min-height:196px;cursor:pointer}
.hb-entry:hover{box-shadow:0 0 0 2px var(--blue-wash)}
.hb-entry .kind{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.hb-entry .kind .k{color:var(--blue)}
.hb-entry .kind .v{color:var(--ink-3);font-weight:500;letter-spacing:0;text-transform:none}
.hb-entry .t{font-family:var(--display);font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
.hb-entry .x{font-size:13px;line-height:1.45;color:var(--ink-2)}
.hb-entry .meta{margin-top:auto;display:flex;gap:6px;font-size:11px;color:var(--ink-2);align-items:center;flex-wrap:wrap}
.hb-entry .meta .date{margin-left:auto;color:var(--ink-3)}
.hb-docs{background:var(--card);border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:12px}
.hb-docs .head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hb-doc{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-top:1px solid var(--card-2)}
.hb-doc a.t{font-weight:600;font-size:14px;color:var(--ink)}
.hb-doc a.t:hover{color:var(--blue)}
.hb-doc .s{font-size:12px;color:var(--ink-3)}
.hb-doc .n{font-size:13px;color:var(--ink-2)}
.hb-doc .acts{display:flex;gap:10px;font-size:12px;color:var(--ink-3)}
.hb-doc .acts a:hover{color:var(--blue)}
.hb-contrib{background:var(--card);border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:12px}
.hb-contrib .fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.hb-contrib .full{grid-column:1/-1}
.hb-contrib textarea{min-height:140px;line-height:1.5;resize:vertical}
.hb-field{display:flex;flex-direction:column;gap:6px}
.hb-field label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.hb-crow{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--card-2);font-size:13px}
.hb-crow .s{color:var(--ink-3);font-size:12px;white-space:nowrap}
.hb-crow .s.hb-queued{color:var(--amber-text)}
.hb-crow .s.hb-ok{color:var(--green-text)}

/* ── Signals ── */
.hb-2col{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:24px;padding:24px 32px 32px;flex:1;min-height:0}
.hb-2col > main{display:flex;flex-direction:column;gap:16px;min-height:0;min-width:0}
.hb-2col > aside{display:flex;flex-direction:column;gap:20px;min-height:0}
.hb-signals{display:flex;flex-direction:column;gap:10px}
.hb-sig{background:var(--card);border-radius:12px;padding:18px;display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:start;cursor:pointer}
.hb-sig:hover{box-shadow:0 0 0 2px var(--blue-wash)}
.hb-sig .sc{display:flex;flex-direction:column;align-items:center;gap:4px}
.hb-sig .sc .n{font-family:var(--display);font-size:22px;font-weight:700;color:#fff;background:var(--ink-2);border-radius:8px;width:48px;height:48px;display:flex;align-items:center;justify-content:center}
.hb-sig .sc .n.hb-score-hi{background:var(--blue)}
.hb-sig .sc .l{font-size:10px;color:var(--ink-3)}
.hb-sig .b{display:flex;flex-direction:column;gap:6px;min-width:0}
.hb-sig .row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.hb-sig .src{font-size:11px;color:var(--ink-3)}
.hb-sig .h{font-family:var(--display);font-size:17px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
.hb-sig .x{font-size:13px;line-height:1.45;color:var(--ink-2)}
.hb-panel{background:var(--card);border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:12px}
.hb-panel .head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.hb-alert{display:flex;flex-direction:column;gap:8px;border-radius:8px;padding:10px 12px;background:var(--card-2)}
.hb-alert.flash{background:var(--blue-wash)}
.hb-alert .row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hb-alert .t{font-weight:600;cursor:pointer}
.hb-alert .acts{display:flex;gap:6px;flex-wrap:wrap}
.hb-rule{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--card-2);font-size:13px}
.hb-rule .s{color:var(--ink-3);font-size:12px}
.hb-rule .acts{display:flex;gap:6px;flex:none}
.hb-rule .acts a{color:var(--ink-3);font-size:12px}
.hb-rule .acts a:hover{color:var(--blue)}
.hb-newrule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hb-newrule .full{grid-column:1/-1}

/* ── Markets ── */
.hb-chips{display:flex;gap:6px;flex-wrap:wrap}
.hb-chip{border:0;padding:8px 12px;border-radius:4px;background:var(--card);color:var(--ink-2);font-size:12px;cursor:pointer;white-space:nowrap}
.hb-chip.ed-on,.hb-chip.hb-on{background:var(--ink);color:var(--paper)}
.hb-table{background:var(--card);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;margin-bottom:32px}
.hb-th{display:grid;grid-template-columns:40px minmax(0,1fr) 130px 90px 100px 90px;gap:12px;padding:10px 16px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.hb-tr{display:grid;grid-template-columns:40px minmax(0,1fr) 130px 90px 100px 90px;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--card-2);min-height:48px;cursor:pointer}
.hb-tr:hover{background:var(--card-3)}
.hb-tr .name{font-weight:600;font-size:14px}
.hb-tr .reg{color:var(--ink-2)}
.hb-tr .score{font-family:var(--display);font-weight:700;font-size:18px;font-variant-numeric:tabular-nums}
.hb-tr .delta{font-weight:600;font-variant-numeric:tabular-nums;color:var(--green-text)}
.hb-tr .delta.down{color:var(--red-text)}
.hb-tr .sig{color:var(--ink-2);font-variant-numeric:tabular-nums}
.hb-watch{background:transparent;border:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;color:var(--ink-3);font-size:14px}
.hb-watch.ed-on{color:var(--blue)}

/* ── Agents ── */
.hb-agents{display:grid;grid-template-columns:260px minmax(0,1fr) 300px;gap:24px;padding:28px 32px 32px;flex:1;min-height:0}
.hb-agents > div:first-child{display:flex;flex-direction:column;gap:10px}
.hb-agent{display:flex;flex-direction:column;gap:4px;background:var(--card);border-radius:12px;padding:16px;cursor:pointer}
.hb-agent.ed-on{outline:2px solid var(--blue)}
.hb-agent .n{font-family:var(--display);font-size:17px;font-weight:700;letter-spacing:-.02em}
.hb-agent .b{color:var(--ink-2);font-size:13px}
.hb-agent .c{color:var(--ink-3);font-size:11px}
.hb-agents > main{display:flex;flex-direction:column;gap:16px;min-width:0}
.hb-agents > aside{display:flex;flex-direction:column;gap:4px}
.hb-hist{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-top:1px solid var(--rule);cursor:pointer}
.hb-hist .t{font-weight:600}
.hb-hist .s{font-size:12px;color:var(--ink-3)}
.hb-intro{background:var(--card);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:10px;max-width:720px}
.hb-intro p{margin:0;color:var(--ink-2);font-size:14px;line-height:1.5}

/* ── Home ── */
.hb-home{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;padding:28px 32px 32px;flex:1;min-height:0}
.hb-home > main{display:flex;flex-direction:column;gap:20px;min-width:0}
.hb-home > aside{display:flex;flex-direction:column;gap:16px}
.hb-lead{background:var(--card);border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:10px;cursor:pointer}
.hb-lead .k{display:flex;justify-content:space-between;gap:10px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.hb-lead .k .b{color:var(--blue)}
.hb-lead .h{font-family:var(--display);font-size:28px;font-weight:700;letter-spacing:-.03em;line-height:1.1}
.hb-lead .x{font-size:14px;line-height:1.5;color:var(--ink-2)}
.hb-week{display:flex;flex-direction:column;gap:0}
.hb-wrow{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;padding:10px 0;border-top:1px solid var(--rule);cursor:pointer}
.hb-wrow .d{color:var(--ink-3);font-size:12px;font-weight:600}
.hb-wrow:hover .t{color:var(--blue)}
.hb-mover{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid var(--card-2);cursor:pointer}
.hb-mover .v{font-variant-numeric:tabular-nums;font-weight:600}
.hb-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hb-count{display:flex;flex-direction:column;gap:2px;background:var(--card-2);border-radius:8px;padding:10px 12px;cursor:pointer}
.hb-count .n{font-family:var(--display);font-size:22px;font-weight:700}
.hb-count .l{font-size:11px;color:var(--ink-3)}
.hb-newlib{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-top:1px solid var(--card-2);cursor:pointer;font-weight:500}
.hb-newlib span{color:var(--ink-3);font-weight:400}

/* ── the Edition's shared kit, on the Hub's terms ── */
.ed-btn{border-radius:8px;font-weight:500;font-size:13px;padding:0 14px;height:38px;display:inline-flex;align-items:center;justify-content:center;letter-spacing:0;text-transform:none;border:1px solid var(--rule);background:var(--card);color:var(--ink-2)}
.ed-btn-fill{background:var(--blue);color:#fff;border-color:var(--blue);font-weight:600}
.ed-btn-outline{border-color:var(--rule)}
.ed-btn-text{border-color:transparent;background:transparent;color:var(--blue);text-decoration:none}
.ed-btn-sm{height:32px;padding:0 10px;font-size:12px}
.ed-btn-lg{height:44px;font-size:14px}
.ed-btn:hover{border-color:var(--ink-3);color:var(--ink)}
.ed-btn-fill:hover{color:#fff;opacity:.92}
.ed-input,.ed-input-line,.ed-kbar-input{border:1px solid var(--rule);border-radius:8px;background:var(--card);padding:10px 14px;font-size:13px;color:var(--ink);letter-spacing:0;text-transform:none}
.ed-input:focus,.ed-input-line:focus{border-color:var(--blue);outline:0}
.ed-label,.t-label{letter-spacing:.06em;font-size:11px;font-weight:600;color:var(--ink-3)}
.ed-tag{border-radius:4px;font-size:11px;letter-spacing:0;text-transform:none;padding:3px 7px}
.ed-tag-outline{border:0;background:var(--card-2);color:var(--ink-2)}
.ed-tag-flash{background:var(--blue);color:#fff;font-weight:700}
.ed-tag-priority{background:var(--ink);color:var(--paper)}
.ed-pill{border-radius:4px;border:0;background:var(--card);font-size:12px;padding:8px 12px;text-transform:none;letter-spacing:0;color:var(--ink-2)}
.ed-pill.ed-on{background:var(--ink);color:var(--paper)}
.ed-seg{padding:3px;background:var(--card-2);border-radius:8px;border:0}
.ed-seg-item{border-radius:6px;font-size:12px;padding:6px 12px;text-transform:none;letter-spacing:0;color:var(--ink-2);border:0}
.ed-seg-item.ed-on{background:var(--card);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(17,20,24,.08)}
.ed-2col{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;padding:28px 32px 32px}
.ed-2col > aside{display:flex;flex-direction:column;gap:14px}
.ed-cardbox,.ed-fault{background:var(--card);border:0;border-radius:12px;padding:16px 18px}
.ed-fault{background:var(--amber-wash);border:1px solid var(--amber-rule);color:var(--amber-text)}
.ed-fault-hd{font-weight:600;letter-spacing:0;text-transform:none}
.ed-empty{padding:40px 0;max-width:520px}
.ed-h2{font-size:22px;line-height:1.15}
.ed-dek{font-size:14px;line-height:1.5;color:var(--ink-2)}
.ed-subline{margin-top:6px}
.ed-composer{display:flex;gap:8px;margin-top:16px;background:var(--card);border-radius:12px;padding:10px}
.ed-composer .ed-input{flex:1;height:44px;border:0;background:transparent}
.ed-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:var(--paper);padding:10px 16px;border-radius:8px;font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;z-index:90;box-shadow:0 12px 30px var(--shadow)}
.ed-kbar-scrim{position:fixed;inset:0;background:rgba(17,20,24,.28);z-index:80;display:flex;align-items:flex-start;justify-content:center;padding-top:12vh}
.ed-kbar{width:min(640px,calc(100vw - 32px));background:var(--card);border-radius:12px;box-shadow:0 24px 60px var(--shadow);overflow:hidden}
.ed-kbar-hd{display:flex;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--rule)}
.ed-kbar-input{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid var(--rule);border-radius:0;padding:14px 18px;font-size:15px}
.ed-kbar-row{display:flex;align-items:center;gap:12px;padding:10px 18px;cursor:pointer;font-size:14px}
.ed-kbar-row.ed-on,.ed-kbar-row:hover{background:var(--card-2)}
.ed-kbar-label{flex:1}
/* the sheet: a white column on the right, over a scrim (direction C) */
.ed-sheet-scrim,.ed-scrim{position:fixed;inset:0;background:rgba(17,20,24,.28);z-index:60}
.ed-sheet{position:fixed;top:0;right:0;bottom:0;width:min(560px,calc(100vw - 24px));background:var(--card);z-index:70;display:flex;flex-direction:column;overflow:hidden;border:0;box-shadow:-12px 0 40px var(--shadow)}
.ed-sheet-hd{padding:20px 28px 16px;border-bottom:1px solid var(--rule)}
.ed-sheet-title{font-family:var(--display);font-size:28px;font-weight:700;letter-spacing:-.03em;line-height:1.05}
.ed-sheet-meta{font-size:12px;color:var(--ink-3);text-transform:none;letter-spacing:0}
.ed-sheet-body{padding:20px 28px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:20px}
.ed-sheet-sechead{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.ed-sheet-foot{padding:14px 28px 18px;border-top:1px solid var(--rule);display:flex;flex-wrap:wrap;gap:8px;background:var(--card-3)}
.ed-sheet-x{border-radius:8px;border:1px solid var(--rule);width:36px;height:36px;min-width:36px;padding:0;font-size:22px;line-height:1;font-weight:400;flex:none}
.ed-kicker{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.ed-tbl,.ed-row-open{border-radius:8px}
.ed-row-open:hover{background:var(--card-3)}
.ed-skel{height:56px;border-radius:12px;background:var(--card-2)}
.ed-live{color:var(--blue);font-weight:600}
.ed-live-dot{background:var(--blue)}
.ed-agent-mark{width:36px;height:36px;border-radius:8px;background:var(--blue-wash);color:var(--blue);font-family:var(--display);font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.ed-agent-mark-lg{width:44px;height:44px;font-size:18px}

/* ── phone ── */
@media (max-width:1100px){
  .hb-shelfcards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hb-2col,.hb-home{grid-template-columns:1fr}
  .hb-agents{grid-template-columns:1fr}
  .hb-mast{padding:0 20px}
  .hb-kbtn .l{display:none} /* the ⌘K control keeps its icon and key */
  .hb-pad{padding:20px 20px 0}
  .ed-2col{grid-template-columns:1fr;padding:20px}
}
@media (max-width:700px){
  .hb-mast{height:56px;padding:0 16px;gap:8px}
  .hb-logo{height:20px}
  .hb-nav,.hb-kbtn,.hb-alerts,.hb-saved{display:none}
  .hb-lib{flex-direction:column}
  .hb-shelves{width:auto;border-right:0;border-bottom:1px solid var(--rule);flex-direction:row;overflow:auto;padding:10px 12px;gap:6px}
  .hb-shelves .head,.hb-index{display:none}
  .hb-shelf{flex:none;min-height:0;padding:8px 10px;border-radius:999px;background:var(--card-2)}
  .hb-shelf .d{display:none}
  .hb-shelfcards{display:none}
  .hb-grid{grid-template-columns:1fr;padding-bottom:80px}
  .hb-pad,.hb-2col,.hb-home,.hb-agents{padding:16px 16px 80px;gap:14px}
  .hb-h1{font-size:28px}
  .hb-th{display:none}
  .hb-tr{grid-template-columns:32px minmax(0,1fr) 60px 80px;gap:8px}
  .hb-tr .reg,.hb-tr .sig{display:none}
  .ed-sheet{top:auto;left:0;right:0;bottom:0;width:auto;max-height:88vh;border-radius:16px 16px 0 0}
  .ed-sheet-hd,.ed-sheet-body,.ed-sheet-foot{padding-left:18px;padding-right:18px}
  .hb-legend{display:flex}
  .ed-root{padding-bottom:64px}
}
.hb-legend{display:none;position:fixed;left:0;right:0;bottom:0;height:56px;padding:0 8px env(safe-area-inset-bottom,0);background:var(--paper);border-top:1px solid var(--rule);align-items:center;justify-content:space-around;z-index:30}
.hb-legend a,.hb-legend button{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;color:var(--ink-2);border:0;background:transparent;padding:6px 6px;border-radius:8px}
.hb-legend a span:first-child{font-size:11px;font-weight:700;color:var(--ink-3)}
.hb-legend a.ed-on{background:var(--card-2);color:var(--ink)}
.hb-legend a.ed-on span:first-child{color:var(--blue)}
/* the sheet's actions read as a row of buttons, the first one filled (direction C) */
.ed-sheet-foot .ed-sheet-act{width:auto!important;flex:0 0 auto;display:inline-flex!important;margin:0!important}
.ed-sheet-foot .ed-sheet-act:first-child{background:var(--blue);color:#fff;border-color:var(--blue)}
.ed-sheet-body .ed-sheet-sec{border:0}

/* the Markets table: the inflection signal beside the name, a dash where no velocity read exists this month */
.hb-sigtag{display:inline-block;margin-left:8px;padding:2px 6px;border-radius:3px;font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;vertical-align:middle;background:var(--card-2);color:var(--ink-2)}
.hb-sigtag.mb-green{color:var(--green-text)}.hb-sigtag.mb-amber{color:var(--amber-text)}.hb-sigtag.mb-red{color:var(--red-text)}
.hb-tr .score.nil,.hb-tr .delta.nil{color:var(--ink-3);font-weight:400}
@media (max-width:700px){.hb-sigtag{display:none}}
