:root {
  --bg-void: #050506;
  --bg-surface: #0C0C0E;
  --bg-elevated: #131316;
  --bg-active: #1D1D22;
  --border-subtle: #1E1E24;
  --border-strong: #32323B;
  --text-primary: #F5F5F7;
  --text-secondary: #9898A0;
  --text-muted: #5A5A63;
  --green: #10B981;
  --green-dim: rgba(16, 185, 129, 0.14);
  --amber: #F59E0B;
  --amber-dim: rgba(245, 158, 11, 0.14);
  --red: #EF4444;
  --red-dim: rgba(239, 68, 68, 0.15);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.workspace {
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-void);
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.topbar {
  height: 48px;
  min-height: 48px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 10px;
  z-index: 30;
}

.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 24px; height: 24px; flex-shrink: 0; display: block; }
.brand-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.025em; color: var(--text-primary); }
.brand-name span { color: var(--green); }

.nav-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 2px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  height: 28px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 0.1s, color 0.1s, border-color 0.1s;
}
.nav-tab:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.03); }
.nav-tab.active { background: var(--bg-active); border-color: var(--border-strong); color: var(--text-primary); }
.nav-key { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.nav-tab.active .nav-key { color: var(--text-secondary); }

.top-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.tele-pill {
  height: 28px;
  min-width: 158px;
  padding: 0 9px;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-primary);
}
#hzReadout { display: inline-block; width: 6.2ch; text-align: right; }
#msReadout { display: inline-block; width: 8.2ch; text-align: right; }
.led { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.led.amber { background: var(--amber); }
.led.red { background: var(--red); }

.sys-btn {
  height: 28px;
  padding: 0 9px;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sys-btn:hover { border-color: var(--border-strong); color: var(--text-primary); background: var(--bg-elevated); }

.stage {
  flex: 1;
  position: relative;
  background: var(--bg-void);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage:fullscreen, .stage:-webkit-full-screen { width: 100vw !important; height: 100vh !important; }
#labCanvas { display: block; width: 100%; height: 100%; }

.pixel-hint-pill {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 9, 11, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #F5F5F7;
  display: none;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 15;
}
.pixel-hint-pill.visible { display: inline-flex; }
.stage:fullscreen .pixel-hint-pill, .stage:-webkit-full-screen .pixel-hint-pill, body.clean-mode .pixel-hint-pill { display: none !important; }

.panel-view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 12px 16px;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-void);
  -webkit-overflow-scrolling: touch;
}
.panel-view.active { display: flex; }

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-shrink: 0;
}
.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.metric-card.warn { border-color: var(--amber); background: var(--amber-dim); }
.metric-card.fault { border-color: var(--red); background: var(--red-dim); }
.metric-card.ok { border-color: var(--green); background: var(--green-dim); }
.metric-lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.metric-sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Keyboard */
.kb-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 0;
}
.kb-scale-box { width: 100%; display: flex; justify-content: center; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kb-board {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px;
  flex-shrink: 0;
  transform-origin: center center;
}
.kb-section { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.kb-row { display: flex; gap: 4px; height: 34px; flex-shrink: 0; }
.kb-numpad-grid { display: grid; grid-template-columns: repeat(4, 34px); grid-template-rows: repeat(6, 34px); gap: 4px; flex-shrink: 0; }

.key-cap {
  height: 34px;
  width: 34px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 1.05;
}
.key-cap.spacer { background: transparent; border-color: transparent; pointer-events: none; }
.key-cap.hw-only { background: var(--bg-void); border: 1px dashed var(--border-subtle); color: var(--text-muted); font-size: 8.5px; }
.key-cap.tested { border-color: rgba(16, 185, 129, 0.55); color: var(--text-primary); }
.key-cap.pressed { background: var(--green); border-color: var(--green); color: #050506; }
.key-cap.chatter { background: var(--red); border-color: var(--red); color: #FFFFFF; }

.kb-log {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 34px;
  min-height: 34px;
  flex-shrink: 0;
  overflow: hidden;
}
#kbLastEvent { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#kbChatterLog { flex-shrink: 0; }

/* Mouse */
.mouse-guide-bar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.mouse-grid { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; width: 100%; max-width: 1200px; margin: 0 auto; min-height: 220px; }
.mouse-pad {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  min-height: 190px;
}
.mouse-pad-head { padding: 8px 14px; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); z-index: 5; }
#mouseCanvas { width: 100%; height: 100%; flex: 1; display: block; }

.switch-table { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.btn-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 4px; font-family: var(--font-mono); font-size: 12px; transition: background-color 0.08s, border-color 0.08s; }
.btn-row.active-click { border-color: var(--green); background: var(--green-dim); }
.btn-row.fault-click { border-color: var(--red); background: var(--red-dim); }

/* Audio */
.audio-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 1200px; margin: 0 auto; }
.diag-box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.diag-title { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-primary); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.channel-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; flex: 1; }
.tone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.ch-btn {
  min-height: 64px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
}
.ch-btn:hover { background: var(--bg-active); }
.ch-btn.playing { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.audio-note { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); background: var(--bg-void); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 8px 11px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Gamepad */
.gp-layout { flex: 1; display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 14px; width: 100%; max-width: 1200px; margin: 0 auto; }
.stick-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; }
.stick-canvas { width: 210px; height: 210px; max-width: 100%; background: var(--bg-void); border: 1px solid var(--border-subtle); border-radius: 50%; }
.gp-buttons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.gp-btn-cell { height: 34px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; }
.gp-btn-cell.active { background: var(--green); border-color: var(--green); color: #050506; font-weight: 700; }
.trigger-bar-wrap { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.trigger-track { height: 10px; background: var(--bg-void); border: 1px solid var(--border-subtle); border-radius: 3px; overflow: hidden; }
.trigger-fill { height: 100%; width: 0%; background: var(--green); transition: width 0.03s linear; }

/* Pixel Fixer */
.fixer-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid rgba(0, 0, 0, 0.9);
  display: none;
  cursor: move;
  touch-action: none;
  z-index: 20;
}
.fixer-box.visible { display: block; }
.fixer-canvas { width: 100%; height: 100%; display: block; }
.fixer-handle { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; background: var(--bg-surface); border-top: 1px solid var(--border-strong); border-left: 1px solid var(--border-strong); cursor: nwse-resize; }

/* Dock */
.dock {
  min-height: 52px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 30;
}
.dock-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.param { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.param-label { font-size: 11px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
.seg-group { display: inline-flex; flex-wrap: wrap; background: var(--bg-void); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 2px; gap: 2px; }
.seg-btn {
  height: 28px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.seg-btn:hover { color: var(--text-primary); }
.seg-btn.active { background: var(--bg-active); border-color: var(--border-strong); color: var(--text-primary); font-weight: 600; }
.color-chip { width: 11px; height: 11px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, 0.25); }
.dock-transport { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.play-btn {
  height: 28px;
  padding: 0 11px;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.play-btn:hover { border-color: var(--border-strong); background: var(--bg-elevated); }
.play-btn.active-toggle { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.play-btn.export-btn { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.08); color: var(--green); font-weight: 600; }
.play-btn.export-btn:hover { border-color: var(--green); background: rgba(16, 185, 129, 0.16); }
.play-btn.paused { border-color: var(--amber); color: var(--amber); }

.hud-restore {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  height: 32px;
  padding: 0 12px;
  background: rgba(12, 12, 14, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  display: none;
  opacity: 0.65;
}
.hud-restore:hover { opacity: 1; }
body.clean-mode .topbar, body.clean-mode .dock { display: none !important; }
body.clean-mode .hud-restore { display: inline-flex; align-items: center; }

/* Guide, Internal Directory & Footer */
.guide-section { max-width: 1200px; margin: 0 auto; padding: 40px 18px 36px; }
.guide-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 24px; }
.guide-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.guide-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px 28px; }
.guide-item { padding-bottom: 18px; border-bottom: 1px solid var(--border-subtle); }
.guide-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.guide-num { font-family: var(--font-mono); font-size: 11px; color: var(--green); }
.guide-item h2 { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.guide-item p { font-size: 13px; line-height: 1.62; color: var(--text-secondary); }
.guide-item code { font-family: var(--font-mono); font-size: 11px; color: var(--text-primary); background: var(--bg-elevated); padding: 1px 5px; border-radius: 3px; }

.tools-dir {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px 28px;
}
.tools-dir-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.tools-dir-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dir-link {
  padding: 6px 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.1s, color 0.1s, background-color 0.1s;
}
.dir-link:hover { border-color: var(--border-strong); color: var(--text-primary); background: var(--bg-elevated); }
.dir-link.current { border-color: rgba(16, 185, 129, 0.45); color: var(--green); background: var(--green-dim); }

.footer { max-width: 1200px; margin: 0 auto; padding: 18px 18px 36px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

@media (max-width: 960px) {
  .workspace { height: auto; min-height: 100vh; min-height: 100dvh; }
  .stage { min-height: 56vh; min-height: 56dvh; }
  .topbar { height: auto; flex-wrap: wrap; padding: 8px 12px; }
  .nav-tabs { order: 3; width: 100%; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .mouse-grid, .audio-grid, .gp-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar { padding: 8px 10px; gap: 8px; }
  .brand-name { font-size: 13.5px; }
  .top-actions { gap: 4px; }
  .tele-pill { min-width: 134px; padding: 0 7px; font-size: 10px; }
  .sys-btn { padding: 0 7px; font-size: 10.5px; }
  .nav-key { display: none; }
  .nav-tab { padding: 0 9px; font-size: 11.5px; }
  .panel-view { padding: 10px 12px; gap: 10px; }
  .metric-card { padding: 8px 10px; }
  .metric-val { font-size: 15px; }
  .kb-scale-box { justify-content: flex-start; }
  .dock { padding: 8px 10px; gap: 8px; }
  .dock-controls { gap: 8px; width: 100%; }
  .seg-btn { height: 30px; padding: 0 8px; }
  .dock-transport { width: 100%; justify-content: flex-end; }
  .tone-grid { grid-template-columns: repeat(2, 1fr); }
  .pixel-hint-pill { font-size: 10px; padding: 6px 12px; }
  .guide-section { padding: 28px 14px 28px; }
  .tools-dir { padding: 0 14px 24px; }
}
/* ======================================================================
   VISUAL INTERACTIVE MOUSE DIAGRAM & CLEAN PIXEL MODE
   ====================================================================== */
#pixelHintPill {
  display: none !important;
}

.visual-mouse-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  background: var(--bg-panel, #0C0C0E);
  border: 1px solid var(--border, #27272A);
  border-radius: 10px;
  padding: 14px 12px;
  gap: 10px;
}

.visual-mouse-svg {
  width: 100%;
  max-width: 175px;
  height: auto;
  max-height: 220px;
  user-select: none;
}

.mouse-part-body {
  fill: #131316;
  stroke: #27272A;
  stroke-width: 2;
}

.mouse-btn-zone {
  fill: #18181B;
  stroke: #32323B;
  stroke-width: 1.75;
  transition: fill 0.08s ease, stroke 0.08s ease;
}

.mouse-btn-zone.tested {
  fill: rgba(16, 185, 129, 0.16);
  stroke: rgba(16, 185, 129, 0.65);
}

.mouse-btn-zone.active-click {
  fill: #10B981 !important;
  stroke: #34D399 !important;
}

.mouse-btn-zone.fault-click {
  fill: #EF4444 !important;
  stroke: #F87171 !important;
}

.mouse-zone-lbl {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  fill: #9898A0;
  pointer-events: none;
}

.mouse-btn-zone.active-click + .mouse-zone-lbl {
  fill: #050506;
}

.mouse-click-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

.m-badge {
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  font-family: var(--font-mono, ui-monospace, monospace);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.m-badge.tested {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
}

.m-badge.active-click {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.24);
}

.m-badge-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary, #9898A0);
}

.m-badge-count {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #F5F5F7);
  margin-top: 2px;
}