/* ============================================================
   DriftLogic Console Header — Shared Asset
   Drop in via:
     <link rel="stylesheet" href="/shared/console-header/console-header.css">
     <script src="/shared/console-header/console-header.js" defer></script>
     <div id="console-header" data-tool="pulse" data-version="v3.29.2"></div>

   Themes inherited from host page (data-theme="midnight|dim|slate").
   All CSS variables (--bg-*, --text-*, --green, --red, --blue, etc.) are
   expected to be defined by the host. Falls back to RIFT/Pulse defaults.
   ============================================================ */

#console-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Minimal mode — just the switcher chip + palette. Used in HL Trading
   where the host already has its own dense header chrome. */
#console-header[data-mode="minimal"] {
  display: inline-flex;
  width: auto;
}
#console-header[data-mode="minimal"] .uh-min-hide { display: none !important; }

/* ============ SWITCHER (DL monogram + tool wordmark + ▾) ============ */
.uh-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  border-radius: 8px;
  transition: background 150ms;
  position: relative;
}
.uh-switcher:hover,
.uh-switcher.open { background: var(--badge-bg, rgba(255,255,255,0.06)); }

.uh-monogram {
  width: 28px; height: 28px;
  background: var(--bg-card, #0c0c16);
  border: 1px solid var(--border-light, #1e1e3a);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue, #4a7fff);
  transition: all 150ms;
  flex-shrink: 0;
}
.uh-switcher:hover .uh-monogram,
.uh-switcher.open .uh-monogram {
  border-color: var(--blue, #4a7fff);
  box-shadow: 0 0 0 3px rgba(74,127,255,0.12);
}
.uh-monogram svg { width: 18px; height: 18px; display: block; fill: currentColor; }

.uh-tool {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary, #e8e8f0);
  line-height: 1;
}
.uh-chev {
  font-size: 10px;
  color: var(--text-muted, #5c5c78);
  margin-left: 2px;
  transition: transform 200ms, color 150ms;
}
.uh-switcher.open .uh-chev { transform: rotate(180deg); color: var(--blue, #4a7fff); }

.uh-ver {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-muted, #5c5c78);
  padding: 2px 6px;
  border: 1px solid var(--border, #16162a);
  border-radius: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ============ SWITCHER DROPDOWN ============ */
.uh-switcher-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 380px;
  background: var(--bg-elevated, #0a0a12);
  border: 1px solid var(--border-light, #1e1e3a);
  border-radius: 10px;
  box-shadow: var(--card-shadow, 0 2px 8px rgba(0,0,0,0.3), 0 4px 24px rgba(0,0,0,0.2));
  z-index: 1000;
  display: none;
  overflow: hidden;
}
.uh-switcher-panel.open {
  display: block;
  animation: uh-drop 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes uh-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.uh-sp-group {
  padding: 12px 16px 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted, #5c5c78);
}
.uh-sp-group:not(:first-of-type) {
  border-top: 1px solid var(--border, #16162a);
  margin-top: 4px;
  padding-top: 12px;
}

.uh-sp-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 12px;
  color: var(--text-secondary, #9494b0);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 120ms;
  text-decoration: none;
}
.uh-sp-item:hover {
  background: var(--bg-card-hover, #14142a);
  color: var(--text-primary, #e8e8f0);
}
.uh-sp-item.active {
  background: rgba(74,127,255,0.06);
  color: var(--text-primary, #e8e8f0);
  border-left-color: var(--blue, #4a7fff);
}
.uh-sp-icon {
  width: 22px;
  text-align: center;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.uh-sp-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.uh-sp-name { font-size: 13px; font-weight: 600; }
.uh-sp-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted, #5c5c78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uh-sp-item.active .uh-sp-desc { color: var(--text-secondary, #9494b0); }
.uh-sp-meta {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted, #5c5c78);
  flex-shrink: 0;
}
.uh-sp-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green, #00ff88);
  box-shadow: 0 0 4px var(--green, #00ff88);
  animation: uh-pulse 1.8s ease-in-out infinite;
  display: inline-block;
}
@keyframes uh-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ============ BTC PILL ============ */
.uh-btc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 12px;
  background: var(--badge-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--border, #16162a);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 150ms;
  position: relative;
  white-space: nowrap;
}
.uh-btc:hover { border-color: var(--border-light, #1e1e3a); }
.uh-btc.up   { border-color: rgba(0,255,136,0.25); }
.uh-btc.down { border-color: rgba(255,68,68,0.25); }
.uh-btc .icn { font-size: 13px; opacity: 0.7; }
.uh-btc .px  { font-weight: 700; color: var(--text-primary, #e8e8f0); }
.uh-btc .dl  { font-weight: 600; font-size: 10px; }
.uh-btc .dl.up   { color: var(--green, #00ff88); }
.uh-btc .dl.down { color: var(--red, #ff4444); }
.uh-btc .dom {
  font-size: 9.5px;
  color: var(--text-muted, #5c5c78);
  border-left: 1px solid var(--border, #16162a);
  padding-left: 8px;
  letter-spacing: 0.04em;
}
.uh-btc .dom strong {
  color: var(--text-secondary, #9494b0);
  font-weight: 600;
}
.uh-btc .dom .arr     { font-size: 8px; margin-left: 2px; }
.uh-btc .dom .arr.dn  { color: var(--green, #00ff88); }
.uh-btc .dom .arr.up  { color: var(--red, #ff4444); }
.uh-btc canvas        { display: block; width: 80px; height: 22px; }

/* BTC TV chart drop */
.uh-tv {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  background: var(--bg-elevated, #0a0a12);
  border: 1px solid var(--border-light, #1e1e3a);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  display: none;
  z-index: 1000;
  overflow: hidden;
}
.uh-tv.open {
  display: block;
  animation: uh-drop 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.uh-tv-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, #16162a);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted, #5c5c78);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.uh-tv-head .pair { color: var(--text-primary, #e8e8f0); font-weight: 700; }
.uh-tv-tf { display: flex; gap: 4px; }
.uh-tv-tf button {
  background: none;
  border: 1px solid var(--border, #16162a);
  color: var(--text-muted, #5c5c78);
  font-family: inherit;
  font-size: 9.5px;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
}
.uh-tv-tf button.active {
  color: var(--text-primary, #e8e8f0);
  border-color: var(--blue, #4a7fff);
  background: rgba(74,127,255,0.08);
}
.uh-tv-chart {
  position: relative;
  height: 380px;
  background:
    linear-gradient(rgba(74,127,255,0.04) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(74,127,255,0.04) 1px, transparent 1px) 0 0 / 12.5% 100%,
    var(--bg-card, #0c0c16);
}
.uh-tv-chart svg { width: 100%; height: 100%; display: block; }
.uh-tv-chart .last {
  position: absolute;
  right: 8px;
  background: var(--green, #00ff88);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  transform: translateY(-50%);
}
.uh-tv-foot {
  padding: 8px 14px;
  border-top: 1px solid var(--border, #16162a);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted, #5c5c78);
}
.uh-tv-foot .open-tv {
  color: var(--blue, #4a7fff);
  cursor: pointer;
  letter-spacing: 0.04em;
}
.uh-tv-foot .open-tv:hover { text-decoration: underline; }
.uh-tv-stats { display: flex; gap: 14px; }
.uh-tv-stats strong { color: var(--text-primary, #e8e8f0); font-weight: 600; }

/* ============ REGIME BADGE ============ */
.uh-regime-wrap { position: relative; }
.uh-regime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--badge-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--border-light, #1e1e3a);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary, #9494b0);
  cursor: pointer;
  transition: all 150ms;
  white-space: nowrap;
}
.uh-regime:hover { border-color: var(--text-muted, #5c5c78); color: var(--text-primary, #e8e8f0); }
.uh-regime::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green, #00ff88);
  box-shadow: 0 0 6px var(--green, #00ff88);
  animation: uh-pulse 2.2s ease-in-out infinite;
}
.uh-regime[data-state="neutral"]::before  { background: var(--orange, #ff6b00); box-shadow: 0 0 6px var(--orange, #ff6b00); }
.uh-regime[data-state="risk-off"]::before { background: var(--red, #ff4444); box-shadow: 0 0 6px var(--red, #ff4444); }
.uh-regime[data-state="cool"]::before     { background: var(--blue, #4a7fff); box-shadow: 0 0 6px var(--blue, #4a7fff); }
.uh-regime[data-state="mild"]::before     { background: var(--yellow, #eab308); box-shadow: 0 0 6px var(--yellow, #eab308); }
.uh-regime[data-state="warm"]::before     { background: var(--orange, #ff6b00); box-shadow: 0 0 6px var(--orange, #ff6b00); }
.uh-regime[data-state="blazing"]::before  { background: var(--green, #00ff88); box-shadow: 0 0 8px var(--green, #00ff88); }
.uh-regime[data-state="cold"]::before     { background: var(--text-muted, #5c5c78); }
.uh-regime[data-state="cascade"]::before  { background: var(--red, #ff4444); box-shadow: 0 0 8px var(--red, #ff4444); animation: uh-pulse 0.9s ease-in-out infinite; }
.uh-regime[data-state="edge"] {
  background: linear-gradient(90deg, rgba(0,255,136,0.15), rgba(234,179,8,0.15));
  border-color: var(--green, #00ff88);
  color: var(--text-primary, #e8e8f0);
  box-shadow: 0 0 12px rgba(0,255,136,0.25);
}
.uh-regime[data-state="edge"]::before {
  background: var(--green, #00ff88);
  box-shadow: 0 0 10px var(--green, #00ff88);
  animation: uh-pulse 1s ease-in-out infinite;
}
.uh-regime .uh-r-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--text-muted, #5c5c78);
  margin-left: 4px;
  font-weight: 500;
}
.uh-regime[data-state="edge"] .uh-r-score,
.uh-regime[data-state="blazing"] .uh-r-score { color: inherit; opacity: 0.85; }
.uh-regime .uh-r-trend {
  font-size: 8px;
  margin-left: 2px;
  opacity: 0.7;
}

.uh-regime-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  background: var(--bg-elevated, #0a0a12);
  border: 1px solid var(--border-light, #1e1e3a);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  display: none;
  z-index: 1000;
  overflow: hidden;
}
.uh-regime-panel.open { display: block; animation: uh-drop 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.uh-rp-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #16162a);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.uh-rp-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green, #00ff88);
}
.uh-rp-conf {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted, #5c5c78);
}
.uh-rp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
}
.uh-rp-table th, .uh-rp-table td {
  padding: 8px 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.uh-rp-table th {
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #5c5c78);
  border-bottom: 1px solid var(--border, #16162a);
}
.uh-rp-table th:first-child, .uh-rp-table td:first-child {
  text-align: left;
  color: var(--text-primary, #e8e8f0);
  font-weight: 600;
}
.uh-rp-table td {
  color: var(--text-secondary, #9494b0);
  border-bottom: 1px solid var(--border, #16162a);
}
.uh-rp-table tr:last-child td { border-bottom: none; }
.uh-rp-table .pos { color: var(--green, #00ff88); }
.uh-rp-table .neg { color: var(--red, #ff4444); }

/* Richer regime panel sections */
.uh-rp-section {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border, #16162a);
}
.uh-rp-section:last-child { border-bottom: none; }
.uh-rp-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted, #5c5c78);
  margin-bottom: 6px;
}
.uh-rp-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  padding: 3px 0;
}
.uh-rp-kv .k { color: var(--text-secondary, #9494b0); }
.uh-rp-kv .v { color: var(--text-primary, #e8e8f0); font-weight: 600; }
.uh-rp-kv .v.pos { color: var(--green, #00ff88); }
.uh-rp-kv .v.neg { color: var(--red, #ff4444); }
.uh-rp-kv .v.amber { color: var(--orange, #ff6b00); }
.uh-rp-bar {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 0;
}
.uh-rp-bar .k { color: var(--text-secondary, #9494b0); }
.uh-rp-bar .track {
  height: 5px;
  background: var(--border, #16162a);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.uh-rp-bar .fill {
  height: 100%;
  background: var(--blue, #4a7fff);
  border-radius: 2px;
  transition: width 250ms ease-out;
}
.uh-rp-bar .fill.green { background: var(--green, #00ff88); }
.uh-rp-bar .fill.orange { background: var(--orange, #ff6b00); }
.uh-rp-bar .fill.red { background: var(--red, #ff4444); }
.uh-rp-bar .n {
  text-align: right;
  color: var(--text-primary, #e8e8f0);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.uh-rp-bias {
  position: relative;
  height: 5px;
  background: var(--border, #16162a);
  border-radius: 2px;
}
.uh-rp-bias::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--text-muted, #5c5c78);
  opacity: 0.5;
}
.uh-rp-bias .needle {
  position: absolute;
  top: -2px;
  width: 3px;
  height: 9px;
  background: var(--text-primary, #e8e8f0);
  border-radius: 1px;
  transition: left 250ms ease-out;
  transform: translateX(-50%);
}
.uh-rp-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.uh-rp-flag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--badge-bg, rgba(255,255,255,0.06));
  color: var(--text-muted, #5c5c78);
  border: 1px solid var(--border, #16162a);
}
.uh-rp-flag.warn { color: var(--orange, #ff6b00); border-color: rgba(255,107,0,0.3); background: rgba(255,107,0,0.08); }
.uh-rp-flag.danger { color: var(--red, #ff4444); border-color: rgba(255,68,68,0.3); background: rgba(255,68,68,0.08); }
.uh-rp-flag.edge { color: var(--green, #00ff88); border-color: rgba(0,255,136,0.3); background: rgba(0,255,136,0.08); }
.uh-rp-flag.info { color: var(--blue, #4a7fff); border-color: rgba(74,127,255,0.3); background: rgba(74,127,255,0.08); }
.uh-rp-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border, #16162a);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--blue, #4a7fff);
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.uh-rp-foot:hover { background: var(--bg-card-hover, #14142a); }
.uh-regime-panel { width: 380px; }

/* ============ ALERT BELL ============ */
.uh-bell {
  position: relative;
  background: var(--badge-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--border-light, #1e1e3a);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--text-secondary, #9494b0);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 150ms;
}
.uh-bell:hover { border-color: var(--text-muted, #5c5c78); color: var(--text-primary, #e8e8f0); }
.uh-bell .count {
  background: var(--accent-orange, var(--orange, #ff6b00));
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ============ THEME TOGGLE ============ */
.uh-theme {
  display: flex;
  gap: 1px;
  background: var(--badge-bg, rgba(255,255,255,0.06));
  border-radius: 8px;
  padding: 2px;
}
[data-theme="slate"] .uh-theme {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border, #c8ccd6);
}
.uh-theme-btn {
  background: none;
  border: none;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.45;
  transition: all 150ms;
  line-height: 1;
  font-family: inherit;
}
.uh-theme-btn:hover { opacity: 0.85; }
.uh-theme-btn.active {
  opacity: 1;
  background: var(--bg-card, #0c0c16);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ============ ⌘K HINT ============ */
.uh-kbd {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted, #5c5c78);
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid var(--border, #16162a);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: all 150ms;
  white-space: nowrap;
}
.uh-kbd:hover { border-color: var(--blue, #4a7fff); color: var(--text-secondary, #9494b0); }
.uh-kbd kbd { font-family: inherit; font-size: 10px; }

/* ============ COMMAND PALETTE ============ */
.uh-palette-bg {
  position: fixed;
  inset: 0;
  background: rgba(6,6,11,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}
.uh-palette-bg.open { display: flex; }
[data-theme="slate"] .uh-palette-bg { background: rgba(0,0,0,0.45); }

.uh-palette {
  width: 580px;
  max-width: 92vw;
  background: var(--bg-elevated, #0a0a12);
  border: 1px solid var(--border-light, #1e1e3a);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.uh-palette-inp-wrap {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #16162a);
  gap: 12px;
}
.uh-palette-inp-wrap::before {
  content: '⌘';
  color: var(--blue, #4a7fff);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}
.uh-palette-inp {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary, #e8e8f0);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
}
.uh-palette-inp::placeholder { color: var(--text-muted, #5c5c78); }
.uh-palette-grp {
  padding: 12px 20px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted, #5c5c78);
}
.uh-palette-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 14px;
  color: var(--text-secondary, #9494b0);
  cursor: pointer;
  font-size: 13px;
  border-left: 2px solid transparent;
}
.uh-palette-item:hover {
  color: var(--text-primary, #e8e8f0);
  background: var(--bg-card-hover, #14142a);
}
.uh-palette-item.selected {
  background: rgba(74,127,255,0.06);
  color: var(--text-primary, #e8e8f0);
  border-left-color: var(--blue, #4a7fff);
}
.uh-palette-item .m {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 10.5px;
  width: 28px;
  color: var(--text-muted, #5c5c78);
}
.uh-palette-item.selected .m { color: var(--blue, #4a7fff); }
.uh-palette-item .r {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted, #5c5c78);
}

/* Responsive — hide non-essentials on narrow screens */
@media (max-width: 980px) {
  .uh-btc canvas, .uh-btc .dom { display: none; }
  .uh-kbd { display: none; }
}
@media (max-width: 720px) {
  .uh-ver { display: none; }
  .uh-regime { padding: 5px 8px; font-size: 9px; }
}
