/* Route lifecycle (pro-route-lifecycle.js): the ⋯ menu, the confirm dialog, the console's "Assigned routes" card and
   the planner's Saved list tools. Black / white / yellow; red only for cancel and delete. No inline styles (CSP). */
.rlc-more { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; background: transparent; color: #f4f4f0; font: 700 18px/1 system-ui, sans-serif; cursor: pointer; }
.rlc-more:hover, .rlc-more[aria-expanded="true"] { border-color: #ffff06; color: #ffff06; }
.rlc-more:focus-visible, .rlc-menu-item:focus-visible, .rlc-btn:focus-visible, .rlc-link:focus-visible,
.rlc-tool:focus-visible, .rlc-seg button:focus-visible { outline: 2px solid #ffff06; outline-offset: 2px; }

.rlc-menu { position: fixed; left: var(--x, 8px); top: var(--y, 8px); z-index: 2147483000; min-width: 196px; padding: 6px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: #0f0f11; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.rlc-menu-item { display: block; box-sizing: border-box; width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent;
  color: #f4f4f0; font: 600 14px/1.3 system-ui, sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.rlc-menu-item:hover, .rlc-menu-item:focus { background: rgba(255,255,255,.08); outline: none; }
.rlc-menu-item.is-danger { color: #ff6a55; }

.rlc-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: #0f0f11; color: #f4f4f0; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.rlc-dialog::backdrop { background: rgba(0,0,0,.65); }
.rlc-form { display: grid; gap: 12px; }
.rlc-form h2 { margin: 0; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.rlc-text { margin: 0; color: #c9c9c3; font-size: 14px; line-height: 1.45; }
.rlc-field { display: grid; gap: 6px; font-size: 13px; color: #9a9a94; }
.rlc-field select, .rlc-field textarea, .rlc-field input { width: 100%; box-sizing: border-box; min-height: 42px; padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: #050506; color: #f4f4f0; font: 14px/1.4 system-ui, sans-serif; }
.rlc-field textarea { resize: vertical; }
.rlc-field select:focus, .rlc-field textarea:focus, .rlc-field input:focus { border-color: #ffff06; outline: none; }
.rlc-check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.rlc-check input { width: 18px; height: 18px; accent-color: #ffff06; }
.rlc-msg { margin: 0; min-height: 1em; font-size: 13px; color: #9a9a94; }
.rlc-msg.is-bad { color: #ff6a55; }
.rlc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.rlc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid #ffff06;
  border-radius: 12px; background: #ffff06; color: #050506; font: 700 14px/1 system-ui, sans-serif; cursor: pointer; }
.rlc-btn.ghost { border-color: rgba(255,255,255,.22); background: transparent; color: #f4f4f0; }
.rlc-btn.ghost:hover { border-color: #ffff06; }
.rlc-btn.is-danger { border-color: #ff6a55; background: #ff6a55; color: #050506; }
.rlc-btn.is-danger-text { color: #ff6a55; }
.rlc-btn.is-danger-text:hover { border-color: #ff6a55; }
.rlc-btn:disabled { opacity: .45; cursor: not-allowed; }

/* the console's driver pane: Assigned routes */
.rlc-card { margin: 12px 0; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #0b0b0d; }
.rlc-card-head h4 { margin: 0 0 10px; font-size: 14px; }
.rlc-card-body { display: grid; gap: 10px; }
.rlc-muted { margin: 0; color: #9a9a94; font-size: 13px; }
.rlc-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rlc-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 6px 6px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.rlc-row-text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.rlc-row-text b { font-size: 14px; overflow-wrap: anywhere; }
.rlc-row-text small { color: #9a9a94; font-size: 12px; }
.rlc-row.is-queued { border-style: dashed; }
.rlc-link { color: #ffff06; font-size: 13px; padding: 8px; }

/* the planner's Saved list tools */
.rlc-tools { display: grid; gap: 8px; margin: 0 0 10px; }
.rlc-tools-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rlc-seg { display: inline-flex; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; overflow: hidden; }
.rlc-seg button { min-height: 36px; padding: 0 12px; border: 0; background: transparent; color: #c9c9c3; font: 600 13px/1 system-ui, sans-serif; cursor: pointer; }
.rlc-seg button[aria-pressed="true"] { background: #ffff06; color: #050506; }
.rlc-tools select { min-height: 36px; max-width: 100%; padding: 0 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: #050506; color: #f4f4f0; font: 13px system-ui, sans-serif; }
.rlc-tool { min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: transparent; color: #f4f4f0;
  font: 600 13px/1 system-ui, sans-serif; cursor: pointer; }
.rlc-tool:hover { border-color: #ffff06; }
.rlc-tool.is-danger { color: #ff6a55; }
.rlc-tool.is-danger:hover { border-color: #ff6a55; }
.rlc-tool:disabled { opacity: .4; cursor: not-allowed; }
.rlc-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #ffff06; border-radius: 10px; }
.rlc-bulk[hidden] { display: none; }
.rlc-bulk b { font-size: 13px; margin-right: auto; }
.rlc-pick { flex: none; width: 18px; height: 18px; margin: 0 4px 0 2px; accent-color: #ffff06; }
.rlc-holder { color: #ffff06; }

@media (max-width: 520px) {
  .rlc-dialog { padding: 18px 16px; }
  .rlc-actions { grid-template-columns: 1fr; }
  .rlc-actions .rlc-btn[type="submit"] { order: -1; }
}
.rp .route-saved-item:has(> .rlc-pick) { grid-template-columns: auto minmax(0, 1fr) auto; }
.rp .route-saved-actions .rlc-more { width: 32px; height: 32px; }
.rp .route-saved-open small:has(.rlc-holder) { white-space: normal; overflow: visible; }
