:root,
[data-theme="light"] {
  --bg: linear-gradient(160deg, #f4f6f8 0%, #e9edf2 100%);
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-subtle: rgba(241, 245, 249, 0.85);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --accent: #0284c7;
  --emerald: #059669;
  --amber: #d97706;
  --rose: #e11d48;
  --radius: 12px;
}

[data-theme="dark"] {
  --bg: #0f141c;
  --surface: rgba(17, 23, 34, 0.86);
  --surface-strong: #151c29;
  --surface-subtle: rgba(11, 15, 23, 0.72);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --text: #e6edf6;
  --text-secondary: #cbd5e1;
  --muted: #8b98ab;
  --accent: #38bdf8;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 13px;
}

#scene-container {
  position: fixed;
  inset: 0;
}

#plaza-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#labels-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.room-tag {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  transform: translate3d(-9999px, -9999px, 0) translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #1e293b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.room-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.agent-tag {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  transform: translate3d(-9999px, -9999px, 0) translate(-50%, -100%);
  transform-origin: center bottom;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 6;
  transition: z-index 0s;
}

.agent-tag:hover,
.agent-tag.selected {
  z-index: 16;
}

.agent-bubble {
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 172px;
  padding: 5px 10px 5px 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid var(--bubble-accent, rgba(15, 23, 42, 0.16));
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.11);
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.agent-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.12));
}

.agent-bubble:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}

.agent-tag.selected .agent-bubble {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 2.5px rgba(2, 132, 199, 0.25), 0 8px 22px rgba(15, 23, 42, 0.16);
}

/* Role hierarchy styling */
.agent-tag.role-ceo .agent-bubble {
  max-width: 196px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.94);
  border-width: 1.8px;
}

.agent-tag.role-director .agent-bubble {
  max-width: 184px;
  padding: 5.5px 10px;
}

.agent-tag.role-specialist .agent-bubble {
  max-width: 156px;
  padding: 4px 8.5px;
  border-radius: 9px;
}

.bubble-main {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.bubble-led {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.agent-tag.working .bubble-led {
  background: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25);
  animation: ledPulse 1.2s ease-in-out infinite;
}

.agent-tag.routing .bubble-led {
  background: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
  animation: ledPulse 1.2s ease-in-out infinite;
}

.bubble-role-chip {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  background: #0f172a;
  color: #ffffff;
  flex-shrink: 0;
}

.agent-tag.role-director .bubble-role-chip {
  background: var(--bubble-accent, #0284c7);
}

.bubble-title {
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-tag.role-specialist .bubble-title {
  font-size: 10.5px;
  font-weight: 600;
}

.bubble-status-line {
  display: none;
  margin-left: 13px;
  font-size: 10px;
  font-weight: 600;
  color: #0284c7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 145px;
}

.agent-tag.working .bubble-status-line {
  display: block;
  color: #059669;
}

.agent-tag.routing .bubble-status-line {
  display: block;
  color: #0284c7;
}

.agent-tag.on-break .bubble-status-line {
  display: block;
  color: #64748b;
  font-weight: 500;
}

.agent-tag.on-break .bubble-led {
  background: #f59e0b;
}

@keyframes ledPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.72; }
}

/* Top Bar */
.top-bar {
  position: fixed;
  top: 14px;
  left: 18px;
  right: 18px;
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  height: 30px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-switch {
  display: inline-flex;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.mode-btn.active {
  background: var(--surface-strong);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.mode-btn.live-active {
  background: rgba(217, 119, 6, 0.16);
  color: var(--amber);
}

.ctrl-btn {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.ctrl-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.ctrl-btn.active-toggle {
  border-color: rgba(2, 132, 199, 0.4);
  color: var(--accent);
}

.ws-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.ws-pill.online {
  color: var(--emerald);
  border-color: rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.1);
}

.ws-pill.offline {
  color: var(--rose);
  border-color: rgba(225, 29, 72, 0.35);
  background: rgba(225, 29, 72, 0.1);
}

/* Employee Info Board HUD Strip */
.info-board {
  position: fixed;
  top: 76px;
  left: 18px;
  right: 392px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px 2px;
  z-index: 25;
  transition: opacity 0.2s ease, transform 0.2s ease, right 0.22s ease;
}

.info-board.wide {
  right: 18px;
}

.info-board.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.info-card {
  flex: 0 0 218px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 9px 11px 9px 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent));
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.info-card.selected {
  border-color: var(--card-accent, var(--accent));
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.18), var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.card-role {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}

.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.card-status.working {
  color: var(--emerald);
}
.card-status.working .status-led {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.card-status.routing {
  color: var(--accent);
}
.card-status.routing .status-led {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.card-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-summary {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.card-time {
  font-size: 10px;
  color: var(--muted);
  font-family: Consolas, monospace;
}

/* Right Inspector */
.inspector {
  position: fixed;
  top: 76px;
  right: 18px;
  bottom: 80px;
  width: 362px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  z-index: 20;
  overflow: hidden;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.inspector.collapsed {
  transform: translateX(400px);
  opacity: 0;
  pointer-events: none;
}

.inspector-header {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}

.role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent);
  margin-bottom: 5px;
}

.inspector-header h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.agent-path {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
}

.continue-box {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.continue-box.hidden {
  display: none;
}

.continue-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.continue-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.continue-row code {
  flex: 1;
  font-family: Consolas, monospace;
  font-size: 11px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-btn {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
}

.mini-btn:hover {
  border-color: var(--border-strong);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 10px;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 9px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 14px;
}

.doc-view,
.outputs-view {
  display: none;
}

.doc-view.active,
.outputs-view.active {
  display: block;
}

.doc-view {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Segoe UI", monospace;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.output-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--surface-subtle);
  font-size: 12px;
}

.output-meta {
  color: var(--muted);
  font-size: 11px;
}

.log-section {
  height: 185px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--surface-subtle);
}

.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.log-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.log-item {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.log-time {
  color: var(--muted);
  font-family: Consolas, monospace;
  margin-right: 6px;
}

.log-actor {
  color: var(--accent);
  font-weight: 700;
  margin-right: 5px;
}

.log-item.success .log-actor { color: var(--emerald); }
.log-item.warn .log-actor { color: var(--amber); }
.log-item.error .log-actor { color: var(--rose); }

/* Live Pipeline Bar */
.pipeline-bar {
  position: fixed;
  left: 18px;
  bottom: 76px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  z-index: 28;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pipeline-bar.hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.pipe-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-right: 4px;
  border-right: 1px solid var(--border);
}

.pipe-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.pipe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.pipe-step.active {
  color: var(--accent);
}

.pipe-step.active .pipe-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.pipe-step.done {
  color: var(--emerald);
}

.pipe-step.done .pipe-dot {
  background: var(--emerald);
}

.pipe-arrow {
  color: var(--muted);
  font-size: 12px;
}

.pipe-status {
  font-size: 11px;
  color: var(--text-secondary);
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

/* Bottom Task Bar */
.task-bar {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 54px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  z-index: 30;
}

.target-select {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 500;
  min-width: 245px;
  outline: none;
}

.task-input {
  flex: 1;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}

.task-input:focus {
  border-color: var(--accent);
}

.send-btn {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.send-btn:hover {
  filter: brightness(1.08);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Floating 3D Layout Editor Panel */
#btn-edit-layout.edit-active {
  background: rgba(217, 119, 6, 0.16);
  border-color: rgba(217, 119, 6, 0.55);
  color: var(--amber);
  font-weight: 700;
}

.layout-editor {
  position: fixed;
  left: 18px;
  top: 174px;
  width: 316px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  z-index: 26;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.layout-editor.hidden {
  opacity: 0;
  transform: translateX(-14px);
  pointer-events: none;
}

.le-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.le-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.15);
  color: var(--amber);
  margin-bottom: 4px;
}

.le-header h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.le-obj-id {
  display: block;
  font-family: Consolas, monospace;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

.le-gizmo-modes {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.le-gizmo-modes .mini-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.le-empty-hint {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  background: var(--surface-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 10px;
}

.le-empty-hint.hidden,
.le-controls.hidden {
  display: none;
}

.le-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.le-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.le-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.le-section-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.le-val {
  font-family: Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
}

.le-axis-row {
  display: grid;
  grid-template-columns: 18px 40px 40px 1fr 40px 40px;
  gap: 4px;
  align-items: center;
}

.le-axis-tag {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.le-axis-tag.axis-x { color: #ef4444; }
.le-axis-tag.axis-y { color: #22c55e; }
.le-axis-tag.axis-z { color: #3b82f6; }

.le-num-input {
  width: 100%;
  min-width: 0;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  font-family: Consolas, monospace;
  font-size: 11.5px;
  padding: 4px 5px;
  text-align: center;
  outline: none;
}

.le-num-input:focus {
  border-color: var(--accent);
}

.le-nudge-btn,
.le-rot-btn {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 2px;
  cursor: pointer;
}

.le-nudge-btn:hover,
.le-rot-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.le-rot-btns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.le-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.le-actions {
  display: flex;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.le-btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.le-btn-primary:hover {
  filter: brightness(1.08);
}

.le-btn-danger:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.le-save-status {
  font-size: 11px;
  min-height: 14px;
  color: var(--emerald);
  text-align: right;
}

.le-backup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.le-backup-row .mini-btn {
  padding: 5px 6px;
  font-size: 10.5px;
  text-align: center;
}

/* Live FPS Indicator Pill */
.fps-pill {
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--muted);
  min-width: 62px;
  text-align: center;
  user-select: none;
}

.fps-pill.good {
  color: var(--emerald);
  border-color: rgba(5, 150, 105, 0.35);
}

.fps-pill.mid {
  color: var(--amber);
  border-color: rgba(217, 119, 6, 0.35);
}

.fps-pill.low {
  color: var(--rose);
  border-color: rgba(225, 29, 72, 0.35);
}
