﻿:root {
  --black: #000;
  --white: #fff;
  --accent: #5ec8f2;
  --accent-dim: rgba(94, 200, 242, 0.15);
  --gray: rgba(255, 255, 255, 0.65);
  --gray-dim: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.04);
}

}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.live-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(94, 200, 242, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(94, 200, 242, 0.95), rgba(56, 160, 210, 0.95));
  color: #001018;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.live-fab[aria-expanded="true"] {
  background: #111;
  color: var(--accent);
  border-color: var(--accent);
}

.live-fab__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

body.live-panel-open {
  overflow: hidden;
}

.live-panel[hidden] {
  display: none !important;
}

.live-panel {
  position: fixed;
  inset: 0;
  z-index: 160;
}

.live-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.live-panel__sheet {
  position: absolute;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 4.25rem);
  width: min(calc(100vw - 1.5rem), 420px);
  max-height: min(calc(88dvh - 4.5rem), 680px);
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: live-panel-in 0.25s ease;
}

@keyframes live-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.live-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.live-panel__eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.live-panel__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.live-panel__close {
  appearance: none;
  background: none;
  border: 0;
  color: var(--gray);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.live-panel__body {
  overflow-y: auto;
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.live-panel__section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.65rem;
}

.live-panel__meta {
  font-size: 0.75rem;
  color: var(--gray-dim);
  margin-bottom: 0.75rem;
}

.live-panel__empty {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--gray);
}

.live-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.live-status-grid--compact {
  max-width: none;
  margin: 0;
  padding: 0;
}

.live-status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.85rem 0.65rem;
  text-align: center;
}

.live-status-card--compact .live-status-card__dot {
  margin-bottom: 0.45rem;
}

.live-status-card--compact .live-status-card__count {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.live-status-card--compact .live-status-card__label {
  font-size: 0.62rem;
  margin-bottom: 0;
  line-height: 1.25;
}

.live-status-card__dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.live-status-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

.live-status-card__count {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
}

.live-bot--panel {
  max-width: none;
  margin: 0;
  padding: 0;
}

.live-bot__messages {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem 0.85rem 0 0;
  min-height: 140px;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.live-bot__bubble {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.live-bot__bubble--bot {
  align-self: flex-start;
  background: rgba(94, 200, 242, 0.12);
  border: 1px solid rgba(94, 200, 242, 0.25);
  color: var(--white);
  border-bottom-left-radius: 0.25rem;
}

.live-bot__bubble--user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--white);
  border-bottom-right-radius: 0.25rem;
}

.live-bot__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 0.85rem 0.85rem;
}

.live-bot__input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  color: var(--white);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-bot__input:focus {
  outline: none;
  border-color: var(--accent);
}

.live-bot__input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-dim);
}

.live-bot__submit {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44px;
  padding-inline: 1rem;
}

.live-result {
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 0.85rem;
  background: var(--accent-dim);
  border: 1px solid rgba(94, 200, 242, 0.25);
  text-align: center;
}

.live-result[hidden] {
  display: none !important;
}

.live-result__eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.live-result__plate {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.live-result__service {
  color: var(--gray);
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.live-result__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.live-result__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.live-result__meta {
  font-size: 0.75rem;
  color: var(--gray-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--black);
  border: 1px solid var(--accent);
}

.btn--primary:hover {
  background: #7dd4f7;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
