/* Shared components — owner: shell. View CSS may reuse these classes. */

/* ---------- Glass panel ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(var(--blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.15);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
}
.panel-body { padding: var(--sp-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--panel-2);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  transition:
    background var(--dur-1) ease,
    border-color var(--dur-1) ease,
    transform var(--dur-1) ease;
}
.btn:hover { background: var(--panel-hover); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn--primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 6px 20px -8px var(--accent-glow);
}
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn--ghost:hover { background: var(--panel-hover); color: var(--text); }
.btn--sm { height: 26px; padding: 0 9px; font-size: var(--fs-xs); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  transition: background var(--dur-1) ease, color var(--dur-1) ease;
}
.icon-btn:hover { background: var(--panel-hover); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.chip--up { color: var(--up); background: var(--up-soft); border-color: transparent; }
.chip--down { color: var(--down); background: var(--down-soft); border-color: transparent; }
.chip--warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.chip--accent { color: var(--accent-strong); background: var(--accent-soft); border-color: transparent; }
.chip--flat { color: var(--flat); }
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1;
}

/* ---------- Inputs ---------- */
.input {
  height: 32px;
  width: 100%;
  padding: 0 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--panel-2);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.seg {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--panel-2);
}
.seg > button {
  height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: calc(var(--r-md) - 2px);
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.seg > button:hover { color: var(--text); }
.seg > button[aria-pressed="true"],
.seg > button.is-active {
  background: var(--panel-hover);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* ---------- Stat ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat__label { font-size: var(--fs-xs); color: var(--muted); }
.stat__value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--fs-lg); font-weight: 500; }

/* ---------- Skeleton & placeholders ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--panel-2);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(150, 172, 230, 0.08), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.mount-placeholder {
  height: 100%;
  min-height: 120px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: var(--sp-6);
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.mount-placeholder strong { color: var(--text-2); font-size: var(--fs-md); font-weight: 600; }
.mount-placeholder .mount-placeholder__detail {
  max-width: 46ch;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--faint);
  word-break: break-word;
}
.mount-placeholder .spinner { margin-bottom: 4px; }

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tabs ---------- */
.tabs {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: var(--tabs-h);
  padding: 0 var(--sp-3);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-md);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur-1) ease;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab kbd { opacity: 0.7; }
.tab__count {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--faint);
}
.tabs__ink {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform var(--dur-3) var(--ease-out), width var(--dur-3) var(--ease-out);
}
.tabs__spacer { flex: 1; }
.tabs__tools { display: flex; align-items: center; gap: 6px; }

/* ---------- Topbar ---------- */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0 var(--sp-3) 0 var(--sp-4);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(var(--blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
  min-width: 0;
}
.tb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
}
.tb-brand__mark { width: 22px; height: 22px; }
.tb-brand__name { font-size: var(--fs-md); font-weight: 700; letter-spacing: 0.04em; }
.tb-brand__sub { font-size: var(--fs-2xs); color: var(--muted); margin-top: -2px; }
.tb-sep { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }

.tb-index {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}
.tb-index__spark { width: 112px; height: 30px; }
.tb-index__meta { display: flex; flex-direction: column; line-height: 1.2; }
.tb-index__label { font-size: var(--fs-2xs); color: var(--muted); }
.tb-index__value { font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 500; font-variant-numeric: tabular-nums; }
.tb-index__chg { font-family: var(--font-mono); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }

.tb-breadth { display: flex; flex-direction: column; gap: 4px; width: 180px; flex-shrink: 1; min-width: 120px; }
.tb-breadth__bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--panel-2);
}
.tb-breadth__bar > span { display: block; height: 100%; transition: flex-grow var(--dur-3) var(--ease-out); }
.tb-breadth__bar .b-up { background: var(--up); }
.tb-breadth__bar .b-flat { background: var(--flat); opacity: 0.5; }
.tb-breadth__bar .b-down { background: var(--down); }
.tb-breadth__legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.tb-metrics { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tb-metric { display: flex; flex-direction: column; line-height: 1.2; }
.tb-metric__label { font-size: var(--fs-2xs); color: var(--muted); white-space: nowrap; }
.tb-metric__value { font-family: var(--font-mono); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }

.tb-spacer { flex: 1; min-width: 0; }
.tb-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tb-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  white-space: nowrap;
  cursor: default;
}
.tb-date.is-stale { color: var(--warn); border-color: var(--warn-soft); background: var(--warn-soft); }
.tb-date.is-history { color: var(--accent-strong); border-color: transparent; background: var(--accent-soft); cursor: pointer; }

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  flex-shrink: 0;
}
.live-dot.is-on { background: var(--up); }
.live-dot.is-on::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--up);
  animation: pulse 1.8s var(--ease-out) infinite;
}
.live-dot.is-connected { background: var(--accent); }
@keyframes pulse {
  from { transform: scale(0.6); opacity: 0.9; }
  to { transform: scale(1.8); opacity: 0; }
}

.tb-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px 0 10px;
  min-width: 168px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--faint);
  font-size: var(--fs-sm);
}
.tb-search:hover { border-color: var(--border-strong); color: var(--muted); }
.tb-search svg { width: 14px; height: 14px; flex-shrink: 0; }
.tb-search__text { flex: 1; text-align: left; white-space: nowrap; }

.tb-mobile-only { display: none; }

.topbar { overflow: hidden; }
.tb-live-slot:empty { display: none; }
.tb-date__lag { margin-left: 2px; }

@media (max-width: 1440px) {
  .tb-metrics .tb-metric--optional { display: none; }
  .tb-search { min-width: 0; }
  .tb-search__text { display: none; }
}
@media (max-width: 1180px) {
  .tb-breadth { display: none; }
  .tb-brand__sub { display: none; }
}
@media (max-width: 900px) {
  .topbar { gap: var(--sp-2); padding: 0 var(--sp-2) 0 var(--sp-3); }
  .tb-brand__text, .tb-sep, .tb-metrics { display: none; }
  .tb-index__spark { width: 64px; }
  .tb-mobile-only { display: inline-grid; }
  .tb-date .tb-date__label, .tb-date__lag, .tb-date .faint { display: none; }
  .tb-search kbd, [data-act="help"] { display: none; }
  .tb-search { width: 30px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .tb-right { gap: 2px; }
}
@media (max-width: 600px) {
  .tb-live-slot { display: none; }
  .tb-index__label { display: none; }
}
@media (max-width: 480px) {
  .tb-index__spark { display: none; }
  .tb-env { display: none; }
  .tb-index__chg { display: none; }
  .tb-date { padding: 0 8px; }
}

/* ---------- Command palette ---------- */
.palette {
  position: fixed;
  inset: 0;
  z-index: var(--z-palette);
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 12vh var(--sp-4) var(--sp-4);
  background: var(--overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in var(--dur-2) var(--ease-out);
}
.palette__box {
  width: min(640px, 100%);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  animation: pop-in var(--dur-3) var(--ease-out);
}
.palette__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.palette__input-row svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.palette__input {
  flex: 1;
  height: 54px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: var(--fs-lg);
  outline: none;
}
.palette__input::placeholder { color: var(--faint); }
.palette__input:focus-visible { box-shadow: none; }
.palette__list {
  overflow-y: auto;
  padding: 6px;
  margin: 0;
  list-style: none;
}
.palette__group {
  padding: 10px 10px 4px;
  font-size: var(--fs-2xs);
  color: var(--faint);
}
.palette__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--r-md);
  color: var(--text-2);
  cursor: pointer;
}
.palette__item[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--text);
}
.palette__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}
.palette__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__title mark { background: transparent; color: var(--accent-strong); font-weight: 600; }
.palette__hint { font-size: var(--fs-xs); color: var(--faint); white-space: nowrap; }
.palette__meta { font-family: var(--font-mono); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.palette__empty { padding: 28px; text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.palette__foot {
  display: flex;
  gap: 16px;
  padding: 8px var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-2xs);
  color: var(--faint);
}
.palette__foot span { display: inline-flex; align-items: center; gap: 5px; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(0.985); } }

/* ---------- Help overlay ---------- */
.help {
  position: fixed;
  inset: 0;
  z-index: var(--z-palette);
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: var(--overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in var(--dur-2) var(--ease-out);
}
.help__box {
  width: min(720px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow-2);
  animation: pop-in var(--dur-3) var(--ease-out);
}
.help__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--sp-4); }
.help__head h2 { font-size: var(--fs-xl); }
.help__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-2) var(--sp-8);
}
.help__section h3 { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; margin: var(--sp-3) 0 var(--sp-2); }
.help__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.help__keys { display: inline-flex; gap: 4px; }

/* ---------- Toasts ---------- */
/* Top-right, just under the topbar: away from table rows, chart axes and the timeline. */
.toasts {
  position: fixed;
  right: var(--sp-4);
  top: calc(var(--topbar-h) + 8px);
  bottom: auto;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow-2);
  color: var(--text);
  font-size: var(--fs-sm);
  pointer-events: auto;
  overflow: hidden;
  animation: toast-in var(--dur-3) var(--ease-out);
}
.toast.is-leaving { animation: toast-out var(--dur-2) var(--ease-in-out) forwards; }
.toast__icon { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.toast--success .toast__icon { background: var(--down); }
.toast--warn .toast__icon { background: var(--warn); }
.toast--error .toast__icon { background: var(--danger); }
.toast__msg { min-width: 0; word-break: break-word; }
.toast__detail { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
.toast__close { width: 20px; height: 20px; margin: -2px -4px 0 0; }
.toast__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--dur-2) linear;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

@media (max-width: 900px) {
  .toasts { left: 8px; right: 8px; width: auto; transform: none; top: calc(var(--topbar-h) + 6px); bottom: auto; }
  .toast { padding: 8px 10px; }
  .toast__msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toast__detail { display: none; }
  /* a sheet is open: keep its header / close button clear */
  body:has(.app.drawer-open) .toasts,
  body:has(.app.lab-open) .toasts { top: auto; bottom: calc(var(--timeline-h) + 8px); }
}

/* ---------- Boot sequence ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: var(--z-boot);
  display: grid;
  place-items: center;
  padding: var(--sp-6);
  background:
    radial-gradient(900px 540px at 30% 20%, var(--bg-glow-1), transparent 65%),
    var(--bg);
  transition:
    opacity 700ms var(--ease-in-out),
    filter 700ms var(--ease-in-out),
    transform 900ms var(--ease-out);
}
.boot.is-done {
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.04);
  pointer-events: none;
}
.boot__inner {
  width: min(760px, 100%);
  display: grid;
  gap: var(--sp-6);
}
.boot__art {
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 220;
  overflow: visible;
}
.boot__art path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.boot__art .ma { stroke-width: 1.5; opacity: 0.85; }
.boot__art .price { stroke: var(--up); stroke-width: 2.4; filter: drop-shadow(0 0 8px var(--up)); }
.boot__art .baseline { stroke: var(--grid); stroke-width: 1; }
.boot__art .spark-dot { fill: var(--up); filter: drop-shadow(0 0 10px var(--up)); transition: opacity var(--dur-3) ease; }
.boot__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.boot__title h1 {
  font-size: clamp(24px, 4.2vw, 38px);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.boot__title p { color: var(--muted); font-size: var(--fs-md); }
.boot__ledger {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.boot__row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  transition: color var(--dur-2) ease;
}
.boot__row.is-active { color: var(--text); }
.boot__row.is-done { color: var(--text-2); }
.boot__row.is-error { color: var(--danger); }
.boot__state {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  justify-self: center;
}
.boot__row.is-active .boot__state { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.boot__row.is-done .boot__state { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.boot__row.is-error .boot__state { background: var(--danger); border-color: var(--danger); }
.boot__label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: var(--fs-md); }
.boot__bar {
  height: 2px;
  border-radius: 1px;
  background: var(--border);
  overflow: hidden;
}
.boot__bar > i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 160ms linear;
}
.boot__row.is-indeterminate .boot__bar > i {
  width: 28%;
  transform: none;
  animation: boot-indet 1.2s var(--ease-in-out) infinite;
}
@keyframes boot-indet {
  from { transform: translateX(-100%); }
  to { transform: translateX(360%); }
}
.boot__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-sm);
  text-align: right;
  white-space: nowrap;
}
.boot__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--faint);
}
.boot__error {
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--text-2);
  font-size: var(--fs-sm);
  display: grid;
  gap: 10px;
}
.boot__error code { font-size: var(--fs-xs); color: var(--muted); word-break: break-word; }

/* App reveal while the boot overlay dissolves. */
.app { transition: grid-template-columns var(--dur-3) var(--ease-out), opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.app.is-booting { opacity: 0; transform: scale(0.985); }

/* ---------- Flash (value change) ---------- */
@keyframes flash-up { from { background: var(--up-soft); } }
@keyframes flash-down { from { background: var(--down-soft); } }
.flash-up { animation: flash-up 900ms var(--ease-out); }
.flash-down { animation: flash-down 900ms var(--ease-out); }

/* ---------- Tooltip (generic, positioned by JS) ---------- */
.tooltip {
  position: fixed;
  z-index: var(--z-toast);
  pointer-events: none;
  padding: 7px 9px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow-2);
  font-size: var(--fs-xs);
  color: var(--text-2);
}
