/* ============================================================
   Hermes Logios — "alive" mechanics widgets
   Injected vanilla layer. Class-prefixed `hl-` to avoid React DOM collisions.
   Uses the site's existing :root tokens (--accent, --font-mono, --font-display).
   ============================================================ */

:root {
  /* local fallbacks — these mirror the site tokens, used only if a var is absent */
  --hl-bg: #101010;
  --hl-black: #000000;
  --hl-panel: #1b1c1d;
  --hl-panel-2: #242629;
  --hl-text: #f5f5f5;
  --hl-muted: #a1a6aa;
  --hl-cyan: var(--accent, #51dcfb);
  --hl-green: #55f678;
  --hl-warn: #f8c24f;
  --hl-error: #f85454;
  --hl-hair: #2f3337;
  --hl-mono: var(--font-mono, "IBM Plex Mono", monospace);
  --hl-display: var(--font-display, "Cinzel", serif);
  --hl-barh: 30px;
}

/* ----------------------------------------------------------------
   WIDGET A — LIVE STATS BAR (fixed top strip)
   ---------------------------------------------------------------- */
.hl-statsbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hl-barh);
  z-index: 2147483000; /* above the React app + any portals */
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 14px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hl-hair);
  font-family: var(--hl-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--hl-text);
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

.hl-statsbar__scroll {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
  overflow: hidden;
}

.hl-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
}

.hl-stat__k {
  color: var(--hl-muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hl-stat__v {
  color: var(--hl-text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.hl-stat__v--accent {
  color: var(--hl-cyan);
}

.hl-sep {
  flex: 0 0 auto;
  margin: 0 12px;
  color: var(--hl-hair);
  font-size: 10px;
}

/* live pill on the right edge */
.hl-live {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--hl-hair);
  color: var(--hl-muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.hl-live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hl-cyan);
  box-shadow: 0 0 0 0 rgba(81, 220, 251, 0.7);
  animation: hl-pulse 2s ease-out infinite;
}

@keyframes hl-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(81, 220, 251, 0.6);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 7px rgba(81, 220, 251, 0);
    opacity: 0.7;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(81, 220, 251, 0);
    opacity: 1;
  }
}

/* hide some stats on narrow screens to keep one clean line */
@media (max-width: 720px) {
  .hl-stat--uptime,
  .hl-stat--val,
  .hl-stat--recent,
  .hl-stat--uptime + .hl-sep,
  .hl-stat--val + .hl-sep,
  .hl-stat--recent + .hl-sep {
    display: none;
  }
}

/* ----------------------------------------------------------------
   WIDGET B — TERMINAL overlay
   ---------------------------------------------------------------- */
.hl-term-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.66);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.hl-term-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hl-term {
  width: 100%;
  max-width: 860px;
  height: 70vh;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  background: #0c0d0e;
  border: 1px solid var(--hl-hair);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(81, 220, 251, 0.08),
    0 30px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 60px -30px rgba(81, 220, 251, 0.25);
  overflow: hidden;
  transform: translateY(10px) scale(0.985);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.2s ease;
}

.hl-term-backdrop.is-open .hl-term {
  transform: translateY(0) scale(1);
}

/* titlebar */
.hl-term__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  background: var(--hl-panel-2);
  border-bottom: 1px solid var(--hl-hair);
  font-family: var(--hl-mono);
}

.hl-term__lights {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.hl-term__light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--hl-hair);
}

.hl-term__light--a {
  background: #3a3d40;
}
.hl-term__light--b {
  background: #4a4e52;
}
.hl-term__light--c {
  background: var(--hl-cyan);
  opacity: 0.85;
}

.hl-term__title {
  flex: 1 1 auto;
  text-align: center;
  color: var(--hl-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  font-family: var(--hl-mono);
}

.hl-term__close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--hl-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.hl-term__close:hover {
  color: var(--hl-text);
  border-color: var(--hl-hair);
  background: rgba(255, 255, 255, 0.04);
}

/* body / scrollback */
.hl-term__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px 18px;
  background: #0c0d0e;
  background-image: radial-gradient(
    circle at 50% 0%,
    rgba(81, 220, 251, 0.04),
    transparent 60%
  );
  font-family: var(--hl-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--hl-text);
  scrollbar-width: thin;
  scrollbar-color: var(--hl-hair) transparent;
}

.hl-term__body::-webkit-scrollbar {
  width: 8px;
}
.hl-term__body::-webkit-scrollbar-thumb {
  background: var(--hl-hair);
  border-radius: 4px;
}
.hl-term__body::-webkit-scrollbar-track {
  background: transparent;
}

.hl-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.hl-line--cmd {
  color: var(--hl-cyan);
}
.hl-line--ok {
  color: var(--hl-green);
}
.hl-line--err {
  color: var(--hl-error);
}
.hl-line--warn {
  color: var(--hl-warn);
}
.hl-line--muted {
  color: var(--hl-muted);
}
.hl-line--add {
  color: var(--hl-green);
}
.hl-line--del {
  color: var(--hl-error);
}
.hl-line--info {
  color: var(--hl-text);
}

.hl-line__dim {
  color: var(--hl-muted);
}
.hl-line__hash {
  color: var(--hl-cyan);
}

/* blinking caret on the latest line */
.hl-caret::after {
  content: "▋";
  margin-left: 2px;
  color: var(--hl-cyan);
  animation: hl-blink 1s steps(1) infinite;
}

@keyframes hl-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .hl-term {
    height: 78vh;
  }
  .hl-term__body {
    font-size: 11.5px;
  }
}

/* ----------------------------------------------------------------
   SHARED PANEL OVERLAY (Explorer / Faucet / Wallet)
   Reuses .hl-term-backdrop for centering + fade. Framed panel chrome.
   ---------------------------------------------------------------- */
.hl-panel {
  width: 100%;
  max-width: 620px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: #0c0d0e;
  border: 1px solid var(--hl-hair);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(81, 220, 251, 0.08),
    0 30px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 60px -30px rgba(81, 220, 251, 0.25);
  overflow: hidden;
  transform: translateY(10px) scale(0.985);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.2s ease;
}

.hl-panel--explorer {
  max-width: 720px;
}
.hl-panel--faucet,
.hl-panel--wallet {
  max-width: 460px;
}

.hl-term-backdrop.is-open .hl-panel {
  transform: translateY(0) scale(1);
}

.hl-panel__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  background: var(--hl-panel-2);
  border-bottom: 1px solid var(--hl-hair);
}

.hl-panel__title {
  font-family: var(--hl-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hl-text);
}

.hl-panel__close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--hl-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.hl-panel__close:hover {
  color: var(--hl-text);
  border-color: var(--hl-hair);
  background: rgba(255, 255, 255, 0.04);
}

.hl-panel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 18px 20px;
  background: #0c0d0e;
  background-image: radial-gradient(
    circle at 50% 0%,
    rgba(81, 220, 251, 0.04),
    transparent 60%
  );
  font-family: var(--hl-mono);
  font-size: 12.5px;
  color: var(--hl-text);
  scrollbar-width: thin;
  scrollbar-color: var(--hl-hair) transparent;
}

.hl-panel__body::-webkit-scrollbar {
  width: 8px;
}
.hl-panel__body::-webkit-scrollbar-thumb {
  background: var(--hl-hair);
  border-radius: 4px;
}
.hl-panel__body::-webkit-scrollbar-track {
  background: transparent;
}

.hl-panel__lead {
  color: var(--hl-muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 16px;
}

/* ----- shared buttons ----- */
.hl-btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--hl-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hl-cyan);
  background: rgba(81, 220, 251, 0.06);
  border: 1px solid rgba(81, 220, 251, 0.4);
  border-radius: 6px;
  padding: 9px 14px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.hl-btn:hover:not(:disabled) {
  background: rgba(81, 220, 251, 0.14);
  border-color: var(--hl-cyan);
}

.hl-btn:disabled {
  color: var(--hl-muted);
  border-color: var(--hl-hair);
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
}

.hl-btn--block {
  display: block;
  width: 100%;
  margin-top: 4px;
}

.hl-btn--ghost {
  color: var(--hl-muted);
  background: transparent;
  border-color: var(--hl-hair);
  margin-top: 14px;
}
.hl-btn--ghost:hover:not(:disabled) {
  color: var(--hl-text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--hl-muted);
}

/* ----- EXPLORER table ----- */
.hl-rituals {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hl-xtable {
  border: 1px solid var(--hl-hair);
  border-radius: 8px;
  overflow: hidden;
}

.hl-xrow {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.7fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--hl-hair);
  transition: background 0.12s ease;
}

.hl-xbody .hl-xrow:last-child {
  border-bottom: none;
}

.hl-xrow--head {
  background: var(--hl-panel-2);
  border-bottom: 1px solid var(--hl-hair);
}
.hl-xrow--head .hl-xcell {
  color: var(--hl-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hl-xbody .hl-xrow:hover {
  background: rgba(81, 220, 251, 0.07);
}

.hl-xcell {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hl-xcell--blk {
  color: var(--hl-cyan);
}
.hl-xcell--hash {
  color: var(--hl-text);
}
.hl-xcell--txns {
  color: var(--hl-text);
}
.hl-xcell--age {
  color: var(--hl-muted);
  text-align: right;
}

/* ----- narration output ----- */
.hl-narr {
  margin-top: 16px;
}
.hl-narr__line {
  display: flex;
  gap: 8px;
  color: var(--hl-text);
  font-size: 12.5px;
  line-height: 1.7;
  margin-bottom: 6px;
}
.hl-narr__pfx {
  flex: 0 0 auto;
  color: var(--hl-cyan);
}
.hl-narr__txt {
  flex: 1 1 auto;
  white-space: pre-wrap;
}

/* ----- fields (faucet/wallet rows) ----- */
.hl-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hl-hair);
}
.hl-field:last-of-type {
  border-bottom: none;
}
.hl-field--col {
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}
.hl-field__k {
  color: var(--hl-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hl-field__v {
  color: var(--hl-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.hl-field__v--accent {
  color: var(--hl-cyan);
}

.hl-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--hl-mono);
  font-size: 12px;
  color: var(--hl-text);
  background: #101010;
  border: 1px solid var(--hl-hair);
  border-radius: 6px;
  padding: 9px 11px;
  outline: none;
  transition: border-color 0.15s ease;
}
.hl-input:focus {
  border-color: rgba(81, 220, 251, 0.5);
}

/* ----- status line (faucet) ----- */
.hl-status {
  min-height: 16px;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.hl-status--muted {
  color: var(--hl-muted);
}
.hl-status--ok {
  color: var(--hl-green);
}

/* ----- faucet text-button in the stat-bar ----- */
.hl-faucet-btn {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--hl-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hl-cyan);
  background: transparent;
  border: none;
  padding: 0;
  margin-left: 14px;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}
.hl-faucet-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .hl-faucet-btn {
    display: none;
  }
}

@media (max-width: 560px) {
  .hl-panel {
    max-width: 100%;
  }
  .hl-xrow {
    grid-template-columns: 1fr 1.2fr 0.6fr 0.9fr;
    padding: 8px 10px;
  }
  .hl-xcell {
    font-size: 11px;
  }
}

/* QA: hide Initia leftover app-switcher drawer (top-left grid) */
.initia-app-menu{display:none!important}

/* QA: hide leftover decorative duplicate "writes"+hover-gif in hero.
   Targets ONLY the .group wrapper that holds /images/decoration/multichain.gif,
   leaving "The chain that" and "writes itself." headings intact.
   Result desktop line reads: "The chain that / writes itself." once. */
.group:has(> img[src*="multichain.gif"]) {
  display: none !important;
}

/* ---- Quick-nav: DESKTOP = top header band (center, where old Terminal/Explorer
   dropdowns were) as plain nav links; MOBILE = floating bottom pill bar ---- */
.hl-quicknav{position:fixed;left:0;right:0;top:34px;z-index:2147482050;display:flex;justify-content:center;pointer-events:none;padding:0 150px}
.hl-quicknav__inner{display:flex;gap:2px;max-width:100%;padding:0;background:transparent;border:none;box-shadow:none;pointer-events:auto;overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none}
.hl-quicknav__inner::-webkit-scrollbar{display:none}
.hl-quicknav__item{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;padding:7px 13px;border-radius:6px;font-family:var(--font-mono,"IBM Plex Mono",monospace);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#A1A6AA;text-decoration:none;white-space:nowrap;transition:color .18s ease,background .18s ease;border:1px solid transparent}
.hl-quicknav__item svg{display:none}
.hl-quicknav__item:hover,.hl-quicknav__item:focus-visible{color:#51DCFB;background:rgba(81,220,251,.08);outline:none}
@media (max-width:640px){
  .hl-quicknav{top:auto;bottom:12px;padding:0 8px}
  .hl-quicknav__inner{gap:6px;padding:6px;border-radius:999px;background:rgba(13,13,13,.85);border:1px solid #2F3337;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 8px 30px rgba(0,0,0,.5)}
  .hl-quicknav__item{padding:8px 11px;font-size:11px;color:#CFC8B6}
  .hl-quicknav__item svg{display:inline;opacity:.55}
}
@media (prefers-reduced-motion:reduce){.hl-quicknav__item{transition:none}}

/* ---- Wallet connected-state actions (no dead-end) ---- */
.hl-wallet-hint{margin:14px 0 8px;font-family:var(--font-mono,"IBM Plex Mono",monospace);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#A1A6AA}
.hl-wallet-actions{display:flex;gap:8px;flex-wrap:wrap}
.hl-wallet-actions .hl-btn{flex:1 1 auto;min-width:96px}

/* ----------------------------------------------------------------
   WIDGET F — AGENT ("THE AGENT")
   ---------------------------------------------------------------- */
.hl-panel--agent {
  max-width: 520px;
}

.hl-agent-identity {
  font-family: var(--hl-display);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--hl-text);
  margin: 0 0 18px;
}
.hl-agent-greek {
  color: var(--hl-cyan);
  letter-spacing: 0.08em;
}

.hl-agent-statusrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--hl-hair);
}

/* the big colour-coded status badge */
.hl-agent-badge {
  font-family: var(--hl-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.02);
}
.hl-agent-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: middle;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.hl-agent-badge.is-online   { color: var(--hl-green); }
.hl-agent-badge.is-working  { color: var(--hl-cyan); }
.hl-agent-badge.is-verify   { color: var(--hl-warn); }
.hl-agent-badge.is-standby  { color: var(--hl-muted); }
.hl-agent-badge.is-halted   { color: var(--hl-error); }

.hl-agent-note {
  margin-top: 16px;
  color: var(--hl-muted);
  font-size: 12px;
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   WIDGET G — UPDATES ("SHIPS ITS OWN") — changelog + receipts
   ---------------------------------------------------------------- */
.hl-panel--updates {
  max-width: 640px;
}

.hl-chlog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hl-chlog {
  padding: 12px 14px;
  border: 1px solid var(--hl-hair);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}

.hl-chlog__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.hl-chlog__ver {
  flex: 0 0 auto;
  font-family: var(--hl-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--hl-cyan);
  padding: 3px 8px;
  border: 1px solid rgba(81, 220, 251, 0.4);
  border-radius: 999px;
  background: rgba(81, 220, 251, 0.06);
}

.hl-chlog__title {
  flex: 1 1 auto;
  font-family: var(--hl-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--hl-text);
}

.hl-chlog__time {
  flex: 0 0 auto;
  font-family: var(--hl-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hl-muted);
}

.hl-chlog__body {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--hl-muted);
}

/* small subsection heading (reused for DECISION RECEIPTS) */
.hl-subhead {
  margin: 22px 0 12px;
  font-family: var(--hl-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-muted);
  border-bottom: 1px solid var(--hl-hair);
  padding-bottom: 8px;
}

.hl-receipt-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hl-receipt {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 2fr;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--hl-hair);
  font-family: var(--hl-mono);
  font-size: 12px;
}
.hl-receipt:last-child {
  border-bottom: none;
}
.hl-receipt__blk {
  color: var(--hl-cyan);
  font-variant-numeric: tabular-nums;
}
.hl-receipt__hash {
  color: var(--hl-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hl-receipt__decision {
  color: var(--hl-muted);
}

/* ----- UPDATES: header commit-trail + anti-roadmap line ----- */
.hl-rm-header {
  margin: 0 0 18px;
}

.hl-rm-trail {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--hl-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.hl-rm-trail__n {
  color: var(--hl-cyan);
  font-variant-numeric: tabular-nums;
}
.hl-rm-trail__sep {
  color: var(--hl-hair);
}
.hl-rm-trail__t {
  color: var(--hl-muted);
}

.hl-rm-anti {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--hl-muted);
  border-left: 2px solid rgba(81, 220, 251, 0.4);
  padding-left: 12px;
}

/* ----- UPDATES: ROADMAP — machine-tracked backlog ----- */
.hl-roadmap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hl-rm-tier {
  border: 1px solid var(--hl-hair);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  padding: 12px 14px;
}

.hl-rm-tier__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.hl-rm-tier__name {
  font-family: var(--hl-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hl-text);
}

/* status pill (tier header) */
.hl-rm-pill {
  flex: 0 0 auto;
  font-family: var(--hl-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--hl-hair);
  color: var(--hl-muted);
  background: rgba(255, 255, 255, 0.02);
}
.hl-rm-pill.is-done {
  color: var(--hl-green);
  border-color: rgba(85, 246, 120, 0.4);
  background: rgba(85, 246, 120, 0.07);
}
.hl-rm-pill.is-shipping {
  color: var(--hl-cyan);
  border-color: rgba(81, 220, 251, 0.45);
  background: rgba(81, 220, 251, 0.08);
  animation: hl-rm-pulse 1.8s ease-in-out infinite;
}
.hl-rm-pill.is-queued {
  color: var(--hl-muted);
}

@keyframes hl-rm-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(81, 220, 251, 0.0); }
  50%      { opacity: 0.72; box-shadow: 0 0 8px 0 rgba(81, 220, 251, 0.28); }
}

/* task rows */
.hl-rm-tasks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hl-rm-task {
  display: grid;
  grid-template-columns: 16px auto 1fr;
  align-items: baseline;
  gap: 9px;
  padding: 5px 2px;
  font-size: 12px;
  line-height: 1.5;
}
.hl-rm-task__glyph {
  font-family: var(--hl-mono);
  font-size: 12px;
  text-align: center;
  color: var(--hl-muted);
}
.hl-rm-task.is-done .hl-rm-task__glyph     { color: var(--hl-green); }
.hl-rm-task.is-shipping .hl-rm-task__glyph { color: var(--hl-cyan); }
.hl-rm-task.is-queued .hl-rm-task__glyph   { color: var(--hl-muted); }

.hl-rm-task__sec {
  font-family: var(--hl-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--hl-cyan);
  opacity: 0.85;
  white-space: nowrap;
}
.hl-rm-task__title {
  color: var(--hl-text);
}
.hl-rm-task.is-queued .hl-rm-task__title {
  color: var(--hl-muted);
}

/* ----------------------------------------------------------------
   WIDGET H — LOGS ("SYSTEM LOG") — scrolling terminal-ish feed
   ---------------------------------------------------------------- */
.hl-panel--logs {
  max-width: 720px;
}
.hl-panel--logs .hl-panel__body {
  padding: 0;
}

.hl-logbody {
  flex: 1 1 auto;
  max-height: 62vh;
  overflow-y: auto;
  padding: 14px 16px 18px;
  font-family: var(--hl-mono);
  font-size: 12px;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: var(--hl-hair) transparent;
}
.hl-logbody::-webkit-scrollbar {
  width: 8px;
}
.hl-logbody::-webkit-scrollbar-thumb {
  background: var(--hl-hair);
  border-radius: 4px;
}
.hl-logbody::-webkit-scrollbar-track {
  background: transparent;
}

.hl-logline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.hl-logline__time {
  flex: 0 0 auto;
  color: var(--hl-hair);
  font-variant-numeric: tabular-nums;
}

.hl-logline__lvl {
  flex: 0 0 auto;
  width: 78px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.hl-logline__msg {
  flex: 1 1 auto;
  color: var(--hl-text);
}

.hl-logline.is-ok       .hl-logline__lvl { color: var(--hl-green); }
.hl-logline.is-decision .hl-logline__lvl { color: var(--hl-cyan); }
.hl-logline.is-warn     .hl-logline__lvl { color: var(--hl-warn); }
.hl-logline.is-info     .hl-logline__lvl { color: var(--hl-muted); }

@media (max-width: 560px) {
  .hl-receipt {
    grid-template-columns: 0.8fr 1fr 1.6fr;
    font-size: 11px;
  }
  .hl-logline__lvl {
    width: 64px;
  }
  .hl-logbody {
    font-size: 11px;
  }
  .hl-rm-task {
    grid-template-columns: 14px auto 1fr;
    gap: 7px;
    font-size: 11px;
  }
  .hl-rm-task__sec {
    font-size: 9px;
  }
}
