/* My work in the redesign (Hallmark, Rami 2 November 2026: the approved mockup, review/hallmark/mywork-rethink.html; built
   3 November 2026). public/work.js drawMine. Cadence tokens only, so light and dark follow by themselves; a phone of 400px with no
   sideways scroll; Arabic mirrors (logical properties). Every rule is scoped to mw-* inside #wkPage so nothing else moves.
   The top: My work and its tabs with their counts. One toolbar under it. One list (no groups, no box round it): a to-do's circle,
   a small picture of what kind of thing it is, the task with a line under it, the client, the day, a dot and its word, one button, ⋯. */

/* ---------- the top ---------- */
html body #wkPage .mw-head:not(#_){margin:0 0 18px;align-items:center;border-bottom:1px solid var(--border)}
html body #wkPage .mw-head .hl-head-l:not(#_){flex-wrap:nowrap;gap:12px 28px;min-width:0;flex:1 1 auto;align-items:flex-end}
html body #wkPage .mw-head .hl-title:not(#_):not(#_){font-size:30px;letter-spacing:-.02em;flex:none;padding-bottom:8px}
html body #wkPage .mw-tabs:not(#_){display:flex;align-items:stretch;gap:4px 24px;min-width:0;overflow-x:auto;scrollbar-width:none;padding:0;margin:0}
html body #wkPage .mw-tabs::-webkit-scrollbar{display:none}
html body #wkPage .mw-tabs>button:not(#_):not(#_){display:inline-flex;align-items:center;gap:8px;flex:none;height:auto;min-height:0;padding:10px 0 12px;margin:0 0 -1px;border:0;border-radius:0;border-bottom:2px solid transparent;background:transparent;box-shadow:none;font:600 15px/1.2 var(--font-sans);color:var(--ink-muted);white-space:nowrap;cursor:pointer}
html body #wkPage .mw-tabs>button:hover:not(#_):not(#_){color:var(--c-ink)}
html body #wkPage .mw-tabs>button.on:not(#_):not(#_){color:var(--c-ink);border-bottom-color:var(--c-ink)}
html body #wkPage .mw-tabs>button:focus-visible:not(#_){outline:2px solid var(--focus);outline-offset:2px}
html body #wkPage .mw-tabs i:not(#_):not(#_){display:inline-grid;place-items:center;min-width:22px;height:20px;padding:0 7px;box-sizing:border-box;border-radius:999px;background:var(--surface-sunken);color:var(--ink-muted);font:600 12px/1 var(--font-sans);font-style:normal}
html body #wkPage .mw-tabs i.hot:not(#_):not(#_){background:var(--accent-rose-soft);color:var(--status-stuck-fg)}
html body #wkPage .mw-tabs .on i:not(#_):not(#_){background:var(--c-ink);color:var(--surface)}

/* ---------- the toolbar ---------- */
html body #wkPage .card.mw.mw-hall:not(#_):not(#_):not(#_){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;overflow:visible}
html body #wkPage .mw-bar:not(#_){display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin:0 0 14px}
html body #wkPage :is(.mw-bl,.mw-br):not(#_){display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
html body #wkPage .mw-vsep:not(#_){width:1px;height:24px;background:var(--border);margin:0 4px}
html body #wkPage .mw-bar .bk-tabs:not(#_):not(#_){height:40px;box-sizing:border-box}
html body #wkPage .mw-bar .bk-tabs>button:not(#_):not(#_){padding:0 14px;font-weight:600}
html body #wkPage .mw-findw:not(#_){position:relative;display:inline-flex;align-items:center}
html body #wkPage .mw-findw>svg:not(#_){position:absolute;inset-inline-start:11px;width:15px;height:15px;fill:none;stroke:var(--ink-subtle);stroke-width:2;stroke-linecap:round;pointer-events:none}
html body #wkPage .mw-find:not(#_):not(#_):not(#_){width:220px;height:40px;min-height:40px;box-sizing:border-box;padding-inline:34px 12px!important}
html body #wkPage .mw-bar :is(.bk-pkb,.btn-s):not(#_):not(#_):not(#_){height:40px;min-height:40px;box-sizing:border-box;padding:0 14px;font-weight:600}
html body #wkPage .mw-bar .mw-new:not(#_):not(#_):not(#_){padding:0 18px}
/* From your email (public/mailjobs.js): a button like the others, with its count in a pill */
html body #wkPage .mw-br .ml-work:not(#_):not(#_){display:contents;margin:0}
html body #wkPage .mw-br .ml-chip:not(#_):not(#_):not(#_){display:inline-flex;align-items:center;gap:8px;height:40px;min-height:40px;padding:0 14px;border-radius:var(--radius-md);border:1px solid var(--border-strong);background:var(--surface);color:var(--c-ink);font:600 14px var(--font-sans);cursor:pointer}
html body #wkPage .mw-br .ml-chip b:not(#_):not(#_){display:inline-grid;place-items:center;min-width:22px;height:20px;padding:0 7px;box-sizing:border-box;border-radius:999px;background:var(--accent-violet-soft);color:var(--accent-violet);font-size:12px}
html body #wkPage .mw-br .ml-chip>span:not(#_){display:none}

/* ---------- the list ---------- */
html body #wkPage .mw-list:not(#_):not(#_){border:0;background:transparent;overflow-x:auto;overflow-y:visible}
html body #wkPage .mw-list .wk-r1:not(#_):not(#_):not(#_){height:auto;min-height:60px;border:0;border-bottom:1px solid var(--border);background:transparent;align-items:center}
html body #wkPage .mw-list .wk-r1>*:not(#_):not(#_):not(#_){display:flex;align-items:center;gap:6px;min-width:0;padding:8px 8px;box-sizing:border-box;border:0;background:transparent}
html body #wkPage .mw-list .wk-r1.head:not(#_):not(#_):not(#_){min-height:44px;position:sticky;top:0;z-index:3;background:var(--page)!important}
html body #wkPage .mw-list .wk-r1.head>*:not(#_):not(#_):not(#_){font:600 12.5px/1.2 var(--font-sans)!important;color:var(--ink-muted)!important;justify-content:flex-start!important;text-align:start!important;background:transparent!important;letter-spacing:0;text-transform:none}
html body #wkPage .mw-list .mw-row:hover:not(#_):not(#_):not(#_){background:var(--surface-hover)}
html body #wkPage .mw-list .mw-row.late:not(#_):not(#_):not(#_){background:transparent}
html body #wkPage .mw-list .mw-row.late:hover:not(#_):not(#_):not(#_){background:var(--surface-hover)}
html body #wkPage .mw-list .mw-row>:first-child:not(#_):not(#_):not(#_){justify-content:center;padding-inline:4px}
html body #wkPage .mw-list .mw-row:not(#_):not(#_):not(#_){cursor:pointer}
/* a to-do's circle: pressed, it is done */
html body #wkPage .mw-tick:not(#_):not(#_){display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
html body #wkPage .mw-tick>i:not(#_){display:block;width:20px;height:20px;box-sizing:border-box;border-radius:50%;border:1.6px solid var(--ink-muted);transition:border-color var(--dur-fast,.12s),background var(--dur-fast,.12s)}
html body #wkPage .mw-tick:hover>i:not(#_),html body #wkPage .mw-tick:focus-visible>i:not(#_){border-color:var(--accent-green);background:var(--accent-green-soft)}
html body #wkPage .mw-tick:focus-visible:not(#_){outline:2px solid var(--focus);outline-offset:1px}
/* what kind of thing it is: a small picture on its pale colour */
html body #wkPage .mw-ic:not(#_){flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--surface-sunken);color:var(--ink-muted)}
html body #wkPage .mw-ic svg:not(#_){width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html body #wkPage .mw-ic.t-blue:not(#_){background:var(--accent-sky-soft);color:var(--accent-sky)}
html body #wkPage .mw-ic.t-peach:not(#_){background:var(--accent-orange-soft);color:var(--accent-orange)}
html body #wkPage .mw-ic.t-green:not(#_){background:var(--accent-green-soft);color:var(--accent-green)}
html body #wkPage .mw-ic.t-lav:not(#_){background:var(--accent-violet-soft);color:var(--accent-violet)}
html body #wkPage .mw-ic.t-pink:not(#_){background:var(--accent-rose-soft);color:var(--accent-rose)}
html body #wkPage .mw-ic.t-red:not(#_){background:var(--status-stuck-bg);color:var(--status-stuck-fg)}
html body #wkPage .mw-ic.t-yel:not(#_){background:color-mix(in srgb,var(--st-warn,#f5c84c) 30%,var(--surface));color:var(--c-ink)}
/* the task: its name, and under it its flags, the month, where it stands and the bolt */
html body #wkPage .mw-list .mw-task:not(#_):not(#_):not(#_){flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;padding-block:10px}
html body #wkPage .mw-tt:not(#_){display:flex;align-items:center;gap:6px;max-width:100%;min-width:0}
html body #wkPage .mw-tt>:is(a,button).mw-open:not(#_):not(#_){min-width:0;padding:0;border:0;background:transparent;color:var(--c-ink);text-decoration:none;text-align:start;font:inherit;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #wkPage .mw-tt b:not(#_):not(#_){font-weight:600;font-size:14.5px;color:var(--c-ink)}
html body #wkPage .mw-tt>:is(a,button).mw-open:hover b:not(#_){text-decoration:underline;text-underline-offset:3px}
html body #wkPage .mw-sub:not(#_){display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;max-width:100%;min-width:0;font-size:12.5px;line-height:1.35;color:var(--ink-subtle)}
html body #wkPage .mw-sub>span[dir]:not(#_){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #wkPage .mw-sub .wk-chips:not(#_){display:inline-flex;gap:4px;flex-wrap:wrap}
html body #wkPage .mw-sub .wk-tag:not(#_):not(#_){height:20px;padding:0 7px;margin:0;font-size:11.5px;line-height:20px;border-radius:5px}
html body #wkPage .mw-sep:not(#_){color:var(--ink-subtle)}
html body #wkPage .mw-sub .wk-by:not(#_){display:inline-flex;align-items:center;gap:4px}
/* the client: its initials in a small circle, then its name */
html body #wkPage .mw-cl:not(#_){display:inline-flex;align-items:center;gap:8px;min-width:0;font-weight:600;color:var(--c-ink)}
html body #wkPage .mw-cl>span:not(#_){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #wkPage .mw-cl.none:not(#_){font-weight:400;color:var(--ink-subtle)}
html body #wkPage .mw-cav:not(#_){flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:hsl(var(--h,220) 70% 91%);color:hsl(var(--h,220) 45% 30%);font:700 9.5px/1 var(--font-sans);font-style:normal}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body #wkPage .mw-cav:not(#_){background:hsl(var(--h,220) 30% 28%);color:hsl(var(--h,220) 60% 88%)}}
:root[data-theme="dark"] body #wkPage .mw-cav:not(#_){background:hsl(var(--h,220) 30% 28%);color:hsl(var(--h,220) 60% 88%)}
/* the day, and under it how far off it is, or how late, or how long ago you asked */
html body #wkPage .mw-list .mw-due:not(#_):not(#_):not(#_){flex-direction:column;align-items:flex-start;justify-content:center;gap:2px}
html body #wkPage .mw-due b:not(#_){font-weight:500;font-size:13.5px;color:var(--c-ink);white-space:nowrap}
html body #wkPage .mw-due small:not(#_){font-size:12px;color:var(--ink-subtle);white-space:nowrap}
html body #wkPage .mw-due .late:not(#_):not(#_){color:var(--status-stuck-fg);font-weight:600}
/* a to-do's day: the words, with its date box unseen over them (a press opens the calendar) */
html body #wkPage .mw-dl:not(#_){position:relative;display:flex;flex-direction:column;gap:2px;padding:4px 6px;margin-inline-start:-6px;border-radius:var(--radius-md);cursor:pointer}
html body #wkPage .mw-dl:hover:not(#_),html body #wkPage .mw-dl:focus-within:not(#_){background:var(--surface-sunken)}
html body #wkPage .mw-dl .mw-din:not(#_):not(#_):not(#_){position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
/* its one button, full width of its place; the rest under ⋯ */
html body #wkPage .mw-acts:not(#_):not(#_):not(#_){gap:6px;flex-wrap:wrap}
html body #wkPage .mw-acts>:is(.btn-s,.st-go):not(#_):not(#_):not(#_){height:36px;min-height:36px;box-sizing:border-box;border-radius:var(--radius-md);padding:0 12px;font:600 13px/1 var(--font-sans);display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
html body #wkPage .mw-acts>:only-child:is(.btn-s,.st-go):not(#_):not(#_):not(#_){flex:1 1 auto;max-width:100%}
html body #wkPage .mw-acts>.btn-s.pri:not(#_):not(#_):not(#_):not(#_){background:var(--c-ink)!important;color:var(--surface)!important;border-color:var(--c-ink)!important}
html body #wkPage .mw-acts>.st-go:not(#_):not(#_):not(#_){justify-content:space-between;border:1px solid currentColor}
html body #wkPage .mw-acts .mw-prog:not(#_){flex:1 1 60px;min-width:40px}
html body #wkPage .mw-pn:not(#_){font-size:12px;color:var(--ink-muted);white-space:nowrap}
html body #wkPage .mw-acts .wk-lvp:not(#_){display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px}
html body #wkPage .mw-list .mw-more:not(#_):not(#_):not(#_){justify-content:center;padding-inline:2px}
html body #wkPage .mw-rmore>summary:not(#_):not(#_):not(#_){width:34px;height:34px;min-height:34px;padding:0;display:inline-grid;place-items:center;border:0;background:transparent;font-size:18px;color:var(--ink-muted)}
html body #wkPage .mw-rmore>summary:hover:not(#_):not(#_):not(#_),html body #wkPage .mw-rmore[open]>summary:not(#_):not(#_):not(#_){background:var(--surface-hover);color:var(--c-ink)}
html body #wkPage .mw-rmore .hl-pop .mw-mi:not(#_):not(#_):not(#_){display:flex;width:100%;min-height:36px;height:auto;justify-content:flex-start;padding:6px 10px;border:0!important;background:transparent!important;color:var(--c-ink)!important;box-shadow:none;font-weight:500;text-align:start;border-radius:var(--radius-sm)}
html body #wkPage .mw-rmore .hl-pop .mw-mi:hover:not(#_):not(#_):not(#_){background:var(--surface-hover)!important}
/* the last line: + New to-do, typed and Enter */
html body #wkPage .mw-list form.bk-add:not(#_):not(#_):not(#_){min-height:56px;border:0;border-bottom:1px solid var(--border);background:transparent}
html body #wkPage .mw-list form.bk-add>*:not(#_):not(#_):not(#_){padding:6px 8px;background:transparent;border:0}
html body #wkPage .mw-list form.bk-add .bk-add-n input:not(#_):not(#_){height:38px;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);padding:0 12px;width:100%;box-sizing:border-box}

/* ---------- the board ---------- */
html body #wkPage .mw-hall .mw-board:not(#_):not(#_){display:grid;grid-template-columns:repeat(5,minmax(200px,1fr));gap:12px;overflow-x:auto;align-items:start}
html body #wkPage .mw-hall .mw-col:not(#_):not(#_){display:flex;flex-direction:column;gap:8px;min-width:0;padding:10px;border-radius:var(--radius-lg);background:var(--surface-sunken);border:0;min-height:120px}
html body #wkPage .mw-ch:not(#_){display:flex;align-items:center;gap:8px;padding:2px 4px 4px}
html body #wkPage .mw-ch em:not(#_){margin-inline-start:auto;font-style:normal;font-weight:600;font-size:13px;color:var(--ink-muted)}
html body #wkPage .mw-hall .mw-card:not(#_):not(#_){display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:var(--radius-md);background:var(--surface);border:1px solid var(--border);box-shadow:none}
html body #wkPage .mw-hall .mw-card>.mw-open:not(#_):not(#_){display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:0;border:0;background:transparent;text-align:start;color:var(--c-ink);text-decoration:none;font:inherit;cursor:pointer}
html body #wkPage .mw-hall .mw-card b:not(#_){font-size:14px;font-weight:600;line-height:1.3}
html body #wkPage .mw-hall .mw-card small:not(#_){font-size:12.5px;color:var(--ink-subtle);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #wkPage .mw-cm:not(#_){display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px}
html body #wkPage .mw-cm small.late:not(#_):not(#_){color:var(--status-stuck-fg);font-weight:600}
html body #wkPage .mw-hall .mw-card .wk-do:not(#_){display:flex;flex-wrap:wrap;gap:6px}
html body #wkPage .mw-hall .mw-none:not(#_){margin:2px 4px;font-size:13px;color:var(--ink-subtle)}
html body #wkPage .mw-addl:not(#_):not(#_){align-self:flex-start;min-height:34px;padding:0 6px;border:0;background:transparent;color:var(--c-ink);font:600 14px var(--font-sans);cursor:pointer}

/* ---------- Done for today, All clear, Done today ---------- */
html body #wkPage .mw-hall .mw-clear:not(#_):not(#_){margin:0 0 14px;padding:14px 16px;border-radius:var(--radius-lg);background:var(--accent-green-soft);border:0;box-shadow:none}
html body #wkPage .mw-hall .mw-today:not(#_):not(#_){margin:22px 0 0;padding:14px 16px;border-radius:var(--radius-lg);background:var(--surface-sunken);border:0}
html body #wkPage .mw-hall .mw-today>summary:not(#_):not(#_){font-weight:600;cursor:pointer}

/* ---------- a phone: the tabs scroll across, the toolbar wraps; the work is the phone's own page (public/phonekit.js) ---------- */
@media (max-width:760px){
  html body #wkPage .mw-head:not(#_):not(#_){margin-bottom:12px}
  html body #wkPage .mw-head .hl-head-l:not(#_):not(#_){flex-direction:column;align-items:stretch;gap:2px;width:100%}
  html body #wkPage .mw-head .hl-title:not(#_):not(#_):not(#_){display:none} /* the phone's own header says My work */
  html body #wkPage .mw-tabs:not(#_):not(#_){gap:4px 18px;margin-inline:-16px;padding-inline:16px}
  html body #wkPage .mw-pbar:not(#_):not(#_){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
  html body #wkPage .mw-pbar .mw-findw:not(#_){min-width:0}
  html body #wkPage .mw-pbar .mw-find:not(#_):not(#_):not(#_){width:100%;height:44px;min-height:44px}
  html body #wkPage .mw-pbar .mw-br:not(#_){grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html body #wkPage .mw-pbar .mw-br :is(.btn-s,.ml-chip):not(#_):not(#_):not(#_){width:100%;height:44px;min-height:44px;justify-content:center}
  html body #wkPage .mw-pbar .bk-pk:not(#_){min-width:0}
  html body #wkPage .mw-pbar .bk-pkb:not(#_):not(#_):not(#_){height:44px;min-height:44px}
}
@media (prefers-reduced-motion:reduce){html body #wkPage .mw-tick>i:not(#_){transition:none}}
