/* ============================================================
   StreetTasker — coordinator.css (Stage 3A)
   Coordinator portal: sign-in tweaks + dashboard shell.
   Tokens: --co-* in css/tokens.css. No raw colours, sizes or radii here.
   Breakpoints (DESIGN-SYSTEM.md section 6): 480, 768, 1044.
   ============================================================ */

/* ── Shared bits ───────────────────────────────────────────── */
.co-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--co-mint); color: var(--co-green);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 700;
}
.co-chip--light { background: var(--color-bg); color: var(--co-ink); box-shadow: var(--shadow-pt-pill); }

.co-banner {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--co-danger-soft); color: var(--co-danger);
  border-radius: var(--radius-md);
  font-size: var(--text-sm); line-height: 1.5;
}
.co-banner[hidden] { display: none; }
.co-banner--info { background: var(--co-notice-soft); color: var(--co-green); }
.co-banner a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ── Sign-in (coordinator-login.html) ──────────────────────── */
/* Re-point the shared login colours to the coordinator greens, this page only. */
.av2-page.co-login-page {
  --auth-green: var(--co-green);
  --auth-green-mid: var(--co-green-bright);
  --auth-green-ring: var(--co-green);
  --auth-input-bg: var(--co-field);
  --auth-ink: var(--co-ink);
  --auth-body: var(--co-ink-muted);
  --blue: var(--co-green);
  --blue-hover: var(--co-green-hover);
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, var(--co-mint-soft) 0%, transparent 55%),
    linear-gradient(180deg, var(--co-page) 0%, var(--co-page-end) 100%);
}
.co-login-page .av2-submit-btn:hover { background: var(--co-green-hover); }
.co-login-page .lg2-form-side::before { background: var(--co-mint-soft); }

.co-login-brand { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.co-login-brand img { height: 22px; width: auto; display: block; }
.co-login-brand--mobile { display: none; }

.co-login-art {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(160deg, var(--co-mint-soft) 0%, var(--co-page) 100%);
}
.co-login-art .co-chip { align-self: flex-start; }
.co-login-art > img { flex: 1; min-height: 0; border-radius: var(--radius-xl); object-fit: cover; }
.co-login-caption {
  padding: var(--space-4);
  background: var(--color-bg); border-radius: var(--radius-lg);
  font-size: var(--text-sm); color: var(--co-ink-muted); line-height: 1.5;
}
.co-login-caption-title {
  margin-bottom: var(--space-1);
  font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--co-green);
}

.co-note {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin: 0 0 var(--space-5); padding: var(--space-3) var(--space-4);
  background: var(--co-field); border-radius: var(--radius-lg);
  font-size: var(--text-xs); line-height: 1.5; color: var(--co-ink-muted);
}
.co-note svg { flex-shrink: 0; margin-top: 2px; color: var(--co-green); }

.co-login-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-5); }
.co-link-btn { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.co-link-btn:hover { text-decoration: underline; }

.co-help {
  margin-top: var(--space-5); padding: var(--space-4);
  background: var(--co-field); border-radius: var(--radius-lg);
  text-align: center; font-size: var(--text-xs); line-height: 1.6; color: var(--co-ink-muted);
}
.co-help a { color: var(--co-green); font-weight: 700; }

@media (max-width: 768px) {
  .co-login-brand--desktop { display: none; }
  .co-login-art { display: none; }
  .co-login-brand--mobile {
    display: flex; flex-direction: column; justify-content: center; gap: var(--space-2);
    margin: 0; padding: var(--space-5) 0 var(--space-3);
  }
  /* The shared mobile layout hides "Remember me"; the coordinator design keeps it. */
  .co-login-page .lg2-remember.co-remember { display: flex; }
  .co-login-row { margin-top: var(--space-2); }
}

/* ── Dashboard shell (coordinator-dashboard.html) ──────────── */
body.co-page {
  background: linear-gradient(180deg, var(--co-page) 0%, var(--co-page-end) 100%);
  color: var(--co-ink);
  font-family: var(--font-body);
  min-height: 100vh;
}

/* Fail-closed gate: content is hidden until the guard says yes. */
body.co-guarding .co-app { display: none; }
.co-gate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: var(--space-5); text-align: center; color: var(--co-ink-muted);
}
.co-gate[hidden] { display: none; }
.co-gate-error { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); max-width: 420px; }
.co-gate-error[hidden], .co-gate-text[hidden] { display: none; }
.co-noscript { padding: var(--space-5); text-align: center; background: var(--co-danger-soft); color: var(--co-danger); }

/* Header */
.co-header { position: sticky; top: 0; z-index: 50; padding: var(--space-3) var(--space-4); }
.co-header-inner {
  display: flex; align-items: center; gap: var(--space-4);
  max-width: var(--nav-max-width); margin: 0 auto; min-height: var(--co-header-height);
}
.co-brand { display: flex; flex-direction: column; gap: var(--space-1); text-decoration: none; flex-shrink: 0; }
.co-brand img { height: 22px; width: auto; display: block; }
.co-brand-tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--co-green); }

.co-account { position: relative; margin-left: auto; }
.co-avatar, .co-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--co-nav-dark); color: var(--color-text-on-primary);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700;
}
.co-avatar:hover, .co-icon-btn:hover { background: var(--co-dark-active); }
.co-icon-btn { background: var(--co-field); color: var(--co-ink); }
.co-icon-btn:hover { background: var(--co-mint-soft); }

/* Notifications bell (V4c-2): same round button as the avatar; the dot is the one the shared panel toggles. */
.co-bell { position: relative; margin-left: auto; }
.co-bell + .co-account { margin-left: 0; }
.co-bell-dot {
  position: absolute; top: var(--space-2); right: var(--space-2);
  width: var(--nav-dot-size); height: var(--nav-dot-size); border-radius: 50%;
  border: 2px solid var(--co-field); background: var(--color-nav-dot);
}
.co-bell-dot[hidden] { display: none; }
@media (max-width: 768px) {
  /* The shared panel is a sheet under the site nav on phones; here it sits under the coordinator header and above the bottom bar. */
  .np {
    top: calc(var(--co-header-height) + var(--space-5) + var(--space-2));
    max-height: calc(100vh - var(--co-header-height) - var(--co-bottom-nav-height) - var(--space-7));
  }
}

.co-menu {
  position: absolute; right: 0; top: calc(100% + var(--space-2)); min-width: 220px;
  padding: var(--space-3); background: var(--color-bg);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-co-panel);
}
.co-menu[hidden] { display: none; }
.co-menu-name { font-weight: 700; font-size: var(--text-sm); }
.co-menu-sub { margin-bottom: var(--space-3); font-size: var(--text-xs); color: var(--co-ink-muted); }
.co-menu-item {
  display: block; width: 100%; padding: var(--space-2) var(--space-3); text-align: left;
  background: none; border: none; border-radius: var(--radius-md); cursor: pointer;
  font-size: var(--text-sm); font-weight: 600; color: var(--co-ink);
}
.co-menu-item:hover { background: var(--co-field); }

/* Mobile drawer */
.co-drawer { position: fixed; inset: 0; z-index: 60; }
.co-drawer[hidden] { display: none; }
.co-drawer-backdrop { position: absolute; inset: 0; background: var(--pt-photo-label); }
.co-drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 85vw);
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-5); background: var(--co-dark); color: var(--color-text-on-primary); overflow-y: auto;
}
.co-drawer-name { margin-bottom: var(--space-4); font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); }
.co-drawer-link {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  color: var(--color-text-on-primary); text-decoration: none; font-weight: 600;
}
.co-drawer-link[aria-current="page"] { background: var(--co-green-mid); }
.co-drawer-link.is-soon { opacity: 0.55; }
.co-drawer-signout {
  margin-top: auto; padding: var(--space-3) var(--space-4); text-align: left;
  background: var(--co-dark-active); color: var(--color-text-on-primary);
  border: none; border-radius: var(--radius-md); cursor: pointer; font-weight: 600;
}
body.co-drawer-open { overflow: hidden; }

/* Main column */
.co-main {
  max-width: var(--nav-max-width); margin: 0 auto;
  padding: var(--space-4) var(--space-4) calc(var(--co-bottom-nav-height) + var(--space-6));
  display: flex; flex-direction: column; gap: var(--space-6);
}

.co-hero {
  padding: var(--space-6) var(--space-5) calc(var(--space-6) + var(--space-5));
  background: linear-gradient(135deg, var(--co-hero-start) 0%, var(--co-hero-end) 100%);
  border-radius: var(--radius-co-hero); color: var(--color-text-on-primary);
}
.co-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--co-mint);
}
.co-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--co-mint); }
.co-hero h1 { font-size: var(--text-h1-sm); color: var(--color-text-on-primary); max-width: 20ch; }
.co-hero-sub { margin-top: var(--space-3); max-width: 52ch; color: var(--co-hero-text-soft); font-size: var(--text-base); }

/* Stat cards overlap the hero's lower edge, as in the design. */
.co-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3);
  margin-top: calc(var(--space-7) * -1);
  padding: 0 var(--space-2);
}
.co-stat {
  padding: var(--space-4); background: var(--color-bg);
  border-radius: var(--radius-co-card); box-shadow: var(--shadow-co-card);
}
.co-stat-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--co-ink-muted); }
.co-stat-value { margin-top: var(--space-2); font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 800; line-height: 1.1; }
.co-stat-note { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--co-ink-muted); }

/* Dark workspace panel */
.co-panel {
  padding: var(--space-5); background: var(--co-dark); color: var(--color-text-on-primary);
  border-radius: var(--radius-co-hero); box-shadow: var(--shadow-co-panel);
}
.co-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.co-panel-head h2 { font-size: var(--text-xl); color: var(--color-text-on-primary); }

/* Section */
.co-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.co-section-head h2 { font-size: var(--text-h2-sm); }
.co-section-sub { margin-top: var(--space-1); color: var(--co-ink-muted); font-size: var(--text-sm); }

/* Empty states */
.co-empty {
  padding: var(--space-6) var(--space-5); text-align: center;
  background: var(--color-bg); border-radius: var(--radius-co-card); box-shadow: var(--shadow-co-card);
}
.co-empty--dark { background: var(--co-dark-raised); box-shadow: none; }
.co-empty--dark .co-empty-title { color: var(--color-text-on-primary); }
.co-empty-title { color: var(--co-ink); font-family: var(--font-heading); font-weight: 700; font-size: var(--text-md); }
.co-empty-text { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--co-ink-muted); }
.co-empty--dark .co-empty-text { color: var(--co-hero-text-soft); }

/* Overview: banner retry, loading, Local Tasker cards */
.co-banner-retry { margin-left: var(--space-3); color: inherit; font-weight: 700; text-decoration: underline; font-size: inherit; }
.co-loading { padding: var(--space-5) 0; color: var(--co-ink-muted); font-size: var(--text-sm); }
.co-loading[hidden], .co-tasker-grid[hidden], .co-empty[hidden] { display: none; }
.co-tasker-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.co-tasker-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-5); background: var(--color-bg);
  border-radius: var(--radius-co-card); box-shadow: var(--shadow-co-card);
}
.co-tasker-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); }
.co-tasker-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--co-mint-soft); color: var(--co-green);
  font-family: var(--font-heading); font-weight: 800; font-size: var(--text-base);
}
.co-tasker-name { font-size: var(--text-md); }
.co-tasker-skills { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); color: var(--co-green-bright); }
.co-tasker-area { font-size: var(--text-sm); color: var(--co-ink-muted); }
.co-status {
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 700;
  background: var(--co-field); color: var(--co-ink-muted);
}
.co-status--published { background: var(--co-mint); color: var(--co-green); }
.co-status--draft { background: var(--co-field); color: var(--co-ink-muted); }

.co-tasker-link { display: flex; flex-direction: column; gap: var(--space-2); color: inherit; text-decoration: none; }
.co-tasker-card { transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.co-tasker-card:hover { box-shadow: var(--shadow-co-panel); transform: translateY(-2px); }
.co-tasker-card:focus-within { box-shadow: var(--shadow-focus); }
.co-tasker-avatar--lg { width: 72px; height: 72px; font-size: var(--text-xl); flex-shrink: 0; }
.co-status--inactive { background: var(--co-danger-soft); color: var(--co-danger); }

/* Page header, toolbar, back link, detail cards */
.co-main--page { gap: var(--space-5); padding-top: var(--space-5); }
.co-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.co-page-title { font-size: var(--text-h1-sm); }
.co-page-sub { margin-top: var(--space-1); color: var(--co-ink-muted); font-size: var(--text-sm); }
.co-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.co-toolbar { display: flex; flex-direction: column; gap: var(--space-3); }
.co-toolbar[hidden] { display: none; }
.co-search {
  position: relative; display: block; flex: 1;
}
.co-search svg { position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%); color: var(--co-ink-muted); pointer-events: none; }
.co-search input {
  width: 100%; padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + var(--space-5));
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--color-bg); box-shadow: var(--shadow-co-card);
  font-family: var(--font-body); font-size: var(--text-base); color: var(--co-ink); outline: none;
}
.co-search input:focus { border-color: var(--co-green-bright); box-shadow: var(--shadow-focus); }
.co-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.co-filter {
  padding: var(--space-2) var(--space-4); border: none; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--color-bg); color: var(--co-ink-muted); box-shadow: var(--shadow-co-card);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
}
.co-filter:hover { color: var(--co-ink); }
.co-filter.is-active { background: var(--co-green); color: var(--color-text-on-primary); }
.co-back { display: inline-flex; align-items: center; gap: var(--space-2); align-self: flex-start; color: var(--co-green); font-weight: 700; font-size: var(--text-sm); text-decoration: none; }
.co-back:hover { text-decoration: underline; }
.co-detail { display: flex; flex-direction: column; gap: var(--space-4); }
.co-detail[hidden], .co-banner[hidden] { display: none; }
.co-detail-head { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.co-detail-headtext { flex: 1; min-width: 200px; }
.co-note--private { margin: 0; }
.co-card { padding: var(--space-5); background: var(--color-bg); border-radius: var(--radius-co-card); box-shadow: var(--shadow-co-card); }
.co-card-title { margin-bottom: var(--space-3); font-size: var(--text-md); }
.co-facts { display: grid; grid-template-columns: 1fr; gap: var(--space-1) var(--space-5); }
.co-fact-label { margin-top: var(--space-3); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--co-ink-muted); }
.co-fact-value { font-size: var(--text-base); color: var(--co-ink); overflow-wrap: anywhere; }
.co-fact-value.is-empty { color: var(--co-ink-muted); }
.co-fact-link { color: var(--co-green); font-weight: 700; }

/* Mobile bottom bar */
.co-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  height: var(--co-bottom-nav-height); padding: 0 var(--space-2) max(var(--safe-bottom), var(--space-3));
  background: var(--color-bg); box-shadow: var(--shadow-pt-bar);
}
.co-bn-item {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
  font-size: var(--text-xs); font-weight: 600; color: var(--co-ink-muted); text-decoration: none;
}
.co-bn-item[aria-current="page"] { color: var(--co-green); }
.co-bn-item.is-soon { opacity: 0.5; }

/* Tablet up: wider stat grid */
@media (min-width: 768px) {
  .co-tasker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .co-search { max-width: 420px; }
  .co-facts { grid-template-columns: 220px 1fr; }
  .co-fact-label { margin-top: 0; padding: var(--space-2) 0; }
  .co-fact-value { padding: var(--space-2) 0; }
  .co-main { padding-left: var(--space-5); padding-right: var(--space-5); }
  .co-hero { padding: var(--space-7) var(--space-7) calc(var(--space-7) + var(--space-6)); }
  .co-hero h1 { font-size: var(--text-h2); max-width: 24ch; }
}

/* Desktop (nav row needs 1044px): pill nav replaces hamburger and bottom bar */
@media (min-width: 1044px) {
  .co-menu-btn, .co-bottom-nav, .co-drawer, .co-header { display: none; }
  .co-main { padding-bottom: var(--space-8); }
  .co-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 var(--space-7); }
  .co-tasker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Add a Local Tasker form (Stage 4A-2) ───────────────────── */
/* Inputs, selects, labels and buttons are the shared .form-* and .btn components. */
.co-form { display: flex; flex-direction: column; gap: var(--space-4); }
.co-card-lead { margin-bottom: var(--space-4); font-size: var(--text-sm); color: var(--co-ink-muted); line-height: 1.5; }
.co-form .form-group:last-child { margin-bottom: 0; }
.co-form .form-input[aria-invalid="true"],
.co-form .form-select[aria-invalid="true"],
.co-form .form-textarea[aria-invalid="true"] { border-color: var(--co-danger); }
.co-field-error { margin-top: var(--space-1); font-size: var(--text-xs); font-weight: 600; color: var(--co-danger); }
.co-field-error[hidden] { display: none; }
.co-check { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) 0; cursor: pointer; font-size: var(--text-sm); line-height: 1.5; color: var(--co-ink); }
.co-check input { flex-shrink: 0; margin-top: var(--space-1); accent-color: var(--co-green); }
.co-banner:focus { outline: none; box-shadow: var(--shadow-focus); }
.co-banner-code { display: block; margin-top: var(--space-1); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.02em; }
.co-form-actions { display: flex; flex-direction: column-reverse; gap: var(--space-3); }
.co-form-actions .btn { width: 100%; }
.co-head-action { flex-shrink: 0; }
.co-empty .btn { margin-top: var(--space-4); }

/* Consent records on the profile page */
.co-consent-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.co-consent-item { padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.co-consent-item:last-child { padding-bottom: 0; border-bottom: none; }
.co-consent-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.co-consent-purpose { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-base); }
.co-consent-meta { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--co-ink-muted); }
.co-consent-note { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--co-ink); overflow-wrap: anywhere; }
.co-status--withdrawn { background: var(--co-danger-soft); color: var(--co-danger); }

@media (min-width: 768px) {
  .co-form { max-width: 720px; }
  .co-form-actions { flex-direction: row; justify-content: flex-end; }
  .co-form-actions .btn { width: auto; }
}

/* Edit action on the profile page (Stage 4A-3) */
.co-detail-actions { display: flex; }
.co-detail-actions .btn { width: 100%; }
@media (min-width: 768px) { .co-detail-actions .btn { width: auto; } }
.co-form[hidden], .co-detail-actions[hidden] { display: none; }

/* ── Edit page layout (Stage 4A-3 redesign) ─────────────────── */
.co-edit-layout[hidden], .co-hero-actions[hidden], .co-preview-notes[hidden], .co-preview-skills[hidden] { display: none; }
.co-hero--edit, .co-hero--page { padding-bottom: var(--space-6); }
.co-hero--edit h1, .co-hero--page h1 { max-width: none; }
.co-hero-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.co-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.co-btn-onhero { background: transparent; color: var(--color-text-on-primary); border: 1.5px solid var(--co-hero-text-soft); }
.co-btn-onhero:hover { background: var(--co-dark-raised); }
.co-edit-layout { display: flex; flex-direction: column; gap: var(--space-4); }
.co-edit-main, .co-edit-aside { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.co-edit-layout .co-form { max-width: none; }
.co-proxy {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4); background: var(--co-notice-soft); color: var(--co-green);
  border-radius: var(--radius-co-card); font-size: var(--text-sm); line-height: 1.5;
}
.co-icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--co-mint); color: var(--co-green);
}
.co-card-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.co-card-head .co-card-title { margin-bottom: 0; flex: 1; min-width: 140px; }
.co-card-pill { flex-shrink: 0; }
.co-preview { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-4); background: var(--co-field); border-radius: var(--radius-lg); }
.co-preview-name { font-family: var(--font-heading); font-weight: 800; font-size: var(--text-md); overflow-wrap: anywhere; }
.co-preview-area { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--co-ink-muted); }
.co-preview-area svg { flex-shrink: 0; }
.co-preview-skills { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.co-preview-notes { font-size: var(--text-sm); color: var(--co-ink); overflow-wrap: anywhere; }
.co-preview-foot { margin: var(--space-3) 0 0; }
.co-complete-pct { font-family: var(--font-heading); font-weight: 800; font-size: var(--text-md); color: var(--co-green); }
.co-progress { height: 8px; margin-bottom: var(--space-4); background: var(--co-field); border-radius: var(--radius-pill); overflow: hidden; }
.co-progress-fill { display: block; height: 100%; width: 0; background: var(--co-green-bright); border-radius: var(--radius-pill); transition: width var(--t) var(--ease); }
.co-check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-3); }
.co-check-item { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--co-field); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--co-ink-muted); }
.co-check-mark { flex-shrink: 0; width: 16px; height: 16px; border: 2px solid var(--color-border-strong); border-radius: 50%; }
.co-check-item.is-done { color: var(--co-ink); }
.co-check-item.is-done .co-check-mark { background: var(--co-green-bright); border-color: var(--co-green-bright); }
.co-check-item.is-now { background: var(--co-notice-soft); color: var(--co-green); font-weight: 700; }
.co-check-item.is-now .co-check-mark { border-color: var(--co-green); }
.co-edit-aside .co-card-lead:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .co-hero--edit, .co-hero--page { padding: var(--space-6) var(--space-7); position: relative; }
  .co-hero-actions { position: absolute; top: var(--space-6); right: var(--space-7); margin-top: 0; }
}
@media (min-width: 1044px) {
  .co-edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: var(--space-5); }
  .co-edit-aside { position: sticky; top: var(--space-4); }
}

/* Profile hero identity row and shared page hero bits (all coordinator pages) */
.co-hero-id { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.co-hero-id .co-tasker-avatar { background: var(--co-mint); color: var(--co-green); }
.co-hero-idtext { flex: 1; min-width: 200px; }
.co-hero--page .co-hero-id h1 { margin-top: 0; }
.co-hero-status { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.co-hero-actions .btn { min-height: 44px; }
.co-hero .co-hero-id { margin-top: var(--space-3); }

/* Services on the profile and the service form (Stage 4B-1) */
.co-svc-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.co-svc-item { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); background: var(--co-field); border-radius: var(--radius-lg); }
.co-svc-item .co-fact-link { align-self: flex-start; margin-top: var(--space-2); }
.co-svc-list[hidden], #coSvcAdd[hidden], #coAgreeFields[hidden], #coAgreeDone[hidden] { display: none; }
.co-edit-layout--single { display: flex; flex-direction: column; }
@media (min-width: 1044px) { .co-edit-layout--single { display: flex; } .co-edit-layout--single .co-edit-main { max-width: 760px; } }

/* Photos on the profile and the photos page (Stage 4B-2) */
.co-photo-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.co-photo-item { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--co-field); border-radius: var(--radius-lg); }
.co-photo-frame, .co-photo-thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--co-mint-soft); display: flex; align-items: center; justify-content: center; }
.co-photo-frame img, .co-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-photo-missing { font-size: var(--text-xs); font-weight: 600; color: var(--co-ink-muted); padding: var(--space-2); text-align: center; }
.co-photo-cover { position: absolute; top: var(--space-2); left: var(--space-2); }
.co-photo-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.co-photo-actions .btn { min-height: 44px; }
.co-photo-confirm { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.co-photo-confirm .co-card-lead { margin-bottom: 0; }
.co-photo-preview { margin-top: var(--space-3); max-width: 320px; border-radius: var(--radius-lg); overflow: hidden; background: var(--co-field); }
.co-photo-preview img { display: block; width: 100%; height: auto; }
.co-photo-strip { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.co-photo-grid[hidden], .co-photo-strip[hidden], .co-photo-confirm[hidden], .co-photo-preview[hidden], #coPhotoManage[hidden], #coAddFull[hidden], #coAddFields[hidden], #coPCoverGroup[hidden], #coAgreeCard[hidden], #coFormActions[hidden], #coPhotoCount[hidden] { display: none; }
#coPhotoCount { margin-top: var(--space-3); }
@media (min-width: 481px) {
  .co-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-photo-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Preview and publish (Stage 4C-1) ───────────────────────── */
.co-check-list--stack { grid-template-columns: 1fr; }
.co-check-list--stack .co-check-item { flex-wrap: wrap; }
.co-check-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.co-check-item.is-bad { background: var(--co-danger-soft); color: var(--co-danger); }
.co-check-item.is-bad .co-check-mark { border-color: var(--co-danger); }
.co-check-item.is-advice:not(.is-done) .co-check-mark { border-style: dashed; }
.co-pub-actions { display: flex; flex-direction: column; gap: var(--space-3); }
.co-pub-actions .btn { width: 100%; min-height: 44px; }
.co-pub-reason { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.co-preview-chips { margin-top: 0; }
.co-preview-service { font-weight: 700; font-size: var(--text-sm); overflow-wrap: anywhere; }
.co-preview-rate { font-family: var(--font-heading); font-weight: 800; color: var(--co-green); }
.co-preview-photos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); width: 100%; }
.co-pub-actions[hidden], .co-pub-reason[hidden], .co-preview-photos[hidden], #coPubActionsCard[hidden], #coPubDraftBox[hidden], #coPubLiveBox[hidden],
#coPubRetired[hidden], #coPubChecks[hidden], #coPubChecksHint[hidden], #coPubLink[hidden], #coPvEmpty[hidden] { display: none; }
@media (min-width: 768px) {
  .co-pub-actions { flex-direction: row; flex-wrap: wrap; }
  .co-pub-actions .btn { width: auto; }
}

/* ── Bookings list and detail (Stage 5B) ────────────────────── */
.co-bk-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.co-bk-list[hidden] { display: none; }
.co-bk-item {
  background: var(--color-bg); border-radius: var(--radius-co-card); box-shadow: var(--shadow-co-card);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.co-bk-item:hover { box-shadow: var(--shadow-co-panel); transform: translateY(-2px); }
.co-bk-item:focus-within { box-shadow: var(--shadow-focus); }
.co-bk-link { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); color: inherit; text-decoration: none; }
.co-bk-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.co-bk-ref { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--co-ink-muted); }
.co-bk-title { font-size: var(--text-md); color: var(--co-ink); overflow-wrap: anywhere; }
.co-bk-meta { font-size: var(--text-sm); color: var(--co-ink-muted); overflow-wrap: anywhere; }
.co-bk-next { font-size: var(--text-sm); line-height: 1.5; color: var(--co-ink-muted); }
.co-bk-next.is-action { color: var(--co-green); font-weight: 700; }
.co-bk-next-card .co-bk-next { margin-bottom: var(--space-3); font-size: var(--text-base); }
.co-bk-history { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.co-bk-event { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4); background: var(--co-field); border-radius: var(--radius-md); }
.co-bk-event-text { font-size: var(--text-sm); font-weight: 700; color: var(--co-ink); }
.co-bk-event-note { font-size: var(--text-sm); color: var(--co-ink-muted); overflow-wrap: anywhere; }
@media (min-width: 1044px) {
  .co-bk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Local Tasker's answer (Stage 5C-1) ─────────────────────── */
.co-cf-outcome { border: 0; padding: 0; margin: 0; min-width: 0; }
.co-cf-outcome .form-label { margin-bottom: var(--space-1); }
.co-cf-group { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--co-field); border-radius: var(--radius-lg); }
.co-cf-sub { margin: var(--space-5) 0 var(--space-3); font-size: var(--text-sm); font-weight: 700; color: var(--co-ink); }
.co-cf-warn { color: var(--co-danger); font-weight: 600; }
#coCf .co-banner { margin-bottom: var(--space-4); }
#coCf .co-form-actions .btn { min-height: 44px; }
.co-cf-group[hidden], #coCfSummary[hidden], #coCfAgainRow[hidden], #coCfAgainConfirm[hidden], #coCfAttemptsBox[hidden], #coCfLimitsGroup[hidden], #coCfNotesGroup[hidden], #coCfActions[hidden] { display: none; }

/* ── The quote (Stage 5C-2) ─────────────────────────────────── */
.co-qt-total { padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.co-qt-total .co-fact-value { font-family: var(--font-heading); font-weight: 800; color: var(--co-green); }
.co-fact-value.is-lock::after { content: ' · set by the Local Tasker'; font-size: var(--text-xs); font-weight: 600; color: var(--co-ink-muted); }
#coQt .co-banner { margin-bottom: var(--space-4); }
#coQt .co-form-actions .btn { min-height: 44px; }
#coQtSummary[hidden], #coQtHistBox[hidden] { display: none; }

/* Stage 5D-2: On the day card */
#coMs .co-banner { margin-bottom: var(--space-4); }
#coMs .co-bk-history { display: flex; flex-direction: column; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
#coMs .co-bk-history:empty { display: none; }
#coMs .co-form-actions .btn { min-height: 44px; }
#coMs .co-consent-meta { margin-top: var(--space-4); }

/* Stage 5D-3a: "When something goes wrong" card */
#coEx .co-banner { margin-bottom: var(--space-4); }
#coEx .co-bk-history { display: flex; flex-direction: column; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
#coEx .co-bk-history:empty { display: none; }
#coEx .co-form-actions .btn { min-height: 44px; }
#coEx .co-consent-meta { margin-top: var(--space-4); }
#coEx .co-fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); min-width: 0; }
#coEx .co-check input:disabled + span { opacity: 0.55; }

/* Stage 5D-3b: "Cancel or report a problem" card */
#coCo .co-banner { margin-bottom: var(--space-4); }
#coCo .co-bk-history { display: flex; flex-direction: column; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
#coCo .co-bk-history:empty { display: none; }
#coCo .co-bk-history .btn { align-self: flex-start; margin-top: var(--space-2); min-height: 44px; }
#coCo .co-form-actions .btn { min-height: 44px; }
#coCo .co-consent-meta { margin-top: var(--space-4); }
#coCo .co-fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); min-width: 0; }
#coCo .co-check input:disabled + span { opacity: 0.55; }
#coCoCancelFields[hidden], #coCoReportFields[hidden], #coCoCancelled[hidden] { display: none; }

/* Stage 5D-3c-1: "Extra costs" card */
#coXt .co-banner { margin-bottom: var(--space-4); }
#coXt .co-bk-history { display: flex; flex-direction: column; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
#coXt .co-bk-history:empty { display: none; }
#coXt .co-bk-history .btn { align-self: flex-start; margin-top: var(--space-2); min-height: 44px; }
#coXt .co-form-actions .btn { min-height: 44px; }
#coXt .co-consent-meta { margin-top: var(--space-4); }
#coXt .co-check input:disabled + span { opacity: 0.55; }

/* Stage 5D-3c-2: "Lower the price" card */
#coRd .co-banner { margin-bottom: var(--space-4); }
#coRd .co-bk-history { display: flex; flex-direction: column; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
#coRd .co-bk-history:empty { display: none; }
#coRd .co-bk-history .btn { align-self: flex-start; margin-top: var(--space-2); min-height: 44px; }
#coRd .co-form-actions .btn { min-height: 44px; }
#coRd .co-consent-meta { margin-top: var(--space-4); }
#coRd .co-check input:disabled + span { opacity: 0.55; }

/* Link from the booking page to its conversation (Stage 6B) */
#coBdChat { margin-top: var(--space-3); }

/* ── Payout account page (Stage 7B): coordinator-tasker-payout.html ───────────── */
.co-po-result { margin-top: var(--space-4); padding: var(--space-4); background: var(--co-field); border-radius: var(--radius-md); }
.co-po-result[hidden] { display: none; }
.co-po-result.is-ok { background: var(--co-notice-soft); color: var(--co-green); }
.co-po-result.is-bad { background: var(--co-danger-soft); color: var(--co-danger); }
.co-po-result.is-bad .co-fact-label, .co-po-result.is-bad .co-fact-value { color: var(--co-danger); }
.co-po-result-name { margin-top: var(--space-1); font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); overflow-wrap: anywhere; }
.co-po-result-name[hidden] { display: none; }
.co-po-facts { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-sm); line-height: 1.5; color: var(--co-ink); }
.co-po-facts li { padding-left: var(--space-4); position: relative; }
.co-po-facts li::before { content: ""; position: absolute; left: 0; top: var(--space-2); width: 6px; height: 6px; border-radius: 50%; background: var(--co-green-bright); }

/* Stage 7C-1c: "Release the payment" card (enter the customer's release code) */
#coRl .co-banner { margin-bottom: var(--space-4); }
#coRl .co-form-actions .btn { min-height: 44px; }
#coRl .co-consent-meta { margin-top: var(--space-4); }
#coRl .co-rl-code { max-width: 14rem; font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
#coRl .co-form .co-consent-meta { margin-top: 0; }
#coRl[hidden], #coRlForm[hidden], #coRlAttempts[hidden], #coRlDone[hidden] { display: none; }

/* Stage M6: "Review the customer" card (the coordinator leaves the Local Tasker's review) */
#coRv .co-banner { margin-bottom: var(--space-4); }
#coRv .co-form-actions .btn { min-height: 44px; }
#coRv .co-consent-meta { margin-top: var(--space-4); }
#coRv .co-rv-scale { display: flex; flex-wrap: wrap; column-gap: var(--space-5); }
#coRv[hidden], #coRvForm[hidden], #coRvDone[hidden], #coRvFoot[hidden] { display: none; }

/* ── Coordinator wallet (coordinator-wallet.html) ───────────
   js/wallet-data.js and css/wallet.css draw the money screens; the coordinator page has no wallet hero (the portal hero above it
   carries the buttons), so the balance cards show at every width and the compact phone card is not used. Tokens only. */
.wl-page.co-wallet[data-role="tasker"] { padding: 0; overflow: visible; background: transparent; }
.wl-page.co-wallet[data-role="tasker"]::before { display: none; }
.wl-page.co-wallet[data-role="tasker"] .wl-container { width: 100%; padding-top: 0; }
.wl-page.co-wallet[data-role="tasker"] .wl-balances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; position: static; }
.wl-page.co-wallet[data-role="tasker"] .wl-bal-mob { display: none; }
@media (max-width: 560px) {
  .wl-page.co-wallet[data-role="tasker"] .wl-balances { grid-template-columns: minmax(0, 1fr); }
}

/* T1c: shop flyer card on the Local Tasker profile (the flyer itself is drawn by css/flyer.css) */
.co-flyer-stage { display: flex; justify-content: center; margin-bottom: var(--space-4); padding: var(--space-3); border-radius: var(--radius-xl); background: var(--color-bg-muted); }
.co-flyer-stage:empty { display: none; }
.co-flyer-msg { margin-bottom: var(--space-4); font-size: var(--text-sm); line-height: 1.6; color: var(--color-text-secondary); }
.co-flyer-msg[hidden], #coFlyer[hidden], #coFlyerBody[hidden] { display: none; }
.co-flyer-actions { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); }
.co-flyer-actions .btn { width: 100%; justify-content: center; }
@media (min-width: 640px) { .co-flyer-actions { flex-direction: row; flex-wrap: wrap; } .co-flyer-actions .btn { width: auto; } }

/* B2b: space between the customer's request and the steps on the "Quote declined" card */
#coDcFactsBox { margin-bottom: var(--space-4); }
/* B2c: the hidden attribute must win over .co-form-actions { display: flex } inside the "Quote declined" card */
#coDc .co-form-actions[hidden], #coDc .co-pub-reason[hidden] { display: none; }


/* ── Sidebar collapsed to an icon rail (body.co-sb-collapsed, set by js/coordinator.js, desktop only) ─────
   Icons, the bell and the account avatar stay; names, the Local Taskers list and Sign out come back when expanded. */
@media (min-width: 1044px) {
  .co-sb-toggle svg { transition: transform var(--t) var(--ease); }
  body.co-sb-collapsed .co-sb-toggle svg { transform: rotate(180deg); }
  body.co-sb-collapsed .co-app { padding-left: var(--co-sidebar-width-collapsed); }
  body.co-sb-collapsed .co-sidebar { width: var(--co-sidebar-width-collapsed); padding-left: var(--space-2); padding-right: var(--space-2); align-items: center; }
  body.co-sb-collapsed .co-sb-top { flex-direction: column; gap: var(--space-2); padding-left: 0; padding-right: 0; }
  body.co-sb-collapsed .co-sb-top .co-brand { display: none; }
  body.co-sb-collapsed .co-side-nav { align-items: center; }
  body.co-sb-collapsed .co-side-link { position: relative; justify-content: center; width: 48px; padding: var(--space-2); }
  body.co-sb-collapsed .co-side-link > span:not(.co-side-badge) { display: none; }
  body.co-sb-collapsed .co-side-badge { position: absolute; top: var(--space-1); right: var(--space-1); min-width: 18px; height: 18px; margin-left: 0; padding: 0 var(--space-1); }
  body.co-sb-collapsed .co-side-taskers { display: none; }
  body.co-sb-collapsed .co-side-add { width: 48px; height: 48px; margin-top: var(--space-3); padding: 0; border-radius: 50%; }
  body.co-sb-collapsed .co-side-add span { display: none; }
  body.co-sb-collapsed .co-sb-foot { flex-direction: column; justify-content: center; margin: auto calc(-1 * var(--space-2)) 0; padding: var(--space-3) 0; width: var(--co-sidebar-width-collapsed); }
  body.co-sb-collapsed .co-sb-user, body.co-sb-collapsed .co-sb-signout { display: none; }
}

/* ── Sidebar (every coordinator page, desktop from 1044px) ─────
   One full-height column fixed to the left edge, like a normal app sidebar. The page content sits to its right.
   Below 1044px it is hidden and the header, drawer and bottom bar are used. The sidebar scrolls as a whole only
   when the window is too short to fit the list at its minimum height (six Local Taskers). */
.co-sidebar { display: none; }
@media (min-width: 1044px) {
  .co-app { padding-left: var(--co-sidebar-width); }
  .co-sidebar {
    display: flex; flex-direction: column; gap: var(--space-1);
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 45; width: var(--co-sidebar-width);
    padding: var(--space-4) var(--space-3) 0; overflow-y: auto;
    background: var(--color-bg); border-right: 1px solid var(--color-border);
  }
  .co-sb-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-4); }
  .co-sb-bell { margin-left: 0; }

  .co-side-nav { display: flex; flex-direction: column; gap: var(--space-1); flex-shrink: 0; }
  .co-side-link {
    display: flex; align-items: center; gap: var(--space-3); min-height: 44px;
    padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
    color: var(--co-ink); text-decoration: none;
    font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
    transition: background var(--t) var(--ease);
  }
  .co-side-link svg { flex-shrink: 0; color: var(--co-ink-muted); }
  a.co-side-link:hover { background: var(--co-field); }
  a.co-side-link:focus-visible, .co-side-trow:focus-visible, .co-side-add:focus-visible, .co-sb-signout:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
  .co-side-link[aria-current="page"] { background: var(--co-mint-soft); color: var(--co-green); }
  .co-side-link[aria-current="page"] svg { color: var(--co-green); }
  .co-side-link.is-soon { opacity: 0.55; cursor: default; }
  .co-side-badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: auto; padding: 0 var(--space-2);
    border-radius: var(--radius-pill); background: var(--co-green); color: var(--color-text-on-primary); font-size: var(--text-xs); font-weight: 800;
  }
  .co-side-badge[hidden] { display: none; }

  /* Local Taskers list: grows to fill the sidebar, never shorter than six rows, scrolls inside after that. */
  .co-side-taskers {
    display: flex; flex-direction: column; flex: 1 1 0; gap: var(--space-2);
    min-height: calc(var(--space-9) * 4 + var(--space-9)); margin-top: var(--space-3); padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
  }
  .co-side-label {
    margin: var(--space-1) var(--space-3) var(--space-1);
    font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--co-ink-muted);
  }
  .co-side-label--row { display: flex; align-items: center; justify-content: space-between; }
  .co-side-cap { padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill); background: var(--co-field); color: var(--co-ink-muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0; }
  .co-side-cap[hidden], .co-side-empty[hidden] { display: none; }
  .co-side-filter { position: relative; display: block; flex-shrink: 0; }
  .co-side-filter svg { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); color: var(--co-ink-muted); pointer-events: none; }
  .co-side-filter input {
    width: 100%; min-height: 40px; padding: var(--space-2) var(--space-3) var(--space-2) calc(var(--space-3) + var(--space-5));
    border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--co-field); color: var(--co-ink);
    font-family: var(--font-body); font-size: var(--text-sm); outline: none;
  }
  .co-side-filter input::placeholder { color: var(--co-ink-muted); }
  .co-side-filter input:focus { border-color: var(--co-green); background: var(--color-bg); }
  .co-side-tlist { list-style: none; flex: 1 1 0; min-height: calc(var(--space-9) * 4); overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-1); margin: 0; padding: 0; }
  .co-side-trow {
    display: flex; align-items: center; gap: var(--space-3); min-height: calc(var(--space-7) + var(--space-1));
    padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); color: var(--co-ink); text-decoration: none;
  }
  .co-side-trow:hover { background: var(--co-field); }
  .co-side-trow.is-current { background: var(--co-mint-soft); }
  .co-side-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--co-ink-muted); }
  .co-side-dot--published { background: var(--co-green); }
  .co-side-dot--inactive { background: var(--co-danger); }
  .co-side-ttext { display: flex; flex-direction: column; min-width: 0; }
  .co-side-tname { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .co-side-tsub { font-size: var(--text-xs); color: var(--co-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .co-side-new {
    flex-shrink: 0; margin-left: auto; padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill);
    background: var(--co-green); color: var(--color-text-on-primary); font-size: var(--text-xs); font-weight: 800; white-space: nowrap;
  }
  .co-side-empty { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); color: var(--co-ink-muted); }

  .co-side-add {
    display: flex; align-items: center; justify-content: center; gap: var(--space-2); flex-shrink: 0;
    margin-top: var(--space-3); padding: var(--space-3) var(--space-4);
    border: 1.5px dashed var(--co-green); border-radius: var(--radius-pill);
    color: var(--co-green); text-decoration: none;
    font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700;
    transition: background var(--t) var(--ease);
  }
  .co-side-add:hover { background: var(--co-mint-soft); }

  /* Account row, stuck to the bottom like the reference */
  .co-sb-foot {
    position: sticky; bottom: 0; flex-shrink: 0; display: flex; align-items: center; gap: var(--space-3);
    margin: var(--space-3) calc(-1 * var(--space-3)) 0; padding: var(--space-3) var(--space-4);
    background: var(--color-bg); border-top: 1px solid var(--color-border);
  }
  .co-sb-avatar {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    background: var(--co-nav-dark); color: var(--color-text-on-primary); font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 700;
  }
  .co-sb-user { flex: 1; min-width: 0; }
  .co-sb-name { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; color: var(--co-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .co-sb-sub { font-size: var(--text-xs); color: var(--co-ink-muted); }
  .co-sb-signout {
    flex-shrink: 0; padding: var(--space-2) var(--space-3); border: none; border-radius: var(--radius-pill); cursor: pointer;
    background: var(--co-field); color: var(--co-ink); font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 700;
  }
  .co-sb-signout:hover { background: var(--co-mint-soft); }
}

/* ── Phone menu: Local Taskers list (filled by js/coordinator-sidebar.js) ── */
.co-drawer-taskers { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--co-dark-active); }
.co-drawer-label { display: flex; align-items: center; justify-content: space-between; margin: 0 var(--space-4) var(--space-1); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--co-hero-text-soft); }
.co-drawer-cap { padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill); background: var(--co-dark-active); color: var(--co-mint); letter-spacing: 0; }
.co-drawer-cap[hidden], .co-drawer-empty[hidden] { display: none; }
.co-drawer-tlist { list-style: none; display: flex; flex-direction: column; gap: var(--space-1); margin: 0; padding: 0; }
.co-drawer-trow { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); color: var(--color-text-on-primary); text-decoration: none; }
.co-drawer-trow[aria-current="page"] { background: var(--co-green-mid); }
.co-drawer-trow .co-side-dot { background: var(--co-hero-text-soft); }
.co-drawer-trow .co-side-dot--published { background: var(--co-mint); }
.co-drawer-trow .co-side-dot--inactive { background: var(--co-danger); }
.co-drawer-trow .co-side-ttext { display: flex; flex-direction: column; min-width: 0; }
.co-drawer-trow .co-side-tname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-drawer-trow .co-side-tsub { font-size: var(--text-xs); color: var(--co-hero-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-drawer-empty { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); color: var(--co-hero-text-soft); }
.co-drawer-add { display: block; margin-top: var(--space-2); padding: var(--space-3) var(--space-4); border: 1.5px dashed var(--co-green-mid); border-radius: var(--radius-pill); text-align: center; color: var(--co-mint); text-decoration: none; font-weight: 700; }
