.button, .icon-button, .quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--vr-radius-md);
  font-family: inherit;
  font-weight: var(--vr-weight-semibold);
  line-height: var(--vr-type-ui-line);
  transition: color var(--vr-duration-fast) var(--vr-ease), background var(--vr-duration-fast) var(--vr-ease), border-color var(--vr-duration-fast) var(--vr-ease), box-shadow var(--vr-duration-fast) var(--vr-ease), transform var(--vr-duration-fast) var(--vr-ease);
}
.button { min-height: var(--vr-control-md); padding: 0 var(--vr-space-4); gap: var(--vr-space-2); font-size: var(--vr-type-ui-size); white-space: nowrap; }
.button:hover:not(:disabled), .icon-button:hover:not(:disabled), .quick-action:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--vr-gradient-primary); box-shadow: 0 4px 12px rgba(29, 85, 188, 0.2); }
.button-primary:hover:not(:disabled) { box-shadow: 0 7px 18px rgba(29, 85, 188, 0.26); }
.button-secondary { border-color: var(--vr-border-strong); color: var(--vr-text); background: var(--vr-surface); }
.button-secondary:hover:not(:disabled) { border-color: #9eacc0; color: var(--vr-text); background: var(--vr-surface-subtle); }
.button-ghost { color: var(--vr-text-secondary); background: transparent; }
.button-ghost:hover:not(:disabled) { background: var(--vr-surface-soft); color: var(--vr-text); }
.button-mira { color: #fff; background: var(--vr-gradient-mira); box-shadow: 0 4px 12px rgba(103, 87, 207, 0.2); }
.button-block { width: 100%; }
.button-icon-label svg { width: var(--vr-icon-sm); height: var(--vr-icon-sm); }
.button-icon-label kbd { margin-left: 2px; }

.icon-button {
  width: var(--vr-control-md);
  min-width: var(--vr-control-md);
  height: var(--vr-control-md);
  padding: 0;
  border-color: var(--vr-border);
  color: var(--vr-text-secondary);
  background: var(--vr-surface);
}
.icon-button:hover:not(:disabled) { border-color: var(--vr-border-strong); color: var(--vr-primary-700); background: var(--vr-primary-50); }
.icon-button svg { width: var(--vr-icon-md); height: var(--vr-icon-md); }

.count-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding-inline: 5px;
  border-radius: var(--vr-radius-pill);
  color: #fff;
  background: var(--vr-primary-700);
  font-size: var(--vr-type-meta-size);
  font-weight: var(--vr-weight-bold);
}
.count-badge-light { color: var(--vr-mira-strong); background: rgba(255,255,255,0.88); }

.avatar {
  display: inline-grid;
  width: 29px;
  min-width: 29px;
  height: 29px;
  place-items: center;
  border: 2px solid var(--vr-surface);
  border-radius: 50%;
  color: var(--vr-primary-900);
  background: #e0ecff;
  font-size: 9.5px;
  font-weight: 800;
}
.avatar-lg { width: 36px; min-width: 36px; height: 36px; font-size: 11px; }
.avatar-blue { color: #174b80; background: #d7ecff; }
.avatar-gold { color: #744914; background: #fff0cf; }

.presence-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  background: #39c786;
  box-shadow: 0 0 0 3px rgba(57, 199, 134, 0.12);
}
.preview-dot { width: 8px; height: 8px; flex: 0 0 auto; border: 2px solid rgba(255,255,255,0.72); border-radius: 50%; background: var(--vr-warning); box-shadow: 0 0 0 3px rgba(183, 122, 18, 0.12); }

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

.status-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid var(--vr-border);
  border-radius: var(--vr-radius-lg);
  color: var(--vr-text);
  text-align: left;
  background: var(--vr-surface);
  box-shadow: var(--vr-shadow-xs);
  transition: border-color var(--vr-duration-fast), box-shadow var(--vr-duration-fast), transform var(--vr-duration-fast), background var(--vr-duration-fast);
}
.status-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--card-accent, var(--vr-primary-600));
  opacity: 0;
}
.status-card:hover { border-color: #b8c5d7; box-shadow: var(--vr-shadow-sm); transform: translateY(-1px); }
.status-card.is-active { border-color: color-mix(in srgb, var(--card-accent, var(--vr-primary-600)) 45%, white); background: color-mix(in srgb, var(--card-bg, var(--vr-primary-50)) 60%, white); box-shadow: 0 0 0 2px color-mix(in srgb, var(--card-accent, var(--vr-primary-600)) 13%, transparent); }
.status-card.is-active::after { opacity: 1; }
.status-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--card-accent, var(--vr-primary-700));
  background: var(--card-bg, var(--vr-primary-50));
}
.status-icon svg { width: 19px; height: 19px; }
.status-copy { min-width: 0; }
.status-copy strong { display: block; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.status-copy small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-value { font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 750; letter-spacing: -0.04em; }
.status-card[data-status="requests"] { --card-accent: var(--vr-warning); --card-bg: var(--vr-warning-bg); }
.status-card[data-status="drivers"] { --card-accent: var(--vr-success); --card-bg: var(--vr-success-bg); }
.status-card[data-status="returns"] { --card-accent: var(--vr-return); --card-bg: var(--vr-return-bg); }
.status-card[data-status="conflicts"] { --card-accent: var(--vr-danger); --card-bg: var(--vr-danger-bg); }

.active-filter-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.filter-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--vr-primary-100);
  border-radius: var(--vr-radius-pill);
  color: var(--vr-primary-900);
  background: var(--vr-primary-50);
  font-size: 11px;
  font-weight: 700;
}
.filter-chip svg { width: 14px; height: 14px; }

.schedule-tools { display: flex; align-items: center; gap: 6px; }
.zoom-control { display: inline-flex; min-height: 34px; align-items: center; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-md); overflow: hidden; }
.zoom-control button { width: 32px; height: 32px; padding: 0; border: 0; color: var(--vr-text-secondary); background: transparent; font-size: 17px; }
.zoom-control button:hover { background: var(--vr-surface-soft); }
.zoom-control span { min-width: 48px; padding-inline: 6px; color: var(--vr-text-muted); text-align: center; font-size: 10.5px; font-variant-numeric: tabular-nums; }

.schedule-callout {
  margin: 10px 12px 0;
  padding: 9px 11px;
  border: 1px solid var(--vr-primary-100);
  border-radius: var(--vr-radius-md);
  color: var(--vr-primary-900);
  background: var(--vr-primary-50);
  font-size: 12px;
}

.schedule-scroll {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: clamp(420px, 54vh, 570px);
  min-height: 380px;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  cursor: grab;
  scrollbar-color: #9eafc4 #edf2f7;
  scrollbar-width: auto;
  touch-action: pan-x pan-y;
}
.schedule-scroll.is-panning { cursor: grabbing; user-select: none; }
.schedule-scroll::-webkit-scrollbar { width: 11px; height: 14px; }
.schedule-scroll::-webkit-scrollbar-track { background: #edf2f7; }
.schedule-scroll::-webkit-scrollbar-thumb { border: 3px solid #edf2f7; border-radius: 999px; background: #9eafc4; }
.schedule-scroll::-webkit-scrollbar-thumb:hover { background: #71849c; }
.schedule-stage {
  position: relative;
  display: grid;
  --vr-resource-column: 260px;
  width: calc(var(--vr-resource-column, 210px) + var(--vr-timeline-width));
  min-width: 100%;
  grid-template-columns: var(--vr-resource-column, 210px) var(--vr-timeline-width);
  grid-template-rows: 46px repeat(var(--lane-count, 5), var(--vr-lane-height, 92px));
}
.time-corner, .lane-header {
  position: sticky;
  z-index: 12;
  display: flex;
  min-width: 0;
  align-items: center;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
}
.time-corner { z-index: 20; top: 0; left: 0; justify-content: center; align-items: flex-start; flex-direction: column; padding: 0 12px; border-right: 1px solid var(--vr-border-strong); border-bottom: 1px solid var(--vr-border-strong); color: var(--vr-text-muted); }
.time-corner strong { color: var(--vr-text); font-size: 11px; }
.time-corner small { margin-top: 1px; font-size: 9px; }
.lane-header { z-index: 14; left: 0; gap: 8px; padding: 8px 10px; border-right: 1px solid var(--vr-border-strong); border-bottom: 1px solid var(--vr-border); }
.lane-header.is-unassigned { background: #fff9e9; box-shadow: inset 3px 0 #d68a13; }
.lane-header-button { display: flex; width: 100%; min-width: 0; align-items: center; gap: 8px; padding: 0; border: 0; text-align: left; background: transparent; }
.driver-avatar { display: grid; width: 31px; min-width: 31px; height: 31px; place-items: center; border-radius: 10px; color: var(--vr-primary-900); background: var(--vr-primary-50); font-size: 10px; font-weight: 800; }
.driver-avatar.is-warning { color: #805112; background: var(--vr-warning-bg); }
.driver-copy { display: grid; min-width: 0; flex: 1 1 auto; gap: 2px; }
.driver-copy strong, .driver-copy small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.driver-copy strong { font-size: 11.5px; line-height: 1.25; }
.driver-copy small { color: var(--vr-text-secondary); font-size: 10px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.driver-state { display: grid; margin-left: auto; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 8px; color: var(--vr-success); background: var(--vr-success-bg); }
.driver-state svg { width: 13px; height: 13px; }
.driver-state.is-driving { color: var(--vr-info); background: var(--vr-info-bg); }
.driver-state.is-warning { color: var(--vr-warning); background: var(--vr-warning-bg); }
.driver-state.is-off { color: #66768a; background: #eef1f5; }

.time-rail, .schedule-lane {
  position: relative;
  width: var(--vr-timeline-width);
  background-color: var(--vr-surface);
  background-image:
    repeating-linear-gradient(to right, transparent 0, transparent calc(var(--vr-hour-width) / 4 - 1px), var(--vr-gridline) calc(var(--vr-hour-width) / 4 - 1px), var(--vr-gridline) calc(var(--vr-hour-width) / 4)),
    repeating-linear-gradient(to right, transparent 0, transparent calc(var(--vr-hour-width) - 1px), var(--vr-gridline-strong) calc(var(--vr-hour-width) - 1px), var(--vr-gridline-strong) var(--vr-hour-width));
}
.time-rail { position: sticky; z-index: 18; top: 0; height: 46px; border-bottom: 1px solid var(--vr-border-strong); background-color: rgba(247,249,252,.97); backdrop-filter: blur(8px); }
.time-label { position: absolute; top: 16px; color: var(--vr-text-muted); font-size: 9.5px; font-weight: 720; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.time-label:first-child { transform: none; }
.time-label:last-of-type { transform: translateX(-100%); }
.now-label { position: absolute; z-index: 3; top: 2px; padding: 2px 5px; border-radius: 5px; color: #fff; background: #d93038; font-size: 8px; font-weight: 820; transform: translateX(-50%); }
.schedule-lane { min-width: 0; height: var(--vr-lane-height, 92px); border-bottom: 1px solid var(--vr-border); }
.schedule-lane:hover { background-color: #f9fbfe; }
.schedule-lane.is-unassigned { background-color: #fffaf0; background-image: repeating-linear-gradient(135deg, rgba(197,126,12,.035) 0, rgba(197,126,12,.035) 8px, transparent 8px, transparent 16px), repeating-linear-gradient(to right, transparent 0, transparent calc(var(--vr-hour-width) / 4 - 1px), var(--vr-gridline) calc(var(--vr-hour-width) / 4 - 1px), var(--vr-gridline) calc(var(--vr-hour-width) / 4)); }
.schedule-lane::after {
  content: "";
  display: var(--now-line-display, none);
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--now-left, -10px);
  width: 1px;
  background: #e24850;
  pointer-events: none;
}

.ride-card {
  position: absolute;
  z-index: 4;
  top: 8px;
  bottom: 8px;
  left: calc(var(--start-minute) * var(--minute-px) + 4px);
  width: max(72px, calc(var(--duration-minute) * var(--minute-px) - 8px));
  min-height: 72px;
  padding: 7px 8px 8px 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ride-color) 34%, white);
  border-left: 3px solid var(--ride-color);
  border-radius: 9px;
  color: var(--vr-text);
  text-align: left;
  background: var(--ride-bg);
  box-shadow: var(--vr-shadow-xs);
  transition: box-shadow var(--vr-duration-fast), transform var(--vr-duration-fast), opacity var(--vr-duration-fast);
}
.ride-card:hover, .ride-card.is-related, .ride-card.is-focused { z-index: 8; box-shadow: 0 8px 20px rgba(30, 49, 80, 0.17); transform: translateY(-2px); }
.ride-card.is-dimmed { opacity: 0.22; }
.ride-card.is-focused { outline: 3px solid rgba(45, 114, 232, 0.24); outline-offset: 2px; }
.ride-card.ride-outbound { --ride-color: var(--vr-info); --ride-bg: var(--vr-info-bg); }
.ride-card.ride-return { --ride-color: var(--vr-success); --ride-bg: var(--vr-success-bg); }
.ride-card.ride-wait { --ride-color: var(--vr-wait); --ride-bg: var(--vr-wait-bg); }
.ride-card.ride-warning, .ride-card.ride-unassigned { --ride-color: var(--vr-warning); --ride-bg: var(--vr-warning-bg); }
.ride-card.ride-conflict { --ride-color: var(--vr-danger); --ride-bg: var(--vr-danger-bg); }
.ride-card.ride-done { --ride-color: var(--vr-done); --ride-bg: var(--vr-done-bg); opacity: 0.82; }
.ride-time { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--ride-color); font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ride-time svg { width: 12px; height: 12px; }
.ride-patient { display: block; margin-top: 2px; overflow: hidden; font-size: 11.5px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ride-route { display: block; margin-top: 2px; overflow: hidden; color: var(--vr-text-secondary); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.ride-meta { display: flex; margin-top: 4px; gap: 4px; overflow: hidden; }
.mini-badge { display: inline-flex; min-height: 20px; align-items: center; padding: 0 5px; border: 1px solid color-mix(in srgb, var(--ride-color) 25%, white); border-radius: var(--vr-radius-pill); color: var(--vr-text-secondary); background: rgba(255,255,255,0.72); font-size: 10px; font-weight: 700; white-space: nowrap; }

.schedule-footer { display: grid; width: 100%; max-width: 100%; min-width: 0; min-height: 50px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 10px; padding: 7px 10px; overflow: hidden; border-top: 1px solid var(--vr-border); background: #fbfcfe; }
.schedule-legend { display: flex; min-height: 32px; flex-wrap: wrap; align-items: center; gap: 11px; color: var(--vr-text-muted); font-size: 10px; }
.schedule-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--vr-primary-500); }
.legend-dot.type-return { background: var(--vr-success); }
.legend-dot.type-wait { background: var(--vr-wait); }
.legend-dot.type-warning { background: var(--vr-warning); }
.legend-dot.type-conflict { background: var(--vr-danger); }
.timeline-pan-controls { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: var(--vr-text-muted); font-size: 9.5px; font-weight: 700; }
.timeline-pan-controls .icon-button { width: 32px; min-width: 32px; height: 32px; background: #fff; }
.schedule-driver-filter { display: flex; min-height: 36px; align-items: center; gap: 6px; padding-left: 9px; border: 1px solid var(--vr-border); border-radius: 9px; color: var(--vr-text-muted); background: #fff; font-size: 9.5px; font-weight: 760; }
.schedule-driver-filter select { min-width: 136px; height: 34px; padding: 0 28px 0 4px; border: 0; color: var(--vr-text); background: transparent; font-size: 10.5px; font-weight: 740; }
.filter-select-row { display: grid; min-height: 66px; grid-template-columns: minmax(0,1fr) 180px; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--vr-border); }
.filter-select-row strong, .filter-select-row small { display: block; }
.filter-select-row small { margin-top: 2px; color: var(--vr-text-muted); font-size: 10px; }
.filter-select-row select { min-height: 38px; }

.inbox-tabs { display: flex; gap: 4px; padding: 9px 10px; overflow-x: auto; border-bottom: 1px solid var(--vr-border); scrollbar-width: none; }
.inbox-tabs::-webkit-scrollbar { display: none; }
.inbox-tab { min-height: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: var(--vr-radius-sm); color: var(--vr-text-muted); background: transparent; font-size: 11px; font-weight: 750; white-space: nowrap; }
.inbox-tab:hover { color: var(--vr-text); background: var(--vr-surface-soft); }
.inbox-tab.is-active { border-color: var(--vr-border); color: var(--vr-primary-900); background: var(--vr-primary-50); }
.inbox-tab span { margin-left: 4px; color: var(--vr-text-muted); font-variant-numeric: tabular-nums; }

.inbox-list { display: grid; gap: 9px; padding: 10px; overflow: auto; }
.inbox-item {
  position: relative;
  padding: 11px;
  border: 1px solid var(--vr-border);
  border-left: 3px solid var(--item-color, var(--vr-warning));
  border-radius: var(--vr-radius-md);
  background: var(--vr-surface);
  transition: border-color var(--vr-duration-fast), box-shadow var(--vr-duration-fast), transform var(--vr-duration-fast);
}
.inbox-item:hover, .inbox-item:focus-within { border-color: color-mix(in srgb, var(--item-color, var(--vr-warning)) 35%, var(--vr-border)); box-shadow: var(--vr-shadow-sm); transform: translateY(-1px); }
.inbox-item.priority-now { --item-color: var(--vr-danger); background: linear-gradient(90deg, var(--vr-danger-bg), #fff 24%); }
.inbox-item.priority-soon { --item-color: var(--vr-warning); }
.inbox-item.priority-open { --item-color: var(--vr-info); }
.item-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.item-type { display: inline-flex; align-items: center; gap: 6px; color: var(--item-color); font-size: 10px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.item-type svg { width: 14px; height: 14px; }
.urgency-badge { padding: 3px 6px; border-radius: var(--vr-radius-pill); color: var(--item-color); background: color-mix(in srgb, var(--item-color) 9%, white); font-size: 9px; font-weight: 800; }
.inbox-item h3 { margin-top: 7px; }
.item-details { display: grid; margin-top: 7px; gap: 3px; color: var(--vr-text-secondary); font-size: 11px; }
.item-route { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-reason { margin-top: 8px; padding: 7px 8px; border-radius: var(--vr-radius-sm); color: var(--vr-text-secondary); background: var(--vr-surface-subtle); font-size: 10.5px; }
.item-mira { display: flex; margin-top: 7px; align-items: flex-start; gap: 6px; color: var(--vr-mira-strong); font-size: 10.5px; }
.item-mira svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* Eingebetteter Request-Arbeitsordner. Die Request-Domain bleibt technisch
   eigenständig; dieses Dashboard ist nur ihr operativer Consumer. */
.request-folder { overflow: hidden; }
.request-folder-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border-bottom: 1px solid var(--vr-border); background: linear-gradient(90deg, #fff, #f7faff); }
.request-folder-title { display: flex; min-width: 0; align-items: center; gap: 12px; }
.request-folder-title h2 { margin-top: 2px; font-size: 17px; }
.request-folder-title p:last-child { margin-top: 3px; color: var(--vr-text-muted); font-size: 11.5px; }
.request-folder-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; color: #245fce; background: #edf4ff; box-shadow: inset 0 0 0 1px #d9e7ff; }
.request-folder-icon svg { width: 20px; height: 20px; }
.request-folder-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.request-folder-meta > strong { color: #1f4f9d; font-size: 12px; font-variant-numeric: tabular-nums; }
.request-source-badge { padding: 5px 8px; border: 1px solid #d9e7ff; border-radius: var(--vr-radius-pill); color: #2456a8; background: #f2f7ff; font-size: 10px; font-weight: 800; }
.request-source-badge.is-api { border-color: #bee7d1; color: #14623e; background: #ebf8f1; }
.request-source-badge.is-error { border-color: #f0c5c5; color: #a93131; background: #fff1f1; }
.request-folder-meta .button { min-height: 36px; }
.request-folder-meta .button svg { width: 15px; height: 15px; }
.request-folder-tabs { display: flex; gap: 4px; padding: 9px 12px; overflow-x: auto; border-bottom: 1px solid var(--vr-border); background: #fbfcfe; scrollbar-width: none; }
.request-folder-tabs::-webkit-scrollbar { display: none; }
.request-folder-tab { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; color: var(--vr-text-muted); background: transparent; font-size: 11px; font-weight: 760; white-space: nowrap; }
.request-folder-tab strong { display: grid; min-width: 20px; height: 20px; place-items: center; padding-inline: 5px; border-radius: 999px; color: #52617a; background: #eef2f7; font-size: 10px; font-variant-numeric: tabular-nums; }
.request-folder-tab:hover { color: var(--vr-text); background: #f2f6fc; }
.request-folder-tab.is-active { border-color: #cfe0fb; color: #174a9d; background: #edf4ff; }
.request-folder-tab.is-active strong { color: #fff; background: #2d72e8; }
.request-worktable-head { display: grid; grid-template-columns: 112px minmax(150px,1.25fr) minmax(170px,1.4fr) minmax(150px,1.1fr) 188px; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--vr-border); color: var(--vr-text-muted); background: #f7f9fc; font-size: 9px; font-weight: 820; letter-spacing: .035em; text-transform: uppercase; }
.request-folder-list { display: grid; min-height: 0; flex: 1; gap: 0; padding: 0 12px 10px; overflow: auto; }
.dashboard-request-card { position: relative; display: grid; min-width: 820px; min-height: 72px; grid-template-columns: 112px minmax(150px,1.25fr) minmax(170px,1.4fr) minmax(150px,1.1fr) 188px; align-items: center; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--vr-border); background: #fff; transition: background var(--vr-duration-fast); }
.dashboard-request-card:hover, .dashboard-request-card:focus-within { border-color: #b9cceb; box-shadow: var(--vr-shadow-sm); transform: translateY(-1px); }
.request-work-badge { padding: 4px 7px; border-radius: 999px; color: #2456a8; background: #edf4ff; font-size: 9.5px; font-weight: 820; }
.request-work-badge.is-question_open { color: #7a4f0e; background: #fff4d8; }
.request-work-badge.is-assessment_ready { color: #176448; background: #eaf8f1; }
.request-work-badge.is-done { color: #596779; background: #f0f3f7; }
.request-card-ref { display: block; margin-top: 4px; color: var(--vr-text-muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.request-card-person strong, .request-card-person small { display: block; }
.request-card-person strong { font-size: 11.5px; }
.request-card-person small { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-card-schedule { color: #244e92; }
.request-card-schedule strong, .request-card-schedule span { display: block; }
.request-card-schedule strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.request-card-schedule span { margin-top: 2px; font-size: 9.5px; }
.request-card-trip { display: grid; align-content: center; justify-items: start; gap: 5px; min-width: 0; }
.request-card-route { overflow: hidden; color: var(--vr-text-secondary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.request-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.request-card-tags span { padding: 3px 6px; border-radius: 7px; color: #46566d; background: #f3f6fa; font-size: 9.5px; font-weight: 700; }
.request-card-tags .is-warning { color: #8a5a0f; background: #fff4dc; }
.request-card-tags .is-danger { color: #a43b3b; background: #fff0f0; }
.request-card-actions { display: flex; justify-content: flex-end; gap: 6px; }
.request-card-actions .button { min-height: 36px; padding-inline: 8px; font-size: 10px; }
.request-folder-empty { display: grid; min-height: 150px; grid-column: 1 / -1; place-items: center; padding: 20px; color: var(--vr-text-muted); text-align: center; }
.request-folder-empty strong { display: block; color: var(--vr-text); font-size: 14px; }
.request-folder-empty p { max-width: 520px; margin-top: 5px; font-size: 11.5px; }
.request-folder-empty .button { margin-top: 10px; }

.mira-workbox { padding: 16px; border-color: #ddd8f5; background: linear-gradient(145deg,#fbfaff,#f5faff); }
.mira-workbox-head { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 9px; }
.mira-workbox-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #fff; background: var(--vr-gradient-mira); }
.mira-workbox-avatar svg { width: 19px; height: 19px; }
.mira-workbox-head h2 { margin-top: 1px; font-size: 14px; }
.mira-workbox-state { display: inline-flex; align-items: center; gap: 4px; color: var(--vr-text-muted); font-size: 9px; font-weight: 760; }
.mira-workbox-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--vr-success); }
.mira-workbox > p { margin: 13px 0; color: var(--vr-text-secondary); font-size: 11px; line-height: 1.5; }
.mira-workbox-prompts { display: grid; min-height: 0; margin-bottom: 12px; gap: 7px; }
.mira-workbox-prompts button { min-height: 42px; padding: 8px 11px; border: 1px solid #d9d3f5; border-radius: 10px; color: var(--vr-mira-strong); background: #fff; font-size: 10.5px; font-weight: 740; text-align: left; }
.mira-workbox-prompts button:hover { border-color: var(--vr-mira); background: var(--vr-mira-bg); }
.mira-workbox > .button-block { min-height: 44px; margin-top: auto; }
.mira-workbox .button svg { width: 15px; height: 15px; }

.request-detail-content { display: grid; gap: 12px; }
.request-detail-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid #dbe6f6; border-radius: 10px; color: #2d5187; background: #f4f8fe; font-size: 11px; }
.request-detail-hero { padding: 14px; border: 1px solid var(--vr-border); border-radius: 14px; background: linear-gradient(145deg, #f8fbff, #fff); }
.request-detail-hero h3 { margin-top: 4px; font-size: 18px; }
.request-detail-hero p { margin-top: 3px; color: var(--vr-text-muted); font-size: 11.5px; }
.request-detail-time { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--vr-border); }
.request-detail-time strong { color: #1f559f; font-size: 15px; font-variant-numeric: tabular-nums; }
.request-route-steps { display: grid; gap: 9px; }
.request-route-step { display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 8px; }
.request-route-step i { width: 10px; height: 10px; margin-top: 4px; border: 2px solid #2d72e8; border-radius: 50%; }
.request-route-step:last-child i { border-color: #24a06b; }
.request-route-step strong, .request-route-step small { display: block; }
.request-detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.request-detail-facts article { padding: 10px; border: 1px solid var(--vr-border); border-radius: 10px; }
.request-detail-facts small, .request-detail-facts strong { display: block; }
.request-detail-facts strong { margin-top: 3px; font-size: 12px; }
.request-award-panel { display: grid; gap: 9px; padding: 13px; border: 1px solid #c7dbf6; border-radius: 13px; background: linear-gradient(145deg, #f2f7ff, #fff); box-shadow: 0 8px 24px rgba(38, 92, 166, .08); }
.request-award-panel h3 { font-size: 14px; }
.request-award-panel > p:not(.section-kicker) { color: var(--vr-text-secondary); font-size: 11px; line-height: 1.55; }
.request-award-panel .button { min-height: 42px; justify-self: stretch; }
.request-award-panel.is-locked { border-color: #d9e0ea; background: #f7f9fc; box-shadow: none; }
.request-award-panel.is-impact { border-color: #aed2ff; background: linear-gradient(145deg, #edf6ff, #fff); }
.request-award-panel.is-confirm { border-color: #82b5f6; background: linear-gradient(145deg, #e8f3ff, #fff); }
.request-award-panel.is-success { border-color: #9ed7ba; background: linear-gradient(145deg, #eaf8f1, #fff); }
.request-award-panel.is-error { border-color: #e9b0b0; background: #fff5f5; }
.request-award-guard, .request-award-refs { display: flex; justify-content: space-between; gap: 8px; padding: 8px 9px; border: 1px solid rgba(56, 119, 203, .18); border-radius: 9px; background: rgba(255,255,255,.8); font-size: 10.5px; }
.request-award-guard span, .request-award-refs span { color: var(--vr-text-secondary); }
.request-award-refs { flex-wrap: wrap; }
.request-award-refs code { color: #1758ae; font-size: 10px; }
.request-award-confirm-actions { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8px; }
.request-decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.request-award-panel label { display: grid; gap: 6px; color: var(--vr-text-secondary); font-size: 11px; font-weight: 700; }
.request-award-panel select { width: 100%; min-height: 42px; padding: 0 38px 0 12px; border: 1px solid var(--vr-border); border-radius: 9px; background: #fff; color: var(--vr-text); font: inherit; }
.request-award-error { padding: 7px 8px; border-radius: 8px; color: #9e2d2d !important; background: #ffe8e8; font-weight: 700; }
.request-guard { padding: 11px; border: 1px solid #cfe3f8; border-radius: 11px; background: #f3f8ff; }
.request-guard.is-feasible { border-color: #bee7d1; background: #edf9f3; }
.request-guard.is-feasible_with_warnings, .request-guard.is-insufficient_data { border-color: #ecd59d; background: #fff8e8; }
.request-guard.is-blocked { border-color: #efc4c4; background: #fff2f2; }
.request-guard h3 { margin-top: 2px; }
.request-guard p { margin-top: 5px; color: var(--vr-text-secondary); font-size: 11px; }
.request-reason-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.request-reason-list code { padding: 3px 5px; border-radius: 6px; color: #44536a; background: rgba(255,255,255,.74); font-size: 9px; }
.request-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 2px; }
.request-detail-actions .button:last-child { grid-column: 1 / -1; }

.drawer.return-review-drawer { width: min(620px, 100vw); }
.return-review-content { display: grid; gap: 12px; }
.return-review-status { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid #dbe6f6; border-radius: 11px; color: #35577e; background: #f4f8fe; }
.return-review-status small { font-size: 11px; font-weight: 700; }
.return-review-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; border: 1px solid var(--vr-border); border-radius: 14px; background: linear-gradient(145deg, #f7faff, #fff); }
.return-driver-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.return-driver-identity .driver-avatar { width: 42px; min-width: 42px; height: 42px; border-radius: 13px; font-size: 12px; }
.return-driver-identity h3 { margin-top: 2px; font-size: 16px; }
.return-driver-identity small { color: var(--vr-text-muted); font-size: 11px; }
.return-requested-time { flex: 0 0 auto; text-align: right; }
.return-requested-time small, .return-requested-time strong { display: block; }
.return-requested-time small { color: var(--vr-text-muted); font-size: 10.5px; }
.return-requested-time strong { margin-top: 3px; color: var(--vr-primary-800); font-size: 17px; font-variant-numeric: tabular-nums; }
.return-review-route { display: grid; gap: 9px; padding: 13px 14px; border: 1px solid var(--vr-border); border-radius: 13px; background: #fff; }
.return-review-route > div { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 9px; }
.return-review-route i { width: 10px; height: 10px; margin-top: 4px; border: 2px solid var(--vr-primary-600); border-radius: 50%; }
.return-review-route > div:last-child i { border-color: var(--vr-success); }
.return-review-route small, .return-review-route strong { display: block; }
.return-review-route small { color: var(--vr-text-muted); font-size: 10px; font-weight: 750; }
.return-review-route strong { margin-top: 2px; font-size: 12px; line-height: 1.4; }
.return-driver-note { padding: 12px 13px; border-radius: 12px; background: var(--vr-surface-subtle); }
.return-driver-note strong { font-size: 11px; }
.return-driver-note p { margin-top: 4px; color: var(--vr-text-secondary); font-size: 11.5px; line-height: 1.5; }
.return-review-boundary, .return-review-locked, .return-review-error { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border-radius: 12px; }
.return-review-boundary { border: 1px solid #cfe0f7; color: #274d7d; background: #f2f7fe; }
.return-review-boundary svg, .return-review-locked svg, .return-review-error svg { width: 18px; height: 18px; flex: 0 0 auto; }
.return-review-boundary strong, .return-review-boundary small, .return-review-locked strong, .return-review-locked small { display: block; }
.return-review-boundary strong, .return-review-locked strong { font-size: 11.5px; }
.return-review-boundary small, .return-review-locked small { margin-top: 2px; font-size: 10.5px; line-height: 1.45; }
.return-review-form, .return-review-impact { display: grid; gap: 12px; padding: 14px; border: 1px solid #c9dcf5; border-radius: 14px; background: linear-gradient(145deg, #f6f9ff, #fff); box-shadow: 0 8px 26px rgba(27, 70, 127, .07); }
.return-decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; gap: 8px; border: 0; }
.return-decision-grid legend { grid-column: 1 / -1; margin-bottom: 1px; font-size: 11px; font-weight: 800; }
.return-decision-grid label { display: flex; min-height: 76px; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--vr-border); border-radius: 11px; cursor: pointer; background: #fff; }
.return-decision-grid label:has(input:checked) { border-color: var(--vr-primary-600); background: var(--vr-primary-50); box-shadow: inset 0 0 0 1px var(--vr-primary-600); }
.return-decision-grid input { width: 17px; min-width: 17px; min-height: 17px; margin-top: 1px; accent-color: var(--vr-primary-600); }
.return-decision-grid strong, .return-decision-grid small { display: block; }
.return-decision-grid strong { font-size: 11.5px; }
.return-decision-grid small { margin-top: 3px; color: var(--vr-text-muted); font-size: 10px; line-height: 1.35; }
.return-review-field { display: grid; gap: 5px; }
.return-review-field label { display: grid; gap: 5px; font-size: 11px; font-weight: 780; }
.return-review-field label > span { color: var(--vr-text-muted); font-weight: 600; }
.return-review-field input, .return-review-field select, .return-review-field textarea { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--vr-border-strong); border-radius: 10px; color: var(--vr-text); background: #fff; font: inherit; }
.return-review-field textarea { min-height: 78px; resize: vertical; }
.return-review-field > small { color: var(--vr-text-muted); font-size: 10.5px; line-height: 1.4; }
.return-warning-check { display: flex; min-height: 52px; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid #ead79d; border-radius: 11px; background: #fff9e8; cursor: pointer; }
.return-warning-check input { width: 18px; min-width: 18px; min-height: 18px; margin-top: 1px; accent-color: var(--vr-primary-600); }
.return-warning-check strong, .return-warning-check small { display: block; }
.return-warning-check strong { font-size: 11.5px; }
.return-warning-check small { margin-top: 2px; color: #74551e; font-size: 10.5px; line-height: 1.4; }
.return-review-error { color: #9e2d2d; background: #ffecec; font-size: 11px; font-weight: 700; }
.return-review-locked { border: 1px solid #d8e0ea; color: #4e6076; background: #f5f7fa; }
.return-review-impact h3, .return-review-result h3 { font-size: 16px; }
.return-review-impact > p:not(.section-kicker), .return-review-result p:not(.section-kicker) { color: var(--vr-text-secondary); font-size: 11.5px; line-height: 1.55; }
.return-route-summary { display: grid; gap: 10px; padding: 12px; border: 1px solid #b8d5f7; border-radius: 12px; background: #eef6ff; }
.return-route-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.return-route-heading > span:first-child { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--vr-primary-600); }
.return-route-heading svg { width: 17px; height: 17px; }
.return-route-heading strong, .return-route-heading small { display: block; }
.return-route-heading strong { font-size: 11.5px; }
.return-route-heading small { margin-top: 2px; color: var(--vr-text-secondary); font-size: 10.5px; }
.return-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.return-chain article, .return-review-impact-grid article { padding: 9px; border: 1px solid rgba(45, 114, 232, .17); border-radius: 9px; background: rgba(255, 255, 255, .86); }
.return-chain small, .return-chain strong, .return-review-impact-grid small, .return-review-impact-grid strong { display: block; }
.return-chain small, .return-review-impact-grid small { color: var(--vr-text-muted); font-size: 9.5px; line-height: 1.3; }
.return-chain strong, .return-review-impact-grid strong { margin-top: 4px; font-size: 11px; line-height: 1.35; }
.return-chain-copy { color: #35577e; font-size: 10.5px; font-weight: 650; line-height: 1.5; }
.return-review-impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.return-review-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; }
.return-review-actions .button { min-height: 44px; }
.button-danger { border-color: var(--vr-danger-700); color: #fff; background: linear-gradient(135deg, var(--vr-danger), var(--vr-danger-700)); }
.button-danger:hover:not(:disabled) { border-color: #8f1f1f; background: linear-gradient(135deg, var(--vr-danger-700), #8f1f1f); }
.return-review-result { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 15px; border: 1px solid #a7d7bd; border-radius: 14px; background: #edf9f3; }
.return-review-result.is-preview { border-color: #e2cc8e; background: #fff9e8; }
.return-review-result > svg { width: 24px; height: 24px; color: var(--vr-success); }
.return-review-result.is-preview > svg { color: #936813; }
.return-review-result .button { grid-column: 2; justify-self: start; margin-top: 2px; }
.item-actions { display: flex; margin-top: 9px; align-items: center; gap: 6px; }
.item-actions .button { min-height: 32px; padding-inline: 10px; font-size: 10.5px; }
.tablet-inbox-action { display: none; }

.empty-state { display: grid; min-height: 160px; place-items: center; padding: 24px; color: var(--vr-text-secondary); text-align: center; }
.empty-state svg { width: 32px; height: 32px; margin: 0 auto 8px; color: var(--vr-text-muted); }
.empty-state p { margin-top: 4px; font-size: 12px; }

.driver-summary-list, .day-summary-list { display: grid; gap: 8px; }
.driver-summary-card, .day-summary-row { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-md); background: var(--vr-surface); }
.driver-summary-card > div, .day-summary-row > div { min-width: 0; flex: 1; }
.driver-summary-card strong, .driver-summary-card small, .day-summary-row strong, .day-summary-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-time { min-width: 42px; color: var(--vr-primary-800); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }

.search-palette { top: 12vh; left: 50%; width: min(680px, calc(100vw - 32px)); transform: translateX(-50%); }
.search-input-wrap { display: flex; min-height: 62px; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--vr-border); }
.search-input-wrap > svg { color: var(--vr-text-muted); }
.search-input-wrap input { min-height: 44px; flex: 1; padding: 0; border: 0; box-shadow: none; font-size: 15px; }
.search-input-wrap input:focus-visible { box-shadow: none; }
.search-results { max-height: min(62vh, 520px); padding: 9px; overflow-y: auto; }
.result-group + .result-group { margin-top: 8px; }
.result-group-title { padding: 6px 8px; color: var(--vr-text-muted); font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.search-result { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: var(--vr-radius-md); text-align: left; background: transparent; }
.search-result:hover, .search-result.is-selected { background: var(--vr-primary-50); }
.search-result-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: var(--vr-primary-800); background: var(--vr-primary-100); }
.search-result-icon svg { width: 16px; height: 16px; }
.search-result > span:nth-child(2) { min-width: 0; flex: 1; }
.search-result strong, .search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result strong { font-size: 12px; }
.palette-footer { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 5px; border-top: 1px solid var(--vr-border); color: var(--vr-text-muted); font-size: 10px; }

.filter-popover { top: 84px; right: 210px; width: min(390px, calc(100vw - 24px)); padding: 14px; }
.filter-popover fieldset { display: grid; margin: 12px 0 0; padding: 0; gap: 5px; border: 0; }
.filter-popover legend { margin-bottom: 5px; color: var(--vr-text-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.check-row { display: flex; min-height: 52px; align-items: center; gap: 10px; padding: 7px; border-radius: var(--vr-radius-md); }
.check-row:hover { background: var(--vr-surface-subtle); }
.check-row input { width: 18px; min-height: 18px; flex: 0 0 auto; accent-color: var(--vr-primary-600); }
.check-row span { min-width: 0; }
.check-row strong, .check-row small { display: block; }
.check-row strong { font-size: 12px; }
.form-actions { display: flex; margin-top: 14px; align-items: center; justify-content: flex-end; gap: 8px; }

.drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(390px, 100vw);
  height: 100dvh;
  overflow: auto;
  border-left: 1px solid var(--vr-border);
  background: var(--vr-surface);
  box-shadow: var(--vr-shadow-md);
}
.drawer-wide { width: min(560px, 100vw); }
.drawer-header { position: sticky; z-index: 2; top: 0; min-height: 68px; padding: 12px 16px; border-bottom: 1px solid var(--vr-border); background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); }
.drawer-content { padding: 16px; }
.drawer-notice { display: flex; margin: 14px 16px 0; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid #edd79d; border-radius: var(--vr-radius-md); color: #6e4c16; background: var(--vr-warning-bg); font-size: 11px; }
.drawer-notice svg { width: 17px; height: 17px; flex: 0 0 auto; }
.detail-hero { padding: 14px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-lg); background: var(--vr-surface-subtle); }
.detail-time { color: var(--vr-primary-800); font-size: 12px; font-weight: 800; }
.detail-hero h3 { margin-top: 5px; font-size: 17px; }
.detail-route { display: grid; margin-top: 12px; gap: 8px; }
.route-stop { display: grid; grid-template-columns: 10px 1fr; gap: 8px; }
.route-stop i { width: 8px; height: 8px; margin-top: 5px; border: 2px solid var(--vr-primary-600); border-radius: 50%; }
.route-stop:last-child i { border-color: var(--vr-success); }
.route-stop strong, .route-stop small { display: block; }
.detail-grid { display: grid; margin-top: 12px; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-field { padding: 10px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-md); }
.detail-field span { display: block; color: var(--vr-text-muted); font-size: 10px; }
.detail-field strong { display: block; margin-top: 3px; font-size: 12px; }
.detail-section { margin-top: 16px; }
.detail-section h3 { margin-bottom: 8px; }
.audit-row { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--vr-border); color: var(--vr-text-secondary); font-size: 10.5px; }
.audit-row time { min-width: 40px; color: var(--vr-text-muted); font-variant-numeric: tabular-nums; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 11px; font-weight: 750; }
.field-full { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; padding: 9px 10px; border-radius: var(--vr-radius-md); color: var(--vr-text-secondary); background: var(--vr-surface-soft); font-size: 11px; }
.form-status.is-saving { color: var(--vr-primary-900); background: var(--vr-primary-50); }
.form-status.is-draft { color: #745013; background: var(--vr-warning-bg); }

/* Gemeinsamer Buchungsstandard: Dashboard, Kalender und spätere Einstiege
   verwenden dieselbe sichtbare Feld- und Prüfstruktur. */
.booking-drawer { top: 16px; right: 16px; bottom: 16px; width: min(1040px, calc(100vw - var(--vr-sidebar) - 32px)); height: auto; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--vr-border); border-radius: 18px; }
.booking-header { position: relative; min-height: 82px; padding: 16px 20px; flex: 0 0 auto; background: linear-gradient(180deg,#fff 0%,#fbfcff 100%); }
.booking-header > div { min-width: 0; }
.booking-header h2 { margin: 2px 0 3px; font-size: 22px; }
.booking-header p:not(.section-kicker) { margin: 0; color: var(--vr-text-secondary); font-size: 12px; font-weight: 500; }
.booking-form { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; overflow: hidden; }
.booking-edit-body { min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0,1fr) 294px; overflow: auto; }
.booking-main { min-width: 0; padding: 14px 18px 20px; display: grid; gap: 11px; }
.booking-section { padding: 13px 14px 14px; display: grid; gap: 11px; border: 1px solid var(--vr-border); border-radius: 13px; background: #fff; box-shadow: var(--vr-shadow-xs); }
.booking-section > header { display: flex; align-items: center; gap: 9px; }
.booking-section > header > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--vr-primary-800); background: var(--vr-primary-100); font-size: 11px; font-weight: 850; }
.booking-section h3, .booking-summary h3, .booking-review h3 { margin: 0; color: var(--vr-text); font-size: 15px; line-height: 1.25; }
.booking-section header p, .review-heading p { margin: 2px 0 0; color: var(--vr-text-muted); font-size: 11px; }
.booking-section label { display: grid; gap: 5px; color: var(--vr-text-secondary); font-size: 11px; font-weight: 760; }
.booking-section label > small { color: var(--vr-text-muted); font-size: 10px; font-weight: 500; }
.booking-section input:not([type="radio"]):not([type="checkbox"]), .booking-section select, .booking-section textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--vr-border-strong); border-radius: 9px; color: var(--vr-text); background: #fff; font-size: 12px; font-weight: 560; }
.booking-section textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
.booking-section input:focus-visible, .booking-section select:focus-visible, .booking-section textarea:focus-visible { border-color: var(--vr-primary-500); }
.choice-segment, .return-choice { margin: 0; padding: 3px; display: grid; gap: 4px; border: 1px solid var(--vr-border); border-radius: 11px; background: var(--vr-surface-subtle); }
.choice-segment { grid-template-columns: 1fr 1fr; }
.choice-segment.recurrence-choice { grid-template-columns: repeat(2,1fr); }
.return-choice { grid-template-columns: repeat(3,1fr); }
.choice-segment label, .return-choice label { min-height: 48px; padding: 8px 10px; position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.choice-segment label:has(input:checked), .return-choice label:has(input:checked) { color: var(--vr-primary-800); border-color: #a8d6c4; background: #eff9f5; box-shadow: var(--vr-shadow-xs); }
.choice-segment input, .return-choice input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--vr-primary-700); }
.choice-segment span { display: grid; gap: 2px; font-size: 12px; }
.choice-segment small { color: var(--vr-text-muted); font-size: 9.5px; font-weight: 520; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-with-action { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; }
.form-with-action .button { min-height: 40px; white-space: nowrap; }
.inline-create { padding: 11px; display: grid; gap: 9px; border: 1px dashed #a8c2e8; border-radius: 11px; background: #f7faff; }
.inline-create[hidden] { display: none; }
.inline-create-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inline-create-head > div { display: grid; gap: 2px; }
.inline-create-head strong { font-size: 12px; }
.inline-create-head small { color: var(--vr-text-muted); font-size: 10px; }
.facility-fields { display: grid; gap: 9px; }
.patient-autofill { min-height: 0; }
.patient-autofill:not(:empty) { padding: 9px 10px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; border: 1px solid #cfe2da; border-radius: 10px; background: var(--vr-primary-50); }
.patient-autofill span { min-width: 0; display: grid; gap: 2px; }
.patient-autofill small { color: var(--vr-text-muted); font-size: 9px; }
.patient-autofill strong { overflow: hidden; color: var(--vr-text-secondary); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.field-provenance { margin: -4px 0 0; color: var(--vr-text-muted); font-size: 9.5px; }
.recurrence-controller { display: grid; gap: 9px; }
.recurrence-default-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; gap: 8px; }
.booking-section .recurrence-default-choice { min-height: 48px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid #a8d6c4; border-radius: 10px; color: var(--vr-primary-800); background: #eff9f5; cursor: pointer; }
.recurrence-default-choice input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--vr-primary-700); }
.recurrence-default-choice span { display: grid; gap: 2px; }
.recurrence-default-choice strong { font-size: 11.5px; }
.recurrence-default-choice small { color: var(--vr-text-muted); font-size: 9.5px; font-weight: 520; }
.recurrence-toggle { min-height: 48px; white-space: nowrap; }
.recurrence-options { padding: 9px; display: grid; gap: 7px; border: 1px solid #cbdcf3; border-radius: 10px; background: #f7faff; }
.recurrence-options[hidden] { display: none; }
.recurrence-options > p { margin: 0; color: var(--vr-text-secondary); font-size: 10.5px; font-weight: 800; }
.weekday-picker { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7,minmax(44px,1fr)); gap: 6px; border: 0; }
.weekday-picker[hidden], #booking-series-end-label[hidden] { display: none; }
.weekday-picker legend { margin-bottom: 6px; color: var(--vr-text-secondary); font-size: 10.5px; font-weight: 760; }
.weekday-picker label { min-height: 44px; display: grid; place-items: center; position: relative; border: 1px solid var(--vr-border); border-radius: 9px; background: var(--vr-surface-subtle); cursor: pointer; }
.weekday-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.weekday-picker label:has(input:checked) { color: #fff; border-color: var(--vr-primary-700); background: var(--vr-primary-700); box-shadow: var(--vr-shadow-xs); }
.weekday-picker span { font-size: 11px; font-weight: 820; }
.recurrence-summary { min-height: 54px; padding: 10px 11px; display: grid; align-content: center; gap: 3px; border: 1px solid #cbdcf3; border-radius: 10px; background: #f5f9ff; }
.recurrence-summary strong { color: var(--vr-primary-900); font-size: 11.5px; }
.recurrence-summary small { color: var(--vr-text-secondary); font-size: 10px; line-height: 1.4; }
.return-details { display: grid; gap: 9px; }
.return-details[hidden], #return-route-fields[hidden] { display: none; }
.return-route-default { padding: 9px 10px; display: grid; gap: 2px; border: 1px solid #cbdcf3; border-radius: 10px; background: #f7faff; }
.return-route-default span { color: var(--vr-text-muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.return-route-default strong { color: var(--vr-text-secondary); font-size: 11px; line-height: 1.35; }
.return-route-default small { color: var(--vr-text-muted); font-size: 9.5px; }
.route-time-estimate { min-height: 70px; padding: 9px 10px; display: grid; align-content: center; gap: 2px; border: 1px solid #cbdcf3; border-radius: 10px; background: #f7faff; }
.route-time-estimate span { color: var(--vr-primary-700); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.route-time-estimate strong { color: var(--vr-text-secondary); font-size: 11px; line-height: 1.35; }
.route-time-estimate small { color: var(--vr-text-muted); font-size: 9.5px; line-height: 1.4; }
.booking-section .check-row { min-height: 48px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--vr-border); border-radius: 10px; background: var(--vr-surface-subtle); cursor: pointer; }
.booking-section .check-row input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--vr-primary-700); }
.booking-section .check-row span { display: grid; gap: 2px; }
.booking-section .check-row strong { color: var(--vr-text-secondary); font-size: 11px; }
.booking-section .check-row small { color: var(--vr-text-muted); font-size: 9.5px; font-weight: 500; }
.booking-summary { padding: 18px 16px; position: sticky; top: 0; align-self: start; display: grid; gap: 10px; border-left: 1px solid var(--vr-border); background: #f7f9fc; }
#booking-live-summary { display: grid; gap: 7px; }
.summary-block { padding: 9px 10px; display: grid; gap: 3px; border: 1px solid var(--vr-border); border-radius: 10px; background: #fff; }
.summary-block > span { color: var(--vr-text-muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.summary-block strong { color: var(--vr-text); font-size: 11.5px; line-height: 1.35; }
.summary-block small { color: var(--vr-text-secondary); font-size: 10px; line-height: 1.4; }
.summary-safety { padding: 9px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #d6d0f5; border-radius: 10px; color: #4e4697; background: var(--vr-mira-bg); }
.summary-safety svg { width: 16px; height: 16px; }
.summary-safety span { display: grid; }
.summary-safety strong { font-size: 10.5px; }
.summary-safety small { font-size: 9px; }
.booking-notice { margin: 0; }
.booking-footer { min-height: 64px; padding: 10px 18px; flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--vr-border); background: #fff; }
.booking-footer[hidden] { display: none; }
.booking-review { min-height: 0; flex: 1 1 auto; padding: 18px; overflow: auto; display: grid; align-content: start; gap: 14px; }
.booking-review[hidden] { display: none; }
.review-heading { display: flex; align-items: center; gap: 10px; }
.review-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--vr-success); background: var(--vr-success-bg); }
.review-icon svg { width: 20px; height: 20px; }
.booking-review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.review-card { padding: 12px; display: grid; gap: 7px; border: 1px solid var(--vr-border); border-radius: 12px; background: var(--vr-surface-subtle); }
.review-card h4 { margin: 0; font-size: 12px; }
.review-card dl { margin: 0; display: grid; gap: 5px; }
.review-card dl > div { display: grid; grid-template-columns: 98px minmax(0,1fr); gap: 8px; }
.review-card dt { color: var(--vr-text-muted); font-size: 9.5px; }
.review-card dd { margin: 0; color: var(--vr-text-secondary); font-size: 10.5px; font-weight: 650; overflow-wrap: anywhere; }
.review-scope-note { margin: 2px 0 0; padding-top: 7px; border-top: 1px solid var(--vr-border); color: var(--vr-text-muted); font-size: 9.5px; line-height: 1.45; }
.booking-review code { padding: 2px 4px; border-radius: 5px; color: var(--vr-primary-800); background: var(--vr-primary-50); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }

.mira-panel {
  position: fixed;
  z-index: 91;
  top: var(--vr-topbar);
  right: 0;
  bottom: 0;
  display: flex;
  width: min(440px, calc(100vw - var(--vr-sidebar)));
  max-height: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d7d2f3;
  border-right: 0;
  border-bottom: 0;
  border-radius: var(--vr-radius-xl) 0 0 0;
  background: var(--vr-surface);
  box-shadow: var(--vr-shadow-mira);
}
.mira-header { display: flex; min-height: 66px; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid #e2def5; background: linear-gradient(135deg, #f7f5ff, #f3fbfa); }
.mira-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #fff; background: var(--vr-gradient-mira); }
.mira-avatar svg { width: 19px; height: 19px; }
.mira-header > div:nth-child(2) { min-width: 0; flex: 1; }
.mira-state { display: inline-flex; align-items: center; gap: 5px; color: var(--vr-text-muted); font-size: 10.5px; font-weight: 700; }
.mira-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--vr-warning); }
.mira-content { min-height: 0; padding: 14px; overflow-y: auto; display: grid; align-content: start; gap: 10px; }
.mira-principle { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border: 1px solid #d8e6e0; border-radius: var(--vr-radius-md); color: var(--vr-text-secondary); background: #f4faf7; }
.mira-principle-icon { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--vr-success); background: var(--vr-success-bg); }
.mira-principle-icon svg { width: 15px; height: 15px; }
.mira-principle strong, .mira-principle small { display: block; }
.mira-principle strong { color: var(--vr-text); font-size: 11.5px; }
.mira-principle small { margin-top: 2px; font-size: 10.5px; line-height: 1.45; }
.mira-quick-prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.mira-quick-prompts button { min-height: 34px; padding: 6px 9px; border: 1px solid #d8d2f4; border-radius: 999px; color: var(--vr-mira-strong); background: #fbfaff; font-size: 10px; font-weight: 760; cursor: pointer; }
.mira-quick-prompts button:hover { border-color: var(--vr-mira); background: var(--vr-mira-bg); }
.mira-thread { max-height: 250px; padding: 3px 1px; display: grid; gap: 8px; overflow-y: auto; scrollbar-gutter: stable; }
.mira-chat-message { width: min(94%,360px); padding: 10px 11px; display: grid; gap: 5px; border: 1px solid #ddd7f6; border-radius: 13px 13px 13px 4px; color: var(--vr-text-secondary); background: #fbfaff; }
.mira-chat-message.is-user { justify-self: end; border-color: #bcd6f4; border-radius: 13px 13px 4px 13px; background: #f1f7ff; }
.mira-message-author { color: var(--vr-text-muted); font-size: 9px; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
.mira-chat-message > strong { color: var(--vr-text); font-size: 11.5px; }
.mira-chat-message p { margin: 0; font-size: 11px; line-height: 1.5; }
.mira-chat-message ul { margin: 1px 0 0; padding: 0; display: grid; gap: 4px; list-style: none; }
.mira-chat-message li { display: flex; align-items: flex-start; gap: 5px; font-size: 10px; }
.mira-chat-message li svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--vr-success); }
.mira-chat-message .button { width: max-content; min-height: 34px; margin-top: 2px; font-size: 10.5px; }
.mira-typing { padding: 0 14px 8px; display: flex; align-items: center; gap: 4px; color: var(--vr-text-muted); background: var(--vr-surface); }
.mira-typing[hidden] { display: none; }
.mira-typing > span { width: 6px; height: 6px; border-radius: 50%; background: var(--vr-mira); animation: mira-pulse 1.1s infinite ease-in-out; }
.mira-typing > span:nth-child(2) { animation-delay: .14s; }
.mira-typing > span:nth-child(3) { animation-delay: .28s; }
.mira-typing small { margin-left: 4px; font-size: 9.5px; }
@keyframes mira-pulse { 0%, 65%, 100% { opacity: .35; transform: translateY(0); } 32% { opacity: 1; transform: translateY(-2px); } }
.mira-stale { display: grid; margin-top: 10px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid #eccd78; border-radius: var(--vr-radius-md); color: #704b0e; background: var(--vr-warning-bg); }
.mira-stale > svg { width: 18px; height: 18px; }
.mira-stale strong, .mira-stale small { display: block; }
.mira-stale strong { font-size: 11px; }
.mira-stale small { margin-top: 2px; font-size: 10px; }
.mira-stale .button { min-height: 34px; padding-inline: 9px; font-size: 10.5px; }
.mira-message { margin-top: 10px; padding: 11px 12px; border-radius: 12px 12px 12px 3px; color: var(--vr-text-secondary); background: var(--vr-mira-bg); font-size: 12px; line-height: 1.5; }
.mira-suggestion { margin-top: 10px; padding: 12px; border: 1px solid #ddd7f6; border-radius: var(--vr-radius-lg); background: #fcfbff; }
.suggestion-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--vr-mira-strong); font-size: 10px; font-weight: 800; }
.suggestion-status span { padding: 4px 7px; border-radius: var(--vr-radius-pill); background: var(--vr-mira-bg); }
.suggestion-status small { color: var(--vr-text-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9.5px; }
.suggestion-heading { display: flex; align-items: flex-start; gap: 8px; }
.suggestion-heading > svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--vr-mira); }
.suggestion-heading strong, .suggestion-heading small { display: block; }
.context-chips { display: flex; margin-top: 9px; flex-wrap: wrap; gap: 5px; }
.context-chips span { padding: 4px 7px; border-radius: var(--vr-radius-pill); color: var(--vr-text-secondary); background: var(--vr-surface-soft); font-size: 10px; font-weight: 700; }
.context-chips .chip-warning { color: #765014; background: var(--vr-warning-bg); }
.mira-suggestion > p { margin-top: 9px; color: var(--vr-text-secondary); font-size: 11.5px; line-height: 1.5; }
.mira-suggestion .suggestion-source { color: var(--vr-text-muted); font-size: 10px; }
.suggestion-source code { color: var(--vr-text-secondary); font-size: inherit; }
.mira-actions { display: flex; margin-top: 10px; justify-content: flex-end; gap: 6px; }
.mira-actions .button { min-height: 36px; padding-inline: 10px; font-size: 11px; }
.mira-review { margin-top: 10px; padding: 12px; border: 1px solid #d9d4ef; border-radius: var(--vr-radius-md); background: var(--vr-mira-bg); }
.review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.review-heading strong, .step-label { display: block; }
.step-label { margin-bottom: 2px; color: var(--vr-text-muted); font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
.validity-badge { padding: 4px 7px; border-radius: var(--vr-radius-pill); color: var(--vr-success); background: var(--vr-success-bg); font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.mira-check-list { display: grid; margin-top: 10px; gap: 7px; }
.mira-check-list > div { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 1px solid rgba(103,87,207,0.12); border-radius: var(--vr-radius-sm); background: rgba(255,255,255,0.72); }
.mira-check-list svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--vr-success); }
.mira-check-list strong, .mira-check-list small { display: block; }
.mira-check-list strong { font-size: 10.5px; }
.mira-check-list small { margin-top: 2px; color: var(--vr-text-muted); font-size: 10px; line-height: 1.4; }
.mira-assumptions { margin-top: 9px; border-top: 1px solid rgba(103,87,207,0.16); border-bottom: 1px solid rgba(103,87,207,0.16); }
.mira-assumptions summary { min-height: 38px; padding: 10px 2px; cursor: pointer; color: var(--vr-text-secondary); font-size: 10.5px; font-weight: 800; }
.mira-assumptions ul { margin: 0 0 10px; padding-left: 18px; color: var(--vr-text-secondary); font-size: 10.5px; line-height: 1.5; }
.inline-warning { margin: 10px 0; color: #765014; font-size: 10.5px; line-height: 1.45; }
.mira-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #e2def5; background: var(--vr-surface); }
.mira-input input { min-height: 40px; flex: 1; }
.mira-input .icon-button { color: #fff; background: var(--vr-mira); }
.mira-input .mira-stop { min-height: 40px; padding-inline: 10px; font-size: 10.5px; }
.mira-input small { width: 100%; color: var(--vr-text-muted); font-size: 9.5px; }
.mira-input.is-disabled input, .mira-input.is-disabled button { opacity: 0.62; }

.confirm-dialog { width: min(500px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 1px solid var(--vr-border-strong); border-radius: var(--vr-radius-xl); color: var(--vr-text); background: var(--vr-surface); box-shadow: var(--vr-shadow-md); }
.confirm-dialog::backdrop { background: rgba(13, 26, 45, 0.42); backdrop-filter: blur(2px); }
.confirm-dialog form { margin: 0; }
.confirm-header { display: flex; min-height: 72px; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--vr-border); background: var(--vr-surface-subtle); }
.confirm-header > div { min-width: 0; flex: 1; }
.confirm-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--vr-primary-700); background: var(--vr-primary-100); }
.confirm-icon svg { width: 19px; height: 19px; }
.confirm-body { padding: 16px; }
.confirm-body > p { color: var(--vr-text-secondary); line-height: 1.55; }
.confirm-facts { display: grid; margin: 14px 0 0; gap: 7px; }
.confirm-facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; padding: 9px 10px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-sm); }
.confirm-facts dt { color: var(--vr-text-muted); font-size: 11px; }
.confirm-facts dd { margin: 0; font-size: 11.5px; font-weight: 750; }
.confirm-notice { margin: 14px 0 0; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--vr-border); }

.ride-assignment-panel { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid #cbdcf6; border-radius: var(--vr-radius-lg); background: linear-gradient(145deg, #f7faff, #eef5ff); }
.ride-assignment-panel h3, .ride-assignment-panel p { margin: 0; }
.ride-assignment-panel > p:not(.section-kicker) { color: var(--vr-text-secondary); font-size: 11.5px; line-height: 1.55; }
.ride-assignment-panel.is-loading { border-color: #b8cff3; background: #f5f8ff; }
.ride-assignment-panel.is-impact { border-color: #a9c8fa; background: #f1f6ff; }
.ride-assignment-panel.is-confirm { border-color: #8cb7f7; background: #edf4ff; box-shadow: inset 3px 0 0 var(--vr-primary-600); }
.ride-assignment-panel.is-success { border-color: #acd9c3; background: var(--vr-success-bg); }
.ride-assignment-panel.is-error { border-color: #efb6b6; background: var(--vr-danger-bg); }
.assignment-help { color: var(--vr-text-muted) !important; font-size: 10.5px !important; }
.assignment-candidate-list { display: grid; gap: 7px; }
.assignment-candidate { display: grid; min-height: 58px; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-md); color: var(--vr-text); text-align: left; background: var(--vr-surface); }
.assignment-candidate:hover, .assignment-candidate:focus-visible, .assignment-candidate.is-selected { border-color: var(--vr-primary-500); background: var(--vr-primary-50); box-shadow: 0 0 0 2px rgba(36, 100, 218, .1); }
.assignment-candidate:disabled { cursor: not-allowed; opacity: .72; }
.assignment-candidate > span:nth-child(2) { min-width: 0; }
.assignment-candidate strong, .assignment-candidate small, .assignment-candidate em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assignment-candidate small { margin-top: 2px; color: var(--vr-text-secondary); font-size: 10.5px; }
.assignment-candidate em { margin-top: 3px; color: var(--vr-text-muted); font-size: 9.5px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.assignment-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #fff; background: var(--vr-primary-700); font-size: 10px; font-weight: 850; }
.assignment-reason-count { display: grid; min-width: 24px; height: 24px; place-items: center; border-radius: var(--vr-radius-pill); color: var(--vr-text-secondary); background: var(--vr-surface-soft); font-size: 10px; font-weight: 800; }
.assignment-selection { display: grid; gap: 9px; padding: 11px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-md); background: rgba(255,255,255,.82); }
.assignment-selection.is-feasible { border-color: #acd9c3; }
.assignment-selection.is-feasible_with_warnings { border-color: #e7c985; }
.assignment-reasons { display: flex; flex-wrap: wrap; gap: 5px; }
.assignment-reasons code, .assignment-reasons span { padding: 4px 7px; border-radius: var(--vr-radius-pill); color: var(--vr-text-secondary); background: var(--vr-surface-soft); font-size: 9.5px; font-weight: 750; }
.assignment-contract { display: grid; gap: 5px; padding: 9px 10px; border: 1px solid rgba(36, 100, 218, .14); border-radius: var(--vr-radius-sm); background: rgba(255,255,255,.68); }
.assignment-contract span { color: var(--vr-text-secondary); font-size: 10.5px; }
.assignment-actions { display: flex; justify-content: flex-end; gap: 8px; }
.assignment-error { padding: 8px 10px; border-radius: var(--vr-radius-sm); color: var(--vr-danger); background: var(--vr-danger-bg); font-weight: 700; }
.booking-api-review { grid-column: 1 / -1; border-color: #a9c8fa; background: #f3f7ff; }
.booking-api-review > p { color: var(--vr-text-secondary); font-size: 11.5px; }
.booking-api-review ul { display: grid; max-height: 260px; margin: 10px 0 0; padding: 0; overflow: auto; gap: 6px; list-style: none; }
.booking-api-review li { display: grid; grid-template-columns: 100px 150px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-sm); background: var(--vr-surface); }
.booking-api-review li.is-feasible_with_warnings { border-color: #e7c985; background: var(--vr-warning-bg); }
.booking-api-review li.is-blocked { border-color: #efb6b6; background: var(--vr-danger-bg); }
.booking-api-review li.is-insufficient_data { border-color: #c8ced8; background: var(--vr-surface-soft); }
.booking-api-review li strong, .booking-api-review li span { font-size: 10.5px; }
.booking-api-review li small { color: var(--vr-text-muted); font-size: 9.5px; }
.button-block { width: 100%; justify-content: center; }
.ride-card[draggable="true"] { cursor: grab; }
.ride-card.is-dragging { cursor: grabbing; opacity: .42; }
.schedule-lane.is-assignment-target { background-color: #eef5ff; box-shadow: inset 0 0 0 3px rgba(36, 100, 218, .3); }

.map-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(270px, 3fr); min-height: 590px; }
.demo-map { position: relative; min-height: 590px; overflow: hidden; border-right: 1px solid var(--vr-border); background: linear-gradient(145deg, #eaf1ec, #e4edf5 50%, #edf2e7); }
.map-surface { position: absolute; inset: 0; }
.demo-map:not([data-map-state="preview"]) { background: var(--vr-surface); }
.demo-map:not([data-map-state="preview"])::before, .demo-map:not([data-map-state="preview"])::after { display: none; }
.demo-map::before, .demo-map::after { content: ""; position: absolute; border: 18px solid rgba(255,255,255,0.72); border-radius: 44% 56% 58% 42%; transform: rotate(-14deg); }
.demo-map::before { width: 70%; height: 34%; top: 17%; left: -10%; }
.demo-map::after { width: 58%; height: 30%; right: -8%; bottom: 7%; transform: rotate(19deg); }
.road { position: absolute; z-index: 1; height: 5px; border: 1px solid #d2d8df; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(60,70,80,0.12); }
.road-a { width: 110%; top: 44%; left: -5%; transform: rotate(-8deg); }
.road-b { width: 85%; top: 62%; left: 10%; transform: rotate(22deg); }
.road-c { width: 70%; top: 28%; left: 24%; transform: rotate(63deg); }
.map-demo-label { position: absolute; z-index: 3; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 8px 11px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-md); color: var(--vr-text-secondary); background: rgba(255,255,255,0.92); font-size: 12px; font-weight: 750; line-height: 1.35; }
.demo-map[data-map-state="ready"] .map-demo-label { color: var(--vr-primary-800); border-color: #b8cdf5; background: rgba(255,255,255,.96); }
.demo-map[data-map-state="error"] .map-demo-label { color: var(--vr-danger); border-color: #efb0b0; background: #fff7f7; }
.map-runtime-empty { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 32px; text-align: center; color: var(--vr-text-secondary); background: var(--vr-surface-soft); }
.map-runtime-empty svg { width: 34px; height: 34px; color: var(--vr-primary-700); }
.map-runtime-empty strong { color: var(--vr-text); font-size: 15px; }
.map-runtime-empty small { max-width: 420px; font-size: 12px; line-height: 1.5; }
.map-marker { position: absolute; z-index: 4; display: grid; width: 40px; height: 40px; place-items: center; border: 3px solid #fff; border-radius: 13px 13px 13px 3px; color: #fff; background: var(--vr-success); box-shadow: var(--vr-shadow-sm); font-size: 10px; font-weight: 800; transform: rotate(-8deg); }
.map-marker:hover { transform: rotate(-8deg) scale(1.08); }
.map-marker.is-driving { background: var(--vr-info); }
.map-marker.is-warning { background: var(--vr-warning); }
.marker-a { top: 28%; left: 24%; }.marker-b { top: 50%; left: 56%; }.marker-c { top: 35%; left: 75%; }.marker-d { top: 69%; left: 38%; }
.map-driver-list { display: grid; align-content: start; gap: 8px; padding: 12px; background: var(--vr-surface-subtle); }
.map-driver-card { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-md); background: var(--vr-surface); }
.map-driver-card > div { min-width: 0; flex: 1; }
.map-driver-card strong, .map-driver-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-location-card { width: 100%; min-height: 70px; color: var(--vr-text); text-align: left; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease; }
.map-location-card:hover, .map-location-card:focus-visible { border-color: var(--vr-primary-500); box-shadow: 0 5px 16px rgba(45,114,232,.13); outline: none; }
.map-location-fresh { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: #e7f7ee; color: #137445; font-size: 10px; font-weight: 800; }
.map-location-card.is-attention { border-color: #f1b8b8; background: #fffafa; }
.map-location-attention { color: #a12a2a; font-weight: 750; white-space: normal; }
.map-location-fresh.needs-review { background: #fdeaea; color: #a12a2a; }
.map-driver-empty { display: grid; justify-items: center; gap: 7px; padding: 28px 18px; text-align: center; color: var(--vr-text-secondary); }
.map-driver-empty svg { width: 28px; height: 28px; color: var(--vr-primary-700); }
.map-driver-empty strong { color: var(--vr-text); font-size: 13px; }
.map-driver-empty small { max-width: 230px; font-size: 11px; line-height: 1.45; }
.eta { padding: 4px 6px; border-radius: var(--vr-radius-pill); color: var(--vr-primary-800); background: var(--vr-primary-50); font-size: 9px; font-weight: 800; }

.bottom-sheet { position: fixed; z-index: 92; right: 0; bottom: 0; left: 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: var(--vr-surface); box-shadow: 0 -15px 40px rgba(20,32,55,0.2); }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: var(--vr-border-strong); }
.sheet-actions { display: grid; gap: 6px; margin-top: 10px; }
.sheet-actions button { display: flex; min-height: 50px; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: var(--vr-radius-md); text-align: left; background: transparent; }
.sheet-actions button:not(:disabled):hover { background: var(--vr-surface-soft); }
.sheet-actions svg { color: var(--vr-primary-700); }
.sheet-actions button:disabled { cursor: not-allowed; opacity: 1; color: var(--vr-text-secondary); background: var(--vr-surface-subtle); }
.sheet-actions button:disabled svg { color: var(--vr-text-muted); }
.sheet-action-copy { display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; }
.sheet-action-copy strong { min-width: 0; flex: 1; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.sheet-action-copy small { flex: 0 0 auto; padding: 4px 6px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-pill); color: var(--vr-text-muted); background: var(--vr-surface); font-size: 8px; font-weight: 800; white-space: nowrap; }

.context-popover { width: min(330px, calc(100vw - 24px)); padding: 12px; }
.slot-actions { display: grid; gap: 5px; margin-top: 9px; }
.slot-actions button { display: flex; min-height: 50px; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: var(--vr-radius-md); text-align: left; background: transparent; }
.slot-actions button:hover { background: var(--vr-surface-soft); }
.slot-actions button > svg { color: var(--vr-primary-700); }
.slot-actions button span { min-width: 0; }
.slot-actions strong, .slot-actions small { display: block; }

.toast-region { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: grid; width: min(390px, calc(100vw - 24px)); gap: 8px; pointer-events: none; }
.toast { display: flex; min-height: 52px; align-items: flex-start; gap: 9px; padding: 10px 12px; border: 1px solid var(--vr-border-strong); border-radius: var(--vr-radius-md); background: var(--vr-surface); box-shadow: var(--vr-shadow-md); pointer-events: auto; animation: toast-in var(--vr-duration) var(--vr-ease); }
.toast svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--vr-primary-700); }
.toast strong, .toast small { display: block; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.skeleton { position: relative; overflow: hidden; border-radius: var(--vr-radius-md); background: #e9eef4; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent); transform: translateX(-100%); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.mobile-agenda, .mobile-view-switch, .mobile-action-row, .mobile-bottom-nav, .inbox-close { display: none; }
.assignment-capacity {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--color-primary, #2457d6) 24%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-primary, #2457d6) 7%, white);
  color: var(--color-text, #182033);
  font-size: 0.82rem;
  line-height: 1.45;
}
