/* Same look as the "MITI October Actions" list: one narrow column, summary strip, sticky filter
   bar, then one collapsible block per client. Always light (easier to read), even in dark mode. */
:root {
  --bg: #f5f7f6; --surface: #ffffff; --fg: #1b2523; --muted: #5d6b68; --line: #dfe5e3;
  --accent: #0f6e6a; --accent-soft: #e2f0ee;
  --red: #b42318; --red-soft: #fde8e6; --amber: #9a5b00; --amber-soft: #fdf1dc;
  --blue: #2f5d8a; --blue-soft: #e6eef7; --grey: #59636e; --grey-soft: #eceff1;
  --green: #2c7a3f; --green-soft: #e3f3e6;
  --display: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;  /* Clinic Visibility's brand font (website) */
  --body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 var(--body); }
a { color: var(--accent); }
h1, h2 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.1; }
h2 { font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { font-size: 13px; background: var(--grey-soft); padding: 1px 5px; border-radius: 4px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 920px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main.wrap { padding-top: 24px; padding-bottom: 64px; display: grid; gap: 20px; }
main.wrap > * { min-width: 0; }

/* Header */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--fg); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 17px; }
.brand img { width: 28px; height: 28px; }
.brand span { color: var(--muted); font-family: var(--body); font-weight: 600; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--fg); background: var(--grey-soft); }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.who a { color: var(--fg); font-weight: 600; text-decoration: none; }
.who form { margin: 0; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* Messages */
.flash { padding: 10px 14px; border-radius: 8px; }
.flash.ok { background: var(--green-soft); color: var(--green); }
.flash.error { background: var(--red-soft); color: var(--red); }

/* Cards and forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], select, textarea {
  font: inherit; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 9px; width: 100%; }
textarea { resize: vertical; }
.btn { display: inline-block; font: inherit; font-size: 14px; font-weight: 600; background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent); border-radius: 999px; padding: 6px 16px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { background: var(--grey-soft); filter: none; }
.btn.small { font-size: 12px; padding: 3px 10px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.grid .wide { grid-column: span 2; }
.check { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--fg); }
.check input { width: auto; accent-color: var(--accent); }
details.add > summary { list-style: none; cursor: pointer; display: inline-block; }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { margin-bottom: 14px; }

/* Login */
.login-box { max-width: 380px; width: 100%; margin: 8vh auto 0; }
.login-box .logo { display: flex; justify-content: center; margin-bottom: 12px; }
.login-box .logo img { width: 56px; height: 56px; }
.login-box h1 { text-align: center; font-size: 28px; }
.login-box .field { margin-bottom: 14px; }
.login-box .btn { width: 100%; padding: 9px; }

/* ── Task board ── */
header.page p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs a { font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  border-radius: 999px; padding: 5px 12px; text-decoration: none; }
.tabs a:hover { background: var(--grey-soft); }
.tabs a.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.tabs b { font-weight: 600; opacity: .7; margin-left: 3px; font-variant-numeric: tabular-nums; }

.summary { display: flex; flex-wrap: wrap; gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.stat b { font-family: var(--display); font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.red b { color: var(--red); } .stat.amber b { color: var(--amber); } .stat.green b { color: var(--green); }

.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: sticky; top: var(--topbar-h, 0px); background: var(--bg);
  padding-block: 8px; z-index: 2; border-bottom: 1px solid var(--line); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
/* Show completed tasks: a pill toggle on the right, just above the Urgent box. */
/* Counts on the left, Show completed tasks on the right, just under the page heading. */
.statbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.statbar .summary { flex: 1 1 auto; }
.done-toggle { display: flex; justify-content: flex-end; margin: 0 0 0 auto; }
.done-toggle label { display: inline-flex; gap: 7px; align-items: center; margin: 0; cursor: pointer; font-size: 13px;
  font-weight: 600; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; }
.done-toggle label:hover { background: var(--grey-soft); }
.done-toggle label:has(input:checked) { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); }
.done-toggle input { accent-color: var(--green); margin: 0; }
.save { font-size: 12px; color: var(--muted); min-height: 18px; margin-top: -12px; }
.save.failed { color: var(--red); }

section.urgent { background: var(--red-soft); border-radius: 12px; padding-bottom: 4px; }
section.urgent h2 { padding: 12px 16px 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--red); }
section.urgent h2 .count { font-family: var(--body); font-weight: 400; }

/* Client groups are plain headings; every task under them is its own card. */
.clients { display: grid; gap: 22px; }
details.client > summary { list-style: none; cursor: pointer; padding: 0 2px 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
details.client > summary::-webkit-details-marker { display: none; }
.cname { font-family: var(--display); font-weight: 700; font-size: 18px; }
.chev { margin-left: auto; color: var(--muted); transition: transform .15s; }
details[open] > summary .chev { transform: rotate(90deg); }
.count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 4px; }
.dot { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 7px; }

/* One card per task: title + labels; click to open How to do it, My notes and the status buttons. */
ul.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
section.urgent ul.items { padding: 4px 12px 12px; }
li.item { padding: 14px 16px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(27, 37, 35, .04); }
li.item.is-urgent { border-left: 4px solid var(--red); padding-left: 13px; }
li.item .head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
li.item .head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
li.item .t { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
li.item .head .chev { margin: 0; font-size: 20px; line-height: 1; transform: rotate(90deg); }
li.item .head[aria-expanded="true"] .chev { transform: rotate(-90deg); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.chip { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 4px; padding: 1px 6px; }
.chip.tag-line { background: var(--surface); color: var(--grey); border: 1px solid var(--line); }
.urg, .pr-urgent { background: var(--red); color: #fff; }
.pr-normal { background: var(--grey-soft); color: var(--grey); }
.pr-low { background: var(--blue-soft); color: var(--blue); }
/* Where the task came from: outlined, so it doesn't compete with priority and due labels. */
.src-roadmap { color: var(--accent); border: 1px solid var(--accent); background: var(--surface); }
.src-client { color: #7a3fa0; border: 1px solid #7a3fa0; background: var(--surface); }
/* Who does the task: a person pill on every card, one colour per team member (p0-p7 by user id). */
.owner { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 1px 9px 1px 6px; color: var(--pc); background: var(--pb); }
.owner::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.owner.helper { background: var(--surface); border: 1px solid var(--pb); font-weight: 500; }
.owner.helper::before { display: none; }
.p0 { --pc: #0f6e6a; --pb: #dcefed; } .p1 { --pc: #7a3fa0; --pb: #f1e6f7; }
.p2 { --pc: #b4400d; --pb: #fbe7dc; } .p3 { --pc: #2f5d8a; --pb: #e3ecf6; }
.p4 { --pc: #a1336a; --pb: #f9e3ee; } .p5 { --pc: #4f6b12; --pb: #ebf2d9; }
.p6 { --pc: #8a5a00; --pb: #f8ecd2; } .p7 { --pc: #3d4ba3; --pb: #e5e8f8; }
.p-none { --pc: #6b757d; --pb: #eceff1; font-weight: 500; }
.src-internal { color: var(--grey); border: 1px solid #b9c1c7; background: var(--surface); }
.s-oh { background: var(--red-soft); color: var(--red); }

li:is(.item, .wl-row) .body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
li:is(.item, .wl-row) .body h4, li:is(.item, .wl-row) .body label.h4 { margin: 0 0 6px; font: 600 11px/1.4 var(--body); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }
.how { margin-bottom: 14px; font-size: 15px; }
.how ol, .how ul { margin: 0 0 8px; padding-left: 22px; }
.how li { margin-bottom: 6px; }
.how p { margin: 0 0 8px; }
.how { overflow-wrap: anywhere; }
.how code { background: var(--accent-soft); color: var(--fg); overflow-wrap: anywhere; }
.status-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sbtn { font: inherit; font-size: 13px; font-weight: 600; border-radius: 6px; padding: 6px 14px; cursor: pointer;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
/* Each button wears its status colour: soft when off, solid when it's the task's status. */
.sbtn[data-s="s-ip"] { background: var(--amber-soft); border-color: var(--amber-soft); color: var(--amber); }
.sbtn[data-s="s-cl"] { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); }
.sbtn[data-s="s-oh"] { background: var(--red-soft); border-color: var(--red-soft); color: var(--red); }
.sbtn[data-s]:hover { filter: brightness(.96); }
.sbtn[aria-pressed="true"][data-s="s-ip"] { background: var(--amber); border-color: var(--amber); color: #fff; }
.sbtn[aria-pressed="true"][data-s="s-cl"] { background: var(--green); border-color: var(--green); color: #fff; }
.sbtn[aria-pressed="true"][data-s="s-oh"] { background: var(--red); border-color: var(--red); color: #fff; }
.foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; font-size: 12px; color: var(--muted); }
.foot .linkbtn { font-size: 12px; color: var(--accent); }
.s-od { background: var(--red-soft); color: var(--red); }
.s-td { background: var(--amber-soft); color: var(--amber); }
.s-up { background: var(--blue-soft); color: var(--blue); }
.s-ip { background: var(--amber-soft); color: var(--amber); }
.s-cl { background: var(--green-soft); color: var(--green); }
.me { background: var(--accent-soft); color: var(--accent); }
.cl-name { font-weight: 600; color: var(--fg); }
li.item.done .t { text-decoration: line-through; color: var(--muted); font-weight: 500; }
li.item.done .chip { opacity: .5; }
textarea.notebox { display: block; width: 100%; font: inherit; font-size: 14px; line-height: 1.45;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px;
  resize: vertical; min-height: 76px; }
textarea.notebox::placeholder { color: var(--muted); }
li.item.done textarea.notebox { opacity: .7; }
.edit { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 8px;
  padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.edit .wide { grid-column: 1 / -1; }
.edit label { font-size: 12px; margin-bottom: 2px; }
.edit .actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty { padding: 12px 16px; color: var(--muted); font-size: 14px; }
.note { font-size: 13px; color: var(--muted); margin: 0; }

dialog { border: 1px solid var(--line); border-radius: 10px; padding: 20px; max-width: 560px; width: calc(100% - 32px);
  background: var(--surface); color: var(--fg); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog ul { list-style: none; padding: 0; margin: 12px 0 14px; max-height: 60vh; overflow: auto; }
dialog li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* Lists on Clients and Team pages */
table.list { width: 100%; border-collapse: collapse; }
.list th, .list td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.list form { margin: 0; display: inline; }
.tag { font-size: 11px; font-weight: 600; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--grey-soft); color: var(--grey); margin-right: 4px; }
.password-once { background: var(--amber-soft); border-color: var(--amber); }
.password-once code { font-size: 18px; background: var(--surface); padding: 4px 10px; user-select: all; }

@media (max-width: 700px) {
  .who { margin-left: 0; }
  .grid .wide { grid-column: auto; }
  .list thead { display: none; }
  .list tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .list td { display: block; border: 0; padding: 2px 0; }
}
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

/* ── Month dashboard ── */
.crumbs { margin: 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--accent); text-decoration: none; font-weight: 600; }
.months { display: grid; gap: 12px; }
.month.current { border-color: var(--accent); }
.mhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mhead h2 { font-size: 22px; }
/* The whole month card opens the month (the heading link stretches over it); person links sit on top. */
.month { position: relative; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.month:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(15, 110, 106, .12); }
.mhead h2 a { color: var(--fg); text-decoration: none; }
.mhead h2 a.mlink::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.month:hover .mhead h2 a { color: var(--accent); }
.mhead .count { margin-left: auto; font-size: 13px; }
.mhead .open { pointer-events: none; }
.month .tabs, .month .muted a { position: relative; z-index: 1; }
.progress { height: 6px; background: var(--grey-soft); border-radius: 999px; margin: 10px 0; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); }
.mstats { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.mstats:empty { display: none; }
.tabs .pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); margin-right: 6px; vertical-align: 1px; }
.tabs a.on .pdot { box-shadow: 0 0 0 2px #fff; }

/* ── Task card layout: number | title + chevron, then labels on the left and status buttons on the right ── */
li.item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; }
li.item.is-urgent { padding-left: 15px; }
li.item .num { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center;
  font: 700 16px/1 var(--display); background: var(--grey-soft); color: var(--grey); font-variant-numeric: tabular-nums; }
section.urgent li.item .num, li.item.is-urgent .num { background: var(--red-soft); color: var(--red); }
li.item.done .num { opacity: .55; }
li.item .main { min-width: 0; }
li.item .t { font-size: 17px; line-height: 1.35; padding-top: 3px; }
li.item .head .chev, li.item .head[aria-expanded="true"] .chev { transform: none; width: 18px; height: 18px; margin-top: 5px; color: var(--muted); flex: none; }
li.item .head[aria-expanded="true"] .chev { transform: rotate(180deg); }
li.item .head .chev svg { width: 18px; height: 18px; display: block; }
li.item .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }
li.item .row .meta { flex: 1 1 320px; margin: 0; gap: 8px; font-size: 13px; }
li.item .row .status-btns { margin: 0 0 0 auto; flex: none; }
.cl-name, .due { display: inline-flex; align-items: center; gap: 6px; }
.cl-name { font-size: 14px; font-weight: 600; color: var(--fg); }
.due { color: var(--muted); font-size: 13px; }
.cl-name svg, .due svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.chip { font-size: 11px; padding: 3px 8px; border-radius: 5px; }
.owner { gap: 5px; padding: 3px 9px 3px 7px; border-radius: 5px; font-size: 12px; }
.owner::before { display: none; }
.owner svg { width: 12px; height: 12px; flex: none; }
.sbtn { padding: 7px 14px; }
section.urgent h2 { padding: 16px 18px 8px; font-size: 22px; align-items: center; }
section.urgent h2 .alert { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid;
  place-items: center; font: 800 16px/1 var(--body); margin-right: 2px; }
section.urgent h2 .count { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  li.item { gap: 10px; padding: 14px; }
  li.item .num { min-width: 28px; height: 28px; font-size: 14px; }
  li.item .row .status-btns { margin-left: 0; flex: 1 1 100%; }
  .sbtn { padding: 6px 10px; }
}

/* Status buttons with icons, set off from the labels by a thin divider (mockup 29 Oct). */
.sbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; }
.sbtn svg { width: 16px; height: 16px; flex: none; }
.sbtn[aria-pressed="true"] svg .bg { fill: transparent; }
.sbtn[aria-pressed="false"][data-s="s-cl"] svg .bg { fill: var(--green); }
li.item .row .status-btns { border-left: 1px solid var(--line); padding-left: 16px; }
section.urgent { background: #fdf4f3; border: 0; padding: 0 0 4px; }
section.urgent h2 { background: var(--red-soft); border-radius: 12px; margin: 0 0 4px; padding: 14px 18px; }
section.urgent ul.items { padding: 6px 0 0; }
@media (max-width: 700px) {
  li.item .row .status-btns { border-left: 0; padding-left: 0; }
}

/* Comments: a thread under Details. Post only, no edit or delete. */
.comments { margin-top: 4px; }
.clist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.clist li { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.ctop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cwhen { font-size: 12px; color: var(--muted); }
.cbody { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.cform { display: flex; gap: 8px; align-items: flex-end; }
.cform textarea { flex: 1; min-height: 56px; font-size: 14px; }
.cform .btn { flex: none; }
.cform .btn:disabled { opacity: .6; cursor: wait; }
.cnote { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.due svg { width: 16px; height: 16px; }
@media (max-width: 700px) { .cform { flex-direction: column; align-items: stretch; } }
.cedited { font-size: 11px; color: var(--muted); font-style: italic; }
.ctop .cedit { margin-left: auto; font-size: 12px; color: var(--accent); }
.cform-edit { margin-top: 6px; }
.cbtns { display: flex; gap: 6px; flex: none; }

/* Comment images: thumbnails (click for full size) and previews before posting. */
.cimgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cimgs a, .pimg { display: block; position: relative; width: 120px; height: 90px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); }
.cimgs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cimgs a:hover { border-color: var(--accent); }
.cimgs.pending { margin: 0 0 8px; }
.pdel { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(27, 37, 35, .75); color: #fff; font: 600 14px/22px var(--body); padding: 0; }
.cside { display: flex; flex-direction: column; gap: 6px; flex: none; }
.attach { display: inline-flex; align-items: center; gap: 5px; }
.attach svg { width: 14px; height: 14px; }
.cform.drop textarea { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 700px) { .cside { flex-direction: row; } }

/* ── Open card (mockup 29 Oct): tinted panel across the card, icon headings, avatar comments ── */
li:is(.item, .wl-row) .body { grid-column: 1 / -1; margin-top: 4px; padding: 18px 22px 14px; border-top: 0;
  background: #f1f6f5; border-radius: 10px; }
.sec-block + .sec-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sec { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 600 12px/1.4 var(--body);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sec svg { width: 20px; height: 20px; color: var(--grey); flex: none; }
.sec-text { padding-left: 30px; }
.how.sec-text { margin-bottom: 0; }
.comments .clist { padding-left: 30px; gap: 14px; margin-bottom: 14px; }
.clist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; background: none; border: 0; padding: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--body);
  color: var(--pc); background: var(--pb); }
.ccol { min-width: 0; }
.ctop { gap: 10px; }
.cname { font-weight: 600; font-size: 14px; }
.cbubble { margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.cbubble .cbody { margin: 0; }
.cbubble .cimgs:first-child { margin-top: 0; }
.cmenu { margin-left: auto; position: relative; }
.cmenu summary { list-style: none; cursor: pointer; padding: 0 6px; font-size: 18px; line-height: 1; color: var(--muted); border-radius: 4px; }
.cmenu summary::-webkit-details-marker { display: none; }
.cmenu summary:hover { background: var(--grey-soft); }
.cmenu button { position: absolute; right: 0; top: 22px; z-index: 3; white-space: nowrap; font: inherit; font-size: 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(27, 37, 35, .12); }
.cmenu button:hover { background: var(--grey-soft); }
.comments .cimgs.pending, .comments .cform, .comments .cnote { margin-left: 30px; }
.cform textarea { background: var(--surface); }
.foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); gap: 22px; font-size: 13px; }
.foot .icon-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--accent); text-decoration: none; }
.foot .icon-link:hover { text-decoration: underline; }
.foot .icon-link svg { width: 18px; height: 18px; }
.foot .updated { margin-left: auto; }
@media (max-width: 700px) {
  li:is(.item, .wl-row) .body { padding: 14px; }
  .sec-text, .comments .clist { padding-left: 0; }
  .comments .cimgs.pending, .comments .cform, .comments .cnote { margin-left: 0; }
  .avatar { width: 32px; height: 32px; font-size: 12px; }
  .foot .updated { margin-left: 0; width: 100%; }
}

/* Muted tasks wait for an earlier step (e.g. Upload waits for Client approval). */
li.item.muted { background: #f7f8f8; border-style: dashed; }
li.item.muted .t, li.item.muted .num { color: var(--muted); }
li.item.muted .num { background: var(--grey-soft); }
li.item.muted .sbtn { opacity: .45; cursor: not-allowed; }
.chip.waiting { display: inline-flex; align-items: center; gap: 5px; background: var(--grey-soft); color: var(--grey); text-transform: none; letter-spacing: 0; }
.chip.waiting svg { width: 12px; height: 12px; }

/* Owner menu: click the name to reassign or take the task. */
.omenu { position: relative; display: inline-block; }
.omenu summary { list-style: none; cursor: pointer; }
.omenu summary::-webkit-details-marker { display: none; }
.omenu summary .owner { box-shadow: inset 0 0 0 1px transparent; }
.omenu summary:hover .owner, .omenu[open] summary .owner { box-shadow: inset 0 0 0 1px var(--pc); }
.olist { position: absolute; left: 0; top: calc(100% + 4px); z-index: 5; min-width: 170px; display: grid; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(27, 37, 35, .14); }
.olist button { text-align: left; font: inherit; font-size: 13px; background: none; border: 0; border-radius: 5px; padding: 6px 10px; cursor: pointer; color: var(--fg); }
.olist button:hover { background: var(--grey-soft); }
.olist button.mine { font-weight: 600; color: var(--accent); }
li.item.muted { padding-top: 10px; padding-bottom: 10px; }
li.item.muted .t { font-size: 15px; font-weight: 500; }
li.item.muted .row { margin-top: 6px; }
.stat.grey b { color: var(--grey); }
a.xlink { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
a.xlink:hover { color: var(--fg); }
/* Content type: new work in solid tints, updates to existing pages/blogs with a dashed edge. */
.chip.ctype { border: 1px solid transparent; }
.ct-new { background: #e4f1fb; color: #1d5b8f; }
.ct-page { background: #e9eef3; color: #3c556b; border-style: dashed; border-color: #9fb3c4; }
.ct-blog { background: #f3ecfa; color: #6b3f95; }
.ct-blog.ct-update { background: #f6f1fb; border-style: dashed; border-color: #c4a9de; }

/* ── Filter panel: left column on wide screens, a collapsible "Filters" box above the list on narrow ones ── */
.board-layout, .board-main { display: grid; gap: 20px; min-width: 0; }
.board-main > * { min-width: 0; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.filters > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.filters > summary span { color: var(--accent); font-weight: 500; }
#filters { margin-top: 10px; }
.fhead { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 6px; font: 600 11px/1.4 var(--body);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fhead:first-child { margin-top: 0; }
.fhead .linkbtn { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--accent); }
.flist { display: grid; gap: 2px; }
.fitem { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; font: inherit; font-size: 14px;
  background: none; border: 0; border-radius: 6px; padding: 6px 8px; cursor: pointer; color: var(--fg); }
.fitem:hover { background: var(--grey-soft); }
.fitem.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.fitem .pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); flex: none; }
.fitem .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem .fcount { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 1100px) {
  main.wrap.wide { max-width: 1240px; }
  .filters { position: sticky; top: calc(var(--topbar-h, 0px) + 12px); max-height: calc(100vh - var(--topbar-h, 0px) - 24px); overflow: auto; }
  .filters > summary { display: none; }
  #filters { margin-top: 0; }
}
.how p > .chip.ctype { margin-left: 10px; vertical-align: 2px; }

/* Completed cards: light green, title kept readable, a Completed pill, and one Completed button to reopen. */
li.item.done { background: #f1f8f3; border-color: #d3e8da; }
li.item.done .t { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--fg); font-weight: 600; }
li.item.done .chip { opacity: 1; }
li.item.done .num { background: var(--grey-soft); color: var(--grey); opacity: 1; }
li.item .head .donepill { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 3px 10px 3px 4px;
  border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 600; }
.donepill svg { width: 18px; height: 18px; }
.donepill svg .bg { fill: var(--green); }
li.item.done .sbtn[aria-pressed="true"][data-s="s-cl"] { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); }
li.item.done .sbtn[aria-pressed="true"][data-s="s-cl"] svg .bg { fill: transparent; }
li.item.done .sbtn[aria-pressed="true"][data-s="s-cl"] svg path { stroke: var(--green); }
li.item .head .t { flex: 0 1 auto; }
li.item .head .chev, li.item .head[aria-expanded="true"] .chev { margin-left: auto; }

/* Top bar stays at the top on screens wide enough for it to be one line; on phones it scrolls away. */
@media (min-width: 700px) {
  .topbar { position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 var(--line); }
}
@media (max-width: 699px) {
  :root { --topbar-h: 0px !important; }
}
.fgroup { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; min-width: 0; }
.fgroup legend.fhead { padding: 0; margin: 0 0 6px; width: 100%; }
label.fitem { margin: 0; font-weight: 400; color: var(--fg); }
label.fitem input { margin: 0; width: 15px; height: 15px; accent-color: var(--accent); flex: none; cursor: pointer; }
label.fitem.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.filters { overflow-x: hidden; }
label.fitem { gap: 7px; padding: 5px 6px; }
/* Carried over from an earlier month. */
.chip.carried { background: #fff4e0; color: #8a4b00; border: 1px solid #f0c98a; }
/* Client approval not answered yet. */
.chip.awaiting { display: inline-flex; align-items: center; gap: 5px; text-transform: none; letter-spacing: 0; }
.chip.awaiting svg { width: 12px; height: 12px; }

/* ── App shell (30 Oct mockup): dark green sidebar on the left, white top bar with search and the account menu ── */
:root { --side: #0f3b31; --side-fg: #e3efe9; --side-muted: #9bbcb0; --side-on: #c5ea9f; --side-on-fg: #0f3b31; --side-w: 248px; }
body.app { background: #f6f7f4; }
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-fg); position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 18px 12px 28px; display: flex; flex-direction: column; gap: 18px; }
.sbrand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 10px; color: #fff; text-decoration: none;
  font: 700 21px/1.1 var(--display); }
.sbrand img { width: 34px; height: 34px; }
.sbrand b { color: var(--side-on); font-weight: 700; }
.snav { display: grid; gap: 4px; }
.snav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--side-fg);
  text-decoration: none; font-size: 16px; font-weight: 500; }
.snav a svg { width: 20px; height: 20px; flex: none; }
.snav a:hover { background: rgba(255, 255, 255, .08); }
.snav a.on { background: var(--side-on); color: var(--side-on-fg); font-weight: 600; }
.sclients { display: grid; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
.shead { font: 600 12px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); padding: 0 12px 6px; }
.sclients a { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 8px; color: var(--side-fg);
  text-decoration: none; font-size: 14px; }
.sclients a:hover { background: rgba(255, 255, 255, .08); }
.cdot { width: 11px; height: 11px; border-radius: 50%; flex: none; display: inline-block; }
.c0 { background: #f2c14e; } .c1 { background: #5cc06a; } .c2 { background: #b18cf0; } .c3 { background: #4d8ef0; }
.c4 { background: #f06fa0; } .c5 { background: #4fd1c5; } .c6 { background: #f08a4b; } .c7 { background: #9aa5b1; }
.maincol { min-width: 0; display: flex; flex-direction: column; }
body.app .topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px; cursor: pointer; color: var(--fg); }
.menu-btn svg { width: 20px; height: 20px; display: block; }
.search { margin-left: auto; position: relative; width: min(340px, 100%); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search input[type=search] { padding: 9px 12px 9px 38px; border-radius: 9px; background: var(--bg); font-size: 14px; }
.umenu { position: relative; }
.umenu summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; font-size: 15px; }
.umenu summary::-webkit-details-marker { display: none; }
.umenu summary svg { width: 15px; height: 15px; color: var(--muted); }
.uav { width: 36px; height: 36px; border-radius: 50%; background: #1f6b4a; color: #fff; display: grid; place-items: center;
  font: 600 14px/1 var(--body); }
.ulist { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; display: grid; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 22px rgba(27, 37, 35, .14); }
.ulist a, .ulist button { text-align: left; font: inherit; font-size: 14px; color: var(--fg); background: none; border: 0;
  padding: 8px 10px; border-radius: 6px; text-decoration: none; cursor: pointer; width: 100%; }
.ulist a:hover, .ulist button:hover { background: var(--grey-soft); }
.ulist form { margin: 0; }
body.app main.wrap { max-width: 1240px; width: 100%; padding-left: 32px; padding-right: 32px; padding-top: 32px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(280px, 85vw); z-index: 30; transform: translateX(-100%);
    transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .side.open { transform: none; }
  .menu-btn { display: block; }
  body.app .topbar { padding: 10px 16px; gap: 10px; }
  .uname { display: none; }
  body.app main.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* ── Team workload page ── */
.wl-date { margin: 4px 0 0; font-size: 19px; color: var(--muted); }
.wl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.wl-card { display: grid; gap: 6px; padding: 18px 20px; border-radius: 12px; text-decoration: none; color: var(--fg);
  background: var(--pb); border: 1px solid color-mix(in srgb, var(--pc) 25%, transparent); }
.wl-card:hover { box-shadow: 0 2px 12px rgba(27, 37, 35, .1); }
.wl-card.amber { box-shadow: inset 0 0 0 2px var(--amber); }
.wl-card.red { box-shadow: inset 0 0 0 2px var(--red); }
.wl-top { display: flex; align-items: center; gap: 14px; }
.wl-top b { font: 700 28px/1 var(--display); color: var(--pc); }
.wl-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 17px/1 var(--body);
  background: color-mix(in srgb, var(--pc) 22%, #fff); color: var(--pc); }
.wl-who { font-size: 15px; }
.wl-sub { font-size: 14px; color: var(--muted); }
.wl-tip { display: flex; gap: 14px; align-items: flex-start; background: #fdf3d8; border: 1px solid #f4dd9e; border-radius: 10px; padding: 14px 18px; }
.wl-tip svg { width: 22px; height: 22px; flex: none; color: #9a6b00; margin-top: 1px; }
.wl-tip p { margin: 0; font-size: 14.5px; color: #4a3b12; }
.wl-person { display: grid; gap: 10px; }
.wl-person h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 20px; }
.wl-person h2 .count { font: 400 15px/1.4 var(--body); color: var(--muted); }
.wl-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--pc); }
.wl-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.wl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 20px 22px; }
.wl-row + .wl-row { border-top: 1px solid var(--line); }
/* Rows the tabs or search filter out (the grid display would otherwise override [hidden]). */
.wl-row[hidden] { display: none; }
.wl-tick { width: 24px; height: 24px; margin-top: 3px; border-radius: 50%; border: 1.5px solid #9aa5a1; background: var(--surface); cursor: pointer; padding: 0; }
.wl-tick:hover, .wl-row.ticked .wl-tick { border-color: var(--green); background: var(--green-soft); }
.wl-main { min-width: 0; display: grid; gap: 6px; }
.wl-title { font: 600 17px/1.35 var(--body); color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.wl-title:hover { color: var(--accent); text-decoration: underline; }
.wl-desc { margin: 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.wl-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wl-client { display: inline-flex; align-items: center; gap: 8px; background: #f1f2f0; border-radius: 7px; padding: 4px 10px; font-size: 14px; }
.wl-comment { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.wl-comment svg { width: 15px; height: 15px; flex: none; color: #6f7b77; }
.wl-comment { position: relative; gap: 5px; font-size: 13px; margin-left: 4px; }
/* New comment you haven't opened yet (Aiza, 3 Nov 2026): a red dot on the icon. */
.wl-comment.is-new::before { content: ""; position: absolute; left: 11px; top: -2px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface); }
.wl-comment.is-new { color: var(--fg); font-weight: 600; }
.wl-comment:hover { color: var(--accent); }
.wl-ctrl { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)) 150px; gap: 8px; align-items: start; }
.wl-ctrl select, .wl-ctrl input { background: var(--surface); padding: 8px 10px; font-size: 14px; }
@media (max-width: 1200px) { .wl-row { grid-template-columns: auto minmax(0, 1fr); } .wl-ctrl { grid-column: 2; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
.searching { font-size: 14px; color: var(--fg) !important; background: var(--accent-soft); border-radius: 8px; padding: 6px 12px; display: inline-block; margin-top: 10px !important; }
.pick-note { margin: -8px 0 0; font-size: 14px; background: var(--accent-soft); color: var(--fg); border-radius: 8px; padding: 6px 12px; justify-self: start; }
.pick-note .linkbtn { color: var(--accent); font-weight: 600; }
.pick-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: -8px; }
.pick-row .pick-note { margin: 0; }
.pick-who { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--muted); }
.pick-who select { width: auto; min-width: 200px; }
/* ── Open task card (30 Oct mockup): plain card with dividers, key fields in two columns, footer with comment count ── */
li:is(.item, .wl-row) .body { background: none; border-radius: 0; border-top: 1px solid var(--line); padding: 16px 0 0; margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0 0 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--fg); }
li:is(.item, .wl-row) .body .sec-block + .sec-block { border-top: 0; padding-top: 0; }
li:is(.item, .wl-row) .body .foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.foot .ccount { order: 0; color: var(--fg); }
.foot .updated { order: 1; margin-left: 0; margin-right: auto; font-size: 12px; color: var(--muted); }
.foot .icon-link:not(.ccount) { order: 2; }
li:is(.item, .wl-row) .body .comments { margin-top: 16px; }
@media (max-width: 700px) { li:is(.item, .wl-row) .body { padding: 14px 0 0; } .foot .updated { width: auto; } }
/* Sidebar Team and Clients: foldable groups. */
.sgroup { display: grid; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
.sgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-radius: 6px; }
.sgroup > summary::-webkit-details-marker { display: none; }
.sgroup > summary:hover { color: var(--side-fg); }
.schev { width: 15px; height: 15px; transition: transform .15s; }
.sgroup:not([open]) .schev { transform: rotate(-90deg); }
.sgroup a { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 8px; color: var(--side-fg); text-decoration: none; font-size: 14px; }
.sgroup a:hover { background: rgba(255, 255, 255, .08); }
.pdot-s { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--pc); filter: brightness(1.6) saturate(1.2); }
@media (prefers-reduced-motion: reduce) { .schev { transition: none; } }
/* Sidebar (30 Oct mockup): group headings, count badges, status and service dots. */
.side > .shead { padding: 0 12px; margin-bottom: -10px; }
.snav a span { flex: 1; }
.sbadge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .14);
  color: var(--side-fg); font: 600 12px/1.5 var(--body); text-align: center; font-variant-numeric: tabular-nums; }
.snav a.on .sbadge, .sgroup a.on .sbadge { background: rgba(15, 59, 49, .14); color: var(--side-on-fg); }
.sgroup a span { flex: 1; min-width: 0; }
.sgroup a.on { background: var(--side-on); color: var(--side-on-fg); font-weight: 600; }
.sic { width: 16px; height: 16px; flex: none; }
.st-active { background: #5cc06a; } .st-paused { background: #f2b84b; } .st-archived { background: #9aa5b1; }
.sv-seo { background: #5cc06a; } .sv-google-ads { background: #f2b84b; } .sv-web-design { background: #b18cf0; }
.sv-local-seo { background: #4d8ef0; } .sv-content { background: #f06fa0; } .sv-competitor-report { background: #e8954a; } .sv-foundations { background: #2f5fa8; }

/* ── Workspace pages (30 Oct mockup): Home, My tasks, Week review, template pages ── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.phead p { margin: 6px 0 0; }
.phead-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.datepill { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 14px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.weekpill a { text-decoration: none; font-size: 18px; line-height: 1; color: var(--accent); padding: 0 2px; }
.whoform select { background: var(--surface); padding: 8px 10px; }
.hstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.hstat { display: grid; gap: 2px; padding: 18px 20px; border-radius: 12px; text-decoration: none; color: var(--fg);
  background: var(--hb); border: 1px solid color-mix(in srgb, var(--hc) 22%, transparent); }
a.hstat:hover { box-shadow: 0 2px 12px rgba(27, 37, 35, .1); }
.hstat b { font: 700 32px/1.1 var(--display); color: var(--hc); }
.hstat span { font-weight: 600; color: var(--hc); }
.hstat small { font-size: 13px; color: var(--muted); }
.hstat.red { --hc: #c0392b; --hb: #fdeceb; } .hstat.blue { --hc: #2f5fbf; --hb: #eaf0fb; }
.hstat.amber { --hc: #a8620a; --hb: #fdf3e2; } .hstat.green { --hc: #2c7a3f; --hb: #e8f5ea; }
.hstat.purple { --hc: #6b46c1; --hb: #f1ebfb; }
.tcard { padding: 0; overflow: hidden; }
.tcard-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 22px 8px; }
.tcard-head h2 { font-size: 20px; }
.tcard-head a { font-weight: 600; text-decoration: none; }
.tlist { list-style: none; margin: 0; padding: 0; }
.trow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto 92px; gap: 14px; align-items: center; padding: 14px 22px;
  border-top: 1px solid var(--line); }
.trow.ticked { opacity: .5; }
.trow.muted .ttitle { color: var(--muted); }
.trow .wl-tick { margin-top: 0; }
.trow .wl-tick:disabled { cursor: not-allowed; opacity: .4; }
.tmain { min-width: 0; display: grid; }
.ttitle { font-weight: 600; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.ttitle:hover { color: var(--accent); text-decoration: underline; }
.tclient { font-size: 13.5px; color: var(--muted); }
.tclientcol { display: none; }
.tdate { font-size: 14px; text-align: right; color: var(--fg); }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; border-radius: 6px; padding: 3px 10px; white-space: nowrap; }
.pill.ip { background: #e6eefc; color: #2f5fbf; } .pill.todo { background: var(--grey-soft); color: var(--grey); }
.pill.hold { background: var(--red-soft); color: var(--red); } .pill.wait { background: #f1f2f0; color: var(--muted); border: 1px dashed #c6ccc9; }
.ttabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ttabs button { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.ttabs button b { font-size: 12px; background: var(--grey-soft); color: var(--grey); border-radius: 5px; padding: 0 6px; }
.ttabs button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ttabs button[aria-pressed="true"] b { background: var(--accent); color: #fff; }
.ttools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 22px; }
.tsearch { flex: 1 1 240px; margin: 0; }
.tsearch input { background: var(--surface); }
.tsort { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.tsort select { width: auto; background: var(--surface); }
.thead { display: none; }
@media (min-width: 1100px) {
  .tlist-table .trow { grid-template-columns: auto minmax(0, 2.2fr) minmax(0, 1fr) 110px 150px 92px; }
  .tlist-table .tclientcol { display: block; font-size: 14px; color: var(--fg); overflow-wrap: anywhere; }
  .tlist-table .tclient { display: none; }
  .thead { display: grid; grid-template-columns: 24px minmax(0, 2.2fr) minmax(0, 1fr) 110px 150px 92px; gap: 14px; padding: 8px 22px;
    font: 600 12px/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
  .thead span:last-child { text-align: right; }
}
@media (max-width: 700px) {
  .trow { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .trow .tdue-label, .trow .pill, .trow .tdate { grid-column: 2; justify-self: start; }
  .trow .tdate { text-align: left; }
  .tcard-head, .ttools { padding-left: 16px; padding-right: 16px; }
}
.wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.wgrid .card { display: grid; gap: 10px; align-content: start; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 220px; align-items: end; padding-top: 10px; }
.barcol { display: grid; grid-template-rows: auto 1fr auto; align-items: end; justify-items: center; height: 100%; gap: 4px; }
.barnum { font-size: 13px; font-weight: 600; color: var(--fg); min-height: 18px; }
.wbar { width: 70%; max-width: 44px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: #9fd4ab; align-self: end; }
.barcol.today .wbar { background: #2c9a4b; }
.barlbl { font-size: 12.5px; text-align: center; color: var(--muted); line-height: 1.3; }
.barlbl small { font-size: 11px; }
.donutwrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.donut { width: 170px; height: 170px; transform: rotate(0deg); }
.dnum { font: 700 24px var(--display); fill: var(--fg); }
.dlbl { font: 500 12px var(--body); fill: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1 1 160px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ldot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.wtable td:last-child, .wtable th:last-child { text-align: right; }
.wins { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wins li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.wcheck { width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center;
  font-size: 13px; font-weight: 700; flex: none; }
.tplnote { margin: 0; font-size: 14px; background: #fdf3d8; border: 1px solid #f4dd9e; color: #4a3b12; border-radius: 10px; padding: 10px 14px; }
.tablewrap { overflow-x: auto; }
.ctable { min-width: 640px; }
.ctable th, .ctable td { padding-left: 22px; }
.ctable td a { color: var(--fg); font-weight: 600; text-decoration: none; }
.ctable td a:hover { color: var(--accent); text-decoration: underline; }
.svc { display: inline-block; font-size: 12.5px; font-weight: 600; border-radius: 6px; padding: 2px 8px; margin: 0 4px 2px 0;
  background: #e8f5ea; color: #2c7a3f; }
.svc.sv-google-ads { background: #fdf3e2; color: #a8620a; }
.svc.sv-foundations { background: #e8f0fb; color: #2f5fa8; }
.svc.sv-competitor-report { background: #fdeee2; color: #b5581c; }
.svc.sv-web-design { background: #f1eafb; color: #6f45b0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.sgroup a .cdot, .sgroup a .pdot-s, .sgroup a .sic { flex: none; }
.trow > .pill, .trow > .tdue-label { justify-self: start; }
.wbar[style*='height: 0.0%'] { background: var(--grey-soft); }
.pill.active { background: var(--green-soft); color: var(--green); }
/* Brand font is lighter than the old display face: headings at 600, not 700. */
h1, h2, .wl-top b, .hstat b, .cname { font-weight: 600; letter-spacing: -0.01em; }
/* ── Task side panel (30 Oct): slides in from the right over any page ── */
.drawer-shade { position: fixed; inset: 0; background: rgba(15, 30, 26, .28); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(max(47vw, 440px), 100vw); z-index: 41; background: var(--surface);
  box-shadow: -12px 0 40px rgba(15, 30, 26, .18); overflow-y: auto; padding: 18px 26px 32px;
  padding-right: max(26px, env(safe-area-inset-right, 0px)); padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  display: grid; gap: 14px; align-content: start; animation: drawerin .18s ease-out; }
html.drawer-open { overflow: hidden; }
@keyframes drawerin { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
.dtop { display: flex; justify-content: space-between; align-items: center; }
.dlink { font-size: 14px; font-weight: 600; text-decoration: none; }
.dclose { font: 400 28px/1 var(--body); background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0 4px; }
.dclose:hover { color: var(--fg); }
.dtitle { font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.dchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dbtns { margin: 0; }
.dbtns .sbtn:disabled { opacity: .45; cursor: not-allowed; }
.dfacts { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dfacts dd select, .dfacts dd input { font-size: 15px; font-weight: 600; background: var(--surface); padding: 6px 8px; }
.dval { display: inline-block; padding: 6px 0; }
.dsave { margin: -6px 0 0; min-height: 18px; font-size: 13px; color: var(--muted); }
.dsave.failed { color: var(--red); }
.dsec h3 { margin: 0 0 6px; font: 600 12px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dsec .how { margin: 0; }
.dcomments { border-top: 1px solid var(--line); padding-top: 14px; }
.dcomments .clist { padding-left: 0; margin-bottom: 12px; }
.dform { margin: 0; }
.dloading { color: var(--muted); }
@media (max-width: 700px) { .drawer { padding: 14px 16px 24px; } .dform { flex-direction: column; } }
.trow { cursor: pointer; } .trow:hover { background: #fafbf9; }
/* The panel and its shade only show when a task is open (the grid display would otherwise override [hidden]). */
.drawer[hidden], .drawer-shade[hidden] { display: none; }
/* ── Team workload chart (30 Oct): one stacked bar per person. Colours validated with the dataviz palette checks
   (fixed order completed, in progress, on hold, to do, waiting; counts written out under each bar). ── */
.sg-done { background: #1baf7a; } .sg-prog { background: #2a78d6; } .sg-hold { background: #eb6834; }
.sg-todo { background: #6250d6; } .sg-wait { background: #eda100; }
.wl-chart { position: relative; display: grid; gap: 14px; padding: 20px 22px; }
.wl-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.wl-chart-head h2 { font-size: 20px; }
.wl-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--fg); }
.wl-legend li { display: inline-flex; align-items: center; gap: 7px; }
.wl-rows { display: grid; gap: 4px; }
.wl-crow { display: grid; grid-template-columns: 130px minmax(0, 1fr) 44px; grid-template-areas: "name track total" ". nums nums" ". urgent urgent";
  gap: 4px 14px; align-items: center; padding: 10px 8px; border-radius: 8px; color: var(--fg); text-decoration: none; }
.wl-crow:hover { background: #f6f8f6; }
.wl-cname { grid-area: name; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.wl-track { grid-area: track; height: 22px; }
.wl-bar { display: flex; gap: 2px; height: 100%; min-width: 4px; }
.wl-seg { display: block; height: 100%; min-width: 3px; }
.wl-seg:first-child { border-radius: 4px 0 0 4px; } .wl-seg:last-child { border-radius: 0 4px 4px 0; }
.wl-seg:only-child { border-radius: 4px; }
.wl-seg:hover { filter: brightness(1.08); outline: 2px solid var(--surface); }
.wl-total { grid-area: total; text-align: right; font-variant-numeric: tabular-nums; }
.wl-nums { grid-area: nums; font-size: 13px; color: var(--muted); }
.wl-urgent { grid-area: urgent; justify-self: start; font-size: 12.5px; font-weight: 600; color: var(--fg); background: var(--grey-soft); border-radius: 6px; padding: 1px 8px; }
.wl-urgent.amber { background: var(--amber-soft); color: var(--amber); } .wl-urgent.red { background: var(--red-soft); color: var(--red); }
.wl-tooltip { position: absolute; z-index: 5; pointer-events: none; background: #1b2523; color: #fff; font-size: 13px; padding: 5px 9px;
  border-radius: 6px; white-space: nowrap; }
.wl-tooltip[hidden] { display: none; }
@media (max-width: 600px) { .wl-crow { grid-template-columns: 90px minmax(0, 1fr) 36px; gap: 4px 10px; } }
.wl-ptabs { position: sticky; top: calc(var(--topbar-h, 0px) + 8px); z-index: 3; background: #f6f7f4; padding: 6px 0; scroll-margin-top: calc(var(--topbar-h, 0px) + 8px); }
.wl-ptabs .wl-dot { width: 10px; height: 10px; }
.wl-person[hidden] { display: none; }
.wl-tick.is-done { background: var(--green); border-color: var(--green); }
/* Team member page */
.mstate { align-self: center; font-size: 13px; }
.mbar { display: block; height: 26px; }
.mhead2 { font-size: 20px; margin-top: 4px; }
/* Monthly overview on the month page */
.mo { display: grid; gap: 16px; }
.mo-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mo-grid > .card { display: grid; gap: 12px; }
.mo-row { font: inherit; text-align: left; background: none; border: 0; width: 100%; cursor: pointer; grid-template-areas: "name track total" ". nums nums"; }
@media (max-width: 1000px) { .mo-grid { grid-template-columns: minmax(0, 1fr); } }
.wl-chart > .mbar, .wl-chart > .wl-nums { grid-area: auto; }

/* My tasks tabs, colour coded (Aiza, 30 Oct): status tabs use the Team workload chart colours; the count wears the
   colour; each tab is tinted in it and the picked one is solid. */
.ttabs-color button { --tc: var(--accent); }
.ttabs-color [data-tab="today"] { --tc: #a8620a; } .ttabs-color [data-tab="overdue"] { --tc: #c0392b; }
.ttabs-color [data-tab="urgent"] { --tc: #b42318; } .ttabs-color [data-tab="progress"] { --tc: #2466b8; }
.ttabs-color [data-tab="todo"] { --tc: #6250d6; } .ttabs-color [data-tab="hold"] { --tc: #b8481a; }
.ttabs-color [data-tab="waiting"] { --tc: #8a5f00; } .ttabs-color [data-tab="done"] { --tc: #167a55; }
.ttabs-color button { background: color-mix(in srgb, var(--tc) 8%, #fff); border-color: color-mix(in srgb, var(--tc) 30%, #fff); color: var(--tc); }
.ttabs-color button b { background: color-mix(in srgb, var(--tc) 16%, #fff); color: var(--tc); }
.ttabs-color button:hover { border-color: var(--tc); }
.ttabs-color button[aria-pressed="true"] { background: var(--tc); border-color: var(--tc); color: #fff; }
.ttabs-color button[aria-pressed="true"] b { background: #fff; color: var(--tc); }
/* Rows hidden by a tab, search or filter (the grid display would otherwise override [hidden]). */
.trow[hidden] { display: none; }

/* Tags and Inbox (Aiza, 31 Oct): @Name in comments, the @ picker, the top bar bell and the Inbox page. */
.mention { font-weight: 600; color: #0f5e5a; background: #dcefed; border-radius: 4px; padding: 0 3px; }
.mpick { position: fixed; z-index: 80; width: 240px; display: grid; padding: 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(27, 37, 35, .18); }
.mpick-item { display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; font-size: 14px; color: var(--fg);
  background: none; border: 0; border-radius: 7px; padding: 6px 8px; cursor: pointer; }
.mpick-item .avatar { width: 26px; height: 26px; font-size: 11px; }
.mpick-item:hover, .mpick-item.on { background: var(--accent-soft); }
.sbadge-new { background: #c9363c !important; color: #fff !important; }
.bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--fg);
  border: 1px solid var(--line); background: var(--surface); }
.bell:hover, .bell.on { background: var(--accent-soft); color: var(--accent); }
.bell svg { width: 20px; height: 20px; }
.bell b { position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: #c9363c; color: #fff; font: 700 11px/19px var(--body); text-align: center; border: 2px solid var(--surface); box-sizing: content-box; }
.ilist { list-style: none; margin: 0; padding: 0; }
.irow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 22px;
  border-top: 1px solid var(--line); cursor: pointer; }
.irow:first-child { border-top: 0; }
.irow:hover { background: #f7faf9; }
.irow.unread { background: #f1f8f7; }
.irow.unread:hover { background: #e8f3f1; }
.irow[hidden] { display: none; }
.irow .avatar { width: 38px; height: 38px; font-size: 13px; }
/* Inbox checkboxes (4 Nov 2026): tick items, then Mark as read. */
.irow { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.ipick { display: flex; align-items: center; height: 38px; padding: 0 2px; cursor: pointer; }
.ipick input, .ipick-all input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.icard { overflow: clip; }
.ibar { position: sticky; top: var(--topbar-h, 0px); z-index: 4; display: flex; align-items: center; justify-content: flex-start;
  gap: 20px; flex-wrap: wrap; padding: 10px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ibar[hidden] { display: none; }
.ibar .btn { padding: 6px 14px; font-size: 13px; }
/* Mark as read (ticked) is solid green; Mark all as read is red and asks first (4 Nov 2026). */
.ibar .btn.iall { color: #b3261e; border-color: #e8b4b0; background: #fdf2f1; }
.ibar .btn.iall:hover { background: #fbe4e2; }
.ibar .btn:disabled { opacity: .45; cursor: default; filter: none; }
.ipick-all { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.iactions { display: flex; gap: 8px; flex-wrap: wrap; }
.iactions [hidden] { display: none; }
.imain { min-width: 0; display: grid; gap: 4px; }
.ihead { font-size: 15px; color: var(--fg); overflow-wrap: anywhere; }
.ihead a { color: var(--fg); font-weight: 600; text-decoration: none; }
.ihead a:hover { color: var(--accent); text-decoration: underline; }
.imeta { font-size: 13px; color: var(--muted); }
.imeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0; }
.istat { font-size: 13px; font-weight: 600; border-radius: 7px; padding: 4px 10px; background: #eef0ed; color: #4b5650; }
.istat.st-in-progress { background: #e7f1fb; color: #2466b8; }
.istat.st-to-do { background: #efedff; color: #5240c4; }
.istat.st-on-hold { background: #f9ece7; color: #a24a1c; }
.istat.st-completed { background: #e5f4e4; color: #2c7a3c; }
.iquote { margin: 4px 0 0; font-size: 14px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.iside { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.idot { width: 9px; height: 9px; border-radius: 50%; background: #c9363c; }
.irow:not(.unread) .idot { visibility: hidden; }
@media (max-width: 700px) { .irow { grid-template-columns: auto auto minmax(0, 1fr); padding: 14px 16px; } .iside { grid-column: 3; } }
/* Inbox labels: what kind of note it is. */
.klabel { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 9px; }
.klabel::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.k-assigned { background: #e6eefc; color: #2466b8; }
.k-mention { background: #efecfb; color: #5240c4; }
/* Task IDs (CV-XXXX-XXXX): a small grey tag; on cards and in the side panel it copies the task's link. The month page
   cards no longer carry the 1, 2, 3 list numbers. */
li.item { grid-template-columns: minmax(0, 1fr); }
.tcode, .tcode-s { font: 600 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; color: var(--grey); }
.tcode { background: var(--grey-soft); border: 1px solid transparent; border-radius: 5px; padding: 2px 7px; cursor: pointer; }
.tcode:hover { border-color: var(--grey); color: var(--fg); }
.tcode-row { font-size: 11px; margin-top: 1px; }
/* Side panel: Copy link to task sits next to Open on month page; the ID shows as plain text by the chips. */
.dtop .dcopy { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; margin-right: auto; }
.dtop .dcopy:hover { text-decoration: underline; }
.dtop .dlink + .dcopy { margin-left: 18px; }
.dcode { align-self: center; font-size: 12.5px; }
.tcode-row { display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.tcopy { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; }
.tcopy:hover { text-decoration: underline; }
/* "by Clinic Visibility" under the CV Pulse name in the sidebar. */
.sbrand-name { line-height: 1.15; }
.sbrand-name small { display: block; font-family: var(--body, inherit); font-size: 11px; font-weight: 500; color: rgba(255,255,255,.6); letter-spacing: .02em; margin-top: 2px; }
/* A task's own page (/<ID>/, 31 Oct): the side panel's content as a page. */
.tcrumb { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.tcrumb a { color: var(--accent); font-weight: 600; text-decoration: none; }
.tcrumb a:hover { text-decoration: underline; }
.task-page { display: grid; gap: 14px; align-content: start; padding: 22px 26px 30px; }
.task-page .dclose { display: none; }
@media (max-width: 700px) { .task-page { padding: 16px; } .task-page .dform { flex-direction: column; } }
/* Task page and side panel: status label first in the labels row; status buttons inside the Status field. */
.dstatus { font-weight: 700; }
.st-to-do, .st-waiting-for-client { background: var(--blue-soft); color: var(--blue); }
.st-in-progress, .st-needs-edits { background: var(--amber-soft); color: var(--amber); }
.st-completed, .st-approved { background: var(--green-soft); color: var(--green); }
.st-on-hold, .st-change-topic { background: var(--red-soft); color: var(--red); }
.dfacts dd .status-btns { margin: 0; }
/* Labels row on the task page and side panel: every label the same height (Aiza, 31 Oct 2026). */
.dchips > * { box-sizing: border-box; height: 28px; display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0;
  line-height: 1; border-radius: 6px; }
.dchips > .chip { padding: 0 10px; }
/* ── Client roadmap page (/clients/<slug>/, MOCKUP 1 Nov 2026): the roadmap sheet as a page ── */
.rm-note { margin: 0; color: var(--muted, #5b6560); font-size: 13px; }
.rm-sheethead { padding: 20px 24px; display: grid; gap: 16px; }
.rm-title-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rm-title-row .rm-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.rm-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 700 24px var(--display); color: #fff; background: var(--accent); }
.rm-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.rm-sheethead h1 { margin: 0; font-size: 26px; }
.rm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rm-facts > div { padding: 10px 14px; border-right: 1px solid var(--line); }
.rm-facts > div:last-child { border-right: 0; }
.rm-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #3a3f3c; margin: -10px -14px 8px; padding: 6px 14px; }
.rm-facts dd { margin: 0; font-weight: 600; font-size: 15px; }
.rm-bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 6px; }
.rm-bar > i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.rm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.rm-stat { padding: 14px 18px; display: grid; gap: 4px; }
.rm-stat b { font: 700 26px/1 var(--display); color: var(--fg); }
.rm-stat b small { font-size: 15px; color: var(--muted); font-weight: 600; }
.rm-stat span { font-size: 13px; color: var(--muted); }
.rm-stat.now b { color: var(--accent); } .rm-stat.appr b { color: #c06a00; } .rm-stat.bad b { color: var(--red); }
.rm-filters { display: grid; gap: 8px; margin: 16px 0 10px; }
.rm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-chips button { font: 600 13px var(--body); border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 99px; padding: 5px 12px; cursor: pointer; }
.rm-chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.rm-sheet { padding: 0; overflow-x: auto; }
.rm-grid { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 1100px; }
.rm-grid thead th { position: sticky; top: 0; z-index: 2; background: #a9c3b1; color: #24372c; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-align: center; padding: 9px 10px; border-right: 1px solid rgba(255,255,255,.5); }
.rm-grid thead th:nth-child(2) { text-align: left; }
.rm-band td { padding: 0; background: #3a3f3c; }
.rm-toggle { width: 100%; display: flex; align-items: baseline; gap: 14px; background: none; border: 0; color: #fff; padding: 10px 14px; cursor: pointer; text-align: left; font: inherit; }
.rm-blabel { font: 700 17px var(--display); letter-spacing: .02em; }
.rm-brange { font-style: italic; font-size: 13px; opacity: .85; }
.rm-bprog { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; opacity: .9; }
.rm-bprog .rm-bar { width: 110px; margin: 0; background: rgba(255,255,255,.25); }
.rm-caret { transition: transform .15s; }
.rm-toggle[aria-expanded="false"] .rm-caret { transform: rotate(-90deg); }
.rm-sec.now .rm-band td { background: var(--accent); }
.rm-row td { padding: 8px 10px; border-bottom: 1px solid #e6e8e5; vertical-align: top; }
.rm-row.shade td { background: #f4f5f3; }
.rm-row.first td { border-top: 1px solid #d5d8d3; }
.rm-row.now td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.rm-month { white-space: nowrap; font-weight: 700; width: 120px; }
.rm-nowtag { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.rm-del { min-width: 320px; }
.rm-dtitle { font-weight: 600; overflow-wrap: anywhere; }
.rm-url { color: var(--accent); }
.rm-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.rm-xtag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #7a5b00; background: #fff1c2; border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.rm-row.extra .rm-dtitle { font-weight: 500; }
.rm-steps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rm-step { font-size: 11.5px; font-weight: 600; text-decoration: none; border-radius: 99px; padding: 2px 8px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.rm-step::before { content: "○ "; }
.rm-step.sdone { background: var(--green-soft); border-color: transparent; color: var(--green); } .rm-step.sdone::before { content: "✓ "; }
.rm-step.sin-progress { background: var(--amber-soft); border-color: transparent; color: var(--amber); } .rm-step.sin-progress::before { content: "● "; }
.rm-step.son-hold { background: var(--red-soft); border-color: transparent; color: var(--red); } .rm-step.son-hold::before { content: "‖ "; }
.rm-step:hover { text-decoration: underline; }
.rm-c { text-align: center; white-space: nowrap; }
.rm-date { color: #444; }
.rm-cat { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 4px; padding: 3px 8px; white-space: nowrap; color: #fff; }
.c-new { background: #2f7a55; } .c-opt { background: #8a5a2b; } .c-blog { background: #6250d6; } .c-local { background: #2f6b4f; }
.c-tech { background: #3f5f52; } .c-off { background: #13777a; } .c-rep { background: #a0632a; } .c-ai { background: #b4306a; }
.c-req { background: #fff; color: #555; border: 1px solid var(--line); }
.rm-stcell { text-align: center; font-weight: 600; white-space: nowrap; }
.rm-row td.st-completed { background: #b7e1c1; color: #1d5e33; }
.rm-row td.st-not-started { background: #d9dbd8; color: #505550; }
.rm-row td.st-for-client-approval { background: #f6b26b; color: #6b3a00; }
.rm-row td.st-in-progress { background: #ffe599; color: #6b5300; }
.rm-row td.st-on-hold { background: #f4c7c3; color: #8c1d18; }
.rm-sync { font-size: 11px; opacity: .7; }
.rm-who { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 2px 10px; background: #eceeed; color: #333; }
.w-aiza { background: #fdeeb5; } .w-michelle { background: #e6dcf7; } .w-nicole { background: #d5e8f7; }
.w-aiza-michelle, .w-aiza-nicole { background: #f9d6dc; } .w-schantelle { background: #d9f0e3; } .w-steph { background: #ffe0c7; }
.rm-link { white-space: nowrap; }
/* Wide screens: the table fits, so its heading row can stay under the top bar while scrolling (like a frozen row). */
/* Full page width, and the page itself scrolls (no scroll bars inside the table); the column headings stay frozen
   under the top bar. Narrow screens, where the table can't fit, scroll the table sideways instead. */
body.app main.wrap.roadmap { max-width: none; }
.rm-sheet { overflow: visible; overflow-x: clip; }
.rm-grid thead th { top: var(--topbar-h, 0px); }
.rm-grid thead th:first-child { border-top-left-radius: 9px; }
.rm-grid thead th:last-child { border-top-right-radius: 9px; }
@media (max-width: 1099px) { .rm-sheet { overflow-x: auto; } .rm-grid thead th { top: 0; } }
.rm-url { color: var(--accent); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.rm-url:hover { text-decoration: underline; }

/* Every task list uses the Team workload row (Aiza, 1 Nov 2026): _task_rows.html, and itemRow() on the month page. */
.tcard .wl-list { border: 0; border-radius: 0; background: none; }
ul.items.wl-list { display: block; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
section.urgent ul.items.wl-list { padding: 0; margin-top: 6px; }
button.wl-title, button.wl-comment { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-family: inherit; }
button.wl-title { font: 600 17px/1.35 var(--body); }
.wl-row.is-done .wl-title { color: var(--muted); text-decoration: line-through; }
.wl-row.muted .wl-title, .wl-row.muted .wl-desc { opacity: .65; }
.wl-tick:disabled { cursor: not-allowed; }
.wl-tick:disabled:not(.is-done) { opacity: .4; }
.wl-ctrl select:disabled { opacity: .55; cursor: not-allowed; }
.wl-row > .body { grid-column: 1 / -1; }
.save.save-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; background: var(--fg); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 60; }
.save.save-toast:empty { display: none; }
@media (max-width: 700px) { .wl-row { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 12px; } .wl-ctrl { grid-column: 1 / -1; } }

/* Month page (Aiza, 1 Nov 2026): one task list (Urgent on top, then Other tasks) and Add a task as a popup. */
section.rest h2.rest-head { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; font-size: 22px; }
section.rest h2 .count { font-family: var(--body); font-weight: 400; font-size: 15px; color: var(--muted); }
.pick-row #add-open { margin: 0; }
dialog.add-dialog { width: min(820px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 40px); border: 0; border-radius: 18px; padding: 0; background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px rgba(20, 30, 25, .25); }
dialog.add-dialog::backdrop { background: rgba(20, 30, 25, .45); }
dialog.add-dialog form { padding: 22px 26px 24px; }
.add-dhead { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.add-dhead > div { flex: 1; }
.add-dhead h2 { margin: 0; font-size: 26px; }
.add-dhead p { margin: 2px 0 0; color: var(--muted); }
.add-icon { width: 54px; height: 54px; border-radius: 12px; background: #e6f2ea; color: #1f5f3c; display: grid; place-items: center; flex: none; }
.add-icon svg { width: 32px; height: 32px; }
.add-dhead .dclose { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--fg); padding: 0 4px; align-self: flex-start; }
.add-sec { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; padding: 10px 14px; border-radius: 10px; background: #edf5ef; color: #1f4f33; font-size: 18px; }
.add-sec svg { width: 22px; height: 22px; flex: none; }
.add-grid { display: grid; gap: 12px 18px; padding: 0 4px; }
.add-grid.g-2 { grid-template-columns: 1.4fr 1fr; }
.add-grid.g-3 { grid-template-columns: repeat(3, 1fr); }
.add-grid.g-4 { grid-template-columns: repeat(4, 1fr); }
.add-grid label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.add-grid small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.add-grid .req { color: var(--red); font-weight: 600; }
.add-grid input, .add-grid select, .add-grid textarea { width: 100%; margin-top: 4px; }
.add-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.add-actions .btn { padding: 11px 26px; border-radius: 999px; font-size: 15px; }
@media (max-width: 700px) { .add-grid.g-2, .add-grid.g-3, .add-grid.g-4 { grid-template-columns: 1fr 1fr; } .add-grid.g-2 { grid-template-columns: 1fr; } }

/* Client health on the client list (Aiza, 1 Nov 2026): green / amber / red, reasons on hover and underneath. */
.health { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 3px 11px 3px 9px; }
.health i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.health.h-green { background: #e3f3e8; color: #1f7a45; }
.health.h-amber { background: #fdf0d8; color: #9a6200; }
.health.h-red { background: #fbe3e1; color: #b3261e; }
.health.h-none { background: #eef0ee; color: var(--muted); }
.health-why { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }

/* Side panel: Edit task and History (Aiza, 1 Nov 2026: the month page opens tasks here too). */
.dtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 4px 0 8px; font-size: 14px; }
.dtools .linkbtn { color: var(--accent); font-weight: 600; }
.dupdated { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.dedit .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.dedit .grid .wide { grid-column: 1 / -1; }
.dedit label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.dedit input, .dedit select, .dedit textarea { width: 100%; }
.dedit > .btn { margin-top: 12px; }
.dhistory .hlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; overflow-wrap: anywhere; }
.cedit { margin-left: auto; font-size: 12.5px; color: var(--accent); }
.cedit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.cbubble textarea { width: 100%; }

/* Roadmap month filter (Aiza, 1 Nov 2026). */
.rm-when { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 -4px; }
.rm-when button { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 7px 16px; font: 600 14px var(--body); cursor: pointer; }
.rm-when button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* A client's month page header: website and roadmap link (Aiza, 1 Nov 2026). */
.client-links { margin: 6px 0 0; display: grid; gap: 4px; font-size: 15px; }
.client-links > div { display: flex; gap: 8px; flex-wrap: wrap; }
.client-links dt { font-weight: 600; }
.client-links dd { margin: 0; }

/* Client list filters (Aiza, 1 Nov 2026). */
.ttools .cfilter { flex: 0 0 auto; width: auto; min-width: 150px; background: var(--surface); }
@media (max-width: 700px) { .ttools .cfilter { flex: 1 1 140px; } }

/* Roadmap rows for content pieces (Aiza, 1 Nov 2026): the stage as the status, one link per step task. */
.rm-row td.st-content-draft, .rm-row td.st-content-edits, .rm-row td.st-new-topic, .rm-row td.st-upload { background: #ffe599; color: #6b5300; }
.rm-row td.st-published { background: #d4efda; color: #1d5e33; }
.rm-tasks { white-space: normal; min-width: 140px; }
.rm-tasks a { display: block; white-space: nowrap; line-height: 1.6; }
.rm-tasks a.done { color: var(--muted); }
.rm-tasks a.done::before { content: "✓ "; }
