:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface2: #334155;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dim: #0ea5e9;
  --danger: #f87171;
  --ok: #4ade80;
  --radius: 12px;
  --touch: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}

.screen { display: none; min-height: 100vh; flex-direction: column; }
.screen.active { display: flex; }

.header {
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--surface2);
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header h1 { font-size: 1.1rem; margin: 0; flex: 1; font-weight: 600; }
.header .btn-icon {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  padding: 8px;
  min-height: var(--touch);
}

.main { flex: 1; padding: 16px; padding-bottom: 80px; max-width: 640px; margin: 0 auto; width: 100%; }

.search-hero input {
  width: 100%;
  font-size: 1.25rem;
  padding: 16px;
  border-radius: var(--radius);
  border: 2px solid var(--surface2);
  background: var(--surface);
  color: var(--text);
  min-height: 56px;
}
.search-hero input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-hero-suggest { position: relative; }
.suggest-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  min-height: 44px;
  cursor: pointer;
  border: none;
  border-bottom: none;
  background: transparent;
  color: var(--text);
  flex: 1 1 auto;
}
.suggest-item-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--surface2);
  gap: 0;
}
.suggest-item-row:last-child { border-bottom: none; }
.suggest-item:active { background: var(--surface2); }
.suggest-plate {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.suggest-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}
.suggest-item .source-badge { margin-top: 6px; }
.suggest-empty {
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 0;
}
.filters select {
  min-width: 0;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--surface2);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}
.filters select[data-filter="vehicle_class"] {
  grid-column: 1 / -1;
}

.btn-filters {
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.08), 0 0 18px rgba(14, 165, 233, 0.08);
}
.btn-filters.has-active {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.16), 0 0 18px rgba(14, 165, 233, 0.18);
}
.btn-filters-ico {
  display: inline-flex;
  opacity: 0.9;
}
.btn-filters-ico svg { display: block; }

.filter-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.filter-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}
.filter-panel-clip {
  overflow: hidden;
  min-height: 0;
}
.filter-panel-inner {
  margin-top: 8px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(30, 41, 59, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35), 0 0 18px rgba(14, 165, 233, 0.12);
  backdrop-filter: blur(10px);
}
.filters-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--surface2);
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.filters-reset:active { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 12px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
}
.btn-primary { background: var(--accent-dim); color: #0f172a; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.btn-filters {
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.08), 0 0 18px rgba(14, 165, 233, 0.08);
}
.btn.btn-filters.has-active {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.16), 0 0 18px rgba(14, 165, 233, 0.18);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--surface2);
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card .plate { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.05em; }
.card .meta { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.source-badge,
.card .source-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: start;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface2);
  margin-top: 8px;
  box-sizing: border-box;
}
.card a.tel {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  margin-top: 8px;
  padding: 8px 0;
}

.list-item {
  padding: 14px;
  border-bottom: 1px solid var(--surface2);
  cursor: pointer;
}
.list-item:active { background: var(--surface2); }

.list-item-vehicle.has-quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  grid-template-areas:
    "main quick"
    "badge quick";
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  overflow: hidden;
}
.list-item-main { grid-area: main; min-width: 0; }
.list-item-vehicle > .source-badge {
  grid-area: badge;
  margin-top: 4px;
  justify-self: start;
  width: fit-content;
}
.list-item-quick {
  grid-area: quick;
  min-width: 0;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.qi-type {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  max-width: 220px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}
.qi-org {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.qi-line {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .list-item-vehicle.has-quick {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "quick"
      "badge";
  }
  .list-item-quick {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
    margin-top: 4px;
  }
  .qi-type,
  .qi-line { max-width: 100%; }
  .qi-org {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
  }
  .qi-org .qi-line + .qi-line::before {
    content: "·";
    margin-right: 8px;
    color: var(--muted);
  }
  .filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .filters select[data-filter="vehicle_class"] {
    grid-column: auto;
  }
}

.login-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  max-width: 400px;
  margin: 0 auto;
}
.login-wrap h1 { text-align: center; margin-bottom: 24px; }
.login-wrap label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.9rem; }
.login-wrap input {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--surface2);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}

/* ===== Login: premium HUD (scoped, fail-safe visible) ===== */
#screen-login {
  position: relative;
  overflow: hidden;
  background: #050810;
  color: #f8fafc;
  isolation: isolate;
  color-scheme: dark;
}
#screen-login .login-wrap {
  position: relative;
  z-index: 2;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 22px 36px;
  justify-content: center;
  gap: 22px;
}
#screen-login .login-wrap h1 {
  margin: 0;
}
.login-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 8px;
}
.login-mark-drop {
  display: block;
  height: clamp(34px, 9vw, 48px);
  width: auto;
  flex: 0 0 auto;
  pointer-events: none;
}
.login-mark-title {
  margin: 0;
  font-family: "Arial Black", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 900;
  font-size: clamp(1.28rem, 6vw, 1.85rem);
  letter-spacing: 0.01em;
  line-height: 0.95;
  white-space: nowrap;
}
.login-mark-poisk { color: #f8fafc; }
.login-mark-mast { color: #0755a1; }
#screen-login .login-wrap label {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}
#screen-login .login-wrap input {
  margin-bottom: 0;
  background-color: rgba(8, 15, 28, 0.72);
  background-image: linear-gradient(90deg, transparent, rgba(186, 230, 253, 0.9), transparent);
  background-size: 38% 1px;
  background-position: -50% 100%;
  background-repeat: no-repeat;
  border: 1px solid rgba(147, 197, 253, 0.18);
  color: #f8fafc;
  border-radius: 10px;
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#screen-login .login-wrap input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22), 0 0 28px rgba(56, 189, 248, 0.14);
}

.login-hud {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.login-hud-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 35%, transparent 80%);
}
.login-hud-glow {
  position: absolute;
  width: 70%;
  height: 46%;
  left: 15%;
  top: 12%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.16), transparent 70%);
}
.login-hud-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 12%;
  top: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(125, 211, 252, 0.06) 40%,
    rgba(186, 230, 253, 0.16) 50%,
    rgba(125, 211, 252, 0.06) 60%,
    transparent
  );
  opacity: 0;
}
.login-hud-reticle {
  position: absolute;
  width: min(320px, 72vw);
  height: min(320px, 72vw);
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(147, 197, 253, 0.07);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(14, 165, 233, 0.04);
  overflow: hidden;
  pointer-events: none;
}
.login-reticle-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0 69%,
    rgba(56, 189, 248, 0.05) 82%,
    rgba(56, 189, 248, 0.16) 92%,
    rgba(186, 230, 253, 0.48) 99%,
    transparent 100%
  );
}
.login-reticle-blip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f0f9ff;
  box-shadow: 0 0 5px rgba(186, 230, 253, 0.75), 0 0 10px rgba(56, 189, 248, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.45);
}
.login-reticle-blip.is-on {
  animation: loginReticleBlip 0.8s ease-out forwards;
}
.login-hud-reticle::before,
.login-hud-reticle::after {
  content: "";
  position: absolute;
  background: rgba(147, 197, 253, 0.08);
}
.login-hud-reticle::before {
  width: 1px;
  height: 18%;
  left: 50%;
  top: 41%;
}
.login-hud-reticle::after {
  height: 1px;
  width: 18%;
  top: 50%;
  left: 41%;
}
.login-hud-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}
.login-hud-dot.d1 { top: 8%; left: 10%; }
.login-hud-dot.d2 { bottom: 8%; right: 12%; }
.login-hud-dot.d3 { top: 10%; right: 16%; }
.login-hud-chip {
  position: absolute;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: rgba(186, 230, 253, 0.48);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 2px 5px;
  border: 1px solid transparent;
  border-radius: 3px;
}
.login-hud-chip[data-event]::after {
  content: attr(data-event);
  position: absolute;
  left: 0;
  top: calc(100% + 3px);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  padding: 1px 5px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 2px;
  color: rgba(224, 242, 254, 0.82);
  opacity: 0;
  pointer-events: none;
}
.login-telemetry {
  display: none;
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  pointer-events: none;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.34);
  line-height: 1.55;
}
.login-telemetry p { margin: 0; }
.login-telemetry[data-state="ok"] { color: rgba(186, 230, 253, 0.48); }
.login-telemetry[data-state="down"] { color: rgba(253, 164, 175, 0.4); }
.login-hud-chip.c1 { top: 4.5%; left: 5%; }
.login-hud-chip.c2 { top: 4.5%; right: 5%; }
.login-hud-chip.c3 { bottom: 4.5%; left: 5%; overflow: hidden; }
.login-hud-chip.c4 { bottom: 4.5%; right: 5%; overflow: hidden; }
.login-hud-rot {
  display: inline-block;
  min-width: 14ch;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.login-hud-rot.is-out {
  opacity: 0;
  transform: translateY(-5px);
}
.login-hud-chip.c5 { top: 9%; left: 5%; }
.login-hud-chip.c6 { top: 9%; right: 5%; }

.login-brand {
  position: relative;
  text-align: center;
}
.login-brand > *:not(.login-arcs) {
  position: relative;
  z-index: 1;
}
.login-arcs {
  position: absolute;
  left: 50%;
  top: 38px;
  width: 228px;
  height: 228px;
  transform: translate(-50%, -46%);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: 50%;
}
.login-arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
}
.login-arc-a {
  border-top-color: rgba(147, 197, 253, 0.2);
  border-right-color: rgba(147, 197, 253, 0.1);
}
.login-arc-b {
  inset: 16px;
  border-bottom-color: rgba(125, 211, 252, 0.16);
  border-left-color: rgba(125, 211, 252, 0.08);
}
.login-kicker {
  margin: 0 0 8px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #67e8f9;
  opacity: 0.7;
}
.login-brand-meta {
  display: none;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  text-align: left;
}
.login-brand-meta li {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 0.78rem;
  color: #93c5fd;
  letter-spacing: 0.04em;
}
.login-brand-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: #38bdf8;
}
.login-card-kicker {
  margin: 0 0 16px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
  opacity: 0.8;
}
.login-card-kicker.is-granted {
  color: #99f6e4;
  opacity: 1;
}
.login-card-kicker.is-granted span {
  display: block;
  margin-top: 3px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: #5eead4;
  opacity: 0.8;
}
.login-tagline {
  margin: 8px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3fc;
  opacity: 0.78;
}
.login-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.login-status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.4);
}
.login-status-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.login-status[data-state="ok"] { color: #bae6fd; }
.login-status[data-state="ok"] .login-status-dot {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.55);
}
.login-status[data-state="down"] { color: #fda4af; }
.login-status[data-state="down"] .login-status-dot {
  background: #fb7185;
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.45);
}

.login-card {
  position: relative;
  width: 100%;
  padding: 22px 20px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(8, 14, 26, 0.78));
  border: 1px solid rgba(186, 230, 253, 0.22);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 48px rgba(14, 165, 233, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 1;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.22s ease, transform 0.22s ease;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(56, 189, 248, 0.04);
}
.login-card .login-pass-row + .login-err,
.login-card label + input { margin-bottom: 14px; }
.login-pass-row {
  position: relative;
  margin-bottom: 14px;
}
.login-pass-row input { position: relative; z-index: 1; padding-right: 108px; }
.login-pass-toggle {
  position: absolute;
  z-index: 2;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #7dd3fc;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.login-pass-toggle:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.9);
  outline-offset: 2px;
  border-radius: 6px;
}
.login-err {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.35;
}
.login-err strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
#screen-login .login-submit {
  margin-top: 2px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%);
  color: #f8fafc;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.28);
}
#screen-login .login-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-130%);
  pointer-events: none;
}
#screen-login .login-submit:active { transform: scale(0.985); }
#screen-login .login-submit:disabled { opacity: 0.85; }
#screen-login .login-submit.is-checking {
  color: #e0f2fe;
  background: #0b2840;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
}
#screen-login .login-submit.is-checking::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(186, 230, 253, 0.28), transparent);
  transform: translateX(-100%);
  animation: loginBtnSweep 1.05s ease-in-out infinite;
}
#screen-login .login-submit.is-success {
  background: linear-gradient(180deg, #5eead4 0%, #0d9488 100%);
  color: #042f2e;
}
.login-card.is-error {
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(251, 113, 133, 0.35),
    0 0 28px rgba(244, 63, 94, 0.12);
}
.login-card.is-success {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(45, 212, 191, 0.28),
    0 0 28px rgba(45, 212, 191, 0.16);
}
.login-card.is-success::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(94, 234, 212, 0.55);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
}
.login-card.is-leaving {
  opacity: 0;
  transform: translateY(8px) scale(0.99);
}

@keyframes loginBtnSweep {
  to { transform: translateX(100%); }
}
@keyframes loginScanSweep {
  0% { transform: translateY(-20%); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(720%); opacity: 0; }
}
@keyframes loginChipGlow {
  0%, 70%, 100% { color: rgba(186, 230, 253, 0.38); }
  78% { color: rgba(224, 242, 254, 0.82); }
}
@keyframes loginDotDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(6px, -10px, 0); }
}
@keyframes loginHealthCore {
  0%, 100% { box-shadow: 0 0 5px rgba(52, 211, 153, 0.4); }
  50% { box-shadow: 0 0 9px rgba(52, 211, 153, 0.7); }
}
@keyframes loginHealthHalo {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(2.35); opacity: 0; }
}
@keyframes loginEnterBrand {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loginEnterCard {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loginFieldImpulse {
  from { background-position: -45% 100%; }
  to { background-position: 145% 100%; }
}
@keyframes loginBtnSheen {
  0%, 70% { transform: translateX(-130%); opacity: 0; }
  76% { opacity: 0.55; }
  88% { transform: translateX(130%); opacity: 0; }
  100% { transform: translateX(130%); opacity: 0; }
}
@keyframes loginArcSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes loginArcSweep {
  to { transform: rotate(360deg); }
}
@keyframes loginReticleBlip {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  56% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
}
@keyframes loginChipEvent {
  0%, 88%, 96%, 100% { border-color: transparent; background-color: transparent; }
  90%, 94% { border-color: rgba(125, 211, 252, 0.42); background-color: rgba(14, 165, 233, 0.07); }
}
@keyframes loginChipEventLabel {
  0%, 88%, 96%, 100% { opacity: 0; transform: translateY(2px); }
  90%, 94% { opacity: 1; transform: translateY(0); }
}
@keyframes loginSuccessPulse {
  0% { opacity: 0; box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
  40% { opacity: 1; box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.1); }
  100% { opacity: 0.2; box-shadow: 0 0 0 7px rgba(45, 212, 191, 0); }
}
@keyframes loginReticleDrift {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .login-hud-scan { animation: loginScanSweep 7.5s ease-in-out infinite; }
  .login-hud-chip { animation: loginChipGlow 7.5s ease-in-out infinite; }
  .login-hud-chip.c2 { animation-delay: 0.8s; }
  .login-hud-chip.c3 { animation-delay: 1.6s; }
  .login-hud-chip.c4 { animation-delay: 2.2s; }
  .login-hud-chip.c5 { animation-delay: 3s; }
  .login-hud-chip.c6 { animation-delay: 4s; }
  .login-hud-chip[data-event="LOCKED"] { animation: loginChipGlow 7.5s ease-in-out infinite, loginChipEvent 16s ease-in-out infinite; }
  .login-hud-chip[data-event="MATCH"] { animation: loginChipGlow 7.5s ease-in-out 0.8s infinite, loginChipEvent 16s ease-in-out 5.4s infinite; }
  .login-hud-chip[data-event="VERIFIED"] { animation: loginChipGlow 7.5s ease-in-out 3s infinite, loginChipEvent 16s ease-in-out 10.8s infinite; }
  .login-hud-chip[data-event]::after { animation: loginChipEventLabel 16s ease-in-out infinite; }
  .login-hud-chip[data-event="MATCH"]::after { animation-delay: 5.4s; }
  .login-hud-chip[data-event="VERIFIED"]::after { animation-delay: 10.8s; }
  .login-hud-dot.d1 { animation: loginDotDrift 11s ease-in-out infinite; }
  .login-hud-dot.d2 { animation: loginDotDrift 14s ease-in-out infinite 1s; }
  .login-hud-dot.d3 { animation: loginDotDrift 12s ease-in-out infinite 2s; }
  .login-hud-reticle { animation: loginReticleDrift 10s ease-in-out infinite; }
  .login-arc-a { animation: loginArcSpin 56s linear infinite; }
  .login-arc-b { animation: loginArcSpin 78s linear infinite reverse; }
  .login-reticle-sweep { animation: loginArcSweep 1.7s linear infinite; }
  .login-status[data-state="ok"] .login-status-dot {
    animation: loginHealthCore 1.9s ease-in-out infinite;
  }
  .login-status[data-state="ok"] .login-status-dot::after {
    box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.45);
    animation: loginHealthHalo 1.9s ease-out infinite;
  }
  #screen-login .login-brand {
    animation: loginEnterBrand 0.65s ease;
  }
  #screen-login .login-card {
    animation: loginEnterCard 0.7s ease;
  }
  #screen-login .login-wrap input:focus {
    animation: loginFieldImpulse 0.55s ease-out 1;
  }
  #screen-login .login-submit:not(.is-checking):not(.is-success)::before {
    animation: loginBtnSheen 5.8s ease-in-out infinite;
  }
  .login-card.is-success::after {
    animation: loginSuccessPulse 0.32s ease-out 1;
  }
}

@media (min-width: 900px) {
  #screen-login .login-wrap {
    max-width: 1040px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(360px, 420px);
    align-items: center;
    gap: 80px;
    padding: 48px 72px;
  }
  #screen-login .login-brand { text-align: left; }
  #screen-login .login-mark { justify-content: flex-start; }
  #screen-login .login-mark-drop { height: 54px; }
  #screen-login .login-wrap h1,
  #screen-login .login-mark-title {
    font-size: 2.2rem;
    letter-spacing: 0.015em;
  }
  .login-tagline { font-size: 0.74rem; }
  .login-brand-meta { display: block; }
  .login-hud-chip { font-size: 0.7rem; }
  .login-hud-reticle {
    left: 22%;
    top: 48%;
    width: 420px;
    height: 420px;
  }
  .login-hud-chip.c5 { top: 10%; left: 5%; }
  .login-hud-chip.c6 { top: 10%; right: 5%; }
  .login-arcs {
    left: 0;
    transform: translate(-16%, -46%);
  }
  .login-telemetry {
    display: block;
    left: 28px;
    bottom: 78px;
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #screen-login .login-submit:active { transform: none; }
  #screen-login .login-submit.is-checking::after { animation: none; opacity: 0.25; }
  #screen-login .login-submit::before { display: none; }
  .login-card.is-leaving { transform: none; }
  .login-hud-chip[data-event]::after { display: none; }
  .login-hud-rot,
  .login-hud-rot.is-out {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .login-reticle-sweep { animation: none; opacity: 0.22; }
  .login-reticle-blip,
  .login-reticle-blip.is-on { animation: none; opacity: 0; }
  .filter-panel {
    transition: none;
  }
}

.msg-empty { text-align: center; color: var(--muted); padding: 32px 16px; }
.msg-error { color: var(--danger); padding: 12px; text-align: center; }

.admin-nav { display: grid; gap: 8px; }
.admin-nav .btn { margin-top: 0; text-align: left; justify-content: flex-start; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.data th, table.data td {
  border: 1px solid var(--surface2);
  padding: 8px;
  text-align: left;
}
table.data input, table.data select {
  width: 100%;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--surface2);
  color: var(--text);
  border-radius: 4px;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--surface2);
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}
.bottom-bar .btn { flex: 1; margin-top: 0; font-size: 0.9rem; padding: 10px; min-height: 44px; }

.hidden { display: none !important; }

.ref-section h3 {
  margin: 20px 0 4px;
  font-size: 1rem;
  font-weight: 600;
}
.ref-section:first-child h3 { margin-top: 0; }
.ref-section .btn { margin-top: 8px; }

.ref-card { margin-top: 8px; }
.ref-card .ref-title {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 1rem;
}
.ref-card p { margin: 0; }
.ref-card .field-row {
  margin-bottom: 10px;
}
.ref-card .field-row label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.ref-card .field-row input,
.ref-card .field-row select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--surface2);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}
.ref-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.btn-compact {
  flex: 1;
  margin-top: 0;
  min-height: 44px;
  font-size: 0.9rem;
  padding: 10px;
}
.ref-empty { padding: 16px; font-size: 0.9rem; }

.ref-card .field-readonly { margin-bottom: 10px; }
.ref-card .field-check { margin-bottom: 10px; }
.ref-card .check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--text);
  min-height: 44px;
  cursor: pointer;
}
.ref-card .check-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-dim);
}
.field-hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.vcard {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--surface2);
  padding: 16px;
  margin-top: 12px;
}
.vcard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.vcard-head .plate {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}
.vcard-model-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: right;
  max-width: 55%;
  line-height: 1.2;
}
.vcard-column-chip {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
}
.vcard-column-chip.small { font-size: 0.75rem; margin-top: 0; }
.vcard-section { margin-top: 16px; }
.vcard-section-title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vcard-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface2);
  font-size: 0.9rem;
}
.vcard-row:last-child { border-bottom: none; }
.vcard-label { color: var(--muted); flex: 0 0 42%; }
.vcard-value { font-weight: 600; text-align: right; word-break: break-word; }
.vcard-empty-main {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.vcard-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.vcard-actions .btn { flex: 1; margin-top: 0; font-size: 0.85rem; padding: 10px; min-height: 44px; }
.service-block {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0f2a24 0%, #132f35 100%);
  border: 1px solid #1e4d44;
}
.service-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.service-block-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5eead4;
}
.service-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #ca8a04;
  color: #fde047;
}
.service-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.service-meta {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.35;
}
.service-place {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #e2e8f0;
}
.service-place-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 2px;
}
.service-source { margin-top: 10px; background: rgba(255,255,255,0.08); }
.vcard-contacts {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--surface2);
}
.vcard-contacts-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vcard-contact-name {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}
.vcard-contact-sub { color: var(--muted); font-size: 0.9rem; }

.act-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.act-kpis-sub {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}
.act-kpi {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
}
.act-kpi-n {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}
.act-kpi-l {
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.25;
}
.act-top h3,
.act-events-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.act-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface2);
  font-size: 0.9rem;
}
.act-top-row:last-child { border-bottom: none; }
.act-role {
  display: inline-flex;
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface2);
  color: var(--accent);
}
.act-user {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.act-user-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.act-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.act-stats div {
  text-align: center;
}
.act-stats span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.act-stats b {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
}
.act-times {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  display: grid;
  gap: 4px;
}
.act-event {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface2);
  font-size: 0.9rem;
}
.act-event:last-child { border-bottom: none; }
.act-event-time { color: var(--muted); flex: 0 0 auto; }
@media (max-width: 560px) {
  .act-kpis,
  .act-kpis-sub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Post-login premium workspace (does NOT style #screen-login) ===== */
body.pm-app {
  --pm-bg: #1a2b46;
  --pm-bg-deep: #17263e;
  --pm-header: #213653;
  --pm-panel: #263c5b;
  --pm-panel-secondary: #203451;
  --pm-text: #f7faff;
  --pm-muted: #adc2dc;
  --pm-cyan: #35c5ff;
  --pm-cyan-dark: #129edc;
  --pm-green: #55e5c5;
  --pm-amber: #ffc857;
  --pm-border: rgba(142, 187, 226, 0.24);
  --bg: var(--pm-bg);
  --surface: var(--pm-panel);
  --surface2: rgba(142, 187, 226, 0.18);
  --text: var(--pm-text);
  --muted: var(--pm-muted);
  --accent: var(--pm-cyan);
  --accent-dim: var(--pm-cyan-dark);
  --ok: var(--pm-green);
  --radius: 14px;
  background:
    linear-gradient(180deg, var(--pm-bg) 0%, var(--pm-bg-deep) 100%);
  background-attachment: fixed;
  color: var(--pm-text);
}
body.pm-app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(173, 194, 220, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 194, 220, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
}
body.pm-app #app,
body.pm-app .screen.active {
  position: relative;
  z-index: 1;
}
body.pm-app .main {
  max-width: 1080px;
  padding: 20px 20px 96px;
}
body.pm-app .btn-primary {
  background: linear-gradient(180deg, #3dceff 0%, var(--pm-cyan-dark) 100%);
  color: #062033;
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(18, 158, 220, 0.22);
}
body.pm-app .btn-outline {
  border-color: var(--pm-border);
  color: var(--pm-cyan);
  background: rgba(32, 52, 81, 0.55);
}
body.pm-app .btn-outline:hover,
body.pm-app .btn-outline:focus-visible {
  border-color: rgba(53, 197, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(53, 197, 255, 0.16);
}
body.pm-app .card {
  background: var(--pm-panel);
  border: 1px solid var(--pm-border);
  box-shadow: 0 10px 28px rgba(10, 20, 36, 0.28);
}

.pm-chrome-top {
  position: sticky;
  top: 0;
  z-index: 30;
}
.pm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(33, 54, 83, 0.92);
  border-bottom: 1px solid var(--pm-border);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}
.pm-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--pm-text);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px 6px;
  margin: -4px -6px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.pm-brand:hover {
  box-shadow: 0 0 0 1px rgba(104, 221, 181, 0.28), 0 0 12px rgba(53, 197, 255, 0.22);
}
.pm-brand:focus {
  outline: none;
}
.pm-brand:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(104, 221, 181, 0.9), 0 0 14px rgba(104, 221, 181, 0.35);
}
.pm-brand:active {
  transform: scale(0.98);
}
.pm-brand-mark {
  height: 28px;
  width: auto;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.pm-brand-title {
  font-family: "Arial Black", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1;
  user-select: none;
}
.pm-brand-poisk { color: #f8fafc; }
.pm-brand-mast { color: #35c5ff; }
@media (prefers-reduced-motion: reduce) {
  .pm-brand {
    transition: none;
  }
  .pm-brand:active {
    transform: none;
  }
}
.pm-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pm-sys {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pm-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pm-admin-strip {
  display: block;
  background: rgba(22, 38, 60, 0.96);
  border-bottom: 1px solid rgba(142, 187, 226, 0.22);
  box-shadow: inset 0 1px 0 rgba(104, 221, 181, 0.08);
  min-height: 28px;
  max-width: 100%;
  overflow: hidden;
}
.pm-admin-strip-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 18px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}
.pm-admin-strip-scroll::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}
.pm-admin-strip-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7b8798;
  box-shadow: none;
}
.pm-admin-strip[data-state="ok"] .pm-admin-strip-dot {
  background: var(--pm-green, #55e5c5);
  box-shadow:
    0 0 6px rgba(85, 229, 197, 0.5),
    0 0 12px rgba(85, 229, 197, 0.18);
}
.pm-admin-strip[data-state="unknown"] .pm-admin-strip-dot {
  background: #8a93a3;
  box-shadow: none;
}
.pm-admin-strip-text {
  color: var(--pm-muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.pm-admin-strip-short { display: none; }
.pm-admin-strip-long { display: inline; }
.pm-sys-dot {
  position: relative;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pm-green);
  box-shadow:
    0 0 6px rgba(85, 229, 197, 0.55),
    0 0 14px rgba(85, 229, 197, 0.22);
}
.pm-sys[data-state="ok"] .pm-sys-dot::before,
.pm-sys[data-state="ok"] .pm-sys-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(85, 229, 197, 0.42);
  pointer-events: none;
}
.pm-sys[data-state="ok"] .pm-sys-dot::after {
  animation: pm-sys-ring 2.6s ease-out infinite;
}
.pm-sys[data-state="ok"] .pm-sys-dot::before {
  animation: pm-sys-ring 2.6s ease-out infinite 1.3s;
}
@keyframes pm-sys-ring {
  0% {
    transform: scale(0.82);
    opacity: 0.62;
  }
  72%, 100% {
    transform: scale(1.75);
    opacity: 0;
  }
}
@keyframes pm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(85, 229, 197, 0.45); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(85, 229, 197, 0); opacity: 0.85; }
}
.pm-user-menu { position: relative; }
.pm-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--pm-border);
  background: rgba(32, 52, 81, 0.7);
  color: var(--pm-text);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.pm-user-btn:hover {
  border-color: rgba(53, 197, 255, 0.42);
  background: rgba(38, 62, 96, 0.78);
  box-shadow:
    0 0 0 1px rgba(104, 221, 181, 0.2),
    0 0 10px rgba(53, 197, 255, 0.16);
}
.pm-user-btn:focus {
  outline: none;
}
.pm-user-btn:focus-visible {
  outline: none;
  border-color: rgba(53, 197, 255, 0.5);
  box-shadow:
    0 0 0 2px rgba(104, 221, 181, 0.72),
    0 0 12px rgba(53, 197, 255, 0.24);
}
.pm-user-btn[aria-expanded="true"] {
  border-color: rgba(53, 197, 255, 0.36);
  box-shadow:
    0 0 0 1px rgba(104, 221, 181, 0.16),
    0 0 8px rgba(53, 197, 255, 0.12);
}
.pm-user-btn:active {
  background: rgba(34, 56, 88, 0.82);
}
@media (hover: none) {
  .pm-user-btn:hover {
    border-color: var(--pm-border);
    background: rgba(32, 52, 81, 0.7);
    box-shadow: none;
  }
  .pm-user-btn[aria-expanded="true"]:hover {
    border-color: rgba(53, 197, 255, 0.36);
    background: rgba(32, 52, 81, 0.7);
    box-shadow:
      0 0 0 1px rgba(104, 221, 181, 0.16),
      0 0 8px rgba(53, 197, 255, 0.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pm-user-btn {
    transition: none;
  }
}
.pm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #2b8ec8, #1a5f8f);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.pm-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-user-caret { color: var(--pm-muted); font-size: 0.75rem; }
.pm-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  background: var(--pm-panel);
  border: 1px solid var(--pm-border);
  box-shadow: 0 18px 40px rgba(8, 16, 30, 0.45);
  display: none;
  z-index: 40;
}
.pm-user-dropdown.open { display: grid; gap: 4px; }
.pm-user-dropdown button {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--pm-text);
  padding: 12px 12px;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}
.pm-user-dropdown button:hover,
.pm-user-dropdown button:focus-visible {
  background: rgba(53, 197, 255, 0.1);
  outline: none;
}

.pm-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 0;
}

.pm-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(53, 197, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(53, 197, 255, 0.08) 0%, transparent 42%),
    rgba(10, 32, 55, 0.62);
  color: #b8e9ff;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow:
    inset 0 1px 0 rgba(180, 230, 255, 0.1),
    0 1px 0 rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.12s ease,
    box-shadow 0.16s ease;
}
.pm-back-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #35c5ff;
  opacity: 0.95;
}
.pm-back-ico .pm-ico {
  display: block;
}
.pm-back-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-back:hover {
  border-color: rgba(53, 197, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(53, 197, 255, 0.12) 0%, transparent 48%),
    rgba(14, 40, 68, 0.72);
  color: #d7f4ff;
}
.pm-back:active {
  transform: translateY(1px);
  border-color: rgba(53, 197, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(180, 230, 255, 0.06);
}
.pm-back:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(180, 230, 255, 0.1),
    0 0 0 3px rgba(53, 197, 255, 0.28);
}
@media (hover: none) {
  .pm-back:hover {
    border-color: rgba(53, 197, 255, 0.38);
    background:
      linear-gradient(180deg, rgba(53, 197, 255, 0.08) 0%, transparent 42%),
      rgba(10, 32, 55, 0.62);
    color: #b8e9ff;
  }
}

.pm-welcome {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(53, 197, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.pm-welcome.show { opacity: 1; }
.pm-welcome.dock {
  place-items: start end;
  padding: 18px 22px 0 0;
  background: transparent;
}
.pm-welcome-card {
  text-align: center;
  transform: translateY(12px) scale(1);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  opacity: 0;
}
.pm-welcome.show .pm-welcome-card { opacity: 1; transform: translateY(0) scale(1); }
.pm-welcome.dock .pm-welcome-card {
  transform: translate(0, 0) scale(0.72);
  text-align: right;
  opacity: 0.92;
}
.pm-welcome.hide .pm-welcome-card { opacity: 0; transform: translate(24px, -8px) scale(0.66); }
.pm-welcome-hello {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--pm-text);
}
.pm-welcome-sub {
  margin: 10px 0 0;
  color: var(--pm-muted);
  font-size: 1rem;
}
body.pm-reduced .pm-welcome,
body.pm-reduced .pm-welcome-card {
  transition: none !important;
  animation: none !important;
}
body.pm-reduced .pm-search-submit-label {
  background: none;
  -webkit-text-fill-color: #062033;
  color: #062033;
}
body.pm-reduced .pm-search-submit::after {
  animation: none !important;
  opacity: 0 !important;
}

.pm-hero-title {
  margin: 8px 0 6px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pm-hero-sub {
  margin: 0 0 18px;
  color: var(--pm-muted);
  font-size: 0.98rem;
}
body.pm-app .search-hero input {
  background: rgba(32, 52, 81, 0.85);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(8, 18, 34, 0.28);
  font-size: 1.12rem;
}
body.pm-app .search-hero input:focus {
  border-color: rgba(53, 197, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(53, 197, 255, 0.18), 0 12px 30px rgba(8, 18, 34, 0.28);
}

.pm-search-control {
  position: relative;
  display: block;
}
.pm-search-shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  background: rgba(32, 52, 81, 0.85);
  box-shadow: 0 12px 30px rgba(8, 18, 34, 0.28);
  overflow: hidden;
}
.pm-search-shell:focus-within {
  border-color: rgba(104, 221, 181, 0.55);
  box-shadow: 0 0 0 3px rgba(104, 221, 181, 0.22), 0 12px 30px rgba(8, 18, 34, 0.28);
}
body.pm-app .pm-search-shell #q,
body.pm-app .search-hero .pm-search-shell input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 14px 8px 14px 18px !important;
  font-size: 1.12rem;
  color: #f4f8ff;
  caret-color: #68ddb5;
}
body.pm-app .pm-search-shell #q::placeholder,
body.pm-app .search-hero .pm-search-shell input::placeholder {
  color: rgba(104, 221, 181, 0.78);
  opacity: 1;
}
.pm-search-hint {
  margin: 6px 4px 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(150, 205, 230, 0.72);
}
.pm-search-hint.hidden {
  display: none;
}
.pm-search-clear {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--pm-muted);
  cursor: pointer;
  padding: 0;
}
.pm-search-clear.hidden {
  display: none;
}
.pm-search-clear:hover {
  color: var(--pm-text);
}
.pm-search-clear:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(53, 197, 255, 0.28);
}
.pm-search-clear-ico {
  display: inline-flex;
}
.pm-search-submit {
  position: relative;
  overflow: hidden;
  flex: 0 0 128px;
  width: 128px;
  min-width: 128px;
  height: auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-left: 1px solid rgba(142, 187, 226, 0.18);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(53, 197, 255, 0.95) 0%, rgba(18, 158, 220, 0.95) 100%);
  color: #062033;
  cursor: pointer;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: filter 0.14s ease, opacity 0.14s ease, background 0.14s ease;
}
.pm-search-submit::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -55%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: translateX(0);
  opacity: 0;
  pointer-events: none;
}
.pm-search-submit:hover {
  filter: brightness(1.05);
}
.pm-search-submit:active {
  filter: brightness(0.96);
}
.pm-search-submit:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(6, 32, 51, 0.35);
}
.pm-search-submit:disabled {
  opacity: 0.85;
  cursor: wait;
}
.pm-search-submit-label {
  position: relative;
  z-index: 1;
  line-height: 1;
  color: #062033;
  background-image: linear-gradient(
    90deg,
    #062033 0%,
    #062033 36%,
    #8fe9ff 47%,
    #e8fbff 50%,
    #8fe9ff 53%,
    #062033 64%,
    #062033 100%
  );
  background-size: 260% 100%;
  background-position: 160% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.pm-app:not(.pm-reduced) .pm-search-submit:not(:disabled):not(.is-busy) .pm-search-submit-label {
  animation: pm-search-label-shine 4.2s ease-in-out infinite;
}
body.pm-app:not(.pm-reduced) .pm-search-submit:not(:disabled):not(.is-busy)::after {
  animation: pm-search-btn-sheen 4.2s ease-in-out infinite;
}
body.pm-app:not(.pm-reduced) .pm-search-submit:not(:disabled):not(.is-busy):hover .pm-search-submit-label {
  animation: pm-search-label-shine-quick 0.88s ease-in-out;
}
body.pm-app:not(.pm-reduced) .pm-search-submit:not(:disabled):not(.is-busy):hover::after {
  animation: pm-search-btn-sheen-quick 0.88s ease-in-out;
}
.pm-search-submit:disabled .pm-search-submit-label,
.pm-search-submit.is-busy .pm-search-submit-label {
  animation: none !important;
  background: none;
  -webkit-text-fill-color: #062033;
  color: #062033;
}
.pm-search-submit:disabled::after,
.pm-search-submit.is-busy::after {
  animation: none !important;
  opacity: 0 !important;
}
@keyframes pm-search-label-shine {
  0%, 22%, 100% {
    background-position: 160% center;
  }
  19% {
    background-position: -60% center;
  }
}
@keyframes pm-search-label-shine-quick {
  0% {
    background-position: 160% center;
  }
  100% {
    background-position: -60% center;
  }
}
@keyframes pm-search-btn-sheen {
  0%, 22%, 100% {
    transform: translateX(0);
    opacity: 0;
  }
  19% {
    transform: translateX(320%);
    opacity: 1;
  }
}
@keyframes pm-search-btn-sheen-quick {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateX(320%);
    opacity: 0;
  }
}
.pm-search-submit-ico {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.pm-search-submit.is-busy .pm-search-submit-ico .pm-ico {
  animation: pm-spin 0.8s linear infinite;
}
@keyframes pm-spin {
  to { transform: rotate(360deg); }
}
.pm-search-control .suggest-dropdown {
  left: 0;
  right: 0;
}

/* Employee autocomplete — scoped to employee search screen */
.emp-search-control {
  position: relative;
  z-index: 25;
}
.emp-suggest-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: min(320px, 45vh);
  overflow-x: hidden;
  overflow-y: auto;
  background: #1a2b46;
  border: 1px solid rgba(104, 221, 181, 0.22);
  border-radius: 10px;
  z-index: 40;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.emp-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  min-height: 48px;
  cursor: pointer;
  border: none;
  border-bottom: 1px solid rgba(184, 203, 227, 0.12);
  background: transparent;
  color: #f4f8ff;
  box-sizing: border-box;
}
.emp-suggest-item:last-of-type { border-bottom: none; }
.emp-suggest-item:hover,
.emp-suggest-item:focus-visible,
.emp-suggest-item.is-active {
  background: rgba(104, 221, 181, 0.1);
  box-shadow: inset 0 0 0 1px rgba(104, 221, 181, 0.55);
  outline: none;
}
.emp-suggest-name {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  color: #f4f8ff;
  line-height: 1.25;
  word-break: break-word;
}
.emp-suggest-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: #9eb6d4;
  line-height: 1.3;
  word-break: break-word;
}
.emp-suggest-mark {
  background: transparent;
  color: #68ddb5;
  font-weight: 800;
  padding: 0;
}
.emp-suggest-status {
  padding: 14px;
  color: #b8cbe3;
  font-size: 0.9rem;
}
.emp-suggest-more {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(184, 203, 227, 0.16);
  background: rgba(53, 197, 255, 0.06);
  color: #68ddb5;
  padding: 12px 14px;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
}
.emp-suggest-more:hover,
.emp-suggest-more:focus-visible {
  background: rgba(104, 221, 181, 0.12);
  outline: none;
}
@media (max-width: 430px) {
  .emp-suggest-dropdown {
    max-height: min(260px, 38vh);
  }
}
@media (prefers-reduced-motion: reduce) {
  .emp-suggest-item,
  .emp-suggest-more {
    transition: none;
  }
}

.pm-ico {
  display: block;
  flex: 0 0 auto;
}

.pm-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
  align-items: center;
  justify-content: space-between;
}
.pm-mode-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.pm-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--pm-border);
  background: rgba(32, 52, 81, 0.72);
  color: var(--pm-muted);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1;
  box-sizing: border-box;
}
.pm-clear-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid var(--pm-border);
  background: transparent;
  color: var(--pm-muted);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1;
  box-sizing: border-box;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.pm-clear-form.hidden {
  display: none;
}
.pm-clear-form-ico {
  display: inline-flex;
  color: rgba(173, 194, 220, 0.85);
}
.pm-clear-form:hover {
  background: rgba(38, 60, 91, 0.55);
  border-color: rgba(142, 187, 226, 0.36);
  color: var(--pm-text);
}
.pm-clear-form:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 197, 255, 0.22);
}
.pm-mode-ico {
  display: inline-flex;
  color: rgba(53, 197, 255, 0.78);
}
.pm-mode.is-active {
  color: var(--pm-text);
  border-color: rgba(53, 197, 255, 0.48);
  background: rgba(53, 197, 255, 0.12);
}
.pm-mode.is-active .pm-mode-ico {
  color: var(--pm-cyan);
}
.pm-mode:hover {
  border-color: rgba(53, 197, 255, 0.38);
  background: rgba(38, 60, 91, 0.9);
}
.pm-mode:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 197, 255, 0.22);
}
body.pm-app .btn-filters {
  margin-top: 0;
  border-color: var(--pm-border);
  color: var(--pm-muted);
  letter-spacing: normal;
  text-transform: none;
  font-size: 0.88rem;
  box-shadow: none;
}
body.pm-app .btn-filters.has-active {
  border-color: rgba(53, 197, 255, 0.48);
  color: var(--pm-text);
  box-shadow: none;
  background: rgba(53, 197, 255, 0.12);
}
.pm-mode.btn-filters {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--pm-border);
  background: rgba(32, 52, 81, 0.72);
  color: var(--pm-text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  width: auto;
  flex: 0 1 auto;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.pm-btn-secondary .pm-btn-ico {
  color: rgba(53, 197, 255, 0.82);
  display: inline-flex;
}
.pm-btn-secondary:hover {
  border-color: rgba(53, 197, 255, 0.42);
  background: rgba(38, 60, 91, 0.95);
}
.pm-btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 197, 255, 0.22);
}
.pm-btn.is-copied {
  border-color: rgba(85, 229, 197, 0.5);
  color: var(--pm-green);
  background: rgba(85, 229, 197, 0.1);
}
.pm-btn.is-copied .pm-btn-ico {
  color: var(--pm-green);
}

.pm-icon-btn {
  min-width: 36px;
  min-height: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--pm-border);
  background: rgba(32, 52, 81, 0.72);
  color: var(--pm-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.pm-icon-btn:hover {
  border-color: rgba(53, 197, 255, 0.42);
  background: rgba(38, 60, 91, 0.95);
}
.pm-icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 197, 255, 0.22);
}
.pm-icon-btn.is-copied {
  border-color: rgba(85, 229, 197, 0.5);
  color: var(--pm-green);
  background: rgba(85, 229, 197, 0.1);
}
.pm-icon-btn .pm-btn-ico {
  display: inline-flex;
}

.list-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.pm-result-arrow {
  color: var(--pm-cyan);
  opacity: 0.75;
  display: inline-flex;
}

body.pm-app .list-item-vehicle {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  border-color: var(--pm-border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: none;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
body.pm-app .list-item-vehicle .list-item-main {
  grid-area: auto;
  min-width: 0;
}
body.pm-app .list-item-vehicle .list-item-side {
  grid-area: auto;
  justify-self: end;
}
body.pm-app .list-item-vehicle .plate {
  color: var(--pm-text);
  font-size: 1.2rem;
}
body.pm-app .list-item-vehicle .pm-hl {
  color: var(--pm-cyan);
}
body.pm-app .list-item-vehicle:hover,
body.pm-app .list-item-vehicle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(53, 197, 255, 0.42);
  box-shadow: 0 14px 28px rgba(8, 18, 34, 0.35);
  outline: none;
}
.pm-hl {
  color: var(--pm-cyan);
  font-weight: 700;
}
.pm-result-line {
  color: var(--pm-muted);
  font-size: 0.86rem;
  margin-top: 4px;
}
.pm-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--pm-border);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pm-text);
  white-space: nowrap;
}
.pm-status-chip.ok { border-color: rgba(85, 229, 197, 0.45); color: var(--pm-green); }
.pm-status-chip.out { border-color: rgba(255, 200, 87, 0.4); color: var(--pm-amber); }
.pm-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
body.pm-app:not(.pm-reduced) .pm-status-chip.ok .pm-status-dot {
  animation: pm-pulse 2.6s ease-in-out infinite;
}

.vcard-premium {
  animation: pm-card-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pm-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.vcard-passport {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.vcard-passport-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  word-break: break-word;
}
.vcard-passport-sub {
  margin: 8px 0 0;
  color: var(--pm-muted);
  font-size: 1.02rem;
}
.vcard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.vcard-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--pm-border);
  background: rgba(32, 52, 81, 0.65);
  color: var(--pm-muted);
  font-size: 0.82rem;
}
.vcard-household-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(53, 197, 255, 0.45);
  background: linear-gradient(135deg, rgba(53, 197, 255, 0.18), rgba(26, 43, 70, 0.9));
  color: #9fe6ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.vcard-source-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  max-width: 100%;
}
.vcard-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.vcard-source-badge--vip {
  border: 1px solid rgba(232, 197, 107, 0.55);
  background: linear-gradient(135deg, rgba(232, 197, 107, 0.22), rgba(26, 43, 70, 0.9));
  color: #f0d78a;
}
.vcard-source-badge--mast {
  border: 1px solid rgba(120, 190, 255, 0.5);
  background: linear-gradient(135deg, rgba(80, 150, 230, 0.2), rgba(26, 43, 70, 0.9));
  color: #a8d4ff;
}
.vcard-vip-panel {
  border-color: rgba(232, 197, 107, 0.35);
}
.vcard-mast-panel {
  border-color: rgba(120, 190, 255, 0.3);
}
.vcard-household-panel {
  border-color: rgba(53, 197, 255, 0.28);
}
.msg-warn {
  color: #e8c56b;
  margin: 8px 0;
}
.vcard-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  align-items: center;
}
.vcard-quick .pm-btn {
  margin: 0;
  flex: 0 1 auto;
}
.vcard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
}
.vcard-panel {
  background: rgba(38, 60, 91, 0.72);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  padding: 16px 18px;
}
.vcard-panel + .vcard-panel { margin-top: 14px; }
.vcard-panel-title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pm-cyan);
  font-weight: 700;
}
.vcard-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(142, 187, 226, 0.14);
}
.vcard-row:last-child { border-bottom: none; }
.vcard-label { color: var(--pm-muted); flex: 0 0 42%; }
.vcard-value {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.vcard-inline-copy.pm-icon-btn {
  min-width: 32px;
  width: 32px;
  height: 32px;
  min-height: 32px;
}

.assign-block {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1c3d3a 0%, #18343b 55%, #1a3040 100%);
  border: 1px solid rgba(85, 229, 197, 0.28);
  text-align: left;
}
.assign-passenger {
  border-color: rgba(53, 197, 255, 0.35);
}
.assign-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.assign-kicker,
.assign-source {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pm-green);
  font-weight: 700;
}
.assign-name {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--pm-text);
  text-align: left;
  word-break: break-word;
}
.assign-role {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: #d7e8f8;
  text-align: left;
  line-height: 1.45;
  word-break: break-word;
}
.assign-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.assign-place {
  margin: 0;
  color: var(--pm-muted);
  font-size: 0.86rem;
  text-align: left;
}
.assign-nodriver {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 87, 0.55);
  background: rgba(255, 200, 87, 0.12);
  color: var(--pm-amber);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-card {
  display: grid;
  gap: 10px;
}
.contact-role {
  margin: 0;
  color: var(--pm-muted);
  font-size: 0.82rem;
}
.contact-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.contact-phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.contact-phone {
  color: var(--pm-text);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}
.contact-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.pm-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(28, 52, 48, 0.96);
  color: var(--pm-green);
  border: 1px solid rgba(85, 229, 197, 0.45);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pm-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .vcard-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pm-sys { display: none; }
  .pm-admin-strip-scroll { padding: 4px 12px; }
  .pm-admin-strip-text { font-size: 0.6rem; letter-spacing: 0.04em; }
  .pm-admin-strip-short { display: inline; }
  .pm-admin-strip-long { display: none; }
  .pm-user-name { display: none; }
  .pm-topbar { padding: 10px 12px; }
  body.pm-app .main { padding: 14px 12px 88px; }
  .pm-search-submit {
    flex-basis: 110px;
    width: 110px;
    min-width: 110px;
    gap: 7px;
  }
  .pm-mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }
  .pm-mode-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
  }
  .pm-clear-form {
    margin-left: 0;
  }
  .vcard-passport { flex-direction: column; }
  .vcard-quick .pm-btn {
    flex: 1 1 calc(50% - 10px);
    min-height: 44px;
  }
  .pm-icon-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }
  .vcard-inline-copy.pm-icon-btn {
    min-width: 36px;
    width: 36px;
    height: 36px;
    min-height: 36px;
  }
  .assign-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .pm-search-submit-label {
    display: none;
  }
  .pm-search-submit {
    flex-basis: 48px;
    width: 48px;
    min-width: 48px;
    gap: 0;
  }
  .pm-mode-group {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 900px) {
  .pm-search-submit {
    flex-basis: 132px;
    width: 132px;
    min-width: 132px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.pm-app .list-item-vehicle,
  .vcard-premium,
  .pm-welcome,
  .pm-welcome-card,
  .pm-toast,
  .pm-search-submit-label,
  .pm-search-submit::after,
  .pm-sys[data-state="ok"] .pm-sys-dot::before,
  .pm-sys[data-state="ok"] .pm-sys-dot::after,
  .pm-status-chip.ok .pm-status-dot,
  .pm-search-submit.is-busy .pm-search-submit-ico .pm-ico { transition: none !important; animation: none !important; }
  .pm-search-submit-label {
    background: none;
    -webkit-text-fill-color: #062033;
    color: #062033;
  }
}


/* Подача 03 */
.pm-s03-period {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
#screen-s03 .card > h2 {
  margin-bottom: 0;
}
#screen-s03 .card > h2 + .pm-s03-period + .meta {
  margin-top: 16px;
}
#screen-s03 .card > h2 + .meta {
  margin-top: 12px;
}
@media (max-width: 560px) {
  .pm-s03-period {
    font-size: 0.88rem;
  }
}
.pm-s03-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.pm-s03-kpis div {
  background: rgba(32, 52, 81, 0.7);
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.pm-s03-kpis strong {
  display: block;
  font-size: 1.15rem;
  color: #f4f8ff;
}
.pm-s03-kpis > div > span {
  display: block;
  font-size: 0.72rem;
  color: var(--pm-muted);
  margin-top: 4px;
}
.pm-s03-kpis .s03-kpi-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 100%;
  line-height: 1.25;
}
.pm-s03-kpis .s03-kpi-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pm-muted);
  cursor: help;
  flex: 0 0 auto;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}
.pm-s03-kpis .s03-kpi-info:hover,
.pm-s03-kpis .s03-kpi-info:focus-visible {
  color: var(--accent);
  outline: none;
}
.pm-s03-kpis .s03-kpi-info:focus-visible {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}
.pm-s03-kpis .s03-kpi-info-ico,
.pm-s03-kpis .s03-kpi-info-ico .pm-ico {
  display: block;
  width: 12px;
  height: 12px;
}
.pm-s03-kpis .s03-kpi-tip {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  max-height: min(42vh, 260px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(142, 187, 226, 0.35);
  background: #13233a;
  color: #e8f1ff;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 6px 18px rgba(5, 12, 24, 0.45);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}
.pm-s03-kpis .s03-kpi-tip.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.pm-s03-kpis .s03-kpi-tip.is-below {
  bottom: auto;
  top: calc(100% + 6px);
}
.pm-s03-kpis .s03-kpi-tip-lead {
  display: block;
  color: #e8f1ff;
}
.pm-s03-kpis .s03-kpi-tip-sep {
  display: block;
  height: 7px;
}
.pm-s03-kpis .s03-kpi-tip-now {
  display: block;
  margin-bottom: 4px;
  color: var(--pm-muted);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}
.pm-s03-kpis .s03-kpi-tip-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pm-s03-kpis .s03-kpi-tip-row {
  display: block;
  color: #d7e6f8;
  white-space: nowrap;
}
.pm-s03-kpis .s03-kpi-tip-pk {
  color: #f4f8ff;
  font-weight: 600;
}
.pm-s03-kpis .s03-kpi-tip-sch {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.list-item-s03 .source-badge { width: fit-content; }

/* Подача 03 — карточки автобаз / подстанций / точек (строго scoped) */
body.pm-app button.s03-pt.card,
button.s03-pt.card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: #f4f8ff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
body.pm-app .s03-st-row.card,
body.pm-app .s03-ab-row.card,
.s03-st-row.card,
.s03-ab-row.card {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4f8ff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
body.pm-app .s03-st-row .s03-st,
body.pm-app .s03-ab-row .s03-ab,
.s03-st-row .s03-st,
.s03-ab-row .s03-ab {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
body.pm-app .s03-st-row .s03-st-route,
body.pm-app .s03-ab-row .s03-ab-route,
.s03-st-row .s03-st-route,
.s03-ab-row .s03-ab-route {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  align-self: center;
}
body.pm-app .s03-st-row .pm-route-btn-list,
body.pm-app .s03-ab-row .pm-route-btn-list,
.s03-st-row .pm-route-btn-list,
.s03-ab-row .pm-route-btn-list {
  padding: 8px 12px;
}
body.pm-app button.s03-pt.card .plate,
body.pm-app .s03-st-row .s03-st .plate,
body.pm-app .s03-ab-row .s03-ab .plate,
button.s03-pt.card .plate,
.s03-st-row .s03-st .plate,
.s03-ab-row .s03-ab .plate {
  color: #f4f8ff;
  font-weight: 700;
  -webkit-text-fill-color: #f4f8ff;
  transition: color 160ms ease, -webkit-text-fill-color 160ms ease;
}
body.pm-app button.s03-pt.card .meta,
body.pm-app .s03-st-row .s03-st .meta,
body.pm-app .s03-ab-row .s03-ab .meta,
button.s03-pt.card .meta,
.s03-st-row .s03-st .meta,
.s03-ab-row .s03-ab .meta {
  color: #b8cbe3;
}
body.pm-app button.s03-pt.card:hover,
body.pm-app button.s03-pt.card:focus,
body.pm-app button.s03-pt.card:focus-visible,
body.pm-app button.s03-pt.card:active,
body.pm-app .s03-st-row.card:hover,
body.pm-app .s03-st-row.card:focus-within,
body.pm-app .s03-ab-row.card:hover,
body.pm-app .s03-ab-row.card:focus-within,
button.s03-pt.card:hover,
button.s03-pt.card:focus,
button.s03-pt.card:focus-visible,
button.s03-pt.card:active,
.s03-st-row.card:hover,
.s03-st-row.card:focus-within,
.s03-ab-row.card:hover,
.s03-ab-row.card:focus-within {
  border-color: rgba(104, 221, 181, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(104, 221, 181, 0.18), 0 12px 28px rgba(8, 18, 34, 0.28);
  outline: none;
}
body.pm-app button.s03-pt.card:hover .plate,
body.pm-app button.s03-pt.card:focus .plate,
body.pm-app button.s03-pt.card:focus-visible .plate,
body.pm-app button.s03-pt.card:active .plate,
body.pm-app .s03-st-row.card:hover .s03-st .plate,
body.pm-app .s03-st-row.card:focus-within .s03-st .plate,
body.pm-app .s03-ab-row.card:hover .s03-ab .plate,
body.pm-app .s03-ab-row.card:focus-within .s03-ab .plate,
button.s03-pt.card:hover .plate,
button.s03-pt.card:focus .plate,
button.s03-pt.card:focus-visible .plate,
button.s03-pt.card:active .plate,
.s03-st-row.card:hover .s03-st .plate,
.s03-st-row.card:focus-within .s03-st .plate,
.s03-ab-row.card:hover .s03-ab .plate,
.s03-ab-row.card:focus-within .s03-ab .plate {
  color: #68ddb5;
  -webkit-text-fill-color: #68ddb5;
}

/* ===== Vaccination ===== */
.vac-head h2 {
  letter-spacing: 0.04em;
}
.vac-ab-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 8px;
}
/* Shared control geometry: АВТОБАЗА / ВСЕ / РЕЗЕРВ */
.vac-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
}
.vac-ab-filters .vac-ab-all {
  grid-column: 1 / -1;
}
.vac-reserve-wrap {
  margin: 0 0 12px;
}
/* Резерв — same size as filters; soft cyan accent only */
.vac-reserve-wrap .vac-reserves-btn {
  color: #7dd3fc;
  border-color: rgba(53, 197, 255, 0.34);
  background: rgba(32, 52, 81, 0.72);
}
.vac-reserve-wrap .vac-reserves-btn:hover,
.vac-reserve-wrap .vac-reserves-btn:focus-visible {
  border-color: rgba(53, 197, 255, 0.48);
  background: rgba(38, 60, 91, 0.9);
  color: #9ae2ff;
}
.vac-list {
  display: grid;
  gap: 10px;
}
button.vac-point.card {
  display: block;
  text-align: left;
  width: 100%;
  cursor: pointer;
  color: #f4f8ff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
/* Title row: point name + exit as separate fields (no fragile string join) */
button.vac-point.card .vac-point-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
}
/* Level 1 — point name */
button.vac-point.card .vac-point-name,
button.vac-point.card .plate {
  color: #f4f8ff;
  font-weight: 700;
  -webkit-text-fill-color: #f4f8ff;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
}
/* Exit — small muted gray operational detail; never split "выход" from "№…" */
button.vac-point.card .vac-exit {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #9aa7b8;
  -webkit-text-fill-color: #9aa7b8;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
/* Level 2 — MO premium inner badge (light translucent, not near-black) */
button.vac-point.card .vac-mo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 16px;
  background: linear-gradient(
    165deg,
    rgba(53, 197, 255, 0.14) 0%,
    rgba(24, 72, 112, 0.42) 55%,
    rgba(18, 58, 92, 0.48) 100%
  );
  border: 1px solid rgba(53, 197, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.16);
  color: #7dd3fc;
  -webkit-text-fill-color: #7dd3fc;
  min-height: 0;
}
button.vac-point.card .vac-mo-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #7dd3fc;
}
button.vac-point.card .vac-mo-ico .pm-ico {
  display: block;
}
button.vac-point.card .vac-mo-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  color: #7dd3fc;
  -webkit-text-fill-color: #7dd3fc;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Level 3 — autobase / column */
button.vac-point.card .vac-ab {
  color: #b8cbe3;
  margin-top: 12px;
}
/* Level 4 — plate */
button.vac-point.card .vac-plate-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b8cbe3;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
button.vac-point.card .vac-plate-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #7dd3fc;
}
button.vac-point.card .vac-plate-ico .pm-ico {
  display: block;
}
button.vac-point.card .vac-plate-text {
  min-width: 0;
}
button.vac-point.card:hover,
button.vac-point.card:focus,
button.vac-point.card:focus-visible,
button.vac-point.card:active {
  border-color: rgba(104, 221, 181, 0.45);
  box-shadow: 0 0 0 3px rgba(104, 221, 181, 0.14), 0 12px 28px rgba(8, 18, 34, 0.28);
  outline: none;
  color: #f4f8ff;
}
button.vac-point.card:hover .vac-point-name,
button.vac-point.card:focus .vac-point-name,
button.vac-point.card:focus-visible .vac-point-name,
button.vac-point.card:active .vac-point-name,
button.vac-point.card:hover .plate,
button.vac-point.card:focus .plate,
button.vac-point.card:focus-visible .plate,
button.vac-point.card:active .plate {
  color: #f4f8ff;
  -webkit-text-fill-color: #f4f8ff;
}
button.vac-point.card:hover .vac-exit,
button.vac-point.card:focus .vac-exit,
button.vac-point.card:focus-visible .vac-exit,
button.vac-point.card:active .vac-exit {
  color: #9aa7b8;
  -webkit-text-fill-color: #9aa7b8;
}
button.vac-point.card:hover .vac-mo,
button.vac-point.card:focus .vac-mo,
button.vac-point.card:focus-visible .vac-mo,
button.vac-point.card:active .vac-mo {
  color: #7dd3fc;
  -webkit-text-fill-color: #7dd3fc;
  border-color: rgba(53, 197, 255, 0.82);
}
.vac-detail .vac-subhead {
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Vaccination DETAIL only — full-width section header backplates (list untouched).
   Reference: color header spans entire card width; fades down into navy body. */
body.pm-app .vac-detail > .card.vac-sec {
  position: relative;
  overflow: hidden;
  border-style: solid;
  border-width: 1px;
  border-color: transparent;
  box-shadow: none;
  background-color: rgba(24, 42, 66, 0.94);
  background-repeat: no-repeat;
  /* 1) top edge line  2) vertical wash  3) horizontal weight  4) tiny body tint */
  background-size: 100% 1px, 100% 58px, 100% 58px, auto;
  background-position: left top, left top, left top, 0 0;
}
body.pm-app .vac-detail > .card.vac-sec .vac-sec-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #f4f8ff;
  font-weight: 650;
}
body.pm-app .vac-detail > .card.vac-sec .vac-sec-title::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 21px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
}

/* 1. Точка — cyan */
body.pm-app .vac-detail > .card.vac-sec--point {
  border-top-color: rgba(53, 197, 255, 0.66);
  border-right-color: rgba(53, 197, 255, 0.44);
  border-bottom-color: rgba(53, 197, 255, 0.32);
  border-left-color: rgba(53, 197, 255, 0.44);
  background-image:
    linear-gradient(90deg, rgba(53, 197, 255, 0.9) 0%, rgba(53, 197, 255, 0.55) 55%, rgba(53, 197, 255, 0.38) 100%),
    linear-gradient(180deg, rgba(53, 197, 255, 0.26) 0%, rgba(53, 197, 255, 0.1) 48%, transparent 100%),
    linear-gradient(90deg, rgba(53, 197, 255, 0.16) 0%, rgba(53, 197, 255, 0.07) 55%, rgba(53, 197, 255, 0.035) 100%),
    linear-gradient(145deg, rgba(53, 197, 255, 0.04), rgba(20, 49, 80, 0.05));
}
body.pm-app .vac-detail > .card.vac-sec--point .vac-sec-title {
  color: #e8f8ff;
}
body.pm-app .vac-detail > .card.vac-sec--point .vac-sec-title::before {
  background: #35c5ff;
  box-shadow: 0 0 8px rgba(53, 197, 255, 0.28);
}

/* 2. МО — aqua */
body.pm-app .vac-detail > .card.vac-sec--mo {
  border-top-color: rgba(85, 214, 194, 0.64);
  border-right-color: rgba(85, 214, 194, 0.42);
  border-bottom-color: rgba(85, 214, 194, 0.3);
  border-left-color: rgba(85, 214, 194, 0.42);
  background-image:
    linear-gradient(90deg, rgba(85, 214, 194, 0.88) 0%, rgba(85, 214, 194, 0.5) 55%, rgba(85, 214, 194, 0.34) 100%),
    linear-gradient(180deg, rgba(85, 214, 194, 0.24) 0%, rgba(85, 214, 194, 0.09) 48%, transparent 100%),
    linear-gradient(90deg, rgba(85, 214, 194, 0.14) 0%, rgba(85, 214, 194, 0.06) 55%, rgba(85, 214, 194, 0.03) 100%),
    linear-gradient(145deg, rgba(85, 214, 194, 0.035), rgba(20, 49, 80, 0.05));
}
body.pm-app .vac-detail > .card.vac-sec--mo .vac-sec-title {
  color: #e8fffa;
}
body.pm-app .vac-detail > .card.vac-sec--mo .vac-sec-title::before {
  background: #55d6c2;
  box-shadow: 0 0 8px rgba(85, 214, 194, 0.26);
}

/* 3. Транспорт — blue */
body.pm-app .vac-detail > .card.vac-sec--transport {
  border-top-color: rgba(110, 168, 255, 0.64);
  border-right-color: rgba(110, 168, 255, 0.42);
  border-bottom-color: rgba(110, 168, 255, 0.3);
  border-left-color: rgba(110, 168, 255, 0.42);
  background-image:
    linear-gradient(90deg, rgba(110, 168, 255, 0.88) 0%, rgba(110, 168, 255, 0.5) 55%, rgba(110, 168, 255, 0.34) 100%),
    linear-gradient(180deg, rgba(110, 168, 255, 0.24) 0%, rgba(110, 168, 255, 0.09) 48%, transparent 100%),
    linear-gradient(90deg, rgba(110, 168, 255, 0.14) 0%, rgba(110, 168, 255, 0.06) 55%, rgba(110, 168, 255, 0.03) 100%),
    linear-gradient(145deg, rgba(110, 168, 255, 0.035), rgba(20, 49, 80, 0.05));
}
body.pm-app .vac-detail > .card.vac-sec--transport .vac-sec-title {
  color: #edf4ff;
}
body.pm-app .vac-detail > .card.vac-sec--transport .vac-sec-title::before {
  background: #6ea8ff;
  box-shadow: 0 0 8px rgba(110, 168, 255, 0.26);
}

/* 4. Подача — violet */
body.pm-app .vac-detail > .card.vac-sec--schedule {
  border-top-color: rgba(155, 140, 255, 0.6);
  border-right-color: rgba(155, 140, 255, 0.4);
  border-bottom-color: rgba(155, 140, 255, 0.28);
  border-left-color: rgba(155, 140, 255, 0.4);
  background-image:
    linear-gradient(90deg, rgba(155, 140, 255, 0.82) 0%, rgba(155, 140, 255, 0.45) 55%, rgba(155, 140, 255, 0.3) 100%),
    linear-gradient(180deg, rgba(155, 140, 255, 0.22) 0%, rgba(155, 140, 255, 0.08) 48%, transparent 100%),
    linear-gradient(90deg, rgba(155, 140, 255, 0.12) 0%, rgba(155, 140, 255, 0.05) 55%, rgba(155, 140, 255, 0.025) 100%),
    linear-gradient(145deg, rgba(155, 140, 255, 0.03), rgba(20, 49, 80, 0.05));
}
body.pm-app .vac-detail > .card.vac-sec--schedule .vac-sec-title {
  color: #f0edff;
}
body.pm-app .vac-detail > .card.vac-sec--schedule .vac-sec-title::before {
  background: #9b8cff;
  box-shadow: 0 0 8px rgba(155, 140, 255, 0.24);
}

/* 5. Ответственные — steel cyan */
body.pm-app .vac-detail > .card.vac-sec--mast {
  border-top-color: rgba(86, 182, 217, 0.62);
  border-right-color: rgba(86, 182, 217, 0.42);
  border-bottom-color: rgba(86, 182, 217, 0.3);
  border-left-color: rgba(86, 182, 217, 0.42);
  background-image:
    linear-gradient(90deg, rgba(86, 182, 217, 0.86) 0%, rgba(86, 182, 217, 0.48) 55%, rgba(86, 182, 217, 0.32) 100%),
    linear-gradient(180deg, rgba(86, 182, 217, 0.23) 0%, rgba(86, 182, 217, 0.085) 48%, transparent 100%),
    linear-gradient(90deg, rgba(86, 182, 217, 0.13) 0%, rgba(86, 182, 217, 0.055) 55%, rgba(86, 182, 217, 0.028) 100%),
    linear-gradient(145deg, rgba(86, 182, 217, 0.035), rgba(20, 49, 80, 0.05));
}
body.pm-app .vac-detail > .card.vac-sec--mast .vac-sec-title {
  color: #eaf9ff;
}
body.pm-app .vac-detail > .card.vac-sec--mast .vac-sec-title::before {
  background: #56b6d9;
  box-shadow: 0 0 8px rgba(86, 182, 217, 0.26);
}

/* 6. Дополнительно — slate (quietest, still full-width) */
body.pm-app .vac-detail > .card.vac-sec--extra {
  border-top-color: rgba(130, 148, 173, 0.5);
  border-right-color: rgba(130, 148, 173, 0.34);
  border-bottom-color: rgba(130, 148, 173, 0.26);
  border-left-color: rgba(130, 148, 173, 0.34);
  background-color: rgba(22, 38, 58, 0.94);
  background-image:
    linear-gradient(90deg, rgba(130, 148, 173, 0.7) 0%, rgba(130, 148, 173, 0.38) 55%, rgba(130, 148, 173, 0.24) 100%),
    linear-gradient(180deg, rgba(130, 148, 173, 0.16) 0%, rgba(130, 148, 173, 0.06) 48%, transparent 100%),
    linear-gradient(90deg, rgba(130, 148, 173, 0.09) 0%, rgba(130, 148, 173, 0.04) 55%, rgba(130, 148, 173, 0.02) 100%),
    linear-gradient(145deg, rgba(130, 148, 173, 0.025), rgba(20, 49, 80, 0.04));
}
body.pm-app .vac-detail > .card.vac-sec--extra .vac-sec-title {
  color: #eef2f7;
}
body.pm-app .vac-detail > .card.vac-sec--extra .vac-sec-title::before {
  background: #8294ad;
  box-shadow: 0 0 8px rgba(130, 148, 173, 0.2);
}

/* Inner contact cards — UNCHANGED */
body.pm-app .vac-detail .vac-person.card {
  background: rgba(8, 25, 45, 0.28);
  border: 1px solid rgba(180, 210, 235, 0.16);
  border-radius: var(--radius);
  box-shadow: none;
}

/* Row dividers — UNCHANGED */
body.pm-app .vac-detail .vcard-row {
  border-bottom-color: rgba(180, 210, 235, 0.12);
}

/* Desktop: still full-width; slightly calmer intensity */
@media (min-width: 900px) {
  body.pm-app .vac-detail > .card.vac-sec {
    background-size: 100% 1px, 100% 54px, 100% 54px, auto;
  }
  body.pm-app .vac-detail > .card.vac-sec--point {
    border-top-color: rgba(53, 197, 255, 0.58);
    border-right-color: rgba(53, 197, 255, 0.38);
    border-bottom-color: rgba(53, 197, 255, 0.28);
    border-left-color: rgba(53, 197, 255, 0.38);
    background-image:
      linear-gradient(90deg, rgba(53, 197, 255, 0.82) 0%, rgba(53, 197, 255, 0.48) 55%, rgba(53, 197, 255, 0.32) 100%),
      linear-gradient(180deg, rgba(53, 197, 255, 0.2) 0%, rgba(53, 197, 255, 0.075) 48%, transparent 100%),
      linear-gradient(90deg, rgba(53, 197, 255, 0.12) 0%, rgba(53, 197, 255, 0.05) 55%, rgba(53, 197, 255, 0.025) 100%),
      linear-gradient(145deg, rgba(53, 197, 255, 0.03), rgba(20, 49, 80, 0.045));
  }
  body.pm-app .vac-detail > .card.vac-sec--mo {
    border-top-color: rgba(85, 214, 194, 0.56);
    border-right-color: rgba(85, 214, 194, 0.36);
    border-bottom-color: rgba(85, 214, 194, 0.26);
    border-left-color: rgba(85, 214, 194, 0.36);
    background-image:
      linear-gradient(90deg, rgba(85, 214, 194, 0.78) 0%, rgba(85, 214, 194, 0.44) 55%, rgba(85, 214, 194, 0.28) 100%),
      linear-gradient(180deg, rgba(85, 214, 194, 0.18) 0%, rgba(85, 214, 194, 0.07) 48%, transparent 100%),
      linear-gradient(90deg, rgba(85, 214, 194, 0.11) 0%, rgba(85, 214, 194, 0.045) 55%, rgba(85, 214, 194, 0.022) 100%),
      linear-gradient(145deg, rgba(85, 214, 194, 0.028), rgba(20, 49, 80, 0.045));
  }
  body.pm-app .vac-detail > .card.vac-sec--transport {
    border-top-color: rgba(110, 168, 255, 0.56);
    border-right-color: rgba(110, 168, 255, 0.36);
    border-bottom-color: rgba(110, 168, 255, 0.26);
    border-left-color: rgba(110, 168, 255, 0.36);
    background-image:
      linear-gradient(90deg, rgba(110, 168, 255, 0.78) 0%, rgba(110, 168, 255, 0.44) 55%, rgba(110, 168, 255, 0.28) 100%),
      linear-gradient(180deg, rgba(110, 168, 255, 0.18) 0%, rgba(110, 168, 255, 0.07) 48%, transparent 100%),
      linear-gradient(90deg, rgba(110, 168, 255, 0.11) 0%, rgba(110, 168, 255, 0.045) 55%, rgba(110, 168, 255, 0.022) 100%),
      linear-gradient(145deg, rgba(110, 168, 255, 0.028), rgba(20, 49, 80, 0.045));
  }
  body.pm-app .vac-detail > .card.vac-sec--schedule {
    border-top-color: rgba(155, 140, 255, 0.52);
    border-right-color: rgba(155, 140, 255, 0.34);
    border-bottom-color: rgba(155, 140, 255, 0.24);
    border-left-color: rgba(155, 140, 255, 0.34);
    background-image:
      linear-gradient(90deg, rgba(155, 140, 255, 0.72) 0%, rgba(155, 140, 255, 0.4) 55%, rgba(155, 140, 255, 0.26) 100%),
      linear-gradient(180deg, rgba(155, 140, 255, 0.16) 0%, rgba(155, 140, 255, 0.06) 48%, transparent 100%),
      linear-gradient(90deg, rgba(155, 140, 255, 0.1) 0%, rgba(155, 140, 255, 0.04) 55%, rgba(155, 140, 255, 0.02) 100%),
      linear-gradient(145deg, rgba(155, 140, 255, 0.025), rgba(20, 49, 80, 0.045));
  }
  body.pm-app .vac-detail > .card.vac-sec--mast {
    border-top-color: rgba(86, 182, 217, 0.54);
    border-right-color: rgba(86, 182, 217, 0.36);
    border-bottom-color: rgba(86, 182, 217, 0.26);
    border-left-color: rgba(86, 182, 217, 0.36);
    background-image:
      linear-gradient(90deg, rgba(86, 182, 217, 0.76) 0%, rgba(86, 182, 217, 0.42) 55%, rgba(86, 182, 217, 0.28) 100%),
      linear-gradient(180deg, rgba(86, 182, 217, 0.17) 0%, rgba(86, 182, 217, 0.065) 48%, transparent 100%),
      linear-gradient(90deg, rgba(86, 182, 217, 0.1) 0%, rgba(86, 182, 217, 0.04) 55%, rgba(86, 182, 217, 0.02) 100%),
      linear-gradient(145deg, rgba(86, 182, 217, 0.028), rgba(20, 49, 80, 0.045));
  }
  body.pm-app .vac-detail > .card.vac-sec--extra {
    border-top-color: rgba(130, 148, 173, 0.42);
    border-right-color: rgba(130, 148, 173, 0.28);
    border-bottom-color: rgba(130, 148, 173, 0.22);
    border-left-color: rgba(130, 148, 173, 0.28);
    background-image:
      linear-gradient(90deg, rgba(130, 148, 173, 0.6) 0%, rgba(130, 148, 173, 0.32) 55%, rgba(130, 148, 173, 0.2) 100%),
      linear-gradient(180deg, rgba(130, 148, 173, 0.12) 0%, rgba(130, 148, 173, 0.045) 48%, transparent 100%),
      linear-gradient(90deg, rgba(130, 148, 173, 0.07) 0%, rgba(130, 148, 173, 0.03) 55%, rgba(130, 148, 173, 0.015) 100%),
      linear-gradient(145deg, rgba(130, 148, 173, 0.02), rgba(20, 49, 80, 0.04));
  }
}

.vac-plate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.vac-plate {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.vac-person {
  margin-top: 10px;
  padding: 12px;
}
.vac-person-name {
  font-weight: 600;
}
.vac-person-phone {
  margin: 6px 0;
}
.vac-person .vac-call {
  margin-top: 8px;
}
.vac-reserve .btn {
  margin-top: 10px;
}

/* MAST route action — secondary HUD control */
body.pm-app .pm-route-btn,
.pm-route-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: linear-gradient(180deg, rgba(15, 36, 64, 0.92), rgba(8, 22, 42, 0.96));
  color: #7dd3fc;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12), 0 0 18px rgba(14, 165, 233, 0.12);
  flex-shrink: 0;
}
body.pm-app .pm-route-btn:hover,
.pm-route-btn:hover {
  border-color: rgba(125, 211, 252, 0.85);
  color: #e0f2fe;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.22), 0 0 22px rgba(14, 165, 233, 0.22);
}
body.pm-app .pm-route-btn:active,
.pm-route-btn:active {
  transform: translateY(1px);
  border-color: rgba(14, 165, 233, 0.9);
}
body.pm-app .pm-route-btn:focus-visible,
.pm-route-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35), 0 0 18px rgba(14, 165, 233, 0.2);
}
body.pm-app .pm-route-btn-compact,
.pm-route-btn-compact {
  width: 44px;
  padding: 0;
  margin: 6px 8px 6px 0;
  align-self: center;
}
body.pm-app .pm-route-btn .pm-btn-ico,
.pm-route-btn .pm-btn-ico {
  display: inline-flex;
  color: inherit;
}
body.pm-app .pm-s03-station-head,
.pm-s03-station-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
body.pm-app .pm-s03-station-main,
.pm-s03-station-main {
  min-width: 0;
  flex: 1 1 auto;
}
body.pm-app .pm-s03-station-actions,
.pm-s03-station-actions {
  flex: 0 0 auto;
  padding-top: 2px;
}

.s03-region-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  color: #d7eef8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  -webkit-text-fill-color: #d7eef8;
}
.s03-st-plate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.s03-st-title .s03-region-badge {
  margin-left: 10px;
}
.s03-region-district {
  color: #9eb6d0 !important;
  font-size: 0.85rem;
}
body.pm-app .s03-rg-row.card,
.s03-rg-row.card {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4f8ff;
}
body.pm-app .s03-rg-row .s03-rg,
.s03-rg-row .s03-rg {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
body.pm-app .s03-rg-row.card:hover,
body.pm-app .s03-rg-row.card:focus-within,
.s03-rg-row.card:hover,
.s03-rg-row.card:focus-within {
  border-color: rgba(104, 221, 181, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(104, 221, 181, 0.18), 0 12px 28px rgba(8, 18, 34, 0.28);
}
body.pm-app .s03-rg-row.card:hover .s03-rg .plate,
body.pm-app .s03-rg-row.card:focus-within .s03-rg .plate,
.s03-rg-row.card:hover .s03-rg .plate,
.s03-rg-row.card:focus-within .s03-rg .plate {
  color: #68ddb5;
  -webkit-text-fill-color: #68ddb5;
}
@media (max-width: 560px) {
  .s03-region-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
  }
}
body.pm-app .pm-s03-station-card .btn-primary,
.pm-s03-station-card .btn-primary {
  margin-top: 12px;
  width: 100%;
}
@media (max-width: 420px) {
  body.pm-app .pm-s03-station-head,
  .pm-s03-station-head {
    flex-wrap: wrap;
  }
  body.pm-app .pm-s03-station-actions,
  .pm-s03-station-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  body.pm-app .s03-st-row .pm-route-btn-list,
  body.pm-app .s03-ab-row .pm-route-btn-list,
  .s03-st-row .pm-route-btn-list,
  .s03-ab-row .pm-route-btn-list {
    padding: 8px 10px;
    gap: 6px;
  }
  body.pm-app .s03-st-row.card,
  body.pm-app .s03-ab-row.card,
  .s03-st-row.card,
  .s03-ab-row.card {
    gap: 8px;
  }
}

.uc-page { min-width: 0; overflow-x: hidden; }
.uc-period {
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pm-accent, #7dd3c0);
}
.uc-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
}
.uc-tabs button { flex: 0 0 auto; }
.uc-kpis, .uc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
button.uc-kpi,
button.uc-sched,
button.uc-region {
  display: block;
  font: inherit;
  text-align: left;
  width: 100%;
  color: inherit;
  cursor: pointer;
  position: relative;
  margin-top: 0;
}
.uc-kpi, .uc-sched, .uc-region, .uc-station {
  text-align: left;
  width: 100%;
  color: inherit;
  cursor: pointer;
}
.uc-kpi:hover,
.uc-sched:hover,
.uc-region:hover,
.uc-station:hover,
.uc-point-row:hover {
  border-color: var(--accent);
}
.uc-kpi:active,
.uc-sched:active,
.uc-region:active {
  background: var(--surface2);
}
.uc-kpi-go {
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
.uc-kpi .meta { white-space: nowrap; }
.uc-h { margin: 16px 0 8px; font-size: 1rem; }
.uc-address { overflow-wrap: anywhere; }
.uc-st-row { display: flex; gap: 8px; align-items: flex-start; }
.uc-station { flex: 1; min-width: 0; background: transparent; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; }
.uc-st-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.uc-route { flex: 0 0 auto; }
.uc-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.uc-search {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 10px;
  min-height: var(--touch);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--surface2);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.uc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.uc-chip, .uc-reset {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}
.uc-reset { border-color: var(--accent); }
.uc-table-wrap { display: none; }
.uc-point-cards { display: block; }
.uc-point-card { margin-top: 8px; }
.uc-point-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.uc-extra { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.uc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
}
.uc-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface2);
  color: var(--text);
  text-align: left;
  padding: 8px;
  white-space: nowrap;
}
.uc-table td {
  padding: 8px;
  border-top: 1px solid var(--surface2);
  vertical-align: top;
  background: var(--bg);
  color: var(--text);
}
.uc-table td:nth-child(1),
.uc-table td:nth-child(2),
.uc-table td:nth-child(3),
.uc-table td:nth-child(8),
.uc-table td:nth-child(9) { white-space: nowrap; }
.uc-table td.uc-address { min-width: 180px; }
.uc-point-extra td { white-space: normal; background: var(--surface); }
.uc-point-row { cursor: pointer; }
.uc-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.uc-badge-restored {
  background: rgba(110, 196, 168, 0.18);
  color: #b7f0dc;
}
.uc-badge-removed, .uc-removed-note {
  color: #e7c27a;
}
.uc-removed {
  background: rgba(180, 90, 70, 0.08);
  border-color: rgba(231, 194, 122, 0.35);
}
.uc-kpi-muted { opacity: 0.92; }
.uc-open { width: 100%; text-align: left; color: inherit; cursor: pointer; }
@media (min-width: 900px) {
  .uc-table-wrap {
    display: block;
    overflow: auto;
    max-height: 70vh;
    max-width: 100%;
  }
  .uc-point-cards { display: none; }
}
@media (max-width: 899px) {
  .uc-kpis, .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-st-row { flex-wrap: wrap; }
  .uc-point-card .plate { font-size: 1rem; letter-spacing: 0; }
}
.hd-matrix { width: 100%; border-collapse: collapse; color: var(--text); background: var(--bg); }
.hd-matrix th, .hd-matrix td { padding: 8px; border-top: 1px solid var(--surface2); text-align: left; }
.hd-matrix button {
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  min-height: 32px;
}
.hd-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.hd-page { min-width: 0; overflow-x: hidden; }
.hd-page .uc-kpi .meta { white-space: normal; }
.uc-tabs button:focus-visible,
.uc-kpi:focus-visible,
.uc-sched:focus-visible,
.uc-region:focus-visible,
.uc-station:focus-visible,
.uc-chip:focus-visible,
.uc-reset:focus-visible,
.uc-search:focus-visible,
.uc-point-toggle:focus-visible,
.uc-point-row:focus-visible,
.uc-open:focus-visible,
.pm-route-btn:focus-visible {
  outline: 2px solid var(--pm-accent, #7dd3c0);
  outline-offset: 2px;
}

.fleet-panel {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  animation: fleetIn 260ms ease;
}
.fleet-head h2 {
  margin: 0 0 4px;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.fleet-updated {
  margin: 0 0 12px;
  color: var(--pm-muted);
  font-size: 0.85rem;
}
.fleet-kpis,
.fleet-bases {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.fleet-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fleet-bases { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
.fleet-metric,
.fleet-base-title,
.fleet-base {
  background: var(--pm-panel);
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  color: var(--pm-text);
  box-shadow: 0 0 0 1px rgba(53, 197, 255, 0.04), 0 8px 24px rgba(8, 16, 32, 0.18);
}
.fleet-metric,
.fleet-base-title {
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.fleet-kpis .fleet-metric {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 10px 10px;
  min-height: 108px;
}
.fleet-metric span { display: block; line-height: 1.25; }
.fleet-metric small {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  line-height: 1.2;
}
.fleet-metric span,
.fleet-metric small,
.fleet-base-hint,
.fleet-bar-caption,
.fleet-outside,
.fleet-count {
  color: var(--pm-muted);
  font-size: 0.75rem;
}
.fleet-kpis .fleet-metric strong { margin-top: auto; padding-top: 8px; font-size: 1.4rem; }
.fleet-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.fleet-metric-a { box-shadow: inset 3px 0 0 var(--pm-cyan); }
.fleet-metric-b { box-shadow: inset 3px 0 0 var(--pm-green); }
.fleet-metric-c { box-shadow: inset 3px 0 0 #9ec8ef; }
.fleet-metric-san { box-shadow: inset 3px 0 0 #c4b6e0; }
.fleet-metric-household { box-shadow: inset 3px 0 0 var(--pm-amber); }
.fleet-metric-awaiting {
  box-shadow: inset 3px 0 0 #d4b46a;
  background: linear-gradient(180deg, rgba(212, 180, 106, 0.16), var(--pm-panel));
}
.fleet-metric:hover,
.fleet-base-title:hover,
.fleet-chip:hover,
.fleet-reset:hover,
.fleet-more:hover {
  border-color: var(--pm-cyan);
}
.fleet-metric:focus-visible,
.fleet-base-title:focus-visible,
.fleet-chip:focus-visible,
.fleet-reset:focus-visible,
.fleet-more:focus-visible {
  outline: 2px solid var(--pm-cyan);
  outline-offset: 2px;
}
.fleet-metric:active,
.fleet-base-title:active { transform: translateY(1px); }
.fleet-bar {
  display: flex;
  height: 14px;
  margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(142, 187, 226, 0.12);
  border: 1px solid var(--pm-border);
}
.fleet-seg-a { background: var(--pm-cyan); }
.fleet-seg-b { background: var(--pm-green); }
.fleet-seg-c { background: #9ec8ef; }
.fleet-seg-rest { background: rgba(173, 194, 220, 0.35); }
.fleet-bar-caption,
.fleet-outside { margin: 6px 0 0; }
.fleet-base { padding: 8px; }
.fleet-base-title {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px 4px 8px;
}
.fleet-base-name { display: block; font-size: 0.92rem; }
.fleet-base-share {
  display: block;
  margin-top: 2px;
  color: var(--pm-cyan);
  font-size: 1.35rem;
}
.fleet-base-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.fleet-base-metrics .fleet-metric {
  padding: 8px;
  min-height: 0;
  box-shadow: none;
}
.fleet-base-metrics .fleet-metric strong { font-size: 1.05rem; margin-top: 2px; }
.fleet-base-metrics .fleet-metric-a { box-shadow: inset 3px 0 0 var(--pm-cyan); }
.fleet-base-metrics .fleet-metric-b { box-shadow: inset 3px 0 0 var(--pm-green); }
.fleet-base-metrics .fleet-metric-c { box-shadow: inset 3px 0 0 #9ec8ef; }
.fleet-base-metrics .fleet-metric-san { box-shadow: inset 3px 0 0 #c4b6e0; }
.fleet-base-metrics .fleet-metric-household {
  grid-column: 1 / -1;
  box-shadow: inset 3px 0 0 var(--pm-amber);
}
.fleet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.fleet-places { margin-top: 16px; }
.fleet-places h3 {
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}
.fleet-place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.fleet-place {
  min-width: 0;
  padding: 8px;
  color: var(--pm-text);
  border: 1px solid rgba(212, 180, 106, 0.7);
  border-radius: 12px;
  background: var(--pm-panel);
  box-shadow: inset 3px 0 0 #d4b46a;
}
.fleet-place-title {
  font: inherit;
  text-align: left;
  width: 100%;
  color: var(--pm-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
}
.fleet-place-status {
  display: inline-block;
  margin-top: 4px;
  color: #f3e2b3;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}
.fleet-place-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.fleet-place-note,
.fleet-missing {
  margin: 8px 0 0;
}
.fleet-missing {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: left;
  font: inherit;
  color: var(--pm-text);
  background: var(--pm-panel);
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.fleet-await-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #1c1608;
  background: #d4b46a;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.fleet-metric-awaiting:hover,
.fleet-place-title:hover,
.fleet-missing:hover,
.fleet-metric-awaiting:focus-visible,
.fleet-place-title:focus-visible,
.fleet-missing:focus-visible {
  outline: 2px solid #d4b46a;
  outline-offset: 2px;
}
.fleet-special-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.95fr);
  gap: 12px;
  align-items: stretch;
}
.fleet-special-layout .fleet-place-grid { grid-template-columns: 1fr; }
.fleet-special-layout-groups { grid-template-columns: minmax(0, 1fr); }
.fleet-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
  align-content: stretch;
}
.fleet-group-museum { grid-column: 1 / -1; }
.fleet-group {
  min-width: 0;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  font: inherit;
  color: var(--pm-text);
  background: var(--pm-panel);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.fleet-group-name {
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}
.fleet-group-count {
  font-size: 1.7rem;
  line-height: 1.1;
}
.fleet-group-share,
.fleet-group-note {
  color: #d5e4f5;
  font-size: 0.78rem;
}
.fleet-group-realization {
  border: 1px solid rgba(53, 197, 255, 0.72);
  box-shadow: inset 3px 0 0 var(--pm-cyan);
}
.fleet-group-utilization {
  border: 1px solid rgba(212, 148, 106, 0.75);
  box-shadow: inset 3px 0 0 #d4946a;
}
.fleet-group-museum {
  border: 1px solid rgba(176, 148, 214, 0.75);
  box-shadow: inset 3px 0 0 #b094d6;
}
.fleet-group:hover { background: var(--pm-panel-secondary); }
.fleet-group-realization:hover,
.fleet-group-realization:focus-visible { outline: 2px solid var(--pm-cyan); outline-offset: 2px; }
.fleet-group-utilization:hover,
.fleet-group-utilization:focus-visible { outline: 2px solid #d4946a; outline-offset: 2px; }
.fleet-group-museum:hover,
.fleet-group-museum:focus-visible { outline: 2px solid #b094d6; outline-offset: 2px; }
.fleet-chip,
.fleet-reset,
.fleet-more {
  font: inherit;
  color: var(--pm-text);
  background: var(--pm-panel);
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.fleet-reset { color: var(--pm-cyan); }
.fleet-more { display: block; margin: 12px auto 0; }
.fleet-count { margin: 0 0 8px; }
.fleet-pulse {
  min-width: 0;
  margin: 0 0 16px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(126, 196, 232, 0.28);
  background: linear-gradient(180deg, #1c4d78 0%, #173a5c 58%, #142c4a 100%);
  box-shadow: 0 18px 42px rgba(6, 16, 32, 0.28);
  color: #f7faff;
}
.fleet-pulse button,
.fleet-pulse .fleet-pulse-value,
.fleet-pulse .fleet-pulse-title {
  color: #f7faff;
}
.fleet-pulse button {
  font: inherit;
  background: transparent;
  cursor: pointer;
}
.fleet-pulse-top,
.fleet-pulse-body,
.fleet-pulse-side,
.fleet-pulse-pair,
.fleet-pulse-top-stats,
.fleet-pulse-classes {
  min-width: 0;
}
.fleet-pulse-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.fleet-pulse-top-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-width: min(100%, 360px);
  flex: 0 1 360px;
}
.fleet-pulse-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #c5d7ea;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}
.fleet-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ee0a0;
  box-shadow: 0 0 8px rgba(62, 224, 160, 0.8);
}
.fleet-pulse-title {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.fleet-pulse-updated,
.fleet-pulse-note,
.fleet-pulse-kicker {
  color: #c5d7ea;
}
.fleet-pulse-updated { margin: 8px 0 0; font-size: 0.84rem; }
.fleet-pulse-kicker {
  display: block;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}
.fleet-pulse-value {
  display: block;
  color: #f7faff;
  font-size: 1.85rem;
  line-height: 1.05;
  font-weight: 700;
}
.fleet-pulse-note,
.fleet-pulse-link { display: block; font-size: 0.78rem; }
.fleet-pulse-link { color: #7ee7ff; }
.fleet-pulse-card {
  text-align: left;
  border: 1px solid rgba(142, 196, 232, 0.28);
  border-radius: 16px;
  background: rgba(12, 32, 56, 0.45);
  padding: 12px 14px;
  min-height: 44px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.fleet-pulse-card:hover,
.fleet-pulse-card:focus-visible,
.fleet-pulse-class:hover,
.fleet-pulse-class:focus-visible,
.fleet-pulse-center:hover,
.fleet-pulse-center:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(126, 231, 255, 0.7);
  box-shadow: 0 8px 22px rgba(53, 197, 255, 0.16);
  outline: 2px solid #7ee7ff;
  outline-offset: 2px;
}
.fleet-pulse-card:active,
.fleet-pulse-class:active,
.fleet-pulse-center:active { transform: translateY(0); }
.fleet-pulse-total { min-width: 0; }
.fleet-pulse-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.fleet-pulse-pair .fleet-pulse-card { height: 100%; }
.fleet-pulse-wait { box-shadow: inset 3px 0 0 #d4b46a; }
.fleet-pulse-realization {
  border-color: rgba(53, 197, 255, 0.72);
  box-shadow: inset 3px 0 0 var(--pm-cyan);
}
.fleet-pulse-utilization {
  border-color: rgba(212, 148, 106, 0.75);
  box-shadow: inset 3px 0 0 #d4946a;
}
.fleet-pulse-san { box-shadow: inset 3px 0 0 #b7a6de; }
.fleet-pulse-household { box-shadow: inset 3px 0 0 #e0b15a; }
.fleet-special-layout-places-only { grid-template-columns: 1fr; }
.fleet-pulse-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
.fleet-pulse-donut {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
}
.fleet-pulse-dial {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  isolation: isolate;
}
.fleet-pulse-flight {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  transform-origin: 50% 50%;
  animation: fleetPulseCenterFlight 5.545s linear infinite;
  will-change: transform, opacity, filter;
  pointer-events: none;
}
.fleet-pulse-halo {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 213, 225, 0.10) 0%, rgba(53, 212, 223, 0.17) 38%, rgba(68, 218, 240, 0.22) 58%, rgba(79, 210, 245, 0.16) 73%, rgba(85, 171, 239, 0.07) 87%, transparent 100%);
  filter: blur(30px);
  opacity: 0.78;
  animation: fleetPulseHaloBreathe 5.545s linear infinite;
}
.fleet-pulse-substance {
  position: absolute;
  inset: -3%;
  border-radius: 50%;
  opacity: 0.2975;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(189, 255, 246, 0.78) 0 11%, transparent 30%),
    radial-gradient(ellipse at 81% 25%, rgba(83, 226, 255, 0.72) 0 14%, transparent 32%),
    radial-gradient(ellipse at 91% 57%, rgba(73, 184, 255, 0.64) 0 15%, transparent 33%),
    radial-gradient(ellipse at 68% 86%, rgba(91, 132, 255, 0.55) 0 16%, transparent 35%),
    radial-gradient(ellipse at 34% 89%, rgba(74, 190, 242, 0.54) 0 17%, transparent 36%),
    radial-gradient(ellipse at 9% 61%, rgba(63, 226, 207, 0.68) 0 15%, transparent 33%),
    radial-gradient(ellipse at 16% 26%, rgba(76, 245, 216, 0.75) 0 14%, transparent 32%),
    radial-gradient(circle at 48% 47%, rgba(147, 255, 237, 0.68) 0 15%, rgba(67, 222, 208, 0.56) 33%, rgba(57, 174, 224, 0.46) 58%, rgba(76, 119, 221, 0.20) 78%, transparent 97%);
  -webkit-mask: radial-gradient(circle, #000 0 43%, rgba(0, 0, 0, 0.78) 61%, rgba(0, 0, 0, 0.38) 78%, transparent 99%);
  mask: radial-gradient(circle, #000 0 43%, rgba(0, 0, 0, 0.78) 61%, rgba(0, 0, 0, 0.38) 78%, transparent 99%);
  filter: blur(21px) saturate(1.18);
  animation: fleetPulseSubstanceClockwise 7.8s linear infinite;
  will-change: transform;
}
.fleet-pulse-substance::before,
.fleet-pulse-substance::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.fleet-pulse-substance::before {
  inset: 3%;
  background:
    radial-gradient(ellipse at 48% 16%, rgba(225, 255, 251, 0.52) 0 11%, transparent 29%),
    radial-gradient(ellipse at 79% 44%, rgba(111, 237, 255, 0.48) 0 13%, transparent 31%),
    radial-gradient(ellipse at 56% 81%, rgba(91, 168, 255, 0.40) 0 14%, transparent 32%),
    radial-gradient(ellipse at 21% 55%, rgba(105, 255, 226, 0.46) 0 13%, transparent 31%),
    radial-gradient(circle at 48% 49%, rgba(197, 255, 248, 0.34), rgba(64, 218, 208, 0.21) 50%, transparent 84%);
  filter: blur(23px);
  animation: fleetPulseInnerDrift 5.4s linear infinite;
}
.fleet-pulse-substance::after {
  inset: -8%;
  background: radial-gradient(circle, transparent 52%, rgba(95, 255, 228, 0.18) 65%, rgba(80, 214, 255, 0.30) 79%, transparent 99%);
  filter: blur(30px);
  opacity: 0.42;
}
.fleet-pulse-svg {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(65, 219, 211, 0.32));
  pointer-events: none;
}
.fleet-pulse-arc,
.fleet-pulse-ring-empty {
  fill: none;
  stroke-width: 16;
  transform: rotate(-90deg);
  transform-origin: 120px 120px;
}
.fleet-pulse-ring-empty { stroke: rgba(173, 194, 220, 0.28); }
.fleet-pulse-glint {
  position: absolute;
  inset: -2px;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 337deg, rgba(255, 255, 255, 0.96) 344deg, transparent 352deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 14px), #000 calc(100% - 8px), transparent calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 14px), #000 calc(100% - 8px), transparent calc(100% - 6px));
  filter: blur(2px) drop-shadow(0 0 5px rgba(211, 252, 255, 0.92));
  animation: fleetPulseGlintOrbit 10.5s linear infinite;
}
.fleet-pulse-center {
  position: absolute;
  inset: 16%;
  z-index: 6;
  width: auto;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(1, 10, 25, 0.98),
    0 0 13px rgba(1, 10, 25, 0.94),
    0 0 26px rgba(1, 10, 25, 0.76);
}
.fleet-pulse-center .fleet-pulse-kicker,
.fleet-pulse-center .fleet-pulse-value,
.fleet-pulse-center .fleet-pulse-note {
  color: #fff;
}
.fleet-pulse-center .fleet-pulse-value { font-size: 2.5rem; }
.fleet-pulse-classes {
  display: flex;
  gap: 8px;
  width: min(100%, 320px);
  margin-top: 8px;
}
.fleet-pulse-class {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(142, 196, 232, 0.24);
  border-radius: 999px;
  background: rgba(12, 32, 56, 0.35);
  padding: 8px 10px;
}
.fleet-pulse-class .fleet-pulse-value { font-size: 1rem; }
.fleet-pulse-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ec8ff;
}
.fleet-pulse-class-b .fleet-pulse-swatch { background: #3ee0c2; }
.fleet-pulse-class-c .fleet-pulse-swatch { background: #d5e6f6; }
.fleet-pulse-side { display: grid; gap: 10px; }
.fleet-pulse-active-label {
  display: block;
  white-space: nowrap;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: #c5d7ea;
}
.fleet-pulse-bar {
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(173, 194, 220, 0.18);
  overflow: hidden;
}
.fleet-pulse-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #35c5ff, #3ee0c2);
}
@keyframes fleetPulseCenterFlight {
  0% { transform: scale(0); opacity: 0; filter: blur(10px) saturate(0.72); }
  2.49% { opacity: 0.187; }
  14.43% { transform: scale(0.96); opacity: 0.663; filter: blur(1px) saturate(1.04); }
  16.59% { transform: scale(1.06); opacity: 0.85; filter: blur(0) saturate(1.24); }
  21.57% { transform: scale(0.94); opacity: 0.646; filter: blur(0.7px) saturate(1); }
  30.70% { transform: scale(0.98); opacity: 0.714; filter: blur(0.3px) saturate(1.08); }
  36.42% { transform: scale(1.06); opacity: 0.85; filter: blur(0) saturate(1.28); }
  50.85% { transform: scale(0); opacity: 0; filter: blur(11px) saturate(0.72); }
  100% { transform: scale(0); opacity: 0; filter: blur(11px) saturate(0.72); }
}
@keyframes fleetPulseHaloBreathe {
  0%, 100% { opacity: 0.35; }
  16.59%, 36.42% { opacity: 1; }
  21.57%, 30.70% { opacity: 0.72; }
}
@keyframes fleetPulseSubstanceClockwise { to { transform: rotate(360deg); } }
@keyframes fleetPulseInnerDrift { to { transform: rotate(210deg) scale(1.035); } }
@keyframes fleetPulseGlintOrbit { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .fleet-pulse-top,
  .fleet-pulse-body { grid-template-columns: 1fr; display: grid; }
  .fleet-pulse-top { display: grid; }
  .fleet-pulse-top-stats {
    width: 100%;
    min-width: 0;
    flex: none;
  }
  .fleet-pulse-active-label { white-space: normal; }
  .fleet-pulse-center .fleet-pulse-value { font-size: 2.4rem; }
}
@media (max-width: 480px) {
  .fleet-pulse { padding: 12px 12px 10px; }
  .fleet-pulse-status { margin-bottom: 4px; }
  .fleet-pulse-updated { margin-top: 4px; }
  .fleet-pulse-title { font-size: 1.5rem; }
  .fleet-pulse-body { margin-top: 4px; gap: 8px; }
  .fleet-pulse-side { gap: 8px; }
  .fleet-pulse-dial { width: clamp(235px, 62vw, 245px); }
  .fleet-pulse-classes { width: 100%; gap: 6px; margin-top: 4px; flex-wrap: nowrap; }
  .fleet-pulse-class { flex: 1 1 0; min-height: 44px; padding: 6px 4px; gap: 4px; }
  .fleet-pulse-card { padding: 8px 10px; }
  .fleet-pulse-total { min-width: 0; }
  .fleet-pulse-bar { margin-top: 6px; }
  .fleet-pulse-active-label { white-space: nowrap; }
  .fleet-pulse-top-stats,
  .fleet-pulse-pair {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
  }
  .fleet-pulse-pair .fleet-pulse-card,
  .fleet-pulse-top-stats .fleet-pulse-card { height: 100%; }
  .fleet-pulse-pair .fleet-pulse-kicker,
  .fleet-pulse-pair .fleet-pulse-note,
  .fleet-pulse-top-stats .fleet-pulse-kicker,
  .fleet-pulse-top-stats .fleet-pulse-note,
  .fleet-pulse-top-stats .fleet-pulse-link { white-space: normal; line-height: 1.25; }
  .fleet-pulse-center .fleet-pulse-value { font-size: 2.35rem; }
}
@media (max-width: 370px) {
  .fleet-pulse-classes { gap: 4px; }
  .fleet-pulse-class { padding: 6px 3px; gap: 3px; }
  .fleet-pulse-active-label { white-space: normal; }
  .fleet-pulse-top-stats .fleet-pulse-kicker,
  .fleet-pulse-pair .fleet-pulse-kicker {
    white-space: normal;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fleet-pulse-flight {
    transform: none;
    opacity: 0.55;
    filter: none;
    animation: none;
  }
  .fleet-pulse-halo { animation: none; }
  .fleet-pulse-substance,
  .fleet-pulse-substance::before,
  .fleet-pulse-glint { animation: none; }
  .fleet-pulse-glint { display: none; }
  .fleet-pulse-card,
  .fleet-pulse-class,
  .fleet-pulse-center { transition: none; }
}
body.pm-reduced .fleet-pulse-flight {
  transform: none;
  opacity: 0.55;
  filter: none;
  animation: none;
}
body.pm-reduced .fleet-pulse-halo,
body.pm-reduced .fleet-pulse-substance,
body.pm-reduced .fleet-pulse-substance::before { animation: none; }
body.pm-reduced .fleet-pulse-glint { animation: none; display: none; }
@keyframes fleetIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .fleet-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fleet-bases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .fleet-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-bases,
  .fleet-place-grid,
  .fleet-special-layout,
  .fleet-groups { grid-template-columns: 1fr; }
  .fleet-group-museum { grid-column: auto; }
  .fleet-metric strong { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fleet-panel { animation: none; }
}
body.pm-reduced .fleet-panel { animation: none; }

/* --- Эвакуация (интеграция) --- */
.evac-home {
  margin: 0 0 10px;
  padding: 8px 10px 8px;
  border: 1px solid var(--surface2);
  border-radius: 10px;
  background: linear-gradient(165deg, var(--surface2) 0%, var(--surface) 70%);
}
.evac-home-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.evac-home-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
}
.evac-home-open {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.evac-home-meta {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--text);
  overflow-wrap: anywhere;
}
.evac-home-meta strong { font-weight: 700; }
.evac-home-meta-sep { color: var(--muted); }
.evac-home-shift { color: var(--muted); }
.evac-home-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.evac-home-kpi {
  min-width: 0;
  padding: 5px 6px 4px;
  border: 1px solid var(--surface2);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
}
.evac-home-kpi .meta {
  display: block;
  font-size: 0.68rem;
  line-height: 1.15;
  color: var(--muted);
  margin-bottom: 1px;
  overflow-wrap: anywhere;
}
.evac-home-kpi strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.evac-home-kpi-done { grid-column: 1 / -1; }
.evac-home-kpi-done strong { color: var(--ok); }
.evac-home-kpi-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.evac-home-kpi-new strong { color: var(--accent); }
.evac-home-kpi-street {
  border-color: rgba(251, 146, 60, 0.45);
}
.evac-home-kpi-street strong { color: #fb923c; }
@media (max-width: 899px) {
  .evac-home-kpi {
    background: color-mix(in srgb, var(--surface2) 42%, var(--surface));
    border-color: rgba(125, 211, 252, 0.32);
    box-shadow:
      inset 0 1px 0 rgba(148, 197, 255, 0.1),
      0 0 0 1px rgba(56, 189, 248, 0.06),
      0 4px 10px rgba(2, 8, 23, 0.32);
  }
  .evac-home-kpi-done {
    text-align: center;
    padding: 7px 8px 6px;
  }
  .evac-home-kpi-done .meta,
  .evac-home-kpi-done strong,
  .evac-home-kpi-done .evac-home-kpi-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .evac-home-kpi-street {
    border-color: rgba(251, 146, 60, 0.55);
    box-shadow:
      inset 0 1px 0 rgba(251, 146, 60, 0.16),
      0 0 0 1px rgba(251, 146, 60, 0.08),
      0 4px 10px rgba(2, 8, 23, 0.32);
  }
}
@media (min-width: 560px) {
  .evac-home-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .evac-home-kpi-done { grid-column: span 3; }
}
@media (min-width: 900px) {
  .evac-home-kpis {
    grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .evac-home-kpi-done { grid-column: auto; }
  .evac-home-kpi { text-align: center; }
  .evac-home-kpi-done { text-align: left; }
}
.evac-shift .evac-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.evac-shift .evac-kpi {
  grid-column: span 2;
  min-width: 0;
  padding: 7px 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: color-mix(in srgb, var(--surface2) 38%, var(--pm-panel));
  text-align: center;
}
.evac-shift .evac-kpi:nth-child(4),
.evac-shift .evac-kpi:nth-child(5) {
  grid-column: span 3;
}
.evac-shift .evac-kpi .meta {
  display: block;
  margin: 0 0 2px;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.evac-shift .evac-kpi strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.evac-shift .evac-kpi-total strong,
.evac-shift .evac-kpi-mast strong { color: var(--accent); }
.evac-shift .evac-kpi-contractor strong { color: #93c5fd; }
.evac-shift .evac-kpi-unassigned strong { color: var(--muted); }
.evac-shift .evac-kpi-street {
  border-color: rgba(251, 146, 60, 0.5);
}
.evac-shift .evac-kpi-street strong { color: #fb923c; }
@media (min-width: 840px) {
  .evac-shift .evac-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .evac-shift .evac-kpi,
  .evac-shift .evac-kpi:nth-child(4),
  .evac-shift .evac-kpi:nth-child(5) { grid-column: auto; }
}
.evac-shift h2,
.evac-filters h2 {
  margin-top: 0;
}
.evac-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.evac-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 0;
}
.evac-filter-grid input {
  font: inherit;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--surface2);
  background: var(--surface2);
  color: var(--text);
}
.evac-plate-control {
  position: relative;
  min-width: 0;
}
.evac-plate-control input {
  padding-right: 44px;
}
.evac-plate-clear {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.evac-plate-clear.hidden { display: none; }
.evac-plate-suggest {
  z-index: 40;
  overflow-x: hidden;
  max-width: 100%;
}
.evac-plate-control input:focus-visible,
.evac-plate-option:focus-visible,
.evac-plate-clear:focus-visible,
.evac-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.evac-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
button.evac-card {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 10px;
  border: 1px solid rgba(142, 187, 226, 0.2);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 84%, #8ebbe2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}
button.evac-card:last-child { margin-bottom: 0; }
.evac-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 6px;
}
.evac-card-tile {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(142, 187, 226, 0.12);
  background: rgba(16, 32, 54, 0.16);
  overflow-wrap: anywhere;
}
.evac-card-tile-plate {
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.1) 0%, rgba(247, 250, 255, 0.03) 100%);
  border-color: rgba(226, 236, 248, 0.42);
  box-shadow:
    0 1px 2px rgba(8, 16, 28, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.evac-card-tile-from,
.evac-card-tile-to {
  background: rgba(16, 32, 54, 0.32);
}
.evac-card-tile-plate,
.evac-card-tile-priority,
.evac-card-tile-reason,
.evac-card-tile-from,
.evac-card-tile-to { grid-column: 1 / -1; }
.evac-card-kicker {
  display: block;
  margin-bottom: 3px;
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}
.evac-card-plate {
  display: block;
  font-size: 2.24rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--text);
}
.evac-card-when,
.evac-card-exec {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--muted);
}
.evac-card-exec { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.evac-card-exec.is-mast { color: var(--accent); }
.evac-card-priority,
.evac-card-reason,
.evac-card-address {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text);
}
.evac-card-priority.is-street { color: #e2ab74; }
.evac-card-plate.is-empty,
.evac-card-when.is-empty,
.evac-card-priority.is-empty,
.evac-card-exec.is-empty,
.evac-card-reason.is-empty,
.evac-card-address.is-empty {
  color: var(--muted);
  font-weight: 500;
}
@media (min-width: 840px) {
  .evac-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }
  .evac-card-tile-plate,
  .evac-card-tile-priority,
  .evac-card-tile-reason { grid-column: span 2; }
  .evac-card-tile-from,
  .evac-card-tile-to { grid-column: span 3; }
}

