Skip to main content

priv/static/assets/app.css

/* bloccs_web dashboard styles.
 *
 * P0: hand-authored and committed verbatim to priv/static/assets/app.css (it is
 * self-contained and needs no build). As the panels grow, this becomes the
 * Tailwind input scanned over lib/**; the committed bundle is then produced by
 * `mix assets.build` and verified in CI. Brand tokens mirror
 * marketing/notation-icons. */

/* Brand palette aligned to bloccs.io (shadcn dark): near-black bg, NEUTRAL zinc
   surfaces/borders, a violet brand, zinc-gray muted. The chromatic colour is the
   violet — surfaces stay neutral so it reads. */
:root {
  --bloccs-bg: #09090b; /* hsl(240 10% 3.9%) */
  --bloccs-surface: #18181b; /* zinc-900 — card/row lift */
  --bloccs-line: #27272a; /* zinc-800 — hsl(240 3.7% 15.9%) */
  --bloccs-purple: #7028bd; /* bloccs.io primary hsl(270 68% 44%) */
  --bloccs-accent: #a78bfa; /* violet-400 — highlights/active/links */
  --bloccs-text: #fafafa; /* hsl(0 0% 98%) */
  --bloccs-muted: #a1a1aa; /* zinc-400 — hsl(240 5% 64.9%) */
  --bloccs-ok: #3fb950;
  --bloccs-warn: #d29922;
  --bloccs-fail: #ef4444; /* bloccs.io destructive hsl(0 84% 60%) */
}

.bloccs-root,
body {
  margin: 0;
  background: var(--bloccs-bg);
  color: var(--bloccs-text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.bloccs-app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* nav */
.bloccs-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bloccs-line);
}
.bloccs-brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.bloccs-mark { display: block; height: 22px; width: auto; flex: none; }
.bloccs-wordmark {
  color: var(--bloccs-text);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.bloccs-wm-thin { font-weight: 500; }
.bloccs-brand:hover .bloccs-mark { filter: drop-shadow(0 0 5px rgba(124, 55, 171, 0.6)); }
.bloccs-nav__link {
  color: var(--bloccs-muted);
  cursor: default;
  font-size: 0.95rem;
}
.bloccs-nav__link--active {
  color: var(--bloccs-text);
  border-bottom: 2px solid var(--bloccs-purple);
  padding-bottom: 0.25rem;
}

/* panels */
.bloccs-panel {
  padding-top: 1.5rem;
}
.bloccs-empty {
  border: 1px dashed var(--bloccs-line);
  border-radius: 10px;
  padding: 2.5rem;
  color: var(--bloccs-muted);
  background: var(--bloccs-surface);
}

/* status pill */
.bloccs-pill {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--bloccs-line);
  color: var(--bloccs-text);
}
.bloccs-pill--ok { background: rgba(63, 185, 80, 0.18); color: var(--bloccs-ok); }
.bloccs-pill--failed { background: rgba(239, 68, 68, 0.18); color: var(--bloccs-fail); }
.bloccs-pill--running { background: rgba(167, 139, 250, 0.18); color: var(--bloccs-accent); }

/* metric badge */
.bloccs-badge {
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--bloccs-line);
  border-radius: 6px;
}
.bloccs-badge__label { color: var(--bloccs-muted); font-size: 0.72rem; }
.bloccs-badge__value { font-variant-numeric: tabular-nums; font-weight: 600; }
.bloccs-badge--ok .bloccs-badge__value { color: var(--bloccs-ok); }
.bloccs-badge--warn .bloccs-badge__value { color: var(--bloccs-warn); }
.bloccs-badge--fail .bloccs-badge__value { color: var(--bloccs-fail); }

/* pro lock */
.bloccs-pro-lock {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--bloccs-muted);
  font-size: 0.85rem;
}
.bloccs-pro-lock__badge {
  background: var(--bloccs-accent);
  color: var(--bloccs-bg);
  border-radius: 4px;
  padding: 0 0.4rem;
  font-weight: 700;
  font-size: 0.72rem;
}

/* shared text helpers */
.bloccs-muted { color: var(--bloccs-muted); }
.bloccs-link { color: var(--bloccs-accent); text-decoration: none; }
.bloccs-link:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }

/* nav extras */
.bloccs-nav__sep { color: var(--bloccs-line); }
.bloccs-nav__network { color: var(--bloccs-text); font-weight: 600; }
.bloccs-nav a.bloccs-brand { text-decoration: none; }
.bloccs-nav a.bloccs-nav__link { text-decoration: none; }

/* panel header */
.bloccs-panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.bloccs-panel__header h1 {
  font-size: 1.25rem;
  font-weight: 650;
  margin: 0;
}

/* networks overview list */
.bloccs-net-table td { vertical-align: middle; }
.bloccs-net-name { display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; }
.bloccs-net-name:hover { text-decoration: underline; }
.bloccs-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.55rem;
  background: var(--bloccs-line);
  flex: none;
}
.bloccs-dot--live {
  background: var(--bloccs-ok);
  box-shadow: 0 0 6px var(--bloccs-ok);
  animation: bloccs-pulse 1.6s ease-in-out infinite;
}

/* networks table */
.bloccs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.bloccs-table th {
  text-align: left;
  font-weight: 500;
  color: var(--bloccs-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--bloccs-line);
}
.bloccs-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--bloccs-line);
}
.bloccs-table .bloccs-num { text-align: right; font-variant-numeric: tabular-nums; }
.bloccs-row { transition: background 120ms ease; }
.bloccs-row:hover { background: var(--bloccs-surface); }

/* topology graph */
.bloccs-graph {
  overflow: auto;
  border: 1px solid var(--bloccs-line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 1px 1px, var(--bloccs-line) 1px, transparent 0) 0 0 / 24px 24px,
    var(--bloccs-bg);
  padding: 0.5rem;
}
.bloccs-graph__svg { display: block; margin: 0 auto; }
.bloccs-edge {
  stroke: var(--bloccs-purple);
  stroke-width: 2;
  opacity: 0.55;
}
.bloccs-graph__label {
  fill: var(--bloccs-muted);
  font-size: 13px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}
.bloccs-graph__rate {
  fill: var(--bloccs-accent);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* clickable nodes (live topology drills into a node's messages) */
.bloccs-graph__node a { cursor: pointer; }
.bloccs-graph__node a:hover .hex-glyph__body {
  stroke: var(--bloccs-accent);
  filter: drop-shadow(0 0 5px var(--bloccs-accent));
}
.bloccs-graph__node a:hover .bloccs-graph__label { fill: var(--bloccs-text); }
/* an edge that carried a message recently: brighter, with packets riding it */
.bloccs-edge--active {
  stroke: var(--bloccs-accent);
  opacity: 0.8;
}
.bloccs-packet {
  fill: var(--bloccs-accent);
  filter: drop-shadow(0 0 4px var(--bloccs-accent));
}
@media (prefers-reduced-motion: reduce) {
  .bloccs-packet { display: none; }
}
.bloccs-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--bloccs-muted);
  font-size: 0.82rem;
}
.bloccs-legend__item { display: inline-flex; align-items: center; gap: 0.35rem; }

/* topology two-pane: graph + inspector */
.bloccs-topo { display: flex; gap: 1rem; align-items: stretch; }
.bloccs-topo__graph { flex: 1; min-width: 0; }
.bloccs-topo__graph .bloccs-graph__svg { width: 100%; height: auto; }
.bloccs-graph__node.is-selected .hex-glyph__body {
  stroke: var(--bloccs-accent);
  stroke-width: 4;
  filter: drop-shadow(0 0 8px var(--bloccs-accent));
}

.bloccs-ins {
  width: 340px;
  flex: none;
  align-self: flex-start;
  border: 1px solid var(--bloccs-line);
  border-radius: 14px;
  background: var(--bloccs-surface);
  padding: 1.1rem 1.15rem;
  font-size: 0.88rem;
}
.bloccs-ins__head { display: flex; align-items: center; gap: 0.7rem; }
.bloccs-ins__glyph {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bloccs-bg);
  border: 1px solid var(--bloccs-line);
}
.bloccs-ins__name { font-weight: 650; font-size: 1.1rem; line-height: 1.1; }
.bloccs-ins__kind { color: var(--bloccs-muted); font-size: 0.78rem; margin-top: 0.15rem; }
.bloccs-ins__x {
  margin-left: auto;
  align-self: flex-start;
  color: var(--bloccs-muted);
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
}
.bloccs-ins__x:hover { color: var(--bloccs-text); }
.bloccs-ins__intent {
  color: var(--bloccs-muted);
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

.bloccs-ins__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}
.bloccs-tile {
  border: 1px solid var(--bloccs-line);
  border-radius: 10px;
  background: var(--bloccs-bg);
  padding: 0.55rem 0.7rem;
}
.bloccs-tile__v { font-size: 1.05rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.bloccs-tile__l {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bloccs-muted);
  margin-top: 0.1rem;
}

.bloccs-ins__section { margin-top: 1rem; border-top: 1px solid var(--bloccs-line); padding-top: 0.8rem; }
.bloccs-ins__section h3 {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bloccs-muted);
}
.bloccs-ins__pure { font-size: 0.84rem; }

.bloccs-ports { display: flex; flex-direction: column; gap: 0.4rem; }
.bloccs-portrow { display: flex; align-items: center; gap: 0.5rem; }
.bloccs-portrow__dir {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bloccs-muted);
  border: 1px solid var(--bloccs-line);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  min-width: 1.9rem;
  text-align: center;
}
.bloccs-portrow__dir--out { color: var(--bloccs-accent); border-color: rgba(167, 139, 250, 0.4); }
.bloccs-portrow__name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}
.bloccs-chip {
  margin-left: auto;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  background: rgba(112, 40, 189, 0.22);
  color: var(--bloccs-accent);
}
.bloccs-chip--fx {
  margin: 0 0.3rem 0.3rem 0;
  background: rgba(167, 139, 250, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.7rem;
}

.bloccs-coderef { margin-bottom: 0.5rem; }
.bloccs-coderef__l {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bloccs-muted);
  margin-bottom: 0.15rem;
}
.bloccs-coderef__v {
  display: block;
  background: var(--bloccs-bg);
  border: 1px solid var(--bloccs-line);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: #d4d4d8;
  overflow-x: auto;
  white-space: nowrap;
}
.bloccs-kv { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.15rem 0; }

.bloccs-ins__foot {
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--bloccs-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.bloccs-ins__hint { margin: 1rem 0 0; font-size: 0.82rem; line-height: 1.5; }
@media (max-width: 820px) {
  .bloccs-topo { flex-direction: column; }
  .bloccs-ins { width: auto; }
}

/* metrics panel */
.bloccs-node-id { display: inline-flex; align-items: center; gap: 0.5rem; }
.bloccs-node-id__glyph { flex: none; }
.bloccs-num--error { color: var(--bloccs-fail); }
.bloccs-hint { margin-top: 1rem; font-size: 0.82rem; }

/* throughput sparkline cell */
.bloccs-tp { display: inline-flex; align-items: center; gap: 0.6rem; justify-content: flex-end; }
.bloccs-tp__rate { min-width: 3.4rem; text-align: right; }
.bloccs-spark { display: block; }
.bloccs-spark__line {
  stroke: var(--bloccs-accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.bloccs-spark__zero { stroke: var(--bloccs-line); stroke-width: 1; }

/* latency p50/p95 bar */
.bloccs-lat { display: flex; flex-direction: column; gap: 4px; width: 150px; }
.bloccs-lat__track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: var(--bloccs-line);
}
.bloccs-lat__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bloccs-purple), var(--bloccs-accent));
}
.bloccs-lat__p50 {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 11px;
  background: var(--bloccs-text);
  border-radius: 1px;
}
.bloccs-lat__txt {
  font-size: 0.72rem;
  color: var(--bloccs-muted);
  font-variant-numeric: tabular-nums;
}

/* metrics totals row */
.bloccs-metrics-table tfoot td {
  border-top: 1px solid var(--bloccs-line);
  border-bottom: none;
  font-weight: 600;
  color: var(--bloccs-muted);
}
.bloccs-metrics-table tfoot .bloccs-num { color: var(--bloccs-text); }

/* buttons */
.bloccs-btn {
  display: inline-block;
  border: 1px solid var(--bloccs-line);
  background: var(--bloccs-surface);
  color: var(--bloccs-text);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none;
}
.bloccs-btn:hover { border-color: var(--bloccs-purple); }
.bloccs-btn--active { border-color: var(--bloccs-fail); color: var(--bloccs-fail); }

/* coverage panel */
.bloccs-coverage__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.bloccs-coverage__upload { display: inline-flex; gap: 0.5rem; align-items: center; }
.bloccs-recording { color: var(--bloccs-fail); font-size: 0.85rem; }
.bloccs-coverage__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.bloccs-coverage__bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--bloccs-surface);
  overflow: hidden;
}
.bloccs-coverage__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bloccs-purple), var(--bloccs-accent));
}
.bloccs-coverage__stat strong { font-size: 1.1rem; margin-right: 0.5rem; }
.bloccs-coverage__unreached { margin-top: 1.25rem; }
.bloccs-coverage__unreached h2 { font-size: 0.95rem; }
.bloccs-coverage__unreached ul { list-style: none; padding: 0; margin: 0; }
.bloccs-coverage__ob {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--bloccs-muted);
  padding: 0.2rem 0;
}
.bloccs-coverage__complete { color: var(--bloccs-ok); margin-top: 1.25rem; }

/* coverage graph overlay */
.bloccs-edge--reached { stroke: var(--bloccs-accent); opacity: 0.95; }
.bloccs-edge--unreached { stroke: var(--bloccs-line); opacity: 0.5; stroke-dasharray: 5 5; }

/* messages panel */
.bloccs-live { color: var(--bloccs-ok); animation: bloccs-pulse 1.4s ease-in-out infinite; }
.bloccs-msg-live { display: flex; align-items: center; gap: 0.7rem; }
.bloccs-paused { color: var(--bloccs-warn); font-size: 0.85rem; }
.bloccs-btn--sm { padding: 0.18rem 0.6rem; font-size: 0.78rem; }
@keyframes bloccs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.bloccs-chart {
  display: block;
  border: 1px solid var(--bloccs-line);
  border-radius: 10px;
  background:
    linear-gradient(var(--bloccs-surface), var(--bloccs-surface)) padding-box,
    var(--bloccs-bg);
  margin-bottom: 1rem;
}
.bloccs-chart__baseline { stroke: var(--bloccs-line); stroke-width: 1; }
.bloccs-chart__bar { fill: var(--bloccs-accent); opacity: 0.8; transition: opacity 100ms; }
.bloccs-chart g:hover .bloccs-chart__bar { opacity: 1; }
.bloccs-chart__bar-fail { fill: var(--bloccs-fail); }
.bloccs-chart__peak { fill: var(--bloccs-muted); font-size: 11px; font-family: ui-monospace, Menlo, monospace; }

.bloccs-msg-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.bloccs-msg-filters form { display: inline-flex; gap: 0.5rem; }
.bloccs-select {
  background: var(--bloccs-surface);
  color: var(--bloccs-text);
  border: 1px solid var(--bloccs-line);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
}
.bloccs-feed { font-variant-numeric: tabular-nums; }
.bloccs-feed__time { color: var(--bloccs-muted); font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem; white-space: nowrap; }
.bloccs-feed__edge { font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; white-space: nowrap; }
.bloccs-feed__payload {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.82rem;
  color: #d4d4d8;
  max-width: 26rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* message inspector — a right-side drawer (stays put while the feed streams) */
.bloccs-feed__row { cursor: pointer; }
.bloccs-feed__row.is-selected { background: var(--bloccs-surface); }
.bloccs-drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
  animation: bloccs-fade-in 150ms ease-out;
}
.bloccs-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 41;
  width: min(460px, 92vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bloccs-surface);
  border-left: 1px solid var(--bloccs-line);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.45);
  animation: bloccs-drawer-in 180ms ease-out;
}
.bloccs-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.25rem 1.25rem;
}
@keyframes bloccs-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bloccs-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .bloccs-drawer, .bloccs-drawer-scrim { animation: none; }
}
.bloccs-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid var(--bloccs-line);
}
.bloccs-drawer__heading { min-width: 0; }
.bloccs-drawer__nav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--bloccs-line);
  background: var(--bloccs-surface);
}
.bloccs-drawer__pos {
  font-size: 0.72rem;
  color: var(--bloccs-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-right: auto;
}
.bloccs-drawer__navbtn {
  text-align: center;
  padding: 0.5rem 0.9rem;
}
.bloccs-drawer__navbtn:disabled { opacity: 0.4; cursor: default; }

/* journey: the ordered hops a message took through the network */
.bloccs-journey {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.bloccs-journey__hop {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-left: 2px solid var(--bloccs-line);
  cursor: pointer;
  font-size: 0.8rem;
}
.bloccs-journey__hop:hover { background: var(--bloccs-bg); }
.bloccs-journey__hop.is-selected {
  border-left-color: var(--bloccs-accent);
  background: var(--bloccs-bg);
}
.bloccs-journey__time {
  color: var(--bloccs-muted);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.bloccs-journey__edge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bloccs-journey__lat { color: var(--bloccs-muted); }
.bloccs-drawer__title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  font-size: 0.95rem;
}
.bloccs-drawer__sub {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}
.bloccs-drawer__x {
  flex: none;
  background: none;
  border: none;
  color: var(--bloccs-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.bloccs-drawer__x:hover { color: var(--bloccs-text); }
.bloccs-drawer__section { margin-top: 1rem; }
.bloccs-drawer__section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bloccs-muted);
}
.bloccs-detail__payload {
  margin: 0;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--bloccs-bg);
  border: 1px solid var(--bloccs-line);
  color: #d4d4d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow: auto;
}
.bloccs-drawer__graph {
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, var(--bloccs-line) 1px, transparent 0) 0 0 / 18px 18px,
    var(--bloccs-bg);
}
.bloccs-drawer__graph .bloccs-graph { border: 0; background: none; padding: 0; height: 100%; }
.bloccs-drawer__graph .bloccs-graph__svg { width: 100%; height: 100%; }

/* hexagon glyph live states (CSS-driven, no JS animation) */
.hex-glyph__body { transition: stroke 150ms ease, filter 150ms ease; }
.hex-glyph--idle .hex-glyph__body { stroke: var(--bloccs-purple); opacity: 0.7; }
.hex-glyph--running .hex-glyph__body {
  stroke: var(--bloccs-accent);
  filter: drop-shadow(0 0 4px var(--bloccs-accent));
}
.hex-glyph--ok .hex-glyph__body { stroke: var(--bloccs-ok); }
.hex-glyph--failed .hex-glyph__body { stroke: var(--bloccs-fail); }