/* Hand over / Split / Move stops dialog (templates/account/_handover_dialog.html, static/pro-handover.js). */
.ho-dialog { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px;
  background: var(--card, #050506); color: var(--text, #fff); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ho-dialog::backdrop { background: rgba(10, 10, 11, .55); }
.ho-shell { display: flex; flex-direction: column; gap: 10px; height: min(760px, calc(100dvh - 32px)); padding: 16px 18px; }
.ho-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ho-head h2 { margin: 2px 0 0; font-size: 18px; }
.ho-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--sunk, #050506);
  color: var(--ink, #fff); font: 500 20px/1 var(--font, system-ui); cursor: pointer; }
.ho-modes { align-self: flex-start; padding: 3px; }
.ho-modes button, .ho-sub button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted, rgba(255, 255, 255, .64));
  font: 550 13px/1 var(--font, system-ui); cursor: pointer; }
.ho-modes button[aria-pressed="true"], .ho-sub button[aria-pressed="true"] { background: var(--d-y, #fff); color: var(--d-k, var(--ink, #0a0a0b)); box-shadow: 0 1px 3px rgba(10, 10, 11, .14); }
.ho-sub { display: inline-flex; gap: 3px; padding: 3px; margin: 0 0 8px; border-radius: 999px; background: var(--sunk-2, #050506); }
.ho-sub button { min-height: 30px; font-size: 12.5px; }
.ho-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 12px; flex: 1 1 auto; min-height: 0; }
.ho-left { min-height: 0; overflow: auto; overscroll-behavior: contain; padding-right: 2px; }
.ho-right { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ho-map { position: relative; flex: 1 1 55%; min-height: 160px; border-radius: 14px; overflow: hidden; background: #101114; }
.ho-impact { flex: 0 1 auto; max-height: 45%; overflow: auto; display: grid; gap: 6px; }
.ho-lane { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 9px;
  border: 1px solid var(--line, rgba(255, 255, 255, .15)); border-radius: 11px; font-size: 12.5px; }
.ho-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--d-w45, #050506); }
.ho-dot.l0 { background: #ffff06; } .ho-dot.l1 { background: #fff; } .ho-dot.l2 { background: #0d1d50; box-shadow: inset 0 0 0 2px var(--d-5e79de, #2e4bb8); } .ho-dot.l3 { background: #8a8a8e; }
.ho-lane b { display: block; } .ho-lane small { color: var(--muted, rgba(255, 255, 255, .64)); }
.ho-delta { font-weight: 700; white-space: nowrap; }
.ho-delta.up { color: var(--ink, #fff); } .ho-delta.down { color: var(--d-55e78a, #177a3b); }
.ho-warn { padding: 7px 10px; border-radius: 10px; background: var(--soft-yellow, #050506); font-size: 12.5px; }
.ho-summary { margin: 0; font-size: 13px; font-weight: 600; }
.ho-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ho-driver { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px;
  border: 1.5px solid var(--line, rgba(255, 255, 255, .15)); border-radius: 12px; cursor: pointer; }
.ho-driver:has(input:checked) { border-color: var(--ink, #0a0a0b); background: var(--soft-yellow, #050506); }
.ho-driver.is-off { opacity: .55; }
.ho-driver b { display: block; font-size: 13px; }
.ho-driver small { display: block; color: var(--muted, rgba(255, 255, 255, .64)); font-size: 11.5px; }
.ho-driver input { accent-color: #050506; width: 16px; height: 16px; }
.ho-st { padding: 2px 8px; border-radius: 999px; background: var(--sunk-2, #050506); font: 600 11px/1.5 var(--font, system-ui); white-space: nowrap; }
.ho-st.en_route { background: #ffff06; } .ho-st.idle { background: var(--d-k, #fff); box-shadow: inset 0 0 0 1.5px var(--d-w45, #050506); } .ho-st.offline { color: var(--muted, rgba(255, 255, 255, .64)); }
.ho-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ho-stop { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px;
  border: 1px solid var(--line, rgba(255, 255, 255, .15)); border-radius: 10px; background: var(--d-k, #fff); font-size: 12.5px; }
.ho-stop.is-done { opacity: .5; }
.ho-stop.is-picked { border-color: var(--ink, rgba(255, 255, 255, .55)); box-shadow: inset 3px 0 0 #ffff06; }
.ho-stop.is-drag { opacity: .35; }
.ho-stop.is-over { box-shadow: 0 -3px 0 #050506; }
.ho-stop b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-stop select { height: 30px; max-width: 150px; border: 1px solid var(--line-2, rgba(255, 255, 255, .3)); border-radius: 8px; background: var(--d-k, #fff); font: 500 12px/1 var(--font, system-ui); }
.ho-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #050506; color: #ffff06; font: 700 10.5px/1 var(--font, system-ui); }
.ho-stop.is-done .ho-n { background: #0d1d50; color: #fff; }
.ho-tools { display: flex; gap: 4px; }
.ho-tools button, .ho-mini { min-height: 28px; padding: 0 9px; border: 1px solid var(--line-2, rgba(255, 255, 255, .3)); border-radius: 8px; background: var(--d-k, #fff);
  color: var(--ink, #fff); font: 550 12px/1 var(--font, system-ui); cursor: pointer; }
.ho-tools button:focus-visible, .ho-mini:focus-visible { outline: 2.5px solid var(--d-y, #050506); outline-offset: 1px; }
.ho-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ho-col { min-width: 0; padding: 8px; border: 1px dashed var(--line-2, rgba(255, 255, 255, .3)); border-radius: 12px; }
.ho-col.is-over { border-color: #050506; background: var(--soft-yellow, #050506); }
.ho-col h3 { margin: 0 0 6px; font-size: 13px; }
.ho-col label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; color: var(--muted, rgba(255, 255, 255, .64)); font-size: 11.5px; font-weight: 600; }
.ho-col select, .ho-field select, .ho-field input { height: 36px; padding: 0 9px; border: 1px solid var(--line-2, rgba(255, 255, 255, .3)); border-radius: 10px;
  background: var(--d-k, #fff); color: var(--ink, #fff); font: 500 13px/1 var(--font, system-ui); }
.ho-h { margin: 8px 0 6px; font-size: 13px; }
.ho-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line, rgba(255, 255, 255, .15)); }
.ho-field { display: flex; flex-direction: column; gap: 4px; color: var(--muted, rgba(255, 255, 255, .64)); font-size: 11.5px; font-weight: 600; }
.ho-note { flex: 1 1 200px; }
.ho-msg { flex: 1 1 160px; margin: 0; color: var(--muted, rgba(255, 255, 255, .64)); font-size: 12px; }
.ho-msg.is-error { color: var(--red, #ef5f4d); }
.ho-msg.is-ok { color: var(--d-55e78a, #177a3b); font-weight: 600; }
@media (max-width: 800px) {
  .ho-shell { height: auto; }
  .ho-main { grid-template-columns: 1fr; }
  .ho-left { overflow: visible; }
  .ho-map { min-height: 200px; }
  .ho-cols { grid-template-columns: 1fr; }
}
