:root {
  color-scheme: light;
  --bg: #eef2f7;
  --bg-soft: #f8fafc;
  --ink: #162033;
  --muted: #667085;
  --line: rgba(20, 32, 51, 0.12);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 70px rgba(35, 46, 70, 0.14);
  --accent: #9a5f00;
  --accent-2: #f4c542;
  --accent-soft: rgba(244, 197, 66, 0.18);
  --grad-1: rgba(244, 197, 66, 0.2);
  --grad-2: rgba(217, 116, 65, 0.12);
  --radius: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 160ms;
  --motion-base: 260ms;
  --motion-slow: 520ms;
  --hover-bg-soft: rgba(255, 255, 255, 0.66);
  --hover-bg-medium: rgba(255, 255, 255, 0.72);
  --hover-bg-strong: rgba(255, 255, 255, 0.78);
  --hover-bg-glass: rgba(255, 255, 255, 0.82);
  --footer-bg: rgba(255, 255, 255, 0.48);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e14;
  --bg-soft: #121820;
  --ink: #f8fafc;
  --muted: #cbd5e1;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(5, 10, 15, 0.66);
  --glass-strong: rgba(5, 10, 15, 0.82);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  --accent: #f4c542;
  --accent-2: #f4c542;
  --accent-soft: rgba(244, 197, 66, 0.15);
  --grad-1: rgba(244, 197, 66, 0.1);
  --grad-2: rgba(217, 116, 65, 0.06);
  --hover-bg-soft: rgba(255, 255, 255, 0.08);
  --hover-bg-medium: rgba(255, 255, 255, 0.12);
  --hover-bg-strong: rgba(255, 255, 255, 0.16);
  --hover-bg-glass: rgba(255, 255, 255, 0.20);
  --footer-bg: rgba(5, 10, 15, 0.48);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0e14;
    --bg-soft: #121820;
    --ink: #f8fafc;
    --muted: #cbd5e1;
    --line: rgba(255, 255, 255, 0.12);
    --glass: rgba(5, 10, 15, 0.66);
    --glass-strong: rgba(5, 10, 15, 0.82);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    --accent: #f4c542;
    --accent-2: #f4c542;
    --accent-soft: rgba(244, 197, 66, 0.15);
    --grad-1: rgba(244, 197, 66, 0.1);
    --grad-2: rgba(217, 116, 65, 0.06);
    --hover-bg-soft: rgba(255, 255, 255, 0.08);
    --hover-bg-medium: rgba(255, 255, 255, 0.12);
    --hover-bg-strong: rgba(255, 255, 255, 0.16);
    --hover-bg-glass: rgba(255, 255, 255, 0.20);
    --footer-bg: rgba(5, 10, 15, 0.48);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(135deg, var(--grad-1), transparent 34%),
    linear-gradient(315deg, var(--grad-2), transparent 28%),
    var(--bg);
  color: var(--ink);
  animation: pageFadeIn var(--motion-slow) var(--ease-soft) both;
}

body.is-public-map-open {
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes menuReveal {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--hover-bg-medium);
  color: var(--ink);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition:
    border-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 14px;
  line-height: 1.55;
}

select {
  min-height: 48px;
  padding: 0 14px;
}

label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(154, 95, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(244, 197, 66, 0.2);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0 56px;
  display: flex;
  flex-direction: column;
}

.page-shell.is-public-map-open {
  width: 100%;
  min-height: 100dvh;
  padding: 0;
}

.admin-shell.is-map-module-open {
  width: min(1500px, calc(100% - 32px));
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  margin-bottom: 26px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 16px 50px rgba(26, 38, 61, 0.12);
  backdrop-filter: blur(24px) saturate(150%);
  animation: panelRise 520ms var(--ease-soft) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 54px;
  flex: 1 1 auto;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 16px rgba(154, 95, 0, 0.2));
  transition: transform var(--motion-base) var(--ease-soft);
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: translateY(-1px) scale(1.03);
}

.brand-text {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-text strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2vw, 1.14rem);
  letter-spacing: 0;
}

.nav {
  position: relative;
  flex: 0 0 auto;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
  transition:
    background var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out);
}

.menu-button:hover,
.menu-button:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  outline: none;
}

.menu-button:active {
  transform: scale(0.94);
}

.chevron {
  line-height: 1;
  transform: translateY(-1px);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
  transform-origin: top right;
  animation: menuReveal var(--motion-base) var(--ease-soft) both;
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel a,
.disabled-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  transition:
    background var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: var(--accent-soft);
  transform: translateX(2px);
  outline: none;
}

.disabled-link {
  color: rgba(102, 112, 133, 0.7);
  cursor: not-allowed;
  user-select: none;
}

.disabled-link small {
  color: var(--accent);
  font-size: 0.76rem;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: panelRise 420ms var(--ease-soft) both;
}

.glass-panel,
.info-card,
.news-card {
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
  transition:
    transform var(--motion-base) var(--ease-soft),
    background var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out),
    border-color var(--motion-base) var(--ease-out);
}

.hero {
  min-height: 380px;
  padding: clamp(26px, 5vw, 58px);
  border-radius: 32px;
  animation: panelRise 640ms var(--ease-soft) 80ms both;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-copy p:last-child {
  max-width: 820px;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.status-board {
  align-self: stretch;
  display: grid;
  gap: 12px;
}

.nested-course.is-new-course {
  border: 1px solid #7aa35a;
  background-color: rgba(122, 163, 90, 0.05);
  box-shadow: 0 0 10px rgba(122, 163, 90, 0.2);
}

.nested-course.is-edited-course {
  border: 1px solid #f4c542;
  background-color: rgba(244, 197, 66, 0.05);
  box-shadow: 0 0 10px rgba(244, 197, 66, 0.2);
}

.compact-search {
  max-height: 120px;
}

.status-board div {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.status-board span {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-board strong {
  font-size: 1.08rem;
}

.status-board small {
  color: var(--muted);
}

.section-band {
  padding-top: 56px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.page-heading {
  padding: 34px 0 10px;
}

.page-heading h1 {
  margin-bottom: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.news-card {
  border-radius: 22px;
  padding: 24px;
}

.info-card:hover {
  transform: translateY(-3px);
  background: var(--hover-bg-strong);
  box-shadow: 0 26px 72px rgba(35, 46, 70, 0.16);
}

.info-card:active {
  transform: scale(0.97);
}

.join-grid {
  margin-bottom: 18px;
}

.join-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
}

.join-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.join-panel p {
  margin-bottom: 0;
}

.privacy-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.privacy-policy {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 26px;
}

.privacy-section {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.privacy-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.privacy-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}

.privacy-section p {
  max-width: 900px;
  margin-bottom: 0;
}

.privacy-section a {
  color: var(--accent);
  font-weight: 900;
}

.cookie-table {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.cookie-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.cookie-row h3 {
  margin-bottom: 4px;
}

.cookie-row p {
  font-size: 0.94rem;
  line-height: 1.55;
}

.cookie-row > span {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-tile {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
  cursor: pointer;
  transition:
    transform var(--motion-base) var(--ease-soft),
    background var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
}

.news-tile:hover,
.news-tile:focus-visible {
  transform: translateY(-3px);
  background: var(--hover-bg-glass);
  box-shadow: 0 28px 76px rgba(35, 46, 70, 0.17);
  outline: none;
}

.news-tile:active {
  transform: scale(0.97);
}

.news-image-wrap {
  aspect-ratio: 16 / 10;
  background: var(--accent-soft);
}

.news-image-wrap img,
.post-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-image-placeholder,
.post-hero-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(244, 197, 66, 0.42), rgba(255, 255, 255, 0.55)),
    var(--bg-soft);
  color: var(--accent);
  font-weight: 900;
}

.news-tile-copy {
  padding: 20px;
}

.news-tile-copy small {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 900;
}

.news-tile-copy h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.12;
}

.news-tile-copy p {
  margin-bottom: 0;
}

.back-button {
  margin: 32px 0 18px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--hover-bg-soft);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.post-detail {
  overflow: hidden;
  border-radius: 30px;
}

.post-hero-image {
  max-height: 520px;
}

.post-hero-placeholder {
  min-height: 260px;
}

.post-detail-copy {
  padding: clamp(24px, 5vw, 52px);
}

.post-detail-copy p:last-child {
  white-space: normal;
}

.map-app-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: #7aa35a;
}

.map-app-view.is-active {
  display: block;
}

.public-map-canvas {
  display: block;
  width: 100%;
  height: 100dvh;
  cursor: grab;
  touch-action: none;
  -ms-touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.public-map-canvas:active {
  cursor: grabbing;
}

.map-edge-controls {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 55;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.map-round-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(20, 26, 22, 0.88);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(11, 18, 27, 0.26);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1;
  backdrop-filter: blur(18px);
}

.map-round-button:hover,
.map-round-button:focus-visible {
  background: rgba(29, 35, 31, 0.96);
  outline: none;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(20, 26, 22, 0.72);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(11, 18, 27, 0.18);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1;
  transition:
    transform var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(20, 26, 22, 0.9);
  outline: none;
}

#mapMenuButton {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.menu-line {
  display: block;
  width: 20px;
  height: 2.2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-line + .menu-line {
  margin-top: 0;
}

.map-mode-menu {
  display: grid;
  gap: 6px;
  min-width: 144px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(20, 26, 22, 0.92);
  animation: menuReveal 180ms var(--ease-soft) both;
}

.map-mode-menu button,
.map-mode-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.map-mode-menu button.is-active,
.map-mode-menu button:hover,
.map-mode-menu button:focus-visible,
.map-mode-menu a:hover,
.map-mode-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.public-map-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 54;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(430px, calc(100% - 110px));
  padding: 20px;
  overflow: hidden;
  border-radius: 24px;
}

.public-map-panel,
.map-panel-body,
.map-mode-menu {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.34) rgba(255, 255, 255, 0.07);
}

.public-map-panel::-webkit-scrollbar,
.map-panel-body::-webkit-scrollbar,
.map-mode-menu::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.public-map-panel::-webkit-scrollbar-track,
.map-panel-body::-webkit-scrollbar-track,
.map-mode-menu::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.public-map-panel::-webkit-scrollbar-thumb,
.map-panel-body::-webkit-scrollbar-thumb,
.map-mode-menu::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  background-clip: padding-box;
}

.public-map-panel::-webkit-scrollbar-thumb:hover,
.map-panel-body::-webkit-scrollbar-thumb:hover,
.map-mode-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 197, 66, 0.58);
  background-clip: padding-box;
}

.public-map-panel.is-bottom {
  top: auto;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(560px, calc(100% - 44px));
  height: var(--panel-height, min(44dvh, 430px));
  max-height: calc(100dvh - 18px);
  padding: 8px 14px 0;
  border-radius: 20px 20px 0 0;
  transform: translateX(-50%);
  background: rgba(45, 53, 48, 0.78);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 80px rgba(11, 18, 27, 0.32);
  backdrop-filter: blur(28px) saturate(135%);
  transition:
    opacity var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.public-map-panel.is-bottom.is-resizing {
  transition: none;
}

.public-map-panel.is-bottom.is-dismiss-preview {
  opacity: 0.48;
  transform: translateX(-50%) translateY(28px) scale(0.985);
}

.public-map-panel.is-center {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(760px, calc(100% - 124px));
  max-height: min(92dvh, 820px);
  transform: translate(-50%, -50%);
  background: rgba(20, 26, 22, 0.9);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 90px rgba(11, 18, 27, 0.38);
}

.public-map-panel.is-center .map-panel-head {
  flex: 0 0 auto;
  min-height: 38px;
}

.public-map-panel.is-center.is-wide {
  width: min(1040px, calc(100% - 96px));
  max-height: min(94dvh, 880px);
}

.public-map-panel.is-fullscreen {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  max-height: none;
  padding: 22px clamp(16px, 4vw, 48px) 0;
  border-radius: 0;
  transform: none;
}

.map-panel-grip {
  display: none;
  justify-self: center;
  width: 58px;
  height: 16px;
  margin: -3px 0 2px;
  border: 0;
  background: transparent;
  cursor: ns-resize;
  touch-action: none;
}

.public-map-panel.is-bottom .map-panel-grip {
  display: block;
}

.map-panel-grip::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: var(--footer-bg);
}

.map-panel-grip:hover::before,
.map-panel-grip:focus-visible::before {
  background: rgba(255, 255, 255, 0.76);
}

.map-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.map-panel-head h2 {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 1.32rem;
}

.public-map-panel.is-center .map-panel-head h2,
.public-map-panel.is-center .eyebrow {
  color: rgba(255, 255, 255, 0.94);
}

.public-map-panel.is-bottom .map-panel-head {
  align-items: center;
  min-height: 34px;
  margin-bottom: 8px;
}

.public-map-panel.is-bottom .map-panel-head h2,
.public-map-panel.is-bottom .eyebrow {
  color: rgba(255, 255, 255, 0.94);
}

.public-map-panel.is-bottom .eyebrow {
  display: none;
}

.public-map-panel.is-bottom .ghost-button {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.28rem;
  line-height: 1;
}

.public-map-panel.is-bottom #mapPanelCloseButton {
  font-size: 0;
  line-height: 0;
}

.public-map-panel.is-bottom #mapPanelCloseButton::before,
.public-map-panel.is-bottom #mapPanelCloseButton::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.public-map-panel.is-bottom #mapPanelCloseButton::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.public-map-panel.is-bottom #mapPanelCloseButton::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-panel-body,
.live-legend,
.map-setting-list,
.departure-list,
.public-brigade-list,
.public-line-grid {
  display: grid;
  gap: 8px;
}

.public-line-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.map-panel-body {
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.departure-list {
  align-content: start;
  grid-auto-rows: max-content;
}

.public-map-panel.is-center .map-panel-body {
  padding-top: 8px;
}

.map-settings-stack {
  display: grid;
  gap: 6px;
}

.map-settings-section {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(24, 31, 26, 0.86);
  color: rgba(255, 255, 255, 0.9);
}

.map-settings-section h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.map-settings-options {
  display: grid;
  gap: 12px;
}

.map-settings-section .check-row {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 850;
}

.map-settings-section .check-row input {
  accent-color: var(--accent-2);
}

.map-empty-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.public-map-panel.is-bottom .map-empty-copy {
  color: rgba(255, 255, 255, 0.78);
}

.departure-empty {
  display: grid;
  place-items: center;
  min-height: 118px;
  border-radius: 16px;
  background: rgba(29, 35, 31, 0.54);
  text-align: center;
  font-weight: 900;
}

.live-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.live-icon {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid currentColor;
}

.live-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: currentColor;
}

.live-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background:
    linear-gradient(currentColor, currentColor) center top / 2px 3px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 2px 3px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 3px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 3px 2px no-repeat;
  transform: translate(-50%, -50%);
}

.live-icon.is-planned {
  color: #57df74;
}

.live-icon.is-early {
  color: #f5a623;
}

.live-icon.is-delayed {
  color: #ff4d4d;
}

.live-icon.is-live {
  color: #b8c0ba;
}

.live-icon.is-offline {
  position: relative;
  color: #b8c0ba;
}

.live-icon.is-offline::before {
  display: none;
}

.live-icon.is-offline::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)) center / 16px 16px no-repeat,
    linear-gradient(currentColor, currentColor) center top / 2px 3px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 2px 3px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 3px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 3px 2px no-repeat;
  transform: translate(-50%, -50%);
}

.departure-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(116px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.line-badge {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--line-color);
  color: #162033;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.departure-row strong,
.public-brigade-card strong {
  display: block;
}

.departure-row small,
.departure-time small,
.public-brigade-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.departure-time {
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.departure-time .live-icon {
  width: 18px;
  height: 18px;
}

.departure-time strong {
  font-size: 1.25rem;
}

.public-line-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--line-color);
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  font-weight: 950;
}

.public-line-button span {
  font-size: 0.92rem;
  font-weight: 950;
}

.public-line-button small {
  color: var(--muted);
  font-weight: 800;
}

.public-line-button:hover,
.public-line-button:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.public-line-search {
  position: relative;
  display: grid;
  align-items: center;
}

.public-line-search span {
  position: absolute;
  left: 16px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
}

.public-line-search span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  transform: rotate(45deg);
}

.public-line-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 16px 0 42px;
  border: 0;
  border-radius: 18px;
  background: rgba(20, 26, 22, 0.64);
  color: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-weight: 850;
  outline: none;
}

.public-line-search input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.public-brigade-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.brigade-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.brigade-course-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.brigade-course-row > span {
  color: var(--accent);
  font-weight: 950;
}

.map-status-pill {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 54;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.departure-card {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 6px;
  height: 78px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(29, 35, 31, 0.9);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}

.departure-card:hover,
.departure-card:focus-within,
.departure-card.is-expanded {
  background: rgba(29, 35, 31, 0.96);
  transform: translateY(-1px);
}

.departure-card.is-expanded {
  grid-template-rows: auto auto auto;
  height: 116px;
}

.departure-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.departure-info {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.departure-info > strong {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.departure-minutes {
  display: grid;
  justify-items: end;
  min-width: 38px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.08;
}

.departure-minutes strong {
  font-size: 0.92rem;
}

.departure-minutes span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
}

.departure-status {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #b8c0ba;
  font-size: 0.76rem;
  font-weight: 900;
}

.departure-status strong,
.departure-status span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.departure-status span:last-child {
  font-weight: 500;
}

.departure-status b {
  font-weight: 950;
}

.departure-status s {
  color: #a7afaa;
  font-weight: 500;
}

.departure-status:has(.live-icon.is-delayed) {
  color: #ff4d4d;
}

.departure-status:has(.live-icon.is-early) {
  color: #f5a623;
}

.departure-status:has(.live-icon.is-planned) {
  color: #57df74;
}

.departure-status:has(.live-icon.is-live),
.departure-status:has(.live-icon.is-offline) {
  color: #b8c0ba;
}

.departure-status .live-icon {
  width: 13px;
  height: 13px;
  border-width: 2px;
}

.departure-status .live-icon::before {
  inset: 2px;
}

.departure-status .live-icon::after {
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  background:
    linear-gradient(currentColor, currentColor) center top / 2px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 2px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 2px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 2px 2px no-repeat;
  transform: translate(-50%, -50%);
}

.departure-status .live-icon.is-offline {
  background: none;
}

.departure-status .live-icon.is-offline::before {
  display: none;
}

.departure-status .live-icon.is-offline::after {
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)) center / 13px 13px no-repeat,
    linear-gradient(currentColor, currentColor) center top / 2px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 2px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 2px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 2px 2px no-repeat;
  transform: translate(-50%, -50%);
}

.departure-actions {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 8vw, 82px);
  padding-top: 5px;
}

.show-course-button {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: max-content;
  margin: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  font-weight: 950;
  font-size: 0.76rem;
}

.show-course-button:hover,
.show-course-button:focus-visible {
  color: var(--accent-2);
  outline: none;
}

.route-glyph {
  width: 22px;
  height: 18px;
  background:
    radial-gradient(circle at 4px 4px, currentColor 0 2px, transparent 2px),
    radial-gradient(circle at 18px 4px, currentColor 0 2px, transparent 2px),
    radial-gradient(circle at 11px 15px, currentColor 0 2px, transparent 2px),
    linear-gradient(135deg, transparent 46%, currentColor 47% 53%, transparent 54%),
    linear-gradient(45deg, transparent 46%, currentColor 47% 53%, transparent 54%);
}

.vehicle-glyph {
  position: relative;
  width: 22px;
  height: 20px;
  border-radius: 5px 5px 4px 4px;
  background: currentColor;
}

.vehicle-glyph::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 6px;
  border-radius: 2px;
  background: rgba(29, 35, 31, 0.9);
}

.vehicle-glyph::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: -3px;
  left: 4px;
  height: 5px;
  background:
    radial-gradient(circle at left center, currentColor 0 3px, transparent 3px),
    radial-gradient(circle at right center, currentColor 0 3px, transparent 3px);
}

.line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 36px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.line-badge-icon {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  mask: url("/assets/bus-icon.png") center / contain no-repeat;
  -webkit-mask: url("/assets/bus-icon.png") center / contain no-repeat;
}

.line-badge-icon::before,
.line-badge-icon::after {
  display: none;
}

.line-badge-icon::before {
  left: 2px;
}

.line-badge-icon::after {
  right: 2px;
}

.public-route-list {
  position: relative;
  display: grid;
  gap: 0;
}

.public-route-stop {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 18px;
}

.public-route-stop::before {
  content: "";
  position: absolute;
  top: 11px;
  bottom: -11px;
  left: 6px;
  width: 4px;
  background: var(--route-color, rgba(244, 197, 66, 0.74));
}

.public-route-stop:last-child::before {
  display: none;
}

.route-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 3px solid #1d231f;
  border-radius: 999px;
  background: var(--route-color, var(--accent-2));
}

.public-route-stop.is-current .route-dot {
  background: #1d231f;
  box-shadow: 0 0 0 4px rgba(244, 197, 66, 0.32);
}

.public-route-stop strong {
  display: block;
}

.route-stop-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.route-stop-name strong {
  min-width: 0;
}

.route-request-hand {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}

.route-driver-only-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid #ff4d4d;
  border-radius: 999px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}

.route-driver-only-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: #ff4d4d;
  transform: translate(-50%, -50%);
}

.public-map-panel.is-bottom .route-request-hand,
.public-map-panel.is-bottom .route-driver-only-icon {
  width: 16px;
  height: 16px;
}

.public-map-panel.is-bottom .route-driver-only-icon::before {
  width: 12px;
}

.public-route-stop small {
  color: var(--muted);
  font-weight: 900;
}

.route-timetable-list .public-route-stop {
  grid-template-columns: 48px 22px minmax(0, 1fr);
  align-items: start;
}

.route-timetable-list .public-route-stop::before {
  left: 64px;
}

.route-timetable-list .route-time {
  display: grid;
  align-items: center;
  justify-items: end;
  min-height: 22px;
  padding-top: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: right;
}

.route-time-stack {
  display: grid;
  justify-items: end;
  gap: 1px;
  transform: translateY(-4px);
}

.route-time-stack s {
  color: rgba(255, 255, 255, 0.5);
}

.route-time-stack b {
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 950;
}

.route-time-stack.is-delayed b {
  color: #ff4d4d;
}

.route-time-stack.is-early b {
  color: #f5a623;
}

.public-map-panel.is-bottom .public-route-stop small,
.public-map-panel.is-bottom .public-route-stop strong {
  color: rgba(255, 255, 255, 0.9);
}

.public-map-panel.is-bottom [data-route-back],
.public-map-panel.is-bottom [data-brigade-route-back] {
  display: none;
}

.line-route-panel {
  display: grid;
  gap: 10px;
}

.line-route-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.line-route-heading > strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: rgba(20, 26, 22, 0.74);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  font-weight: 950;
}

.map-action-button.is-icon {
  width: 42px;
  padding: 0;
  font-size: 1.2rem;
}

.line-panel-actions {
  position: absolute;
  top: 21px;
  right: 56px;
  z-index: 2;
}

.line-direction-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.line-direction-button span {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  transform-origin: 50% 50%;
  transition: transform 300ms var(--ease-out);
  will-change: transform;
}

.line-direction-button span::before,
.line-direction-button span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.line-direction-button span::before {
  top: 1px;
  transform: translateX(-50%) rotate(45deg);
}

.line-direction-button span::after {
  bottom: 1px;
  transform: translateX(-50%) rotate(225deg);
}

.line-direction-button.is-flipped span {
  transform: rotate(160deg);
}

.line-direction-button:hover,
.line-direction-button:focus-visible {
  background: rgba(244, 197, 66, 0.28);
  outline: none;
}

.map-action-button:hover,
.map-action-button:focus-visible {
  background: rgba(244, 197, 66, 0.28);
  outline: none;
}

.departure-actions .map-action-button,
.show-course-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  font-weight: 950;
}

.show-course-button:hover,
.show-course-button:focus-visible {
  background: rgba(244, 197, 66, 0.24);
  color: rgba(255, 255, 255, 0.98);
}

.public-date-strip,
.brigade-line-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  min-height: 34px;
  padding: 2px 0 6px;
  flex: 0 0 auto;
}

.public-date-strip {
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.public-date-strip button {
  width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.35rem;
}

.public-date-strip strong {
  color: var(--accent-2);
}

.public-brigade-list.is-picker {
  gap: 2px;
  overflow: hidden;
  border-radius: 18px;
}

.public-brigade-choice {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border: 0;
  background: rgba(29, 35, 31, 0.82);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  text-align: left;
}

.public-brigade-choice:hover,
.public-brigade-choice:focus-visible {
  background: rgba(38, 47, 41, 0.94);
  outline: none;
}

.public-brigade-choice span {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 950;
}

.public-brigade-choice small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brigade-day-list {
  display: grid;
  gap: 6px;
  padding-bottom: 24px;
  min-height: 0;
}

.brigade-break {
  margin: 0 0 0 58px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 900;
}

.brigade-timeline-card {
  display: grid;
  grid-template-columns: 48px 20px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 86px;
  padding: 10px 14px 10px 0;
  border: 0;
  border-radius: 16px;
  background: rgba(29, 35, 31, 0.82);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-align: left;
}

.brigade-timeline-card:hover,
.brigade-timeline-card:focus-visible {
  background: rgba(38, 47, 41, 0.96);
  outline: none;
}

.brigade-timeline-card.is-live-course {
  background:
    linear-gradient(90deg, rgba(244, 197, 66, 0.2), rgba(29, 35, 31, 0.9) 42%),
    rgba(29, 35, 31, 0.96);
  box-shadow:
    inset 4px 0 0 var(--line-color, #f4c542),
    0 12px 30px rgba(0, 0, 0, 0.18);
}

.brigade-timeline-card.is-live-course .brigade-course-copy small:last-child {
  color: #f4c542;
}

.brigade-course-time {
  display: grid;
  grid-template-rows: 11px minmax(0, 1fr) 11px;
  align-items: center;
  justify-items: end;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
}

.brigade-course-time b {
  line-height: 1;
}

.brigade-course-time b:last-child {
  grid-row: 3;
}

.brigade-timeline-line {
  position: relative;
  width: 16px;
  border-radius: 999px;
  background:
    linear-gradient(
      to bottom,
      transparent 0,
      transparent 12px,
      var(--line-color, #257a44) 12px,
      var(--line-color, #257a44) calc(100% - 12px),
      transparent calc(100% - 12px),
      transparent 100%
    )
    center / 7px 100% no-repeat;
}

.brigade-timeline-line::before,
.brigade-timeline-line::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 3px solid var(--line-color, #257a44);
  border-radius: 999px;
  background: #ffffff;
  transform: translateX(-50%);
}

.brigade-timeline-line::before {
  top: 4px;
}

.brigade-timeline-line::after {
  bottom: 4px;
}

.brigade-course-copy {
  display: grid;
  align-content: center;
  gap: 3px;
}

.brigade-course-copy strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.brigade-course-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.brigade-course-copy b {
  color: rgba(255, 255, 255, 0.9);
}

.vehicle-panel-actions {
  position: absolute;
  top: 21px;
  right: 56px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.vehicle-icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.vehicle-icon-button:hover,
.vehicle-icon-button:focus-visible {
  background: rgba(244, 197, 66, 0.28);
  outline: none;
}

.vehicle-target-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.vehicle-target-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 19px;
  background:
    linear-gradient(currentColor, currentColor) center top / 2px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 2px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 2px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 2px 2px no-repeat;
  transform: translate(-50%, -50%);
}

.vehicle-target-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: transparent;
  transition: background var(--motion-fast) var(--ease-out);
}

.vehicle-track-button.is-tracking .vehicle-target-icon::after {
  background: currentColor;
}

.vehicle-menu-button span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -6px currentColor, 0 6px currentColor;
}

.vehicle-mini-menu {
  position: absolute;
  top: 44px;
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(29, 35, 31, 0.96);
  box-shadow: 0 20px 50px rgba(11, 18, 27, 0.34);
}

.vehicle-mini-menu strong {
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.56);
}

.vehicle-mini-menu button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.vehicle-mini-menu button:hover,
.vehicle-mini-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.vehicle-course-list .public-route-stop {
  grid-template-columns: 48px 22px minmax(0, 1fr) 44px;
  align-items: start;
  color: rgba(255, 255, 255, 0.88);
  overflow: visible;
}

.vehicle-course-list .public-route-stop::before {
  left: 64px;
}

.route-time,
.route-minutes {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
}

.vehicle-course-list .route-time {
  display: grid;
  align-items: center;
  min-height: 22px;
  padding-top: 0;
  font-weight: 950;
}

.route-minutes {
  color: rgba(255, 255, 255, 0.86);
}

.vehicle-course-list .public-route-stop.is-passed .route-dot {
  opacity: 1;
}

.vehicle-course-list .public-route-stop.is-passed .route-time,
.vehicle-course-list .public-route-stop.is-passed .route-time-stack b,
.vehicle-course-list .public-route-stop.is-passed .route-time-stack s,
.vehicle-course-list .public-route-stop.is-passed .route-stop-name strong,
.vehicle-course-list .public-route-stop.is-passed .route-status {
  color: rgba(255, 255, 255, 0.48);
}

.vehicle-course-list .public-route-stop.is-passed .route-minutes {
  visibility: hidden;
}

.mini-bus-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(35, 42, 37, 0.96);
  box-shadow:
    0 0 0 4px rgba(244, 197, 66, 0.18),
    0 0 18px rgba(244, 197, 66, 0.38),
    0 7px 18px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.route-dot .mini-bus-dot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mini-bus-dot::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: #ffffff;
  mask: url("/assets/bus-icon.png") center / contain no-repeat;
  -webkit-mask: url("/assets/bus-icon.png") center / contain no-repeat;
}

.vehicle-course-list .public-route-stop.is-between-stops.is-current .route-dot,
.vehicle-course-list .public-route-stop.is-approaching-stop.is-current .route-dot {
  background: var(--route-color, var(--accent-2));
  box-shadow: none;
}

.vehicle-course-list .route-between-bus {
  z-index: 6;
  top: calc(50% + 11px);
  left: 66px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.vehicle-course-list .route-status {
  color: #60ef82;
  font-weight: 950;
}

.vehicle-course-list .route-status.is-planned {
  color: #60ef82;
}

.vehicle-course-list .route-status.is-live,
.vehicle-course-list .route-status.is-offline {
  color: #b8c0ba;
}

.vehicle-course-list .route-status.is-delayed {
  color: #ff6262;
}

.vehicle-course-list .route-status.is-early {
  color: #f5a623;
}

.vehicle-course-list .route-status.is-waiting {
  color: #b8c0ba;
}

.public-map-panel.is-bottom .vehicle-course-list .route-status.is-planned {
  color: #60ef82;
}

.public-map-panel.is-bottom .vehicle-course-list .route-status.is-live,
.public-map-panel.is-bottom .vehicle-course-list .route-status.is-offline {
  color: #b8c0ba;
}

.public-map-panel.is-bottom .vehicle-course-list .route-status.is-delayed {
  color: #ff6262;
}

.public-map-panel.is-bottom .vehicle-course-list .route-status.is-early {
  color: #f5a623;
}

.public-map-panel.is-bottom .vehicle-course-list .route-status.is-waiting {
  color: #b8c0ba;
}

.line-badge.is-unassigned {
  min-width: 58px;
  background: #2f6fc7;
}

.vehicle-no-route {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 34px 16px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.vehicle-no-route strong {
  font-size: 1.12rem;
  font-weight: 950;
}

.vehicle-info-card {
  display: grid;
  gap: 18px;
}

.vehicle-info-card dl {
  overflow: hidden;
  margin: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.vehicle-info-card dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vehicle-info-card dl div:last-child {
  border-bottom: 0;
}

.vehicle-info-card dt {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 900;
}

.vehicle-info-card dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.vehicle-info-card figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 18px;
}

.vehicle-info-card img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.vehicle-info-card figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.vehicle-info-card.is-empty {
  min-height: 160px;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 950;
}

.empty-state {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
}

.admin-body {
  background:
    linear-gradient(135deg, rgba(244, 197, 66, 0.2), transparent 34%),
    linear-gradient(315deg, rgba(217, 116, 65, 0.13), transparent 30%),
    #f2f4f8;
}

:root[data-theme="dark"] .admin-body {
  background:
    linear-gradient(135deg, rgba(244, 197, 66, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(217, 116, 65, 0.06), transparent 30%),
    #0b0e14;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .admin-body {
    background:
      linear-gradient(135deg, rgba(244, 197, 66, 0.1), transparent 34%),
      linear-gradient(315deg, rgba(217, 116, 65, 0.06), transparent 30%),
      #0b0e14;
  }
}

.admin-shell {
  max-width: 1280px;
}

.ghost-button,
.primary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out);
}

.ghost-button:hover,
.ghost-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.danger-button:hover,
.danger-button:focus-visible,
.back-button:hover,
.back-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.ghost-button:active,
.primary-button:active,
.danger-button:active,
.back-button:active {
  transform: scale(0.96);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.primary-button {
  border: 1px solid rgba(154, 95, 0, 0.22);
  background: var(--accent-2);
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(154, 95, 0, 0.18);
}

.danger-button {
  border: 1px solid rgba(180, 35, 24, 0.18);
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  min-height: 420px;
  padding: clamp(26px, 5vw, 56px);
  border-radius: 32px;
  animation: panelRise 560ms var(--ease-soft) both;
}

.login-form,
.editor-panel {
  display: grid;
  gap: 12px;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.login-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--footer-bg);
}

.two-factor-login h2 {
  margin: 0;
  font-size: 1.45rem;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.success-message {
  color: var(--accent);
}

.admin-dashboard[hidden],
.login-panel[hidden] {
  display: none;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  max-width: none;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  white-space: normal;
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: block;
  animation: panelRise 360ms var(--ease-soft) both;
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 22px;
}

.admin-heading h1 {
  margin-bottom: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#newsAdminView .admin-grid {
  grid-template-columns: minmax(0, 1fr);
}

.article-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
  gap: 12px;
  align-items: end;
}

.editor-panel,
.article-list {
  border-radius: 24px;
  padding: 22px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: auto;
  height: 18px;
  accent-color: var(--accent-2);
}

.editor-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.list-heading h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.list-heading span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.admin-news-list {
  display: grid;
  gap: 12px;
}

.admin-news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  transition:
    transform var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}

.admin-news-card:hover {
  transform: translateY(-2px);
  background: var(--hover-bg-medium);
}

.admin-news-card h3 {
  margin-bottom: 6px;
}

.admin-news-card p {
  margin-bottom: 0;
}

.admin-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-news-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.map-admin-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: center;
  min-height: 360px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
}

.schedule-dashboard {
  display: grid;
  gap: 18px;
}

.admin-view.is-module-open > .admin-heading {
  display: none;
}

.admin-view.is-module-open .schedule-dashboard {
  margin-top: 0;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  display: grid;
  place-items: center;
  min-height: 108px;
  padding: 22px;
  border-radius: 22px;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition:
    transform var(--motion-base) var(--ease-soft),
    background var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-3px);
  background: var(--hover-bg-glass);
  outline: none;
}

.module-card.is-disabled,
.module-card:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.35);
  transform: none;
}

.module-card strong {
  font-size: 1.08rem;
}

.module-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.central-sip-panel {
  border-radius: 24px;
  padding: 22px;
}

.central-sip-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.central-sip-panel[hidden] {
  display: none;
}

.admin-shell.is-central-view .central-sip-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 85;
  width: min(560px, calc(100% - 36px));
  max-height: min(520px, calc(100dvh - 130px));
  margin: 0;
  overflow: auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 26px 70px rgba(13, 20, 18, 0.26);
}

.admin-shell.is-central-view {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
}

.admin-shell.is-central-view main {
  min-height: 100dvh;
}

.admin-shell.is-central-view .topbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 80;
  margin: 0;
}

.admin-shell.is-central-view .site-footer,
.admin-shell.is-central-view #centralAdminView > .admin-heading {
  display: none;
}

.admin-shell.is-central-view #centralAdminView {
  min-height: 100dvh;
}

.central-map-view {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background: #789b5d;
}

.central-map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.central-vehicle-panel {
  position: absolute;
  top: 112px;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  width: min(410px, calc(100% - 36px));
  padding: 18px;
  border-radius: 24px;
  background: rgba(20, 30, 22, 0.72);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 80px rgba(13, 20, 18, 0.34);
  backdrop-filter: blur(20px) saturate(140%);
}

.central-vehicle-panel[hidden] {
  display: none;
}

.central-vehicle-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.central-vehicle-panel__top h2 {
  margin: 2px 0 0;
  font-size: 1.18rem;
}

.central-vehicle-panel .eyebrow {
  color: rgba(244, 197, 66, 0.9);
}

.central-vehicle-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  line-height: 1.5;
  text-align: center;
}

.central-vehicle-details {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.central-vehicle-card,
.central-next-stops {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #25272b;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.central-vehicle-card h3,
.central-next-stops h3 {
  margin: 0;
  color: #26282c;
  font-size: 1.1rem;
  line-height: 1.22;
}

.central-vehicle-card h3 span {
  font-weight: 800;
}

.central-vehicle-route {
  margin: 0;
  color: #2f3135;
  font-size: 1.05rem;
}

.central-vehicle-route strong {
  font-weight: 950;
}

.central-vehicle-meta {
  display: grid;
  margin: 0;
  border-top: 3px solid #2f3135;
}

.central-vehicle-meta div {
  display: grid;
  grid-template-columns: minmax(120px, 0.44fr) minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(36, 39, 43, 0.14);
}

.central-vehicle-meta dt {
  color: #3f4248;
  font-weight: 950;
}

.central-vehicle-meta dd {
  margin: 0;
  color: #25272b;
  font-weight: 850;
}

.central-state-departure,
.central-state-ok {
  color: #2f8f36 !important;
}

.central-state-late {
  color: #c92020 !important;
}

.central-state-early {
  color: #c76b00 !important;
}

.central-state-offroute {
  color: #5b616b !important;
}

.central-next-stops ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.central-next-stops li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  color: #33363b;
  font-size: 0.98rem;
}

.central-next-stops li span,
.central-next-stops li em {
  font-style: normal;
  font-weight: 950;
}

.central-next-stops li strong {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.central-next-stops p {
  margin: 0;
  color: #555b63;
}

.central-report-list {
  display: grid;
  gap: 8px;
}

.central-report-row {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.central-report-row.has-issues {
  box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.92);
}

.central-report-row span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.central-report-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(244, 197, 66, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(246, 248, 252, 0.98), rgba(225, 231, 240, 0.98));
}

.central-report-modal[hidden] {
  display: none;
}

.central-report-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, calc(100% - 42px));
  height: min(820px, calc(100dvh - 42px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 32px 90px rgba(22, 32, 51, 0.18);
  backdrop-filter: blur(24px) saturate(145%);
}

.central-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(22, 32, 51, 0.08);
}

.central-report-head h2 {
  margin: 2px 0 0;
}

.central-report-body {
  display: grid;
  gap: 18px;
  align-content: start;
  overflow: auto;
  padding: 20px 26px 28px;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.report-stat-card,
.report-brigade-card,
.report-course-card {
  border: 1px solid rgba(22, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(22, 32, 51, 0.08);
}

.report-stat-card {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.report-stat-card span,
.report-course-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.report-stat-card strong {
  color: var(--ink);
  font-size: 1.22rem;
}

.report-section {
  display: grid;
  gap: 12px;
}

.report-section h3 {
  margin: 4px 0 0;
  font-size: 1.12rem;
}

.report-subtitle {
  margin: -6px 0 4px;
  color: var(--muted);
  font-weight: 800;
}

.report-back-button {
  justify-self: start;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(22, 32, 51, 0.1);
  border-radius: 999px;
  background: var(--hover-bg-medium);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(22, 32, 51, 0.08);
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}

.report-back-button:hover,
.report-back-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.report-brigade-grid,
.report-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.report-brigade-card,
.report-course-card {
  display: grid;
  gap: 5px;
  padding: 15px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}

.report-brigade-card:hover,
.report-course-card:hover,
.report-brigade-card:focus-visible,
.report-course-card:focus-visible,
.report-brigade-card.is-selected,
.report-course-card.is-selected {
  transform: translateY(-2px);
  background: var(--hover-bg-glass);
  outline: none;
}

.report-brigade-card.has-issues,
.report-course-card.has-issues {
  box-shadow:
    0 16px 36px rgba(185, 28, 28, 0.16),
    inset 0 0 0 1px rgba(239, 68, 68, 0.34);
}

.report-brigade-card.is-ok,
.report-course-card.is-ok {
  box-shadow:
    0 16px 36px rgba(22, 163, 74, 0.14),
    inset 0 0 0 1px rgba(34, 197, 94, 0.32);
}

.report-course-card.has-warning {
  box-shadow:
    0 16px 36px rgba(217, 119, 6, 0.14),
    inset 0 0 0 1px rgba(245, 158, 11, 0.38);
}

.report-brigade-card span,
.report-course-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.report-stop-timeline {
  display: grid;
  gap: 0;
  padding: 10px 0;
}

.report-stop-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px 24px minmax(0, 1fr);
  gap: 10px;
  min-height: 58px;
}

.report-stop-row::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: -17px;
  left: 44px;
  width: 6px;
  border-radius: 999px;
  background: var(--route-color, var(--accent-2));
}

.report-stop-row:last-child::before {
  display: none;
}

.report-stop-alert {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 5px;
  border-radius: 999px;
  color: #dc2626;
  font-size: 1.3rem;
  font-weight: 1000;
}

.report-stop-row.has-warning .report-stop-alert {
  color: #f59e0b;
}

.report-stop-dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin-top: 8px;
  border: 4px solid var(--route-color, var(--accent-2));
  border-radius: 999px;
  background: #fff;
}

.report-stop-copy {
  display: grid;
  gap: 2px;
  padding-bottom: 18px;
}

.report-stop-copy strong {
  color: var(--ink);
}

.report-stop-copy strong.is-crossed {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.report-stop-copy span {
  color: var(--muted);
  font-weight: 800;
}

.report-stop-copy s {
  color: var(--muted);
  text-decoration-thickness: 2px;
}

.report-stop-copy b.is-ok {
  color: #16a34a;
}

.report-stop-copy b,
.report-stop-copy small {
  color: #dc2626;
  font-weight: 950;
}

.report-stop-copy b.has-warning,
.report-stop-row.has-warning .report-stop-copy small {
  color: #f59e0b;
}

.report-stop-copy em {
  color: #2563eb;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 700px) {
  .admin-shell.is-central-view .topbar {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .central-vehicle-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(72dvh, 620px);
    border-radius: 24px 24px 0 0;
  }
}

.sip-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-right: 128px;
}

.sip-panel-heading h2 {
  margin: 0;
}

.sip-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 16px;
  right: 16px;
}

.sip-toggle-row {
  width: max-content;
  max-width: 100%;
  font-weight: 900;
}

.central-sip-panel .sip-toggle-row {
  padding: 8px 0;
}

.central-sip-panel textarea {
  min-height: 118px;
}

.map-module[hidden],
.course-tab[hidden],
.brigade-tab[hidden],
.brigade-detail[hidden] {
  display: none;
}

.map-back-button {
  margin: 0 0 16px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tab-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  transition:
    background var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out);
}

.tab-button.is-active,
.tab-button:hover,
.tab-button:focus-visible {
  background: var(--accent-2);
  transform: translateY(-1px);
  outline: none;
}

.course-editor-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1180px;
}

.brigade-editor-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1180px;
}

.brigade-edit-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: 22px;
  align-items: start;
}

.course-edit-card,
.course-route-panel,
.brigade-edit-card,
.brigade-draft-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border-radius: 24px;
}

.search-results {
  display: grid;
  gap: 8px;
}

.search-result,
.compact-main-button,
.brigade-card {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.search-result {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  transition:
    background var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.search-result:hover,
.search-result:focus-visible,
.search-result.is-selected {
  background: var(--accent-soft);
  transform: translateY(-1px);
  outline: none;
}

.search-result span {
  color: var(--muted);
  font-size: 0.84rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.schedule-editor-grid {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
}

.stop-admin-stack {
  display: grid;
  gap: 18px;
}

.list-search {
  margin-bottom: 14px;
}

.coords-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.subeditor {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.subeditor h3 {
  margin-bottom: 0;
}

.course-route-panel {
  align-content: start;
}

.brigade-draft-panel,
.brigade-detail-card {
  align-content: start;
}

.brigade-picker-panel,
.brigade-detail-card {
  min-width: 0;
}

.map-editor-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  height: clamp(560px, calc(100vh - 252px), 860px);
  min-height: 0;
  overflow: visible;
}

.map-editor-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
}

.map-canvas-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 52px rgba(25, 32, 44, 0.1);
}

.map-editor-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.map-editor-canvas:active {
  cursor: grabbing;
}

.map-editor-toolbar {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
}

.map-tool-button {
  width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
}

.map-tool-button.is-active,
.map-tool-button:hover,
.map-tool-button:focus-visible {
  background: var(--accent-2);
  outline: none;
}

.map-editor-back {
  margin: 0;
}

.map-side-panel {
  display: grid;
  align-content: start;
  min-height: 0;
  width: 100%;
  padding: 18px;
  overflow: auto;
  border-radius: 22px;
}

.map-tool-panel {
  display: grid;
  gap: 12px;
}

.map-tool-panel[hidden] {
  display: none;
}

.map-stop-list {
  max-height: 230px;
  overflow: auto;
}

.map-stop-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.map-stop-row.is-selected,
.map-stop-row:hover,
.map-stop-row:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.map-stop-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.map-stop-editor,
.map-calendar-form {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.route-stop-pickers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.route-stop-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
}

.route-stop-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.route-stop-card select {
  min-width: 0;
}

.route-point-list {
  max-height: 280px;
  overflow: auto;
}

.route-point-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.route-point-row.is-locked {
  grid-template-columns: 1fr;
  border-color: rgba(244, 197, 66, 0.46);
  background: rgba(244, 197, 66, 0.18);
}

.route-point-row strong,
.route-point-row span {
  display: block;
}

.route-point-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.course-route-heading {
  align-items: center;
}

.course-route-heading h3 {
  margin-bottom: 0;
}

.compact-list {
  display: grid;
  gap: 10px;
}

.course-coral-list {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 220px;
  padding: 2px 0;
}

.course-coral-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.coral-marker {
  position: relative;
  align-self: stretch;
  min-height: 44px;
}

.coral-marker::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 12px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-2);
  transform: translateX(-50%);
  left: 14px;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.94),
    0 8px 20px rgba(128, 92, 0, 0.18);
}

.course-coral-item:not(:last-child) .coral-marker::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 20px;
  bottom: -30px;
  left: 14px;
  width: 16px;
  border-radius: 0;
  background: var(--accent-2);
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 0 1px rgba(126, 91, 0, 0.1),
    0 10px 22px rgba(244, 197, 66, 0.18);
}

.coral-marker.is-request::before {
  box-sizing: border-box;
  border: 4px solid var(--accent-2);
  background: #fffef8;
}

.driver-only-badge {
  position: absolute;
  z-index: 3;
  top: 5px;
  left: 22px;
  width: 17px;
  height: 17px;
  border: 2px solid #c0342b;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 14px rgba(192, 52, 43, 0.16);
}

.driver-only-badge::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: #c0342b;
  transform: rotate(-45deg);
}

.coral-card {
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 28px rgba(25, 32, 44, 0.06);
  transition:
    background var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out);
}

.coral-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.coral-summary strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.request-hand {
  display: inline-block;
  flex: 0 0 auto;
  transform-origin: 70% 70%;
  animation: requestHandWave 1.8s var(--ease-soft) infinite;
}

@keyframes requestHandWave {
  0%,
  58%,
  100% {
    transform: rotate(0deg);
  }

  66% {
    transform: rotate(16deg);
  }

  74% {
    transform: rotate(-10deg);
  }

  82% {
    transform: rotate(12deg);
  }

  90% {
    transform: rotate(-4deg);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.coral-summary span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(244, 197, 66, 0.16);
  color: #7a5700;
  font-size: 0.78rem;
  font-weight: 800;
}

.coral-card strong,
.coral-card span {
  overflow-wrap: anywhere;
}

.coral-details {
  display: grid;
  gap: 10px;
  max-height: 0;
  padding: 0 12px;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition:
    max-height 260ms var(--ease-soft),
    opacity 180ms var(--ease-out),
    padding 260ms var(--ease-soft),
    transform 260ms var(--ease-soft);
}

.course-coral-item.is-expanded .coral-details {
  max-height: 190px;
  padding: 0 12px 12px;
  opacity: 1;
  transform: translateY(0);
}

.coral-details label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.coral-details input {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
}

.coral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-button.is-active {
  border-color: rgba(122, 87, 0, 0.34);
  background: #d6a900;
  color: #221900;
}

.course-coral-item:hover .coral-card {
  background: var(--hover-bg-medium);
  transform: translateY(-1px);
}

.compact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  transition:
    background var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out);
}

.compact-item:hover {
  background: var(--hover-bg-soft);
  transform: translateY(-1px);
}

.compact-item.course-row {
  align-items: stretch;
}

.compact-main-button {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.compact-main-button:hover,
.compact-main-button:focus-visible {
  color: var(--accent);
  outline: none;
}

.compact-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.compact-item strong,
.compact-item span {
  overflow-wrap: anywhere;
}

.compact-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.line-color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 999px;
  vertical-align: -1px;
}

.draggable-item {
  cursor: grab;
}

.draggable-item:active {
  cursor: grabbing;
}

.brigade-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.brigade-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  transition:
    background var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.brigade-card-row:hover {
  background: var(--hover-bg-soft);
  transform: translateY(-1px);
}

.brigade-card {
  display: grid;
  gap: 5px;
  padding: 8px;
}

.brigade-card:hover,
.brigade-card:focus-visible {
  color: var(--accent);
  outline: none;
}

.brigade-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.brigade-draft-item span {
  color: #7a5700;
  font-weight: 800;
}

.nested-course {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  transition: background var(--motion-fast) var(--ease-out);
}

.nested-course[open] {
  background: var(--hover-bg-medium);
}

.nested-course summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 900;
}

.nested-course summary span {
  color: var(--accent);
}

.nested-course-body {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.nested-course-body p {
  margin-bottom: 0;
}

.course-detail-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--footer-bg);
}

.course-detail-preview ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.course-detail-preview li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(221, 226, 234, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.46);
}

.course-detail-preview li span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.inline-edit-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) auto;
  gap: 10px;
  align-items: center;
}

.map-tools-grid {
  display: grid;
  gap: 12px;
}

.map-tools-grid button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.vehicle-admin-shell {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.vehicle-admin-search {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.vehicle-add-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.55rem;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(109, 75, 0, 0.18);
}

.vehicle-add-button:hover,
.vehicle-add-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.vehicle-search-label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.vehicle-search-label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.vehicle-search-results {
  display: grid;
  gap: 8px;
}

.vehicle-row .compact-main-button {
  width: 100%;
}

.vehicle-form {
  display: grid;
  gap: 10px;
}

.vehicle-form[hidden] {
  display: none;
}

.accounts-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 1fr);
  gap: 18px;
  align-items: start;
}

.accounts-directory,
.account-detail-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  border-radius: 24px;
}

.account-detail-panel[hidden] {
  display: none;
}

.account-toolbar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.account-add-button {
  display: inline-grid;
  place-items: center;
  width: 52px;
  min-height: 52px;
  border: 1px solid rgba(154, 95, 0, 0.22);
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(154, 95, 0, 0.18);
}

.account-add-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.account-search-label {
  display: grid;
  gap: 8px;
}

.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition:
    background var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.account-row:hover,
.account-row:focus-visible,
.account-row.is-selected {
  background: var(--accent-soft);
  transform: translateY(-1px);
  outline: none;
}

.account-row strong,
.account-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.audit-list {
  display: grid;
  gap: 10px;
}

.audit-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  transition:
    background var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.audit-card:hover {
  background: var(--hover-bg-soft);
  transform: translateY(-1px);
}

.audit-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.audit-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-factor-panel {
  grid-column: 1 / -1;
}

.two-factor-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.two-factor-summary h2 {
  margin-bottom: 6px;
}

.two-factor-summary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

#twoFactorStatusBadge.is-enabled {
  background: rgba(34, 148, 83, 0.16);
  color: #17663a;
}

.two-factor-flow {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  animation: panelRise 280ms var(--ease-soft) both;
}

.two-factor-setup {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(244, 197, 66, 0.34);
  border-radius: 18px;
  background: rgba(244, 197, 66, 0.13);
}

.two-factor-setup[hidden],
.two-factor-flow[hidden],
.backup-codes[hidden],
.two-factor-code-field[hidden] {
  display: none;
}

.two-factor-code-field {
  display: grid;
  gap: 8px;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.backup-codes {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.backup-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.backup-code-grid code {
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(13, 20, 35, 0.08);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .two-factor-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .two-factor-summary-actions {
    justify-content: space-between;
  }
}

.permission-picker,
.accounts-list {
  display: grid;
  gap: 12px;
}

.permission-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.permission-group.is-disabled,
.check-row.is-disabled {
  opacity: 0.46;
}

.permission-group-head {
  font-weight: 950;
}

.permission-leaves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding-left: 28px;
}

.permission-leaves .check-row {
  font-size: 0.86rem;
  font-weight: 800;
}

.generated-password {
  min-height: 28px;
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.field-hint {
  margin: -4px 0 4px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.account-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(230px, 1fr) minmax(150px, auto);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  transition:
    background var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.account-card:hover {
  background: var(--hover-bg-soft);
  transform: translateY(-1px);
}

.account-card h3 {
  margin-bottom: 4px;
}

.account-card p {
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.account-permissions {
  display: grid;
  gap: 8px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 20px;
  background: var(--footer-bg);
  box-shadow: 0 14px 38px rgba(35, 46, 70, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer a {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 900;
}

.footer-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.footer-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--accent);
  cursor: pointer;
  font-weight: 900;
}

.footer-button:hover,
.footer-button:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  width: min(680px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
  animation: panelRise 420ms var(--ease-soft) both;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice h2 {
  margin-bottom: 6px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.cookie-notice p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 32, 51, 0.22);
  backdrop-filter: blur(14px);
  animation: pageFadeIn var(--motion-base) var(--ease-out) both;
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal-panel {
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 24px;
  animation: panelRise 360ms var(--ease-soft) both;
}

.cookie-modal-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-modal-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  transition:
    background var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.cookie-category:hover {
  background: var(--hover-bg-soft);
  transform: translateY(-1px);
}

.cookie-category strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-category p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.switch-row {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 108px;
  color: var(--muted);
  font-size: 0.82rem;
}

.switch-row input {
  width: 46px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 999px;
  accent-color: var(--accent-2);
}

.toast-stack {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 36px));
  pointer-events: none;
}

.toast-message {
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: var(--glass-strong);
  box-shadow: 0 16px 42px rgba(26, 38, 61, 0.16);
  backdrop-filter: blur(20px) saturate(150%);
  color: var(--ink);
  font-weight: 900;
  animation: toastSlide 280ms var(--ease-soft) both;
}

.toast-message.is-error {
  color: #b42318;
}

html[data-animations="off"] *,
html[data-animations="off"] *::before,
html[data-animations="off"] *::after {
  scroll-behavior: auto !important;
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
}

html[data-animations="off"] .topbar,
html[data-animations="off"] .hero,
html[data-animations="off"] .view.is-active,
html[data-animations="off"] .admin-view.is-active,
html[data-animations="off"] .login-panel,
html[data-animations="off"] .cookie-notice,
html[data-animations="off"] .cookie-modal,
html[data-animations="off"] .cookie-modal-panel,
html[data-animations="off"] .toast-message,
html[data-animations="off"] .request-hand {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .topbar,
  .hero,
  .view.is-active,
  .admin-view.is-active,
  .login-panel,
  .cookie-notice,
  .cookie-modal,
  .cookie-modal-panel,
  .toast-message {
    animation: none !important;
  }

  .request-hand {
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .module-grid,
  .brigade-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero,
  .info-grid,
  .news-grid,
  .privacy-layout,
  .login-panel,
  .admin-grid,
  .schedule-grid,
  .module-grid,
  .brigade-card-grid,
  .admin-news-card,
  .map-admin-panel,
  .account-card {
    grid-template-columns: 1fr;
  }

  .admin-top-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .news-date {
    justify-self: start;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .join-panel,
  .audit-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .audit-meta {
    justify-items: start;
  }

  .course-editor-shell {
    grid-template-columns: 1fr;
  }

  .brigade-editor-shell,
  .brigade-edit-layout,
  .accounts-workspace {
    grid-template-columns: 1fr;
  }

  .course-edit-card,
  .course-route-panel,
  .brigade-edit-card,
  .brigade-draft-panel,
  .accounts-directory,
  .account-detail-panel {
    padding: 18px;
  }

  .permission-leaves {
    grid-template-columns: 1fr;
    padding-left: 10px;
  }

  .map-editor-workspace {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .map-side-panel {
    max-height: 420px;
  }

  .map-canvas-panel {
    min-height: 520px;
  }

  .route-stop-pickers {
    grid-template-columns: 1fr;
  }

  .map-edge-controls {
    top: max(8px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    gap: 6px;
    transition:
      opacity var(--motion-fast) var(--ease-out),
      transform var(--motion-fast) var(--ease-out);
  }

  .is-public-map-panel-center .map-edge-controls {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.94);
  }

  .map-round-button {
    width: 36px;
    min-height: 36px;
    border-radius: 11px;
    font-size: 0.95rem;
  }

  #mapMenuButton {
    gap: 2px;
  }

  .menu-line {
    width: 17px;
    height: 2px;
  }

  .map-mode-menu {
    min-width: 126px;
    padding: 6px;
    border-radius: 14px;
  }

  .map-mode-menu button {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .public-map-panel {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    max-height: 100dvh;
    z-index: 56;
  }

  .public-map-panel.is-bottom,
  .public-map-panel.is-center,
  .public-map-panel.is-center.is-wide {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
    border-radius: 18px 18px 0 0;
    transform: none;
  }

  .public-map-panel.is-center,
  .public-map-panel.is-center.is-wide {
    top: 10px;
    right: 8px;
    bottom: 10px;
    left: 8px;
    height: auto;
    max-height: none;
    z-index: 70;
    padding: 10px 10px 0;
    border-radius: 18px;
  }

  .public-map-panel.is-bottom {
    height: var(--panel-height, min(46dvh, 390px));
    padding: 8px 10px 0;
  }

  .public-map-panel.is-bottom.is-dismiss-preview {
    transform: translateY(28px) scale(0.985);
  }

  .map-panel-head {
    gap: 8px;
    min-height: 30px;
    margin-bottom: 7px;
  }

  .map-panel-head > div {
    min-width: 0;
  }

  .map-panel-head h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .public-map-panel .ghost-button {
    display: inline-grid;
    place-items: center;
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    overflow: hidden;
    border-radius: 999px;
    font-size: 0;
    line-height: 0;
  }

  .public-map-panel .ghost-button::before {
    content: "×";
    font-size: 1.05rem;
    line-height: 1;
  }

  .public-map-panel {
    font-size: 0.82rem;
  }

  .public-map-panel.is-bottom .ghost-button,
  .public-map-panel.is-center .ghost-button {
    font-size: 0;
    line-height: 0;
  }

  .public-map-panel.is-bottom {
    font-size: 0.78rem;
  }

  .departure-card {
    height: 60px;
    gap: 4px;
    padding: 7px 9px;
    border-radius: 13px;
  }

  .departure-card.is-expanded {
    height: 96px;
  }

  .departure-main {
    gap: 7px;
  }

  .departure-info {
    gap: 5px;
  }

  .departure-info > strong {
    font-size: 0.72rem;
  }

  .departure-status {
    gap: 3px;
    font-size: 0.64rem;
  }

  .departure-status .live-icon {
    width: 12px;
    height: 12px;
    border-width: 1.7px;
  }

  .departure-minutes {
    min-width: 30px;
  }

  .departure-minutes strong {
    font-size: 0.78rem;
  }

  .departure-minutes span {
    font-size: 0.62rem;
  }

  .departure-actions {
    gap: 18px;
    padding-top: 2px;
  }

  .show-course-button {
    min-height: 30px;
    padding: 0 9px;
    border-radius: 10px;
    font-size: 0.68rem;
  }

  .public-line-grid {
    justify-content: flex-start;
    gap: 6px;
  }

  .public-line-button {
    min-height: 30px;
    gap: 5px;
    padding: 0 10px;
  }

  .public-line-button span {
    font-size: 0.78rem;
  }

  .public-line-search input {
    min-height: 36px;
    border-radius: 14px;
    font-size: 0.8rem;
  }

  .public-brigade-choice {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px;
    min-height: 46px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .public-brigade-choice span {
    min-height: 25px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .public-brigade-choice strong {
    white-space: nowrap;
  }

  .public-brigade-choice small {
    grid-column: auto;
    min-width: 0;
    font-size: 0.72rem;
  }

  .public-date-strip,
  .brigade-line-tabs {
    gap: 7px;
    min-height: 28px;
    padding-bottom: 4px;
    font-size: 0.74rem;
  }

  .public-date-strip button {
    width: 26px;
    min-height: 26px;
    font-size: 1rem;
  }

  .brigade-timeline-card {
    grid-template-columns: 34px 14px minmax(0, 1fr);
    gap: 8px;
    min-height: 72px;
    padding: 8px 9px 8px 0;
    border-radius: 13px;
    font-size: 0.76rem;
  }

  .brigade-course-time,
  .brigade-course-copy small,
  .public-route-stop small,
  .route-time,
  .route-minutes {
    font-size: 0.64rem;
  }

  .public-route-stop strong,
  .line-route-heading > strong {
    font-size: 0.76rem;
  }

  .line-badge {
    min-width: 30px;
    min-height: 22px;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .line-badge-icon {
    width: 11px;
    height: 11px;
  }

  .public-route-stop {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 7px;
    padding-bottom: 12px;
  }

  .route-timetable-list .public-route-stop {
    grid-template-columns: 34px 16px minmax(0, 1fr);
    gap: 6px;
  }

  .public-route-stop::before {
    top: 11px;
    left: 5px;
    width: 3px;
  }

  .route-timetable-list .public-route-stop::before,
  .vehicle-course-list .public-route-stop::before {
    left: 45px;
  }

  .route-dot {
    width: 13px;
    height: 13px;
    border-width: 2px;
  }

  .route-timetable-list .route-time {
    font-size: 0.62rem;
  }

  .route-time-stack b {
    font-size: 0.66rem;
  }

  .route-stop-name {
    gap: 4px;
  }

  .route-stop-name strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .line-route-heading {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
  }

  .map-action-button {
    min-height: 36px;
    border-radius: 12px;
    font-size: 0.76rem;
  }

  .line-panel-actions {
    top: 9px;
    right: 44px;
  }

  .vehicle-panel-actions {
    top: 9px;
    right: 44px;
  }

  .vehicle-course-list .public-route-stop {
    grid-template-columns: 34px 16px minmax(0, 1fr) 28px;
    gap: 6px;
  }

  .vehicle-course-list .route-between-bus {
    top: calc(50% + 9px);
    left: 47px;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
  }

  .route-dot .mini-bus-dot {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .public-map-panel .ghost-button::before {
    content: "";
    width: 12px;
    height: 12px;
    background:
      linear-gradient(45deg, transparent 43%, currentColor 44% 56%, transparent 57%),
      linear-gradient(-45deg, transparent 43%, currentColor 44% 56%, transparent 57%);
  }

  .vehicle-info-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .departure-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .departure-time {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .inline-edit-row {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .cookie-notice {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .footer-actions {
    justify-content: flex-start;
  }

  .cookie-category {
    grid-template-columns: 1fr;
  }

  .switch-row {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden;
  }

  .page-shell {
    width: min(100% - 16px, 1180px);
    padding-top: 10px;
    padding-bottom: 26px;
  }

  .topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    border-radius: 20px;
    min-height: auto;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand {
    width: 100%;
    min-height: 44px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .nav,
  .menu-button {
    width: 100%;
  }

  .menu-button {
    min-width: 0;
    padding: 0 12px;
  }

  .menu-panel {
    position: static;
    margin-top: 10px;
    width: 100%;
    min-width: 0;
  }

  h1 {
    font-size: clamp(2.15rem, 13vw, 3.35rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.55rem, 9vw, 2.35rem);
  }

  .hero {
    min-height: auto;
    border-radius: 24px;
    padding: 24px;
  }

  .info-card,
  .news-tile-copy,
  .editor-panel,
  .article-list {
    padding: 18px;
  }

  .article-form-row {
    grid-template-columns: 1fr;
  }

  .admin-top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .user-pill {
    max-width: none;
    width: 100%;
    justify-content: center;
  }

  .ghost-button,
  .primary-button,
  .danger-button {
    width: 100%;
  }

  .coords-grid {
    grid-template-columns: 1fr;
  }

  .compact-item {
    align-items: stretch;
    flex-direction: column;
  }

  .brigade-card-row {
    grid-template-columns: 1fr;
  }

  .mini-button {
    width: 100%;
  }

  .site-footer {
    gap: 10px;
    padding: 16px;
  }

  .footer-actions,
  .footer-button {
    width: 100%;
  }

  .cookie-notice {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .map-edge-controls {
    top: max(7px, env(safe-area-inset-top));
    left: max(7px, env(safe-area-inset-left));
  }

  .map-round-button {
    width: 34px;
    min-height: 34px;
    border-radius: 10px;
  }

  .public-date-strip {
    justify-content: flex-start;
  }

  .public-map-panel {
    font-size: 0.76rem;
  }

  .public-map-panel.is-bottom {
    font-size: 0.72rem;
  }

  .public-map-panel.is-center,
  .public-map-panel.is-center.is-wide {
    top: 7px;
    right: 6px;
    bottom: 7px;
    left: 6px;
    padding-inline: 8px;
    border-radius: 15px;
  }

  .map-panel-head h2 {
    font-size: 0.86rem;
  }

  .departure-card {
    height: 56px;
    padding: 6px 8px;
  }

  .departure-card.is-expanded {
    height: 90px;
  }

  .departure-info > strong,
  .public-route-stop strong,
  .line-route-heading > strong {
    font-size: 0.7rem;
  }

  .departure-status,
  .brigade-course-copy small,
  .public-route-stop small,
  .route-time,
  .route-minutes {
    font-size: 0.6rem;
  }

  .public-brigade-choice {
    gap: 6px;
    min-height: 42px;
    padding-inline: 8px;
    font-size: 0.7rem;
  }

  .public-brigade-choice span {
    min-height: 23px;
    padding-inline: 8px;
    font-size: 0.72rem;
  }

  .brigade-timeline-card {
    grid-template-columns: 31px 13px minmax(0, 1fr);
    min-height: 68px;
    gap: 7px;
  }

  .vehicle-admin-search {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 10px;
  }

  .vehicle-mini-menu {
    right: -42px;
    min-width: min(230px, calc(100% - 42px));
  }

  .map-status-pill {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }

  .toast-stack {
    right: 10px;
    top: 10px;
    width: calc(100% - 20px);
  }

  .cookie-actions {
    display: grid;
  }

  .cookie-modal-heading {
    display: grid;
  }
}

.report-stop-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.issue-pill {
  color: #dc2626;
  font-weight: 800;
  font-size: 0.8rem;
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.2);
}

.report-stop-row.has-warning .issue-pill {
  color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.2);
}

main {
  padding-bottom: clamp(28px, 5vw, 64px);
}

.page-shell.is-public-map-open main,
.admin-shell.is-central-view main {
  padding-bottom: 0;
}

.site-footer {
  margin-top: clamp(56px, 7vw, 92px);
}

.map-settings-stack,
.settings-grid {
  padding-bottom: clamp(18px, 4vw, 34px);
}

#brigadesModule {
  display: grid;
  gap: 18px;
}

#brigadesModule[hidden] {
  display: none !important;
}

#brigadesModule .tabs {
  align-self: start;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  width: max-content;
  max-width: 100%;
}

.brigade-editor-shell,
.brigade-edit-layout {
  width: 100%;
  max-width: 1280px;
  gap: 20px;
}

.brigade-edit-layout {
  grid-template-columns: minmax(300px, 0.78fr) minmax(460px, 1.22fr);
}

.brigade-edit-card,
.brigade-draft-panel,
.brigade-picker-panel,
.brigade-detail-card {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 22px 58px rgba(28, 38, 58, 0.1);
}

.brigade-edit-card h2,
.brigade-picker-panel h2,
.brigade-draft-panel h3,
.brigade-detail-card h2 {
  margin-bottom: 2px;
}

.brigade-draft-panel,
.brigade-detail-card {
  position: relative;
}

.brigade-draft-panel::before,
.brigade-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(180deg, rgba(244, 197, 66, 0.9), rgba(154, 95, 0, 0.42));
}

.brigade-picker-panel label,
.brigade-edit-card label {
  margin-top: 2px;
}

.brigade-card-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: min(620px, calc(100dvh - 360px));
  min-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.brigade-card-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px;
  border-color: rgba(20, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 24px rgba(35, 46, 70, 0.05);
}

.brigade-card-row.is-selected {
  border-color: rgba(154, 95, 0, 0.28);
  background: linear-gradient(135deg, rgba(244, 197, 66, 0.22), rgba(255, 255, 255, 0.74));
  box-shadow: 0 14px 34px rgba(154, 95, 0, 0.12);
}

.brigade-card {
  min-height: 58px;
  align-content: center;
  padding: 9px 10px;
}

.brigade-card strong {
  font-size: 1rem;
}

.brigade-card span {
  font-size: 0.82rem;
  line-height: 1.35;
}

.brigade-detail-card .list-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  row-gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
}

.brigade-detail-meta {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

#brigadeList {
  display: grid;
  gap: 10px;
}

#brigadeList .nested-course {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

#brigadeList .nested-course.is-new-course {
  border-color: rgba(122, 163, 90, 0.55);
  box-shadow: 0 0 0 1px rgba(122, 163, 90, 0.14), 0 12px 28px rgba(122, 163, 90, 0.1);
}

#brigadeList .nested-course.is-edited-course {
  border-color: rgba(244, 197, 66, 0.65);
  box-shadow: 0 0 0 1px rgba(244, 197, 66, 0.18), 0 12px 28px rgba(154, 95, 0, 0.1);
}

#brigadeList .nested-course summary {
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 18px;
}

#brigadeList .nested-course[open] summary {
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
  border-radius: 18px 18px 0 0;
}

#brigadeList .nested-course summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

#brigadeList .nested-course summary span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  white-space: nowrap;
}

#brigadeList .nested-course-body {
  padding: 14px;
  background: rgba(255, 255, 255, 0.42);
}

#brigadeList .course-detail-preview {
  background: rgba(255, 255, 255, 0.54);
}

#brigadeList .course-detail-preview li {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

#brigadeList .course-detail-preview li span {
  text-align: right;
}

@media (max-width: 900px) {
  .brigade-edit-layout,
  .brigade-editor-shell {
    grid-template-columns: 1fr;
  }

  .brigade-card-grid {
    max-height: none;
  }

  #brigadesModule .tabs {
    width: 100%;
    border-radius: 22px;
  }

  #brigadesModule .tab-button {
    flex: 1 1 220px;
  }
}

@media (max-width: 560px) {
  main {
    padding-bottom: 36px;
  }

  .site-footer {
    margin-top: 44px;
  }

  .brigade-edit-card,
  .brigade-draft-panel,
  .brigade-picker-panel,
  .brigade-detail-card {
    padding: 16px;
    border-radius: 20px;
  }

  #brigadeList .nested-course summary {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  #brigadeList .nested-course summary span {
    justify-self: start;
  }

  #brigadeList .course-detail-preview li {
    grid-template-columns: 1fr;
  }

  #brigadeList .course-detail-preview li span {
    text-align: left;
  }
}


html,
body {
  overflow-x: hidden;
}

.page-shell {
  width: 100%;
  max-width: none;
  padding: 16px clamp(12px, 2vw, 24px) 44px;
}

.page-shell:not(.admin-shell) main {
  gap: 18px;
}

.topbar {
  top: 10px;
  border-radius: 10px;
  backdrop-filter: blur(12px) saturate(132%);
}

.menu-button,
.ghost-button,
.primary-button,
.danger-button,
.back-button,
.footer-button,
.tab-button,
.map-action-button {
  border-radius: 8px;
}

.menu-panel,
.glass-panel,
.info-card,
.news-card,
.editor-panel,
.article-list,
.empty-state,
.cookie-notice,
.cookie-modal-panel {
  border-radius: 8px;
  backdrop-filter: blur(10px) saturate(125%);
}

.hero {
  min-height: clamp(300px, 42vh, 520px);
  border-radius: 8px;
}

.section-band,
.page-heading,
.news-grid,
.info-grid,
.join-panel,
.privacy-policy,
.settings-grid {
  width: 100%;
}

.info-grid,
.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.map-app-view,
.page-shell.is-public-map-open main {
  width: 100%;
}

.public-map-panel {
  border-radius: 8px;
  backdrop-filter: blur(10px) saturate(125%);
}

.admin-shell {
  width: 100%;
  max-width: none;
  padding: 12px clamp(10px, 1.4vw, 18px) 32px;
}

.admin-dashboard:not([hidden]) {
  display: block;
}

.admin-body .topbar {
  min-height: 66px;
  margin-bottom: 18px;
}

.admin-body .menu-button {
  min-width: 44px;
}

.admin-body #adminMenu {
  padding: 10px;
  border-radius: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.admin-menu-section {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.admin-menu-section:last-child {
  border-bottom: 0;
}

.admin-menu-section > p {
  margin: 0 8px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.admin-menu-toggle:hover,
.admin-menu-toggle:focus-visible,
.admin-body #adminMenu a:hover,
.admin-body #adminMenu a:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.admin-menu-toggle i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--motion-fast) var(--ease-out);
}

.admin-menu-section.is-open .admin-menu-toggle i {
  transform: rotate(45deg) translateY(-2px);
}

.admin-submenu {
  display: none;
  gap: 3px;
  padding-left: 8px;
}

.admin-menu-section.is-open .admin-submenu {
  display: grid;
}

.admin-body #adminMenu a,
.admin-body #adminMenu .disabled-link {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 10px;
}

.admin-grid,
.schedule-editor-grid {
  grid-template-columns: minmax(320px, 0.46fr) minmax(0, 1fr);
}

.module-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.module-card {
  min-height: 84px;
  border-radius: 8px;
}

.map-editor-workspace,
.course-editor-shell,
.brigade-editor-shell,
.brigade-edit-layout,
.accounts-workspace,
.vehicle-admin-shell {
  width: 100%;
}

@media (min-width: 901px) {
  .admin-body #adminMenu {
    position: fixed;
    top: 12px;
    bottom: 12px;
    left: 12px;
    right: auto;
    display: grid;
    align-content: start;
    width: 260px;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 44px rgba(26, 38, 61, 0.12);
    transform: none;
    animation: none;
    backdrop-filter: blur(10px) saturate(125%);
  }

  .admin-body #adminMenu[hidden] {
    display: grid;
  }

  .admin-body .admin-dashboard > .topbar,
  .admin-body .admin-dashboard > main {
    margin-left: 278px;
    width: calc(100% - 278px);
  }

  .admin-body .admin-dashboard > main {
    min-height: calc(100dvh - 110px);
  }

  .admin-body #adminMenuButton {
    display: none;
  }

  .admin-view.is-active {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .admin-body #adminMenu {
    position: fixed;
    inset: 74px 10px auto 10px;
    max-height: min(72dvh, 620px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(26, 38, 61, 0.18);
    backdrop-filter: none;
    z-index: 80;
  }

  .admin-body #adminMenu[hidden] {
    display: none;
  }

  .admin-grid,
  .schedule-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 8px 8px 28px;
  }

  .topbar {
    min-height: 58px;
    padding: 8px;
    margin-bottom: 12px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .hero,
  .section-band,
  .join-panel,
  .privacy-policy,
  .editor-panel,
  .article-list {
    padding: 16px;
  }

  .admin-body #adminMenu {
    inset: 66px 8px auto 8px;
  }
}

@media (min-width: 761px) {
  body:not(.admin-body) .menu-button {
    display: none;
  }

  body:not(.admin-body) .menu-panel {
    position: static;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.46);
    box-shadow: none;
    transform: none;
    animation: none;
    backdrop-filter: none;
  }

  body:not(.admin-body) .menu-panel[hidden] {
    display: flex;
  }

  body:not(.admin-body) .menu-panel a {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    white-space: nowrap;
  }
}


:root {
  --admin-topbar-height: 64px;
  --admin-sidebar-width: 306px;
}

.admin-body {
  background: #f4f6fa;
}

.admin-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
}

.admin-body .admin-dashboard > .topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  width: 100%;
  min-height: var(--admin-topbar-height);
  height: var(--admin-topbar-height);
  margin: 0;
  padding: 0 18px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04), 0 12px 28px rgba(16, 24, 40, 0.08);
  backdrop-filter: none;
  animation: none;
}

.admin-body .admin-dashboard > .topbar .brand {
  min-height: var(--admin-topbar-height);
}

.admin-body .admin-dashboard > .topbar .brand-logo {
  width: 42px;
  height: 42px;
}

.admin-body .admin-dashboard > .topbar #logoutButton {
  display: none;
}

.admin-body .admin-top-actions {
  gap: 8px;
  flex-wrap: nowrap;
}

.admin-body .user-pill,
.admin-body .admin-top-actions > .ghost-button {
  min-height: 36px;
  border-radius: 6px;
  background: #ffffff;
}

.admin-body .admin-dashboard > main {
  width: 100%;
  min-height: calc(100dvh - var(--admin-topbar-height));
  margin: var(--admin-topbar-height) 0 0;
  padding: 16px;
}

.admin-heading {
  min-height: 50px;
  margin: 0 0 12px;
  padding: 0 2px;
  align-items: center;
}

.admin-heading h1 {
  font-size: clamp(1.35rem, 1.8vw, 2rem);
}

.admin-heading .eyebrow {
  margin-bottom: 3px;
}

.editor-panel,
.article-list,
.course-edit-card,
.course-route-panel,
.brigade-edit-card,
.brigade-draft-panel,
.accounts-directory,
.account-detail-panel,
.brigade-picker-panel,
.brigade-detail-card,
.vehicle-admin-search,
.vehicle-form {
  padding: 14px;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04), 0 8px 22px rgba(16, 24, 40, 0.06);
  backdrop-filter: none;
}

.editor-panel h2,
.article-list h2,
.course-edit-card h2,
.brigade-edit-card h2 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.admin-grid,
.schedule-editor-grid {
  gap: 12px;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
}

#newsAdminView .admin-grid {
  grid-template-columns: minmax(320px, 0.55fr) minmax(0, 1fr);
}

.article-form-row,
.coords-grid {
  gap: 8px;
}

.login-form,
.editor-panel {
  gap: 8px;
}

input,
select {
  min-height: 40px;
  padding: 0 10px;
}

textarea {
  padding: 10px;
}

label {
  font-size: 0.78rem;
}

.editor-actions,
.row-actions {
  gap: 8px;
}

.ghost-button,
.primary-button,
.danger-button,
.back-button,
.tab-button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
}

.list-heading {
  margin-bottom: 8px;
}

.list-heading h2,
.list-heading h3 {
  font-size: 1.08rem;
}

.list-heading span {
  min-width: 30px;
  height: 30px;
  border-radius: 6px;
}

.compact-list,
.admin-news-list,
.brigade-card-grid {
  gap: 8px;
}

.compact-item,
.admin-news-card,
.brigade-card-row,
.account-row,
.audit-card {
  border-radius: 6px;
}

.module-grid {
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
}

.module-card {
  min-height: 68px;
  padding: 12px;
  border-radius: 6px;
  box-shadow: none;
}

.module-card strong {
  font-size: 0.95rem;
}

.schedule-dashboard {
  gap: 12px;
}

.course-editor-shell,
.brigade-editor-shell {
  gap: 12px;
  grid-template-columns: minmax(290px, 0.46fr) minmax(0, 1fr);
}

.brigade-edit-layout,
.accounts-workspace {
  gap: 12px;
}

.map-editor-workspace {
  height: calc(100dvh - var(--admin-topbar-height) - 32px);
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
}

.map-editor-sidebar,
.map-side-panel,
.map-canvas-panel {
  border-radius: 6px;
}

@media (min-width: 901px) {
  .admin-body #adminMenu {
    position: fixed;
    top: var(--admin-topbar-height);
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-content: stretch;
    width: var(--admin-sidebar-width);
    min-width: 0;
    padding: 12px;
    border-width: 0 0 0 1px;
    border-radius: 0;
    background: #ffffff;
    box-shadow: -12px 0 24px rgba(16, 24, 40, 0.07);
    transform: none;
    animation: none;
    backdrop-filter: none;
    overflow: hidden;
  }

  .admin-body #adminMenu[hidden] {
    display: flex;
  }

  .admin-body .admin-dashboard > .topbar,
  .admin-body .admin-dashboard > main {
    margin-left: 0;
  }

  .admin-body .admin-dashboard > main {
    width: calc(100% - var(--admin-sidebar-width));
    margin-right: var(--admin-sidebar-width);
  }

  .admin-body #adminMenuButton {
    display: none;
  }
}

.admin-menu-section {
  gap: 3px;
  padding: 8px 0;
}

.admin-menu-section > p {
  margin: 0 8px 5px;
  font-size: 0.66rem;
}

.admin-body #adminMenu a,
.admin-body #adminMenu .disabled-link,
.admin-menu-toggle {
  min-height: 36px;
  border-radius: 6px;
  padding: 0 9px;
  font-size: 0.86rem;
}

.admin-submenu {
  gap: 2px;
  padding-left: 6px;
}

.admin-menu-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.admin-menu-user {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.admin-menu-user span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-menu-user strong {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.25;
}

.admin-menu-footer-link,
.admin-menu-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  font-weight: 900;
}

.admin-menu-footer-link {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.admin-menu-logout {
  border: 1px solid rgba(180, 35, 24, 0.2);
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
  cursor: pointer;
}

@media (max-width: 900px) {
  :root {
    --admin-topbar-height: 60px;
  }

  .admin-body .admin-dashboard > .topbar {
    min-height: var(--admin-topbar-height);
    height: var(--admin-topbar-height);
    padding: 0 10px;
  }

  .admin-body .admin-dashboard > main {
    margin-top: var(--admin-topbar-height);
    padding: 10px;
  }

  .admin-body #adminMenu {
    position: fixed;
    inset: var(--admin-topbar-height) 0 auto auto;
    width: min(340px, 100vw);
    max-height: calc(100dvh - var(--admin-topbar-height));
    padding: 10px;
    border-radius: 0;
    background: #ffffff;
    box-shadow: -12px 0 24px rgba(16, 24, 40, 0.16);
    backdrop-filter: none;
    overflow-y: auto;
    z-index: 130;
  }

  .admin-body #adminMenu[hidden] {
    display: none;
  }

  .admin-grid,
  .schedule-editor-grid,
  #newsAdminView .admin-grid,
  .course-editor-shell,
  .brigade-editor-shell,
  .map-editor-workspace {
    grid-template-columns: 1fr;
  }

  .map-editor-workspace {
    height: auto;
  }
}


:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-muted: #eef2f6;
  --ink: #111827;
  --muted: #64748b;
  --line: #d8dee7;
  --glass: #ffffff;
  --glass-strong: #ffffff;
  --shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  --accent: #2563eb;
  --accent-2: #2563eb;
  --accent-soft: #e8f0ff;
  --grad-1: transparent;
  --grad-2: transparent;
  --hover-bg-soft: #f8fafc;
  --hover-bg-medium: #f1f5f9;
  --hover-bg-strong: #e8eef6;
  --hover-bg-glass: #f8fafc;
  --footer-bg: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111827;
  --bg-soft: #172033;
  --surface: #182235;
  --surface-soft: #1f2a3d;
  --surface-muted: #263244;
  --ink: #f8fafc;
  --muted: #aab6c7;
  --line: #334155;
  --glass: #182235;
  --glass-strong: #1f2a3d;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  --accent: #60a5fa;
  --accent-2: #60a5fa;
  --accent-soft: #1e3a5f;
  --grad-1: transparent;
  --grad-2: transparent;
  --hover-bg-soft: #1f2a3d;
  --hover-bg-medium: #253248;
  --hover-bg-strong: #2c3b52;
  --hover-bg-glass: #1f2a3d;
  --footer-bg: #182235;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111827;
    --bg-soft: #172033;
    --surface: #182235;
    --surface-soft: #1f2a3d;
    --surface-muted: #263244;
    --ink: #f8fafc;
    --muted: #aab6c7;
    --line: #334155;
    --glass: #182235;
    --glass-strong: #1f2a3d;
    --shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    --accent: #60a5fa;
    --accent-2: #60a5fa;
    --accent-soft: #1e3a5f;
    --grad-1: transparent;
    --grad-2: transparent;
    --hover-bg-soft: #1f2a3d;
    --hover-bg-medium: #253248;
    --hover-bg-strong: #2c3b52;
    --hover-bg-glass: #1f2a3d;
    --footer-bg: #182235;
  }
}

body,
.admin-body {
  background: var(--bg) !important;
  color: var(--ink);
}

.topbar,
.admin-body .admin-dashboard > .topbar,
.menu-panel,
.glass-panel,
.info-card,
.news-card,
.editor-panel,
.article-list,
.login-form,
.cookie-notice,
.cookie-modal-panel,
.public-map-panel,
.map-mode-menu,
.empty-state,
.admin-news-card,
.compact-item,
.module-card,
.course-edit-card,
.course-route-panel,
.brigade-edit-card,
.brigade-draft-panel,
.brigade-picker-panel,
.brigade-detail-card,
.accounts-directory,
.account-detail-panel,
.vehicle-admin-search,
.vehicle-form,
.map-side-panel,
.map-canvas-panel,
.central-vehicle-panel,
.central-sip-panel,
.central-report-modal,
.report-section,
.audit-card,
.account-row,
.brigade-card,
.public-brigade-choice,
.departure-card,
.vehicle-info-card,
.settings-grid .info-card {
  border-color: var(--line) !important;
  background: var(--surface) !important;
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: none !important;
}

.section-band,
.site-footer,
.join-panel,
.privacy-policy,
.cookie-table,
.cookie-row,
.subeditor,
.route-stop-card,
.permission-group,
.map-editor-toolbar,
.vehicle-admin-shell,
.admin-menu-user {
  border-color: var(--line) !important;
  background: var(--surface-soft) !important;
  color: var(--ink);
  box-shadow: none;
}

input,
textarea,
select {
  border-color: var(--line) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

.eyebrow,
a:hover,
a:focus-visible,
.disabled-link small,
.success-message,
.admin-news-meta span,
.list-heading span,
.line-route-heading > strong,
.report-stat-card strong {
  color: var(--accent) !important;
}

.primary-button,
.map-round-button,
.vehicle-add-button,
.admin-menu-footer-link,
.public-line-button:hover,
.public-line-button:focus-visible,
.module-card:hover,
.module-card:focus-visible,
.tab-button.is-active,
.map-tool-button.is-active,
.account-mode-badge,
.two-factor-status.is-enabled {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.ghost-button,
.back-button,
.footer-button,
.tab-button,
.map-tool-button,
.map-action-button,
.admin-menu-toggle,
.admin-body #adminMenu a,
.admin-body #adminMenu .disabled-link,
.public-line-button,
.report-back-button,
.vehicle-icon-button,
.mini-button {
  border-color: var(--line) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

.ghost-button:hover,
.ghost-button:focus-visible,
.back-button:hover,
.back-button:focus-visible,
.footer-button:hover,
.footer-button:focus-visible,
.map-action-button:hover,
.map-action-button:focus-visible,
.admin-menu-toggle:hover,
.admin-menu-toggle:focus-visible,
.admin-body #adminMenu a:hover,
.admin-body #adminMenu a:focus-visible,
.menu-panel a:hover,
.menu-panel a:focus-visible,
.compact-item:hover,
.admin-news-card:hover,
.account-row:hover,
.brigade-card:hover,
.public-brigade-choice:hover,
.departure-card:hover {
  background: var(--hover-bg-medium) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

.admin-body #adminMenu,
.admin-menu-footer {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  box-shadow: -8px 0 18px rgba(15, 23, 42, 0.06);
}

.admin-menu-logout,
.danger-button {
  border-color: #ef4444 !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
  box-shadow: none !important;
}

.line-badge,
.news-date,
.cookie-row span,
.live-legend span,
.status-pill,
.issue-pill,
.report-stat-card,
.admin-news-meta span,
.user-pill,
.map-status-pill {
  border-color: var(--line) !important;
  background: var(--surface-muted) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

.public-map-canvas,
.map-editor-canvas,
.central-map-canvas {
  background: #e5e7eb;
}

.hero,
.post-hero-placeholder {
  background: var(--surface) !important;
}

.live-icon.is-planned,
.live-icon.is-live,
.report-stop-alert,
.report-stop-dot,
.route-dot,
.departure-live-dot {
  background: var(--accent) !important;
}

.live-icon.is-delayed,
.vehicle-course-list .route-status.is-delayed {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.live-icon.is-early,
.vehicle-course-list .route-status.is-early {
  background: #0f766e !important;
  color: #ffffff !important;
}

.live-icon.is-offline,
.vehicle-course-list .route-status.is-offline {
  background: #94a3b8 !important;
  color: #ffffff !important;
}

:root[data-theme="dark"] .primary-button,
:root[data-theme="dark"] .map-round-button,
:root[data-theme="dark"] .vehicle-add-button,
:root[data-theme="dark"] .admin-menu-footer-link,
:root[data-theme="dark"] .tab-button.is-active,
:root[data-theme="dark"] .map-tool-button.is-active {
  color: #08111f !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .primary-button,
  :root:not([data-theme="light"]) .map-round-button,
  :root:not([data-theme="light"]) .vehicle-add-button,
  :root:not([data-theme="light"]) .admin-menu-footer-link,
  :root:not([data-theme="light"]) .tab-button.is-active,
  :root:not([data-theme="light"]) .map-tool-button.is-active {
    color: #08111f !important;
  }
}


.admin-body #currentUserLabel {
  display: none !important;
}

.admin-body .admin-dashboard > main {
  padding-left: 12px;
  padding-right: 12px;
}

.admin-view.is-active,
.schedule-dashboard,
.map-module,
.map-module > .admin-grid,
.map-module > .stop-admin-stack,
.map-module > .tabs,
.course-tab.is-active,
.brigade-tab.is-active,
.course-editor-shell,
.brigade-editor-shell,
.brigade-edit-layout,
.accounts-workspace,
.vehicle-admin-shell,
.map-editor-workspace {
  width: 100%;
  max-width: none !important;
  min-width: 0;
}

.map-module {
  display: block;
}

.map-module[hidden] {
  display: none !important;
}

.admin-view.is-module-open > .admin-heading {
  display: none;
}

.admin-view.is-module-open .schedule-dashboard,
.schedule-dashboard {
  margin: 0;
}

.admin-submenu.is-static {
  display: grid;
  padding-left: 0;
}

.admin-map-section {
  gap: 5px;
}

.admin-menu-toggle,
[data-admin-menu-toggle] {
  display: none !important;
}

.admin-grid,
.schedule-editor-grid {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 12px;
}

.stop-admin-stack {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 12px;
}

#coursesModule .tabs,
#brigadesModule .tabs {
  margin: 0 0 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

#coursesModule .tab-button,
#brigadesModule .tab-button {
  flex: 1 1 180px;
  border-radius: 6px;
}

#coursesModule .course-editor-shell {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

#coursesModule .course-edit-card {
  align-self: start;
  gap: 9px;
  padding: 14px;
}

#coursesModule .course-route-panel {
  min-height: calc(100dvh - var(--admin-topbar-height) - 98px);
  padding: 14px;
  border-radius: 6px;
}

#coursesModule .course-stop-adder {
  gap: 8px;
  margin-top: 4px;
  padding: 12px;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

#coursesModule .course-stop-adder h3 {
  font-size: 0.95rem;
}

#coursesModule .course-coral-list {
  max-height: calc(100dvh - var(--admin-topbar-height) - 170px);
  overflow: auto;
  padding-right: 4px;
}

#coursesModule .course-coral-item,
#coursesModule .coral-card,
#coursesModule .search-result {
  border-radius: 6px;
}

#coursesModule .article-list {
  width: 100%;
  max-width: none;
}

@media (min-width: 901px) {
  .admin-body .admin-dashboard > main {
    width: calc(100vw - var(--admin-sidebar-width));
    margin-right: var(--admin-sidebar-width);
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 900px) {
  .admin-body .admin-dashboard > main {
    width: 100%;
    padding: 8px;
  }

  .admin-grid,
  .schedule-editor-grid,
  .stop-admin-stack,
  #coursesModule .course-editor-shell,
  .brigade-editor-shell,
  .brigade-edit-layout,
  .map-editor-workspace {
    grid-template-columns: 1fr;
  }

  #coursesModule .course-route-panel {
    min-height: 360px;
  }

  #coursesModule .course-coral-list {
    max-height: 420px;
  }
}


@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translate3d(-8px, 8px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.toast-stack {
  top: auto !important;
  right: auto !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
  left: max(14px, env(safe-area-inset-left)) !important;
  z-index: 240;
  gap: 8px;
  width: min(340px, calc(100vw - 28px));
  justify-items: start;
}

.toast-message {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12) !important;
  backdrop-filter: none !important;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.toast-message::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.toast-message.is-error {
  color: var(--ink) !important;
}

.toast-message.is-error::before {
  background: #dc2626;
}

@media (max-width: 900px) {
  .toast-stack {
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    width: min(320px, calc(100vw - 20px));
  }

  .toast-message {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}


.admin-body .site-footer {
  display: none !important;
}

.admin-body .admin-dashboard > main {
  box-sizing: border-box;
  max-width: none !important;
}

@media (min-width: 901px) {
  .admin-body .admin-dashboard > main {
    width: auto !important;
    margin-left: 0 !important;
    margin-right: var(--admin-sidebar-width) !important;
    padding: 12px !important;
  }

  .admin-body #adminMenu {
    box-sizing: border-box;
  }
}

.admin-view.is-active,
.schedule-dashboard,
.map-module,
.course-tab.is-active,
.brigade-tab.is-active {
  justify-self: stretch;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.admin-view .glass-panel,
.admin-view .editor-panel,
.admin-view .article-list,
.admin-view .course-edit-card,
.admin-view .course-route-panel,
.admin-view .brigade-edit-card,
.admin-view .brigade-draft-panel,
.admin-view .brigade-picker-panel,
.admin-view .brigade-detail-card,
.admin-view .vehicle-admin-search,
.admin-view .vehicle-form,
.admin-view .map-side-panel,
.admin-view .map-canvas-panel {
  border-color: var(--line) !important;
  border-radius: 6px !important;
  background: var(--surface) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
  backdrop-filter: none !important;
}

.admin-view .subeditor,
.admin-view .route-stop-card,
.admin-view .map-editor-toolbar,
.admin-view .permission-group {
  border-color: var(--line) !important;
  border-radius: 6px !important;
  background: var(--surface-soft) !important;
  box-shadow: none !important;
}

#brigadesModule {
  display: block;
  width: 100%;
}

#brigadesModule[hidden] {
  display: none !important;
}

#brigadesModule .tabs {
  width: 100% !important;
  max-width: none !important;
  border-color: var(--line) !important;
  border-radius: 8px !important;
  background: var(--surface-soft) !important;
}

.brigade-editor-shell,
.brigade-edit-layout {
  width: 100% !important;
  max-width: none !important;
  gap: 12px !important;
}

.brigade-editor-shell {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) !important;
  align-items: stretch;
}

.brigade-edit-layout {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) !important;
}

.brigade-draft-panel::before,
.brigade-detail-card::before {
  content: none !important;
}

.brigade-card-grid {
  max-height: calc(100dvh - var(--admin-topbar-height) - 180px);
  padding-right: 4px;
}

.brigade-card-row,
#brigadeList .nested-course,
#brigadeList .course-detail-preview {
  border-color: var(--line) !important;
  border-radius: 6px !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

.brigade-card-row.is-selected,
#brigadeList .nested-course.is-new-course,
#brigadeList .nested-course.is-edited-course {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  box-shadow: none !important;
}

#brigadeList .nested-course summary,
#brigadeList .nested-course[open] summary {
  border-radius: 6px !important;
  background: transparent !important;
}

#brigadeList .nested-course-body {
  background: var(--surface-soft) !important;
}

#brigadeList .nested-course summary span {
  border: 1px solid var(--line);
  border-radius: 6px !important;
  background: var(--surface-muted) !important;
  color: var(--ink) !important;
}

.course-stop-adder,
#brigadesModule .subeditor {
  border-left: 3px solid var(--accent) !important;
}

.request-hand {
  animation: none !important;
}

@media (max-width: 900px) {
  .brigade-editor-shell,
  .brigade-edit-layout {
    grid-template-columns: 1fr !important;
  }

  .brigade-card-grid {
    max-height: none;
  }
}


body.is-public-map-open .map-app-view {
  background: #7aa35a !important;
}

body.is-public-map-open .public-map-canvas {
  background: transparent !important;
}

body.is-public-map-open .map-round-button {
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  background: rgba(20, 26, 22, 0.88) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 12px 26px rgba(11, 18, 27, 0.26) !important;
  backdrop-filter: blur(18px) !important;
}

body.is-public-map-open .map-round-button:hover,
body.is-public-map-open .map-round-button:focus-visible {
  background: rgba(29, 35, 31, 0.96) !important;
}

body.is-public-map-open .map-mode-menu {
  min-width: 144px;
  padding: 8px;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  background: rgba(20, 26, 22, 0.92) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 18px 44px rgba(11, 18, 27, 0.24) !important;
  backdrop-filter: none !important;
}

body.is-public-map-open .map-mode-menu button {
  min-height: 42px;
  padding: 0 12px;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body.is-public-map-open .map-mode-menu button.is-active,
body.is-public-map-open .map-mode-menu button:hover,
body.is-public-map-open .map-mode-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.12) !important;
}

body.is-public-map-open .public-map-panel {
  border-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  background: rgba(20, 26, 22, 0.9) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 28px 90px rgba(11, 18, 27, 0.38) !important;
  backdrop-filter: blur(28px) saturate(135%) !important;
}

body.is-public-map-open .public-map-panel.is-bottom {
  border-radius: 20px 20px 0 0 !important;
  background: rgba(45, 53, 48, 0.78) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 24px 80px rgba(11, 18, 27, 0.32) !important;
  backdrop-filter: blur(28px) saturate(135%) !important;
}

body.is-public-map-open .public-map-panel.is-center {
  border-radius: 24px !important;
  background: rgba(20, 26, 22, 0.9) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

body.is-public-map-open .public-map-panel .eyebrow,
body.is-public-map-open .public-map-panel h2,
body.is-public-map-open .public-map-panel h3 {
  color: rgba(255, 255, 255, 0.94) !important;
}

body.is-public-map-open .public-map-panel .ghost-button {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
}

body.is-public-map-open .map-panel-body,
body.is-public-map-open .departure-list,
body.is-public-map-open .public-brigade-list,
body.is-public-map-open .public-line-grid {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.is-public-map-open .map-settings-section {
  background: rgba(24, 31, 26, 0.86) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body.is-public-map-open .map-empty-copy {
  color: rgba(255, 255, 255, 0.78) !important;
}

body.is-public-map-open .departure-empty {
  border-radius: 16px !important;
  background: rgba(29, 35, 31, 0.54) !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

body.is-public-map-open .departure-card {
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  background: rgba(29, 35, 31, 0.9) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
}

body.is-public-map-open .departure-card:hover,
body.is-public-map-open .departure-card:focus-within,
body.is-public-map-open .departure-card.is-expanded {
  background: rgba(29, 35, 31, 0.96) !important;
  transform: translateY(-1px);
}

body.is-public-map-open .departure-card.is-expanded {
  height: 116px;
}

body.is-public-map-open .departure-minutes {
  color: rgba(255, 255, 255, 0.86) !important;
}

body.is-public-map-open .departure-minutes span,
body.is-public-map-open .departure-status span:last-child {
  color: rgba(255, 255, 255, 0.72) !important;
}

body.is-public-map-open .departure-status {
  color: #b8c0ba !important;
}

body.is-public-map-open .departure-status:has(.live-icon.is-delayed) { color: #ff4d4d !important; }
body.is-public-map-open .departure-status:has(.live-icon.is-early) { color: #f5a623 !important; }
body.is-public-map-open .departure-status:has(.live-icon.is-planned) { color: #57df74 !important; }
body.is-public-map-open .departure-status:has(.live-icon.is-live),
body.is-public-map-open .departure-status:has(.live-icon.is-offline) { color: #b8c0ba !important; }

body.is-public-map-open .live-icon {
  opacity: 1 !important;
  background: currentColor !important;
  border-color: currentColor !important;
}

body.is-public-map-open .live-icon::before {
  background: #1d231f !important;
  opacity: 1 !important;
}

body.is-public-map-open .live-icon::after {
  opacity: 1 !important;
}

body.is-public-map-open .live-icon.is-planned { color: #57df74 !important; }
body.is-public-map-open .live-icon.is-early { color: #f5a623 !important; }
body.is-public-map-open .live-icon.is-delayed { color: #ff4d4d !important; }
body.is-public-map-open .live-icon.is-live,
body.is-public-map-open .live-icon.is-offline { color: #b8c0ba !important; }

body.is-public-map-open .line-badge {
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--line-color) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

body.is-public-map-open .public-line-button {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--line-color) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-line-button:hover,
body.is-public-map-open .public-line-button:focus-visible {
  filter: brightness(1.08);
  background: var(--line-color) !important;
}

body.is-public-map-open .public-line-search input {
  border: 0 !important;
  border-radius: 18px !important;
  background: rgba(20, 26, 22, 0.64) !important;
  color: rgba(255, 255, 255, 0.94) !important;
}

body.is-public-map-open .public-line-search input::placeholder {
  color: rgba(255, 255, 255, 0.48) !important;
}

body.is-public-map-open .public-brigade-card {
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.52) !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-brigade-choice {
  border: 0 !important;
  background: rgba(29, 35, 31, 0.82) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-brigade-choice:hover,
body.is-public-map-open .public-brigade-choice:focus-visible {
  background: rgba(38, 47, 41, 0.94) !important;
}

body.is-public-map-open .public-brigade-choice span {
  border-color: rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

body.is-public-map-open .public-brigade-choice small,
body.is-public-map-open .public-brigade-card small,
body.is-public-map-open .departure-row small,
body.is-public-map-open .departure-time small {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.is-public-map-open .departure-actions .map-action-button,
body.is-public-map-open .show-course-button {
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: none !important;
}

body.is-public-map-open .departure-actions .map-action-button:hover,
body.is-public-map-open .departure-actions .map-action-button:focus-visible,
body.is-public-map-open .show-course-button:hover,
body.is-public-map-open .show-course-button:focus-visible {
  background: rgba(244, 197, 66, 0.24) !important;
  color: rgba(255, 255, 255, 0.98) !important;
}

body.is-public-map-open .vehicle-course-list .route-status.is-planned { color: #60ef82 !important; }
body.is-public-map-open .vehicle-course-list .route-status.is-live,
body.is-public-map-open .vehicle-course-list .route-status.is-offline,
body.is-public-map-open .vehicle-course-list .route-status.is-waiting { color: #b8c0ba !important; }
body.is-public-map-open .vehicle-course-list .route-status.is-delayed { color: #ff6262 !important; }
body.is-public-map-open .vehicle-course-list .route-status.is-early { color: #f5a623 !important; }

@media (max-width: 900px) {
  body.is-public-map-open .public-map-panel.is-bottom,
  body.is-public-map-open .public-map-panel.is-center,
  body.is-public-map-open .public-map-panel.is-center.is-wide {
    border-radius: 18px 18px 0 0 !important;
  }

  body.is-public-map-open .public-map-panel.is-center,
  body.is-public-map-open .public-map-panel.is-center.is-wide {
    border-radius: 18px !important;
  }

  body.is-public-map-open .departure-card {
    height: 60px;
    border-radius: 13px !important;
  }

  body.is-public-map-open .departure-card.is-expanded {
    height: 96px;
  }
}


.admin-body {
  --admin-sidebar-width: 306px;
  --admin-topbar-height: 58px;
  background: #f1f3f6 !important;
}

.admin-shell {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.admin-body .admin-dashboard > .topbar {
  height: var(--admin-topbar-height) !important;
  min-height: var(--admin-topbar-height) !important;
  padding: 0 16px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

.admin-body #adminMenu {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

@media (min-width: 901px) {
  .admin-body #adminMenu {
    top: var(--admin-topbar-height) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: var(--admin-sidebar-width) !important;
    border-left: 1px solid #d6dde8 !important;
  }

  .admin-body .admin-dashboard > main {
    position: relative !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-height: calc(100dvh - var(--admin-topbar-height)) !important;
    margin: var(--admin-topbar-height) var(--admin-sidebar-width) 0 0 !important;
    padding: 8px !important;
    overflow-x: hidden !important;
  }
}

.admin-view,
.admin-view.is-active,
.schedule-dashboard,
.map-module,
.course-tab.is-active,
.brigade-tab.is-active,
.course-editor-shell,
.brigade-editor-shell,
.brigade-edit-layout,
.map-editor-workspace,
.vehicle-admin-shell,
.accounts-workspace {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.admin-view.is-active {
  animation: none !important;
}

.admin-view.is-module-open > .admin-heading {
  display: none !important;
}

.schedule-dashboard {
  display: block !important;
  gap: 0 !important;
}

.map-module {
  padding: 0 !important;
}

.map-module[hidden] {
  display: none !important;
}

.admin-grid,
.schedule-editor-grid,
.stop-admin-stack {
  display: grid !important;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: stretch !important;
}

#coursesModule .course-editor-shell,
#brigadesModule .brigade-editor-shell,
.brigade-edit-layout {
  display: grid !important;
  grid-template-columns: minmax(280px, 365px) minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: stretch !important;
}

.map-editor-workspace {
  display: grid !important;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) !important;
  gap: 8px !important;
  height: calc(100dvh - var(--admin-topbar-height) - 16px) !important;
}

.vehicle-admin-shell {
  display: grid !important;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) !important;
  gap: 8px !important;
}

#coursesModule .tabs,
#brigadesModule .tabs,
.tabs {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 1px solid #cfd8e6 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.tab-button {
  min-height: 38px !important;
  border-width: 0 1px 0 0 !important;
  border-color: #d8e0ea !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.tab-button:last-child {
  border-right: 0 !important;
}

.tab-button.is-active {
  background: #2563eb !important;
  color: #ffffff !important;
}

.admin-view .glass-panel,
.admin-view .editor-panel,
.admin-view .article-list,
.admin-view .course-edit-card,
.admin-view .course-route-panel,
.admin-view .brigade-edit-card,
.admin-view .brigade-draft-panel,
.admin-view .brigade-picker-panel,
.admin-view .brigade-detail-card,
.admin-view .vehicle-admin-search,
.admin-view .vehicle-form,
.admin-view .map-side-panel,
.admin-view .map-canvas-panel,
.admin-view .central-vehicle-panel,
.admin-view .central-sip-panel,
.admin-view .audit-card,
.admin-view .account-row,
.admin-view .compact-item,
.admin-view .module-card {
  border: 1px solid #cfd8e6 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.admin-view .editor-panel,
.admin-view .article-list,
.admin-view .course-edit-card,
.admin-view .course-route-panel,
.admin-view .brigade-edit-card,
.admin-view .brigade-draft-panel,
.admin-view .brigade-picker-panel,
.admin-view .brigade-detail-card,
.admin-view .map-side-panel,
.admin-view .vehicle-form {
  padding: 14px !important;
}

.admin-view .subeditor,
.admin-view .route-stop-card,
.admin-view .map-editor-toolbar,
.admin-view .permission-group,
.admin-view .map-stop-editor,
#brigadeList .nested-course-body {
  border: 1px solid #d8e0ea !important;
  border-left: 0 !important;
  border-radius: 3px !important;
  background: #f6f8fb !important;
  box-shadow: none !important;
}

.course-stop-adder,
#brigadesModule .subeditor {
  border-left: 0 !important;
}

.admin-view input,
.admin-view select,
.admin-view textarea {
  min-height: 38px !important;
  border: 1px solid #cfd8e6 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.admin-view input:focus,
.admin-view select:focus,
.admin-view textarea:focus {
  border-color: #2563eb !important;
  box-shadow: none !important;
  outline: 2px solid rgba(37, 99, 235, 0.18) !important;
  outline-offset: 0 !important;
}

.admin-view .primary-button,
.admin-view .ghost-button,
.admin-view .danger-button,
.admin-view .mini-button,
.admin-view .map-tool-button,
.admin-view .map-action-button,
.admin-view .vehicle-add-button {
  min-height: 38px !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}

.admin-view .primary-button,
.admin-view .vehicle-add-button,
.admin-view .map-tool-button.is-active {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #ffffff !important;
}

.admin-view .ghost-button,
.admin-view .mini-button,
.admin-view .map-tool-button,
.admin-view .map-action-button {
  border-color: #cfd8e6 !important;
  background: #ffffff !important;
  color: #111827 !important;
}

.admin-view .danger-button {
  border-color: #ef4444 !important;
  background: #fff1f2 !important;
  color: #991b1b !important;
}

.admin-view .list-heading {
  min-height: 32px !important;
  margin: 0 0 10px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.admin-view .list-heading span,
.admin-view .line-badge,
.admin-view .status-pill,
.admin-view .issue-pill {
  border: 1px solid #cfd8e6 !important;
  border-radius: 3px !important;
  background: #eef2f7 !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.admin-view h2,
.admin-view h3 {
  margin-bottom: 10px !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
}

.admin-view label {
  margin-top: 2px !important;
  color: #111827 !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
}

.admin-view .field-hint,
.admin-view small {
  color: #64748b !important;
}

#coursesModule .course-route-panel,
#brigadesModule .brigade-draft-panel,
#brigadesModule .brigade-detail-card {
  min-height: calc(100dvh - var(--admin-topbar-height) - 74px) !important;
}

#coursesModule .course-coral-list,
#brigadeCourseDraftList,
#brigadeList,
.brigade-card-grid,
.compact-list {
  scrollbar-width: thin;
}

.course-coral-item,
.coral-card,
.search-result,
.compact-item,
.brigade-card-row,
.brigade-card,
#brigadeList .nested-course,
#brigadeList .course-detail-preview,
.map-stop-row,
.route-point-row {
  border-color: #d8e0ea !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.compact-item:hover,
.search-result:hover,
.search-result:focus-visible,
.brigade-card-row:hover,
.brigade-card-row.is-selected,
.map-stop-row:hover,
.map-stop-row.is-selected {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  transform: none !important;
}

#brigadeList .nested-course.is-new-course,
#brigadeList .nested-course.is-edited-course {
  border-color: #2563eb !important;
  background: #ffffff !important;
}

.brigade-draft-panel::before,
.brigade-detail-card::before {
  content: none !important;
}

.admin-view .map-canvas-panel {
  overflow: hidden !important;
}

.admin-view .map-editor-canvas,
.admin-view .central-map-canvas {
  background: #e5e7eb !important;
}

@media (max-width: 900px) {
  .admin-body .admin-dashboard > main {
    width: 100% !important;
    margin: var(--admin-topbar-height) 0 0 !important;
    padding: 8px !important;
  }

  .admin-grid,
  .schedule-editor-grid,
  .stop-admin-stack,
  #coursesModule .course-editor-shell,
  #brigadesModule .brigade-editor-shell,
  .brigade-edit-layout,
  .map-editor-workspace,
  .vehicle-admin-shell {
    grid-template-columns: 1fr !important;
  }

  #coursesModule .course-route-panel,
  #brigadesModule .brigade-draft-panel,
  #brigadesModule .brigade-detail-card {
    min-height: 340px !important;
  }
}


.admin-view .editor-panel,
.admin-view .course-edit-card,
.admin-view .brigade-edit-card,
.admin-view .brigade-picker-panel,
.admin-view .map-side-panel,
.admin-view .vehicle-form {
  display: grid !important;
  align-content: start !important;
  align-items: start !important;
  grid-auto-rows: max-content !important;
  gap: 10px !important;
}

.admin-view .editor-panel > input,
.admin-view .editor-panel > select,
.admin-view .course-edit-card > input,
.admin-view .course-edit-card > select,
.admin-view .brigade-edit-card > input,
.admin-view .brigade-edit-card > select,
.admin-view .brigade-picker-panel > select,
.admin-view .vehicle-form > input,
.admin-view .vehicle-form > select {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
}

.admin-view .editor-panel > label,
.admin-view .course-edit-card > label,
.admin-view .brigade-edit-card > label,
.admin-view .brigade-picker-panel > label,
.admin-view .vehicle-form > label {
  min-height: 0 !important;
  margin: 0 !important;
  align-self: end !important;
}

.admin-view .coords-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: end !important;
}

.admin-view .coords-grid label {
  display: grid !important;
  gap: 5px !important;
}

.admin-view .coords-grid input {
  width: 100% !important;
  height: 38px !important;
}

#stopForm {
  min-height: 0 !important;
}

#stopForm .editor-actions {
  margin-top: 4px !important;
}

#brigadeList {
  margin-bottom: 14px !important;
}

#brigadesModule .brigade-course-adder {
  margin-top: 14px !important;
  padding-top: 16px !important;
  border-top: 1px solid #cfd8e6 !important;
  background: #f8fafc !important;
}

#brigadesModule .brigade-detail-card > .editor-actions {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid #e2e8f0 !important;
}

#brigadesModule .nested-course + .nested-course {
  margin-top: 8px !important;
}

.admin-view .map-stop-editor {
  margin-top: 12px !important;
}


.brigade-detail-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) !important;
  gap: 8px !important;
  margin-top: 16px !important;
}

.brigade-copy-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.2);
}

.brigade-copy-modal[hidden] {
  display: none !important;
}

.brigade-copy-panel {
  display: grid !important;
  gap: 12px !important;
  width: min(460px, 100%) !important;
  padding: 16px !important;
  border: 1px solid #cfd8e6 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.brigade-copy-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.brigade-copy-heading h2 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.brigade-copy-panel label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}

.brigade-copy-panel input {
  min-height: 38px !important;
}

.brigade-copy-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (max-width: 640px) {
  .brigade-detail-actions {
    grid-template-columns: 1fr !important;
  }
}


body:not(.admin-body) .page-shell {
  width: 100% !important;
  max-width: none !important;
  padding: 12px clamp(14px, 1.8vw, 28px) 40px !important;
}

body:not(.admin-body) .page-shell > main {
  display: block !important;
  width: 100% !important;
}

body:not(.admin-body) .view.is-active {
  width: min(1480px, 100%) !important;
  margin: 0 auto !important;
}

body:not(.admin-body) .topbar {
  width: min(1480px, 100%) !important;
  margin: 0 auto 14px !important;
}

body:not(.admin-body) .hero {
  display: grid !important;
  align-items: center !important;
  min-height: clamp(260px, 34vh, 390px) !important;
  margin: 0 !important;
  padding: clamp(28px, 4vw, 56px) !important;
  border-radius: 8px !important;
}

body:not(.admin-body) .hero-copy {
  max-width: 860px !important;
}

body:not(.admin-body) .hero h1 {
  margin-bottom: 14px !important;
}

body:not(.admin-body) .section-band {
  margin-top: 18px !important;
  padding: clamp(26px, 3vw, 42px) 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.admin-body) #homeView .section-band[aria-labelledby="projectTitle"] {
  display: grid !important;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr) !important;
  gap: clamp(18px, 2vw, 30px) !important;
  align-items: start !important;
}

body:not(.admin-body) #homeView .section-band[aria-labelledby="projectTitle"] .section-heading {
  max-width: none !important;
  margin: 0 !important;
  padding-top: 2px !important;
}

body:not(.admin-body) .section-heading h1,
body:not(.admin-body) .section-heading h2 {
  max-width: 680px !important;
}

body:not(.admin-body) #projectTitle {
  font-size: clamp(2rem, 3vw, 3.05rem) !important;
  line-height: 1.03 !important;
}

body:not(.admin-body) #homeView .info-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body:not(.admin-body) .info-card {
  min-height: 0 !important;
  padding: 22px 24px !important;
  border-radius: 8px !important;
}

body:not(.admin-body) .info-card p {
  margin-bottom: 0 !important;
}

body:not(.admin-body) .page-heading {
  max-width: 860px !important;
  padding: clamp(20px, 3vw, 38px) 0 14px !important;
  margin-bottom: 0 !important;
}

body:not(.admin-body) .news-grid,
body:not(.admin-body) .join-grid,
body:not(.admin-body) .settings-grid {
  gap: 12px !important;
}

body:not(.admin-body) .join-panel,
body:not(.admin-body) .privacy-policy {
  margin-top: 14px !important;
  border-radius: 8px !important;
}

@media (max-width: 980px) {
  body:not(.admin-body) #homeView .section-band[aria-labelledby="projectTitle"] {
    grid-template-columns: 1fr !important;
  }

  body:not(.admin-body) #homeView .info-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 640px) {
  body:not(.admin-body) .page-shell {
    padding: 8px 10px 28px !important;
  }

  body:not(.admin-body) .topbar {
    margin-bottom: 10px !important;
  }

  body:not(.admin-body) .hero {
    padding: 24px !important;
  }

  body:not(.admin-body) #homeView .info-grid {
    grid-template-columns: 1fr !important;
  }
}

:root[data-theme="dark"] body.admin-body,
:root[data-theme="dark"] body.admin-body .admin-shell,
:root[data-theme="dark"] body.admin-body .admin-dashboard,
:root[data-theme="dark"] body.admin-body .admin-dashboard > main,
:root[data-theme="dark"] body.admin-body .admin-view,
:root[data-theme="dark"] body.admin-body .schedule-dashboard,
:root[data-theme="dark"] body.admin-body .map-module,
:root[data-theme="dark"] body.admin-body .course-tab,
:root[data-theme="dark"] body.admin-body .brigade-tab {
  background: var(--bg) !important;
  color: var(--ink) !important;
}

:root[data-theme="dark"] body.admin-body .admin-dashboard > .topbar,
:root[data-theme="dark"] body.admin-body #adminMenu,
:root[data-theme="dark"] body.admin-body .admin-menu-footer,
:root[data-theme="dark"] body.admin-body .admin-menu-user,
:root[data-theme="dark"] body.admin-body .editor-panel,
:root[data-theme="dark"] body.admin-body .article-list,
:root[data-theme="dark"] body.admin-body .course-edit-card,
:root[data-theme="dark"] body.admin-body .course-route-panel,
:root[data-theme="dark"] body.admin-body .brigade-edit-card,
:root[data-theme="dark"] body.admin-body .brigade-draft-panel,
:root[data-theme="dark"] body.admin-body .brigade-picker-panel,
:root[data-theme="dark"] body.admin-body .brigade-detail-card,
:root[data-theme="dark"] body.admin-body .accounts-directory,
:root[data-theme="dark"] body.admin-body .account-detail-panel,
:root[data-theme="dark"] body.admin-body .vehicle-admin-search,
:root[data-theme="dark"] body.admin-body .vehicle-form,
:root[data-theme="dark"] body.admin-body .map-side-panel,
:root[data-theme="dark"] body.admin-body .map-canvas-panel,
:root[data-theme="dark"] body.admin-body .module-card,
:root[data-theme="dark"] body.admin-body .compact-item,
:root[data-theme="dark"] body.admin-body .admin-news-card,
:root[data-theme="dark"] body.admin-body .account-row,
:root[data-theme="dark"] body.admin-body .audit-card,
:root[data-theme="dark"] body.admin-body .subeditor,
:root[data-theme="dark"] body.admin-body .brigade-copy-panel {
  border-color: var(--line) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

:root[data-theme="dark"] body.admin-body .subeditor,
:root[data-theme="dark"] body.admin-body .map-editor-toolbar,
:root[data-theme="dark"] body.admin-body #brigadesModule .brigade-course-adder,
:root[data-theme="dark"] body.admin-body .route-stop-card,
:root[data-theme="dark"] body.admin-body .permission-group {
  border-color: var(--line) !important;
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
}

:root[data-theme="dark"] body.admin-body input,
:root[data-theme="dark"] body.admin-body textarea,
:root[data-theme="dark"] body.admin-body select,
:root[data-theme="dark"] body.admin-body .ghost-button,
:root[data-theme="dark"] body.admin-body .back-button,
:root[data-theme="dark"] body.admin-body .tab-button,
:root[data-theme="dark"] body.admin-body .map-tool-button,
:root[data-theme="dark"] body.admin-body .admin-menu-footer-link,
:root[data-theme="dark"] body.admin-body #adminMenu a,
:root[data-theme="dark"] body.admin-body #adminMenu .disabled-link,
:root[data-theme="dark"] body.admin-body .admin-menu-toggle {
  border-color: var(--line) !important;
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] body.admin-body .primary-button,
:root[data-theme="dark"] body.admin-body .tab-button.is-active,
:root[data-theme="dark"] body.admin-body .map-tool-button.is-active {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #08111f !important;
}

:root[data-theme="dark"] body.admin-body .admin-menu-logout,
:root[data-theme="dark"] body.admin-body .danger-button {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.16) !important;
  color: #fecaca !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.admin-body,
  :root:not([data-theme="light"]) body.admin-body .admin-shell,
  :root:not([data-theme="light"]) body.admin-body .admin-dashboard,
  :root:not([data-theme="light"]) body.admin-body .admin-dashboard > main,
  :root:not([data-theme="light"]) body.admin-body .admin-view,
  :root:not([data-theme="light"]) body.admin-body .schedule-dashboard,
  :root:not([data-theme="light"]) body.admin-body .map-module,
  :root:not([data-theme="light"]) body.admin-body .course-tab,
  :root:not([data-theme="light"]) body.admin-body .brigade-tab {
    background: var(--bg) !important;
    color: var(--ink) !important;
  }

  :root:not([data-theme="light"]) body.admin-body .admin-dashboard > .topbar,
  :root:not([data-theme="light"]) body.admin-body #adminMenu,
  :root:not([data-theme="light"]) body.admin-body .admin-menu-footer,
  :root:not([data-theme="light"]) body.admin-body .admin-menu-user,
  :root:not([data-theme="light"]) body.admin-body .editor-panel,
  :root:not([data-theme="light"]) body.admin-body .article-list,
  :root:not([data-theme="light"]) body.admin-body .course-edit-card,
  :root:not([data-theme="light"]) body.admin-body .course-route-panel,
  :root:not([data-theme="light"]) body.admin-body .brigade-edit-card,
  :root:not([data-theme="light"]) body.admin-body .brigade-draft-panel,
  :root:not([data-theme="light"]) body.admin-body .brigade-picker-panel,
  :root:not([data-theme="light"]) body.admin-body .brigade-detail-card,
  :root:not([data-theme="light"]) body.admin-body .accounts-directory,
  :root:not([data-theme="light"]) body.admin-body .account-detail-panel,
  :root:not([data-theme="light"]) body.admin-body .vehicle-admin-search,
  :root:not([data-theme="light"]) body.admin-body .vehicle-form,
  :root:not([data-theme="light"]) body.admin-body .map-side-panel,
  :root:not([data-theme="light"]) body.admin-body .map-canvas-panel,
  :root:not([data-theme="light"]) body.admin-body .module-card,
  :root:not([data-theme="light"]) body.admin-body .compact-item,
  :root:not([data-theme="light"]) body.admin-body .admin-news-card,
  :root:not([data-theme="light"]) body.admin-body .account-row,
  :root:not([data-theme="light"]) body.admin-body .audit-card,
  :root:not([data-theme="light"]) body.admin-body .subeditor,
  :root:not([data-theme="light"]) body.admin-body .brigade-copy-panel {
    border-color: var(--line) !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  :root:not([data-theme="light"]) body.admin-body .subeditor,
  :root:not([data-theme="light"]) body.admin-body .map-editor-toolbar,
  :root:not([data-theme="light"]) body.admin-body #brigadesModule .brigade-course-adder,
  :root:not([data-theme="light"]) body.admin-body .route-stop-card,
  :root:not([data-theme="light"]) body.admin-body .permission-group {
    border-color: var(--line) !important;
    background: var(--surface-soft) !important;
    color: var(--ink) !important;
  }

  :root:not([data-theme="light"]) body.admin-body input,
  :root:not([data-theme="light"]) body.admin-body textarea,
  :root:not([data-theme="light"]) body.admin-body select,
  :root:not([data-theme="light"]) body.admin-body .ghost-button,
  :root:not([data-theme="light"]) body.admin-body .back-button,
  :root:not([data-theme="light"]) body.admin-body .tab-button,
  :root:not([data-theme="light"]) body.admin-body .map-tool-button,
  :root:not([data-theme="light"]) body.admin-body .admin-menu-footer-link,
  :root:not([data-theme="light"]) body.admin-body #adminMenu a,
  :root:not([data-theme="light"]) body.admin-body #adminMenu .disabled-link,
  :root:not([data-theme="light"]) body.admin-body .admin-menu-toggle {
    border-color: var(--line) !important;
    background: var(--surface-soft) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
  }

  :root:not([data-theme="light"]) body.admin-body .primary-button,
  :root:not([data-theme="light"]) body.admin-body .tab-button.is-active,
  :root:not([data-theme="light"]) body.admin-body .map-tool-button.is-active {
    border-color: var(--accent) !important;
    background: var(--accent) !important;
    color: #08111f !important;
  }

  :root:not([data-theme="light"]) body.admin-body .admin-menu-logout,
  :root:not([data-theme="light"]) body.admin-body .danger-button {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fecaca !important;
  }
}


body:not(.admin-body) .page-shell {
  width: 100% !important;
  max-width: none !important;
  padding: 0 0 40px !important;
}

body:not(.admin-body) .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 0 clamp(18px, 2.4vw, 34px) !important;
  border-width: 0 0 1px !important;
  border-style: solid !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  border-radius: 0 !important;
  background: color-mix(in srgb, var(--surface, var(--glass)) 88%, transparent) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  animation: none !important;
}

body:not(.admin-body) .topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.42), transparent);
  pointer-events: none;
}

body:not(.admin-body) .brand-logo {
  width: 42px !important;
  height: 42px !important;
  filter: none !important;
}

body:not(.admin-body) .brand {
  min-height: 64px !important;
}

body:not(.admin-body) .menu-button {
  min-height: 38px !important;
  border-radius: 6px !important;
  background: var(--surface-soft, var(--hover-bg-soft)) !important;
  box-shadow: none !important;
}

body:not(.admin-body) .menu-panel {
  top: calc(100% + 8px) !important;
  border-radius: 6px !important;
  background: var(--surface, var(--glass-strong)) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body:not(.admin-body) .view.is-active {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body:not(.admin-body) .hero {
  width: 100% !important;
  min-height: clamp(250px, 32vh, 360px) !important;
  padding: clamp(34px, 5vw, 68px) clamp(22px, 4.5vw, 86px) !important;
  border-width: 0 0 1px !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}

body:not(.admin-body) .hero-copy {
  max-width: 900px !important;
}

body:not(.admin-body) .hero h1 {
  font-size: clamp(3rem, 6vw, 5rem) !important;
}

body:not(.admin-body) #homeView .section-band[aria-labelledby="projectTitle"] {
  width: 100% !important;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr) !important;
  margin: 0 !important;
  padding: clamp(34px, 4vw, 58px) clamp(22px, 4.5vw, 86px) clamp(42px, 5vw, 70px) !important;
  border-bottom: 1px solid var(--line) !important;
}

body:not(.admin-body) #homeView .info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body:not(.admin-body) #homeView .info-card:first-child,
body:not(.admin-body) #homeView .info-card:nth-child(2) {
  grid-column: span 1 !important;
}

body:not(.admin-body) .page-heading {
  width: 100% !important;
  max-width: none !important;
  padding: clamp(34px, 4vw, 58px) clamp(22px, 4.5vw, 86px) 18px !important;
}

body:not(.admin-body) .page-heading > * {
  max-width: 820px !important;
}

body:not(.admin-body) .news-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 0 clamp(22px, 4.5vw, 86px) clamp(42px, 5vw, 70px) !important;
}

body:not(.admin-body) .news-tile {
  border-radius: 8px !important;
  background: var(--surface, var(--glass)) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body:not(.admin-body) .news-tile:hover,
body:not(.admin-body) .news-tile:focus-visible {
  transform: translateY(-1px) !important;
  background: var(--surface-soft, var(--hover-bg-glass)) !important;
  box-shadow: none !important;
}

body:not(.admin-body) .news-image-wrap {
  aspect-ratio: 16 / 9 !important;
}

body:not(.admin-body) .news-tile-copy {
  padding: 18px !important;
}

body:not(.admin-body) .news-tile-copy h2 {
  font-size: clamp(1.08rem, 1.5vw, 1.32rem) !important;
}

body:not(.admin-body) .join-grid,
body:not(.admin-body) .settings-grid,
body:not(.admin-body) .privacy-policy,
body:not(.admin-body) .post-detail,
body:not(.admin-body) .back-button {
  margin-left: clamp(22px, 4.5vw, 86px) !important;
  margin-right: clamp(22px, 4.5vw, 86px) !important;
}

body:not(.admin-body) .join-panel {
  margin: 14px clamp(22px, 4.5vw, 86px) clamp(42px, 5vw, 70px) !important;
}

body:not(.admin-body) .site-footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 18px clamp(22px, 4.5vw, 86px) !important;
  border-width: 1px 0 0 !important;
  border-style: solid !important;
  border-color: var(--line) !important;
  border-radius: 0 !important;
  background: var(--surface, var(--footer-bg)) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body:not(.admin-body) .footer-button {
  border-radius: 6px !important;
  background: var(--surface-soft, var(--hover-bg-soft)) !important;
  box-shadow: none !important;
}

@media (max-width: 1240px) {
  body:not(.admin-body) #homeView .info-grid,
  body:not(.admin-body) .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  body:not(.admin-body) #homeView .section-band[aria-labelledby="projectTitle"] {
    grid-template-columns: 1fr !important;
  }

  body:not(.admin-body) .topbar {
    position: sticky !important;
    min-height: auto !important;
    padding: 8px 12px !important;
  }

  body:not(.admin-body) .brand {
    min-height: 44px !important;
  }
}

@media (max-width: 640px) {
  body:not(.admin-body) .hero,
  body:not(.admin-body) #homeView .section-band[aria-labelledby="projectTitle"],
  body:not(.admin-body) .page-heading,
  body:not(.admin-body) .news-grid,
  body:not(.admin-body) .site-footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body:not(.admin-body) #homeView .info-grid,
  body:not(.admin-body) .news-grid {
    grid-template-columns: 1fr !important;
  }

  body:not(.admin-body) .join-grid,
  body:not(.admin-body) .settings-grid,
  body:not(.admin-body) .privacy-policy,
  body:not(.admin-body) .post-detail,
  body:not(.admin-body) .back-button,
  body:not(.admin-body) .join-panel {
    margin-left: 14px !important;
    margin-right: 14px !important;
  }
}


body.is-public-map-open {
  --legacy-map-accent: #499f2b;
  --legacy-map-panel: rgba(20, 26, 22, 0.92);
  --legacy-map-panel-soft: rgba(29, 35, 31, 0.9);
  --legacy-map-muted: rgba(255, 255, 255, 0.68);
}

body.is-public-map-open .map-round-button,
body.is-public-map-open .map-mode-menu,
body.is-public-map-open .public-map-panel,
body.is-public-map-open .departure-card,
body.is-public-map-open .public-brigade-choice,
body.is-public-map-open .public-brigade-card,
body.is-public-map-open .map-settings-section,
body.is-public-map-open .vehicle-info-card,
body.is-public-map-open .vehicle-mini-menu {
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.is-public-map-open .map-round-button,
body.is-public-map-open .map-mode-menu,
body.is-public-map-open .public-map-panel {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: var(--legacy-map-panel) !important;
}

body.is-public-map-open .line-badge,
body.is-public-map-open .public-line-button,
body.is-public-map-open .line-badge.is-unassigned {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: color-mix(in srgb, var(--line-color, var(--legacy-map-accent)) 92%, #102015) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.is-public-map-open .public-line-button:hover,
body.is-public-map-open .public-line-button:focus-visible {
  background: color-mix(in srgb, var(--line-color, var(--legacy-map-accent)) 78%, #ffffff) !important;
  filter: none !important;
}

body.is-public-map-open .map-action-button,
body.is-public-map-open .show-course-button,
body.is-public-map-open .vehicle-icon-button,
body.is-public-map-open .public-date-strip button {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: none !important;
}

body.is-public-map-open .live-icon.is-planned,
body.is-public-map-open .live-icon.is-live,
body.is-public-map-open .live-icon.is-offline {
  color: var(--legacy-map-muted) !important;
}

body.is-public-map-open .departure-status:has(.live-icon.is-planned),
body.is-public-map-open .departure-status:has(.live-icon.is-live),
body.is-public-map-open .departure-status:has(.live-icon.is-offline) {
  color: var(--legacy-map-muted) !important;
}

body.is-public-map-open .brigade-timeline-card.is-live-course {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line-color, #499f2b) 30%, rgba(29, 35, 31, 0.96)) 0%, rgba(29, 35, 31, 0.96) 58%),
    rgba(29, 35, 31, 0.96) !important;
  box-shadow: none !important;
}

body.is-public-map-open .brigade-timeline-card.is-live-course .brigade-course-copy small:last-child {
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 900 !important;
}

body.is-public-map-open .brigade-timeline-card.is-live-course .brigade-timeline-line::before,
body.is-public-map-open .brigade-timeline-card.is-live-course .brigade-timeline-line::after {
  border-color: color-mix(in srgb, var(--line-color, #499f2b) 42%, #ffffff) !important;
}


.public-map-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  background: #020403;
  color: #eef4ee;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-map-loader[hidden] {
  display: none !important;
}

.public-map-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.16);
  border-top-color: #eef4ee;
  border-right-color: #eef4ee;
  animation: public-map-loader-spin 0.82s linear infinite;
}

body.is-public-map-loading .map-edge-controls,
body.is-public-map-loading .public-map-panel,
body.is-public-map-loading .map-status-pill {
  visibility: hidden;
}

@keyframes public-map-loader-spin {
  to { transform: rotate(360deg); }
}

.admin-shell.is-central-view .central-vehicle-panel {
  position: fixed !important;
  top: 96px;
  right: auto !important;
  bottom: auto !important;
  left: 50%;
  z-index: 95;
  width: min(380px, calc(100vw - 28px));
  max-height: min(520px, calc(100dvh - 112px));
  overflow: auto;
  border-radius: 12px !important;
  transform: none;
}

.sip-target-card,
.sip-board-box {
  padding: 12px 14px;
  border: 1px solid #d5deea;
  border-radius: 6px;
  background: #f7f9fc;
  color: #111827;
  font-weight: 800;
  line-height: 1.35;
}

.sip-section {
  display: grid;
  gap: 8px;
}

.sip-mode-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #d5deea;
  border-radius: 6px;
  background: #eef2f7;
}

.sip-mode-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.sip-mode-tab.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.sip-mode-panel {
  display: grid;
  gap: 16px;
  align-items: start;
}

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

.sip-broadcast-panel,
.sip-board-panel {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.sip-broadcast-panel .sip-lines-section,
.sip-board-panel .sip-board-section {
  grid-row: 1 / span 2;
}

.sip-broadcast-panel .sip-text-field,
.sip-broadcast-panel .sip-editor-actions,
.sip-board-panel .sip-text-field,
.sip-board-panel .sip-toggle-row,
.sip-board-panel .sip-editor-actions {
  grid-column: 2;
}

.sip-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sip-section-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.sip-line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  padding-right: 2px;
}

.sip-line-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "dot line check" "dot type check";
  align-items: center;
  gap: 2px 8px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid #d5deea;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.sip-line-tile.is-trolleybus {
  background: #eef7f1;
}

.sip-line-tile .line-color-dot {
  grid-area: dot;
}

.sip-line-tile strong {
  grid-area: line;
  font-weight: 950;
}

.sip-line-tile small {
  grid-area: type;
  color: #5b6472;
  font-weight: 800;
}

.sip-line-tile input {
  grid-area: check;
  width: 18px;
  height: 18px;
}

.sip-board-box {
  display: grid;
  gap: 4px;
  font-weight: 750;
}

.sip-board-box span {
  color: #5b6472;
  font-size: 0.88rem;
}

.sip-editor-actions {
  justify-content: stretch;
}

.sip-editor-actions .primary-button {
  width: 100%;
}

.sip-text-field textarea {
  min-height: 112px;
}

.sip-toggle-row[hidden] {
  display: none !important;
}

#sipHideDeparturesRow {
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #f1b44c;
  border-radius: 6px;
  background: #fff8eb;
  color: #573a0a;
  font-weight: 850;
}


.admin-shell.is-central-view .central-sip-panel {
  position: fixed !important;
  inset: 0 var(--admin-sidebar-width, 306px) 0 0 !important;
  z-index: 105 !important;
  display: grid !important;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: 18px !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 24px !important;
  overflow: auto !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
}

.admin-shell.is-central-view .central-sip-panel[hidden] {
  display: none !important;
}

.admin-shell.is-central-view .central-sip-panel {
  inset: var(--admin-topbar-height, 58px) var(--admin-sidebar-width, 306px) 0 0 !important;
  padding: 16px 24px 20px !important;
  scroll-padding-top: 16px;
}

.admin-shell.is-central-view .sip-panel-heading,
.admin-shell.is-central-view .sip-target-card,
.admin-shell.is-central-view .sip-mode-tabs,
.admin-shell.is-central-view .sip-mode-panel {
  grid-column: 1 / -1;
}

.admin-shell.is-central-view .sip-panel-heading {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 12px;
  padding: 0 0 12px !important;
  border-bottom: 1px solid #d5deea;
  background: #ffffff;
}

.admin-shell.is-central-view .sip-target-card,
.admin-shell.is-central-view .sip-board-box {
  border-radius: 4px;
  background: #f5f7fa;
}

.admin-shell.is-central-view .sip-line-grid {
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  max-height: min(34dvh, 300px);
}

.admin-shell.is-central-view .sip-line-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 4px;
}

.admin-shell.is-central-view .sip-line-tile strong {
  font-size: 0.98rem;
}

.admin-shell.is-central-view .sip-line-tile input {
  width: 20px;
  height: 20px;
}

.admin-shell.is-central-view .sip-line-tile .line-color-dot,
.admin-shell.is-central-view .sip-line-tile small {
  display: none !important;
}

@media (max-width: 900px) {
  .admin-shell.is-central-view .central-sip-panel {
    inset: 0 !important;
    grid-template-columns: 1fr;
  }

  .sip-broadcast-panel,
  .sip-board-panel {
    grid-template-columns: 1fr;
  }

  .sip-broadcast-panel .sip-lines-section,
  .sip-board-panel .sip-board-section,
  .sip-broadcast-panel .sip-text-field,
  .sip-broadcast-panel .sip-editor-actions,
  .sip-board-panel .sip-text-field,
  .sip-board-panel .sip-toggle-row,
  .sip-board-panel .sip-editor-actions {
    grid-column: 1;
    grid-row: auto;
  }
}

.admin-shell.is-central-view .sip-panel-heading h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
}

.admin-shell.is-central-view .sip-panel-actions {
  position: static !important;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.admin-shell.is-central-view #sipRefreshButton {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.admin-shell.is-central-view #sipCloseButton {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #111827 !important;
  border-radius: 0 !important;
  background: #111827 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-size: 1.1rem;
  line-height: 1;
  transform: none !important;
}

.admin-shell.is-central-view #sipCloseButton:hover,
.admin-shell.is-central-view #sipCloseButton:focus-visible {
  background: #0f172a !important;
}

@media (max-width: 900px) {
  .admin-shell.is-central-view .central-sip-panel {
    inset: var(--admin-topbar-height, 58px) 0 0 0 !important;
    grid-template-columns: 1fr;
    padding: 14px 16px 18px !important;
  }

  .admin-shell.is-central-view .sip-broadcast-panel,
  .admin-shell.is-central-view .sip-board-panel {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .admin-shell.is-central-view .sip-broadcast-panel .sip-lines-section,
  .admin-shell.is-central-view .sip-board-panel .sip-board-section,
  .admin-shell.is-central-view .sip-broadcast-panel .sip-text-field,
  .admin-shell.is-central-view .sip-broadcast-panel .sip-editor-actions,
  .admin-shell.is-central-view .sip-board-panel .sip-text-field,
  .admin-shell.is-central-view .sip-board-panel .sip-toggle-row,
  .admin-shell.is-central-view .sip-board-panel .sip-editor-actions {
    grid-column: 1;
    grid-row: auto;
  }
}


.admin-shell.is-central-view .sip-text-field textarea {
  resize: none;
}

body.is-public-map-open .stop-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.is-public-map-open .stop-panel-title > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-public-map-open .stop-type-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  background: #43a947;
}

body.is-public-map-open .stop-type-icon::before {
  content: "";
  width: 19px;
  height: 19px;
  background: #ffffff;
  mask: url("/assets/bus-icon.png") center / contain no-repeat;
  -webkit-mask: url("/assets/bus-icon.png") center / contain no-repeat;
}

body.is-public-map-open .stop-type-icon.is-trolleybus {
  background: #2f7d44;
}

body.is-public-map-open .stop-type-icon.is-trolleybus::before {
  mask-image: url("/assets/trolleybus-icon.png");
  -webkit-mask-image: url("/assets/trolleybus-icon.png");
}

body.is-public-map-open .departure-list {
  gap: 2px !important;
}

body.is-public-map-open .departure-card {
  grid-template-rows: auto auto;
  min-height: 62px;
  height: auto !important;
  padding: 8px 6px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.is-public-map-open .departure-card:hover,
body.is-public-map-open .departure-card:focus-within {
  background: rgba(255, 255, 255, 0.045) !important;
  transform: none !important;
}

body.is-public-map-open .departure-card.is-expanded {
  min-height: 112px;
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  background: rgba(29, 35, 31, 0.9) !important;
}

body.is-public-map-open .departure-main {
  align-items: center;
}

body.is-public-map-open .departure-info {
  gap: 8px;
}

body.is-public-map-open .departure-info > strong {
  font-size: 0.92rem;
  font-weight: 950;
}

body.is-public-map-open .departure-card .line-badge {
  min-width: 32px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 7px !important;
}

body.is-public-map-open .departure-card .line-badge-icon {
  width: 12px;
  height: 12px;
}

body.is-public-map-open .departure-status {
  gap: 5px;
  padding-left: 40px;
  font-size: 0.78rem;
}

body.is-public-map-open .departure-status-time {
  color: rgba(255, 255, 255, 0.72);
}

body.is-public-map-open .departure-minutes {
  min-width: 44px;
}

body.is-public-map-open .departure-minutes strong {
  font-size: 0.96rem;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) {
  padding-right: 0 !important;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) .map-panel-head {
  padding-right: 14px;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) .map-panel-body {
  padding-right: 0 !important;
}

body.is-public-map-open .map-panel-grip::before {
  background: rgba(255, 255, 255, 0.78) !important;
}

body.is-public-map-open .map-panel-grip:hover::before,
body.is-public-map-open .map-panel-grip:focus-visible::before {
  background: #ffffff !important;
}

body.is-public-map-open .public-map-panel .map-panel-body::-webkit-scrollbar {
  width: 12px;
}

body.is-public-map-open .public-map-panel .map-panel-body::-webkit-scrollbar-track {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
}

body.is-public-map-open .public-map-panel .map-panel-body::-webkit-scrollbar-thumb {
  border: 3px solid rgba(0, 0, 0, 0);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  background-clip: padding-box;
}

body.is-public-map-open .public-map-panel .map-panel-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.78);
  background-clip: padding-box;
}

body.is-public-map-open .public-map-panel .map-panel-head .line-badge {
  min-width: 38px;
  min-height: 29px;
  padding: 0 8px;
  border: 0 !important;
  border-radius: 7px !important;
  background: var(--line-color, var(--route-color, #43a947)) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-map-panel .map-panel-head .line-badge-icon {
  width: 14px;
  height: 14px;
  background: #ffffff !important;
}

body.is-public-map-open .vehicle-course-list {
  --timeline-left: 62px;
  --timeline-width: 18px;
  --timeline-center: calc(var(--timeline-left) + (var(--timeline-width) / 2));
  gap: 0 !important;
  padding-right: 8px;
}

body.is-public-map-open .vehicle-course-list .public-route-stop {
  grid-template-columns: 50px 42px minmax(0, 1fr) 46px !important;
  gap: 2px !important;
  min-height: 54px;
  padding: 0 6px 13px 0 !important;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:hover {
  background: rgba(255, 255, 255, 0.035) !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop::before {
  top: -1px !important;
  bottom: -1px !important;
  left: var(--timeline-left) !important;
  width: var(--timeline-width) !important;
  border-radius: 0 !important;
  background: var(--route-color, #43a947) !important;
  opacity: 1;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:first-child::before {
  top: 2px !important;
  border-radius: 999px 999px 0 0 !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:last-child::before {
  display: block !important;
  bottom: 2px !important;
  border-radius: 0 0 999px 999px !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:only-child::before {
  top: 2px !important;
  bottom: 2px !important;
  border-radius: 999px !important;
}

body.is-public-map-open .vehicle-course-list .route-dot {
  align-self: start;
  justify-self: start;
  z-index: 3;
  width: 10px !important;
  height: 10px !important;
  margin-top: 8px !important;
  margin-left: calc(var(--timeline-center) - 50px - 2px - 5px) !important;
  border: 0 !important;
  border-radius: 999px;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop.is-current .route-dot,
body.is-public-map-open .vehicle-course-list .public-route-stop.is-between-stops.is-current .route-dot,
body.is-public-map-open .vehicle-course-list .public-route-stop.is-approaching-stop.is-current .route-dot {
  background: #ffffff !important;
  box-shadow: none !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop.is-passed .route-dot {
  background: rgba(255, 255, 255, 0.64) !important;
}

body.is-public-map-open .vehicle-course-list .mini-bus-dot {
  width: 26px !important;
  height: 26px !important;
  background: color-mix(in srgb, var(--route-color, #43a947) 58%, #182018) !important;
  box-shadow: 0 0 0 6px var(--route-color, #43a947) !important;
}

body.is-public-map-open .vehicle-course-list .mini-bus-dot::before {
  inset: 5px;
  background: #ffffff;
}

body.is-public-map-open .vehicle-course-list .route-dot .mini-bus-dot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body.is-public-map-open .vehicle-course-list .route-between-bus {
  left: var(--timeline-center) !important;
  top: calc(50% + 13px) !important;
  transform: translate(-50%, -50%);
}

body.is-public-map-open .vehicle-course-list .route-time,
body.is-public-map-open .vehicle-course-list .route-minutes {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.15;
  text-align: right;
}

body.is-public-map-open .vehicle-course-list .route-time {
  padding-top: 4px;
}

body.is-public-map-open .vehicle-course-list .route-minutes {
  padding-top: 3px;
  color: rgba(255, 255, 255, 0.82) !important;
}

body.is-public-map-open .vehicle-course-list .route-stop-name strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.2;
}

body.is-public-map-open .vehicle-course-list .route-status {
  display: block !important;
  width: max-content;
  max-width: 100%;
  margin-top: 1px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

body.is-public-map-open .vehicle-course-list .route-status.is-planned {
  color: #65e982 !important;
}

body.is-public-map-open .vehicle-course-list .route-status.is-delayed {
  color: #ff6868 !important;
}

body.is-public-map-open .vehicle-course-list .route-status.is-early {
  color: #f2a33a !important;
}

body.is-public-map-open .vehicle-course-list .route-status.is-live,
body.is-public-map-open .vehicle-course-list .route-status.is-offline,
body.is-public-map-open .vehicle-course-list .route-status.is-waiting {
  color: rgba(255, 255, 255, 0.66) !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop.is-passed .route-stop-name strong,
body.is-public-map-open .vehicle-course-list .public-route-stop.is-passed .route-status,
body.is-public-map-open .vehicle-course-list .public-route-stop.is-passed .route-time,
body.is-public-map-open .vehicle-course-list .public-route-stop.is-passed .route-time-stack b,
body.is-public-map-open .vehicle-course-list .public-route-stop.is-passed .route-time-stack s {
  color: rgba(255, 255, 255, 0.42) !important;
}

body.is-public-map-open .vehicle-course-list .route-request-hand,
body.is-public-map-open .vehicle-course-list .route-driver-only-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  body.is-public-map-open .vehicle-course-list {
    --timeline-left: 59px;
    --timeline-width: 17px;
    padding-right: 4px;
  }

  body.is-public-map-open .vehicle-course-list .public-route-stop {
    grid-template-columns: 48px 38px minmax(0, 1fr) 42px !important;
    min-height: 52px;
  }

  body.is-public-map-open .vehicle-course-list .route-dot {
    margin-left: calc(var(--timeline-center) - 48px - 2px - 5px) !important;
  }
}


body.is-public-map-open .public-map-panel.is-bottom:has(.departure-list) {
  padding-right: 0 !important;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.departure-list) .map-panel-head {
  padding-right: 14px;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.departure-list) .map-panel-body {
  padding-right: 0 !important;
}

body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton,
body.is-public-map-open .public-map-panel.is-center #mapPanelCloseButton {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(30, 34, 31, 0.88) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton:hover,
body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton:focus-visible,
body.is-public-map-open .public-map-panel.is-center #mapPanelCloseButton:hover,
body.is-public-map-open .public-map-panel.is-center #mapPanelCloseButton:focus-visible {
  background: rgba(20, 24, 21, 0.96) !important;
}

body.is-public-map-open .departure-list {
  gap: 0 !important;
  padding-right: 8px;
}

body.is-public-map-open .departure-card {
  position: relative;
  isolation: isolate;
  grid-template-rows: auto auto;
  min-height: 66px;
  padding: 9px 8px !important;
  overflow: hidden;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 18px !important;
  background: transparent !important;
}

body.is-public-map-open .departure-card::after {
  content: "";
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  z-index: -1;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

body.is-public-map-open .departure-card:hover,
body.is-public-map-open .departure-card:focus-within {
  background: rgba(255, 255, 255, 0.04) !important;
}

body.is-public-map-open .departure-card:active {
  background: rgba(255, 255, 255, 0.1) !important;
}

body.is-public-map-open .departure-card.is-rippling::after {
  animation: departureRipple 0.48s ease-out;
}

@keyframes departureRipple {
  0% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(38);
  }
}

body.is-public-map-open .departure-card.is-expanded {
  min-height: 120px;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.13) !important;
}

body.is-public-map-open .departure-main {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

body.is-public-map-open .departure-info {
  align-items: center;
  gap: 8px;
}

body.is-public-map-open .departure-card .line-badge {
  min-width: 42px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px !important;
}

body.is-public-map-open .departure-card .line-badge-icon {
  width: 14px;
  height: 14px;
}

body.is-public-map-open .departure-status {
  padding-left: 0 !important;
  margin-top: 1px;
  gap: 4px;
  align-items: center;
}

body.is-public-map-open .departure-status .live-icon {
  width: 14px;
  height: 14px;
}

body.is-public-map-open .departure-status strong,
body.is-public-map-open .departure-status-time {
  line-height: 1.15;
}

body.is-public-map-open .departure-status-time::before {
  content: " · ";
  color: rgba(255, 255, 255, 0.55);
}

body.is-public-map-open .vehicle-course-list {
  padding-bottom: 12px;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:last-child {
  min-height: 58px;
  padding-bottom: 18px !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:last-child::before {
  bottom: 10px !important;
}


body.is-public-map-open .public-map-panel #mapPanelCloseButton {
  position: relative;
  font-size: 0 !important;
  line-height: 0 !important;
}

body.is-public-map-open .public-map-panel #mapPanelCloseButton::before,
body.is-public-map-open .public-map-panel #mapPanelCloseButton::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

body.is-public-map-open .public-map-panel #mapPanelCloseButton::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.is-public-map-open .public-map-panel #mapPanelCloseButton::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


body.is-public-map-open .departure-minutes span,
body.is-public-map-open .route-minutes {
  color: rgba(255, 255, 255, 0.54) !important;
}

body.is-public-map-open .route-minutes::first-line {
  color: rgba(255, 255, 255, 0.9);
}

body.is-public-map-open .vehicle-course-list {
  --route-time-column: 50px;
  --route-dot-column: 42px;
  --route-column-gap: 2px;
  --timeline-width: 18px;
  --timeline-left: calc(var(--route-time-column) + var(--route-column-gap) + ((var(--route-dot-column) - var(--timeline-width)) / 2));
  --timeline-center: calc(var(--timeline-left) + (var(--timeline-width) / 2));
}

body.is-public-map-open .vehicle-course-list .public-route-stop {
  isolation: isolate;
  cursor: pointer;
  grid-template-columns: var(--route-time-column) var(--route-dot-column) minmax(0, 1fr) 46px !important;
  overflow: hidden !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop > * {
  position: relative;
  z-index: 2;
}

body.is-public-map-open .vehicle-course-list .public-route-stop::before {
  z-index: 1;
}

body.is-public-map-open .vehicle-course-list .public-route-stop::after {
  content: "";
  position: absolute;
  inset: 2px 0 7px 0;
  z-index: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at var(--route-ripple-x, 50%) var(--route-ripple-y, 50%), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08) 40%, transparent 72%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.045));
  opacity: 0;
  transform: none;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:hover::after,
body.is-public-map-open .vehicle-course-list .public-route-stop:focus-within::after {
  opacity: 1;
}

body.is-public-map-open .vehicle-course-list .public-route-stop.is-rippling::after {
  animation: routeStopRipple 0.46s ease-out;
}

@keyframes routeStopRipple {
  0% {
    opacity: 0.92;
  }

  100% {
    opacity: 0;
  }
}

body.is-public-map-open .vehicle-course-list .route-dot {
  align-self: center !important;
  justify-self: center !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:first-child::before {
  top: 2px !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:last-child {
  min-height: 54px;
  padding-bottom: 10px !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:last-child::before {
  top: -1px !important;
  bottom: auto !important;
  height: 25px !important;
  border-radius: 0 0 999px 999px !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:only-child::before {
  top: 2px !important;
  height: 22px !important;
  border-radius: 999px !important;
}

@media (max-width: 760px) {
  body.is-public-map-open .vehicle-course-list {
    --route-time-column: 48px;
    --route-dot-column: 38px;
    --timeline-width: 17px;
  }

  body.is-public-map-open .vehicle-course-list .route-dot {
    margin: 0 !important;
  }
}


body.is-public-map-open .departure-card {
  transition:
    min-height 0.26s ease,
    padding 0.26s ease,
    background 0.2s ease,
    border-radius 0.24s ease;
}

body.is-public-map-open .departure-card.is-opening {
  animation: departureCardOpen 0.32s ease-out;
}

body.is-public-map-open .departure-card.is-opening .departure-actions {
  animation: departureActionsOpen 0.28s ease-out both;
}

@keyframes departureCardOpen {
  0% {
    clip-path: inset(0 0 calc(100% - 66px) 0 round 18px);
    background: rgba(255, 255, 255, 0.06);
  }

  100% {
    clip-path: inset(0 0 0 0 round 22px);
    background: rgba(255, 255, 255, 0.13);
  }
}

@keyframes departureActionsOpen {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


body.is-public-map-open .vehicle-course-list .public-route-stop {
  align-items: center !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:hover {
  background: transparent !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop::after {
  inset: 2px 0 7px 0;
  background:
    radial-gradient(circle at var(--route-ripple-x, 50%) var(--route-ripple-y, 50%), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.075) 42%, transparent 74%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045));
}

body.is-public-map-open .vehicle-course-list .route-dot {
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
}

body.is-public-map-open .vehicle-course-list .route-minutes {
  display: grid;
  justify-items: end;
  gap: 1px;
  color: rgba(255, 255, 255, 0.9) !important;
}

body.is-public-map-open .vehicle-course-list .route-minutes strong {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.78rem;
  line-height: 1;
}

body.is-public-map-open .vehicle-course-list .route-minutes span {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.68rem;
  line-height: 1;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:first-child::before {
  top: 10px !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:last-child::before {
  top: 0 !important;
  height: calc(50% + 8px) !important;
  bottom: auto !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop:only-child::before {
  top: calc(50% - 10px) !important;
  height: 20px !important;
}


.request-hand {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
}


body.is-public-map-open .departure-status .live-icon,
body.is-public-map-open .route-status .live-icon {
  opacity: 1 !important;
  background: currentColor !important;
  border-color: currentColor !important;
}

body.is-public-map-open .departure-status .live-icon.is-planned,
body.is-public-map-open .live-icon.is-planned {
  color: #57df74 !important;
}

body.is-public-map-open .departure-status .live-icon.is-delayed,
body.is-public-map-open .live-icon.is-delayed {
  color: #ff4d4d !important;
}

body.is-public-map-open .departure-status .live-icon.is-early,
body.is-public-map-open .live-icon.is-early {
  color: #f5a623 !important;
}

body.is-public-map-open .departure-status .live-icon.is-live,
body.is-public-map-open .departure-status .live-icon.is-offline,
body.is-public-map-open .live-icon.is-live,
body.is-public-map-open .live-icon.is-offline {
  color: #b8c0ba !important;
}

body.is-public-map-open .vehicle-course-list .route-driver-only-icon {
  transform: none !important;
  rotate: 0deg !important;
  background: transparent !important;
  border-color: #ff4d4d !important;
}

body.is-public-map-open .vehicle-course-list .route-driver-only-icon::before {
  transform: translate(-50%, -50%) !important;
  rotate: 0deg !important;
  background: #ff4d4d !important;
}


body.is-public-map-open .vehicle-course-list .public-route-stop {
  grid-template-columns: var(--route-time-column) var(--route-dot-column) minmax(0, 1fr) 46px !important;
  overflow: hidden !important;
}

body.is-public-map-open .vehicle-course-list .route-dot {
  align-self: center !important;
  justify-self: center !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop::after {
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}


body.is-public-map-open .vehicle-course-list .mini-bus-dot {
  width: 22px !important;
  height: 22px !important;
  box-shadow: 0 0 0 3px var(--route-color, #43a947) !important;
}

body.is-public-map-open .vehicle-course-list .mini-bus-dot::before {
  inset: 4px !important;
}

body.is-public-map-open .vehicle-course-list .route-between-bus {
  position: absolute !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  left: var(--timeline-center) !important;
  top: 50% !important;
  z-index: 5 !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none !important;
}

body.is-public-map-open .vehicle-course-list .public-route-stop.is-between-stops .route-dot {
  background: #ffffff !important;
}


body.is-public-map-open .live-icon,
body.is-public-map-open .departure-status .live-icon,
body.is-public-map-open .route-status .live-icon {
  background: transparent !important;
  border-color: currentColor !important;
}

body.is-public-map-open .live-icon::before,
body.is-public-map-open .departure-status .live-icon::before,
body.is-public-map-open .route-status .live-icon::before {
  background: currentColor !important;
}


.map-favorites-control {
  position: fixed;
  top: 106px;
  right: 14px;
  z-index: 55;
}

.map-favorites-control img,
.favorite-stop-button img,
.favorite-stop-remove img,
.favorite-title-icon img,
.favorites-empty-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.map-favorites-control.is-active,
.map-favorites-control.has-favorites {
  color: #9af18f;
}

.map-favorites-control.is-active {
  background: rgba(7, 74, 21, 0.96);
}

body.is-public-map-open .stop-panel-title {
  width: 100%;
}

body.is-public-map-open .stop-panel-title-main {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

body.is-public-map-open .stop-panel-title-main > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-public-map-open .favorite-stop-button,
body.is-public-map-open .favorite-stop-remove {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

body.is-public-map-open .favorite-stop-button:hover,
body.is-public-map-open .favorite-stop-button:focus-visible,
body.is-public-map-open .favorite-stop-remove:hover,
body.is-public-map-open .favorite-stop-remove:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

body.is-public-map-open .favorites-panel-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

body.is-public-map-open .favorite-title-icon,
body.is-public-map-open .favorites-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(67, 169, 71, 0.24);
}

body.is-public-map-open .favorite-stop-list {
  display: grid;
  gap: 6px;
  padding-right: 2px;
}

body.is-public-map-open .favorite-stop-card {
  display: grid;
  gap: 8px;
  padding: 8px 4px 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

body.is-public-map-open .favorite-stop-card:hover,
body.is-public-map-open .favorite-stop-card:focus-within {
  background: rgba(255, 255, 255, 0.045);
}

body.is-public-map-open .favorite-stop-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

body.is-public-map-open .favorite-stop-heading strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
  font-weight: 950;
}

body.is-public-map-open .favorite-departure-list {
  display: grid;
  gap: 5px;
  padding-left: 40px;
}

body.is-public-map-open .favorite-departure-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 24px;
}

body.is-public-map-open .favorite-departure-row .line-badge {
  min-width: 32px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 7px !important;
}

body.is-public-map-open .favorite-departure-row .line-badge-icon {
  width: 11px;
  height: 11px;
}

body.is-public-map-open .favorite-departure-direction {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 900;
}

body.is-public-map-open .favorite-departure-time {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  justify-self: end;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 950;
}

body.is-public-map-open .favorite-departure-time.is-planned {
  color: #60ef82;
}

body.is-public-map-open .favorite-departure-time.is-delayed {
  color: #ff6262;
}

body.is-public-map-open .favorite-departure-time.is-early {
  color: #f5a623;
}

body.is-public-map-open .favorite-departure-time span {
  opacity: 0.82;
}

body.is-public-map-open .favorites-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
}

body.is-public-map-open .favorites-empty strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.12rem;
}

body.is-public-map-open .favorite-empty-small {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  text-align: left;
}

@media (max-width: 760px) {
  .map-favorites-control {
    top: 106px;
    right: 10px;
  }

  body.is-public-map-open .favorite-departure-list {
    padding-left: 34px;
  }

  body.is-public-map-open .favorite-departure-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.is-public-map-open .favorite-departure-time {
    grid-column: 2;
    justify-self: start;
  }
}


body.is-public-map-open .public-map-panel.is-bottom .map-panel-head {
  position: relative;
  z-index: 3;
  margin: 0 -14px 10px;
  padding: 0 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(69, 75, 70, 0.88), rgba(49, 57, 51, 0.86));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent);
  pointer-events: none;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) .map-panel-head {
  padding-right: 14px;
}


body.is-public-map-open .departure-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  padding: 4px 24px 0;
}

body.is-public-map-open .departure-actions .show-course-button {
  display: grid;
  min-height: 52px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 12px;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none !important;
}

body.is-public-map-open .departure-actions .show-course-button:hover,
body.is-public-map-open .departure-actions .show-course-button:focus-visible {
  background: rgba(255, 255, 255, 0.07) !important;
}

body.is-public-map-open .departure-action-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

body.is-public-map-open .departure-action-icon img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

body.is-public-map-open .departure-actions .show-course-button span:last-child {
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.1;
}


body.is-public-map-open .departure-actions.is-single {
  grid-template-columns: minmax(110px, 150px);
  justify-content: center;
  padding-inline: 0;
}


body.is-public-map-open .departure-empty {
  display: grid !important;
  min-height: 150px !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 1.06rem;
  font-weight: 950;
  text-align: center;
}

body.is-public-map-open .departure-empty::before,
body.is-public-map-open .departure-empty::after {
  content: none !important;
  display: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head {
  background: transparent !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head,
body.is-public-map-open .public-map-panel.is-bottom .map-panel-head > div,
body.is-public-map-open .public-map-panel.is-bottom .map-panel-head h2 {
  overflow: visible !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head h2 {
  width: 100%;
  padding-right: 92px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title {
  min-width: 0;
}

body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton,
body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button {
  display: inline-grid !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(20, 26, 22, 0.88) !important;
  box-shadow: none !important;
  place-items: center !important;
}

body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton:hover,
body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton:focus-visible,
body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button:hover,
body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button:focus-visible {
  background: rgba(20, 26, 22, 0.96) !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button {
  position: absolute !important;
  top: 50% !important;
  right: 48px !important;
  z-index: 8;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button img {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  filter: none !important;
  opacity: 1 !important;
}

body.is-public-map-open #mapMenuButton {
  color: #ffffff !important;
}

body.is-public-map-open .menu-line {
  background: #ffffff !important;
}

html:has(body.is-public-map-open),
body.is-public-map-open {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  scrollbar-gutter: auto !important;
}

body.is-public-map-open .page-shell,
body.is-public-map-open .map-app-view {
  max-width: 100vw !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

body.is-public-map-open .public-map-canvas {
  max-width: 100vw !important;
  max-height: 100dvh !important;
}

body.is-public-map-open .map-favorites-control {
  display: inline-grid !important;
  position: fixed !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 70 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: rgba(20, 26, 22, 0.88) !important;
  color: #ffffff !important;
  place-items: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.is-public-map-open .map-favorites-control img {
  display: block !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  filter: none !important;
  opacity: 1 !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button img,
body.is-public-map-open .map-favorites-control img {
  display: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button::before,
body.is-public-map-open .map-favorites-control::before {
  content: "☆";
  display: block;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button.is-active::before,
body.is-public-map-open .map-favorites-control.is-active::before,
body.is-public-map-open .map-favorites-control.has-favorites::before {
  content: "★";
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button {
  right: 48px !important;
}

body.is-public-map-open .map-favorites-control {
  top: 14px !important;
  right: 14px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button {
  right: 60px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head h2 {
  padding-right: 108px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button::before {
  content: none !important;
  display: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button img {
  display: block !important;
  width: 23px !important;
  height: 23px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1 !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button {
  top: calc(50% - 2px) !important;
  right: 52px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head h2 {
  padding-right: 96px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
}

body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 96px) !important;
}

body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title-main > span:last-child {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head {
  min-height: 74px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head h2,
body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title,
body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title-main {
  overflow: visible !important;
  line-height: 1.25 !important;
}

body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title-main > span:last-child {
  display: block !important;
  padding-bottom: 2px !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
}

body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title {
  width: 100% !important;
  max-width: 100% !important;
}

body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title-main {
  width: 100% !important;
  max-width: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title-main > span:last-child {
  max-width: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head {
  min-height: 48px !important;
  margin-bottom: 6px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head h2 {
  min-height: 34px !important;
  padding-right: 94px !important;
  align-items: center !important;
}

body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title,
body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title-main {
  align-items: center !important;
  line-height: 1.18 !important;
}

body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title-main > span:last-child {
  padding-top: 1px !important;
  padding-bottom: 3px !important;
  line-height: 1.18 !important;
}

body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton,
body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button {
  top: calc(50% - 1px) !important;
  right: 50px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button img {
  display: block !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  transform: translateY(-1px) scale(1.05) !important;
  filter: none !important;
  opacity: 1 !important;
}

body.is-public-map-open .map-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 82;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

body.is-public-map-open.is-map-drawer-open .map-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.is-public-map-open .map-side-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 83;
  display: flex;
  width: min(282px, calc(100vw - 34px));
  padding: 18px 10px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 55, 15, 0.96);
  color: #ffffff;
  flex-direction: column;
  gap: 18px;
  box-shadow: 18px 0 46px rgba(0, 0, 0, 0.3);
  transform: translateX(-104%);
  transition: transform 260ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

body.is-public-map-open.is-map-drawer-open .map-side-drawer {
  transform: translateX(0);
}

body.is-public-map-open .map-drawer-brand {
  display: flex;
  min-height: 48px;
  padding: 0 8px;
  align-items: center;
  gap: 12px;
}

body.is-public-map-open .map-drawer-brand strong,
body.is-public-map-open .map-drawer-brand span {
  display: block;
}

body.is-public-map-open .map-drawer-brand strong {
  font-size: 1rem;
  font-weight: 950;
}

body.is-public-map-open .map-drawer-brand span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 850;
}

body.is-public-map-open .map-drawer-logo {
  display: inline-grid;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  place-items: center;
}

body.is-public-map-open .map-drawer-logo::before {
  content: "";
  width: 24px;
  height: 18px;
  border: 3px solid #ffffff;
  border-top-width: 5px;
  border-radius: 8px 8px 5px 5px;
}

body.is-public-map-open .map-drawer-nav {
  display: grid;
  gap: 6px;
}

body.is-public-map-open .map-drawer-nav button,
body.is-public-map-open .map-drawer-footer a {
  display: flex;
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  align-items: center;
  gap: 13px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

body.is-public-map-open .map-drawer-nav button:hover,
body.is-public-map-open .map-drawer-nav button:focus-visible,
body.is-public-map-open .map-drawer-nav button.is-active,
body.is-public-map-open .map-drawer-footer a:hover,
body.is-public-map-open .map-drawer-footer a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  outline: none;
}

body.is-public-map-open .map-drawer-nav button:active,
body.is-public-map-open .map-drawer-footer a:active {
  transform: translateY(1px);
}

body.is-public-map-open .map-drawer-footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.is-public-map-open .map-drawer-footer a {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

body.is-public-map-open .map-drawer-icon {
  display: inline-grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
}

body.is-public-map-open .map-drawer-icon.is-map {
  background-image: url("/assets/nav-map.png");
}

body.is-public-map-open .map-drawer-icon.is-schedules {
  background-image: url("/assets/nav-schedules.png");
}

body.is-public-map-open .map-drawer-icon.is-blog {
  background-image: url("/assets/nav-blog.png");
}

body.is-public-map-open .map-drawer-icon.is-settings {
  background-image: url("/assets/nav-settings.png");
}

body.is-public-map-open .map-drawer-icon.is-discord {
  background-image: url("/assets/nav-discord.png");
}

body.is-public-map-open .map-drawer-icon.is-contact {
  background-image: url("/assets/nav-contact.png");
}

body.is-public-map-open .map-side-drawer[hidden],
body.is-public-map-open .map-drawer-backdrop[hidden] {
  display: none !important;
}

body.is-public-map-open .map-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 53;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

body.is-public-map-open.is-public-map-favorites-panel-open .map-panel-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.is-public-map-open .map-panel-backdrop[hidden] {
  display: none !important;
}

body.is-public-map-open.is-public-map-detail-panel-open .map-favorites-control,
body.is-public-map-open.is-public-map-favorites-panel-open .map-favorites-control {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(10px) scale(0.94) !important;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton {
  gap: 0 !important;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line {
  width: 18px !important;
  height: 2.2px !important;
  margin: 0 !important;
  transform-origin: 4px 50%;
  transition: transform 180ms ease, width 180ms ease, opacity 180ms ease;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line:nth-child(1) {
  transform: translate(-1px, 1px) rotate(-38deg);
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line:nth-child(2) {
  width: 20px !important;
  transform: translateX(1px);
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line:nth-child(3) {
  transform: translate(-1px, -1px) rotate(38deg);
}

body.is-public-map-open .map-favorites-control::before,
body.is-public-map-open .map-favorites-control.is-active::before,
body.is-public-map-open .map-favorites-control.has-favorites::before {
  content: "☆" !important;
}

body.is-public-map-open .departure-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-items: center !important;
  align-items: center !important;
  padding: 6px 34px 0 !important;
}

body.is-public-map-open .departure-actions.is-single {
  grid-template-columns: minmax(118px, 168px) !important;
  justify-content: center !important;
  justify-items: stretch !important;
  padding-inline: 0 !important;
}

body.is-public-map-open .departure-actions .show-course-button {
  width: min(160px, 100%) !important;
  justify-items: center !important;
  text-align: center !important;
}

body.is-public-map-open .vehicle-course-list .route-between-bus {
  top: calc(100% - 1px) !important;
  left: var(--timeline-center) !important;
  transform: translate(-50%, -50%) !important;
}

body.is-public-map-open .vehicle-course-list .mini-bus-dot {
  background: color-mix(in srgb, var(--route-color, #43a947) 58%, #101611) !important;
  box-shadow:
    0 0 0 2px var(--route-color, #43a947),
    0 5px 14px rgba(0, 0, 0, 0.28) !important;
}

body.is-public-map-open .line-badge,
body.is-public-map-open .departure-card .line-badge,
body.is-public-map-open .favorite-departure-row .line-badge,
body.is-public-map-open .public-line-button {
  background: var(--line-color, var(--route-color, #43a947)) !important;
}

body.is-public-map-open .line-badge.is-unassigned {
  background: #2f6fc7 !important;
}

body.is-public-map-open .vehicle-panel-actions {
  z-index: 25 !important;
  pointer-events: auto !important;
}

body.is-public-map-open .vehicle-icon-button,
body.is-public-map-open .vehicle-mini-menu,
body.is-public-map-open .vehicle-mini-menu button {
  pointer-events: auto !important;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) #mapPanelCloseButton {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(20, 26, 22, 0.88) !important;
  color: #ffffff !important;
  font-size: 0 !important;
}

body.is-public-map-open .map-drawer-logo {
  background: rgba(255, 255, 255, 0.12) url("/assets/logo.svg") center / 30px 30px no-repeat !important;
}

body.is-public-map-open .map-drawer-logo::before {
  content: none !important;
}

body.is-public-map-open.is-map-drawer-open #mapMenuButton {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton {
  gap: 0 !important;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line {
  position: absolute !important;
  width: 17px !important;
  height: 2.4px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  transform-origin: 4px 50% !important;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line:nth-child(1) {
  transform: translate(-3px, -5px) rotate(-38deg) !important;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line:nth-child(2) {
  width: 22px !important;
  transform: translate(1px, 0) !important;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line:nth-child(3) {
  transform: translate(-3px, 5px) rotate(38deg) !important;
}

body.is-public-map-open #mapMenuButton {
  position: relative !important;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line:nth-child(1),
body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line:nth-child(3) {
  width: 14px !important;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line:nth-child(1) {
  transform: translate(-5px, -4px) rotate(-42deg) !important;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line:nth-child(2) {
  width: 22px !important;
  transform: translate(1px, 0) !important;
}

body.is-public-map-open.is-public-map-detail-panel-open #mapMenuButton .menu-line:nth-child(3) {
  transform: translate(-5px, 4px) rotate(42deg) !important;
}


body.is-public-map-open {
  --map-accent: #207a2b;
  --map-accent-deep: #045813;
  --map-accent-soft: rgba(32, 122, 43, 0.22);
}

body.is-public-map-open .map-round-button {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: var(--map-accent-deep) !important;
}

body.is-public-map-open .map-round-button:hover,
body.is-public-map-open .map-round-button:focus-visible {
  background: color-mix(in srgb, var(--map-accent-deep) 86%, #ffffff) !important;
}

body.is-public-map-open .map-side-drawer {
  background: color-mix(in srgb, var(--map-accent-deep) 94%, #020402) !important;
}

body.is-public-map-open .map-drawer-logo,
body.is-public-map-open .map-drawer-nav button.is-active,
body.is-public-map-open .map-drawer-nav button:hover,
body.is-public-map-open .map-drawer-nav button:focus-visible,
body.is-public-map-open .map-drawer-footer a:hover,
body.is-public-map-open .map-drawer-footer a:focus-visible {
  background-color: var(--map-accent) !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen {
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-height: none !important;
  padding: 18px 16px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #151a16 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
  transform: none !important;
  backdrop-filter: none !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .map-panel-grip,
body.is-public-map-open .public-map-panel.is-fullscreen #mapPanelCloseButton,
body.is-public-map-open .public-map-panel.is-fullscreen .eyebrow {
  display: none !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .map-panel-head {
  min-height: 34px !important;
  margin: 0 0 16px !important;
  padding: 0 0 0 44px !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .map-panel-head h2 {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.15rem !important;
  font-weight: 950 !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .map-panel-body {
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  padding: 0 0 18px !important;
  overflow: auto !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-line-search {
  margin: 4px 0 8px !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-line-search input {
  min-height: 40px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-line-grid {
  width: min(1060px, 100%) !important;
  margin: 0 auto !important;
  justify-content: center !important;
  gap: 8px !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-line-button {
  min-width: 80px !important;
  min-height: 30px !important;
  padding: 0 16px !important;
  background: color-mix(in srgb, var(--line-color, var(--map-accent)) 92%, #102015) !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-date-strip,
body.is-public-map-open .public-map-panel.is-fullscreen .brigade-line-tabs,
body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-list,
body.is-public-map-open .public-map-panel.is-fullscreen .brigade-day-list {
  width: min(1180px, 100%) !important;
  margin-inline: auto !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-date-strip {
  display: grid !important;
  grid-template-columns: auto 1fr auto auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-list.is-picker {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 8px !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-choice,
body.is-public-map-open .public-map-panel.is-fullscreen .brigade-timeline-card {
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-choice:hover,
body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-choice:focus-visible,
body.is-public-map-open .public-map-panel.is-fullscreen .brigade-timeline-card:hover,
body.is-public-map-open .public-map-panel.is-fullscreen .brigade-timeline-card:focus-visible {
  background: color-mix(in srgb, var(--line-color, var(--map-accent)) 24%, rgba(255, 255, 255, 0.08)) !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .brigade-day-list {
  display: grid !important;
  gap: 4px !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .map-settings-stack {
  display: grid !important;
  gap: 4px !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .map-settings-section {
  padding: 18px 16px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .map-settings-section .check-row input {
  accent-color: color-mix(in srgb, var(--map-accent) 60%, #ffffff) !important;
}

body.is-public-map-open .map-settings-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

body.is-public-map-open .map-settings-actions button {
  display: inline-flex;
  min-height: 56px;
  border: 0;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

body.is-public-map-open .map-settings-actions button:hover,
body.is-public-map-open .map-settings-actions button:focus-visible {
  background: var(--map-accent-soft);
  outline: none;
}

body.is-public-map-open .settings-action-icon {
  color: color-mix(in srgb, var(--map-accent) 55%, #ffffff);
  font-weight: 950;
}

body.is-public-map-open .map-theme-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 86;
  width: min(600px, calc(100vw - 24px));
  padding: 18px 24px 26px;
  border-radius: 10px;
  background: rgba(29, 25, 20, 0.98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
}

body.is-public-map-open .map-theme-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.is-public-map-open .map-theme-heading h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

body.is-public-map-open .map-theme-close {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

body.is-public-map-open .map-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 48px;
  padding: 26px 40px 6px;
}

body.is-public-map-open .map-theme-choice {
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--choice-color);
  cursor: pointer;
  justify-self: center;
}

body.is-public-map-open .map-theme-choice.is-active,
body.is-public-map-open .map-theme-choice:hover,
body.is-public-map-open .map-theme-choice:focus-visible {
  border-color: rgba(255, 255, 255, 0.88);
  outline: none;
}

body.is-public-map-open.is-public-map-panel-fullscreen .map-favorites-control,
body.is-public-map-open.is-public-map-panel-fullscreen .map-status-pill {
  display: none !important;
}

body.is-public-map-open.is-public-map-panel-fullscreen .map-edge-controls {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

body.is-public-map-open.is-public-map-panel-fullscreen #mapMenuButton {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.is-public-map-open.is-public-map-panel-fullscreen.is-map-drawer-open #mapMenuButton {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.is-public-map-open.is-public-blog-panel-open .map-edge-controls {
  display: none !important;
}

@media (max-width: 720px) {
  body.is-public-map-open .map-settings-actions {
    grid-template-columns: 1fr;
  }

  body.is-public-map-open .map-theme-grid {
    gap: 24px 30px;
    padding-inline: 18px;
  }
}


body.is-public-map-open .public-map-panel.is-fullscreen .public-schedule-empty {
  display: grid;
  min-height: calc(100dvh - 140px);
  place-items: center;
  color: rgba(255, 255, 255, 0.84) !important;
  text-align: center;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 950;
}

body.is-public-map-open .public-map-panel.is-blog-panel {
  display: block !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #121111 !important;
}

body.is-public-map-open .public-map-panel.is-blog-panel .map-panel-head,
body.is-public-map-open .public-map-panel.is-blog-panel .map-panel-grip {
  display: none !important;
}

body.is-public-map-open .public-map-panel.is-blog-panel .map-panel-body {
  display: block !important;
  width: 100% !important;
  height: 100dvh !important;
  padding: 0 !important;
  overflow: auto !important;
  background: #121111 !important;
}

.public-blog-screen {
  min-height: 100dvh;
  padding: 22px 24px 64px;
  background: #121111;
  color: rgba(255, 255, 255, 0.9);
}

.public-blog-topbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
}

.public-blog-icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  place-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
}

.public-blog-icon-button:hover,
.public-blog-icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.public-blog-screen h1 {
  margin: 16px 0 32px 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.35rem, 1.7vw, 1.9rem);
  font-weight: 950;
}

.public-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

.public-blog-card {
  display: grid;
  min-height: 380px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #342e2d;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.public-blog-card:hover,
.public-blog-card:focus-visible {
  background: #3c3534;
  outline: none;
}

.public-blog-card-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #242322;
}

.public-blog-card-image.is-placeholder,
.public-blog-hero.is-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 950;
}

.public-blog-card-copy {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px 16px 24px;
}

.public-blog-card-copy strong {
  font-size: clamp(1.15rem, 1.35vw, 1.55rem);
  line-height: 1.1;
}

.public-blog-card-copy small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 800;
}

.public-blog-empty {
  margin: 28px 16px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.public-blog-screen.is-detail {
  padding-inline: clamp(18px, 4vw, 54px);
}

.public-blog-article {
  width: min(700px, 100%);
  margin: 24px auto 72px;
}

.public-blog-article h1 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(1.55rem, 2.1vw, 2.25rem);
}

.public-blog-hero {
  display: block;
  width: 100%;
  max-height: 430px;
  border-radius: 20px;
  object-fit: cover;
  background: #242322;
}

.public-blog-date {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-weight: 850;
}

.public-blog-content {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.56;
}

.public-blog-content p {
  margin: 0;
}

@media (max-width: 760px) {
  .public-blog-screen {
    padding: 14px 14px 48px;
  }

  .public-blog-screen h1 {
    margin-left: 8px;
  }

  .public-blog-grid {
    grid-template-columns: 1fr;
  }

  .public-blog-card {
    min-height: 330px;
    border-radius: 18px;
  }
}


.generator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.generator-panel,
.generator-preview {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border-radius: 6px;
}

.generator-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.generator-section-heading h3 {
  margin: 0;
  font-size: 0.95rem;
}

.generator-line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.generator-line-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  font-weight: 800;
}

.generator-period-form,
.generator-settings-grid,
.generator-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.generator-period-form .ghost-button {
  grid-column: 1 / -1;
}

.generator-period-list,
.generator-brigade-list {
  display: grid;
  gap: 8px;
}

.generator-period-item,
.generator-report-grid span,
.generator-alert,
.generator-brigade-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.generator-period-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.generator-period-item span {
  color: var(--muted);
}

.generator-report-grid span {
  padding: 10px;
  color: var(--muted);
}

.generator-report-grid strong {
  color: var(--ink);
}

.generator-alert {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 10px;
}

.generator-alert p {
  margin: 0;
  color: var(--muted);
}

.generator-alert.is-error {
  border-color: rgba(239, 68, 68, 0.45);
}

.generator-brigade-card {
  overflow: hidden;
}

.generator-brigade-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.generator-brigade-card header div {
  display: grid;
  gap: 2px;
}

.generator-brigade-card header span {
  color: var(--muted);
}

.generator-line-chip {
  min-width: 44px;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line-color) 86%, #111827);
  color: #fff !important;
  text-align: center;
  font-weight: 900;
}

.generator-event-list {
  display: grid;
}

.generator-event {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.generator-event:last-child {
  border-bottom: 0;
}

.generator-event > span,
.generator-event > em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.generator-event div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.generator-event small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generator-event.is-connector {
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--accent));
}

.generator-event.is-break {
  background: transparent;
}

@media (max-width: 900px) {
  .generator-layout,
  .generator-period-form,
  .generator-settings-grid,
  .generator-report-grid {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="dark"] body.admin-body .generator-panel,
:root[data-theme="dark"] body.admin-body .generator-preview,
:root[data-theme="dark"] body.admin-body .generator-line-choice,
:root[data-theme="dark"] body.admin-body .generator-period-item,
:root[data-theme="dark"] body.admin-body .generator-report-grid span,
:root[data-theme="dark"] body.admin-body .generator-alert,
:root[data-theme="dark"] body.admin-body .generator-brigade-card {
  border-color: var(--line) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}


@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.admin-body .generator-panel,
  :root:not([data-theme="light"]) body.admin-body .generator-preview,
  :root:not([data-theme="light"]) body.admin-body .generator-line-choice,
  :root:not([data-theme="light"]) body.admin-body .generator-period-item,
  :root:not([data-theme="light"]) body.admin-body .generator-report-grid span,
  :root:not([data-theme="light"]) body.admin-body .generator-alert,
  :root:not([data-theme="light"]) body.admin-body .generator-brigade-card {
    border-color: var(--line) !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
}


.admin-shell.is-central-view .central-report-modal {
  position: fixed !important;
  inset: var(--admin-topbar-height, 58px) var(--admin-sidebar-width, 306px) 0 0 !important;
  z-index: 112 !important;
  display: block !important;
  padding: 0 !important;
  background: var(--surface-soft) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.admin-shell.is-central-view .central-report-modal[hidden] {
  display: none !important;
}

.admin-shell.is-central-view .central-report-window {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--surface-soft) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.admin-shell.is-central-view .central-report-head {
  align-items: center;
  min-height: 58px;
  padding: 12px 24px !important;
  border-bottom: 1px solid var(--line) !important;
  background: var(--surface) !important;
}

.admin-shell.is-central-view .central-report-head h2 {
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.2;
}

.admin-shell.is-central-view .central-report-head .eyebrow {
  margin-bottom: 3px;
}

.admin-shell.is-central-view #centralReportCloseButton {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #111827 !important;
  border-radius: 0 !important;
  background: #111827 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-size: 1.1rem;
  line-height: 1;
  transform: none !important;
}

.admin-shell.is-central-view #centralReportCloseButton:hover,
.admin-shell.is-central-view #centralReportCloseButton:focus-visible {
  background: #0f172a !important;
  outline: none;
}

.admin-shell.is-central-view .central-report-body {
  gap: 12px !important;
  padding: 16px 24px 24px !important;
  background: var(--surface-soft) !important;
}

.admin-shell.is-central-view .report-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 8px !important;
}

.admin-shell.is-central-view .report-stat-card,
.admin-shell.is-central-view .report-section,
.admin-shell.is-central-view .report-brigade-card,
.admin-shell.is-central-view .report-course-card {
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

.admin-shell.is-central-view .report-stat-card {
  min-height: 76px;
  padding: 12px !important;
}

.admin-shell.is-central-view .report-stat-card span,
.admin-shell.is-central-view .report-brigade-card span,
.admin-shell.is-central-view .report-course-card span,
.admin-shell.is-central-view .report-course-card small,
.admin-shell.is-central-view .report-subtitle {
  color: var(--muted) !important;
}

.admin-shell.is-central-view .report-stat-card strong {
  color: var(--ink) !important;
  font-size: 1.15rem !important;
}

.admin-shell.is-central-view .report-section {
  gap: 10px !important;
  padding: 14px !important;
}

.admin-shell.is-central-view .report-section h3 {
  margin: 0 !important;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem !important;
}

.admin-shell.is-central-view .report-subtitle {
  margin: -4px 0 2px !important;
  font-size: 0.85rem;
}

.admin-shell.is-central-view .report-brigade-grid,
.admin-shell.is-central-view .report-course-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  gap: 8px !important;
}

.admin-shell.is-central-view .report-brigade-card,
.admin-shell.is-central-view .report-course-card {
  min-height: 74px;
  padding: 12px !important;
  border-left-width: 4px !important;
  border-left-color: var(--line) !important;
  transform: none !important;
}

.admin-shell.is-central-view .report-brigade-card:hover,
.admin-shell.is-central-view .report-course-card:hover,
.admin-shell.is-central-view .report-brigade-card:focus-visible,
.admin-shell.is-central-view .report-course-card:focus-visible,
.admin-shell.is-central-view .report-brigade-card.is-selected,
.admin-shell.is-central-view .report-course-card.is-selected {
  background: var(--hover-bg-medium) !important;
  box-shadow: none !important;
  outline: none;
  transform: none !important;
}

.admin-shell.is-central-view .report-brigade-card.has-issues,
.admin-shell.is-central-view .report-course-card.has-issues {
  border-left-color: #ef4444 !important;
  box-shadow: none !important;
}

.admin-shell.is-central-view .report-brigade-card.is-ok,
.admin-shell.is-central-view .report-course-card.is-ok {
  border-left-color: #16a34a !important;
  box-shadow: none !important;
}

.admin-shell.is-central-view .report-course-card.has-warning {
  border-left-color: #f59e0b !important;
  box-shadow: none !important;
}

.admin-shell.is-central-view .report-back-button {
  min-height: 36px;
  padding: 0 12px !important;
  border-radius: 6px !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

.admin-shell.is-central-view .report-stop-timeline {
  gap: 0 !important;
  padding: 2px 0 0 !important;
}

.admin-shell.is-central-view .report-stop-row {
  grid-template-columns: 24px 18px minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 50px;
}

.admin-shell.is-central-view .report-stop-row::before {
  top: 17px !important;
  bottom: -18px !important;
  left: 33px !important;
  width: 3px !important;
  background: var(--route-color, var(--accent)) !important;
}

.admin-shell.is-central-view .report-stop-alert {
  width: 22px !important;
  height: 22px !important;
  margin-top: 4px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0.82rem !important;
  box-shadow: none !important;
}

.admin-shell.is-central-view .report-stop-row.has-issues .report-stop-alert {
  border-color: rgba(239, 68, 68, 0.42) !important;
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
}

.admin-shell.is-central-view .report-stop-row.has-warning .report-stop-alert {
  border-color: rgba(245, 158, 11, 0.42) !important;
  background: rgba(245, 158, 11, 0.14) !important;
  color: #b45309 !important;
}

.admin-shell.is-central-view .report-stop-dot {
  width: 14px !important;
  height: 14px !important;
  margin-top: 8px !important;
  border: 3px solid var(--route-color, var(--accent)) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

.admin-shell.is-central-view .report-stop-copy {
  gap: 3px !important;
  min-width: 0;
  padding-bottom: 14px !important;
}

.admin-shell.is-central-view .report-stop-copy strong,
.admin-shell.is-central-view .report-stop-copy span,
.admin-shell.is-central-view .report-stop-copy em {
  overflow-wrap: anywhere;
}

.admin-shell.is-central-view .issue-pill {
  border-radius: 4px !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .admin-shell.is-central-view .central-report-modal {
    inset: var(--admin-topbar-height, 58px) 0 0 0 !important;
  }

  .admin-shell.is-central-view .central-report-head,
  .admin-shell.is-central-view .central-report-body {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .admin-shell.is-central-view .report-stat-grid,
  .admin-shell.is-central-view .report-brigade-grid,
  .admin-shell.is-central-view .report-course-grid {
    grid-template-columns: 1fr !important;
  }
}


.admin-shell.is-central-view .central-vehicle-panel {
  width: min(338px, calc(100dvw - var(--admin-sidebar-width) - 16px)) !important;
  padding: 10px 12px 12px !important;
  overflow: visible !important;
  border: 1px solid rgba(17, 24, 39, 0.16) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #202124 !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22) !important;
  backdrop-filter: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.admin-shell.is-central-view .central-vehicle-panel__top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
}

.admin-shell.is-central-view .central-vehicle-panel__top > div {
  min-width: 0 !important;
}

.admin-shell.is-central-view .central-vehicle-panel__top h2 {
  margin: 0 22px 3px 0 !important;
  color: #202124 !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
}

.admin-shell.is-central-view .central-vehicle-panel .eyebrow {
  display: none !important;
}

.admin-shell.is-central-view #centralVehicleCloseButton {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: -2px -4px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #6b7280 !important;
  box-shadow: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
}

.admin-shell.is-central-view #centralVehicleCloseButton:hover,
.admin-shell.is-central-view #centralVehicleCloseButton:focus-visible {
  color: #111827 !important;
  background: transparent !important;
}

.admin-shell.is-central-view .central-vehicle-details {
  display: grid !important;
  gap: 0 !important;
  margin-top: 0 !important;
}

.admin-shell.is-central-view .central-vehicle-card,
.admin-shell.is-central-view .central-next-stops {
  display: block !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #202124 !important;
  box-shadow: none !important;
}

.admin-shell.is-central-view .central-vehicle-model,
.admin-shell.is-central-view .central-vehicle-route {
  margin: 0 !important;
  color: #202124 !important;
  font-size: 0.84rem !important;
  line-height: 1.22 !important;
}

.admin-shell.is-central-view .central-vehicle-model {
  font-weight: 700 !important;
}

.admin-shell.is-central-view .central-vehicle-model span {
  font-weight: 700 !important;
}

.admin-shell.is-central-view .central-vehicle-route strong {
  font-weight: 800 !important;
}

.admin-shell.is-central-view .central-vehicle-meta {
  display: grid !important;
  gap: 0 !important;
  margin: 1px 0 7px !important;
  padding: 0 !important;
  border: 0 !important;
}

.admin-shell.is-central-view .central-vehicle-meta div {
  display: flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #202124 !important;
}

.admin-shell.is-central-view .central-vehicle-meta dt,
.admin-shell.is-central-view .central-vehicle-meta dd {
  margin: 0 !important;
  color: #202124 !important;
  font-size: 0.84rem !important;
  line-height: 1.18 !important;
}

.admin-shell.is-central-view .central-vehicle-meta dt {
  font-weight: 700 !important;
}

.admin-shell.is-central-view .central-vehicle-meta dd {
  font-weight: 400 !important;
}

.admin-shell.is-central-view .central-vehicle-meta dd[class^="central-state-"] {
  font-weight: 700 !important;
}

.admin-shell.is-central-view .central-next-stops {
  margin-top: 5px !important;
  padding-top: 6px !important;
  border-top: 1px solid #6b7280 !important;
}

.admin-shell.is-central-view .central-next-stops ol {
  display: block !important;
  max-height: 105px !important;
  margin: 0 !important;
  padding: 0 4px 0 0 !important;
  overflow-y: auto !important;
  list-style: none !important;
  scrollbar-width: thin;
  scrollbar-color: #9ca3af transparent;
}

.admin-shell.is-central-view .central-next-stops ol::-webkit-scrollbar {
  width: 6px;
}

.admin-shell.is-central-view .central-next-stops ol::-webkit-scrollbar-track {
  background: transparent;
}

.admin-shell.is-central-view .central-next-stops ol::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9ca3af;
}

.admin-shell.is-central-view .central-next-stops li {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 4px !important;
  align-items: baseline !important;
  min-height: 21px !important;
  padding: 0 !important;
  color: #202124 !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
}

.admin-shell.is-central-view .central-next-stops li span,
.admin-shell.is-central-view .central-next-stops li strong,
.admin-shell.is-central-view .central-next-stops li em {
  color: #202124 !important;
  font-size: 0.84rem !important;
  line-height: 1.2 !important;
}

.admin-shell.is-central-view .central-next-stops li span,
.admin-shell.is-central-view .central-next-stops li em {
  font-style: normal !important;
  font-weight: 400 !important;
}

.admin-shell.is-central-view .central-next-stops li strong {
  overflow: hidden !important;
  font-weight: 400 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-shell.is-central-view .central-next-stops p {
  margin: 0 !important;
  color: #202124 !important;
  font-size: 0.84rem !important;
}

@media (max-width: 760px) {
  .admin-shell.is-central-view .central-vehicle-panel {
    width: min(338px, calc(100dvw - 16px)) !important;
  }
}

body.is-public-map-open .public-map-panel.is-bottom {
  padding-top: 2px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-grip {
  width: 36px !important;
  height: 4px !important;
  margin: 5px auto 4px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.48) !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head {
  min-height: 40px !important;
  margin: 0 -10px 4px !important;
  padding: 0 10px 6px !important;
  align-items: center !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head h2 {
  display: flex !important;
  align-items: center !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding-right: 46px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) .map-panel-head h2 {
  padding-right: 140px !important;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) .map-panel-body {
  padding-top: 0 !important;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) .vehicle-panel-actions {
  top: 14px !important;
  right: 54px !important;
  gap: 8px !important;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) .vehicle-icon-button,
body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) #mapPanelCloseButton {
  position: relative !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(24, 21, 21, 0.86) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: none !important;
}

body.is-public-map-open .vehicle-menu-button > span {
  position: relative !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor !important;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) #mapPanelCloseButton::before,
body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) #mapPanelCloseButton::after {
  content: "" !important;
  position: absolute !important;
  width: 15px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) #mapPanelCloseButton::before {
  transform: rotate(45deg) !important;
}

body.is-public-map-open .public-map-panel.is-bottom:has(.vehicle-course-list) #mapPanelCloseButton::after {
  transform: rotate(-45deg) !important;
}

body.is-public-map-open .public-map-panel.is-bottom .departure-list,
body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-list,
body.is-public-map-open .public-map-panel.is-bottom .vehicle-course-list {
  margin-top: 0 !important;
}

body.is-public-map-open .public-map-panel.is-bottom .departure-card,
body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-card {
  border-radius: 8px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-card {
  padding: 9px 10px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-heading {
  min-height: 28px !important;
}

body.is-public-map-open .line-panel-actions {
  position: absolute !important;
  top: 12px !important;
  right: 56px !important;
  z-index: 8 !important;
}

body.is-public-map-open .line-loop-indicator {
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: rgba(24, 21, 21, 0.82) !important;
  color: #ffffff !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.is-public-map-open .line-route-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px !important;
  margin: 8px 0 10px !important;
}

body.is-public-map-open .line-route-actions .map-action-button {
  min-height: 52px !important;
  justify-content: center !important;
  gap: 9px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(38, 28, 28, 0.88) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

body.is-public-map-open .public-route-list.is-line-preview .public-route-stop::before {
  background: var(--route-color, #43a947) !important;
}

body.is-public-map-open .public-route-list.is-line-preview .route-dot {
  border-color: var(--route-color, #43a947) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--route-color, #43a947) 35%, transparent) !important;
}

body.is-public-map-open .map-action-icon {
  position: relative !important;
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  color: currentColor !important;
}

body.is-public-map-open .map-action-icon.is-calendar {
  border: 2px solid currentColor !important;
  border-radius: 4px !important;
}

body.is-public-map-open .map-action-icon.is-calendar::before {
  content: "" !important;
  position: absolute !important;
  inset: 4px 2px auto !important;
  height: 2px !important;
  background: currentColor !important;
}

body.is-public-map-open .map-action-icon.is-calendar::after {
  content: "" !important;
  position: absolute !important;
  top: -4px !important;
  left: 4px !important;
  width: 8px !important;
  height: 5px !important;
  border-left: 2px solid currentColor !important;
  border-right: 2px solid currentColor !important;
}

body.is-public-map-open .map-action-icon.is-share {
  background:
    radial-gradient(circle at 16px 4px, currentColor 0 3px, transparent 3.4px),
    radial-gradient(circle at 5px 10px, currentColor 0 3px, transparent 3.4px),
    radial-gradient(circle at 16px 17px, currentColor 0 3px, transparent 3.4px) !important;
}

body.is-public-map-open .map-action-icon.is-share::before,
body.is-public-map-open .map-action-icon.is-share::after {
  content: "" !important;
  position: absolute !important;
  left: 6px !important;
  width: 11px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  transform-origin: left center !important;
}

body.is-public-map-open .map-action-icon.is-share::before {
  top: 8px !important;
  transform: rotate(-30deg) !important;
}

body.is-public-map-open .map-action-icon.is-share::after {
  top: 12px !important;
  transform: rotate(30deg) !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen:has(.brigade-modal-icon) {
  width: min(600px, calc(100vw - 32px)) !important;
  height: min(900px, calc(100dvh - 60px)) !important;
  max-height: calc(100dvh - 60px) !important;
  inset: 30px auto auto 50% !important;
  padding: 20px 16px 0 !important;
  border-radius: 8px !important;
  background: #1b1515 !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38) !important;
  transform: translateX(-50%) !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .map-panel-head {
  margin: 0 0 18px !important;
  padding: 0 0 0 16px !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen:has(.brigade-modal-icon) .map-panel-head {
  margin-top: 56px !important;
}

body.is-public-map-open .brigade-modal-icon {
  position: absolute !important;
  z-index: 18 !important;
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.94) !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

body.is-public-map-open .brigade-modal-icon:hover,
body.is-public-map-open .brigade-modal-icon:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

body.is-public-map-open .brigade-modal-icon.is-back {
  top: 16px !important;
  left: 16px !important;
  font-size: 2rem !important;
  line-height: 1 !important;
}

body.is-public-map-open .brigade-modal-icon.is-share {
  top: 17px !important;
  right: 16px !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .map-panel-body {
  gap: 10px !important;
  padding-bottom: 18px !important;
}

body.is-public-map-open .public-date-strip {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 28px !important;
  align-items: stretch !important;
  gap: 6px !important;
  padding: 0 0 8px !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.is-public-map-open .public-date-scroll {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(82px, 1fr)) !important;
  gap: 4px !important;
  overflow: hidden !important;
}

body.is-public-map-open .public-date-arrow,
body.is-public-map-open .public-date-button {
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.76) !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-date-arrow {
  min-height: 54px !important;
  padding: 0 !important;
  font-size: 1.55rem !important;
}

body.is-public-map-open .public-date-button {
  display: grid !important;
  align-content: center !important;
  gap: 2px !important;
  min-height: 54px !important;
  padding: 0 4px 9px !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  text-align: center !important;
}

body.is-public-map-open .public-date-button strong {
  color: inherit !important;
  font-size: 0.86rem !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
}

body.is-public-map-open .public-date-button span {
  color: inherit !important;
  font-size: 0.73rem !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
}

body.is-public-map-open .public-date-button.is-active {
  border-bottom-color: #ffa7a7 !important;
  color: #ffa7a7 !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen:has(.brigade-modal-icon) .public-date-strip {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 28px !important;
  align-items: stretch !important;
  gap: 6px !important;
  padding: 0 0 8px !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen:has(.brigade-modal-icon) .public-date-arrow,
body.is-public-map-open .public-map-panel.is-fullscreen:has(.brigade-modal-icon) .public-date-button {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen:has(.brigade-modal-icon) .public-date-button {
  border-bottom: 3px solid transparent !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen:has(.brigade-modal-icon) .public-date-button.is-active {
  border-bottom-color: #ffa7a7 !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-list.is-picker {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-choice {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 10px !important;
  min-height: 49px !important;
  padding: 9px 16px !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: left !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-choice + .public-brigade-choice {
  border-top: 1px solid rgba(0, 0, 0, 0.22) !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-choice span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 64px !important;
  height: 24px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: var(--line-color, var(--map-accent)) !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 950 !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-choice strong,
body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-choice small {
  grid-column: 2 !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-choice strong {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.95rem !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .public-brigade-choice small {
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.8rem !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .brigade-day-list {
  padding-bottom: 58px !important;
}

body.is-public-map-open .public-map-panel.is-fullscreen .brigade-timeline-card {
  min-height: 96px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

body.is-public-map-open .brigade-schedule-empty {
  display: grid !important;
  place-items: center !important;
  min-height: 142px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  text-align: center !important;
}

body.is-public-map-open .brigade-schedule-empty::before,
body.is-public-map-open .brigade-schedule-empty::after {
  content: none !important;
}

body.is-public-map-open .brigade-current-course-jump {
  position: absolute !important;
  right: 16px !important;
  bottom: 18px !important;
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--map-accent, #207a2b) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32) !important;
  cursor: pointer !important;
  font-size: 1.3rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  body.is-public-map-open .public-map-panel.is-fullscreen:has(.brigade-modal-icon) {
    width: min(600px, calc(100vw - 12px)) !important;
    height: min(82dvh, 860px) !important;
    max-height: 82dvh !important;
    inset: auto auto 0 50% !important;
    border-radius: 12px 12px 0 0 !important;
  }

  body.is-public-map-open .public-date-scroll {
    grid-template-columns: repeat(5, minmax(68px, 1fr)) !important;
  }

  body.is-public-map-open .public-date-button strong {
    font-size: 0.74rem !important;
  }

  body.is-public-map-open .public-date-button span {
    font-size: 0.66rem !important;
  }
}

body.is-public-map-open .public-map-panel:not(.is-bottom) > .map-panel-grip,
body.is-public-map-open .public-map-panel.is-fullscreen > .map-panel-grip,
body.is-public-map-open .public-map-panel.is-blog-panel > .map-panel-grip {
  display: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom > .map-panel-grip {
  display: grid !important;
  width: 64px !important;
  height: 16px !important;
  margin: 0 auto 0 !important;
  padding: 0 !important;
  place-items: center !important;
}

body.is-public-map-open .public-map-panel.is-bottom > .map-panel-grip::before {
  width: 38px !important;
  height: 3px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.56) !important;
}

body.is-public-map-open .public-map-panel.is-bottom > .map-panel-grip::after,
body.is-public-map-open .public-map-panel.is-bottom .map-panel-head::before,
body.is-public-map-open .public-map-panel.is-bottom .map-panel-head::after {
  content: none !important;
  display: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  margin: 0 0 6px !important;
  padding: 0 2px 0 0 !important;
  overflow: visible !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head > div,
body.is-public-map-open .public-map-panel.is-bottom .map-panel-head h2,
body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title,
body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title-main {
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head h2 {
  display: flex !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
}

body.is-public-map-open .public-map-panel.is-bottom .map-panel-head h2:has(.favorite-stop-button) {
  padding-right: 42px !important;
}

body.is-public-map-open .public-map-panel.is-bottom .stop-panel-title-main > span:last-child {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton,
body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button {
  display: grid !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(20, 26, 22, 0.88) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  place-items: center !important;
  box-shadow: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton {
  position: relative !important;
  inset: auto !important;
  justify-self: end !important;
  margin: 0 !important;
  transform: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton::before,
body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: block !important;
  width: 14px !important;
  height: 2px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: currentColor !important;
  transform-origin: center !important;
}

body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

body.is-public-map-open .public-map-panel.is-bottom #mapPanelCloseButton::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button {
  position: absolute !important;
  top: 50% !important;
  right: 44px !important;
  z-index: 8 !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button img {
  display: none !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button::before {
  content: "☆" !important;
  display: block !important;
  color: currentColor !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

body.is-public-map-open .public-map-panel.is-bottom .favorite-stop-button.is-active::before {
  content: "★" !important;
  font-size: 22px !important;
  transform: none !important;
}

body.is-public-map-open .public-map-panel.is-center .map-panel-head {
  padding-right: 2px !important;
}

body.is-public-map-open .public-map-panel.is-center #mapPanelCloseButton {
  display: grid !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(20, 26, 22, 0.88) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  place-items: center !important;
  box-shadow: none !important;
}
