.queue-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text);
  padding: 1.25rem;
  max-width: 460px;
  width: 92vw;
  box-shadow: var(--shadow);
}
.queue-dialog h3 { margin: 0 0 0.5rem; }
.queue-dialog__intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-soft, #4a4740);
}
.queue-dialog__field {
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
}
.queue-dialog label { display: grid; gap: 0.4rem; margin: 0.8rem 0; font-weight: 600; font-size: 0.88rem; }
.queue-dialog input {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font: inherit;
}
.queue-dialog__actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.8rem; }
.queue-consent {
  margin: 0.85rem 0 0;
  padding: 0.85rem;
  background: var(--bg, #f8fafc);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.queue-consent__summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}
.queue-consent__body { margin-top: 0.65rem; }
.queue-consent__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-soft);
}
.queue-consent__list li { margin-bottom: 0.35rem; }
.queue-consent__more {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
}
.queue-consent__check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 500;
  cursor: pointer;
}
.queue-consent__check input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: auto;
  padding: 0;
}
.queue-consent__check a { color: var(--primary); }
.queue-consent__links {
  margin: 0.35rem 0 0 1.45rem;
  font-size: 0.78rem;
}
.queue-consent__links a { color: var(--primary); }
.queue-dialog__actions .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.queue-hint { color: var(--muted); font-size: 0.85rem; margin: 0; }
.queue-error { color: #dc2626; min-height: 1.2rem; font-size: 0.9rem; }
.queue-page { max-width: 520px; margin: 2rem auto; padding: 0 1rem; }
.queue-page .card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.queue-page .free { color: var(--success); font-weight: 800; font-size: 1.15rem; text-align: center; padding: 1rem; }
.confirm-btn, .remove-btn {
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.confirm-btn { background: var(--success); color: #fff; }
.confirm-btn:hover { background: #047857; }
.remove-btn { background: #dc2626; color: #fff; }
.remove-btn:hover { background: #b91c1c; }
.queue-list__plate { flex: 1; font-weight: 600; }
.queue-summary { font-weight: 700; font-size: 1rem; margin: 0 0 1rem; }
.queue-free-msg { color: var(--success); font-weight: 800; text-align: center; padding: 1.25rem; font-size: 1.1rem; }

/* Admin panel */
.admin-bar {
  background: #0c4a6e;
  color: #fff;
  padding: 0.5rem 0;
}
.admin-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.admin-bar__badge {
  background: rgba(255,255,255,0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.admin-bar__logout {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}
.admin-bar__logout button { color: #fff; border-color: rgba(255,255,255,0.3); }
.queue-page--admin .card {
  border: 2px solid #bae6fd;
  max-width: 560px;
}
.admin-panel-intro { margin-bottom: 1rem; }
.admin-panel-intro h1 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.admin-actions-help {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.85rem;
  background: var(--bg, #f4f8fc);
  border-radius: var(--radius-sm, 12px);
  border: 1px solid var(--line, #e2e8f0);
}
.admin-action-hint {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.admin-action-hint__btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0 !important;
}
.admin-action-hint strong { display: block; font-size: 0.88rem; }
.admin-action-hint p { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--muted, #64748b); line-height: 1.4; }
.queue-visits { margin-top: 1rem; text-align: left; }
.queue-visits h4 { margin: 0 0 0.5rem; font-size: 0.9rem; }
.queue-visits ul { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted, #64748b); }

/* Admin strip on detail page */
.admin-strip {
  background: #0c4a6e;
  color: #fff;
  border-radius: var(--radius-sm, 12px);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.admin-strip strong { display: block; margin-bottom: 0.25rem; }
.admin-strip a { color: #7dd3fc; }
.admin-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
}
.admin-strip__actions span {
  background: rgba(255,255,255,0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* Driver queue rules */
.driver-rules {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius, 20px);
  padding: 1.25rem 1.35rem;
  margin: 1.25rem 0;
}
.driver-rules--compact {
  margin-top: 1rem;
  padding: 1rem;
}
.driver-rules__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #92400e;
}
.driver-rules__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.55;
}
.driver-rules__list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #78350f;
}
.driver-rules__list > li {
  margin-bottom: 0.85rem;
}
.driver-rules__list > li > strong {
  display: block;
  font-size: 0.92rem;
  color: #92400e;
  margin-bottom: 0.2rem;
}
.driver-rules__list > li p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #a16207;
}
.driver-rules__note {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm, 12px);
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.45;
}
.time-badge {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.88em;
}

/* ── Fullscreen queue display ── */
.queue-screen-body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 189, 248, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(14, 165, 233, 0.1), transparent),
    linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
  min-height: 100vh;
}
.queue-screen {
  width: min(96vw, 1400px);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  box-sizing: border-box;
}
.queue-screen__header {
  text-align: center;
  padding-bottom: clamp(0.5rem, 1.5vh, 1rem);
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}
.queue-screen__header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}
.queue-screen__title { margin: 0; font-size: clamp(1.1rem, 2.5vw, 1.75rem); font-weight: 800; }
.queue-screen__summary {
  margin: 0.5rem 0 0;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #64748b;
}
.queue-screen__stage,
.queue-showcase {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 28vh;
  width: 100%;
}
.queue-showcase__promo {
  width: 100%;
  max-width: 640px;
  margin: 0 auto clamp(0.75rem, 2vh, 1.25rem);
}
.queue-showcase__plates {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.queue-list--screen { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: clamp(0.4rem, 1vh, 0.75rem); }
.queue-list--screen .queue-list__row {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  padding: clamp(0.65rem, 2vh, 1.25rem) clamp(0.85rem, 2.5vw, 1.5rem);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: clamp(10px, 1.5vw, 16px);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.queue-list__pos {
  width: clamp(28px, 4vw, 44px);
  height: clamp(28px, 4vw, 44px);
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.queue-list--screen .queue-list__plate {
  font-size: clamp(1.1rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.queue-free-msg--screen {
  font-size: clamp(2.2rem, 9vw, 4.5rem) !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #059669 !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}
.queue-free-display {
  text-align: center;
  padding: clamp(2rem, 12vh, 5rem) 1rem;
}
.queue-free-display__icon {
  width: clamp(4rem, 12vw, 5.5rem);
  height: clamp(4rem, 12vw, 5.5rem);
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.35);
  animation: queue-pulse-free 2.5s ease-in-out infinite;
}
@keyframes queue-pulse-free {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(5, 150, 105, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 16px 40px rgba(5, 150, 105, 0.45); }
}
.queue-free-display__sub {
  margin: 0.5rem 0 0;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: #64748b;
  font-weight: 600;
}
.wash-promo {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 20px;
  background: linear-gradient(125deg, #f59e0b 0%, #ea580c 45%, #dc2626 100%);
  box-shadow:
    0 4px 0 rgba(180, 50, 10, 0.35),
    0 16px 40px rgba(234, 88, 12, 0.28);
}
.wash-promo__glow {
  position: absolute;
  inset: -50% -20%;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 55%);
  pointer-events: none;
}
.wash-promo__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.9rem, 2.5vh, 1.2rem) clamp(1rem, 3vw, 1.5rem);
  text-align: left;
}
.wash-promo__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  backdrop-filter: blur(4px);
}
.wash-promo__body { min-width: 0; flex: 1; }
.wash-promo__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.wash-promo__text {
  margin: 0;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.ad-rotator--queue { margin-top: auto; border-radius: 10px; overflow: hidden; }
.ad-rotator--queue .ad-rotator__frame { min-height: 64px; opacity: 0; transition: opacity 0.28s; }
.ad-rotator--queue .ad-rotator__frame--visible { opacity: 1; }
.ad-rotator--queue .ad-card {
  min-height: 64px;
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
}
.ad-card__kind { font-size: 0.6rem; opacity: 0.75; text-transform: uppercase; }
.queue-screen__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
}
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.queue-screen__more { font-size: 0.85rem; color: #64748b; }
.queue-screen__more summary {
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  list-style: none;
}
.queue-screen__more-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0; align-items: center; }
.queue-screen__qr summary { font-size: 0.8rem; color: #64748b; cursor: pointer; }
.queue-screen--admin { max-width: 720px; margin: 0 auto; padding-bottom: 6rem; }

/* Admin floating action buttons */
.admin-fab-dock {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.admin-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.admin-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(15, 23, 42, 0.28); }
.admin-fab:active { transform: translateY(0) scale(0.98); }
.admin-fab__glyph {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.admin-fab__glyph--plus { font-size: 1.65rem; line-height: 1; font-weight: 300; }
.admin-fab__label { padding-right: 1.1rem; font-size: 0.92rem; letter-spacing: 0.02em; }
.admin-fab--add {
  padding: 0.35rem 0.35rem 0.35rem 0.45rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 55%, #0369a1 100%);
  color: #fff;
  min-height: 3.25rem;
}
.admin-fab--qr {
  padding: 0.3rem 0.3rem 0.3rem 0.4rem;
  background: #fff;
  color: #0c4a6e;
  border: 2px solid #bae6fd;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.2);
}
.admin-fab--qr .admin-fab__glyph { background: #e0f2fe; color: #0369a1; }

/* Admin QR showcase */
.admin-qr-dialog {
  border: none;
  padding: 0;
  max-width: none;
  width: min(96vw, 440px);
  background: transparent;
  overflow: visible;
}
.admin-qr-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}
.admin-qr-dialog__stage {
  position: relative;
  background: linear-gradient(165deg, #fff 0%, #f0f9ff 100%);
  border-radius: 24px;
  padding: 1.5rem 1.35rem 1.35rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  border: 1px solid #bae6fd;
}
.admin-qr-dialog__stage:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(165deg, #f0f9ff 0%, #fff 50%, #e0f2fe 100%);
}
.admin-qr-dialog__stage:fullscreen .admin-qr-dialog__frame img {
  width: min(72vmin, 480px) !important;
  height: min(72vmin, 480px) !important;
}
.admin-qr-dialog__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.admin-qr-dialog__close:hover { background: #e2e8f0; color: #0f172a; }
.admin-qr-dialog__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #0284c7;
}
.admin-qr-dialog__title {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  font-weight: 900;
  color: #0c4a6e;
  line-height: 1.2;
}
.admin-qr-dialog__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}
.admin-qr-dialog__frame {
  display: inline-block;
  padding: 0.9rem;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18);
  margin-bottom: 0.85rem;
}
.admin-qr-dialog__frame img { display: block; width: min(72vw, 320px); height: auto; border-radius: 8px; }
.admin-qr-dialog__hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}
.admin-qr-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* Admin promo form */
.admin-promo-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
}
.admin-promo-form__title { margin: 0 0 0.25rem; font-size: 1.05rem; }
.admin-promo-form__hint { margin: 0 0 0.75rem; font-size: 0.82rem; color: #64748b; }
.admin-promo-form__field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.admin-promo-form__field input {
  padding: 0.65rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
}
.admin-promo-form__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}
.admin-promo-form__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.admin-promo-form__status { font-size: 0.85rem; font-weight: 600; color: #059669; }
.admin-promo-preview__label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.wash-promo { margin-bottom: 0; }

/* ── Russian license plate (realistic) ── */
.ru-plate-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.ru-plate-slot__badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  border: 1px solid #6ee7b7;
}
.ru-plate-slot--next .ru-plate-slot__badge {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #7dd3fc;
  animation: queue-badge-pulse 2s ease-in-out infinite;
}
@keyframes queue-badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
.ru-plate {
  display: inline-flex;
  align-items: stretch;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #eef2f7 100%);
  border: 4px solid #0f172a;
  border-radius: 12px;
  box-shadow:
    0 5px 0 #0f172a,
    0 14px 32px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.9);
  font-family: "Bahnschrift", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  line-height: 1;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ru-plate__flag-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  padding: 0.32em 0.22em;
  border-right: 3px solid #0f172a;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  min-width: 2.6em;
  max-width: 3.4em;
}
.ru-plate__rus {
  font-size: 0.26em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0369a1;
  line-height: 1.05;
  text-align: center;
  word-break: break-all;
}
.ru-plate__flag {
  display: flex;
  flex-direction: column;
  width: 0.85em;
  border-radius: 1px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.15);
}
.ru-plate__flag i { display: block; height: 0.22em; }
.ru-plate__flag i:nth-child(1) { background: #fff; }
.ru-plate__flag i:nth-child(2) { background: #0039a6; }
.ru-plate__flag i:nth-child(3) { background: #d52b1e; }
.ru-plate__main {
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  padding: 0.38em 0.5em 0.42em 0.35em;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f172a;
}
.ru-plate__l, .ru-plate__l2 { font-size: 1em; }
.ru-plate__d { font-size: 1.42em; font-weight: 900; letter-spacing: 0.06em; }
.ru-plate__region {
  display: grid;
  place-items: center;
  min-width: 2.5em;
  padding: 0.28em 0.32em;
  border-left: 3px solid #0f172a;
  font-size: 0.78em;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(180deg, #fff, #f1f5f9);
  line-height: 1.05;
}
.ru-plate__fallback {
  padding: 0.5em 0.85em;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.ru-plate-slot--mine .ru-plate {
  box-shadow:
    0 5px 0 #0369a1,
    0 18px 40px rgba(14, 165, 233, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.ru-plate.ru-plate--mine {
  outline: 3px solid #0ea5e9;
  outline-offset: 4px;
}
.ru-plate-slot--next .ru-plate {
  box-shadow:
    0 6px 0 #0f172a,
    0 0 0 4px rgba(16, 185, 129, 0.35),
    0 20px 48px rgba(5, 150, 105, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.queue-plate--t1 { font-size: clamp(1.85rem, 6.5vw, 3.75rem); }
.queue-plate--t2 { font-size: clamp(1.5rem, 5.2vw, 2.85rem); opacity: 0.97; }
.queue-plate--t3 { font-size: clamp(1.25rem, 4.2vw, 2.2rem); opacity: 0.94; }
.queue-plate--t4 { font-size: clamp(1.05rem, 3.4vw, 1.7rem); opacity: 0.9; }
.queue-plate--t5 { font-size: clamp(0.92rem, 2.8vw, 1.35rem); opacity: 0.86; }
.queue-plate--rest { font-size: clamp(0.82rem, 2.2vw, 1.05rem); }

/* ── Tiered queue stage ── */
.queue-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.5vh, 1rem);
  width: 100%;
}
.queue-stage__heading {
  margin: 0 0 clamp(0.25rem, 1vh, 0.5rem);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #94a3b8;
  text-align: center;
}
.queue-stage__top5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.8vh, 0.85rem);
  width: 100%;
  padding: clamp(0.25rem, 1vh, 0.5rem) 0;
}
.queue-stage__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  padding: 0 clamp(3rem, 10vw, 4.5rem);
  box-sizing: border-box;
}
.queue-stage__hero--mine::after {
  content: "Вы";
  position: absolute;
  top: -0.15rem;
  right: clamp(2.5rem, 8vw, 3.5rem);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}
.queue-stage__plate-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}
.queue-stage__admin {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.queue-stage__rest-wrap {
  width: 100%;
  max-width: 640px;
  margin-top: clamp(0.5rem, 2vh, 1rem);
  padding-top: clamp(0.65rem, 2vh, 1rem);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  text-align: center;
}
.queue-stage__rest-label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #cbd5e1;
}
.queue-stage__rest {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.45rem, 1.5vw, 0.75rem);
  padding: 0;
  background: transparent;
  border: none;
}
.queue-stage__row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
}
.queue-stage__row .queue-stage__admin {
  position: static;
  transform: none;
  flex-direction: row;
  margin-top: 0.25rem;
}
.queue-stage__row--mine .ru-plate {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}
.queue-show-more {
  margin: 0.75rem auto 0;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.queue-show-more:hover { background: #f8fafc; border-color: #94a3b8; }

/* Personal banner */
.queue-screen__my { margin-bottom: 0.75rem; }
.queue-my-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 32px rgba(3, 105, 161, 0.35);
}
.queue-my-banner__shine {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: rotate(18deg);
  animation: queue-shine 4s ease-in-out infinite;
}
@keyframes queue-shine {
  0%, 100% { transform: translateX(-30%) rotate(18deg); }
  50% { transform: translateX(120%) rotate(18deg); }
}
.queue-my-banner__content { position: relative; text-align: center; }
.queue-my-banner__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
  font-weight: 700;
}
.queue-my-banner__pos {
  margin: 0.15rem 0;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  line-height: 1;
}
.queue-my-banner__hint { margin: 0.25rem 0 0.65rem; font-size: 0.88rem; opacity: 0.92; }
.queue-my-banner__leave {
  color: #fff !important;
  border-color: rgba(255,255,255,0.45) !important;
  background: rgba(255,255,255,0.12) !important;
}

/* ── Admin queue panel (mobile-first) ── */
body.admin-queue-body {
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
  min-height: 100dvh;
}

body.admin-queue-body .container {
  width: min(100%, 480px);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.admin-queue-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 calc(8.5rem + env(safe-area-inset-bottom));
  min-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-queue-page__inner {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

.admin-queue-head {
  padding: 1.1rem 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  text-align: center;
  width: 100%;
}

.admin-queue-head__title {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.admin-queue-head__summary {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0284c7;
}

.admin-queue-head__hint {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #64748b;
}

.admin-queue-list-wrap {
  padding: 0.75rem 0 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-promo-status {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.85rem 0.85rem 0.25rem;
  text-align: center;
}

.admin-promo-status__label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.admin-promo-status__live {
  display: flex;
  justify-content: center;
}

.admin-promo-status__live .wash-promo {
  margin: 0;
  width: min(100%, 300px);
}

.admin-promo-status__note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.admin-promo-status__off {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  font-size: 0.88rem;
  color: #64748b;
}

.admin-queue-footer {
  width: 100%;
  max-width: 420px;
  margin: 0.5rem auto 0;
  padding: 1rem 0.85rem 0.5rem;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.admin-queue-footer__copy {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.admin-queue-footer__links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.admin-queue-footer__links a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}

.admin-queue-footer__links a:hover {
  text-decoration: underline;
}

.admin-queue-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.admin-queue-item {
  width: 100%;
  max-width: 340px;
  padding: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.admin-queue-item--next {
  border-color: #6ee7b7;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.12);
}

.admin-queue-item--next .admin-queue-item__head {
  background: linear-gradient(180deg, #ecfdf5, #fff);
}

.admin-queue-item--next .admin-queue-item__pos {
  background: #059669;
  color: #fff;
}

.admin-queue-item__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(180deg, #fafbfc, #fff);
}

.admin-queue-item--next .admin-queue-item__head {
  background: linear-gradient(180deg, #ecfdf5, #fff);
}

.admin-queue-item__top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-queue-item__pos {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.admin-queue-item__badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-queue-item__plate-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.admin-plate {
  display: flex;
  align-items: stretch;
  width: min(100%, 300px);
  height: 3.5rem;
  margin: 0 auto;
  border: 2.5px solid #111827;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  box-shadow: 0 2px 0 #111827, 0 8px 20px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  font-family: "Golos Text", "Roboto Condensed", "Arial Narrow", sans-serif;
  font-variant-numeric: tabular-nums;
}

.admin-plate__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 1.65rem;
  flex-shrink: 0;
  border-right: 2.5px solid #111827;
  background: linear-gradient(180deg, #f8fafc, #e5e7eb);
}

.admin-plate__rus {
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1d4ed8;
  line-height: 1;
}

.admin-plate__flag {
  display: flex;
  flex-direction: column;
  width: 0.85rem;
  border-radius: 1px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.admin-plate__flag i {
  display: block;
  height: 0.22rem;
}

.admin-plate__flag i:nth-child(1) { background: #fff; }
.admin-plate__flag i:nth-child(2) { background: #0039a6; }
.admin-plate__flag i:nth-child(3) { background: #d52b1e; }

.admin-plate__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  padding: 0 0.35rem;
  color: #111827;
}

.admin-plate__l,
.admin-plate__l2 {
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
}

.admin-plate__d {
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
}

.admin-plate__region {
  display: grid;
  place-items: center;
  min-width: 2.85rem;
  padding: 0 0.25rem;
  border-left: 2.5px solid #111827;
  background: linear-gradient(180deg, #fff, #e5e7eb);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  color: #111827;
}

.admin-plate--plain .admin-plate__fallback,
.admin-plate__fallback {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #111827;
  text-align: center;
}

.admin-queue-item__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem 0.95rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.admin-queue-item__done,
.admin-queue-item__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 50px;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}

.admin-queue-item__done:active,
.admin-queue-item__remove:active {
  transform: scale(0.98);
}

.admin-queue-item__btn-icon {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.admin-queue-item__done {
  background: #059669;
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.admin-queue-item__done .admin-queue-item__btn-icon {
  background: rgba(255, 255, 255, 0.2);
}

.admin-queue-item__remove {
  background: #fff;
  color: #b91c1c;
  border: 2px solid #fecaca;
  box-shadow: none;
}

.admin-queue-item__remove .admin-queue-item__btn-icon {
  background: #fef2f2;
  color: #dc2626;
}

.admin-queue-more {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0.35rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-queue-more:active {
  background: #f1f5f9;
}

.admin-queue-empty {
  text-align: center;
  padding: 2.75rem 1.25rem;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.admin-queue-empty__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  font-size: 1.35rem;
  font-weight: 900;
}

.admin-queue-empty__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #059669;
}

.admin-queue-empty__sub {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.admin-queue-toolbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  max-width: 480px;
  margin: 0 auto;
}

.admin-queue-toolbar__btn {
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.admin-queue-toolbar__btn--primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-color: #0284c7;
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

@media (min-width: 481px) {
  .admin-queue-toolbar {
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
  }
}


/* ── Баннер вместо рекламного слота на экране очереди ── */
.queue-banner {
  width: 100%;
  max-width: 720px;
  margin: 18px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  line-height: 0;
}
.queue-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Сегментный ввод госномера «квадратиками» ── */
.plate-boxes {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.35rem 0 0.2rem;
}
.plate-box-group { display: flex; gap: 0.28rem; }
.plate-box {
  width: 2.15rem;
  height: 2.7rem;
  padding: 0;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text, #1a1814);
  background: #fff;
  border: 1.5px solid var(--line, #cbd5e1);
  border-radius: 9px;
  box-sizing: border-box;
  caret-color: var(--primary, #10b981);
}
.plate-box:focus {
  outline: none;
  border-color: var(--primary, #10b981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.plate-box--region { width: 1.75rem; height: 2.35rem; font-size: 1.05rem; }
@media (max-width: 420px) {
  .plate-boxes { gap: 0.4rem; }
  .plate-box-group { gap: 0.22rem; }
  .plate-box { width: 1.85rem; height: 2.4rem; font-size: 1.1rem; border-radius: 7px; }
  .plate-box--region { width: 1.5rem; height: 2.1rem; font-size: 0.95rem; }
}

/* ── Пояснение (первый раз) — не «ошибка», а инфо-блок ── */
.queue-error.queue-msg--info {
  color: #0c4a6e;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.45;
  font-size: 0.86rem;
}

/* ── Красная вставка в пояснении + предупреждение под номером ── */
.queue-msg__accent { color: #dc2626; font-weight: 800; }
.queue-hint--warn { color: #c0392b; font-weight: 600; }

/* ── Аккуратный блок «Кратко о правилах очереди» ── */
.queue-consent__summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0.15rem 0;
}
.queue-consent__summary::-webkit-details-marker { display: none; }
.queue-consent__summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted, #94a3b8);
  transition: transform 0.2s ease;
}
.queue-consent__details[open] .queue-consent__summary::after { transform: rotate(180deg); }
.queue-consent__list {
  list-style: none;
  padding-left: 0;
  margin: 0.3rem 0 0;
}
.queue-consent__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
}
.queue-consent__list li:last-child { margin-bottom: 0; }
.queue-consent__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: 800;
}
.queue-consent__list li strong { color: var(--text, #1a1814); }
.queue-consent__more { margin: 0.6rem 0 0; }

/* ── Номер в очереди: текст + квадратик места (без флага, любые страны) ── */
.q-plate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.q-plate__text {
  flex: 1 1 auto;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.q-plate__pos {
  flex: 0 0 auto;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eef4f1;
  color: #0f172a;
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.q-plate--next .q-plate__pos { background: #00a046; color: #fff; }
.q-plate--mine .q-plate__text { color: #00a046; }
.q-plate--mine .q-plate__pos { box-shadow: 0 0 0 2px rgba(0, 160, 70, .35); }
/* Крупнее в топ-5 (герой) */
.queue-stage__hero .q-plate__text { font-size: 1.7rem; }
.queue-stage__hero .q-plate__pos { min-width: 2.5rem; height: 2.5rem; font-size: 1.2rem; }

/* ── Регион — в центральном блоке рядом с номером ── */
.ru-plate__reg {
  font-size: 0.8em;
  font-weight: 900;
  margin-left: 0.16em;
  color: #334155;
  letter-spacing: 0.03em;
}
/* ── Правый бокс — место в очереди (вместо региона и флага) ── */
.ru-plate__pos {
  background: linear-gradient(180deg, #eafff3, #cdf3df);
  color: #047857;
}
.ru-plate-slot--next .ru-plate__pos {
  background: linear-gradient(180deg, #00b050, #009a45);
  color: #fff;
}

/* Значок «Записал администратор» на номере (наведение = подсказка) */
.ru-plate-slot { position: relative; }
.ru-plate__adminmark {
  position: absolute;
  top: -7px;
  left: -7px;
  z-index: 4;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: #00a046;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: help;
}

/* ══ Компактная шапка экрана очереди — не тратить место, важнее номера ══ */
.queue-screen { padding-top: clamp(0.5rem, 1.2vw, 0.9rem); }
.queue-screen__header {
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
}
.queue-screen__header-main { gap: 0.35rem 0.8rem; }
.queue-screen__title { font-size: clamp(1rem, 2.2vw, 1.3rem); line-height: 1.15; }
.queue-screen__addr {
  margin: 0.12rem 0 0;
  font-size: 0.76rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 92vw;
}
.queue-screen__summary {
  margin: 0.18rem 0 0;
  font-size: clamp(0.82rem, 1.8vw, 1rem);
}
/* статус чуть компактнее */
.queue-screen .live-status--lg {
  padding: 0.28rem 0.7rem;
  font-size: clamp(0.85rem, 1.9vw, 1.05rem);
}

/* Ссылка внутри сообщения формы записи (напр. переход к другой очереди) */
.queue-msg__link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 700;
  color: #0369a1;
  text-decoration: underline;
}
.queue-msg__link:hover { color: #075985; }

/* ══ Компактная плашка «Вы в очереди» (над рекламой мойки) ══ */
.queue-my-banner--compact {
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(3, 105, 161, 0.28);
  margin: 0 auto 0.5rem;
  max-width: 640px;
}
.queue-my-banner--compact .queue-my-banner__content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem 0.6rem;
  text-align: center;
}
.queue-my-banner--compact .queue-my-banner__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.92;
}
.queue-my-banner--compact .queue-my-banner__pos {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}
.queue-my-banner--compact .queue-my-banner__hint {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.95;
}
.queue-my-banner__leave-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  opacity: 0.92;
}
.queue-my-banner__leave-link:hover { opacity: 1; }

/* ══ Ещё компактнее шапка экрана очереди (название и «сколько в очереди») ══ */
.queue-screen__header { padding-bottom: 0.3rem; margin-bottom: 0.4rem; }
.queue-screen__title { font-size: clamp(0.92rem, 1.9vw, 1.1rem); }
.queue-screen__summary { font-size: 0.78rem; margin-top: 0.1rem; }
.queue-screen .live-status--lg { padding: 0.2rem 0.55rem; font-size: 0.78rem; }

/* ── Личный блок «вы в очереди» — прямо в шапке экрана очереди ── */
.queue-screen__mine { text-align: center; margin: 0.35rem 0 0.1rem; }
.queue-mine__row { margin: 0; display: inline-flex; align-items: baseline; gap: 0.4rem; }
.queue-mine__label { font-size: 0.82rem; color: #64748b; font-weight: 600; }
.queue-mine__pos { font-size: 1.35rem; font-weight: 900; color: #0369a1; }
.queue-mine__wait { margin: 0.1rem 0 0; font-size: 0.82rem; color: #334155; }
.queue-mine__leave {
  background: none; border: none; padding: 0; margin: 0.2rem 0 0;
  color: #dc2626; font: inherit; font-size: 0.82rem; font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.queue-mine__leave:hover { color: #b91c1c; }

/* ══ Правило «10 минут на заезд»: таймер у клиента, админа и на экране ══ */
.arrive-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}
.arrive-timer b {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
/* Осталось меньше 2 минут — красный и пульсирует */
.arrive-timer--late {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
  animation: arrive-late-pulse 1.2s ease-in-out infinite;
}
@keyframes arrive-late-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  .arrive-timer--late { animation: none; }
}

/* На карточке админа — по центру, между номером и кнопками */
.admin-queue-item__arrive {
  margin: 0.15rem 0 0.35rem;
  text-align: center;
}

/* На публичном экране — подпись под первым номером */
.queue-stage__arrive {
  margin: -0.2rem 0 0.2rem;
  text-align: center;
}

/* В личной плашке «Ваша очередь» */
.queue-mine__arrive { margin: 0.3rem 0 0; text-align: center; }
.queue-mine__arrive .arrive-timer { font-size: 0.88rem; }
.queue-mine__arrive-note {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: #94a3b8;
}

/* ТВ-режим: таймер читается издалека */
@media (min-width: 1280px) and (orientation: landscape) {
  .queue-stage__arrive .arrive-timer { font-size: 1.15rem; padding: 0.45rem 1.1rem; }
}

/* ══ «Не заехали за 10 минут»: карточки у админа + плашка у клиента ══ */
.admin-missed {
  width: 100%;
  max-width: 420px;
  margin: 1rem auto 0;
  padding: 0.85rem 0.9rem;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 14px;
}
.admin-missed__title {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #b91c1c;
  text-align: center;
}
.admin-missed__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem 0.65rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 10px;
}
.admin-missed__info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.admin-missed__plate {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.admin-missed__ago { font-size: 0.74rem; color: #94a3b8; white-space: nowrap; }
.admin-missed__actions { display: flex; gap: 0.4rem; }
.admin-missed__ok,
.admin-missed__del {
  flex: 1;
  min-height: 38px;
  padding: 0.4rem 0.6rem;
  border-radius: 9px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.admin-missed__ok {
  border: none;
  background: #059669;
  color: #fff;
}
.admin-missed__del {
  border: 1.5px solid #fecaca;
  background: #fff;
  color: #b91c1c;
}
.admin-missed__hint {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #9a6a6a;
}

/* Плашка клиенту: «время на заезд вышло» */
.queue-missed-note {
  max-width: 560px;
  margin: 0.6rem auto 0.2rem;
  padding: 0.65rem 0.9rem;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #7f1d1d;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}
.queue-missed-note strong { color: #b91c1c; }

/* Надёжное скрытие строки времени: без этого HTML-атрибут hidden не срабатывает —
   его перебивает display:inline-block из polish.css, и время дублируется у записанного */
.queue-screen__summary[hidden] { display: none !important; }

/* Баннер «мойка сейчас не работает» (нерабочее время по местному времени города) */
.queue-closed-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px auto 4px;
  max-width: 480px;
  padding: 14px 16px;
  background: #eef4fb;
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  text-align: left;
  color: #1e4f7a;
}
.queue-closed-banner__icon { font-size: 24px; line-height: 1.1; }
.queue-closed-banner strong { display: block; font-size: 16px; color: #123a5e; margin-bottom: 2px; }
.queue-closed-banner span { display: block; font-size: 13.5px; line-height: 1.45; }
.queue-closed-banner__hours { margin-top: 4px; color: #5b7a97; opacity: .85; }

/* Нерабочее время: прячем «Свободна», сводку и подсказку «нажмите Записаться» —
   чтобы не противоречить баннеру «мойка сейчас не работает». Правило с data-closed
   на корне переживает перерисовку списка живым обновлением (queue.js). */
#queue-page-root[data-closed="1"] #queue-summary,
#queue-page-root[data-closed="1"] .queue-free-display,
#queue-page-root[data-closed="1"] #queue-foot-new,
#queue-page-root[data-closed="1"] #queue-join-open { display: none !important; }
