/* ============================================================
   workhub.css — v23 "The Clean Hub": the Work Hub facelift.
   Loaded LAST so it wins over redesign.css / instrument.css without
   !important. Everything is scoped to #view-tasks. Tokens only — no
   raw colours — so light and dark come from tokens.css.

   Language: every block is a .wh-panel (hairline border, header band,
   body). Sections separate by space + the header band, never by
   colour. One signal colour (orange) for the primary action and live
   counts; red only for overdue / urgent.
   ============================================================ */

#view-tasks { --wh-gap: 20px; --wh-pad: 16px; }

/* ---------- 1 · page header ---------- */
#view-tasks .wh-top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 4px; }
#view-tasks .wh-top-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
#view-tasks .wh-top-l h2 { margin: 0; font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.015em; }
#view-tasks .wh-me { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#view-tasks .wh-pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: var(--fs-2xs); font-weight: 600; border: 1px solid var(--line);
  color: var(--ink-3); background: var(--surface); white-space: nowrap; cursor: help; }
#view-tasks .wh-pill.warn { color: var(--warn-600); background: var(--warn-bg); border-color: var(--warn-line); }
#view-tasks .task-conn { font-size: var(--fs-2xs); }
#view-tasks .wh-iconbtn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  cursor: pointer; transition: background var(--fast), color var(--fast); }
#view-tasks .wh-iconbtn:hover { background: var(--surface-2); color: var(--ink); }
#view-tasks .wh-iconbtn:focus-visible, #view-tasks .wh-profchip:focus-visible,
#view-tasks .wh-tab:focus-visible, #view-tasks .wh-stat:focus-visible { outline: none; box-shadow: var(--ring); }
#view-tasks .wh-bell-n { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--orange); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; font-family: var(--font-data); }
#view-tasks .wh-profchip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 6px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: var(--fs-sm); cursor: pointer; }
#view-tasks .wh-profchip:hover { background: var(--surface-2); }
#view-tasks .wh-prof-caret { color: var(--ink-4); display: inline-flex; }
#view-tasks .wh-newbtn { height: 36px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* the header search — icon inside the field, results drop down */
#view-tasks .wh-tsearch { position: relative; width: 300px; max-width: 100%; }
#view-tasks .wh-tsearch-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); display: inline-flex; pointer-events: none; }
#view-tasks .wh-tsearch input { width: 100%; height: 36px; padding-left: 32px; border-radius: var(--r-sm); }
#view-tasks .wh-tsearch-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 360px;
  z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: 6px; max-height: 60vh; overflow: auto; }

/* ---------- 2 · tabs (5 places + More) ---------- */
#view-tasks .wh-tabs { display: flex; align-items: flex-end; gap: 2px; margin: 14px 0 18px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#view-tasks .wh-tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; margin-bottom: -1px;
  border: none; border-bottom: 2px solid transparent; background: none; color: var(--ink-3);
  font-size: var(--fs-md); font-weight: 600; cursor: pointer; border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: color var(--fast), background var(--fast); list-style: none; }
#view-tasks .wh-tab::-webkit-details-marker { display: none; }
#view-tasks .wh-tab:hover { color: var(--ink); background: var(--surface-2); }
#view-tasks .wh-tab.on { color: var(--ink); border-bottom-color: var(--orange); }
#view-tasks .wh-tab .wh-tc { font-family: var(--font-data); font-size: var(--fs-2xs); font-weight: 600;
  padding: 1px 7px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); }
#view-tasks .wh-tab.on .wh-tc { background: var(--orange-50); color: var(--orange-600); }
#view-tasks .wh-tabmore { position: relative; }
#view-tasks .wh-tabdot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
#view-tasks .wh-tabmenu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-2);
  padding: 6px; display: flex; flex-direction: column; }
#view-tasks .wh-tabmenu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px;
  border: none; background: none; border-radius: var(--r-xs); color: var(--ink-2); font-size: var(--fs-sm);
  cursor: pointer; text-align: left; }
#view-tasks .wh-tabmenu button:hover { background: var(--surface-2); color: var(--ink); }

/* my open tickets — a quiet row, not a banner */
#view-tasks .wh-ws { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -6px 0 16px;
  padding: 0; background: none; border: none; }
#view-tasks .wh-ws-k { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2xs);
  font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); margin-right: 4px; }

/* ---------- 3 · the panel — one section shell everywhere ---------- */
#view-tasks .wh-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-1); margin: 0 0 var(--wh-gap); overflow: visible; min-width: 0; }
#view-tasks .wh-ph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px var(--wh-pad);
  border-bottom: 1px solid var(--line-2); background: var(--surface-2);
  border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; }
#view-tasks .wh-ph h3 { margin: 0; font-size: var(--fs-md); font-weight: 650; letter-spacing: -.005em; color: var(--ink); }
#view-tasks .wh-ph-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-xs);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
#view-tasks .wh-ph-n { font-family: var(--font-data); font-size: var(--fs-2xs); font-weight: 600; min-width: 22px;
  text-align: center; padding: 2px 7px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); }
#view-tasks .wh-ph-n.hot { background: var(--orange); color: #fff; }
#view-tasks .wh-ph-sub { font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-ph-link { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; background: none;
  color: var(--ink-3); font-size: var(--fs-xs); font-weight: 600; padding: 5px 9px; border-radius: var(--r-xs); cursor: pointer; }
#view-tasks .wh-ph-link:hover, #view-tasks .wh-ph-link.on { color: var(--ink); background: var(--surface); border-color: var(--line); }
#view-tasks .wh-ph-link b { font-family: var(--font-data); font-weight: 600; color: var(--ink-2); }
#view-tasks .wh-pb { padding: 14px var(--wh-pad); }
#view-tasks .wh-panel.accent { border-color: var(--orange-100); box-shadow: 0 0 0 1px var(--orange-100), var(--sh-1); }
#view-tasks .wh-panel.accent .wh-ph { background: var(--orange-50); }
#view-tasks .wh-panel.accent .wh-ph-ic { color: var(--orange-600); border-color: var(--orange-100); }
/* side-rail panels: a touch tighter */
#view-tasks .wh-panel.side { margin-bottom: 14px; }
#view-tasks .wh-panel.side .wh-ph { padding: 10px 14px; }
#view-tasks .wh-panel.side .wh-ph h3 { font-size: var(--fs-sm); }
#view-tasks .wh-panel.side .wh-ph-ic { width: 22px; height: 22px; }
#view-tasks .wh-panel.side .wh-pb { padding: 12px 14px; }
#view-tasks .wh-panel .btn.block { width: 100%; justify-content: center; }

/* ---------- 4 · My Hub layout ---------- */
#view-tasks .wh-hub { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--wh-gap); align-items: start; }
#view-tasks .wh-hub-side { position: sticky; top: 12px; gap: 0; }
@media (max-width: 1180px) { #view-tasks .wh-hub { grid-template-columns: 1fr; } #view-tasks .wh-hub-side { position: static; } }

/* the KPI strip */
#view-tasks .wh-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0 0 var(--wh-gap);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; }
#view-tasks .wh-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 18px;
  border: none; border-right: 1px solid var(--line-2); background: none; cursor: pointer; text-align: left;
  transition: background var(--fast); }
#view-tasks .wh-stat:last-child { border-right: none; }
#view-tasks .wh-stat:hover { background: var(--surface-2); }
#view-tasks .wh-stat-k { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-2xs); font-weight: 650;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
#view-tasks .wh-stat-v { font-family: var(--font-data); font-size: var(--fs-3xl); font-weight: 500; line-height: 1;
  letter-spacing: -.015em; color: var(--ink); font-feature-settings: "tnum" 1, "zero" 1; }
#view-tasks .wh-stat.zero .wh-stat-v { color: var(--ink-4); }
#view-tasks .wh-stat.hot .wh-stat-v { color: var(--orange-600); }
#view-tasks .wh-stat.bad .wh-stat-v { color: var(--bad); }
#view-tasks .wh-stat.hot { box-shadow: inset 0 3px 0 var(--orange); }
#view-tasks .wh-stat.bad { box-shadow: inset 0 3px 0 var(--bad); }
@media (max-width: 760px) { #view-tasks .wh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-tasks .wh-stat { border-bottom: 1px solid var(--line-2); } }

/* My work segmented control */
#view-tasks .wh-worktabs { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line-2); flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
#view-tasks .wh-wtab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: none;
  border-radius: var(--r-xs); background: none; color: var(--ink-3); font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer; margin: 0; }
#view-tasks .wh-wtab:hover { color: var(--ink); }
#view-tasks .wh-wtab.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); border-bottom: none; }
#view-tasks .wh-wtab .wh-tc { font-family: var(--font-data); font-size: var(--fs-3xs); padding: 1px 6px;
  border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); }
#view-tasks .wh-wtab .wh-tc.red { background: var(--bad-bg); color: var(--bad-600); }

/* grouped rows */
#view-tasks .wh-group + .wh-group { margin-top: 14px; }
#view-tasks .wh-group-h { display: flex; align-items: center; gap: 8px; padding: 0 2px 6px; margin: 0;
  font-size: var(--fs-2xs); font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line-2); }
#view-tasks .wh-group-n { font-family: var(--font-data); color: var(--ink-4); letter-spacing: 0; }
#view-tasks .wh-empty { padding: 26px 16px; text-align: center; color: var(--ink-3); font-size: var(--fs-sm);
  border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--bg-2); }

/* side rail specifics */
#view-tasks .wh-rem-add { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
#view-tasks .wh-rem-add input { width: 100%; min-width: 0; }
#view-tasks .wh-rem-add2 { display: flex; gap: 6px; }
#view-tasks .wh-rem-add2 input { flex: 1; }
#view-tasks .wh-resp-rel { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 10px; padding: 8px 10px;
  border: 1px dashed var(--line); border-radius: var(--r-sm); background: none; color: var(--ink-3);
  font-size: var(--fs-xs); cursor: pointer; text-align: left; }
#view-tasks .wh-resp-rel:hover { color: var(--ink); background: var(--surface-2); }
#view-tasks .wh-log-row { display: flex; gap: 8px; }
#view-tasks .wh-log-row input { flex: 1; min-width: 0; }

/* ---------- 5 · quick add ---------- */
#view-tasks .wh-qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-1); padding: 10px 12px 8px; margin: 0 0 var(--wh-gap);
  transition: border-color var(--fast), box-shadow var(--fast); }
#view-tasks .wh-qa:focus-within { border-color: var(--navy-500); box-shadow: var(--ring); }
#view-tasks .wh-qa-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#view-tasks .wh-qa-ic { color: var(--orange); display: inline-flex; padding-left: 4px; }
#view-tasks .wh-qa-text { flex: 1 1 280px; min-width: 0; height: 38px; border: none; background: none; outline: none;
  font-size: var(--fs-md); color: var(--ink); font-family: var(--font); }
#view-tasks .wh-qa-text::placeholder { color: var(--ink-4); }
#view-tasks .wh-qa-ctrls { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line);
  border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
#view-tasks .wh-qa-ctrls > * { height: 34px; border: none; border-right: 1px solid var(--line-2); border-radius: 0;
  background: none; color: var(--ink-2); font-size: var(--fs-sm); padding: 0 10px; font-family: var(--font); }
#view-tasks .wh-qa-ctrls > *:last-child { border-right: none; }
#view-tasks .wh-qa-who { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; max-width: 160px; }
#view-tasks .wh-qa-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-tasks .wh-qa-who.set { color: var(--ink); font-weight: 600; }
#view-tasks .wh-qa-who:hover, #view-tasks .wh-qa-ctrls select:hover, #view-tasks .wh-qa-ctrls input:hover { background: var(--surface-2); }
#view-tasks .wh-qa-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 28px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
#view-tasks .wh-qa-k { font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-4); margin-right: 4px; }
#view-tasks .wh-qa-chip, #view-tasks .wh-qa-tok { display: inline-flex; align-items: center; gap: 5px; height: 24px;
  padding: 0 9px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: var(--fs-xs); cursor: pointer; }
#view-tasks .wh-qa-chip:hover { background: var(--surface-2); color: var(--ink); }
#view-tasks .wh-qa-tok { cursor: default; background: var(--surface-2); border-color: var(--line-2); }
#view-tasks .wh-qa-tok.title { font-weight: 600; color: var(--ink); max-width: 340px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 22px; }
#view-tasks .wh-qa-tok.muted { color: var(--ink-4); }
#view-tasks .wh-qa-tok.hot { color: var(--orange-600); border-color: var(--orange-100); background: var(--orange-50); }
#view-tasks .wh-qa-enter { margin-left: auto; font-size: var(--fs-2xs); color: var(--ink-4); font-family: var(--font-data); }
#view-tasks .wh-qa-tips { font-size: var(--fs-xs); color: var(--ink-3); margin-left: auto; }
#view-tasks .wh-qa-tips summary { cursor: pointer; }
#view-tasks .wh-qa-tips[open] { flex-basis: 100%; margin-left: 0; }
#view-tasks .wh-qa-tips[open] span { display: block; margin-top: 6px; line-height: 1.6; }
#view-tasks .wh-qa .wh-who { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { #view-tasks * { transition: none !important; } }

/* ---------- 6 · polish on inherited pieces ---------- */
#view-tasks .wh-group-h { background: none; border: none; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: 0 2px 6px; box-shadow: none; }
#view-tasks .wh-panel input[type="date"], #view-tasks .wh-panel input[type="text"], #view-tasks .wh-panel select {
  font-family: var(--font); font-size: var(--fs-sm); height: 36px; }
#view-tasks .wh-resp-row .btn:not(.ghost), #view-tasks .wh-aq-acts .btn:not(.ghost) {
  background: var(--surface); color: var(--orange-600); border: 1px solid var(--orange-100); box-shadow: none; }
#view-tasks .wh-resp-row .btn:not(.ghost):hover, #view-tasks .wh-aq-acts .btn:not(.ghost):hover {
  background: var(--orange-50); }
#view-tasks .wh-resp-row { padding: 10px 0; border-bottom: 1px solid var(--line-2); gap: 10px; }
#view-tasks .wh-resp-row:first-child { padding-top: 0; }
#view-tasks .wh-resp-row:last-of-type { border-bottom: none; }

/* ---------- 7 · the New ticket form ---------- */
#view-tasks .wh-newform { width: 680px; max-width: 96vw; max-height: 92vh; display: flex; flex-direction: column;
  padding: 0; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-3);
  background: var(--surface); }
#view-tasks .wh-nf-head { padding: 16px 20px 12px; margin: 0; }
#view-tasks .wh-nf-head b { font-size: var(--fs-lg); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
#view-tasks .wh-nf-restored { margin: 0 20px 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--info-bg);
  border: 1px solid var(--info-line); color: var(--info-600); font-size: var(--fs-xs); display: flex; align-items: center; gap: 6px; }
#view-tasks .wh-newform .wh-kindrow { display: flex; gap: 6px; padding: 0 20px 14px; margin: 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-2); }
#view-tasks .wh-newform .wh-kind { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
#view-tasks .wh-newform .wh-kind:hover { background: var(--surface-2); color: var(--ink); }
#view-tasks .wh-newform .wh-kind.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
#view-tasks .wh-nf-body { overflow-y: auto; padding: 4px 20px 8px; flex: 1; }
#view-tasks .wh-fstep { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
#view-tasks .wh-fstep:last-child { border-bottom: none; }
#view-tasks .wh-fstep-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
#view-tasks .wh-fstep-h b { font-size: var(--fs-md); font-weight: 650; color: var(--ink); }
#view-tasks .wh-fstep-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-2); font-size: var(--fs-2xs); font-weight: 700; font-family: var(--font-data); flex: none; }
#view-tasks .wh-fstep-hint { font-size: var(--fs-xs); color: var(--ink-4); }
#view-tasks .wh-nf-l { display: block; font-size: var(--fs-2xs); font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-3); margin: 12px 0 6px; }
#view-tasks .wh-fstep-h + .wh-nf-l { margin-top: 0; }
#view-tasks .wh-req { color: var(--bad); }
#view-tasks .wh-opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-4); margin-left: 4px; }
#view-tasks .wh-newform input[type="text"], #view-tasks .wh-newform input[type="date"],
#view-tasks .wh-newform select, #view-tasks .wh-newform textarea {
  width: 100%; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font-family: var(--font); font-size: var(--fs-md);
  transition: border-color var(--fast), box-shadow var(--fast); box-sizing: border-box; }
#view-tasks .wh-newform textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
#view-tasks .wh-newform input:focus, #view-tasks .wh-newform select:focus, #view-tasks .wh-newform textarea:focus {
  outline: none; border-color: var(--navy-500); box-shadow: var(--ring); }
#view-tasks .wh-newform input:disabled { background: var(--surface-2); color: var(--ink-4); }
#view-tasks .wh-newform .wh-nf-title { height: 44px; font-size: var(--fs-lg); font-weight: 600; }
#view-tasks .wh-newform .bad { border-color: var(--bad) !important; box-shadow: 0 0 0 3px var(--bad-bg) !important; }
#view-tasks .wh-ferr { margin-top: 6px; font-size: var(--fs-xs); color: var(--bad-600); font-weight: 600; }
#view-tasks .wh-nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 4px; }
#view-tasks .wh-nf-grid .wh-nf-l { margin-top: 12px; }
#view-tasks .wh-nf-f { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-2xs); font-weight: 650;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
#view-tasks .wh-nf-half { max-width: calc(50% - 8px); }
#view-tasks .wh-nf-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
#view-tasks .wh-nf-chip { height: 28px; padding: 0 11px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
#view-tasks .wh-nf-chip:hover { background: var(--surface-2); color: var(--ink); }
#view-tasks .wh-nf-chip.on { background: var(--navy-50); border-color: var(--navy-500); color: var(--navy-600); }
[data-theme="dark"] #view-tasks .wh-nf-chip.on { color: var(--navy); }
#view-tasks .wh-nf-pri { display: flex; width: 100%; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--line-2); margin-bottom: 10px; }
#view-tasks .wh-nf-pri .wh-seg-b { flex: 1; height: 30px; border: none; border-radius: var(--r-xs); background: none;
  color: var(--ink-3); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
#view-tasks .wh-nf-pri .wh-seg-b.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
#view-tasks .wh-nf-pri .wh-seg-b.pri-high.on { color: var(--bad-600); }
#view-tasks .wh-nf-pri .wh-seg-b:disabled { opacity: .45; cursor: not-allowed; }
#view-tasks .wh-nf-switch { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2);
  cursor: pointer; user-select: none; margin-top: 2px; }
#view-tasks .wh-nf-switch.off { opacity: .45; }
#view-tasks .wh-nf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#view-tasks .wh-sw { width: 32px; height: 18px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line);
  position: relative; transition: background var(--fast); flex: none; }
#view-tasks .wh-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--sh-1); transition: transform var(--fast); }
#view-tasks .wh-nf-switch input:checked + .wh-sw { background: var(--bad); border-color: var(--bad); }
#view-tasks .wh-nf-switch input:checked + .wh-sw::after { transform: translateX(14px); }
#view-tasks .wh-nf-switch input:focus-visible + .wh-sw { box-shadow: var(--ring); }
#view-tasks .wh-fstep.more { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
#view-tasks .wh-fstep.more .wh-nf-grid { width: 100%; }
#view-tasks .wh-fstep.more .wh-fset-toggle { width: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--r-sm); border: 1px dashed var(--line); background: none; color: var(--ink-3);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
#view-tasks .wh-fstep.more .wh-fset-toggle:hover { color: var(--ink); background: var(--surface-2); }
#view-tasks .wh-newform .wh-subrow { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 6px; }
#view-tasks .wh-subrow-n { font-family: var(--font-data); font-size: var(--fs-2xs); color: var(--ink-4); width: 16px; text-align: right; }
#view-tasks .wh-nf-foot { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 20px;
  border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
#view-tasks .wh-nf-kbd { font-size: var(--fs-2xs); color: var(--ink-4); }
#view-tasks .wh-nf-kbd kbd { font-family: var(--font-data); font-size: 10px; padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); }
#view-tasks .wh-newform .wh-who { display: flex; flex-wrap: wrap; gap: 6px; }
#view-tasks .wh-who-chip { height: 30px; border-radius: var(--r-pill); }
@media (max-width: 640px) { #view-tasks .wh-nf-grid { grid-template-columns: 1fr; } #view-tasks .wh-nf-half { max-width: none; }
  #view-tasks .wh-nf-kbd { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 8 · Board: toolbar, views, workload ---------- */
#view-tasks .wh-btool { padding: 0; }
#view-tasks .wh-btool-r1 { padding: 12px var(--wh-pad); border-bottom: 1px solid var(--line-2); }
#view-tasks .wh-btool-r2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px var(--wh-pad);
  background: var(--surface-2); border-radius: 0 0 calc(var(--r) - 1px) calc(var(--r) - 1px); }
#view-tasks .wh-views { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#view-tasks .wh-view { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); overflow: hidden; }
#view-tasks .wh-view button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: none;
  background: none; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
#view-tasks .wh-view button b { font-family: var(--font-data); font-weight: 600; font-size: var(--fs-2xs); color: var(--ink-4); }
#view-tasks .wh-view:hover { background: var(--surface-2); }
#view-tasks .wh-view.on { background: var(--ink); border-color: var(--ink); }
#view-tasks .wh-view.on button { color: var(--surface); }
#view-tasks .wh-view.on button b { color: var(--surface); opacity: .7; }
#view-tasks .wh-view.bad:not(.on) button b { color: var(--bad); }
#view-tasks .wh-view .wh-view-x { padding: 0 10px 0 2px; font-size: 15px; }
#view-tasks .wh-view-save { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px;
  border: 1px dashed var(--line); border-radius: var(--r-pill); background: none; color: var(--ink-3);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
#view-tasks .wh-view-save:hover { color: var(--ink); background: var(--surface); }
#view-tasks .wh-bsearch { position: relative; width: 320px; max-width: 100%; }
#view-tasks .wh-bsearch input { width: 100%; height: 34px; padding-left: 32px; }
#view-tasks .wh-bgroup { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
#view-tasks .wh-bgroup select { height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-family: var(--font); font-size: var(--fs-sm); padding: 0 8px; }
#view-tasks .wh-modeseg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--surface);
  border: 1px solid var(--line); overflow: visible; }
#view-tasks .wh-modeseg .wh-seg-b { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: var(--r-xs); background: none; color: var(--ink-3); font-size: var(--fs-sm); }
#view-tasks .wh-modeseg .wh-seg-b.on { background: var(--surface-3); color: var(--ink); }
#view-tasks .wh-week { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; padding: 0;
  background: none; border: none; font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-week-k { font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
#view-tasks .wh-week-seg { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; padding: 0;
  color: var(--ink-3); font-size: var(--fs-xs); cursor: default; }
#view-tasks button.wh-week-seg { cursor: pointer; }
#view-tasks .wh-week-seg b { font-family: var(--font-data); color: var(--ink); }
#view-tasks .wh-week-seg.bad b, #view-tasks .wh-week-seg.bad { color: var(--bad); }

#view-tasks .wh-loads { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 var(--wh-gap); }
#view-tasks .wh-load { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1);
  transition: border-color var(--fast), box-shadow var(--fast); font-family: var(--font); }
#view-tasks .wh-load:hover { border-color: var(--navy-500); }
#view-tasks .wh-load.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
#view-tasks .wh-load-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink); }
#view-tasks .wh-load-n { font-family: var(--font-data); font-size: var(--fs-xl); font-weight: 500; color: var(--ink); }
#view-tasks .wh-load-bar { position: relative; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
#view-tasks .wh-load-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy-500); border-radius: 3px; }
#view-tasks .wh-load-bar i.late { background: var(--bad); }
#view-tasks .wh-load-m { font-size: var(--fs-2xs); color: var(--ink-3); }
#view-tasks .wh-load-m .bad { color: var(--bad); font-weight: 600; }
#view-tasks .wh-load-m .warn { color: var(--warn); font-weight: 600; }
#view-tasks .wh-load-manage { align-items: center; justify-content: center; flex-direction: row; color: var(--ink-3);
  border-style: dashed; box-shadow: none; font-size: var(--fs-sm); font-weight: 600; }
#view-tasks .wh-dot-open { background: var(--surface-3) !important; color: var(--ink-3); display: inline-grid; place-items: center; }

/* bulk bar — sticks to the top while you scroll the table */
#view-tasks .wh-bulk { position: sticky; top: 8px; z-index: 30; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--ink); color: var(--surface);
  box-shadow: var(--sh-3); }
#view-tasks .wh-bulk label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--surface); opacity: .9; }
#view-tasks .wh-bulk select, #view-tasks .wh-bulk input { height: 30px; border-radius: var(--r-xs); border: 1px solid transparent;
  background: var(--surface); color: var(--ink); font-family: var(--font); font-size: var(--fs-sm); padding: 0 6px; }
#view-tasks .wh-bulk .btn.ghost { background: transparent; color: var(--surface); border-color: rgba(255,255,255,.3); }
[data-theme="dark"] #view-tasks .wh-bulk .btn.ghost { border-color: rgba(0,0,0,.25); }

/* ---------- 9 · the table ---------- */
#view-tasks .wh-board-list { overflow: hidden; }
#view-tasks .wh-tablewrap { overflow-x: auto; }
#view-tasks .wh-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
#view-tasks .wh-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-align: left;
  border-bottom: 1px solid var(--line); padding: 0; font-weight: 650; white-space: nowrap; }
#view-tasks .wh-table thead th button { display: inline-flex; align-items: center; gap: 5px; width: 100%; padding: 10px 10px;
  border: none; background: none; color: var(--ink-3); font-size: var(--fs-2xs); font-weight: 650; letter-spacing: .05em;
  text-transform: uppercase; cursor: pointer; text-align: left; }
#view-tasks .wh-table thead th button:hover, #view-tasks .wh-table thead th.sorted button { color: var(--ink); }
#view-tasks .wh-sort { font-size: 9px; color: var(--ink-4); }
#view-tasks .wh-table th.sorted .wh-sort { color: var(--orange); }
#view-tasks .wh-table .c-sel { width: 38px; padding: 0 0 0 14px; }
#view-tasks .wh-table thead .c-sel { padding: 10px 0 10px 14px; }
#view-tasks .wh-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--orange); cursor: pointer; margin: 0; }
#view-tasks .wh-table .c-tk { width: 80px; }
#view-tasks .wh-table .c-owner { width: 150px; }
#view-tasks .wh-table .c-due { width: 104px; }
#view-tasks .wh-table .c-pri { width: 96px; }
#view-tasks .wh-table .c-st { width: 136px; }
#view-tasks .wh-table .c-upd { width: 88px; color: var(--ink-3); font-size: var(--fs-xs); white-space: nowrap; }
#view-tasks .wh-table .c-act { width: 128px; text-align: right; padding-right: 12px; }
#view-tasks .wh-table tbody td { padding: 10px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
#view-tasks .wh-tr { cursor: pointer; transition: background var(--fast); }
#view-tasks .wh-tr:hover td { background: var(--surface-2); }
#view-tasks .wh-tr.sel td { background: var(--orange-50); }
#view-tasks .wh-tr.kbd td:first-child, #view-tasks .wh-tr.over td:first-child { box-shadow: inset 3px 0 0 var(--navy-500); }
#view-tasks .wh-tr.over td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
#view-tasks .wh-tr.kbd td { background: var(--navy-50); }
#view-tasks .wh-tr.stale .wh-tt-t { color: var(--ink-3); }
#view-tasks .wh-tt { display: flex; align-items: center; gap: 6px; }
#view-tasks .wh-tt-t { font-weight: 600; color: var(--ink); line-height: 1.35; }
#view-tasks .wh-tt .wh-flag { color: var(--bad); display: inline-flex; }
#view-tasks .wh-ts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-ts:empty { display: none; }
#view-tasks .wh-own { margin-left: 6px; color: var(--ink-2); }
#view-tasks .c-owner { white-space: nowrap; }
#view-tasks .c-owner .wh-dots { vertical-align: middle; }
#view-tasks .wh-muted { color: var(--ink-4); }
#view-tasks .wh-pri { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--ink-2); }
#view-tasks .wh-pri i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink-4); }
#view-tasks .wh-pri.p-high { color: var(--bad-600); font-weight: 600; }
#view-tasks .wh-pri.p-high i { background: var(--bad); }
#view-tasks .wh-pri.p-med i { background: var(--warn); }
#view-tasks .wh-pri.p-low { color: var(--ink-3); }
#view-tasks .wh-pri.p-low i { background: var(--line); }
#view-tasks .wh-row-st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: var(--fs-2xs); font-weight: 650; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
#view-tasks .wh-row-st.st-doing { background: var(--info-bg); color: var(--info-600); }
#view-tasks .wh-row-st.st-review { background: var(--warn-bg); color: var(--warn-600); }
#view-tasks .wh-row-st.st-waiting { background: var(--surface-3); color: var(--ink-3); }
#view-tasks .wh-row-st.st-done { background: var(--good-bg); color: var(--good-600); }
#view-tasks .wh-tacts { display: inline-flex; align-items: center; gap: 4px; opacity: 0; transition: opacity var(--fast); }
#view-tasks .wh-tr:hover .wh-tacts, #view-tasks .wh-tr.kbd .wh-tacts, #view-tasks .wh-tr:focus-within .wh-tacts { opacity: 1; }
#view-tasks .wh-tact { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
#view-tasks .wh-tact:hover { color: var(--good); border-color: var(--good-line); background: var(--good-bg); }
#view-tasks .wh-tgroup td { padding: 0 !important; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
#view-tasks .wh-tgroup button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 14px; border: none;
  background: none; cursor: pointer; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
#view-tasks .wh-caret { color: var(--ink-4); width: 10px; }
@media (max-width: 900px) { #view-tasks .wh-table .c-upd, #view-tasks .wh-table .c-tk, #view-tasks .wh-table .c-pri { display: none; } }

/* My Hub rows: the keyboard cursor */
#view-tasks .wh-row.kbd, #view-tasks .wh-card.kbd { background: var(--navy-50); box-shadow: inset 3px 0 0 var(--navy-500); }

/* ---------- 10 · the ticket record (detail panel) ---------- */
#view-tasks .wh-detail.wh-rec { width: min(1080px, 96vw); max-width: 96vw; padding: 0 0 0; display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--sh-3); }
#view-tasks .wh-rec > .wh-detail-head { padding: 16px 24px 8px; margin: 0; position: sticky; top: 0; z-index: 3; background: var(--surface); }
#view-tasks .wh-rec > .wh-detail-title { margin: 0 24px; width: calc(100% - 48px); font-size: var(--fs-xl); font-weight: 700;
  border-bottom: 1px solid var(--line-2); padding: 6px 0 12px; background: none; color: var(--ink); }
#view-tasks .wh-rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; flex: 1; align-items: start; }
#view-tasks .wh-rec-main { padding: 18px 24px 24px; min-width: 0; }
#view-tasks .wh-rec-side { padding: 18px 20px 24px; border-left: 1px solid var(--line-2); background: var(--bg-2); min-height: 100%;
  align-self: stretch; }
#view-tasks .wh-rec-h { font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-4); margin: 18px 0 8px; }
#view-tasks .wh-rec-side > .wh-rec-h:first-child { margin-top: 0; }
#view-tasks .wh-rec-side .wh-detail-grid, #view-tasks .wh-rec-side .wh-detail-grid.four { grid-template-columns: 1fr 1fr; gap: 10px; }
#view-tasks .wh-rec-side .wh-fset { margin: 14px 0 0; padding: 0; border: none; background: none; }
#view-tasks .wh-rec-side .wh-fset-h { font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
#view-tasks .wh-rec-side .wh-who { display: flex; flex-wrap: wrap; gap: 6px; }
#view-tasks .wh-rec-side .wh-fset-toggle { margin-top: 14px; width: 100%; text-align: left; }
#view-tasks .wh-rec-side .wh-detail-actions.route { flex-direction: column; align-items: stretch; gap: 6px; }
#view-tasks .wh-rec-side .wh-detail-actions.route > .btn { justify-content: flex-start; width: 100%; }
#view-tasks .wh-rec-side .wh-more { width: 100%; }
#view-tasks .wh-rec-side .wh-more > summary { width: 100%; justify-content: center; }
#view-tasks .wh-rec .wh-solvebar { position: sticky; bottom: 0; z-index: 3; margin: 0; padding: 12px 24px;
  border-top: 1px solid var(--line); background: var(--surface); }
@media (max-width: 900px) { #view-tasks .wh-rec-grid { grid-template-columns: 1fr; }
  #view-tasks .wh-rec-side { border-left: none; border-top: 1px solid var(--line-2); } }

/* ---------- 11 · the other tabs inside panels ---------- */
#view-tasks .c-owner .wh-pend { margin-left: 5px; color: var(--warn); display: inline-flex; vertical-align: middle; }
#view-tasks .wh-queuepanel .section-head { margin: 0 0 12px; padding: 0; border: none; }
#view-tasks .wh-act-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
#view-tasks .wh-act-title { display: flex; align-items: baseline; gap: 10px; }
#view-tasks .wh-act-title h3 { margin: 0; font-size: var(--fs-lg); font-weight: 650; }
#view-tasks .wh-donepanel .wh-bsearch { width: 260px; }
#view-tasks .wh-donepanel .wh-bsearch input { height: 32px; }
#view-tasks .wh-decide-row { border-radius: var(--r-sm); }
#view-tasks .wh-panel .wh-decide { display: flex; flex-direction: column; gap: 6px; }
#view-tasks .wh-panel > .wh-pb > .wh-cards { margin: 0; }
#view-tasks .statbar { margin-bottom: var(--wh-gap); }
#view-tasks .wh-panel input[type="date"], #view-tasks .wh-panel input[type="text"], #view-tasks .wh-panel input[type="search"] {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 10px;
  color-scheme: light; }
[data-theme="dark"] #view-tasks input[type="date"] { color-scheme: dark; }
#view-tasks .wh-panel .wh-bsearch input, #view-tasks .wh-tsearch input { padding-left: 32px; }

/* ---------- 12 · narrow screens ---------- */
@media (max-width: 640px) {
  #view-tasks .wh-row { flex-wrap: wrap; }
  #view-tasks .wh-row-main { flex: 1 1 calc(100% - 40px); min-width: 0; }
  #view-tasks .wh-row-meta { flex: 1 1 100%; justify-content: flex-start; padding-left: 32px; }
  #view-tasks .wh-row-acts { display: none; }
  #view-tasks .wh-tsearch { width: 100%; }
  #view-tasks .wh-qa-ctrls { flex: 1 1 100%; }
  #view-tasks .wh-qa-ctrls > * { flex: 1; }
}

/* ============================================================
   v24 "Zen Desk" — accents, collapse, checklist, team, standby, drafts
   ============================================================ */
#view-tasks .wh-panel { --acc: var(--line); position: relative; }
#view-tasks .wh-panel[class*="acc-"] { border-left: 3px solid var(--acc); }
#view-tasks .wh-panel[class*="acc-"] > .wh-ph { background: color-mix(in srgb, var(--acc) 7%, var(--surface)); }
#view-tasks .wh-panel[class*="acc-"] .wh-ph-ic { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 30%, var(--line)); }
#view-tasks .acc-navy { --acc: var(--c-navy); }
#view-tasks .acc-orange { --acc: var(--orange); }
#view-tasks .acc-violet { --acc: var(--c-violet); }
#view-tasks .acc-amber { --acc: var(--c-amber); }
#view-tasks .acc-teal { --acc: var(--c-teal); }
#view-tasks .acc-sky { --acc: var(--c-navy-2); }
#view-tasks .acc-green { --acc: var(--c-green); }
#view-tasks .acc-rose { --acc: var(--c-rose); }
#view-tasks .acc-slate { --acc: var(--c-slate); }
[data-theme="dark"] #view-tasks .wh-panel[class*="acc-"] > .wh-ph { background: color-mix(in srgb, var(--acc) 12%, var(--surface)); }
#view-tasks .wh-panel.accent, #view-tasks .wh-panel.accent .wh-ph { box-shadow: var(--sh-1); }
#view-tasks .wh-ph[data-act^="pcollapse"] { cursor: pointer; user-select: none; }
#view-tasks .wh-ph[data-act^="pcollapse"]:focus-visible { outline: none; box-shadow: var(--ring); }
#view-tasks .wh-ph-caret { color: var(--ink-4); display: inline-flex; }
#view-tasks .wh-panel.closed > .wh-ph { border-bottom: none; border-radius: calc(var(--r) - 1px); }
#view-tasks .wh-ph-n.good { background: var(--good-bg); color: var(--good-600); }
#view-tasks .wh-ph .wh-worktabs { margin: 0; padding: 2px; }
#view-tasks .wh-ph .wh-wtab { padding: 4px 10px; font-size: var(--fs-xs); }
#view-tasks .wh-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { #view-tasks .wh-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#view-tasks .wh-qa-foot.empty { display: none; }
#view-tasks .wh-qa { padding-bottom: 10px; }

/* daily checklist */
#view-tasks .wh-q { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px auto; align-items: center; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--line-2); }
#view-tasks .wh-q-l { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
#view-tasks .wh-q-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
#view-tasks .wh-q-bar i { display: block; height: 100%; background: var(--c-green); border-radius: 4px; transition: width var(--med); }
#view-tasks .wh-q-n { font-family: var(--font-data); font-size: var(--fs-sm); color: var(--ink-3); text-align: right; }
#view-tasks .wh-q-n b { color: var(--ink); font-weight: 600; }
#view-tasks .wh-q.met .wh-q-n b { color: var(--good); }
#view-tasks .wh-q-btns { display: inline-flex; gap: 4px; }
#view-tasks .wh-daily-send { margin-top: 12px; }
#view-tasks .wh-daily-sent { margin-top: 8px; font-size: var(--fs-xs); color: var(--good); display: inline-flex; align-items: center; gap: 6px; }

/* team today */
#view-tasks .wh-mates { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
#view-tasks .wh-mate { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px; background: var(--bg-2); }
#view-tasks .wh-mate-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
#view-tasks .wh-mate-n { font-family: var(--font-data); font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-mate-daily { margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-4); }
#view-tasks .wh-mate-daily.in { color: var(--good-600); font-weight: 600; }
#view-tasks .wh-mate-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
#view-tasks .wh-mate-t { text-align: left; border: none; background: none; padding: 4px 0; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
#view-tasks .wh-mate-t:hover { color: var(--ink); }

/* standby */
#view-tasks .wh-sb-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 90px 56px auto; align-items: center; gap: 12px;
  padding: 10px 6px; border-bottom: 1px solid var(--line-2); cursor: pointer; border-radius: var(--r-xs); }
#view-tasks .wh-sb-row:hover { background: var(--surface-2); }
#view-tasks .wh-sb-row.kbd { background: var(--navy-50); }
#view-tasks .wh-sb-main { min-width: 0; }
#view-tasks .wh-sb-age { font-family: var(--font-data); font-size: var(--fs-xs); color: var(--ink-4); text-align: right; }
#view-tasks .wh-sb-acts { display: inline-flex; align-items: center; gap: 6px; }
#view-tasks .wh-sb-date { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line);
  border-radius: var(--r-xs); color: var(--ink-2); cursor: pointer; background: var(--surface); }
#view-tasks .wh-sb-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 760px) { #view-tasks .wh-sb-row { grid-template-columns: minmax(0, 1fr) auto; } #view-tasks .wh-sb-row .wh-row-tk,
  #view-tasks .wh-sb-who, #view-tasks .wh-sb-age { display: none; } }

/* drafts menu */
#view-tasks .wh-drafts { position: relative; }
#view-tasks .wh-drafts > summary { list-style: none; height: 36px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
#view-tasks .wh-drafts > summary::-webkit-details-marker { display: none; }
#view-tasks .wh-drafts-menu { right: 0; left: auto; min-width: 280px; }
#view-tasks .wh-draft-row { display: flex; align-items: center; gap: 4px; }
#view-tasks .wh-draft-open { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: none;
  background: none; padding: 8px 10px; border-radius: var(--r-xs); cursor: pointer; color: var(--ink); font-size: var(--fs-sm); }
#view-tasks .wh-draft-open:hover { background: var(--surface-2); }
#view-tasks .wh-draft-open .wh-muted { font-size: var(--fs-2xs); font-family: var(--font-data); }

/* ticket record bits */
#view-tasks .wh-saved { font-size: var(--fs-xs); color: var(--good); opacity: 0; transition: opacity var(--fast); }
#view-tasks .wh-saved.on { opacity: 1; }
#view-tasks .wh-sendback { gap: 8px; }
#view-tasks .wh-sendback input { flex: 1; height: 36px; }
#view-tasks .wh-sendback input.bad { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
#view-tasks .wh-detcat select, #view-tasks .wh-rec-side select { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font-family: var(--font); font-size: var(--fs-sm); padding: 0 8px; }
#view-tasks .wh-newcat { margin-top: 10px; }
#view-tasks .wh-rec-side .wh-newcat { grid-template-columns: 1fr; }
#view-tasks .wh-rec-side .wh-newcat input { height: 34px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); padding: 0 8px; }
#view-tasks .wh-profpanel .wh-log-row input { height: 36px; }

/* ---------- v24.1 announcements ---------- */
#view-tasks .wh-ann-in { width: 100%; height: 40px; font-size: var(--fs-md); font-weight: 600; margin-bottom: 8px; }
#view-tasks .wh-ann-post .wh-bull-notes { width: 100%; min-height: 64px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); padding: 10px 12px; font-family: var(--font); font-size: var(--fs-sm); resize: vertical; box-sizing: border-box; }
#view-tasks .wh-ann-in.bad { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
#view-tasks .wh-ann-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
#view-tasks .wh-until { margin: 0; align-items: center; }
#view-tasks .wh-until input[type="date"] { height: 30px; width: auto; }
#view-tasks .wh-ann-tabs { margin: 0 0 14px; }
#view-tasks .wh-ann-list { display: flex; flex-direction: column; gap: 12px; }
#view-tasks .wh-ann { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c-violet); border-radius: var(--r);
  box-shadow: var(--sh-1); padding: 14px 16px; }
#view-tasks .wh-ann.pinned { border-left-color: var(--orange); }
#view-tasks .wh-ann.unread { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-violet) 35%, transparent), var(--sh-1); }
#view-tasks .wh-ann.done { border-left-color: var(--line); background: var(--bg-2); box-shadow: none; }
#view-tasks .wh-ann.done .wh-ann-t { color: var(--ink-2); }
#view-tasks .wh-ann-h { display: flex; align-items: center; gap: 8px; }
#view-tasks .wh-ann-t { font-size: var(--fs-md); font-weight: 650; color: var(--ink); }
#view-tasks .wh-ann-pin { color: var(--orange); display: inline-flex; }
#view-tasks .wh-ann-until { font-size: var(--fs-2xs); font-weight: 650; padding: 3px 9px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--c-violet) 12%, var(--surface)); color: var(--c-violet); white-space: nowrap; }
#view-tasks .wh-ann-until.perm { background: var(--surface-3); color: var(--ink-2); }
#view-tasks .wh-ann.done .wh-ann-until { background: var(--surface-3); color: var(--ink-3); }
#view-tasks .wh-ann-body { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; white-space: pre-wrap; }
#view-tasks .wh-ann-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-ann-read { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
#view-tasks .wh-ann-read.ok { color: var(--good); }
#view-tasks .wh-ann-more { position: relative; }
#view-tasks .wh-ann-more .wh-more-menu { right: 0; left: auto; }
#view-tasks .wh-ann-ext { position: relative; cursor: pointer; }
#view-tasks .wh-ann-ext input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- v26 the universal Add: Work | Capture groups, destination, Saved card ---------- */
#view-tasks .wh-newform .wh-kindgroups { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 14px;
  border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
#view-tasks .wh-newform .wh-kindgroups .wh-kindrow { padding: 0; align-items: center; border-bottom: 0; }
#view-tasks .wh-newform .wh-kind-l { width: 64px; flex: 0 0 auto; font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-4); }
#view-tasks .wh-newform .wh-nf-sub { margin-bottom: 10px; }
#view-tasks .wh-newform .wh-nf-dest { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 10px;
  border-radius: var(--r-sm); background: var(--navy-50); color: var(--c-navy); font-size: var(--fs-xs); font-weight: 600; }
#view-tasks .wh-newform select#wh-n-team { width: 100%; }
#view-tasks .wh-newform select#wh-n-team.bad { border-color: var(--bad); }
#view-tasks .wh-saved .wh-saved-t { font-size: var(--fs-lg); font-weight: 650; color: var(--ink); margin: 4px 0 12px; }
#view-tasks .wh-saved .wh-saved-l { display: flex; flex-direction: column; gap: 6px; }
#view-tasks .wh-saved .wh-saved-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-2); font-size: var(--fs-sm); color: var(--ink); }
#view-tasks .wh-saved .wh-saved-row svg { color: var(--c-green); flex: 0 0 auto; }
#view-tasks .wh-saved .wh-nf-head svg { color: var(--c-green); vertical-align: -3px; }
@media (max-width: 640px) {
  #view-tasks .wh-newform .wh-kind-l { width: 100%; }
}
#view-tasks .wh-newform .wh-kindgroups .wh-kindrow { flex-wrap: nowrap; align-items: flex-start; }
#view-tasks .wh-newform .wh-kind-l { padding-top: 9px; }
#view-tasks .wh-newform .wh-kind-set { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
@media (max-width: 640px) { #view-tasks .wh-newform .wh-kindgroups .wh-kindrow { flex-wrap: wrap; } }

/* ============================================================
   v27 — End of day · Replies · Send to… · Team · announce on solve
   ============================================================ */
#view-tasks .wh-nmbtn { height: 36px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* Replies (My tasks, near the top) */
#view-tasks .wh-rp-rows { display: flex; flex-direction: column; gap: 2px; }
#view-tasks .wh-rp-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 8px 10px;
  border: 1px solid transparent; border-radius: var(--r-sm); background: none; color: var(--ink); cursor: pointer; }
#view-tasks .wh-rp-row:hover { background: var(--surface-2); border-color: var(--line-2); }
#view-tasks .wh-rp-row:focus-visible { outline: none; box-shadow: var(--ring); }
#view-tasks .wh-rp-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
#view-tasks .wh-rp-line { font-size: var(--fs-sm); color: var(--ink-2); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
#view-tasks .wh-rp-tk { font-family: var(--font-data); color: var(--ink); }
#view-tasks .wh-rp-when { margin-left: auto; font-family: var(--font-data); font-size: var(--fs-2xs); color: var(--ink-4); white-space: nowrap; }
#view-tasks .wh-rp-t { font-size: var(--fs-xs); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-tasks .wh-rp-msg { color: var(--ink-2); }

/* End of day — side panel + list rows */
#view-tasks .wh-eod-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; text-align: left;
  padding: 8px 10px; margin-bottom: 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); cursor: pointer; font-size: var(--fs-sm); }
#view-tasks .wh-eod-row:hover { background: var(--surface-2); border-color: var(--line); }
#view-tasks .wh-eod-row:focus-visible { outline: none; box-shadow: var(--ring); }
#view-tasks .wh-eod-row.sent_back { border-left: 3px solid var(--c-amber); }
#view-tasks .wh-eod-day { font-weight: 600; color: var(--ink-2); }
#view-tasks .wh-eod-nums { font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-eod-time { font-family: var(--font-data); font-size: var(--fs-2xs); color: var(--ink-4); white-space: nowrap; }
#view-tasks .wh-eod-q { font-size: var(--fs-xs); color: var(--warn-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
#view-tasks .wh-eodp .wh-eod-q { flex-basis: 100%; max-width: none; }
#view-tasks .wh-eod-st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: var(--fs-2xs); font-weight: 650; white-space: nowrap; background: var(--surface-3); color: var(--ink-3); }
#view-tasks .wh-eod-st.st-submitted { background: var(--info-bg); color: var(--info-600); }
#view-tasks .wh-eod-st.st-sent_back { background: var(--warn-bg); color: var(--warn-600); }
#view-tasks .wh-eod-st.st-signed_off { background: var(--good-bg); color: var(--good-600); }
#view-tasks .wh-finalize { margin-top: 6px; height: 38px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
#view-tasks .wh-eod-hint { margin-top: 6px; font-size: var(--fs-2xs); color: var(--ink-4); text-align: center; }
#view-tasks .wh-teambar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }

/* the Finalize day form + the report reader */
#view-tasks .wh-eodm, #view-tasks .wh-eodv { width: 760px; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
#view-tasks .wh-eodm > .wh-detail-head, #view-tasks .wh-eodv > .wh-detail-head { padding: 16px 20px 12px; margin: 0;
  border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
#view-tasks .wh-eod-range { color: var(--ink-3); font-size: var(--fs-sm); margin-right: auto; }
#view-tasks .wh-eodv .wh-eod-st { margin-right: 4px; }
#view-tasks .wh-eodm-body { flex: 1; overflow-y: auto; padding: 14px 20px 6px; min-height: 0; }
#view-tasks .wh-eodm-body .wh-panel { margin-bottom: 12px; }
#view-tasks .wh-eodm-body .wh-panel .wh-pb { padding: 10px 14px; }
#view-tasks .wh-eodm-foot { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line-2); background: var(--surface);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#view-tasks .wh-eod-sum { font-size: var(--fs-xs); }
#view-tasks .wh-eod-when { display: flex; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
#view-tasks .wh-eod-when label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
#view-tasks .wh-eod-when input { height: 32px; }
#view-tasks .wh-eod-done { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 6px 4px; border-bottom: 1px solid var(--line-2); cursor: pointer; font-size: var(--fs-sm); }
#view-tasks .wh-eod-done:last-child { border-bottom: none; }
#view-tasks .wh-eod-done.off .wh-eod-dt { color: var(--ink-4); text-decoration: line-through; }
#view-tasks .wh-eod-done input { width: 16px; height: 16px; accent-color: var(--c-green); }
#view-tasks .wh-eod-dt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
#view-tasks .wh-eod-prog { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line-2); }
#view-tasks .wh-eod-prog .wh-eod-pn { grid-column: 1 / -1; }
#view-tasks .wh-eod-prog.off .wh-eod-pn { opacity: .75; }
#view-tasks .wh-eod-pt { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-tasks .wh-eod-prog input, #view-tasks .wh-eod-x input { height: 32px; min-width: 0; width: 100%; }
#view-tasks .wh-iconbtn.sm { width: 30px; height: 30px; }
#view-tasks .wh-eod-find { position: relative; }
#view-tasks .wh-eod-find .wh-tsearch-ic { left: 10px; }
#view-tasks .wh-eod-find input { width: 100%; height: 34px; padding-left: 30px; }
#view-tasks .wh-eod-res { left: 0; right: auto; width: 100%; min-width: 0; }
#view-tasks .wh-eod-x { display: grid; grid-template-columns: auto minmax(0, 1fr) 64px auto; align-items: center; gap: 8px; margin-bottom: 6px; }
#view-tasks .wh-eod-types { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); }
#view-tasks .wh-eod-type { border: none; background: none; padding: 5px 8px; border-radius: var(--r-xs); font-size: var(--fs-2xs);
  font-weight: 650; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
#view-tasks .wh-eod-type:hover { color: var(--ink); }
#view-tasks .wh-eod-type.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
#view-tasks .wh-eod-type:focus-visible { outline: none; box-shadow: var(--ring); }
#view-tasks .wh-eod-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); }
#view-tasks .wh-eod-line:last-child { border-bottom: none; }
#view-tasks .wh-eod-line .wh-eod-dt { flex: 1; white-space: normal; }
#view-tasks .wh-eod-line button.wh-row-tk { border: none; background: none; padding: 0; cursor: pointer; text-decoration: underline dotted; }
#view-tasks .wh-eod-line button.wh-row-tk:disabled { cursor: default; text-decoration: none; }
#view-tasks .wh-eod-note { display: block; color: var(--ink-3); font-size: var(--fs-xs); margin-top: 2px; }
#view-tasks .wh-eod-chip { display: inline-flex; height: 20px; align-items: center; padding: 0 8px; border-radius: var(--r-pill);
  font-size: var(--fs-2xs); font-weight: 650; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
#view-tasks .wh-eod-count { font-family: var(--font-data); font-size: var(--fs-xs); color: var(--ink-2); }
#view-tasks .wh-eod-notes { white-space: pre-wrap; font-size: var(--fs-sm); color: var(--ink); }
#view-tasks .wh-eod-thread { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
#view-tasks .wh-eodm-body .wh-panel .wh-eod-thread { margin: 0; }
#view-tasks .wh-eod-msg { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--surface-2); border-left: 3px solid var(--line); font-size: var(--fs-sm); }
#view-tasks .wh-eod-msg.q { border-left-color: var(--c-amber); background: var(--warn-bg); }
#view-tasks .wh-eod-msg.ok { border-left-color: var(--c-green); background: var(--good-bg); }
#view-tasks .wh-eod-msg-h { font-size: var(--fs-xs); }
#view-tasks .wh-eod-msg-t { white-space: pre-wrap; color: var(--ink); }
#view-tasks .wh-eod-ask { flex: 1; min-width: 180px; height: 36px; }
#view-tasks .wh-eod-ask.bad { border-color: var(--bad); }
@media (max-width: 640px) {
  #view-tasks .wh-eod-prog { grid-template-columns: auto minmax(0, 1fr) auto; }
  #view-tasks .wh-eod-x { grid-template-columns: minmax(0, 1fr) 56px auto; }
  #view-tasks .wh-eod-types { grid-column: 1 / -1; overflow-x: auto; max-width: 100%; }
  #view-tasks .wh-eodm-body { padding: 12px 16px 4px; }
  #view-tasks .wh-eodm-foot, #view-tasks .wh-eodm > .wh-detail-head, #view-tasks .wh-eodv > .wh-detail-head { padding-left: 16px; padding-right: 16px; }
}

/* Send to… */
#view-tasks .wh-send-t { margin: 0 0 12px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
#view-tasks .wh-send-who { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
#view-tasks .wh-send-mode { display: flex; margin-bottom: 10px; }
#view-tasks .wh-send-mode .wh-seg-b { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* Announce on solve — the detail footer + the post-solve strip */
#view-tasks .wh-solvebar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#view-tasks .wh-solve-ann { white-space: nowrap; }
#view-tasks .wh-nf-switch.wh-solve-ann input:checked + .wh-sw { background: var(--c-violet); border-color: var(--c-violet); }
#view-tasks .wh-solve-ann-in { flex: 1; min-width: 160px; height: 34px; }
#view-tasks .wh-solved { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 8px 12px;
  border: 1px solid var(--good-line); border-left: 3px solid var(--c-green); border-radius: var(--r-sm); background: var(--good-bg); }
#view-tasks .wh-solved-k { display: inline-flex; align-items: center; gap: 6px; color: var(--good-600); font-size: var(--fs-sm); }
#view-tasks .wh-solved input { flex: 1; min-width: 180px; height: 32px; }

/* Team — people + the activity feed */
#view-tasks .wh-team { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--wh-gap); align-items: start; }
#view-tasks .wh-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
#view-tasks .wh-team-grid .wh-panel { margin: 0; }
#view-tasks .wh-team-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 4px;
  border: none; border-bottom: 1px solid var(--line-2); background: none; color: var(--ink); cursor: pointer; font-size: var(--fs-sm); }
#view-tasks .wh-team-row:last-child { border-bottom: none; }
#view-tasks .wh-team-row:hover { background: var(--surface-2); }
#view-tasks .wh-team-row:focus-visible { outline: none; box-shadow: var(--ring); }
#view-tasks .wh-team-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-tasks .wh-feedline { display: flex; align-items: flex-start; gap: 8px; width: 100%; text-align: left; padding: 7px 4px;
  border: none; border-bottom: 1px solid var(--line-2); background: none; color: var(--ink-2); cursor: pointer; font-size: var(--fs-sm); }
#view-tasks .wh-feedline:last-child { border-bottom: none; }
#view-tasks .wh-feedline:hover { background: var(--surface-2); }
#view-tasks .wh-feedline-t { flex: 1; min-width: 0; }
#view-tasks .wh-feedline-t .wh-muted { display: block; font-size: var(--fs-2xs); }
@media (max-width: 1180px) { #view-tasks .wh-team { grid-template-columns: 1fr; } }
@media (max-width: 640px) { #view-tasks .wh-team-grid { grid-template-columns: 1fr; } }

/* Today page: four tiles */
.hm-tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .hm-tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v27 polish: the close button sits in the head row; fields read in the UI font */
#view-tasks .wh-eodm > .wh-detail-head .dd-close, #view-tasks .wh-eodv > .wh-detail-head .dd-close { position: static; margin-left: 4px; flex: none; }
#view-tasks .wh-eodm textarea, #view-tasks .wh-eodv input, #view-tasks .wh-sendmodal textarea { font-family: inherit; font-size: var(--fs-sm); }
#view-tasks .wh-eod-find input.search { padding-left: 32px; }
@media (max-width: 640px) { #view-tasks .wh-eod-sum { flex-basis: 100%; } #view-tasks .wh-eodm-foot .grow { display: none; }
  #view-tasks .wh-eodm-foot .btn { flex: 1; justify-content: center; } }
#view-tasks .wh-brief textarea { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; font-family: inherit; }

/* v27.1 — end-of-day form: open tickets list, details on completed, start card */
#view-tasks .wh-eod-prog { grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1.2fr) auto; }
#view-tasks .wh-eod-prog input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--c-navy); }
#view-tasks .wh-eod-prog.off .wh-eod-pt { color: var(--ink-3); }
#view-tasks .wh-eod-pst { margin-left: 8px; font-size: var(--fs-2xs); color: var(--ink-3); }
#view-tasks .wh-eod-fin { white-space: nowrap; }
#view-tasks .wh-eod-dnote { display: block; width: 100%; height: 30px; margin: 2px 0 8px 26px; max-width: calc(100% - 26px); font-size: var(--fs-xs); }
#view-tasks .wh-eod-dn { margin: -2px 0 6px 0; padding-left: 4px; }
#view-tasks .wh-eod-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
#view-tasks .wh-eod-pick-l { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 650; color: var(--ink-3); margin-right: 4px; }
#view-tasks .wh-eod-start { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin: 0 0 16px;
  border: 1px solid var(--line); border-left: 3px solid var(--c-green); border-radius: var(--r); background: var(--surface); }
#view-tasks .wh-eod-start.sent_back { border-left-color: var(--c-amber); }
#view-tasks .wh-eod-start.signed_off { border-left-color: var(--c-slate); }
#view-tasks .wh-eod-start-l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--fs-sm); }
#view-tasks .wh-eod-start-l b { font-size: var(--fs-md); }
#view-tasks .wh-eod-go { height: 40px; padding: 0 18px; }
#view-tasks .wh-eod-more { display: block; margin: 8px auto 0; }
@media (max-width: 640px) {
  #view-tasks .wh-eod-prog { grid-template-columns: auto auto minmax(0, 1fr); }
  #view-tasks .wh-eod-prog input[type="text"] { grid-column: 1 / -1; grid-row: 2; }
  #view-tasks .wh-eod-prog .wh-eod-fin { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  #view-tasks .wh-eod-dnote { margin-left: 0; max-width: 100%; }
}

/* v27.1 — Shared queue + My Day */
#view-tasks .wh-sh-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 10px 6px; border-bottom: 1px solid var(--line-2); cursor: pointer; border-radius: var(--r-xs); }
#view-tasks .wh-sh-row:last-child { border-bottom: none; }
#view-tasks .wh-sh-row:hover { background: var(--surface-2); }
#view-tasks .wh-sh-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
#view-tasks .wh-sh-row.fresh .wh-sh-dot { background: var(--c-violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-violet) 22%, transparent); }
#view-tasks .wh-sh-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#view-tasks .wh-sh-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
#view-tasks .wh-sh-t { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-tasks .wh-sh-row.fresh .wh-sh-t { font-weight: 750; }
#view-tasks .wh-sh-last { font-size: var(--fs-xs); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-tasks .wh-sh-turn { font-size: var(--fs-2xs); font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
#view-tasks .wh-sh-turn.you { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange-700, var(--orange)); }
#view-tasks .wh-myday-g .wh-group-h { color: var(--c-amber); display: flex; align-items: center; gap: 6px; }
#view-tasks .wh-myday-empty { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 2px 0 10px; border: 1px dashed var(--line);
  border-radius: var(--r-sm); font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-myday-on { color: var(--c-amber); display: inline-flex; }
#view-tasks .wh-myday-on svg { fill: currentColor; }
#view-tasks .wh-myday-btn { display: inline-flex; align-items: center; gap: 4px; width: auto; padding: 0 8px; }
#view-tasks .wh-myday-btn.on svg { fill: var(--c-amber); color: var(--c-amber); }
#view-tasks .wh-nodate-h { display: flex; align-items: center; gap: 6px; width: 100%; border: none; background: none; cursor: pointer; padding: 6px 0; text-align: left; font: inherit; }
#view-tasks .wh-nodate-hint { font-weight: 400; font-size: var(--fs-2xs); margin-left: 6px; text-transform: none; letter-spacing: 0; }
@media (max-width: 640px) {
  #view-tasks .wh-sh-row { grid-template-columns: 10px minmax(0, 1fr) auto; }
  #view-tasks .wh-sh-row > .btn { grid-column: 2 / -1; justify-self: start; }
}

/* ---------- v27.2 End of day: clear and complete ---------- */
#view-tasks .wh-eod-help { margin: 0 0 6px; font-size: var(--fs-xs); }
#view-tasks .wh-eod-choice { display: inline-flex; gap: 4px; }
#view-tasks .wh-eod-ch { height: 30px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
  font-size: var(--fs-xs); font-weight: 650; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#view-tasks .wh-eod-ch:hover { background: var(--surface-2); color: var(--ink); }
#view-tasks .wh-eod-ch:focus-visible { outline: none; box-shadow: var(--ring); }
#view-tasks .wh-eod-ch.done:hover { border-color: var(--c-green); color: var(--good-600); background: var(--good-bg); }
#view-tasks .wh-eod-ch.wip.on { border-color: var(--info-600); color: var(--info-600); background: var(--info-bg); }
#view-tasks .wh-eod-add { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  display: flex; flex-direction: column; gap: 8px; }
#view-tasks .wh-eod-add-h { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
#view-tasks .wh-eod-add .wh-eod-types { align-self: flex-start; flex-wrap: wrap; }
#view-tasks .wh-eod-add-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; align-items: center; }
#view-tasks .wh-eod-add-row:last-of-type { grid-template-columns: minmax(0, 1fr) auto; }
#view-tasks .wh-eod-add input { height: 32px; min-width: 0; width: 100%; }
#view-tasks .wh-eod-add input.bad, #view-tasks #wh-eod-aud.bad, #view-tasks #wh-eod-why.bad { border-color: var(--bad); }
#view-tasks .wh-eod-dupes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-xs); }
#view-tasks .wh-eod-dupes:empty { display: none; }
#view-tasks .wh-eod-dupe { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 3px 10px;
  font-size: var(--fs-xs); color: var(--ink-2); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-tasks .wh-eod-dupe:hover { border-color: var(--c-green); color: var(--good-600); }
#view-tasks .wh-eod-aud { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#view-tasks .wh-eod-aud-l { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
#view-tasks .wh-eod-aud-l input { width: 84px; height: 34px; font-family: var(--font-data); font-size: var(--fs-md, 15px); }
#view-tasks .wh-eod-aud-b { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; background: var(--surface-3); color: var(--ink-3); }
#view-tasks .wh-eod-aud-b.ok { background: var(--good-bg); color: var(--good-600); }
#view-tasks .wh-eod-aud-b.low { background: var(--warn-bg); color: var(--warn-600); }
#view-tasks #wh-eod-why-w { margin-top: 8px; }
#view-tasks .wh-eod-msgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#view-tasks .wh-eod-mbox { display: flex; flex-direction: column; gap: 4px; }
#view-tasks .wh-eod-mbox.urgent { grid-column: 1 / -1; }
#view-tasks .wh-eod-mbox-l { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
#view-tasks .wh-eod-mbox.urgent textarea { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
#view-tasks .wh-eod-mbox textarea { width: 100%; resize: vertical; }
#view-tasks .wh-eod-urgent { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--r-sm);
  background: var(--bad-bg, var(--warn-bg)); border-left: 3px solid var(--bad); color: var(--ink); }
#view-tasks .wh-eod-kpis { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: var(--fs-sm); color: var(--ink-3); }
#view-tasks .wh-eod-kpis b { color: var(--ink); font-family: var(--font-data); }
#view-tasks .wh-eod-why { margin: -6px 0 12px; }
#view-tasks .wh-eod-mread { padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); }
#view-tasks .wh-eod-mread:last-child { border-bottom: none; }
#view-tasks .wh-eod-mread b { font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-eod-urg { font-size: var(--fs-2xs); font-weight: 700; color: var(--bad); white-space: nowrap; }
#view-tasks .wh-eod-aok { color: var(--good-600); font-weight: 600; }
#view-tasks .wh-eod-alow { color: var(--warn-600); font-weight: 600; }
@media (max-width: 640px) {
  #view-tasks .wh-eod-msgs, #view-tasks .wh-eod-add-row { grid-template-columns: 1fr; }
  #view-tasks .wh-eod-prog { grid-template-columns: auto minmax(0, 1fr); }
  #view-tasks .wh-eod-choice { grid-column: 1 / -1; }
}

/* ---------- v27.3 Where it stands · Notes · Who's had it ---------- */
#view-tasks .wh-stand { border: 1px solid var(--line); border-radius: var(--r-md, 10px); background: var(--surface-2);
  padding: 10px 12px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
#view-tasks .wh-st-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#view-tasks .wh-st-title { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px;
  text-transform: uppercase; letter-spacing: .04em; margin-right: auto; }
#view-tasks .wh-st-upd { font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-st-upd b { color: var(--ink-2); }
#view-tasks .wh-st-people { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; font-size: var(--fs-sm); }
#view-tasks .wh-st-p { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
#view-tasks .wh-st-k { font-size: var(--fs-2xs); font-weight: 650; color: var(--ink-4); text-transform: uppercase; letter-spacing: .03em; }
#view-tasks .wh-st-arrow { color: var(--ink-4); }
#view-tasks .wh-st-hist { font-size: var(--fs-xs); margin-left: auto; }
#view-tasks .wh-st-note { display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%; border: 1px solid var(--line-2);
  border-left: 3px solid var(--info-600); background: var(--surface); border-radius: var(--r-sm); padding: 7px 10px; cursor: pointer; color: var(--ink); }
#view-tasks .wh-st-note.pin { border-left-color: var(--c-amber); }
#view-tasks .wh-st-note.empty { flex-direction: row; align-items: center; gap: 6px; color: var(--ink-3); border-left-color: var(--line); font-size: var(--fs-xs); }
#view-tasks .wh-st-note:hover { background: var(--surface-2); }
#view-tasks .wh-st-note:focus-visible { outline: none; box-shadow: var(--ring); }
#view-tasks .wh-st-nk { font-size: var(--fs-2xs); font-weight: 650; color: var(--ink-3); }
#view-tasks .wh-st-nt { font-size: var(--fs-sm); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#view-tasks .wh-st-more { font-size: var(--fs-2xs); color: var(--ink-4); }
#view-tasks .wh-notes { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
#view-tasks .wh-note-new { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
#view-tasks .wh-note-new .wh-eod-types { align-self: flex-start; flex-wrap: wrap; }
#view-tasks .wh-note-new textarea { width: 100%; resize: vertical; }
#view-tasks .wh-note-new textarea.bad { border-color: var(--bad); }
#view-tasks .wh-note-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#view-tasks .wh-note-hint { font-size: var(--fs-2xs); }
#view-tasks .wh-note-g { display: flex; flex-direction: column; gap: 8px; }
#view-tasks .wh-note-gh { font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
#view-tasks .wh-note-row { padding: 8px 10px; border: 1px solid var(--line-2); border-left: 3px solid var(--info-600); border-radius: var(--r-sm); background: var(--surface); }
#view-tasks .wh-note-row.k-note_doc { border-left-color: var(--c-green); }
#view-tasks .wh-note-row.k-note_important { border-left-color: var(--c-amber); }
#view-tasks .wh-note-row.pin { background: var(--warn-bg); }
#view-tasks .wh-note-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-xs); }
#view-tasks .wh-note-chip { display: inline-flex; height: 20px; align-items: center; padding: 0 8px; border-radius: var(--r-pill);
  font-size: var(--fs-2xs); font-weight: 650; background: var(--info-bg); color: var(--info-600); }
#view-tasks .wh-note-chip.k-note_doc { background: var(--good-bg); color: var(--good-600); }
#view-tasks .wh-note-chip.k-note_important { background: var(--warn-bg); color: var(--warn-600); }
#view-tasks .wh-note-unpin { font-size: var(--fs-2xs); }
#view-tasks .wh-note-t { white-space: pre-wrap; font-size: var(--fs-sm); color: var(--ink); margin-top: 4px; }
#view-tasks .wh-own { display: flex; flex-direction: column; gap: 0; margin: 4px 0 10px; padding-left: 4px; }
#view-tasks .wh-own-h { font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
#view-tasks .wh-hist-h { margin-top: 6px; }
#view-tasks .wh-own-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 0;
  font-size: var(--fs-sm); position: relative; }
#view-tasks .wh-own-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); justify-self: center; }
#view-tasks .wh-own-dot.on { background: var(--info-600); }
#view-tasks .wh-hist-all { margin-top: 6px; }
#view-tasks .wh-upd-by { color: var(--ink-4); }
@media (max-width: 640px) { #view-tasks .wh-st-hist { margin-left: 0; } }

/* ============================================================
   v27.4 — End of day upgrades: required context, blocked + waiting on,
   rows audited + tracker, documents, CS / Dashboard feedback, time by
   category, workload pulse, priorities + yesterday's plan, Aamir's
   acknowledgements, the missing-submission strip, This week cards.
   ============================================================ */
#view-tasks .wh-eod-dnote.bad, #view-tasks .wh-eod-pn.bad, #view-tasks #wh-eod-hr-onb.bad { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad-bg); }
#view-tasks .wh-eod-choice { flex-wrap: wrap; }
#view-tasks .wh-eod-ch.blk.on { border-color: var(--c-rose); color: var(--bad-600); background: var(--bad-bg); }
#view-tasks .wh-eod-ch.blk:hover { border-color: var(--c-rose); }
#view-tasks .wh-eod-prog.blk { border-left: 3px solid var(--c-rose); padding-left: 8px; }
#view-tasks .wh-eod-wait { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 2px 0 4px; border-radius: var(--r-sm); }
#view-tasks .wh-eod-wait.bad { box-shadow: 0 0 0 2px var(--bad-bg); }
#view-tasks .wh-eod-wait-l { font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-3); margin-right: 4px; }
#view-tasks .wh-eod-wchip { height: 26px; padding: 0 9px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  font-size: var(--fs-2xs); color: var(--ink-2); cursor: pointer; }
#view-tasks .wh-eod-wchip:hover { border-color: var(--c-rose); }
#view-tasks .wh-eod-wchip.on { border-color: var(--c-rose); background: var(--bad-bg); color: var(--bad-600); font-weight: 650; }
#view-tasks .wh-eod-wchip:focus-visible, #view-tasks .wh-eod-ch.blk:focus-visible { outline: none; box-shadow: var(--ring); }

#view-tasks .wh-eod-rows, #view-tasks .wh-eod-trk, #view-tasks .wh-eod-pulse { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
#view-tasks .wh-eod-rows input { width: 220px; max-width: 100%; height: 34px; font-family: var(--font-data); }
#view-tasks .wh-eod-rows-n { font-size: var(--fs-xs); color: var(--ink-3); font-family: var(--font-data); }
#view-tasks .wh-eod-warn { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 10px; border-radius: var(--r-sm);
  background: var(--warn-bg); color: var(--warn-600); font-size: var(--fs-xs); font-weight: 600; }
#view-tasks .wh-eod-warn[hidden] { display: none; }
#view-tasks #wh-eod-trk-o { height: 32px; min-width: 0; flex: 1 1 160px; }
#view-tasks .wh-eod-trk .wh-eod-types, #view-tasks .wh-eod-pulse .wh-eod-types { flex-wrap: wrap; }
#view-tasks #wh-eod-why-w { margin-top: 10px; }

#view-tasks .wh-eod-fb, #view-tasks .wh-eod-doc { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
#view-tasks .wh-eod-fb-h, #view-tasks .wh-eod-doc-h, #view-tasks .wh-eod-doc-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#view-tasks .wh-eod-fb input, #view-tasks .wh-eod-doc input[type="text"] { height: 32px; width: 100%; min-width: 0; }
#view-tasks .wh-eod-doc-r input[type="text"] { flex: 1 1 180px; width: auto; }
#view-tasks .wh-eod-fb.filed input { color: var(--ink-3); }
#view-tasks .wh-eod-doc-n { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; }
#view-tasks .wh-eod-fb + .btn, #view-tasks .wh-eod-doc + .wh-eod-filebtn { margin-top: 8px; }
#view-tasks .wh-eod-filebtn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
#view-tasks .wh-eod-filebtn:focus-within { box-shadow: var(--ring); }

#view-tasks .wh-eod-hrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
#view-tasks .wh-eod-hr { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line-2); }
#view-tasks .wh-eod-hr-l { font-size: var(--fs-sm); color: var(--ink-2); min-width: 0; }
#view-tasks .wh-eod-step { display: inline-flex; align-items: center; gap: 4px; flex: none; }
#view-tasks .wh-eod-step .wh-iconbtn { width: 30px; height: 30px; }
#view-tasks .wh-eod-step input { width: 64px; height: 30px; text-align: center; font-family: var(--font-data); }
#view-tasks .wh-eod-hr.total { border-bottom: none; }
#view-tasks .wh-eod-hr.total b { font-family: var(--font-data); font-size: var(--fs-md); color: var(--ink); }
#view-tasks .wh-eod-hr.total b.bad { color: var(--bad-600); }
#view-tasks .wh-eod-pulse.bad .wh-eod-types { box-shadow: 0 0 0 2px var(--bad-bg); border-color: var(--bad); }
#view-tasks .wh-eod-type.p-light.on { color: var(--info-600); }
#view-tasks .wh-eod-type.p-right.on { color: var(--good-600); }
#view-tasks .wh-eod-type.p-heavy.on { color: var(--bad-600); }

#view-tasks .wh-eod-prio { display: flex; flex-direction: column; gap: 6px; }
#view-tasks .wh-eod-pri { display: flex; align-items: center; gap: 8px; }
#view-tasks .wh-eod-pri input { flex: 1; height: 32px; min-width: 0; }
#view-tasks .wh-eod-pri-n { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line-2); font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-2); }
#view-tasks .wh-eod-planrow { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
#view-tasks .wh-eod-planrow:last-child { border-bottom: none; }
#view-tasks .wh-eod-planrow .wh-eod-dt { flex: 1 1 200px; white-space: normal; font-size: var(--fs-sm); }
#view-tasks .wh-eod-type.pl-done.on { color: var(--good-600); }
#view-tasks .wh-eod-type.pl-carried.on { color: var(--info-600); }
#view-tasks .wh-eod-type.pl-dropped.on { color: var(--ink-3); }

/* the report */
#view-tasks .wh-eod-ack { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; padding: 6px 10px; border-radius: var(--r-sm);
  background: var(--good-bg); color: var(--good-600); font-size: var(--fs-xs); }
#view-tasks .wh-eod-ack span { color: var(--ink); white-space: pre-wrap; }
#view-tasks .wh-eod-ackrow { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
#view-tasks .wh-eod-ackrow input { flex: 1 1 200px; height: 32px; min-width: 0; }
#view-tasks .wh-eod-urgent .grow { flex: 1; min-width: 0; }
#view-tasks .wh-eod-kblk b { color: var(--bad-600); }
#view-tasks .wh-eod-pchip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: var(--fs-2xs); font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
#view-tasks .wh-eod-pchip.sm { height: 18px; padding: 0 7px; }
#view-tasks .wh-eod-pchip.p-light { background: var(--info-bg); color: var(--info-600); }
#view-tasks .wh-eod-pchip.p-right { background: var(--good-bg); color: var(--good-600); }
#view-tasks .wh-eod-pchip.p-heavy { background: var(--bad-bg); color: var(--bad-600); }
#view-tasks .wh-eod-arow { margin: -4px 0 12px; }
#view-tasks .wh-eod-chip.t-blk { background: var(--bad-bg); color: var(--bad-600); white-space: nowrap; }
#view-tasks .wh-eod-chip.pl-done { background: var(--good-bg); color: var(--good-600); }
#view-tasks .wh-eod-chip.pl-carried { background: var(--info-bg); color: var(--info-600); }
#view-tasks .wh-eod-sub { font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: 6px 0 2px; }
#view-tasks .wh-eod-sub:first-child { margin-top: 0; }
#view-tasks .wh-eod-filed { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
#view-tasks .wh-eod-line a { color: var(--ink); text-decoration: underline dotted; }
#view-tasks .wh-eod-tbar { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-2); margin: 4px 0 8px; }
#view-tasks .wh-eod-tbar span { display: block; height: 100%; min-width: 3px; }
#view-tasks .wh-eod-tleg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-eod-tleg.compact { font-size: var(--fs-2xs); gap: 2px 10px; }
#view-tasks .wh-eod-tleg span { display: inline-flex; align-items: center; gap: 5px; }
#view-tasks .wh-eod-tleg b { color: var(--ink-2); font-family: var(--font-data); font-weight: 600; }
#view-tasks .wh-eod-tleg i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
#view-tasks .k-onb { background: var(--c-navy); }
#view-tasks .k-audit { background: var(--c-amber); }
#view-tasks .k-meet { background: var(--c-violet); }
#view-tasks .k-proc { background: var(--c-teal); }
#view-tasks .k-admin { background: var(--c-slate); }

/* Aamir's End of day tab */
#view-tasks .wh-eod-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--c-teal); border-radius: var(--r); background: var(--surface); }
#view-tasks .wh-eod-strip-l { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); margin-right: 4px; }
#view-tasks .wh-eod-sx { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 6px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface-2); font-size: var(--fs-xs); color: var(--ink); }
#view-tasks .wh-eod-sx-v { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-2xs); font-weight: 650; color: var(--ink-3); }
#view-tasks .wh-eod-sx.in { border-color: color-mix(in srgb, var(--c-green) 40%, var(--line)); }
#view-tasks .wh-eod-sx.in .wh-eod-sx-v { color: var(--good-600); font-family: var(--font-data); }
#view-tasks .wh-eod-sx.late { background: var(--warn-bg); border-color: color-mix(in srgb, var(--c-amber) 55%, var(--line)); }
#view-tasks .wh-eod-sx.late .wh-eod-sx-v { color: var(--warn-600); }
#view-tasks .wh-eod-row.needs { border-left: 3px solid var(--c-rose); }
#view-tasks .wh-eod-urg { display: inline-flex; align-items: center; gap: 3px; }
#view-tasks .wh-eod-wks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
#view-tasks .wh-eod-wk { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); min-width: 0; }
#view-tasks .wh-eod-wk-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
#view-tasks .wh-eod-wk-rep { font-size: var(--fs-2xs); font-weight: 700; color: var(--warn-600); font-family: var(--font-data); }
#view-tasks .wh-eod-wk-rep.ok { color: var(--good-600); }
#view-tasks .wh-eod-wk-pulse { display: inline-flex; gap: 3px; }
#view-tasks .wh-eod-wk-pulse .pd { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: inline-block; }
#view-tasks .wh-eod-wk-pulse .pd.p-light { background: var(--info-600); border-color: transparent; }
#view-tasks .wh-eod-wk-pulse .pd.p-right { background: var(--good-600); border-color: transparent; }
#view-tasks .wh-eod-wk-pulse .pd.p-heavy { background: var(--bad-600); border-color: transparent; }
#view-tasks .wh-eod-wk-k { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 4px; font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-eod-wk-k span { display: inline-flex; align-items: center; gap: 4px; }
#view-tasks .wh-eod-wk-k b { color: var(--ink); font-family: var(--font-data); }
#view-tasks .wh-eod-wk-k .low b { color: var(--warn-600); }
#view-tasks .wh-eod-wk-k .ok b { color: var(--good-600); }
#view-tasks .wh-eod-wk-blk { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: var(--fs-2xs); color: var(--bad-600); }
@media (max-width: 640px) {
  #view-tasks .wh-eod-hrs { grid-template-columns: 1fr; }
  #view-tasks .wh-eod-wks { grid-template-columns: 1fr; }
  #view-tasks .wh-eod-choice { grid-column: 1 / -1; }
  #view-tasks .wh-eod-rows input { width: 100%; }
  #view-tasks .wh-eod-rows .wh-eod-aud-l { flex: 1 1 100%; }
}
#view-tasks .wh-fresh-g .wh-group-h { color: var(--c-teal); }   /* v28.2 Just added */

/* ============================================================
   v29 "Tasks, simplified" — compact rows, the Inbox, the short form
   ============================================================ */
#view-tasks .wh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#view-tasks .wh-tab .wh-tc.red { background: var(--bad-bg); color: var(--bad-600); }
#view-tasks .wh-tab .wh-tc.hot { background: var(--orange-50); color: var(--orange-700); }
[data-theme="dark"] #view-tasks .wh-tab .wh-tc.hot { color: var(--orange-400); }

/* ---- rows: one line, actions that matter always in reach ---- */
#view-tasks .wh-row29 { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; flex-wrap: nowrap; }
#view-tasks .wh-row29 .wh-check { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; padding: 0; display: inline-grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 50%; color: transparent; background: var(--surface); cursor: pointer;
  transition: border-color var(--fast), color var(--fast), background var(--fast); }
#view-tasks .wh-row29 .wh-check:hover, #view-tasks .wh-row29 .wh-check:focus-visible { border-color: var(--good); color: var(--good); background: var(--good-bg); outline: none; }
#view-tasks .wh-row29 .wh-row-main { gap: 1px; }
#view-tasks .wh-row29 .wh-row-title { font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-tasks .wh-row29 .wh-row-line:empty { display: none; }
#view-tasks .wh-row29 .wh-row-tk:empty { display: none; }
#view-tasks .wh-row29 .wh-row-meta { gap: 6px; align-items: center; }
#view-tasks .wh-row29 .wh-flag { color: var(--bad); display: inline-flex; }
#view-tasks .wh-row29 .wh-pend { color: var(--warn); display: inline-flex; }
#view-tasks .wh-due29 { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 var(--fs-2xs)/1 var(--font-data);
  cursor: pointer; white-space: nowrap; }
#view-tasks .wh-due29:hover, #view-tasks .wh-due29:focus-visible { border-color: var(--navy-500); color: var(--ink); outline: none; }
#view-tasks .wh-due29.soon { color: var(--orange-700); border-color: var(--orange-100); background: var(--orange-50); }
#view-tasks .wh-due29.over { color: var(--bad-600); border-color: var(--bad-line); background: var(--bad-bg); }
#view-tasks .wh-due29.none { border-color: transparent; background: none; color: var(--ink-4); opacity: 0; }
#view-tasks .wh-row29:hover .wh-due29.none, #view-tasks .wh-row29.menu .wh-due29.none, #view-tasks .wh-due29.none:focus-visible { opacity: 1; }
#view-tasks .wh-star { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: var(--r-sm); border: 0; background: none;
  color: var(--ink-4); cursor: pointer; opacity: .55; }
#view-tasks .wh-row29:hover .wh-star, #view-tasks .wh-star:focus-visible { opacity: 1; }
#view-tasks .wh-star:hover { color: var(--c-amber); background: var(--surface-2); }
#view-tasks .wh-star.on { color: var(--c-amber); opacity: 1; }
#view-tasks .wh-star.on svg { fill: currentColor; }
/* the ✓ circle solves; Solve / Start live in the ticket itself */
#view-tasks .wh-row29 .wh-row-acts { display: none; }
#view-tasks .wh-duemenu { position: absolute; right: 8px; top: calc(100% - 4px); z-index: 30; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  max-width: min(440px, calc(100vw - 40px)); padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(13,13,34,.18); cursor: default; }
#view-tasks .wh-duemenu .wh-nf-chip { height: 28px; }
#view-tasks .wh-duemenu .wh-qa-date { height: 28px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 8px; background: var(--surface); color: var(--ink); }
#view-tasks .wh-myday-empty { display: flex; align-items: center; gap: 6px; padding: 7px 10px; color: var(--ink-4); font-size: var(--fs-xs);
  border: 1px dashed var(--line); border-radius: var(--r-sm); margin-bottom: 8px; }

/* ---- quick add: Who · When chips · date ---- */
#view-tasks .wh-qa-ctrls .wh-qa-whens { display: inline-flex; align-items: stretch; height: 34px; padding: 0; border-right: 1px solid var(--line-2); }
#view-tasks .wh-qa-when { height: 34px; border: 0; border-right: 1px solid var(--line-2); border-radius: 0; background: none; padding: 0 10px; color: var(--ink-3);
  font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; white-space: nowrap; }
#view-tasks .wh-qa-when:last-child { border-right: 0; }
#view-tasks .wh-qa-when:hover { background: var(--surface-2); color: var(--ink); }
#view-tasks .wh-qa-when.on { background: var(--navy-50); color: var(--navy-600); }
[data-theme="dark"] #view-tasks .wh-qa-when.on { color: var(--navy-100); background: color-mix(in srgb, var(--c-navy) 30%, var(--surface)); }
#view-tasks .wh-qa .wh-who { margin-top: 10px; }

/* ---- the short form ---- */
#view-tasks .wh-nf29 .wh-kindmini { padding: 0 20px 12px; }
#view-tasks .wh-nf29 .wh-kindmini .wh-kindrow { padding: 0; border: 0; }
#view-tasks .wh-nf29 .wh-kind-set { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
#view-tasks .wh-nf29 .wh-kind { height: 26px; padding: 0 8px; gap: 5px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3);
  border: 1px solid transparent; background: none; }
#view-tasks .wh-nf29 .wh-kind:hover { background: var(--surface-2); color: var(--ink); }
#view-tasks .wh-nf29 .wh-kind.on { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
#view-tasks .wh-nf29 .wh-kind-sep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
#view-tasks .wh-nf29 .wh-nf-simple { display: flex; flex-direction: column; gap: 12px; }
#view-tasks .wh-nf29 .wh-nf-title { font-size: 1rem; font-weight: 600; }
#view-tasks .wh-nf-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 10px; }
#view-tasks .wh-nf-row > .wh-nf-l { margin: 0; padding-top: 8px; }
#view-tasks .wh-nf-row .wh-who { margin: 0; }
#view-tasks .wh-nf-whenwrap { display: flex; flex-direction: column; gap: 8px; }
#view-tasks .wh-nf-whenwrap .wh-nf-chips { margin: 0; }
#view-tasks .wh-nf-moretog { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; padding: 6px 2px; border: 0; background: none;
  color: var(--ink-3); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
#view-tasks .wh-nf-moretog:hover, #view-tasks .wh-nf-moretog.on { color: var(--ink); }
#view-tasks .wh-nf-moretog:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
#view-tasks .wh-nf-more[hidden], #view-tasks .wh-nf29 input[hidden] { display: none; }
#view-tasks .wh-nf-more { border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 6px; }
@media (max-width: 640px) {
  #view-tasks .wh-nf-row { grid-template-columns: 1fr; gap: 4px; }
  #view-tasks .wh-nf-row > .wh-nf-l { padding-top: 0; }
  #view-tasks .wh-nf29 .wh-kindmini { padding: 0 16px 10px; }
}

/* ---- Inbox: list left, the open item right ---- */
#view-tasks .wh-ib-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
#view-tasks .wh-ib-fs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
#view-tasks .wh-ib-f { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--ink-3); font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; white-space: nowrap; }
#view-tasks .wh-ib-f:hover { color: var(--ink); background: var(--surface-2); }
#view-tasks .wh-ib-f:focus-visible { outline: none; box-shadow: var(--ring); }
#view-tasks .wh-ib-f.on { background: var(--ink); color: var(--surface); }
#view-tasks .wh-ib-f .wh-tc { font: 600 var(--fs-3xs)/1 var(--font-data); padding: 3px 6px; border-radius: var(--r-pill); background: var(--orange-50); color: var(--orange-700); }
#view-tasks .wh-ib-f.on .wh-tc { background: var(--orange); color: #fff; }
#view-tasks .wh-ib-panes { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
#view-tasks .wh-ib-list { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c-violet);
  border-radius: var(--r); overflow: hidden auto; max-height: calc(100vh - 230px); }
#view-tasks .wh-ib-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 11px 12px 11px 10px; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--line-2); background: none; text-align: left; color: var(--ink-2); cursor: pointer; font: inherit; }
#view-tasks .wh-ib-row:last-child { border-bottom: 0; }
#view-tasks .wh-ib-row:hover { background: var(--surface-2); }
#view-tasks .wh-ib-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--navy-500); }
#view-tasks .wh-ib-row.on { background: color-mix(in srgb, var(--c-violet) 10%, var(--surface)); box-shadow: inset 3px 0 0 var(--c-violet); }
#view-tasks .wh-ib-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: transparent; }
#view-tasks .wh-ib-row.unread .wh-ib-dot { background: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 20%, transparent); }
#view-tasks .wh-ib-row .wh-dot { flex: 0 0 auto; margin-top: 2px; }
#view-tasks .wh-ib-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#view-tasks .wh-ib-line { display: flex; align-items: baseline; gap: 5px; font-size: var(--fs-xs); color: var(--ink-3); min-width: 0; }
#view-tasks .wh-ib-line b { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
#view-tasks .wh-ib-verb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#view-tasks .wh-ib-line .grow { flex: 1; }
#view-tasks .wh-ib-line .wh-tc { font: 600 var(--fs-3xs)/1 var(--font-data); padding: 2px 6px; border-radius: var(--r-pill); background: var(--orange-50); color: var(--orange-700); }
#view-tasks .wh-ib-when { font: 500 var(--fs-2xs)/1 var(--font-data); color: var(--ink-4); white-space: nowrap; }
#view-tasks .wh-ib-t { display: block; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-tasks .wh-ib-t .wh-row-tk { margin-right: 2px; }
#view-tasks .wh-ib-row.unread .wh-ib-t { color: var(--ink); font-weight: 650; }
#view-tasks .wh-ib-row.unread .wh-ib-line b { color: var(--ink); }
#view-tasks .wh-ib-k { display: inline-flex; vertical-align: -2px; margin-right: 5px; color: var(--ink-4); }
#view-tasks .wh-ib-row.cat-mention .wh-ib-k { color: var(--c-violet); }
#view-tasks .wh-ib-row.cat-ann .wh-ib-k { color: var(--c-teal); }
#view-tasks .wh-ib-row.cat-note .wh-ib-k { color: var(--c-amber); }
#view-tasks .wh-ib-msg { font-size: var(--fs-xs); color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
#view-tasks .wh-ib-pane { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c-navy); border-radius: var(--r);
  padding: 16px 18px; min-height: 260px; min-width: 0; position: sticky; top: 12px; box-sizing: border-box; }
#view-tasks .wh-ib-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 228px; color: var(--ink-4); font-size: var(--fs-sm); }
#view-tasks .wh-ib-ph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2); }
#view-tasks .wh-ib-pt { flex: 1 1 260px; min-width: 0; font-size: 1rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
#view-tasks .wh-ib-meta { display: flex; align-items: center; gap: 6px; }
#view-tasks .wh-ib-back { display: none; }
#view-tasks .wh-ib-by { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: 10px; }
#view-tasks .wh-ib-by b { color: var(--ink); }
#view-tasks .wh-ib-body { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 12px; }
#view-tasks .wh-ib-quote { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--c-amber); background: color-mix(in srgb, var(--c-amber) 8%, var(--surface));
  border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-sm); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
#view-tasks .wh-ib-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
#view-tasks .wh-ib-msgrow { display: flex; gap: 8px; align-items: flex-start; }
#view-tasks .wh-ib-msgrow > div { min-width: 0; }
#view-tasks .wh-ib-mh { font-size: var(--fs-xs); color: var(--ink-3); }
#view-tasks .wh-ib-mh b { color: var(--ink); }
#view-tasks .wh-ib-mt { margin-top: 2px; padding: 8px 11px; background: var(--surface-2); border-radius: 4px var(--r) var(--r) var(--r); font-size: var(--fs-sm);
  color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
#view-tasks .wh-ib-msgrow.me .wh-ib-mt { background: color-mix(in srgb, var(--c-navy) 10%, var(--surface)); }
#view-tasks .wh-ib-mt.sys { background: none; padding: 2px 0; color: var(--ink-3); font-style: italic; }
#view-tasks .wh-ib-reply textarea { width: 100%; box-sizing: border-box; min-height: 60px; resize: vertical; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-sm); }
#view-tasks .wh-ib-reply textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: var(--ring); }
#view-tasks .wh-ib-reply textarea.bad { border-color: var(--bad); }
#view-tasks .wh-ib-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
#view-tasks .wh-ib-pane .wh-ann { margin: 0; }
#view-tasks .wh-ib-mini { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 7px 0; cursor: pointer; font: inherit; }
#view-tasks .wh-ib-mini + .wh-ib-mini { border-top: 1px solid var(--line-2); }
#view-tasks .wh-ib-mini .wh-resp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; border: 0; background: none; padding: 0; }
#view-tasks .wh-ib-mini .wh-resp-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-tasks .wh-ib-mini:hover .wh-resp-t { color: var(--ink); text-decoration: underline; }
#view-tasks .wh-resp .wh-ph .wh-ph-link { padding: 2px 4px; }
@media (max-width: 1100px) { #view-tasks .wh-ib-panes { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); } }
@media (max-width: 900px) {
  #view-tasks .wh-ib-panes { grid-template-columns: minmax(0, 1fr); }
  #view-tasks .wh-ib-list { max-height: none; }
  #view-tasks .wh-ib-pane { position: static; min-height: 0; }
  #view-tasks .wh-ib:not(.has-open) .wh-ib-pane { display: none; }
  #view-tasks .wh-ib.has-open .wh-ib-list { display: none; }
  #view-tasks .wh-ib-back { display: inline-flex; }
}
@media (max-width: 640px) {
  #view-tasks .wh-ib-fs { border-radius: var(--r); width: 100%; box-sizing: border-box; }
  #view-tasks .wh-ib-f { padding: 0 9px; }
  #view-tasks .wh-ib-pane { padding: 14px; }
  #view-tasks .wh-row29 { flex-wrap: wrap; row-gap: 4px; }
  #view-tasks .wh-row29 .wh-row-main { flex: 1 1 calc(100% - 34px); }
  #view-tasks .wh-row29 .wh-row-meta { flex: 1 1 100%; padding-left: 30px; justify-content: flex-start; }
  #view-tasks .wh-row29 .wh-row-title { white-space: normal; }
  #view-tasks .wh-due29.none, #view-tasks .wh-star { opacity: 1; }
  #view-tasks .wh-duemenu { left: 8px; right: 8px; max-width: none; }
  #view-tasks .wh-qa-ctrls .wh-qa-whens { flex: 1 1 auto; }
  #view-tasks .wh-qa-when { flex: 1; padding: 0 6px; }
}

/* ---------- v29.4 End of day: Before you submit · Not sent · Recurring ---------- */
#view-tasks .wh-eod-check { border-top: 1px solid var(--line-2); background: var(--surface-2); padding: 8px 20px; display: flex; flex-direction: column; gap: 6px; }
#view-tasks .wh-eod-ck { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-xs); }
#view-tasks .wh-eod-ck-l { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
#view-tasks .wh-eod-meter { width: 72px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; display: inline-block; }
#view-tasks .wh-eod-meter i { display: block; height: 100%; background: var(--c-green); border-radius: 3px; transition: width .2s; }
#view-tasks .wh-eod-ck-n { color: var(--ink-3); }
#view-tasks .wh-eod-ck-items { display: flex; gap: 6px; flex-wrap: wrap; }
#view-tasks .wh-eod-ck-i { height: 26px; padding: 0 9px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface);
  color: var(--bad-600); font: inherit; font-size: var(--fs-2xs); font-weight: 600; cursor: pointer; }
#view-tasks .wh-eod-ck-i:hover { border-color: var(--c-rose); background: var(--bad-bg); }
#view-tasks .wh-eod-ck-i:focus-visible { outline: none; box-shadow: var(--ring); }
#view-tasks .wh-eod-fail { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--c-rose); background: var(--bad-bg); color: var(--bad-600); font-size: var(--fs-xs); }
#view-tasks .wh-eod-fail .grow { color: var(--ink-2); }
#view-tasks .wh-eod-err { margin: 6px 0 2px; font-size: var(--fs-xs); font-weight: 600; color: var(--bad-600); }
#view-tasks .wh-eod-err[hidden] { display: none; }
#view-tasks .wh-eod-saved { font-size: var(--fs-2xs); color: var(--ink-3); }
#view-tasks .wh-eod-pulse.bad .wh-eod-type, #view-tasks #wh-eod-hrs-t.bad { border-color: var(--bad); color: var(--bad-600); }
#view-tasks .wh-eod-rec .wh-eod-pst { display: inline-flex; align-items: center; gap: 3px; }
#view-tasks .wh-eod-ch.skip.on { border-color: var(--c-amber); color: var(--ink); background: var(--surface-2); }
#view-tasks .wh-eod-ch.bad { border-color: var(--bad); }
#view-tasks .wh-eod-ch.done.on { border-color: var(--c-green); color: var(--good-600); background: var(--good-bg); display: inline-flex; align-items: center; gap: 4px; }
#view-tasks .wh-eod-rec .wh-eod-pn { grid-column: 1 / -1; }
#view-tasks .wh-eod-wk-rec { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: var(--fs-2xs); color: var(--ink-2); flex-wrap: wrap; }
#view-tasks .wh-rec { display: inline-flex; align-items: center; color: var(--ink-3); }
#view-tasks .wh-nf-row3 { grid-template-columns: 56px minmax(0, 1fr) auto; }
#view-tasks .wh-nf-rep { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 8px; border: 1px solid var(--line);
  border-radius: 15px; background: var(--surface); color: var(--ink-3); }
#view-tasks .wh-nf-rep.on { border-color: var(--info-600); color: var(--info-600); background: var(--info-bg); }
#view-tasks .wh-nf-rep select { border: none; background: transparent; font: inherit; font-size: var(--fs-xs); color: inherit; padding: 0 2px; height: 26px; cursor: pointer; }
#view-tasks .wh-nf-rep select:focus-visible { outline: none; }
#view-tasks .wh-nf-rep:focus-within { box-shadow: var(--ring); }
@media (max-width: 640px) {
  #view-tasks .wh-eod-check { padding: 8px 16px; }
  #view-tasks .wh-nf-row3 { grid-template-columns: 1fr; }
  #view-tasks .wh-nf-rep { justify-self: start; }
}
