/* Task Helper — the WORKFLOW WIZARD (job-intake.md §39; WF-1, BRIEF-1076). Copyright Rapid Surveys Pty Ltd. Namespace wf-. */
.wf-overlay { position:fixed; inset:0; background:rgba(20,28,40,.45); display:flex; align-items:flex-start; justify-content:center; z-index:60; overflow:auto; }
.wf-card { background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:14px; width:100%; max-width:1040px; margin:24px 16px; padding:18px 22px 22px; }
.wf-head { display:flex; align-items:center; gap:12px; }
.wf-head h2 { margin:0; font-size:18px; flex:1; color:var(--ink); text-transform:none; letter-spacing:0; }
/* The page styles every <button> full-width + accent; inside the wizard each button says what it is. */
.wf-card button { width:auto; padding:8px 12px; font-size:14px; border-radius:8px; }
.wf-card .wf-mv { min-width:36px; min-height:36px; padding:4px 8px; background:var(--card); color:var(--ink); border:1px solid var(--line); }
.wf-card .wf-mv:hover:not(:disabled) { background:var(--hover); }
.wf-card .wf-mv.wf-del { color:var(--err); }
.wf-card .wf-back { background:var(--bg); color:var(--ink); border:1px solid var(--line); min-height:44px; padding:10px 18px; }
.wf-card .wf-next, .wf-card .wf-save { min-height:44px; padding:10px 22px; }
.wf-card .wf-x { background:none; border:0; font-size:18px; color:var(--muted); cursor:pointer; padding:6px 10px; min-width:44px; min-height:44px; }
.wf-steps { display:flex; flex-wrap:wrap; gap:6px 18px; list-style:none; padding:0; margin:12px 0 14px; border-bottom:1px solid var(--line); padding-bottom:10px; font-size:13px; color:var(--muted); }
.wf-steps li.on { color:var(--ink); font-weight:600; }
.wf-help { font-size:13px; color:var(--muted); margin:0 0 12px; }
.wf-note { font-size:13px; background:var(--hover); border:1px solid var(--line); border-radius:8px; padding:8px 10px; margin:0 0 10px; }
.wf-meta { font-size:12px; color:var(--muted); }
.wf-warn { color:#b45309; }
.wf-err { color:var(--err); font-size:13px; }
.wf-tag { display:inline-block; font-size:11px; font-weight:500; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:1px 7px; margin-left:4px; vertical-align:middle; }
.wf-tag.wf-new { color:var(--accent); border-color:var(--accent); }
.wf-chip { display:inline-block; font-size:11px; font-weight:600; padding:2px 8px; margin:2px 4px 2px 0; border-radius:999px; border:1px solid var(--wf-c); color:var(--ink); background:color-mix(in srgb, var(--wf-c) 18%, var(--card)); }
.wf-used { margin:0 0 10px; font-size:13px; }
.wf-used ul { margin:6px 0 0; padding-left:18px; }
.wf-rows { list-style:none; margin:0 0 10px; padding:0; border:1px solid var(--line); border-radius:10px; }
.wf-row { display:flex; align-items:center; gap:8px; padding:6px 10px; border-top:1px solid var(--line); background:var(--card); }
.wf-row:first-child { border-top:0; border-radius:10px 10px 0 0; }
.wf-row.wf-drag { opacity:.5; }
.wf-row.wf-over { box-shadow:inset 0 2px 0 var(--accent); }
.wf-row.wf-over-after { box-shadow:inset 0 -2px 0 var(--accent); }
.wf-grip { cursor:grab; color:var(--muted); user-select:none; touch-action:none; }   /* touch-action: a finger on the grip drags (THReorder), never scrolls */
.wf-col { width:32px; height:28px; padding:0; border:1px solid var(--line); border-radius:6px; background:none; cursor:pointer; }
.wf-col[data-auto] { opacity:.6; }
.wf-name { flex:1; font-weight:600; font-size:14px; min-width:0; overflow-wrap:anywhere; }
.wf-cnt { font-size:12px; color:var(--muted); min-width:64px; text-align:right; }
.wf-keep { width:28px; text-align:center; color:var(--line); }
.wf-add { display:flex; gap:8px; align-items:center; }
.wf-addin { flex:1; text-transform:uppercase; margin:0; }
.wf-board { display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; }
.wf-bcol { flex:0 0 160px; min-height:90px; background:var(--hover); border-radius:10px; border-top:4px solid var(--wf-c); }
.wf-bhead { display:flex; justify-content:space-between; gap:6px; padding:8px 10px; font-size:12px; font-weight:700; }
.wf-sum { font-size:14px; margin:12px 0 4px; padding-left:18px; }
.wf-nav { display:flex; align-items:center; gap:10px; margin-top:18px; padding-top:12px; border-top:1px solid var(--line); }
.wf-gap { flex:1; }
.wf-msg { margin:0; font-size:13px; }
@media (max-width: 767px) { .wf-card { margin:0; border-radius:0; min-height:100%; padding:14px 16px; } }
.wf-addin::placeholder { text-transform:none; }
/* BRIEF-1090: the master order + tick chips */
.wf-used-in { display:block; font-size:11px; font-weight:400; color:var(--muted); margin-top:2px; }
.wf-wfs { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.wf-wf { border:1px solid var(--line); border-radius:10px; padding:10px 12px; }
.wf-wfhead { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; margin-bottom:6px; }
.wf-inherit { display:flex; align-items:center; gap:6px; font-size:13px; margin:0 0 6px; cursor:pointer; }
.wf-ticks { display:flex; flex-wrap:wrap; gap:6px; }
.wf-card .wf-tick, .wf-ticks .wf-tick { width:auto; min-height:36px; padding:6px 10px; font-size:12px; font-weight:600; border-radius:999px; cursor:pointer;
  background:var(--card); color:var(--muted); border:1px dashed var(--line); }
.wf-card .wf-tick.on, .wf-ticks .wf-tick.on { color:var(--ink); border:1px solid var(--wf-c); background:color-mix(in srgb, var(--wf-c) 18%, var(--card)); }
.wf-tick[aria-disabled="true"] { cursor:not-allowed; }
.wf-lockn { display:inline-block; min-width:18px; margin-left:4px; padding:0 5px; border-radius:999px; background:var(--wf-c); color:#fff; font-size:10px; }
.wf-inherit { justify-content:flex-start; }
.wf-inherit input[type="checkbox"] { width:18px; height:18px; flex:0 0 auto; margin:0; padding:0; }
/* PR-2: the priority levels editor (job-intake §40; BRIEF-1094) */
.pl-card { max-width:880px; }
.pl-code { min-width:28px; font-weight:700; color:var(--muted); font-size:13px; }
.pl-sym { width:44px; text-align:center; font-size:18px; }
.pl-card input.pl-sym { width:52px; margin:0; padding:6px; }
.pl-main { flex:1; display:flex; flex-direction:column; gap:4px; min-width:0; }
.pl-card .pl-main input { margin:0; padding:6px 8px; font-size:14px; }
.pl-card .pl-desc { font-size:12px; color:var(--muted); }
.pl-swatch { width:20px; height:20px; border-radius:4px; display:inline-block; }
.pl-def { display:flex; align-items:center; gap:4px; font-size:12px; white-space:nowrap; }
.pl-def input { width:auto; margin:0; }
.pl-add input.pl-newsym { width:72px; flex:0 0 auto; margin:0; }
.pl-reth { font-size:14px; margin:16px 0 6px; }
.pl-retired { list-style:none; padding:0; margin:0; display:grid; gap:6px; font-size:14px; }
.pl-ask { border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:4px 0 8px; background:var(--hover); font-size:14px; }
.pl-ask select { width:auto; margin-left:6px; }
.pl-ask .sb-btns button { width:auto; min-height:40px; padding:8px 14px; font-size:14px; border-radius:8px; }
.pl-ask .pl-cancel, .pl-ask .pl-retire { background:var(--bg); color:var(--ink); border:1px solid var(--line); }
@media (max-width: 767px) { .pl-row { flex-wrap:wrap; } .pl-main { flex-basis:60%; } }
/* GW-1: the guided setup (job-intake §39; BRIEF-1198) — one column, phone-friendly */
.gs-card { max-width:720px; }
.gs-choices { display:grid; gap:8px; }
.gs-choice { display:flex; gap:10px; align-items:flex-start; padding:12px; border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.gs-choice:has(input:checked) { border-color:var(--accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent); }
.gs-choice input[type="radio"] { width:20px; height:20px; margin:2px 0 0; flex:0 0 auto; }
.gs-choice > span { display:flex; flex-direction:column; gap:4px; min-width:0; }
.gs-card .gs-name { margin:6px 0 0; }
.gs-card .wf-tick { min-height:44px; }
.gs-done { font-size:15px; }
.pl-gtbar { margin:0 0 10px; }   /* G3: the one greyed "Change levels" (BRIEF-1289) */
/* BRIEF-1315 THFrame: the head (title + ✕) and the button row stay in reach while the card scrolls (the overlay scrolls) */
.wf-card { --th-dpad:22px; }
.wf-card .wf-head.th-dhead { margin-top:-8px; padding-top:8px; padding-bottom:8px; border-radius:14px 14px 0 0; }
.wf-card .wf-nav.th-dfoot { border-radius:0 0 14px 14px; }
@media (max-width: 767px) { .wf-card { --th-dpad:16px; } .wf-card .wf-head.th-dhead, .wf-card .wf-nav.th-dfoot { border-radius:0; } }
/* wf-edit: rename (click the name) / remove (✕) any status — saved at once */
.wf-row { flex-wrap:wrap; }
.wf-card .wf-nm { background:none; border:0; padding:0; font:inherit; font-weight:600; color:inherit; cursor:text; text-align:left; }
.wf-card .wf-nm::after { content:" \270E"; opacity:.35; font-weight:400; font-size:12px; }
.wf-card .wf-nm:hover::after, .wf-card .wf-nm:focus-visible::after { opacity:1; }
.wf-ren { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.wf-renin { min-width:0; width:14em; max-width:100%; text-transform:uppercase; }
.wf-renerr { flex-basis:100%; }
.wf-rmbox { flex-basis:100%; display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:6px 0 2px 36px; font-size:13px; }
.wf-rmbox .wf-err { flex-basis:100%; margin:0; }
/* L7: rename a named workflow on step 3; an "Its own" copy's tag */
.wf-link { background:transparent; border:0; color:var(--accent); font-weight:600; padding:4px 6px; min-height:32px; cursor:pointer; width:auto; }
.wf-owntag { font-weight:600; }
/* L7: ONE workflow's page — its name as the title, statuses, lists using it, then its details layout (one step on) */
.wp-page { display:grid; gap:14px; max-width:760px; }
.wp-head { display:grid; gap:4px; justify-items:start; }
.wp-kicker { margin:6px 0 0; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.wp-titlerow { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.wp-title { margin:0; font-size:26px; line-height:1.2; font-weight:700; text-transform:none; letter-spacing:normal; color:var(--ink); overflow-wrap:anywhere; }
.wp-used { margin:0; }
.wp-ren { display:grid; gap:6px; width:100%; }
.wp-lbl { font-size:13px; font-weight:600; color:var(--muted); }
.wp-renrow { display:flex; flex-wrap:wrap; gap:8px; }
.wp-renin { flex:1 1 220px; min-width:0; font-size:20px; font-weight:700; min-height:44px; }
.wp-renrow button { width:auto; min-height:44px; }
.wp-sec { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 18px; display:grid; gap:10px; justify-items:stretch; box-shadow:0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.05); }
.wp-h { margin:0; font-size:16px; font-weight:700; text-transform:none; letter-spacing:normal; color:var(--ink); }
.wp-sec .wf-meta { margin:0; }
.wp-ul { list-style:none; margin:0; padding:0; width:100%; display:grid; gap:4px; }
.wp-li { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; padding:6px 0; border-top:1px solid var(--line); }
.wp-li:first-child { border-top:0; }
.wp-lp { font-weight:600; overflow-wrap:anywhere; }
.wp-lt { display:grid; gap:1px; flex:1 1 12em; min-width:0; }
.wp-lc { flex:1 1 16em; min-width:0; display:flex; justify-content:flex-end; }
.wp-lc .wch-trig { max-width:24em; }
.wp-lay { border-color:color-mix(in srgb, var(--accent) 45%, var(--line)); }
.wp-page .wp-laygo { justify-self:start; width:auto; min-height:44px; padding:10px 18px; border-radius:10px; font-weight:600; }
.wp-foot { display:flex; flex-wrap:wrap; gap:8px; }
.wp-foot button { width:auto; min-height:44px; padding:10px 16px; border-radius:10px; background:var(--card); color:var(--ink); border:1px solid var(--line); font-weight:600; }
.wp-foot .wp-del { color:var(--err); }
.wp-chips { margin:0; }
#settingsList .wp-back { width:auto; min-height:40px; padding:6px 12px; background:var(--bg); color:var(--ink); border:1px solid var(--line); font-weight:600; }
#settingsList .wp-title, .wp-page .wp-title { font-size:26px; }
/* job-intake §49 ONE EDITOR: the statuses editor drawn INTO the Workflows tab (no overlay) */
.wf-card.wf-inline { max-width:none; margin:0; padding:0; border:0; border-radius:0; background:none; }
.wf-inline .wf-sub { margin:18px 0 6px; font-size:14px; font-weight:700; color:var(--ink); }
.wf-inline .wf-nav.wf-inav { margin-top:14px; padding-top:10px; }
.wf-inline .wf-undo[hidden] { display:none; }
.wf-inline .wf-undo { background:var(--card); color:var(--ink); border:1px solid var(--line); min-height:44px; padding:10px 16px; }
.wf-inline .wf-save { min-height:44px; padding:10px 20px; }
.wf-inline .wf-save:disabled { opacity:.5; }
.wp-page .wf-inline .wf-wf { border:0; padding:0; }
.wp-page .wf-inline .wf-wfhead { display:none; }
/* job-intake §49 ONE EDITOR — Fields → Workflows (THWorkflowHome, namespace wh-): Project statuses on top, then the workflow cards */
.wh { display:grid; gap:18px; }
.wh-sec { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 18px; box-shadow:0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.05); }
.wh-sh { display:flex; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.wh-shl { flex:1 1 16em; min-width:0; }
.wh-h { margin:0; font-size:17px; font-weight:700; color:var(--ink); text-transform:none; letter-spacing:0; }
.wh-n { display:inline-block; min-width:22px; margin-left:6px; padding:1px 8px; border-radius:999px; background:var(--bg); color:var(--muted); font-size:12px; font-weight:600; text-align:center; vertical-align:2px; }
.wh-lead { margin:4px 0 0; font-size:13px; color:var(--muted); }
.wh button { width:auto; margin:0; }
.wh .wh-tog, .wh .wh-new { min-height:44px; padding:10px 16px; border-radius:10px; font-weight:600; font-size:14px; cursor:pointer; }
.wh .wh-tog { background:var(--card); color:var(--ink); border:1px solid var(--line); }
.wh .wh-tog:hover { border-color:color-mix(in srgb, var(--accent) 50%, var(--line)); }
.wh-order { margin:12px 0 0; }
.wh-chips { display:flex; flex-wrap:wrap; gap:4px; }
.wh-chips .wf-chip { margin:0; }
.wh-more { font-size:11px; font-weight:600; color:var(--muted); padding:2px 4px; }
.wh-sted { margin-top:14px; }
.wh-proj { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.wh-proj[hidden] { display:none; }
.wh-pl { font-size:14px; font-weight:600; }
.wh-pc { flex:1 1 16em; min-width:0; display:flex; }
.wh-pc .wch-trig { max-width:26em; }
.wh-playgo { flex:0 0 auto; }
.wp-lvfoot { display:flex; justify-content:flex-end; }
.wp-lvfoot .wp-lvsave { width:auto; min-height:44px; padding:10px 20px; }
.wp-lvfoot .wp-lvsave:disabled { opacity:.5; }
.wp-lvsec[hidden] { display:none; }
.wh-cards { list-style:none; margin:14px 0 0; padding:0; display:grid; gap:10px; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); }
.wh .wh-card { display:grid; gap:8px; width:100%; min-height:44px; padding:14px 16px; text-align:left; font:inherit; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:12px; cursor:pointer; transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.wh .wh-card:hover { border-color:color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow:0 6px 18px rgba(15,23,42,.10); }
.wh .wh-card:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.wh-ctop { display:flex; align-items:center; gap:8px; }
.wh-cn { flex:1; min-width:0; font-weight:700; font-size:15px; overflow-wrap:anywhere; }
.wh-chev { flex:none; color:var(--muted); }
.wh-cu { font-size:12px; color:var(--muted); }
.wh-empty { margin-top:12px; padding:14px 16px; border:1px dashed var(--line); border-radius:12px; font-size:14px; color:var(--muted); }
.wh-empty p { margin:0; }
.wh-own { margin-top:14px; }
.wh-own > summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-size:14px; font-weight:600; color:var(--muted); }
@media (max-width: 480px) { .wh-sec { padding:14px; border-radius:12px; } .wh-cards { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce) { .wh .wh-card { transition:none; } }
/* job-intake §49: + New workflow (the guided set-up) in the editor's space */
.gs-inline .gs-ihead { display:grid; gap:4px; justify-items:start; margin-bottom:6px; }
#settingsList .gs-inline .gs-iback { width:auto; min-height:40px; padding:6px 12px; background:var(--bg); color:var(--ink); border:1px solid var(--line); font-weight:600; }
.gs-inline .wf-body { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 18px; box-shadow:0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.05); }
.gs-inline .gs-name { width:100%; max-width:28em; margin-top:4px; }
.gs-inline .wf-next, .gs-inline .wf-save { min-height:44px; padding:10px 22px; }
.gs-inline .wf-back { background:var(--bg); color:var(--ink); border:1px solid var(--line); min-height:44px; padding:10px 18px; }
