:root {
  color-scheme: light;
  --background: #fafaf9;
  --foreground: #18181b;
  --card: #ffffff;
  --card-foreground: #18181b;
  --primary: #048837;
  --primary-foreground: #f7fff9;
  --secondary: rgba(4, 136, 55, 0.16);
  --secondary-foreground: #14532d;
  --muted: #f4f4f5;
  --muted-foreground: #52525b;
  --accent: rgba(4, 136, 55, 0.12);
  --accent-foreground: #14532d;
  --destructive: #dc2626;
  --border: #e4e4e7;
  --input: #d4d4d8;
  --ring: rgba(4, 136, 55, 0.4);
  --sidebar: #ffffff;
  --sidebar-foreground: #18181b;
  --sidebar-accent: rgba(4, 136, 55, 0.1);
  --sidebar-accent-foreground: #14532d;
  --sidebar-border: #e4e4e7;
  --success-soft: rgba(21, 128, 61, 0.12);
  --success-foreground: #166534;
  --danger-soft: rgba(220, 38, 38, 0.12);
  --danger-foreground: #991b1b;
  --sidebar-width: 16rem;
  --sidebar-collapsed-width: 4.75rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 250, 249, 0.96)),
    var(--background);
  padding: 1rem;
}

.login-panel {
  display: grid;
  width: min(100%, 25rem);
  gap: 1.125rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  color: var(--card-foreground);
  padding: 1rem;
  box-shadow:
    0 1px 2px rgba(24, 24, 27, 0.04),
    0 24px 54px rgba(24, 24, 27, 0.08);
}

.login-logo-frame {
  display: grid;
  width: 11.5rem;
  height: 11.5rem;
  place-items: center;
  justify-self: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 1.375rem;
  background: #ffffff;
  padding: 0.85rem;
  box-shadow: 0 14px 34px rgba(24, 24, 27, 0.08);
}

.login-event-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-heading {
  display: grid;
  gap: 0.25rem;
  padding: 0 0.25rem;
  text-align: center;
}

.login-heading h1 {
  font-size: 1.45rem;
}

.login-heading .muted {
  margin: 0;
  font-size: 0.875rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo,
.sidebar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 0.625rem;
}

.brand-logo img,
.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow,
.page-section,
.metric-label {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
}

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

h1 {
  margin-bottom: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.muted,
.page-description {
  color: var(--muted-foreground);
}

.login-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0;
}

.login-form .primary-button {
  width: 100%;
  min-height: 2.625rem;
  margin-top: 0.25rem;
}

label {
  display: grid;
  gap: 0.375rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

input {
  min-width: 0;
  height: 2.5rem;
  border: 1px solid var(--input);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--foreground);
  padding: 0.625rem 0.75rem;
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.primary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    border-color 120ms ease;
}

.primary-button {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 0.875rem;
}

.primary-button:hover {
  background: color-mix(in srgb, var(--primary) 88%, black);
}

.primary-button.compact {
  min-width: 7.25rem;
}

.ghost-button,
.icon-button {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  padding: 0.5rem 0.75rem;
}

.ghost-button:hover,
.icon-button:hover {
  background: var(--muted);
}

.icon-button {
  width: 2.25rem;
  padding: 0;
}

.icon-only {
  width: 2.25rem;
  padding: 0;
}

.icon-button svg,
.ghost-button svg,
.icon-only svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(24, 24, 27, 0.36);
  padding: 1rem;
}

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

.contact-modal {
  display: grid;
  width: min(100%, 34rem);
  max-height: min(88vh, 46rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 24px 64px rgba(24, 24, 27, 0.28);
}

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

.modal-header h2 {
  margin: 0.125rem 0 0;
}

.contact-list {
  display: grid;
  gap: 0.5rem;
  overflow: auto;
  padding: 1rem;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  padding: 0.75rem;
}

.contact-row:hover {
  background: var(--accent);
}

.contact-row.urgent {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
  background: var(--accent);
}

.muted-contact {
  color: var(--muted-foreground);
}

.contact-copy {
  display: grid;
  min-width: 0;
  gap: 0.125rem;
}

.contact-copy strong,
.contact-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-copy strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-copy small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.contact-phone {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.modal-section {
  border-top: 1px solid var(--border);
  padding: 1rem;
}

.modal-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.modal-list {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.error-text {
  min-height: 1.25rem;
  margin: 0;
  color: var(--destructive);
  font-size: 0.875rem;
}

.pulse-shell {
  display: flex;
  min-height: 100vh;
  background: var(--background);
}

.pulse-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid var(--sidebar-border);
  background: var(--sidebar);
  color: var(--sidebar-foreground);
  transition:
    width 180ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sidebar-header,
.sidebar-footer {
  padding: 0.5rem;
}

.sidebar-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.25rem;
  gap: 0.5rem;
  align-items: center;
}

.sidebar-brand,
.sidebar-user {
  display: flex;
  min-height: 3.375rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.sidebar-brand {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--sidebar-foreground);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
}

.sidebar-brand:hover {
  background: var(--sidebar-accent);
}

.sidebar-logo {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 1.75rem;
  border-radius: 0.5rem;
}

.asdt-sidebar-logo {
  width: 8.25rem;
  height: 2.7rem;
  flex: 0 0 8.25rem;
  border-radius: 0.25rem;
}

.sidebar-brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-collapse-button {
  flex: 0 0 2.25rem;
}

.sidebar-separator {
  height: 1px;
  margin: 0 0.5rem;
  background: var(--sidebar-border);
}

.sidebar-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  overflow: auto;
  padding: 0.5rem;
}

.sidebar-group {
  display: grid;
  gap: 0.125rem;
}

.sidebar-group-label {
  display: flex;
  min-height: 2rem;
  align-items: center;
  border-radius: 0.375rem;
  padding: 0 0.5rem;
  color: color-mix(in srgb, var(--sidebar-foreground) 70%, transparent);
  font-size: 0.75rem;
  font-weight: 500;
}

.sidebar-menu-button {
  display: flex;
  width: 100%;
  min-height: 2.375rem;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--sidebar-foreground);
  cursor: pointer;
  padding: 0.45rem 0.5rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 560;
  letter-spacing: 0;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.sidebar-menu-button:hover,
.sidebar-menu-button.active {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}

.sidebar-menu-button.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--muted);
  color: var(--sidebar-accent-foreground);
}

.sidebar-icon svg,
.sidebar-user-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sidebar-menu-button.active .sidebar-icon,
.sidebar-menu-button:hover .sidebar-icon {
  background: var(--primary);
  color: var(--primary-foreground);
}

.sidebar-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer {
  border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
  background: transparent;
}

.sidebar-user-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
  font-size: 0.875rem;
  font-weight: 700;
}

.sidebar-user span:last-child {
  display: grid;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.2;
}

.sidebar-user small {
  overflow: hidden;
  color: color-mix(in srgb, var(--sidebar-foreground) 70%, transparent);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-inset {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex: 1;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  transition: margin-left 180ms ease;
}

.pulse-shell.sidebar-collapsed .pulse-sidebar {
  width: var(--sidebar-collapsed-width);
}

.pulse-shell.sidebar-collapsed .pulse-inset {
  margin-left: var(--sidebar-collapsed-width);
}

.pulse-shell.sidebar-collapsed .sidebar-header-row {
  grid-template-columns: 1fr;
}

.pulse-shell.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding-inline: 0.375rem;
}

.pulse-shell.sidebar-collapsed .asdt-sidebar-logo {
  width: 2.65rem;
  flex-basis: 2.65rem;
}

.pulse-shell.sidebar-collapsed .sidebar-brand-text,
.pulse-shell.sidebar-collapsed .sidebar-label,
.pulse-shell.sidebar-collapsed .sidebar-user-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pulse-shell.sidebar-collapsed .sidebar-collapse-button {
  justify-self: center;
  transform: rotate(180deg);
}

.pulse-shell.sidebar-collapsed .sidebar-menu-button {
  justify-content: center;
  padding-inline: 0.375rem;
}

.pulse-shell.sidebar-collapsed .sidebar-menu-button.active {
  box-shadow: inset 0 -3px 0 var(--primary);
}

.pulse-shell.sidebar-collapsed .sidebar-user {
  justify-content: center;
  padding-inline: 0.375rem;
}

.topbar {
  display: flex;
  height: 4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  padding: 0 1.5rem;
}

.topbar-main {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
}

.topbar-trigger {
  display: none;
}

.breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.breadcrumb strong {
  overflow: hidden;
  color: var(--foreground);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-clock {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  padding: 0.45rem 0.75rem;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
}

.clock-day {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 600;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.clock-time {
  color: var(--foreground);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

.pulse-shell[data-view="route"] .page-content,
.pulse-shell[data-view="equipment"] .page-content {
  gap: 0.875rem;
}

.pulse-shell[data-view="route"] .page-intro,
.pulse-shell[data-view="route"] .summary-grid,
.pulse-shell[data-view="equipment"] .page-intro,
.pulse-shell[data-view="equipment"] .summary-grid {
  display: none;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.panel-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--card-foreground);
  padding: 0.875rem;
}

.panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.pulse-shell[data-view="route"] #routeView .panel-card {
  padding: 0.875rem;
}

.pulse-shell[data-view="route"] #routeView .panel-toolbar {
  display: none;
}

.pulse-shell[data-view="route"] #routeView .panel-toolbar h2,
.pulse-shell[data-view="route"] #routeView .panel-toolbar p {
  display: none;
}

.panel-toolbar h2,
.section-title-row h2 {
  margin: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(20rem, 27rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.locations-grid {
  grid-template-columns: minmax(20rem, 25rem) minmax(0, 1fr);
}

.list-panel {
  min-width: 0;
}

.page-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.page-intro > div:first-child {
  min-width: 0;
  flex: 1;
}

.page-section {
  margin-bottom: 0.25rem;
}

.page-description {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
}

.timeline-toolbar {
  display: grid;
  min-width: min(100%, 28rem);
  grid-template-columns: auto auto auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.timeline-toolbar input[type="range"] {
  width: 100%;
  height: auto;
  padding: 0;
}

.route-day-selector {
  margin-bottom: 0.75rem;
}

.day-button-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.125rem;
}

.day-filter-button {
  display: inline-flex;
  min-height: 2.25rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.day-filter-button:hover,
.day-filter-button.active {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background: var(--accent);
  color: var(--accent-foreground);
}

.day-color-dot {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 0.65rem;
  border-radius: 999px;
  background: var(--primary);
}

.day-color-dot.all {
  background: linear-gradient(90deg, #048837 0 25%, #2563eb 25% 50%, #d97706 50% 75%, #7c3aed 75% 100%);
}

.route-control-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.875rem;
  align-items: stretch;
  width: 100%;
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 0.75rem 0.75rem 0 0;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.75rem;
}

.route-timeline {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 100%;
  gap: 0;
  overflow-x: auto;
  margin-bottom: 0;
  padding: 0.25rem 0.25rem 0.375rem;
  scroll-snap-type: x proximity;
}

.timeline-point {
  display: flex;
  position: relative;
  min-width: 8.5rem;
  max-width: none;
  flex: 1 0 8.5rem;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  padding: 0;
  text-align: center;
  scroll-snap-align: start;
}

.timeline-point::before {
  position: absolute;
  top: 1rem;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--border);
  content: "";
}

.timeline-point:hover,
.timeline-point.active {
  color: var(--accent-foreground);
}

.timeline-point.active {
  box-shadow: none;
}

.timeline-dot {
  display: grid;
  position: relative;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(24, 24, 27, 0.18);
}

.timeline-copy {
  display: grid;
  width: min(100%, 8rem);
  min-width: 0;
  gap: 0.125rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: var(--card);
  padding: 0.45rem 0.5rem;
}

.route-timeline.few-points .timeline-point {
  min-width: 0;
  flex-basis: 0;
}

.route-timeline.few-points .timeline-copy {
  width: 100%;
}

.route-timeline.few-points .timeline-copy strong,
.route-timeline.few-points .timeline-copy small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.timeline-point.active .timeline-copy {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background: var(--accent);
}

.timeline-copy strong,
.timeline-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-copy strong {
  font-size: 0.8125rem;
  font-weight: 700;
}

.timeline-copy small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-card,
.active-card,
.nearby-section,
.route-panel {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--card-foreground);
}

.metric-card {
  min-width: 0;
  padding: 0.875rem;
}

.metric-label {
  display: block;
  margin-bottom: 0.375rem;
}

.metric-card strong {
  display: block;
  overflow: hidden;
  font-size: 1.125rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card small {
  display: block;
  overflow: hidden;
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 27rem);
  gap: 1rem;
  align-items: start;
}

.simulator-panel {
  min-width: 0;
}

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
  gap: 1rem;
  min-width: 0;
}

.map,
.coverage-3d {
  width: 100%;
  height: calc(100vh - 19rem);
  min-height: 31rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--card);
}

.route-map {
  height: calc(100vh - 18.5rem);
  min-height: 34rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.route-map-frame {
  position: relative;
  width: 100%;
}

.route-earth-map {
  display: none;
  background: #0f172a;
}

.route-map-frame[data-map-mode="earth"] #routeMap {
  display: none;
}

.route-map-frame[data-map-mode="earth"] .route-earth-map {
  display: block;
}

.route-map-controls {
  position: absolute;
  z-index: 700;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  padding: 0.35rem 0.5rem;
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.14);
  backdrop-filter: blur(10px);
}

.map-mode-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
}

.map-mode-switch button {
  min-height: 1.75rem;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.map-mode-switch button.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.route-map-controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--foreground);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.route-map-controls input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--primary);
}

.route-play-button {
  position: static;
  z-index: auto;
  align-self: center;
  box-shadow: 0 8px 22px rgba(24, 24, 27, 0.2);
}

.equipment-map {
  height: calc(100vh - 20rem);
  min-height: 31rem;
}

.earth-stage {
  position: relative;
  width: 100%;
  height: calc(100vh - 24rem);
  min-height: 32rem;
  margin-top: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f8fafc;
}

#earthMap,
#earthMap .cesium-widget,
#earthMap .cesium-widget canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#earthMap {
  background: #0f172a;
}

#routeEarthMap,
#routeEarthMap .cesium-widget,
#routeEarthMap .cesium-widget canvas {
  width: 100%;
  height: 100%;
}

.earth-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  gap: 0.375rem;
  padding: 1rem;
  color: #ffffff;
  text-align: center;
}

.earth-placeholder span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.coverage-3d {
  position: relative;
  background: #f8fafc;
}

#coverageCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.coverage-legend {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  bottom: auto;
  left: auto;
  width: min(22rem, calc(100% - 1.5rem));
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.625rem;
  backdrop-filter: blur(10px);
}

.coverage-legend-head,
.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.coverage-legend-head {
  margin-bottom: 0.5rem;
}

.coverage-legend-head strong,
.coverage-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coverage-legend-head span {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.coverage-legend-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

.coverage-legend-scale span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.earth-status {
  border-radius: 0.5rem;
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.earth-status.info {
  background: #eef4ff;
  color: #1d4ed8;
}

.earth-status.success {
  background: var(--success-soft);
  color: var(--success-foreground);
}

.earth-status.warning {
  background: #fef3c7;
  color: #92400e;
}

.scale-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
}

.scale-dot.inhibitor {
  background: #2563eb;
}

.scale-dot.detector {
  background: var(--primary);
}

.scale-dot.muted {
  background: #a1a1aa;
}

.coverage-legend-list {
  display: grid;
  gap: 0.25rem;
}

.coverage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.coverage-row strong {
  color: var(--primary);
  font-weight: 600;
}

.side-panel {
  display: grid;
  gap: 0.75rem;
}

.active-card,
.nearby-section,
.route-panel {
  padding: 0.875rem;
}

.route-day-list {
  display: grid;
  max-height: min(52vh, 36rem);
  gap: 0.625rem;
  overflow: auto;
  padding-right: 0.125rem;
}

.route-day-group {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  overflow: hidden;
}

.route-day-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.625rem;
}

.route-day-title strong {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: capitalize;
}

.route-day-title span {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-day-points {
  display: grid;
}

.route-point-button {
  display: grid;
  width: 100%;
  grid-template-columns: 2.25rem minmax(0, 1fr) 2rem;
  gap: 0.5rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem 0.625rem;
  text-align: left;
}

.route-point-button:last-child {
  border-bottom: 0;
}

.route-point-button:hover,
.route-point-button.active {
  background: var(--accent);
  color: var(--accent-foreground);
}

.route-point-button.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.route-time {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
}

.route-copy {
  display: grid;
  min-width: 0;
  gap: 0.125rem;
}

.route-copy strong,
.route-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-copy strong {
  font-size: 0.8125rem;
  font-weight: 600;
}

.route-copy small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.route-coverage,
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.route-coverage {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--success-soft);
  color: var(--success-foreground);
}

.route-coverage.empty {
  background: var(--muted);
  color: var(--muted-foreground);
}

.count-pill {
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.25rem 0.5rem;
}

.detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-row span {
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.equipment-list,
.plain-list,
.entity-list {
  display: grid;
  max-height: calc(100vh - 36rem);
  min-height: 8rem;
  gap: 0.5rem;
  overflow: auto;
  padding-right: 0.125rem;
}

.entity-list {
  max-height: calc(100vh - 16rem);
  margin-top: 0.875rem;
}

.compact-list {
  max-height: 13rem;
  min-height: 0;
}

.entity-group {
  display: grid;
  gap: 0.375rem;
}

.entity-group + .entity-group {
  margin-top: 0.5rem;
}

.entity-group-title {
  border-radius: 0.5rem;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.entity-row {
  display: grid;
  width: 100%;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.625rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  padding: 0.625rem;
  text-align: left;
}

.entity-row:hover,
.entity-row.active {
  background: var(--accent);
  color: var(--accent-foreground);
}

.entity-icon,
.entity-index {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 700;
}

.entity-icon.inhibitor {
  background: #eef4ff;
  color: #2563eb;
}

.entity-icon.detector {
  background: var(--success-soft);
  color: var(--success-foreground);
}

.entity-index {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}

.entity-copy {
  display: grid;
  min-width: 0;
  gap: 0.125rem;
}

.entity-copy strong,
.entity-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-copy strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.entity-copy small,
.entity-meta {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.entity-meta {
  white-space: nowrap;
}

.equipment-card {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.625rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 0.625rem;
}

.equipment-card.outside {
  background: var(--background);
  color: var(--muted-foreground);
}

.equipment-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.5rem;
  background: #eef4ff;
  color: #2563eb;
}

.equipment-icon.detector {
  background: var(--success-soft);
  color: var(--success-foreground);
}

.equipment-icon.unknown {
  background: var(--muted);
  color: var(--muted-foreground);
}

.equipment-card strong,
.equipment-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-card strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.equipment-card small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.distance-badge {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.plain-list {
  max-height: 11rem;
  min-height: 4.5rem;
}

.plain-item {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  color: var(--muted-foreground);
  padding: 0.875rem;
  text-align: center;
}

.empty-state.compact {
  padding: 0.625rem;
  font-size: 0.8125rem;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.reports-grid > .panel-card:first-child {
  grid-column: 1 / -1;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.report-summary-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  padding: 0.875rem;
}

.report-summary-card span {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
}

.report-summary-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.report-list {
  display: grid;
  max-height: calc(100vh - 22rem);
  gap: 0.5rem;
  overflow: auto;
  margin-top: 0.875rem;
}

.report-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  padding: 0.75rem;
  text-align: left;
}

.report-row:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.report-row.warning {
  border-color: color-mix(in srgb, var(--destructive) 22%, var(--border));
}

.report-row.covered {
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
}

.report-row strong,
.report-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-row strong {
  font-size: 0.875rem;
  font-weight: 700;
}

.report-row small {
  margin-top: 0.125rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.report-row > span:last-child {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.contacts-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.embedded-contact-list {
  max-height: none;
  padding: 0;
  margin-top: 1rem;
}

.embedded-info-section {
  border-top: 0;
  padding: 0;
}

.leaflet-popup-content {
  min-width: 13rem;
}

.route-point-tooltip {
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.16);
  color: var(--foreground);
  padding: 0.45rem 0.55rem;
  font-size: 0.75rem;
  line-height: 1.25;
}

.route-point-tooltip strong {
  display: block;
  margin-bottom: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.route-point-tooltip small {
  display: block;
  margin-top: 0.125rem;
  color: var(--muted-foreground);
  font-size: 0.6875rem;
}

.marker-pin {
  position: relative;
  display: grid;
  width: 1.875rem;
  height: 1.875rem;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 6px 16px rgba(24, 24, 27, 0.22);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.marker-pin span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
}

.marker-pin.detector {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.42rem;
  background: var(--primary);
  font-size: 0.75rem;
  transform: rotate(45deg);
}

.marker-pin.detector span {
  transform: rotate(-45deg);
}

.marker-pin.inhibitor {
  width: 2.15rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  background: #2563eb;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.marker-pin.inhibitor::before {
  position: absolute;
  inset: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.32rem;
  content: "";
}

.marker-pin.route {
  width: 2.05rem;
  height: 2.05rem;
  border: 3px solid #ffffff;
  background: #18181b;
  font-size: 0.8rem;
}

.marker-pin.route.active {
  background: var(--primary);
  transform: scale(1.12);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--primary) 20%, transparent),
    0 6px 16px rgba(24, 24, 27, 0.22);
}

.marker-pin.route.offset {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.72),
    0 6px 16px rgba(24, 24, 27, 0.22);
}

.marker-pin.pope {
  background: #ffffff;
  color: #18181b;
  border-color: var(--primary);
}

.marker-pin.pope.moving {
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--primary) 20%, transparent),
    0 6px 16px rgba(24, 24, 27, 0.22);
}

.marker-pin.muted {
  background: #a1a1aa;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .two-column,
  .locations-grid,
  .contacts-page-grid,
  .reports-grid {
    grid-template-columns: 1fr;
  }

  .reports-grid > .panel-card:first-child {
    grid-column: auto;
  }

  .map,
  .coverage-3d,
  .earth-stage {
    height: 54vh;
    min-height: 25rem;
  }

  .route-day-list,
  .equipment-list {
    max-height: none;
  }
}

@media (max-width: 1050px) {
  .pulse-sidebar {
    transform: translateX(-100%);
    transition: transform 160ms ease;
  }

  .pulse-shell.sidebar-collapsed .pulse-sidebar {
    width: var(--sidebar-width);
  }

  .pulse-shell.sidebar-open .pulse-sidebar {
    box-shadow: 0 18px 44px rgba(24, 24, 27, 0.2);
    transform: translateX(0);
  }

  .pulse-shell.sidebar-collapsed .sidebar-header-row {
    grid-template-columns: minmax(0, 1fr) 2.25rem;
  }

  .pulse-shell.sidebar-collapsed .sidebar-brand {
    justify-content: flex-start;
    padding: 0.5rem;
  }

  .pulse-shell.sidebar-collapsed .asdt-sidebar-logo {
    width: 8.25rem;
    flex-basis: 8.25rem;
  }

  .pulse-shell.sidebar-collapsed .sidebar-brand-text,
  .pulse-shell.sidebar-collapsed .sidebar-label,
  .pulse-shell.sidebar-collapsed .sidebar-user-copy {
    position: static;
    width: auto;
    height: auto;
    overflow: hidden;
    clip: auto;
    white-space: nowrap;
  }

  .pulse-shell.sidebar-collapsed .sidebar-menu-button {
    justify-content: flex-start;
    padding: 0.45rem 0.5rem;
  }

  .pulse-shell.sidebar-collapsed .sidebar-menu-button.active {
    box-shadow: inset 3px 0 0 var(--primary);
  }

  .pulse-shell.sidebar-collapsed .sidebar-user {
    justify-content: flex-start;
    padding: 0.5rem;
  }

  .sidebar-collapse-button {
    display: none;
  }

  .pulse-inset {
    margin-left: 0;
  }

  .topbar-trigger {
    display: inline-flex;
  }

  .breadcrumb {
    display: none;
  }

  .topbar-clock {
    max-width: min(100%, 28rem);
  }

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

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

@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    padding: 0 1rem;
  }

  .topbar-main {
    gap: 0.5rem;
  }

  .topbar-clock {
    flex: 1;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
  }

  .clock-day {
    font-size: 0.75rem;
  }

  .clock-time {
    font-size: 0.8125rem;
  }

  .topbar-actions {
    gap: 0.375rem;
  }

  #syncButton {
    display: none;
  }

  .page-content {
    gap: 1rem;
    padding: 1rem;
    overflow-x: hidden;
  }

  .page-intro {
    display: grid;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .metric-card {
    padding: 0.75rem;
  }

  .metric-card strong {
    font-size: 1rem;
  }

  .timeline-toolbar {
    width: 100%;
    min-width: 0;
    grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
  }

  .timeline-toolbar .primary-button {
    min-width: 0;
    width: 100%;
    padding-inline: 0.5rem;
  }

  .timeline-toolbar input[type="range"] {
    grid-column: 1 / -1;
  }

  .day-button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
    overflow-x: visible;
  }

  .day-filter-button {
    justify-content: center;
    min-width: 0;
    min-height: 2.125rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }

  .day-filter-button span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .route-control-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
    padding: 0.625rem;
  }

  .route-control-bar .route-play-button {
    justify-self: start;
  }

  .route-timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem 0.5rem;
    overflow-x: visible;
    padding: 0.125rem 0;
  }

  .timeline-point {
    min-width: 0;
    max-width: none;
    flex-basis: auto;
    padding: 0.5rem;
  }

  .timeline-dot {
    width: 1.75rem;
    height: 1.75rem;
  }

  .timeline-point::before {
    left: -0.5rem;
    right: -0.5rem;
    top: 1.375rem;
  }

  .timeline-copy {
    width: 100%;
    padding: 0.4rem 0.45rem;
  }

  .route-map {
    height: calc(100vh - 25rem);
    min-height: 24rem;
  }

  .map,
  .coverage-3d,
  .earth-stage {
    height: 52vh;
    min-height: 21rem;
  }

  .route-map {
    height: calc(100vh - 25rem);
    min-height: 24rem;
  }

  .route-map-controls {
    flex-wrap: wrap;
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    justify-content: flex-end;
    padding: 0.3rem 0.45rem;
  }

  .route-map-controls label {
    font-size: 0.7rem;
  }

  .map-mode-switch {
    margin-right: auto;
  }

  .map-mode-switch button {
    min-height: 1.55rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.6875rem;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }

  .report-list {
    max-height: none;
  }

  .report-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .route-play-button {
    min-height: 2.125rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.8125rem;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0.75rem;
  }

  .contact-modal {
    max-height: 88vh;
    border-radius: 0.875rem;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .contact-phone {
    justify-self: start;
  }

  .coverage-legend {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    padding: 0.5rem;
  }

  .coverage-legend-list {
    display: none;
  }

  .route-panel,
  .active-card,
  .nearby-section {
    padding: 0.75rem;
  }

  .route-point-button {
    grid-template-columns: 2.25rem minmax(0, 1fr) 1.875rem;
    padding: 0.625rem 0.5rem;
  }

  .equipment-card {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .entity-row {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .equipment-icon {
    width: 2rem;
    height: 2rem;
  }

  .entity-icon,
  .entity-index {
    width: 2rem;
    height: 2rem;
  }

  .distance-badge,
  .entity-meta {
    grid-column: 2;
  }
}

@media (max-width: 390px) {
  .day-button-row,
  .route-timeline {
    grid-template-columns: 1fr;
  }

  .timeline-point::before {
    right: 50%;
    left: 50%;
    height: 0;
  }

  .timeline-copy strong,
  .timeline-copy small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}
