:root {
  --bg-ink: #0f1b2d;
  --bg-fog: #16344d;
  --card: rgba(8, 24, 39, 0.76);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f7fa;
  --muted: #b0c0cf;
  --accent: #ff8b4d;
  --blue-soft: rgba(75, 166, 255, 0.18);
  --sand-soft: rgba(255, 212, 138, 0.18);
  --teal-soft: rgba(100, 211, 189, 0.18);
  --rose-soft: rgba(255, 140, 153, 0.18);
}

body.app-body {
  min-height: 100vh;
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 139, 77, 0.25), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(52, 152, 219, 0.2), transparent 25%),
    linear-gradient(145deg, var(--bg-ink), var(--bg-fog) 60%, #234e66);
}

.app-layout {
  width: 100%;
  padding-left: clamp(20px, 3vw, 42px);
  padding-right: clamp(20px, 3vw, 42px);
}

.hero-panel,
.glass-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.hero-panel {
  padding: 18px 28px;
}

.app-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-header-help {
  flex: 0 0 auto;
  white-space: nowrap;
}

.glass-card {
  padding: 24px;
}

.hero-shell .row {
  --bs-gutter-x: 1.5rem;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: #9fd0ff;
  margin-bottom: 0.3rem;
}

.hero-title,
.section-title {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-title {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.hero-copy,
.text-secondary,
.tiny-note {
  color: var(--muted) !important;
}

.metric-list,
.badge-row,
.mini-dot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.metric-list {
  flex-direction: column;
  gap: 0.95rem;
}

.metric-list div,
.metric-box {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.metric-box {
  flex-direction: column;
}

.metric-box strong {
  font-size: 2rem;
  line-height: 1;
}

.soft-badge,
.legend-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.soft-badge-blue { background: var(--blue-soft); }
.soft-badge-sand { background: var(--sand-soft); }
.soft-badge-teal { background: var(--teal-soft); }
.soft-badge-rose { background: var(--rose-soft); }

.instruction-page {
  display: grid;
  gap: 1.5rem;
  max-width: 1180px;
}

.instruction-hero,
.instruction-content {
  border-radius: 12px;
  background: rgba(7, 18, 30, 0.68);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.instruction-content {
  color: rgba(245, 247, 250, 0.92);
  line-height: 1.72;
}

.instruction-content h1,
.instruction-content h2,
.instruction-content h3,
.instruction-content h4,
.instruction-content h5,
.instruction-content h6 {
  margin-top: 1.9rem;
  margin-bottom: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
}

.instruction-content h1:first-child,
.instruction-content h2:first-child {
  margin-top: 0;
}

.instruction-content h1 {
  font-size: 1.85rem;
}

.instruction-content h2 {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.45rem;
}

.instruction-content h3 {
  font-size: 1.14rem;
}

.instruction-content p,
.instruction-content ul,
.instruction-content ol,
.instruction-table-wrap {
  margin-bottom: 1rem;
}

.instruction-content ul,
.instruction-content ol {
  padding-left: 1.3rem;
}

.instruction-content li {
  margin-bottom: 0.42rem;
}

.instruction-content a {
  color: #9fd0ff;
  font-weight: 700;
  text-decoration-color: rgba(159, 208, 255, 0.42);
}

.instruction-content code {
  padding: 0.12rem 0.34rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd48a;
  font-size: 0.92em;
}

.instruction-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.instruction-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.instruction-table th,
.instruction-table td {
  padding: 0.72rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.instruction-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.instruction-table tr:last-child td {
  border-bottom: 0;
}

.schedule-header-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.schedule-header-copy {
  max-width: 100%;
}

.schedule-action-panel {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: auto;
}

.schedule-action-panel form {
  flex: 0 0 auto;
  margin: 0;
}

.schedule-action-panel form .w-100 {
  width: auto !important;
}

.schedule-action-panel .tiny-note {
  flex-basis: 100%;
  margin-top: 0 !important;
}

.schedule-action-primary {
  --bs-btn-padding-y: 0.62rem;
  --bs-btn-padding-x: 0.85rem;
  font-size: 0.94rem;
}

.schedule-action-grid {
  display: flex;
  flex: 1 1 560px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0;
}

.schedule-action-grid .btn {
  --bs-btn-padding-y: 0.48rem;
  --bs-btn-padding-x: 0.62rem;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.15;
  font-size: 0.82rem;
}

.schedule-action-wide {
  grid-column: auto;
}

.schedule-sticky-menu {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
}

.schedule-sticky-menu-inner {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  width: 100%;
  overflow-x: auto;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 24, 39, 0.9);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
}

.schedule-sticky-menu-inner::-webkit-scrollbar {
  height: 6px;
}

.schedule-sticky-menu-inner::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.schedule-sticky-menu-form {
  flex: 0 0 auto;
  margin: 0;
}

.schedule-sticky-menu .btn,
.schedule-sticky-menu .timeline-history-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(248, 249, 250, 0.5);
  border-radius: 0.55rem;
  background: transparent;
  color: #f8f9fa;
  padding: 0.48rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.schedule-sticky-menu .btn:not(:disabled):not(.disabled):hover,
.schedule-sticky-menu .timeline-history-btn:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #f8f9fa;
  color: #000;
}

.schedule-sticky-menu .btn:disabled,
.schedule-sticky-menu .btn.disabled,
.schedule-sticky-menu .timeline-history-btn:disabled {
  background: transparent;
  color: rgba(248, 249, 250, 0.48);
  border-color: rgba(248, 249, 250, 0.24);
  cursor: not-allowed;
  opacity: 1;
}

.schedule-sticky-history {
  flex: 0 0 auto;
}

.schedule-sticky-menu .timeline-history-group {
  align-items: flex-end;
}

.timeline-history-saved-control {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0.12rem;
}

.schedule-saved-state-stamp {
  min-height: 0.78rem;
  color: rgba(225, 236, 246, 0.72);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.status-pill.ready {
  background: rgba(100, 211, 189, 0.18);
}

.status-pill.pending {
  background: rgba(255, 140, 153, 0.18);
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(102px, 1fr));
  gap: 0.8rem;
}

.timeline-side-column-hidden,
.route-table-pane-hidden,
.timeline-pane-hidden {
  display: none;
}

.schedule-detail-split {
  --schedule-map-width: 34%;
  --schedule-route-table-width: 30%;
  display: grid;
  grid-template-columns: minmax(300px, var(--schedule-map-width)) 14px minmax(280px, var(--schedule-route-table-width)) 14px minmax(0, 1fr);
  align-items: start;
  gap: 0;
}

.schedule-detail-split.is-map-hidden {
  grid-template-columns: minmax(280px, var(--schedule-route-table-width)) 14px minmax(0, 1fr);
}

.schedule-detail-split.is-route-table-hidden,
.schedule-detail-split.is-timeline-hidden {
  grid-template-columns: minmax(300px, var(--schedule-map-width)) 14px minmax(0, 1fr);
}

.schedule-detail-split.is-map-hidden.is-route-table-hidden,
.schedule-detail-split.is-map-hidden.is-timeline-hidden,
.schedule-detail-split.is-route-table-hidden.is-timeline-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.schedule-detail-split.is-map-hidden .schedule-map-resizer,
.schedule-detail-split.is-route-table-hidden.is-timeline-hidden .schedule-map-resizer,
.schedule-detail-split.is-route-table-hidden .schedule-table-timeline-resizer,
.schedule-detail-split.is-timeline-hidden .schedule-table-timeline-resizer {
  display: none;
}

.schedule-map-pane,
.schedule-route-table-pane,
.schedule-timeline-pane {
  min-width: 0;
}

.schedule-map-pane {
  --route-map-height: 100%;
}

.schedule-map-pane,
.schedule-route-table-pane {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.schedule-map-pane .glass-card,
.schedule-route-table-pane .glass-card,
.schedule-timeline-pane .glass-card {
  display: flex;
  flex-direction: column;
}

.schedule-map-pane .glass-card,
.schedule-route-table-pane .glass-card {
  overflow: hidden;
}

.schedule-map-pane .glass-card {
  height: calc(100vh - 2rem) !important;
  max-height: calc(100vh - 2rem);
}

.schedule-route-table-pane .glass-card {
  max-height: calc(100vh - 2rem);
}

.schedule-timeline-pane .glass-card {
  overflow: visible;
}

.schedule-detail-resizer {
  position: relative;
  align-self: stretch;
  width: 14px;
  min-height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
  z-index: 2;
}

.schedule-detail-resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.schedule-detail-resizer:hover::before,
.schedule-detail-resizer:focus-visible::before,
.schedule-detail-split.is-resizing .schedule-detail-resizer::before {
  background: rgba(159, 208, 255, 0.74);
  box-shadow: 0 0 0 5px rgba(159, 208, 255, 0.12);
}

.schedule-detail-split.is-resizing,
.schedule-detail-split.is-resizing * {
  cursor: col-resize !important;
  user-select: none;
}

.schedule-detail-split.is-resizing .route-map-frame {
  pointer-events: none;
}

.schedule-pane-toggle-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.timeline-panel-toggle {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #d8e6ff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}

.timeline-panel-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.route-map-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.route-map-title-line .section-title {
  margin-bottom: 0;
}

.route-map-day-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.route-map-day-nav-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(159, 208, 255, 0.34);
  border-radius: 999px;
  background: rgba(159, 208, 255, 0.12);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.route-map-day-nav-btn:hover:not(:disabled),
.route-map-day-nav-btn:focus-visible:not(:disabled) {
  border-color: rgba(159, 208, 255, 0.72);
  background: rgba(159, 208, 255, 0.24);
}

.route-map-day-nav-btn:disabled {
  color: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
  opacity: 1;
}

.day-card {
  min-height: 102px;
  border-radius: 20px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.day-card-work { background: linear-gradient(180deg, rgba(75, 166, 255, 0.22), rgba(255, 255, 255, 0.03)); }
.day-card-trip { background: linear-gradient(180deg, rgba(100, 211, 189, 0.24), rgba(255, 255, 255, 0.03)); }
.day-card-no-car { background: linear-gradient(180deg, rgba(255, 140, 153, 0.24), rgba(255, 255, 255, 0.03)); }
.day-card-weekend { background: linear-gradient(180deg, rgba(255, 212, 138, 0.14), rgba(255, 255, 255, 0.02)); }

.mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.mini-dot-home,
.mini-dot-hotel,
.mini-dot-alternative_home { background: #ffd48a; }
.mini-dot-airport { background: #9fd0ff; }
.mini-dot-gas_station { background: #ff8b4d; }
.mini-dot-visit_rest,
.mini-dot-visit_office { background: #64d3bd; }

.route-map-shell {
  position: relative;
  flex: 1 1 auto;
  height: var(--route-map-height);
  min-height: 260px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.route-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  min-height: 0;
}

.route-map-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.route-map-controls {
  position: absolute;
  z-index: 7;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.route-map-controls::-webkit-scrollbar {
  display: none;
}

.route-map-mode-switch {
  display: inline-flex;
  gap: 3px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 24, 39, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.route-map-mode-switch button {
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d8e6ff;
  padding: 0.22rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.route-map-mode-switch button.is-active {
  background: rgba(159, 208, 255, 0.22);
  color: #ffffff;
}

.route-map-mode-switch button:focus-visible {
  outline: 2px solid rgba(159, 208, 255, 0.74);
  outline-offset: 2px;
}

.route-map-candidates-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 24, 39, 0.82);
  color: #f7df7e;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.route-map-line-label-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 24, 39, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.route-map-line-label-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0.22rem 0.42rem;
  border-radius: 999px;
  color: #d8e6ff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.route-map-candidates-toggle input,
.route-map-line-label-toggle input {
  width: 13px;
  height: 13px;
  margin: 0;
}

.route-map-candidates-toggle input {
  accent-color: #f4cb62;
}

.route-map-line-label-toggle input {
  accent-color: #9fd0ff;
}

.route-map-marker {
  transform: translate(-50%, -100%);
  user-select: none;
  appearance: none;
  cursor: default;
  --route-map-marker-color: var(--timeline-marker-route, #2f80ed);
  --route-map-marker-hover-color: var(--timeline-marker-route-hover, #2567c2);
  --route-map-marker-outline: rgba(47, 128, 237, 0.28);
}

.route-map-marker-editable {
  cursor: pointer;
}

.route-map-marker-pin {
  position: relative;
  min-width: 32px;
  height: 32px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--route-map-marker-color);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 27, 45, 0.34);
}

.route-map-marker-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  background: var(--route-map-marker-color);
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}

.route-map-marker-real {
  --route-map-marker-color: var(--timeline-marker-meeting, #4fa36c);
  --route-map-marker-hover-color: var(--timeline-marker-meeting-hover, #3f8959);
  --route-map-marker-outline: rgba(79, 163, 108, 0.28);
}

.route-map-marker-fake {
  --route-map-marker-color: var(--timeline-marker-fake-meeting, #e16eb0);
  --route-map-marker-hover-color: var(--timeline-marker-fake-meeting-hover, #c95798);
  --route-map-marker-outline: rgba(225, 110, 176, 0.3);
}

.route-map-marker-label {
  position: relative;
  z-index: 1;
}

.route-map-marker-icon-home .route-map-marker-label,
.route-map-marker-icon-airport .route-map-marker-label {
  font-size: 1rem;
  line-height: 1;
}

.route-map-marker-icon-hotel .route-map-marker-label {
  font-size: 0.82rem;
  letter-spacing: 0;
}

.route-map-marker-pin:hover,
.route-map-marker-pin:focus-visible,
.route-map-marker-pin.is-selected {
  background: var(--route-map-marker-hover-color);
  outline: 3px solid var(--route-map-marker-outline);
}

.route-map-marker-pin:hover::after,
.route-map-marker-pin:focus-visible::after,
.route-map-marker-pin.is-selected::after {
  background: var(--route-map-marker-hover-color);
}

.route-map-direction-arrow {
  position: relative;
  width: 26px;
  height: 26px;
  color: var(--route-map-arrow-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    -1px -1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px 1px 0 #ffffff,
    0 2px 5px rgba(8, 24, 39, 0.42);
  transform: translate(-50%, -50%) rotate(var(--route-map-arrow-rotation, 0deg));
  pointer-events: none;
  --route-map-arrow-color: #4fa36c;
}

.route-map-direction-arrow.is-selected {
  width: 30px;
  height: 30px;
  font-size: 1.52rem;
}

.route-map-point-editor {
  transform: translate(-50%, calc(-100% - 44px));
  width: min(280px, calc(100vw - 48px));
  padding: 0.62rem 0.72rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 24, 39, 0.94);
  color: #eef6ff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  user-select: none;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.route-map-point-editor-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.28rem;
}

.route-map-point-editor-header strong {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-map-point-editor-header span,
.route-map-point-editor-meta {
  color: #a8bad0;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.route-map-point-editor-close {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d8e6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.route-map-point-editor-close:hover,
.route-map-point-editor-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: 3px solid rgba(159, 208, 255, 0.28);
}

.route-map-point-editor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.52rem;
}

.route-map-point-editor-meta [data-route-map-point-editor-duration] {
  color: #f1b7ff;
}

.route-map-point-editor-switch {
  appearance: none;
  border: 1px solid rgba(159, 208, 255, 0.32);
  border-radius: 999px;
  background: rgba(159, 208, 255, 0.12);
  color: #e7f2ff;
  padding: 0.16rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.route-map-point-editor-switch:hover,
.route-map-point-editor-switch:focus-visible {
  background: rgba(159, 208, 255, 0.22);
  outline: 3px solid rgba(159, 208, 255, 0.24);
}

.route-map-point-editor-rail {
  position: relative;
  height: 28px;
  border-radius: 999px;
}

.route-map-point-editor-rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.route-map-point-editor-fill {
  position: absolute;
  top: 12px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #64d3bd, #f1b7ff);
}

.route-map-point-editor-handle {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #64d3bd;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
}

.route-map-point-editor-handle-end {
  background: #f1b7ff;
}

.route-map-point-editor-handle:hover,
.route-map-point-editor-handle:focus-visible {
  outline: 3px solid rgba(159, 208, 255, 0.36);
}

.route-map-point-editor-handle:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.route-map-marker-candidate {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #f4cb62;
  color: #142640;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(108, 82, 12, 0.34);
}

.route-map-marker-candidate::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  background: #f4cb62;
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}

.route-map-marker-candidate span {
  position: relative;
  z-index: 1;
}

.route-map-marker-candidate:hover,
.route-map-marker-candidate:focus-visible {
  background: #ffd95e;
  outline: 3px solid rgba(244, 203, 98, 0.34);
}

.route-map-marker-candidate:hover::after,
.route-map-marker-candidate:focus-visible::after {
  background: #ffd95e;
}

.route-map-line-label {
  appearance: none;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
  max-width: 150px;
  padding: 0.16rem 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(8, 24, 39, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  color: inherit;
  cursor: pointer;
  font: inherit;
  user-select: none;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.route-map-line-label:hover,
.route-map-line-label:focus-visible,
.route-map-line-label.is-selected {
  background: rgba(16, 44, 70, 0.94);
  outline: 3px solid rgba(159, 208, 255, 0.28);
}

.route-map-line-label-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 17px;
  padding: 0.06rem 0.32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.route-map-line-label-distance {
  color: #9fd0ff;
}

.route-map-line-label-fuel {
  color: #ffd48a;
}

.route-map-line-label-duration {
  color: #f1b7ff;
}

.route-map-line-label-speed-ok {
  color: #73d58e;
}

.route-map-line-label-speed-out {
  color: #ff7f7f;
}

.route-map-empty {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  color: var(--muted);
  text-align: center;
  background: rgba(8, 24, 39, 0.74);
  backdrop-filter: blur(8px);
}

.route-map-summary {
  flex: 1 1 auto;
  min-height: 58px;
  overflow: auto;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.schedule-route-table-pane .route-map-summary {
  max-height: calc(100vh - 8.8rem);
}

.route-map-day-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border-radius: 8px;
}

.route-map-day-table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.25;
}

.route-map-day-table th,
.route-map-day-table td {
  max-width: 220px;
  padding: 0.45rem 0.55rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.route-map-day-table th {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.route-map-day-table td {
  background: rgba(255, 255, 255, 0.035);
}

.route-map-day-table tbody tr {
  cursor: pointer;
}

.route-map-day-table tbody tr:hover td,
.route-map-day-table tbody tr:focus-visible td {
  background: rgba(255, 214, 102, 0.1);
}

.route-map-day-table tbody tr:focus-visible {
  outline: 2px solid rgba(255, 214, 102, 0.72);
  outline-offset: -2px;
}

.route-map-day-table tbody tr.is-selected td {
  background: rgba(255, 214, 102, 0.18);
}

.route-map-day-table td.route-map-day-table-time-cell {
  min-width: 5.2rem;
  text-align: center;
  font-weight: 800;
}

.route-map-day-table td.route-map-day-table-time-editable {
  cursor: text;
  color: #ffd48a;
}

.route-map-day-table td.route-map-day-table-time-editable:hover {
  background: rgba(255, 214, 102, 0.14);
}

.route-map-day-table td.route-map-day-table-time-editing {
  padding: 0.22rem 0.28rem;
  background: rgba(255, 214, 102, 0.12);
}

.route-map-day-table-time-input {
  width: 4.7rem;
  min-width: 0;
  border: 1px solid rgba(255, 214, 102, 0.45);
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.96);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.22rem 0.3rem;
  text-align: center;
  outline: none;
}

.route-map-day-table-time-input:focus {
  border-color: rgba(255, 214, 102, 0.82);
  box-shadow: 0 0 0 2px rgba(255, 214, 102, 0.14);
}

.route-map-day-table-time-input.is-invalid {
  border-color: rgba(255, 113, 113, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 113, 113, 0.18);
}

.route-map-day-table th:first-child,
.route-map-day-table td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.route-map-day-table thead th {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.route-map-day-table tbody tr td.route-map-day-table-cell-speed-ok {
  color: #73d58e;
  background: rgba(81, 179, 109, 0.12);
  font-weight: 800;
}

.route-map-day-table tbody tr td.route-map-day-table-cell-speed-out {
  color: #ff7f7f;
  background: rgba(255, 113, 113, 0.14);
  font-weight: 800;
}

.route-map-day-table tbody tr td.route-map-day-table-cell-fuel-normal {
  color: #4fa36c;
  background: rgba(79, 163, 108, 0.12);
  font-weight: 800;
}

.route-map-day-table tbody tr td.route-map-day-table-cell-fuel-low {
  color: #4bc9ff;
  background: rgba(75, 201, 255, 0.14);
  font-weight: 800;
}

.route-map-day-table tbody tr td.route-map-day-table-cell-fuel-overfull {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.14);
  font-weight: 800;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.timeline-theme {
  --timeline-home-legend: rgba(255, 212, 138, 0.18);
  --timeline-check-legend: rgba(100, 211, 189, 0.18);
  --timeline-gap-legend: rgba(58, 134, 200, 0.26);
  --timeline-anchor-legend: rgba(110, 124, 143, 0.24);
  --timeline-overnight-legend: rgba(91, 100, 114, 0.28);
  --timeline-overnight-drive-legend: rgba(66, 93, 140, 0.28);
  --timeline-meeting-legend: rgba(79, 163, 108, 0.28);
  --timeline-wrapup-legend: rgba(210, 154, 58, 0.28);
  --timeline-drag-highlight: rgba(255, 212, 138, 0.24);
  --timeline-drag-border: rgba(255, 212, 138, 0.72);
  --timeline-drag-shadow: rgba(255, 212, 138, 0.14);
  --timeline-edge-gap: linear-gradient(90deg, rgba(58, 134, 200, 0.52), rgba(58, 134, 200, 0.88));
  --timeline-edge-anchor: linear-gradient(90deg, rgba(110, 124, 143, 0.44), rgba(138, 151, 168, 0.76));
  --timeline-edge-overnight: linear-gradient(90deg, rgba(91, 100, 114, 0.5), rgba(120, 129, 143, 0.74));
  --timeline-edge-overnight-drive: linear-gradient(90deg, rgba(66, 93, 140, 0.58), rgba(66, 93, 140, 0.92));
  --timeline-edge-meeting: linear-gradient(90deg, rgba(79, 163, 108, 0.56), rgba(79, 163, 108, 0.92));
  --timeline-edge-meeting-end: linear-gradient(90deg, rgba(210, 154, 58, 0.58), rgba(210, 154, 58, 0.92));
  --timeline-edge-fake-meeting: linear-gradient(90deg, rgba(225, 110, 176, 0.56), rgba(225, 110, 176, 0.92));
  --timeline-marker-route: #2f80ed;
  --timeline-marker-route-hover: #2567c2;
  --timeline-marker-meeting: #4fa36c;
  --timeline-marker-meeting-hover: #3f8959;
  --timeline-marker-fake-meeting: #e16eb0;
  --timeline-marker-fake-meeting-hover: #c95798;
  --timeline-edge-meeting-shadow: rgba(79, 163, 108, 0.28);
  --timeline-edge-wrapup-shadow: rgba(210, 154, 58, 0.28);
  --timeline-edge-fake-shadow: rgba(225, 110, 176, 0.28);
}

.timeline-theme[data-color-scheme="cartographic"] {
  --timeline-gap-legend: rgba(67, 123, 222, 0.26);
  --timeline-anchor-legend: rgba(132, 146, 111, 0.24);
  --timeline-overnight-legend: rgba(103, 112, 124, 0.28);
  --timeline-overnight-drive-legend: rgba(47, 88, 143, 0.28);
  --timeline-meeting-legend: rgba(78, 143, 92, 0.28);
  --timeline-wrapup-legend: rgba(176, 127, 62, 0.28);
  --timeline-drag-highlight: rgba(182, 161, 104, 0.22);
  --timeline-drag-border: rgba(182, 161, 104, 0.7);
  --timeline-drag-shadow: rgba(182, 161, 104, 0.14);
  --timeline-edge-gap: linear-gradient(90deg, rgba(67, 123, 222, 0.52), rgba(67, 123, 222, 0.9));
  --timeline-edge-anchor: linear-gradient(90deg, rgba(132, 146, 111, 0.42), rgba(153, 165, 126, 0.74));
  --timeline-edge-overnight: linear-gradient(90deg, rgba(103, 112, 124, 0.48), rgba(130, 138, 148, 0.74));
  --timeline-edge-overnight-drive: linear-gradient(90deg, rgba(47, 88, 143, 0.58), rgba(47, 88, 143, 0.92));
  --timeline-edge-meeting: linear-gradient(90deg, rgba(78, 143, 92, 0.56), rgba(78, 143, 92, 0.9));
  --timeline-edge-meeting-end: linear-gradient(90deg, rgba(176, 127, 62, 0.56), rgba(176, 127, 62, 0.9));
  --timeline-edge-fake-meeting: linear-gradient(90deg, rgba(182, 92, 162, 0.56), rgba(182, 92, 162, 0.9));
  --timeline-marker-route: #437bde;
  --timeline-marker-route-hover: #3567bd;
  --timeline-marker-meeting: #4e8f5c;
  --timeline-marker-meeting-hover: #3f774c;
  --timeline-marker-fake-meeting: #b65ca2;
  --timeline-marker-fake-meeting-hover: #984985;
  --timeline-edge-meeting-shadow: rgba(78, 143, 92, 0.28);
  --timeline-edge-wrapup-shadow: rgba(176, 127, 62, 0.28);
  --timeline-edge-fake-shadow: rgba(182, 92, 162, 0.28);
}

.timeline-theme[data-color-scheme="dispatcher"] {
  --timeline-gap-legend: rgba(75, 201, 255, 0.28);
  --timeline-anchor-legend: rgba(124, 139, 161, 0.24);
  --timeline-overnight-legend: rgba(129, 140, 156, 0.24);
  --timeline-overnight-drive-legend: rgba(162, 110, 255, 0.28);
  --timeline-meeting-legend: rgba(72, 204, 132, 0.28);
  --timeline-wrapup-legend: rgba(255, 181, 72, 0.3);
  --timeline-drag-highlight: rgba(75, 201, 255, 0.18);
  --timeline-drag-border: rgba(75, 201, 255, 0.68);
  --timeline-drag-shadow: rgba(75, 201, 255, 0.16);
  --timeline-edge-gap: linear-gradient(90deg, rgba(75, 201, 255, 0.54), rgba(75, 201, 255, 0.94));
  --timeline-edge-anchor: linear-gradient(90deg, rgba(124, 139, 161, 0.42), rgba(150, 162, 180, 0.76));
  --timeline-edge-overnight: linear-gradient(90deg, rgba(89, 97, 110, 0.48), rgba(119, 129, 143, 0.72));
  --timeline-edge-overnight-drive: linear-gradient(90deg, rgba(162, 110, 255, 0.56), rgba(124, 84, 221, 0.94));
  --timeline-edge-meeting: linear-gradient(90deg, rgba(72, 204, 132, 0.54), rgba(72, 204, 132, 0.92));
  --timeline-edge-meeting-end: linear-gradient(90deg, rgba(255, 181, 72, 0.6), rgba(255, 140, 64, 0.94));
  --timeline-edge-fake-meeting: linear-gradient(90deg, rgba(255, 92, 190, 0.58), rgba(214, 82, 255, 0.94));
  --timeline-marker-route: #4bc9ff;
  --timeline-marker-route-hover: #25a9df;
  --timeline-marker-meeting: #48cc84;
  --timeline-marker-meeting-hover: #2fae68;
  --timeline-marker-fake-meeting: #d652ff;
  --timeline-marker-fake-meeting-hover: #b536df;
  --timeline-edge-meeting-shadow: rgba(72, 204, 132, 0.28);
  --timeline-edge-wrapup-shadow: rgba(255, 181, 72, 0.28);
  --timeline-edge-fake-shadow: rgba(214, 82, 255, 0.28);
}

.timeline-theme .legend-home { background: var(--timeline-home-legend); }
.timeline-theme .legend-check { background: var(--timeline-check-legend); }
.timeline-theme .legend-gap { background: var(--timeline-gap-legend); }
.timeline-theme .legend-overnight { background: var(--timeline-overnight-legend); }
.timeline-theme .legend-overnight-drive { background: var(--timeline-overnight-drive-legend); }
.timeline-theme .legend-meeting { background: var(--timeline-meeting-legend); }
.timeline-theme .legend-wrapup { background: var(--timeline-wrapup-legend); }

.timeline-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.timeline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline-toggle-compact {
  font-size: 0.72rem;
  font-weight: 600;
}

.timeline-label-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.timeline-toggle input {
  accent-color: #73d58e;
}

.timeline-state-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.timeline-state-chip {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.timeline-state-chip:hover {
  border-color: rgba(159, 208, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.timeline-state-chip.is-active {
  border-color: rgba(115, 213, 142, 0.35);
  background: rgba(115, 213, 142, 0.08);
}

.timeline-state-chip-title {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline-state-chip-meta {
  color: var(--muted);
  font-size: 0.68rem;
}

.timeline-zoom-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.timeline-history-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.timeline-history-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.timeline-history-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(159, 208, 255, 0.26);
  transform: translateY(-1px);
}

.timeline-history-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.timeline-zoom-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.timeline-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 212, 138, 0.32);
  transform: translateY(-1px);
}

.timeline-zoom-btn.is-active {
  background: rgba(64, 158, 255, 0.18);
  border-color: rgba(64, 158, 255, 0.3);
  color: #9fd0ff;
}

.timeline-scroll {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 0.35rem;
}

.schedule-timeline-pane .timeline-scroll {
  flex: 0 0 auto;
  overflow-x: auto;
  overflow-y: visible;
}

.timeline-scroll.is-middle-panning {
  cursor: grabbing;
  user-select: none;
}

.timeline-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-side {
  padding-top: 0.6rem;
}

.timeline-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.timeline-day-map-btn {
  display: inline-flex;
  order: 1;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  padding: 0.28rem 0.55rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  line-height: 1.15;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.timeline-day-map-btn:hover,
.timeline-day-map-btn.is-active {
  border-color: rgba(255, 139, 77, 0.42);
  color: #ffd48a;
  background: rgba(255, 139, 77, 0.14);
}

.day-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border: 1px solid rgba(255, 212, 138, 0.58);
  border-radius: 0.55rem;
  padding: 0.22rem 0.42rem;
  background: rgba(255, 212, 138, 0.86);
  color: #2d2206;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.timeline-day-head .day-lock-btn {
  order: 3;
  flex: 0 0 100%;
}

.day-lock-btn:hover:not(:disabled) {
  background: #ffe09a;
  border-color: #ffe09a;
  transform: translateY(-1px);
}

.day-lock-btn.is-locked {
  border-color: rgba(100, 211, 189, 0.62);
  background: rgba(100, 211, 189, 0.9);
  color: #062a24;
  cursor: pointer;
}

.day-lock-btn:disabled {
  cursor: default;
}

.route-map-header-lock {
  flex: 0 0 auto;
  margin-top: 0;
}

.timeline-row.is-day-locked .edge-band-draggable,
.timeline-row.is-day-locked .edge-handle-draggable,
.timeline-row.is-day-locked .node-marker-wrap-draggable,
.timeline-row.is-day-locked .fake-meeting-delete-btn {
  cursor: not-allowed;
}

.timeline-side-fuel {
  color: #9fd7b0;
}

.timeline-day-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.timeline-day-menu {
  order: 2;
  flex: 0 0 auto;
}

.timeline-day-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.timeline-day-menu-btn:hover,
.timeline-day-menu-btn:focus-visible,
.timeline-day-menu-btn.show {
  border-color: rgba(159, 208, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.timeline-day-menu-list {
  --bs-dropdown-min-width: 11rem;
  --bs-dropdown-padding-y: 0.35rem;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(16, 28, 43, 0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.timeline-day-menu-list .dropdown-item {
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline-day-fill-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.timeline-day-fill-btn:hover:not(:disabled) {
  border-color: rgba(159, 208, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.timeline-day-fill-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.timeline-day-fill-status {
  flex-basis: 100%;
  max-width: 13.5rem;
  line-height: 1.3;
}

.timeline-track {
  position: relative;
  min-height: 160px;
  padding: 1.8rem 0.2rem 1rem;
}

.time-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.track-line {
  position: absolute;
  top: 4.4rem;
  left: 0;
  right: 0;
  height: 2px;
  background:
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.24),
      rgba(255, 255, 255, 0.24) 1px,
      transparent 1px,
      transparent calc(25% - 1px)
    );
}

.fuel-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 5.2rem;
  height: 54px;
  z-index: 1;
  pointer-events: none;
}

.timeline-scroll.timeline-fuel-hidden .fuel-track {
  display: none;
}

.timeline-scroll.timeline-fuel-hidden .timeline-track {
  min-height: 112px;
  padding-bottom: 0.8rem;
}

.fuel-track-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fuel-track-guide {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.7;
  stroke-dasharray: 2 3;
}

.fuel-track-guide-mid {
  stroke: rgba(255, 255, 255, 0.11);
}

.fuel-track-line {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 12px rgba(131, 188, 120, 0.22));
}

.fuel-track-line-normal {
  stroke: #4fa36c;
}

.fuel-track-line-low {
  stroke: #4bc9ff;
  filter: drop-shadow(0 4px 12px rgba(75, 201, 255, 0.25));
}

.fuel-track-line-overfull {
  stroke: #ff6b6b;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 107, 0.25));
}

.fuel-track-marker {
  fill: #ffd166;
  stroke: rgba(9, 17, 29, 0.92);
  stroke-width: 0.7;
  pointer-events: auto;
}

.fuel-track-label {
  position: absolute;
  left: 0;
  transform: translateX(-110%);
  font-size: 0.64rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
}

.fuel-track-label-top {
  top: -0.2rem;
}

.fuel-track-label-bottom {
  bottom: -0.15rem;
}

.fuel-track-summary {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.drag-zone-highlight {
  position: absolute;
  top: 3.45rem;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--timeline-drag-highlight));
  border: 1px dashed var(--timeline-drag-border);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px var(--timeline-drag-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.drag-zone-highlight.is-active {
  opacity: 1;
}

.cursor-time-indicator {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  transition: opacity 0.12s ease;
}

.cursor-time-indicator.is-visible {
  opacity: 1;
}

.cursor-time-indicator-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 14, 24, 0.94);
  color: rgba(244, 247, 251, 0.96);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  white-space: nowrap;
}

.edge-band {
  position: absolute;
  top: 4rem;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(159, 208, 255, 0.56);
  cursor: default;
  z-index: 2;
}

.edge-band-gap {
  background: var(--timeline-edge-gap);
}

.edge-band-anchor {
  background: var(--timeline-edge-anchor);
}

.edge-band-overnight {
  background: var(--timeline-edge-overnight);
}

.edge-band-overnight_drive {
  background: var(--timeline-edge-overnight-drive);
}

.edge-band-meeting {
  background: var(--timeline-edge-meeting);
  box-shadow: 0 0 0 1px var(--timeline-edge-meeting-shadow);
}

.edge-band-meeting_end {
  background: var(--timeline-edge-meeting-end);
  box-shadow: 0 0 0 1px var(--timeline-edge-wrapup-shadow);
}

.edge-band-fake_meeting {
  background: var(--timeline-edge-fake-meeting);
  box-shadow: 0 0 0 1px var(--timeline-edge-fake-shadow);
}

.edge-band-draggable {
  cursor: default;
}

.edge-band[data-edge-type="GAP"],
.edge-band[data-edge-type="ANCHOR"],
.edge-band[data-edge-type="OVERNIGHT_DRIVE"],
.edge-band[data-edge-type="MEETING"],
.edge-band[data-edge-type="MEETING_END"],
.edge-band[data-edge-type="FAKE_MEETING"],
.edge-band[data-edge-type="OVERNIGHT"] {
  cursor: pointer;
}

.edge-band[data-edge-type="GAP"]:hover,
.edge-band[data-edge-type="ANCHOR"]:hover,
.edge-band[data-edge-type="OVERNIGHT_DRIVE"]:hover,
.edge-band[data-edge-type="MEETING"]:hover,
.edge-band[data-edge-type="MEETING_END"]:hover,
.edge-band[data-edge-type="FAKE_MEETING"]:hover,
.edge-band[data-edge-type="OVERNIGHT"]:hover {
  border-color: rgba(255, 214, 102, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 214, 102, 0.14);
}

.edge-band-move-draggable {
  cursor: grab;
}

.edge-band.is-route-selected {
  border-color: rgba(255, 214, 102, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 214, 102, 0.72), 0 0 0 6px rgba(255, 214, 102, 0.16);
}

.edge-band-fake_meeting.is-selected {
  box-shadow: 0 0 0 2px rgba(255, 214, 102, 0.7), 0 0 0 6px rgba(255, 214, 102, 0.18);
  border-color: rgba(255, 214, 102, 0.88);
}

.fake-meeting-delete-btn {
  position: absolute;
  top: 4rem;
  transform: translate(-50%, -65%);
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 123, 123, 0.5);
  border-radius: 999px;
  background: rgba(33, 10, 16, 0.92);
  color: #ff9a9a;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  transition: opacity 0.14s ease, transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.fake-meeting-delete-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.fake-meeting-delete-btn:hover {
  background: rgba(77, 18, 29, 0.98);
  border-color: rgba(255, 123, 123, 0.82);
  transform: translate(-50%, -65%) scale(1.05);
}

.edge-band-fake_meeting:hover + .fake-meeting-delete-btn,
.edge-band-fake_meeting:focus-visible + .fake-meeting-delete-btn,
.fake-meeting-delete-btn:hover,
.fake-meeting-delete-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.edge-band-move-draggable.is-armed {
  cursor: grabbing;
}

.edge-band-draggable.is-armed {
  box-shadow: 0 0 0 2px rgba(255, 212, 138, 0.22), 0 10px 26px rgba(255, 212, 138, 0.14);
}

.edge-speed-label {
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 16, 27, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.edge-meta-stack {
  position: absolute;
  top: 2.4rem;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  pointer-events: none;
}

.edge-meta-stack-duration {
  top: 2.95rem;
}

.edge-distance-label,
.edge-duration-label {
  padding: 0.05rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 16, 27, 0.88);
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.edge-distance-label {
  color: #9fd0ff;
}

.edge-duration-label {
  color: #f1b7ff;
}

.edge-fuel-label {
  padding: 0.05rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 16, 27, 0.88);
  color: #ffd48a;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.edge-speed-label {
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 16, 27, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.edge-speed-label-ok {
  color: #73d58e;
}

.edge-speed-label-out {
  color: #ff7f7f;
}

.timeline-hide-speed-labels .edge-speed-label {
  display: none;
}

.timeline-hide-distance-labels .edge-distance-label {
  display: none;
}

.timeline-hide-fuel-labels .edge-fuel-label {
  display: none;
}

.timeline-hide-duration-labels .edge-meta-stack-duration {
  display: none;
}

.edge-handle-wrap {
  position: absolute;
  top: 1.75rem;
  transform: translateX(-50%);
  width: 18px;
  height: 56px;
  z-index: 9;
  pointer-events: auto;
}

.edge-handle-draggable {
  cursor: ew-resize;
}

.edge-handle-wrap.is-armed .edge-handle-line {
  box-shadow: 0 0 0 2px rgba(255, 212, 138, 0.22);
}

.edge-handle-wrap.is-armed .edge-handle-dot {
  transform: translateX(-50%) scale(1.14);
  box-shadow: 0 0 0 6px rgba(255, 212, 138, 0.16), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.edge-handle-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 40px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    to bottom,
    currentColor 0 6px,
    transparent 6px 10px
  );
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.edge-handle-dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px dashed currentColor;
  background: rgba(13, 20, 33, 0.96);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.26);
}

.edge-handle-line-meeting,
.edge-handle-dot-meeting {
  color: #5fd08d;
}

.edge-handle-line-meeting_end,
.edge-handle-dot-meeting_end {
  color: #ffb65d;
}

.edge-handle-line-fake_meeting,
.edge-handle-dot-fake_meeting {
  color: #ea74c2;
}

.edge-handle-line-overnight,
.edge-handle-dot-overnight {
  color: #8b95a5;
}

.node-interval {
  position: absolute;
  top: 2.9rem;
  height: 12px;
  min-width: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(100, 211, 189, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.node-marker-wrap {
  position: absolute;
  top: 0.8rem;
  transform: translateX(-50%);
  width: 18px;
  height: 72px;
  cursor: pointer;
}

.node-marker-wrap-draggable {
  cursor: ew-resize;
}

.node-marker-wrap-link {
  cursor: pointer;
}

.node-marker-wrap.is-armed .node-marker-line {
  box-shadow: 0 0 0 2px rgba(255, 212, 138, 0.22);
}

.node-marker-wrap.is-armed .node-marker-dot {
  transform: translateX(-50%) scale(1.18);
  box-shadow: 0 0 0 6px rgba(255, 212, 138, 0.16), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.node-marker-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 54px;
  border-radius: 999px;
  width: 3px;
  background: var(--marker-color, rgba(255, 255, 255, 0.9));
  box-shadow: 0 0 0 1px rgba(15, 27, 45, 0.35);
}

.node-marker-line-actual {
  background: #64d3bd;
}

.node-marker-line-anchor {
  background: #ffd48a;
}

.node-marker-line-flex {
  background: #9fd0ff;
}

.node-marker-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 49px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(15, 27, 45, 0.7);
  background: var(--marker-color, #9fd0ff);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.node-marker-dot-actual {
  background: #64d3bd;
}

.node-marker-dot-anchor {
  background: #ffd48a;
}

.node-marker-dot-flex {
  background: #9fd0ff;
}

.node-marker-line-factual {
  width: 4px;
  background: var(--marker-color, rgba(255, 255, 255, 0.92));
}

.node-marker-line-flexible {
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--marker-color, rgba(255, 255, 255, 0.9)) 0 8px,
    transparent 8px 14px
  );
}

.node-marker-dot-factual {
  width: 13px;
  height: 13px;
}

.node-marker-dot-flexible {
  width: 11px;
  height: 11px;
}

.node-warning-badge {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(0.35rem);
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 145, 77, 0.55);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffb357 0%, #ff7f50 100%);
  color: #101722;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(255, 127, 80, 0.28);
  cursor: pointer;
  z-index: 7;
}

.node-warning-badge:hover {
  transform: translateX(0.35rem) translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 127, 80, 0.34);
}

.node-marker-line-home,
.node-marker-dot-home {
  --marker-color: #ffd48a;
}

.node-marker-dot-home {
  background: var(--marker-color);
}

.node-marker-line-alternative_home,
.node-marker-dot-alternative_home {
  --marker-color: #ffc88e;
}

.node-marker-dot-alternative_home {
  background: var(--marker-color);
}

.node-marker-line-hotel,
.node-marker-dot-hotel {
  --marker-color: #ffb36c;
}

.node-marker-dot-hotel {
  background: var(--marker-color);
}

.node-marker-line-airport,
.node-marker-dot-airport {
  --marker-color: #7fc8ff;
}

.node-marker-dot-airport {
  background: var(--marker-color);
}

.node-marker-line-gas_station,
.node-marker-dot-gas_station {
  --marker-color: #ff8b4d;
}

.node-marker-dot-gas_station {
  background: var(--marker-color);
}

.node-marker-line-visit_rest,
.node-marker-dot-visit_rest {
  --marker-color: #7ad7a3;
}

.node-marker-dot-visit_rest {
  background: var(--marker-color);
}

.node-marker-line-visit_office,
.node-marker-dot-visit_office {
  --marker-color: #64d3bd;
}

.node-marker-dot-visit_office {
  background: var(--marker-color);
}

.debug-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.debug-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.debug-pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.45;
  font-family: Consolas, "Courier New", monospace;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text);
}

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

.manager-form-grid {
  --manager-card-width: 360px;
  --manager-map-width: 380px;
  display: grid;
  grid-template-columns: minmax(280px, var(--manager-card-width)) 16px minmax(460px, 1fr) 16px minmax(320px, var(--manager-map-width));
  align-items: start;
  row-gap: 1.5rem;
}

.manager-details-pane,
.manager-points-pane,
.manager-map-pane {
  min-width: 0;
}

.manager-map-pane {
  position: sticky;
  top: 1rem;
}

.manager-map-pane .glass-card {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 2rem) !important;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}

.manager-points-map-shell {
  flex: 1 1 auto;
  height: auto;
  min-height: 360px;
}

.manager-map-search .input-group {
  align-items: stretch;
}

.manager-map-search .btn {
  white-space: nowrap;
}

.manager-point-modal-meta {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.manager-point-map-marker {
  border: 0;
  padding: 0;
  background: transparent;
  touch-action: none;
}

.route-map.is-right-dragging-marker,
.route-map.is-right-dragging-marker * {
  cursor: grabbing !important;
}

.manager-point-map-marker:hover .route-map-marker-pin,
.manager-point-map-marker:focus-visible .route-map-marker-pin {
  background: var(--route-map-marker-hover-color);
  outline: 3px solid var(--route-map-marker-outline);
}

.manager-point-map-marker:hover .route-map-marker-pin::after,
.manager-point-map-marker:focus-visible .route-map-marker-pin::after {
  background: var(--route-map-marker-hover-color);
}

.manager-point-map-marker-home,
.manager-point-map-marker-alternative_home {
  --route-map-marker-color: #d29a3a;
  --route-map-marker-hover-color: #b88027;
  --route-map-marker-outline: rgba(210, 154, 58, 0.3);
}

.manager-point-map-marker-hotel {
  --route-map-marker-color: #7b61d8;
  --route-map-marker-hover-color: #624cbc;
  --route-map-marker-outline: rgba(123, 97, 216, 0.3);
}

.manager-point-map-marker-airport {
  --route-map-marker-color: #409eff;
  --route-map-marker-hover-color: #2d82d8;
  --route-map-marker-outline: rgba(64, 158, 255, 0.3);
}

.manager-point-map-marker-gas_station {
  --route-map-marker-color: #ff8b4d;
  --route-map-marker-hover-color: #e86f30;
  --route-map-marker-outline: rgba(255, 139, 77, 0.3);
}

.manager-point-map-marker-visit_rest {
  --route-map-marker-color: #d8649a;
  --route-map-marker-hover-color: #bb4f82;
  --route-map-marker-outline: rgba(216, 100, 154, 0.3);
}

.manager-point-map-marker-visit_office {
  --route-map-marker-color: #4fa36c;
  --route-map-marker-hover-color: #3f8959;
  --route-map-marker-outline: rgba(79, 163, 108, 0.3);
}

.manager-point-map-marker-search {
  --route-map-marker-color: #f2c94c;
  --route-map-marker-hover-color: #d9aa21;
  --route-map-marker-outline: rgba(242, 201, 76, 0.32);
}

.manager-point-map-marker-search .route-map-marker-pin {
  transform: rotate(45deg) scale(1.12);
}

.manager-point-map-marker-search .route-map-marker-label {
  transform: rotate(-45deg);
  font-size: 1rem;
  font-weight: 800;
}

.manager-form-actions {
  grid-column: 1 / -1;
}

.manager-form-resizer {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  cursor: col-resize;
  touch-action: none;
  z-index: 2;
  transition: background 0.16s ease;
}

.manager-form-resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.manager-form-resizer:hover,
.manager-form-resizer:focus-visible,
.manager-form-grid.is-resizing .manager-form-resizer {
  background: rgba(159, 208, 255, 0.08);
}

.manager-form-resizer:hover::before,
.manager-form-resizer:focus-visible::before,
.manager-form-grid.is-resizing .manager-form-resizer::before {
  background: rgba(159, 208, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(159, 208, 255, 0.12);
}

.manager-form-grid.is-resizing,
.manager-form-grid.is-resizing * {
  cursor: col-resize !important;
  user-select: none;
}

.manager-form-grid.is-resizing .route-map {
  pointer-events: none;
}

.settings-page {
  --settings-panel: rgba(12, 23, 36, 0.72);
  --settings-panel-open: rgba(15, 29, 44, 0.86);
  --settings-border: rgba(188, 211, 229, 0.18);
  --settings-border-strong: rgba(159, 208, 255, 0.34);
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.settings-page .glass-card {
  border-radius: 12px;
  background: rgba(7, 18, 30, 0.62);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

.settings-hero {
  padding: 1.15rem 1.25rem;
}

.settings-hero .section-title {
  font-size: 1.55rem;
  letter-spacing: 0;
}

.settings-hero .text-secondary {
  max-width: 860px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.settings-form {
  align-items: flex-start;
}

.settings-summary {
  position: sticky;
  top: 1rem;
}

.settings-summary .section-title {
  margin-bottom: 1rem;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.settings-summary .metric-list div {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.settings-summary .metric-list span {
  color: var(--muted);
}

.settings-summary .metric-list strong {
  text-align: right;
  white-space: nowrap;
}

.settings-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-group {
  border: 1px solid var(--settings-border);
  border-radius: 10px;
  background: var(--settings-panel);
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.settings-group[open] {
  border-color: var(--settings-border-strong);
  background: var(--settings-panel-open);
}

.settings-group:hover {
  border-color: rgba(159, 208, 255, 0.26);
}

.settings-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  list-style: none;
  user-select: none;
}

.settings-group summary::-webkit-details-marker {
  display: none;
}

.settings-group summary::marker {
  content: "";
}

.settings-group summary > span {
  min-width: 0;
}

.settings-group summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.58rem;
  height: 0.58rem;
  margin-right: 0.2rem;
  border-right: 2px solid #9fd0ff;
  border-bottom: 2px solid #9fd0ff;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.settings-group[open] summary::after {
  transform: rotate(225deg);
}

.settings-group summary strong,
.settings-group summary small {
  display: block;
}

.settings-group summary strong {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.settings-group summary small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.settings-group-body {
  padding: 0 1rem 1rem;
}

.settings-group-body > .row {
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.setting-field .app-input {
  cursor: help;
}

.settings-page .form-field {
  gap: 0.42rem;
}

.settings-page .form-field span {
  min-height: 2.2em;
  display: flex;
  align-items: flex-end;
  color: #c1cedb;
  font-size: 0.8rem;
  line-height: 1.28;
}

.settings-page .app-input {
  min-height: 42px;
  border-radius: 8px;
  padding: 0.58rem 0.7rem;
  background: rgba(255, 255, 255, 0.045);
}

.settings-page .app-input:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.065);
}

.settings-page .timeline-scheme-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-page .timeline-scheme-body {
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  background: rgba(255, 255, 255, 0.045);
}

.settings-page .schedule-calendar-note {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.settings-actions {
  padding: 1rem 1.1rem;
}

@media (max-width: 991px) {
  .settings-page .timeline-scheme-grid {
    grid-template-columns: 1fr;
  }

  .settings-summary {
    position: static;
  }
}

@media (max-width: 575px) {
  .settings-hero,
  .settings-actions {
    padding: 1rem;
  }

  .settings-group summary {
    min-height: 58px;
    padding: 0.78rem 0.85rem;
  }

  .settings-group-body {
    padding: 0 0.85rem 0.85rem;
  }

  .settings-page .form-field span {
    min-height: auto;
  }
}

.editor-hint {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.editor-hint code {
  color: #ffd48a;
}

.app-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
}

select.app-input,
select.app-input option,
select.app-input optgroup {
  color: #102030;
  background: #f5f7fa;
}

.geocode-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.geocode-status {
  min-height: 1.15em;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.coordinate-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.editor-table .btn-sm {
  --bs-btn-padding-y: 0.34rem;
  --bs-btn-padding-x: 0.55rem;
  --bs-btn-font-size: 0.76rem;
  border-radius: 10px;
  font-weight: 700;
}

.editor-table .app-input {
  min-height: 36px;
  border-radius: 10px;
  padding: 0.46rem 0.58rem;
  font-size: 0.82rem;
}

.editor-table select.app-input {
  padding-right: 1.8rem;
}

.editor-table .form-select {
  background-position: right 0.45rem center;
  background-size: 12px 9px;
}

.point-combobox {
  position: relative;
}

.point-combobox-list {
  position: fixed;
  z-index: 1080;
  display: none;
  max-height: 270px;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(13, 24, 38, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.point-combobox.is-open .point-combobox-list {
  display: grid;
  gap: 0.25rem;
}

.point-combobox-option {
  display: grid;
  width: 100%;
  gap: 0.12rem;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.point-combobox-option:hover,
.point-combobox-option.is-active {
  background: rgba(255, 139, 77, 0.18);
}

.point-combobox-option-title {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-combobox-option-meta,
.point-combobox-empty {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.point-combobox-empty {
  padding: 0.55rem 0.6rem;
}

.editor-type-col {
  width: 148px;
}

.editor-name-col {
  width: 180px;
}

.editor-coords-col {
  width: 190px;
}

.editor-actions-col {
  width: 176px;
  color: var(--muted);
}

.geocode-status[data-state="loading"] {
  color: #7fc8ff;
}

.geocode-status[data-state="success"] {
  color: #7ad7a3;
}

.geocode-status[data-state="error"] {
  color: #ff9f93;
}

select.app-input {
  color: var(--text);
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.05);
}

.app-input:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 139, 77, 0.75);
  box-shadow: 0 0 0 0.2rem rgba(255, 139, 77, 0.14);
}

.app-textarea {
  min-height: 150px;
  resize: vertical;
}

.schedule-mode-toolbar,
.schedule-calendar-legend,
.schedule-calendar-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.schedule-mode-toolbar {
  margin-bottom: 1rem;
}

.schedule-mode-chip,
.schedule-summary-chip,
.schedule-legend-pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.9rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.schedule-mode-chip:hover,
.schedule-mode-chip.is-active {
  border-color: rgba(255, 139, 77, 0.7);
  background: rgba(255, 139, 77, 0.18);
  transform: translateY(-1px);
}

.schedule-summary-work,
.schedule-legend-work {
  background: rgba(75, 166, 255, 0.18);
}

.schedule-summary-weekend,
.schedule-legend-weekend {
  background: rgba(255, 212, 138, 0.18);
}

.schedule-summary-trip,
.schedule-legend-trip {
  background: rgba(100, 211, 189, 0.18);
}

.schedule-summary-no-car,
.schedule-legend-no-car {
  background: rgba(255, 140, 153, 0.18);
}

.schedule-legend-unset {
  background: rgba(255, 255, 255, 0.05);
}

.timeline-scheme-grid {
  display: grid;
  gap: 0.9rem;
}

.timeline-scheme-card {
  display: block;
  cursor: pointer;
}

.timeline-scheme-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.timeline-scheme-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 16, 30, 0.52);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.timeline-scheme-card:hover .timeline-scheme-body {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
}

.timeline-scheme-input:checked + .timeline-scheme-body {
  border-color: rgba(255, 212, 138, 0.7);
  background: rgba(18, 28, 46, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 212, 138, 0.14), 0 14px 30px rgba(0, 0, 0, 0.22);
}

.timeline-scheme-title {
  font-weight: 700;
  color: var(--text);
}

.timeline-scheme-description {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.timeline-scheme-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.timeline-scheme-band {
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-scheme-preview-corporate {
  --preview-overnight: linear-gradient(90deg, rgba(91, 100, 114, 0.36), rgba(120, 129, 143, 0.58));
  --preview-gap: linear-gradient(90deg, rgba(58, 134, 200, 0.4), rgba(58, 134, 200, 0.82));
  --preview-meeting: linear-gradient(90deg, rgba(79, 163, 108, 0.4), rgba(79, 163, 108, 0.84));
  --preview-wrapup: linear-gradient(90deg, rgba(210, 154, 58, 0.42), rgba(210, 154, 58, 0.84));
  --preview-drive: linear-gradient(90deg, rgba(66, 93, 140, 0.42), rgba(66, 93, 140, 0.86));
}

.timeline-scheme-preview-cartographic {
  --preview-overnight: linear-gradient(90deg, rgba(103, 112, 124, 0.36), rgba(130, 138, 148, 0.58));
  --preview-gap: linear-gradient(90deg, rgba(67, 123, 222, 0.4), rgba(67, 123, 222, 0.84));
  --preview-meeting: linear-gradient(90deg, rgba(78, 143, 92, 0.42), rgba(78, 143, 92, 0.84));
  --preview-wrapup: linear-gradient(90deg, rgba(176, 127, 62, 0.42), rgba(176, 127, 62, 0.84));
  --preview-drive: linear-gradient(90deg, rgba(47, 88, 143, 0.42), rgba(47, 88, 143, 0.84));
}

.timeline-scheme-preview-dispatcher {
  --preview-overnight: linear-gradient(90deg, rgba(89, 97, 110, 0.36), rgba(119, 129, 143, 0.58));
  --preview-gap: linear-gradient(90deg, rgba(75, 201, 255, 0.42), rgba(75, 201, 255, 0.88));
  --preview-meeting: linear-gradient(90deg, rgba(72, 204, 132, 0.42), rgba(72, 204, 132, 0.86));
  --preview-wrapup: linear-gradient(90deg, rgba(255, 181, 72, 0.44), rgba(255, 140, 64, 0.88));
  --preview-drive: linear-gradient(90deg, rgba(162, 110, 255, 0.42), rgba(124, 84, 221, 0.88));
}

.timeline-scheme-band-overnight { background: var(--preview-overnight); }
.timeline-scheme-band-gap { background: var(--preview-gap); }
.timeline-scheme-band-meeting { background: var(--preview-meeting); }
.timeline-scheme-band-wrapup { background: var(--preview-wrapup); }
.timeline-scheme-band-drive { background: var(--preview-drive); }

.app-modal {
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.app-modal .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.fake-visit-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 320px;
  overflow-y: auto;
}

.fake-visit-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.fake-visit-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 212, 138, 0.35);
  transform: translateY(-1px);
}

.fake-visit-option-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 150px;
  flex: 0 0 150px;
}

.fake-visit-option-label {
  min-width: 0;
  flex: 1 1 auto;
}

.fake-visit-distance-badge,
.fake-visit-speed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.fake-visit-distance-badge {
  color: #7ec7ff;
  background: rgba(64, 158, 255, 0.16);
  border: 1px solid rgba(64, 158, 255, 0.24);
}

.fake-visit-speed-badge {
  border: 1px solid transparent;
}

.fake-visit-speed-badge-ok {
  color: #73d58e;
  background: rgba(81, 179, 109, 0.16);
  border-color: rgba(81, 179, 109, 0.24);
}

.fake-visit-speed-badge-out {
  color: #ff7f7f;
  background: rgba(255, 113, 113, 0.14);
  border-color: rgba(255, 113, 113, 0.22);
}

.schedule-calendar-shell {
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.schedule-calendar-weekdays,
.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.schedule-calendar-weekdays {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-calendar-weekdays span {
  padding: 0 0.35rem;
}

.schedule-calendar-day,
.schedule-calendar-filler {
  min-height: 108px;
  border-radius: 20px;
}

.schedule-calendar-filler {
  background: transparent;
}

.schedule-calendar-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.schedule-calendar-day:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.schedule-calendar-day.is-selected {
  border-color: rgba(255, 139, 77, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 139, 77, 0.2), 0 16px 36px rgba(0, 0, 0, 0.24);
}

.schedule-calendar-day-work {
  background: linear-gradient(180deg, rgba(75, 166, 255, 0.22), rgba(255, 255, 255, 0.03));
}

.schedule-calendar-day-weekend {
  background: linear-gradient(180deg, rgba(255, 212, 138, 0.18), rgba(255, 255, 255, 0.03));
}

.schedule-calendar-day-trip {
  background: linear-gradient(180deg, rgba(100, 211, 189, 0.24), rgba(255, 255, 255, 0.03));
}

.schedule-calendar-day-no-car {
  background: linear-gradient(180deg, rgba(255, 140, 153, 0.24), rgba(255, 255, 255, 0.03));
}

.schedule-calendar-day-unset {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.schedule-calendar-day-number {
  font-size: 1.15rem;
  font-weight: 800;
}

.schedule-calendar-day-weekday {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}

.schedule-calendar-day-label {
  font-size: 0.82rem;
  color: var(--text);
}

.schedule-calendar-day-anchor {
  font-size: 0.74rem;
  color: var(--muted);
}

.schedule-calendar-note {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}

.schedule-day-editor {
  min-height: 100%;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.schedule-day-editor-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.schedule-day-editor-note {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.86rem;
}

.schedule-calendar-error {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 140, 153, 0.12);
  border: 1px solid rgba(255, 140, 153, 0.25);
  color: #ffd7dd;
}

.editor-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.editor-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.editor-table th,
.editor-table td {
  padding: 0.48rem 0.5rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(11, 27, 42, 0.92);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.editor-table tbody tr:last-child td {
  border-bottom: 0;
}

.editor-row td {
  background: rgba(255, 255, 255, 0.02);
}

.editor-row-deleted td {
  opacity: 0.58;
  background: rgba(255, 140, 153, 0.08);
}

.editor-row-highlighted td {
  background: linear-gradient(180deg, rgba(255, 139, 77, 0.28), rgba(255, 139, 77, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 139, 77, 0.34);
}

.editor-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.1;
  white-space: nowrap;
}

.editor-delete input {
  accent-color: var(--accent);
}

.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: #ff7a31;
  --bs-btn-hover-border-color: #ff7a31;
  --bs-btn-active-bg: #f36a20;
  --bs-btn-active-border-color: #f36a20;
  font-weight: 700;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 991px) {
  .app-header-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-header-help {
    width: 100%;
  }

  .schedule-action-panel,
  .schedule-action-grid {
    align-items: stretch;
    justify-content: flex-start;
  }

  .schedule-action-panel form,
  .schedule-action-panel form .btn,
  .schedule-action-grid .btn {
    flex: 1 1 100%;
    width: 100% !important;
    white-space: normal;
  }

  .schedule-detail-split,
  .schedule-detail-split.is-map-hidden,
  .schedule-detail-split.is-route-table-hidden,
  .schedule-detail-split.is-timeline-hidden {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .schedule-map-pane,
  .schedule-route-table-pane {
    --route-map-height: 420px;
    position: static;
  }

  .schedule-detail-resizer {
    display: none;
  }

  .schedule-map-pane .glass-card,
  .schedule-route-table-pane .glass-card,
  .schedule-timeline-pane .glass-card {
    height: auto !important;
    max-height: none;
    min-height: auto;
  }

  .schedule-route-table-pane .route-map-summary {
    max-height: none;
  }

  .schedule-timeline-pane .timeline-scroll {
    overflow-x: auto;
    overflow-y: visible;
  }

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

  .route-map-shell {
    position: relative;
    top: auto;
    height: var(--route-map-height);
    min-height: 260px;
    flex: 0 0 auto;
  }

  .route-map {
    height: auto;
  }

  .timeline-side {
    padding-top: 0;
  }

  .app-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .schedule-calendar-weekdays,
  .schedule-calendar-grid {
    gap: 0.5rem;
  }

  .schedule-calendar-day,
  .schedule-calendar-filler {
    min-height: 92px;
  }
}

@media (max-width: 1199px) {
  .manager-form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .manager-map-pane {
    position: static;
  }

  .manager-map-pane .glass-card {
    height: auto !important;
    max-height: none;
  }

  .manager-points-map-shell {
    height: 420px;
    min-height: 320px;
    flex: 0 0 auto;
  }

  .manager-form-resizer {
    display: none;
  }

  .manager-form-actions {
    grid-column: auto;
  }
}

@media (max-width: 575px) {
  .schedule-map-pane {
    --route-map-height: 340px;
  }

  .route-map-shell {
    height: var(--route-map-height);
    min-height: 260px;
  }

  .manager-points-map-shell {
    height: 340px;
    min-height: 280px;
  }

  .route-map {
    height: auto;
  }

  .coordinate-pair {
    grid-template-columns: 1fr;
  }

  .editor-table {
    min-width: 760px;
  }
}
