/* Dev session indicator */

.dev-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #d97706;
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 0;
  letter-spacing: 0.05em;
}

.dev-tag {
  font-size: 0.6rem;
  background: #d97706;
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 2px;
}

/* Sil toolbar — bottom nav bar, mic, more menu */

.toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.5rem 0.25rem;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  touch-action: none;
  justify-content: space-around;
}

.tb-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  flex: 1;
  max-width: 72px;
}

.tb-btn:hover {
  color: var(--accent);
}

.tb-btn.active {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
}

.tb-sil {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  width: auto;
  padding: 0 0.5rem;
}

.tb-mic {
  width: 60px;
  height: 60px;
  border: 2px solid var(--accent);
  color: var(--accent);
  flex: 1.5;
  max-width: 80px;
}

.tb-mic:hover {
  background: var(--accent);
  color: white;
}

.tb-mic.active {
  background: var(--accent);
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

.tb-mic.muted {
  opacity: 0.5;
}

.tb-spacer {
  display: none;
}

/* More menu */

.more-menu {
  position: fixed;
  bottom: 70px;
  right: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  overflow: hidden;
}

.more-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  color: var(--fg);
  font-size: 0.9rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.more-item:hover {
  background: var(--bg);
}

.more-item + .more-item {
  border-top: 1px solid var(--border);
}

/* Mute button in toolbar (shown during voice) */

.tb-mute {
  width: 36px;
  height: 36px;
}

/* End voice button in toolbar */

.tb-end-voice {
  width: 36px;
  height: 36px;
  color: var(--muted);
}

.tb-end-voice:hover {
  color: var(--error);
}

/* Debug panel (toggled from more menu) */

.debug-panel {
  position: fixed;
  bottom: 60px;
  left: 8px;
  right: 8px;
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  z-index: 400;
  max-height: 55vh;
  overflow-y: auto;
  font-size: 0.8rem;
}
.debug-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border, #e5e5e5);
}
.debug-close-btn {
  border: none;
  background: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--muted, #888);
  padding: 0.25rem;
}
.debug-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
}
.debug-btn {
  text-align: left;
  border: 1px solid var(--border, #e5e5e5);
  background: var(--bg, #fff);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--fg, #333);
}
.debug-btn:hover { background: var(--border); }
.debug-btn:active { background: var(--border, #e5e5e5); }
.debug-info {
  padding: 0.5rem 0.75rem;
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--muted, #888);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 150px;
  overflow-y: auto;
  border-top: 1px solid var(--border, #e5e5e5);
}
