/* TaTasque — the ONE workflow chooser (job-intake §49). Copyright Rapid Surveys Pty Ltd. App tokens only; namespace wch-.
 * z-index 66: above the phone's Jobs page (60), its menus (62) and move sheet (63), as TABLES' sheets (65). */
.wch-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; }
.wch-ov[hidden] { display: none; }
.wch-card { --th-dpad: 20px; width: 100%; max-width: 520px; 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: 14px; align-content: start; }
.wch-head { display: flex; align-items: flex-start; gap: 12px; }
.wch-hl { flex: 1; min-width: 0; }
.wch-kick { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
#wchSheet .wch-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; }
.wch-what { margin: 0; font-size: 14px; color: var(--muted); }
.wch-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wch-opts { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.wch-opt { border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.wch-opt:hover:not(.dis) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.wch-opt.on { 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) 16%, transparent); }
.wch-opt.dis { opacity: .55; }
.wch-row { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 14px; cursor: pointer; margin: 0; }
.wch-opt.dis .wch-row { cursor: default; }
.wch-row input, .wch-tpl input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.wch-ob { display: grid; gap: 3px; min-width: 0; flex: 1; }
.wch-on { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.wch-os { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.wch-caret { color: var(--muted); font-size: 12px; margin-left: 2px; }
.wch-tpls { display: grid; gap: 6px; padding: 0 12px 10px 42px; }
.wch-tpl { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; margin: 0; transition: border-color .15s ease; }
.wch-tpl.on { border-color: var(--accent); }
.wch-tpn { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.wch-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.wch-chip { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--wch-c); background: color-mix(in srgb, var(--wch-c) 16%, var(--card)); color: var(--ink); }
.wch-lock { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 6px 42px; font-size: 13px; color: var(--muted); margin: 0; cursor: pointer; }
.wch-lock input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.wch-msg { margin: 0; color: var(--err); font-size: 14px; }
.wch-msg[hidden] { display: none; }
.wch-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; }
.wch-gap { flex: 1; }
#wchSheet button { width: auto; margin: 0; }
#wchSheet .wch-save, #wchSheet .wch-ghost { min-height: 44px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
#wchSheet .wch-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
#wchSheet .wch-ghost[hidden], #wchSheet .wch-edit[hidden] { display: none; }
#wchSheet .wch-edit { background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 14px; padding: 10px 4px; min-height: 44px; cursor: pointer; }
#wchSheet .wch-edit:hover { text-decoration: underline; }
#wchSheet .wch-x { background: none; border: 0; color: var(--muted); font-size: 18px; min-width: 44px; min-height: 44px; cursor: pointer; }
.wch-mh { margin: 0; font-size: 14px; }
.wch-mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wch-mrow { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 6px; }
.wch-mrow label { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin: 0; }
.wch-sel { width: 100%; min-height: 44px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin: 0; }
#wchSheet :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 767px) { .wch-ov { padding: 0; background: var(--card); } .wch-card { max-width: none; min-height: 100%; border-radius: 0; box-shadow: none; padding-top: calc(18px + env(safe-area-inset-top)); } html.th-under .wch-card { padding-top: 18px; } .wch-tpls { padding-left: 12px; } .wch-lock { padding-left: 14px; } }
@media (prefers-reduced-motion: reduce) { .wch-opt, .wch-tpl { transition: none; } }

/* THE TRIGGER — the same control's compact face in rows and forms: name, grey hint, › */
.wch-trig { display: inline-flex; align-items: center; gap: 10px; width: 100%; max-width: 100%; min-height: 44px; margin: 0; padding: 7px 12px; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.wch-trig:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.wch-trig:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wch-trig:disabled { cursor: default; background: var(--bg); }
.wch-tl { display: grid; gap: 1px; flex: 1; min-width: 0; }
.wch-tn { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wch-th { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wch-chev { flex: none; color: var(--muted); }
@media (max-width: 480px) { #wchSheet .wch-edit { flex-basis: 100%; text-align: left; } }
