/* Диагностическая полоса внизу экрана (трекер запроса / клиентские метрики) */
html.has-request-debug-footer {
  padding-bottom: 4.25rem;
}

.request-debug-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* На широком экране меню в колонке — не заезжать под .app-sidebar (272px, см. app_shell_sidebar.css) */
  z-index: 850;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 11px;
  line-height: 1.35;
  color: #111827;
  background: #e8edf3;
  border-top: 1px solid #94a3b8;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.request-debug-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.35rem 0.75rem;
  max-width: 100%;
}

.request-debug-footer__sep {
  color: #9ca3af;
  user-select: none;
}

.request-debug-footer__label {
  color: #6b7280;
  font-weight: 600;
}

.request-debug-footer__bar-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.request-debug-footer__toggle {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font: inherit;
  cursor: pointer;
  color: #374151;
}

.request-debug-footer__toggle:focus-visible {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 1px;
}

.request-debug-footer__toggle:hover {
  background: #e5e7eb;
}

.request-debug-footer__panel {
  display: none;
  padding: 0.5rem 0.75rem 0.65rem;
  border-top: 1px dashed #d1d5db;
  background: #fff;
  max-height: 38vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.request-debug-footer.is-expanded .request-debug-footer__panel {
  display: block;
}

.request-debug-footer__warn {
  color: #b45309;
  font-weight: 600;
}

@media (min-width: 900px) {
  html.has-request-debug-footer body.app-sidebar-docked .request-debug-footer {
    left: var(--app-sidebar-width, 272px);
  }
}
