/* TaTasque — the ONE move sheet (FOLDERS L6; job-intake §49). Copyright Rapid Surveys Pty Ltd. App tokens only; namespace mvs-.
 * The one-chooser's look (wch-): a top-anchored card, 16px radius, soft shadow; a phone: full screen. z-index 66 (as the chooser). */
.mvs-ov { position: fixed; inset: 0; z-index: 66; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; background: rgba(20, 28, 40, .42); overflow-y: auto; }
.mvs-ov[hidden] { display: none; }
.mvs-card { width: 100%; max-width: 560px; background: var(--card); color: var(--ink); border-radius: 16px; box-shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 20px 48px rgba(15, 23, 42, .22); padding: 20px; display: grid; gap: 16px; align-content: start; animation: mvs-in .2s ease-out; }
@keyframes mvs-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mvs-head { display: flex; align-items: flex-start; gap: 12px; }
.mvs-hl { flex: 1; min-width: 0; }
.mvs-kick { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
#mvsSheet .mvs-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--ink); text-transform: none; letter-spacing: normal; overflow-wrap: anywhere; }
.mvs-what { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.mvs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mvs-body { display: grid; gap: 16px; }
#mvsSheet button { width: auto; margin: 0; font: inherit; }
#mvsSheet .mvs-x { background: none; border: 0; color: var(--muted); min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; }
#mvsSheet .mvs-x:hover { background: var(--hover); color: var(--ink); }

/* 1 WHERE TO */
.mvs-find { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); margin: 0; }
.mvs-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.mvs-find input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); min-height: 42px; padding: 0; margin: 0; }
.mvs-dest { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: min(56vh, 520px); overflow-y: auto; }
.mvs-dest li[hidden] { display: none; }
#mvsSheet .mvs-to { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px 8px calc(12px + var(--d, 0) * 18px); text-align: left; background: var(--card); color: var(--ink); border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
#mvsSheet .mvs-to:hover:not(:disabled) { background: var(--hover); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
#mvsSheet .mvs-to:disabled { cursor: default; color: var(--muted); }
.mvs-to svg { flex: none; color: var(--accent); }
.mvs-to:disabled svg { color: var(--muted); }
.mvs-tn { display: grid; gap: 1px; min-width: 0; flex: 1; }
.mvs-tn b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvs-tn small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvs-here { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 999px; }
.mvs-none, .mvs-none2, .mvs-note { color: var(--muted); font-size: 14px; margin: 0; }
.mvs-none { padding: 12px; }

/* 2 CHECK — the route */
.mvs-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; position: relative; }
.mvs-end { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.mvs-endto { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.mvs-end small { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mvs-end b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; min-width: 0; }
.mvs-end b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvs-end b svg { flex: none; color: var(--accent); }
.mvs-end em { font-style: normal; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvs-arr { align-self: center; color: var(--muted); }
#mvsSheet .mvs-link { background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 14px; min-height: 44px; padding: 0 4px; cursor: pointer; }
#mvsSheet .mvs-link:hover { text-decoration: underline; }
.mvs-route .mvs-link { grid-column: 3; justify-self: end; margin-top: -4px; }

/* sections */
.mvs-sec { display: grid; gap: 8px; }
.mvs-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mvs-h svg { color: var(--muted); }
.mvs-hint { margin: 0; font-size: 14px; color: var(--muted); }
.mvs-wf { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.mvs-wf b { font-size: 16px; font-weight: 700; }
.mvs-wf small { font-size: 13px; color: var(--muted); }
.mvs-wfnew { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.mvs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mvs-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--line); }

/* the status table */
.mvs-gaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mvs-gap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr) 20px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .18s ease, background-color .18s ease; }
.mvs-gap.on { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.mvs-gap.keep { border-style: dashed; }
.mvs-gfrom { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.mvs-gfrom small { font-size: 12px; color: var(--muted); }
.mvs-garr { color: var(--muted); }
.mvs-gto { margin: 0; min-width: 0; }
.mvs-sel { width: 100%; min-height: 44px; font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin: 0; cursor: pointer; }
.mvs-gap:not(.on) .mvs-sel { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.mvs-ok { color: var(--ok); opacity: 0; transition: opacity .18s ease; display: grid; place-items: center; }
.mvs-gap.on .mvs-ok { opacity: 1; }

/* also changes */
.mvs-also { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mvs-also li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; }
.mvs-also li + li { border-top: 1px solid var(--line); }
.mvs-also li > svg { flex: none; color: var(--muted); margin-top: 2px; }
.mvs-also div { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.mvs-also div > b { font-weight: 600; }
.mvs-also span { color: var(--ink); overflow-wrap: anywhere; }
.mvs-also span small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mvs-to2 { color: var(--muted); }

/* loading · messages · foot */
.mvs-load { display: flex; gap: 6px; justify-content: center; padding: 28px 0; }
.mvs-load span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .3; animation: mvs-dot 1s infinite ease-in-out; }
.mvs-load span:nth-child(2) { animation-delay: .15s; } .mvs-load span:nth-child(3) { animation-delay: .3s; }
@keyframes mvs-dot { 50% { opacity: 1; } }
.mvs-msg { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--err); font-size: 14px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--err) 8%, var(--card)); }
.mvs-msg[hidden] { display: none; }
.mvs-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; }
.mvs-sp { flex: 1; }
.mvs-left { font-size: 13px; color: var(--muted); }
#mvsSheet .mvs-go, #mvsSheet .mvs-ghost { min-height: 44px; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
#mvsSheet .mvs-go { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
#mvsSheet .mvs-go:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
#mvsSheet .mvs-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
#mvsSheet :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 767px) {
  .mvs-ov { padding: 0; background: var(--card); }
  .mvs-card { max-width: none; min-height: 100%; border-radius: 0; box-shadow: none; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); animation: none; }
  .mvs-route { grid-template-columns: 1fr; }
  .mvs-arr { justify-self: center; transform: rotate(90deg); }
  .mvs-route .mvs-link { grid-column: 1; }
  .mvs-gap { grid-template-columns: minmax(0, 1fr) 20px; }
  .mvs-garr { display: none; }
  .mvs-gto { grid-column: 1 / -1; grid-row: 2; }
  .mvs-ok { grid-column: 2; grid-row: 1; }
  .mvs-foot { position: sticky; bottom: 0; background: var(--card); padding-bottom: 4px; }
  .mvs-left { flex-basis: 100%; }
  .mvs-sp { display: none; }
  #mvsSheet .mvs-go, #mvsSheet .mvs-ghost { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .mvs-card, .mvs-load span { animation: none; } .mvs-gap, .mvs-ok, #mvsSheet .mvs-to { transition: none; } }
/* a drop target while dragging a task onto the tree */
.nv-row.mvs-drop { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
