/* static/pages/performance.css */
/* Performance (pages/performance.js). Its tiles, card and table are app.css's; the reading's tiles are pods.js's. */
[data-page="performance"] .performance-card { --pad-y: 0px; --pad-x: 0px; gap: 0; margin-top: var(--sp-4); }
[data-page="performance"] .performance-plot { padding: var(--sp-4) var(--sp-4) 0; overflow-x: auto; }
.performance-chart { display: block; min-width: 420px; max-height: 240px; margin: 0 auto; font-family: var(--sans); }
/* the chart reads on --raise in both themes: the axis words in --text3, the grid in --line, this month in blue */
.performance-chart .grid { stroke: var(--line); }
.performance-chart .base { stroke: var(--line2); }
.performance-chart .axis { font-size: 11px; fill: var(--text3); }
.performance-chart .axis.on { fill: var(--head); font-weight: 700; }
.performance-chart .val { font-size: 12px; font-weight: 700; fill: var(--text); }
.performance-chart .now { fill: var(--blue); }
.performance-chart .past { fill: var(--faint); }
.performance-chart .none { stroke: var(--text3); stroke-width: 2; stroke-dasharray: 3 3; }
[data-page="performance"] .performance-key { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-5); margin: 0; padding: var(--sp-2) var(--sp-4) var(--sp-4); font-size: var(--fs-caption); color: var(--text3); }
[data-page="performance"] .performance-key span { display: inline-flex; align-items: center; gap: 6px; }
[data-page="performance"] .performance-key i { width: 10px; height: 10px; border-radius: 3px; }
[data-page="performance"] .performance-key .now { background: var(--blue); }
[data-page="performance"] .performance-key .past { background: var(--faint); }
[data-page="performance"] .performance-key .none { height: 0; border-top: 2px dashed var(--text3); border-radius: 0; }
[data-page="performance"] .performance-tw { margin-top: var(--sp-4); }
[data-page="performance"] td .dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
/* on a phone the chart scrolls inside its card and opens at its right end, so this month's bar shows first */
@media (max-width: 760px) { [data-page="performance"] .performance-plot { display: flex; flex-direction: row-reverse; } .performance-chart { min-width: 560px; max-height: none; } }

/* static/pages/playbook.css */
/* The playbooks (pages/playbook.js): the strip under the head and the framed copy at the page's full height. The head,
   the toolbar, the pill and the empty state are app.css's. */
.pb .pb-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); min-width: 0; }
.pb .pb-strip small { flex: 1 1 260px; min-width: 0; color: var(--text2); font-size: var(--fs-small); }
.pb .pb-strip b { color: var(--head); font-weight: 600; overflow-wrap: anywhere; }
.pb #pb-body { margin-top: var(--sp-4); }
.pb .pb-frame { border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); overflow: hidden; }
.pb .pb-frame iframe { display: block; width: 100%; height: calc(100vh - 250px); min-height: 420px; border: 0; background: #fff; }
@media (max-width: 760px) { .pb .pb-frame iframe { height: calc(100vh - 330px); } }

/* static/pages/pods.css */
/* Pod View, and what Churn and Performance share with it (pages/pods.js): the tiles, the cards, the tables, the
   tones and the "Not connected" mark. Every pods- class of the three pages is defined here. A figure is ink; a state
   stands on app.css's dot, a bar or a ring (Docs/Systems/ControlPanel/NewPage.md, The foundation). */
/* each pod's series colour in Churn's chart (PV_COL), by its place */
.pods-body { --pods-orange: #d9620f; --pods-violet: #6d4fd8; --pods-magenta: #a83bb0; display: grid; gap: var(--sp-4); min-width: 0; }
:root[data-theme="dark"] .pods-body { --pods-orange: #ff8a3d; --pods-violet: #a78bfa; --pods-magenta: #d46ad8; }
.pods-body > * { min-width: 0; margin: 0; }
.pods-wait { color: var(--text3); }

/* tones: words in a state's ink; a bar, a ring or a table's dot in its state's colour */
.pods-ok { color: var(--ok-ink); } .pods-warn { color: var(--warn-ink); } .pods-bad { color: var(--bad-ink); } .pods-up { color: var(--head); }
.pods-body i.pods-ok { background: var(--ok); } .pods-body i.pods-warn { background: var(--warn); } .pods-body i.pods-bad { background: var(--bad); }
.pods-gauge .pods-ok { color: var(--ok); } .pods-gauge .pods-warn { color: var(--warn); } .pods-gauge .pods-bad { color: var(--bad); }
.pods-body .dot { display: inline-block; vertical-align: 1px; margin-right: 6px; }

/* the churn month: a field of the head's toolbar on Pod View, of the head on Churn */
.pods-month { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--text3); font-size: var(--fs-small); font-weight: 500; }
.pods-month select { width: auto; min-width: 0; }

/* a card, a tile */
.pods-card { background: var(--raise); border-radius: var(--r-card); box-shadow: var(--card); min-width: 0; color: var(--text); text-decoration: none; }
.pods-go { transition: box-shadow var(--t-fast) var(--ease); cursor: pointer; }
.pods-go:hover, .pods-go:focus-visible { box-shadow: 0 0 0 1px var(--line2), var(--card); }
.pods-kpi { display: grid; gap: 2px; align-content: start; text-align: left; font: inherit; }
.pods-v { min-height: 33px; display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.pods-d.up { color: var(--ok-ink); } .pods-d.down { color: var(--bad-ink); }
.pods-hint { color: var(--text3); font-size: var(--fs-caption); } .pods-hint b { color: var(--text); }
.pods-off { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); background: var(--chip); color: var(--text3); font: 600 var(--fs-caption) var(--sans); letter-spacing: normal; white-space: nowrap; }  /* a tile's figure is Poppins, tight: the chip keeps the body's type */
/* a section's heading under the page's title */
.pods-eyebrow { margin: var(--sp-2) 0 calc(var(--sp-1) * -1); font: 800 var(--fs-card)/1.3 var(--title); letter-spacing: -.01em; color: var(--head); }
/* the agency's tiles say they count every active client, whatever the filters pick */
.pods-agency { margin-top: 0; }  /* its small words are app.css's .page h2 small */
.pods-foot { color: var(--text3); font-size: var(--fs-small); max-width: 110ch; } .pods-foot b { color: var(--text2); font-weight: 600; }
.pods-foot + .pods-foot { margin-top: -8px; }
.pods-foot a { color: var(--text); }

/* a section card with its heading row: app.css's .card-h */
.pods-sec > header .i { width: 16px; height: 16px; }
.pods-sec > div { padding: 14px 16px; overflow-x: auto; }

/* rows and avatars */
.pods-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pods-row.between { justify-content: space-between; } .pods-row.base { align-items: baseline; }
.pods-av.none { background: var(--chip); color: var(--text3); }
.pods-tag { font-size: var(--fs-caption); font-weight: 600; color: var(--text2); white-space: nowrap; }
.pods-open { display: inline-flex; align-items: center; gap: 2px; color: var(--text3); font-size: var(--fs-caption); font-weight: 500; }
.pods-open svg.i { width: 13px; height: 13px; }
.pods-go:is(:hover, :focus-visible) .pods-open { color: var(--blue); }

/* a pod's card */
.pods-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: var(--sp-4); }
.pods-pod { padding: 18px; display: flex; flex-direction: column; gap: var(--sp-4); }
.pods-who { font: 800 17px/1.25 var(--title); color: var(--head); }
.pods-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; align-items: stretch; }
.pods-block, .pods-strip { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
.pods-block { display: flex; align-items: center; gap: 12px; }
.pods-block .pods-l, .pods-strip .pods-l { margin-bottom: 6px; }
.pods-gauge { flex: none; }
.pods-big { font: 800 var(--fs-figure) var(--title); letter-spacing: -.03em; min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--head); }
.pods-hbar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; gap: 2px; width: 120px; max-width: 100%; margin-bottom: 6px; background: var(--line); }
.pods-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.pods-dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--line2); } .pods-dots i.on { background: var(--text2); }
.pods-strip { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; }
.pods-strip .pods-l { margin-bottom: 2px; }
.pods-strip .pods-big { font-size: 28px; min-width: 0; text-align: left; }
.pods-mini { display: flex; align-items: flex-end; gap: 6px; height: 58px; flex: none; }
.pods-mini > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; width: 19px; }
.pods-mini i { display: block; width: 12px; border-radius: 3px; background: var(--line2); }
.pods-mini span { font-size: 10px; color: var(--text3); line-height: 1; }
.pods-mini .sel span { color: var(--text); font-weight: 700; }
.pods-mini .sel i:not([class*="pods-"]) { background: var(--text2); }  /* the picked month in ink */
/* Pod View's card: its "Open on the board" link covers the card; Pending's links stand over it */
.pods-pod { position: relative; }
.pods-stretch { text-decoration: none; }
.pods-stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pods-pod:has(.pods-stretch:is(:hover, :focus-visible)) { box-shadow: 0 0 0 1px var(--line2), var(--card); }
.pods-pod:has(.pods-stretch:is(:hover, :focus-visible)) .pods-open { color: var(--blue); }
.pods-stretch:focus-visible { outline: 0; } .pods-pod:has(.pods-stretch:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.pods-pend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pods-pend > .pods-l { margin-right: 4px; }
.pods-pend a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--panel); border: 1px solid var(--line); color: var(--text2); font-size: var(--fs-small); text-decoration: none; transition: background var(--t-fast), border-color var(--t-fast); }
.pods-pend a:hover { background: var(--hover); border-color: var(--line2); color: var(--text); }
.pods-pend b { font: 800 15px var(--title); color: var(--head); font-variant-numeric: tabular-nums; }
.pods-pend .dot { margin: 0; }
/* on a touch screen each link keeps its 30 px pill and takes a finger's height in an unseen area */
@media (pointer: coarse) { .pods-pend a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 40px; transform: translateY(-50%); } }
/* the churn month at the toolbar's end, its select no wider than its words need */
.tb-meta .pods-month select { field-sizing: content; max-width: 230px; }
/* on a laptop the shop search takes its least width (scope.css's 180 px), so the month keeps row 1 */
@media (max-width: 1279px) { [data-page="pods"] > .tb > .scope .scope-find { width: 180px; } }
.pods-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.pods-stats span:first-child { display: block; color: var(--text3); font-size: var(--fs-caption); margin-bottom: 2px; }
.pods-stats b { font: 800 18px var(--title); color: var(--head); font-variant-numeric: tabular-nums; }
.pods-stats .dot { margin: 0 0 0 7px; }

/* a table: app.css's head and rows; a cell's state is a dot before its figure, never a tint of the cell */
.pods-tw :is(td, th).num { font-variant-numeric: tabular-nums; }
.pods-tw td.wrap { white-space: normal; min-width: 220px; color: var(--text3); }
.pods-tw td.heat { color: var(--text); }
.pods-tw td.heat::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; background: var(--line2); }
.pods-tw td.heat.pods-ok::before { background: var(--ok); } .pods-tw td.heat.pods-warn::before { background: var(--amber); } .pods-tw td.heat.pods-bad::before { background: var(--bad); }
.pods-tw .pods-tag { color: var(--head); }
.pods-none { color: var(--text3); font-size: var(--fs-small); }

/* Pod View's cards share their six rows (tag, person, pending, tiles, churn, stats), so each section lines up across the cards.
   Churn's cards hold their own two or three rows. */
@media (min-width: 761px) {
  .pods-grid > .pods-pod:not(.churn-pod) { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: var(--sp-4); }
}
/* one pod takes the row in two columns: its tag over both, the person beside Pending, the tiles beside the churn,
   the counts under both */
@media (min-width: 1100px) {
  .pods-grid.one > .pods-pod:not(.churn-pod) { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-row: auto; column-gap: var(--sp-5, 24px); align-items: center; }
  .pods-grid.one > .pods-pod > :is(:first-child, .pods-main, .pods-strip, .pods-stats) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .pods-pod { padding: 14px; }
  .pods-strip { flex-wrap: wrap; }
  /* the select takes the row's room */
  .pods-month, .pods-month select { flex: 1 1 0; min-width: 0; }
  .pods-month { gap: 6px; }
}

/* static/pages/posts.css */
/* Team posts, a part of Admin's Automations page (posts.js): the rows are the Server page's (.table.svcs). A post's
   schedule can run long, so its line wraps; a post that is off reads quieter, and its switch says so in words. */
.posts .tr .name small, .posts .tr .muted { white-space: normal; }
.posts .tr.off .name b { color: var(--text3); }
@media (min-width: 1100px) { .posts .tr { grid-template-columns: minmax(220px, 420px) minmax(0, 1fr) auto; } }  /* a wide screen: the name's column grows, so a row stays compact */
@media (max-width: 760px) { h2[data-row="posts"] { flex-direction: column; gap: 4px; } }  /* a phone: the line goes under the title */

/* static/pages/profile.css */
/* Profile (pages/profile.js): a settings column, each section its name at the left and its card (app.css's `.card`)
   at the right; one column on a phone */
.profile-form { display: grid; gap: var(--sp-6); max-width: 960px; }
.profile-own { display: contents; }  /* the name's form holds its sections, which stand in the column with the rest */
.profile-sec { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.profile-sec { padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.profile-own > .profile-sec:first-child { padding-top: 0; border-top: 0; }
.profile-sec-h h2 { margin: 0 0 var(--sp-1); font: 700 var(--fs-card)/1.3 var(--title); color: var(--head); }
.profile-sec-h p { margin: 0; color: var(--text3); font-size: var(--fs-small); max-width: 34ch; }
.profile-card { --pad-y: var(--sp-5); --pad-x: var(--sp-5); gap: var(--sp-4); }
.profile-who { display: flex; align-items: center; gap: var(--sp-4); }
.profile-who > div { display: grid; gap: 2px; min-width: 0; }
.profile-who b { font: 700 var(--fs-card)/1.3 var(--title); color: var(--head); }
.profile-who small { color: var(--text3); font-size: var(--fs-small); }
.profile-av { background: var(--head); color: var(--bg); }
.profile-who .av.lg { width: 72px; height: 72px; border-radius: 18px; font-size: 24px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); }
.profile-card .input[readonly] { background-color: var(--chip); color: var(--text2); border-color: var(--line); }
.profile-v { margin: 0; min-height: var(--ctl-h); display: flex; align-items: center; color: var(--text); font-weight: 500; }
.profile-acts { display: flex; justify-content: flex-end; padding-top: var(--sp-4); border-top: 1px solid var(--line); }
/* the main tour's start */
.profile-tour { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.profile-tour > span { display: grid; gap: 2px; }
.profile-tour b { font-weight: 600; color: var(--text); }
.profile-tour small { color: var(--text3); font-size: var(--fs-small); }
/* Clutchy's memory: one row an entry, its words and who saved it, Edit and Remove; the field that adds one under them */
.profile-mem { display: grid; gap: var(--sp-2); }
.profile-mem-row { display: flex; align-items: center; gap: var(--sp-2); padding: 8px 0; border-bottom: 1px solid var(--line); }
.profile-mem-row > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.profile-mem-row b { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.profile-mem-row small, .profile-mem-none { color: var(--text3); font-size: var(--fs-small); }
.profile-mem-row .input { flex: 1; min-width: 0; height: var(--ctl-h); }
.profile-mem-none { margin: 0; }
.profile-mem-add { display: flex; gap: var(--sp-2); padding-top: var(--sp-2); }
.profile-mem-add .input { flex: 1; min-width: 0; height: var(--ctl-h-sm); }
.profile-mem-err { margin: 0; display: flex; align-items: center; gap: var(--sp-2); color: var(--bad-ink); font-size: var(--fs-small); }
@media (max-width: 900px) {
  .profile-sec { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .profile-sec-h p { max-width: none; }
}
@media (max-width: 760px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-acts .btn { width: 100%; }
  .profile-tour { flex-wrap: wrap; }
  .profile-mem-row:not(form) { flex-wrap: wrap; } .profile-mem-row > span { flex-basis: 100%; }
}

/* A photo's controls (core.js, faceControls), on Profile and in Admin, Users: Change photo and Remove on one line */
.face-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.face-acts .btn { height: var(--ctl-h-sm); font-size: var(--fs-caption); }
.face-note { color: var(--text3); font-size: var(--fs-caption); }
.users-who { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; }
.users-who > span { display: grid; min-width: 0; }
.users-face { display: flex; align-items: center; gap: 14px; }
.users-face .face-acts { margin-top: 0; }
.face-fill { margin: -6px 0 14px; color: var(--text2); font-size: var(--fs-small); }

/* static/pages/progress.asks.css */
/* Progress's question cards, the Overview deck, and the Needs answers queues. */

/* --- A card: its subject, the question, and once open what is needed and its answer --- */
[data-page="progress"] .pr-ask { border-bottom: 1px solid var(--line); scroll-margin-block-start: var(--sp-4); }
[data-page="progress"] .pr-ask-head {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 48px; padding: 8px var(--sp-2);
  border-radius: var(--r-sm); text-align: left; transition: background-color var(--t-fast) var(--ease);
}
[data-page="progress"] .pr-ask-head:hover { background: var(--hover); }
[data-page="progress"] .pr-ask-head > .i:last-child { flex: none; margin-inline-start: auto; color: var(--text3); transition: rotate var(--t-fast) var(--ease); }
[data-page="progress"] .pr-ask-head[aria-expanded="true"] > .i:last-child { rotate: 90deg; }
[data-page="progress"] .pr-ask-q { min-width: 0; margin: 0; font-size: var(--fs-body); font-weight: 600; line-height: 1.4; color: var(--head); text-wrap: pretty; overflow-wrap: anywhere; }
[data-page="progress"] .pr-ask-head .pr-ask-q { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
[data-page="progress"] .pr-ask.open .pr-ask-head .pr-ask-q { white-space: normal; }
[data-page="progress"] .pr-subject {
  flex: none; max-width: 34%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 1px 8px; border-radius: var(--r-sm);
  background: var(--chip); font-size: var(--fs-caption); font-weight: 700; line-height: 20px; color: var(--text2);
}
[data-page="progress"] .pr-ask-body { display: grid; gap: var(--sp-3); padding: 0 var(--sp-2) var(--sp-4); font-size: var(--fs-small); line-height: 1.55; color: var(--text2); }
[data-page="progress"] .pr-ask-why { margin: 0; max-width: 72ch; color: var(--text); text-wrap: pretty; overflow-wrap: anywhere; }
[data-page="progress"] .pr-ask-facts { display: grid; gap: var(--sp-2); margin: 0; }
[data-page="progress"] .pr-ask-facts dt { font-size: var(--fs-caption); font-weight: 700; color: var(--text3); }
[data-page="progress"] .pr-ask-facts dd { margin: 0; color: var(--text2); overflow-wrap: anywhere; }
[data-page="progress"] .pr-ask-next { max-width: 72ch; }
[data-page="progress"] .pr-ask-facts .pr-ask-looked dd { font-size: var(--fs-caption); color: var(--text3); }
[data-page="progress"] .pr-ask-how > summary { cursor: pointer; font-weight: 600; color: var(--head); list-style: none; }
[data-page="progress"] .pr-ask-how > p { margin: var(--sp-1) 0 0; }
[data-page="progress"] .pr-ask-links { display: flex; flex-wrap: wrap; gap: 6px; }
[data-page="progress"] .pr-ask-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-caption); color: var(--text3); }
[data-page="progress"] .pr-doc-chip { padding: 1px 6px; border-radius: 4px; background: var(--chip); font: 500 var(--fs-caption) var(--mono); color: var(--text3); }
[data-page="progress"] .pr-ask-reply { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0; padding: 8px 10px; border-radius: var(--r-ctl); background: var(--ok-bg); color: var(--text); }
[data-page="progress"] .pr-ask-reply > svg.i { margin-top: 3px; color: var(--ok-ink); flex: none; }
[data-page="progress"] .pr-ask-reply small { display: block; color: var(--text3); }

/* --- Its answer: large choices, then a reply in words --- */
[data-page="progress"] .pr-answer { display: grid; gap: var(--sp-2); }
[data-page="progress"] .pr-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: var(--sp-2); }
[data-page="progress"] .pr-choice { height: 44px; justify-content: center; gap: 6px; font-size: var(--fs-body); font-weight: 600; white-space: normal; text-align: center; }
[data-page="progress"] .pr-choice:is(.yes, [aria-pressed="true"]) { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-bg); color: var(--ok-ink); }
[data-page="progress"] .pr-choice:is(.yes, [aria-pressed="true"]):hover:not(:disabled) { border-color: var(--ok); }
[data-page="progress"] .pr-reply { display: flex; align-items: flex-end; gap: var(--sp-2); }
[data-page="progress"] .pr-reply textarea { flex: 1; min-width: 0; min-height: 40px; resize: vertical; field-sizing: content; max-height: 160px; }
[data-page="progress"] .pr-reply .btn { flex: none; }

/* --- The Overview's deck: one question at a time, on its own card --- */
[data-page="progress"] .pr-deck .pr-label .pr-seg > button { height: 24px; padding: 0 8px; font-size: var(--fs-caption); }
[data-page="progress"] .pr-ask.deck {
  display: grid; gap: var(--sp-3); padding: var(--sp-4); border: 0; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card);
}
[data-page="progress"] .pr-ask.deck > .pr-subject { justify-self: start; max-width: 100%; }
[data-page="progress"] .pr-ask.deck > .pr-ask-card-head { margin-block-end: 0; }
[data-page="progress"] .pr-ask.deck .pr-ask-q { font-size: var(--fs-card); font-weight: 700; line-height: 1.45; }
[data-page="progress"] .pr-ask.deck .pr-ask-body { padding: 0; }
[data-page="progress"] .pr-ask.deck .pr-ask-why { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
[data-page="progress"] .pr-deck-nav { display: flex; align-items: center; gap: var(--sp-1); margin-top: var(--sp-2); font-size: var(--fs-caption); font-weight: 600; color: var(--text3); }
[data-page="progress"] .pr-deck-nav > .pr-num { min-width: 52px; text-align: center; }
[data-page="progress"] :is(.pr-deck-all, .pr-deck-done a) { display: inline-flex; align-items: center; gap: 2px; margin-inline-start: auto; font-size: var(--fs-small); font-weight: 600; color: var(--text2); text-decoration: none; }
[data-page="progress"] :is(.pr-deck-all, .pr-deck-done a):hover { color: var(--head); }
[data-page="progress"] .pr-deck-done { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4); border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
[data-page="progress"] .pr-deck-done > svg.i { color: var(--ok-ink); }
[data-page="progress"] .pr-deck-done p { margin: 0; font-size: var(--fs-body); font-weight: 600; color: var(--head); }

/* --- Needs answers: its queues, then each person's questions --- */
[data-page="progress"] .pr-needs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); max-width: 960px; }
[data-page="progress"] .pr-needs > .pr-needs-bar { margin-bottom: 0; }
[data-page="progress"] .pr-qgroup { display: grid; grid-template-columns: minmax(0, 1fr); }
[data-page="progress"] .pr-qgroup .pr-answer { max-width: 560px; }
[data-page="progress"] .pr-ask.list-card {
  margin-block-end: var(--sp-3); padding: var(--sp-4); border: 0; border-radius: var(--r-card);
  background: var(--raise); box-shadow: var(--card);
}
[data-page="progress"] .pr-ask-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-block-end: var(--sp-2); }
[data-page="progress"] .pr-ask-card-head .pr-subject { max-width: 100%; }
[data-page="progress"] .pr-ask-card-head .pr-ask-q { width: 100%; font-size: var(--fs-card); font-weight: 700; }
[data-page="progress"] .pr-ask.list-card .pr-ask-body { padding: 0; }
[data-page="progress"] .pr-qgroup .pr-ask-body { gap: var(--sp-2); }
[data-page="progress"] .pr-qgroup .pr-ask-head .pr-ask-q {
  flex: 1; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[data-page="progress"] .pr-qgroup .pr-ask-head[aria-expanded="true"] .pr-ask-q { white-space: normal; }
[data-page="progress"] .pr-ask-answer-preview {
  min-width: 0; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600; color: var(--text);
}
[data-page="progress"] .pr-ask-more summary {
  width: fit-content; min-height: 28px; padding-block: var(--sp-1); cursor: pointer; color: var(--text2);
}
[data-page="progress"] .pr-ask-more > :is(dl, div) { margin-block-start: var(--sp-2); }
[data-page="progress"] .pr-ask-how > strong { font-size: var(--fs-caption); color: var(--text3); }
[data-page="progress"] .pr-qgroup .pr-ask-reply span { min-width: 0; overflow-wrap: anywhere; }
[data-page="progress"] .pr-change-answer { justify-self: start; }

@container (max-width: 720px) {
  [data-page="progress"] .pr-ask-head .pr-ask-q { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  [data-page="progress"] .pr-subject { max-width: 40%; }
  [data-page="progress"] .pr-reply { display: grid; }
  [data-page="progress"] .pr-reply .btn, [data-page="progress"] .pr-deck-nav .btn,
  [data-page="progress"] .pr-ask-more summary, [data-page="progress"] .pr-change-answer { min-height: var(--pr-touch); }
  [data-page="progress"] .pr-qgroup .pr-ask-head { gap: var(--sp-2); }
  [data-page="progress"] .pr-deck .pr-label .pr-seg > button { height: auto; min-height: var(--pr-touch); }
  [data-page="progress"] .pr-deck-nav .btn.sq { min-width: var(--pr-touch); }
}

/* static/pages/progress.css */
/* Progress: the tabs and search, the section label, the kinds' colours, Goals with their drawer, Calls, Notes and the
   search results. The Overview is progress.day.css; the questions are progress.asks.css. Sections are flat, grouped by
   whitespace and one hairline, as the panel's lists group their rows. */

[data-page="progress"] {
  container-type: inline-size;
  --pr-touch: 44px;
  --pr-imp: #8b5cf6;
  --pr-imp-ink: #6d28d9;
  --pr-imp-bg: color-mix(in srgb, #8b5cf6 11%, transparent);
}
:root[data-theme="dark"] [data-page="progress"] { --pr-imp: #a78bfa; --pr-imp-ink: #c4b5fd; --pr-imp-bg: color-mix(in srgb, #a78bfa 14%, transparent); }

/* --- The tabs and the search --- */
.main:has([data-page="progress"]) { --mark: 0; }
[data-page="progress"] .ph { margin-bottom: 0; padding-bottom: var(--sp-3); border-bottom: 0; }
[data-page="progress"] .pr-navigation { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
[data-page="progress"] .pr-tabs { display: flex; min-width: 0; gap: var(--sp-5); overflow-x: auto; scrollbar-width: none; }
[data-page="progress"] .pr-tabs > a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 2px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--text2); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
[data-page="progress"] .pr-tabs > a:hover { color: var(--head); }
[data-page="progress"] .pr-tabs > a[aria-current] { color: var(--head); border-color: var(--head); }
[data-page="progress"] .pr-tabs > a:focus-visible { outline-offset: -3px; }
[data-page="progress"] .pr-tabs > a > svg.i { width: 15px; height: 15px; color: var(--text3); }
[data-page="progress"] .pr-tabs > a[aria-current] > svg.i { color: var(--head); }
[data-page="progress"] .pr-tab-n { font: 600 var(--fs-caption) var(--sans); font-variant-numeric: tabular-nums; color: var(--text3); }
[data-page="progress"] .pr-find { flex: 0 1 260px; min-width: 0; margin-bottom: 6px; }
[data-page="progress"] .pr-num { font-variant-numeric: tabular-nums; }
[data-page="progress"] .pr-muted { color: var(--text3); }
[data-page="progress"] .pr-none { margin: 0; padding: var(--sp-2) 0; font-size: var(--fs-small); }
[data-page="progress"] .pr-tag { flex: none; }
[data-page="progress"] .pill.imp { color: var(--pr-imp-ink); background: var(--pr-imp-bg); }

/* --- A section's label: its name in small capitals, a fine line, then its count or its words --- */
[data-page="progress"] .pr-label { display: flex; align-items: center; gap: var(--sp-2); min-height: 28px; margin: 0 0 var(--sp-2); }
[data-page="progress"] .pr-label > svg.i { width: 14px; height: 14px; color: var(--text3); }
[data-page="progress"] .pr-label h2 { margin: 0; font-size: var(--fs-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); white-space: nowrap; }
[data-page="progress"] .pr-label > i { flex: 1; min-width: var(--sp-4); height: 1px; background: var(--line); }
[data-page="progress"] .pr-label > :is(small, .pr-count) { font-size: var(--fs-caption); color: var(--text3); white-space: nowrap; }

/* --- The kinds: one colour each, in every bar and dot --- */
[data-page="progress"] .pr-k-new { background: var(--ok); }
[data-page="progress"] .pr-k-fixed { background: var(--wait); }
[data-page="progress"] .pr-k-improved { background: var(--pr-imp); }
[data-page="progress"] .pr-k-removed { background: var(--bad); }
[data-page="progress"] .pr-k-docs { background: var(--warn); }
[data-page="progress"] .pr-k-other { background: var(--text3); }
[data-page="progress"] .pr-kbar { display: inline-flex; flex: 0 0 72px; height: 4px; gap: 1px; border-radius: var(--r-pill); overflow: hidden; background: var(--line); }
[data-page="progress"] .pr-kbar > i { flex-basis: 0; }

/* --- The segmented control --- */
[data-page="progress"] .pr-seg { display: inline-flex; flex-wrap: wrap; padding: 2px; gap: 2px; border-radius: var(--r-ctl); background: var(--chip); }
[data-page="progress"] .pr-seg > button {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: var(--r-sm);
  font-size: var(--fs-small); font-weight: 500; color: var(--text2);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
[data-page="progress"] .pr-seg > button:hover { color: var(--head); }
[data-page="progress"] .pr-seg > button[aria-pressed="true"] { background: var(--raise); color: var(--head); font-weight: 600; box-shadow: var(--lift); }
[data-page="progress"] .pr-seg > button b { font-weight: 600; color: var(--text3); }

/* --- A change: its kind, what it did, its place and its why (the Overview, a goal, the last call) --- */
[data-page="progress"] .pr-rows { list-style: none; margin: 0; padding: 0; }
[data-page="progress"] .pr-row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--sp-3); padding: 9px var(--sp-2);
  border-radius: var(--r-sm); scroll-margin-block: var(--sp-8);
}
[data-page="progress"] .pr-row + .pr-row { margin-top: 1px; }
[data-page="progress"] .pr-row.picked { background: var(--sel); }
[data-page="progress"] .pr-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
[data-page="progress"] .pr-row-kind { display: flex; align-items: center; gap: 7px; height: 20px; font-size: var(--fs-caption); font-weight: 600; color: var(--text3); }
[data-page="progress"] .pr-row-kind > i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
[data-page="progress"] .pr-row-main { min-width: 0; display: grid; gap: 2px; }
[data-page="progress"] .pr-what { margin: 0; font-size: var(--fs-body); line-height: 20px; color: var(--head); text-wrap: pretty; overflow-wrap: anywhere; }
[data-page="progress"] .pr-place { margin: 0; font-size: var(--fs-caption); font-weight: 600; color: var(--text2); }
[data-page="progress"] .pr-why { margin: 0; font-size: var(--fs-small); line-height: 1.45; color: var(--text3); text-wrap: pretty; overflow-wrap: anywhere; max-width: 80ch; }

/* --- Goals --- */
[data-page="progress"] .pr-needs-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-4); }
[data-page="progress"] .pr-prio { display: inline-flex; align-items: flex-end; gap: 1.5px; width: 12px; height: 12px; margin-top: 4px; flex: none; }
[data-page="progress"] .pr-prio i { display: block; width: 2.5px; border-radius: 1px; background: var(--line2); }
[data-page="progress"] .pr-prio i:nth-child(1) { height: 4px; }
[data-page="progress"] .pr-prio i:nth-child(2) { height: 8px; }
[data-page="progress"] .pr-prio i:nth-child(3) { height: 12px; }
[data-page="progress"] .pr-prio.hi i { background: var(--warn); }
[data-page="progress"] .pr-prio.med i:nth-child(-n+2) { background: var(--text2); }
[data-page="progress"] .pr-prio.low i:nth-child(1) { background: var(--text3); }
[data-page="progress"] .pr-steps-track { display: inline-flex; gap: 3px; width: 84px; flex: none; }
[data-page="progress"] .pr-steps-track > i { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--line2); }
[data-page="progress"] .pr-steps-track > i.done { background: var(--ok); }
[data-page="progress"] .pr-steps-track > i.next { background: var(--wait-bg); box-shadow: inset 0 0 0 1.5px var(--wait); }
[data-page="progress"] .pr-steps-track.lg { flex: 1; width: auto; gap: 4px; }
[data-page="progress"] .pr-steps-track.lg > i { height: 8px; }
[data-page="progress"] .pr-ring-done { width: 16px; height: 16px; color: var(--ok); display: inline-grid; place-items: center; }
[data-page="progress"] .pr-goals-list { display: grid; border-top: 1px solid var(--line); }
[data-page="progress"] .pr-goal { border-bottom: 1px solid var(--line); min-width: 0; }
[data-page="progress"] .pr-goal.is-selected { background: var(--sel); }
[data-page="progress"] .pr-goal-row {
  width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: start;
  padding: 12px var(--sp-2); text-align: left; transition: background-color var(--t-fast) var(--ease);
}
[data-page="progress"] .pr-goal-row:hover { background: var(--hover); }
[data-page="progress"] .pr-goal-main { min-width: 0; display: grid; gap: 3px; }
[data-page="progress"] .pr-goal-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
[data-page="progress"] .pr-goal-name { font-size: var(--fs-body); font-weight: 600; color: var(--head); overflow-wrap: anywhere; }
[data-page="progress"] .pr-goal-sub { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: var(--fs-small); color: var(--text3); overflow: hidden; white-space: nowrap; }
[data-page="progress"] .pr-goal-sub > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
[data-page="progress"] .pr-sub-blk { color: var(--warn-ink); flex: none; }
[data-page="progress"] .pr-sep { color: var(--faint); flex: none; }
[data-page="progress"] .pr-goal-right { display: flex; align-items: center; gap: 10px; padding-top: 1px; color: var(--text3); }
[data-page="progress"] .pr-meter { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-caption); font-weight: 600; color: var(--text2); margin: 0; }
[data-page="progress"] .pr-meter-track { width: 120px; height: 5px; border-radius: var(--r-pill); background: var(--line2); overflow: hidden; display: inline-block; }
[data-page="progress"] .pr-meter-track i { display: block; height: 100%; background: var(--ok); border-radius: var(--r-pill); }
[data-page="progress"] .pr-goal-shipped { font-size: var(--fs-caption); min-width: 64px; text-align: right; }
[data-page="progress"] .pr-goal-err { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); padding: 0 var(--sp-2) 10px 32px; font-size: var(--fs-caption); }
[data-page="progress"] .pr-built-btn[aria-expanded="true"] .i { rotate: 90deg; }
[data-page="progress"] .pr-built-wrap { margin-top: var(--sp-6); }

/* --- The goal's drawer --- */
[data-page="progress"] .pr-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(600px, 100vw); max-width: none; max-height: none; height: 100dvh;
  background: var(--raise); color: var(--text); border: 0; border-left: 1px solid var(--line2); box-shadow: var(--shadow);
  flex-direction: column; overflow: hidden; overscroll-behavior: contain;
}
[data-page="progress"] .pr-drawer[open] { display: flex; }
/* the backdrop is no scroll container by default: without these, a wheel over it scrolls the page behind the drawer */
[data-page="progress"] .pr-drawer::backdrop { background: rgb(8 10 14 / 42%); overflow: hidden; overscroll-behavior: contain; }
[data-page="progress"] .pr-drawer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) var(--sp-3); }
[data-page="progress"] .pr-drawer-title { flex: 1; min-width: 0; }
[data-page="progress"] .pr-drawer-title h2 { margin: 0; font: 800 20px/1.25 var(--title); letter-spacing: -.02em; color: var(--head); text-wrap: pretty; }
[data-page="progress"] .pr-drawer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; font-size: var(--fs-small); color: var(--text2); }
[data-page="progress"] .pr-drawer-prog { display: flex; align-items: center; gap: 10px; padding: 0 var(--sp-5) var(--sp-4); border-bottom: 1px solid var(--line); font-size: var(--fs-caption); font-weight: 600; color: var(--text2); }
[data-page="progress"] .pr-drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-4) var(--sp-5) var(--sp-8); display: grid; gap: var(--sp-6); align-content: start; }
[data-page="progress"] .pr-drawer-sec { display: grid; min-width: 0; }
[data-page="progress"] .pr-callout-warn { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: var(--r-ctl); border: 1px solid var(--note-line); background: var(--note-bg); }
[data-page="progress"] .pr-callout-warn > svg.i { color: var(--warn); margin-top: 2px; }
[data-page="progress"] .pr-callout-warn strong { display: block; font-size: var(--fs-caption); color: var(--warn-ink); }
[data-page="progress"] .pr-callout-warn p { margin: 2px 0 0; font-size: var(--fs-small); overflow-wrap: anywhere; }
[data-page="progress"] .pr-goal-steps { list-style: none; margin: 0; padding: 0; }
[data-page="progress"] .pr-step { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
[data-page="progress"] .pr-step.done { color: var(--text3); }
[data-page="progress"] .pr-step.next { color: var(--head); font-weight: 600; }
[data-page="progress"] .pr-step-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
[data-page="progress"] .pr-step-mark { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; border: 1.5px solid var(--line2); }
[data-page="progress"] .pr-step.done .pr-step-mark { border-color: transparent; background: var(--ok-bg); color: var(--ok-ink); }
[data-page="progress"] .pr-step.next .pr-step-mark { border-color: var(--wait); background: var(--wait-bg); }
[data-page="progress"] .pr-step-mark .i { width: 11px; height: 11px; }
[data-page="progress"] .pr-drawer-notes { gap: var(--sp-2); }
[data-page="progress"] :is(.pr-drawer-notes details, .pr-open-item) { border-bottom: 1px solid var(--line); }
[data-page="progress"] :is(.pr-drawer-notes summary, .pr-open-item > summary) {
  list-style: none; display: flex; align-items: baseline; gap: var(--sp-2); padding: 10px 0; cursor: pointer;
  font-size: var(--fs-small); font-weight: 600; color: var(--head);
}
[data-page="progress"] :is(.pr-drawer-notes summary, .pr-open-item > summary, .pr-call > summary, .pr-note-group > summary, .pr-home-box > summary, .pr-ask-how > summary)::-webkit-details-marker { display: none; }
[data-page="progress"] :is(.pr-drawer-notes summary, .pr-open-item > summary, .pr-call > summary) > .i:last-child { margin-left: auto; flex: none; align-self: center; color: var(--text3); transition: rotate var(--t-fast) var(--ease); }
[data-page="progress"] details[open] > summary > .i:last-child { rotate: 90deg; }
[data-page="progress"] .pr-drawer-notes details > p { margin: 0; padding: 0 0 12px; font-size: var(--fs-small); color: var(--text2); line-height: 1.55; }
[data-page="progress"] .pr-more { justify-self: start; margin-top: var(--sp-2); }

/* --- Open work --- */
[data-page="progress"] .pr-open-title { flex: 1; min-width: 0; font-weight: 500; color: var(--text); }
[data-page="progress"] .pr-open-tag { font: 500 11px var(--mono); color: var(--text3); flex: none; }
[data-page="progress"] .pr-open-body { padding: 0 0 12px; font-size: var(--fs-small); color: var(--text2); display: grid; gap: 4px; }
[data-page="progress"] .pr-open-body p { margin: 0; }

/* --- Calls and Notes --- */
[data-page="progress"] .pr-narrow { display: grid; gap: var(--sp-5); max-width: 960px; align-content: start; }
[data-page="progress"] .pr-band { border-bottom: 1px solid var(--line); }
[data-page="progress"] .pr-band-button { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); padding: 10px var(--sp-2); text-align: left; border-radius: var(--r-sm); transition: background-color var(--t-fast) var(--ease); }
[data-page="progress"] .pr-band-button:hover { background: var(--hover); }
[data-page="progress"] .pr-band-copy { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
[data-page="progress"] .pr-band-copy > svg.i { align-self: center; color: var(--text3); }
[data-page="progress"] .pr-band-copy strong { color: var(--head); }
[data-page="progress"] .pr-band-right { display: flex; align-items: center; gap: 10px; color: var(--text2); }
[data-page="progress"] .pr-band-button[aria-expanded="true"] .pr-band-right > .i:last-child { rotate: 90deg; }
[data-page="progress"] .pr-band-body { padding: 0 0 var(--sp-3); }
[data-page="progress"] .pr-call { border-bottom: 1px solid var(--line); }
[data-page="progress"] .pr-call-head { display: flex; align-items: center; gap: var(--sp-3); padding: 12px var(--sp-2); cursor: pointer; list-style: none; }
[data-page="progress"] .pr-call-title { flex: 1; min-width: 0; display: grid; gap: 6px; }
[data-page="progress"] .pr-call-title strong { font: 800 var(--fs-card)/1.3 var(--title); color: var(--head); }
[data-page="progress"] .pr-call-stand { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-caption); }
[data-page="progress"] .pr-leaf { display: grid; place-items: center; width: 44px; flex: none; padding: 4px 0 5px; border-radius: var(--r-ctl); background: var(--chip); line-height: 1.1; }
[data-page="progress"] .pr-leaf small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
[data-page="progress"] .pr-leaf b { font: 800 var(--fs-lead) var(--title); color: var(--head); }
[data-page="progress"] .pr-stand-bar { display: inline-flex; gap: 2px; width: 120px; height: 6px; border-radius: var(--r-pill); overflow: hidden; background: var(--line); }
[data-page="progress"] .pr-stand-bar > i { flex-basis: 0; }
[data-page="progress"] .pr-stand-bar > .ok { background: var(--ok); }
[data-page="progress"] .pr-stand-bar > .wait { background: var(--wait); }
[data-page="progress"] .pr-stand-bar > .warn { background: var(--warn); }
[data-page="progress"] .pr-stand-bar > .off { background: var(--faint); }
[data-page="progress"] .pr-call-body { padding: 0 var(--sp-2) var(--sp-4) calc(44px + var(--sp-3) + var(--sp-2)); display: grid; gap: var(--sp-3); }
[data-page="progress"] .pr-call-summary { margin: 0; font-size: var(--fs-small); color: var(--text2); line-height: 1.55; max-width: 72ch; }
[data-page="progress"] .pr-call-sec h3 { margin: var(--sp-1) 0 2px; font-size: var(--fs-caption); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
[data-page="progress"] .pr-standing-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: 9px 0; border-bottom: 1px solid var(--line); }
[data-page="progress"] .pr-standing-main { min-width: 0; display: grid; gap: 3px; }
[data-page="progress"] .pr-standing-text { font-size: var(--fs-small); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
[data-page="progress"] .pr-row-link { color: var(--head); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line2); }
[data-page="progress"] .pr-row-link:hover { color: var(--blue); border-bottom-color: var(--blue); }
[data-page="progress"] .pr-standing-home { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-caption); color: var(--text3); }
[data-page="progress"] .pr-standing-home .i { width: 12px; height: 12px; }
[data-page="progress"] .pr-note-form { display: grid; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
[data-page="progress"] .pr-note-foot { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }
[data-page="progress"] .pr-note-foot .primary { margin-left: auto; }
[data-page="progress"] .pr-file { position: relative; cursor: pointer; }
[data-page="progress"] .pr-file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
[data-page="progress"] .pr-file:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
[data-page="progress"] :is(.pr-file-list, .pr-file-hint) { font-size: var(--fs-caption); }
[data-page="progress"] .pr-form-err { margin: 0; font-size: var(--fs-small); color: var(--bad-ink); }
[data-page="progress"] .pr-note-group > summary { display: flex; align-items: center; gap: var(--sp-2); padding: 8px 0; cursor: pointer; list-style: none; font-size: var(--fs-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
[data-page="progress"] .pr-note-group > summary .pr-count-chip { font-weight: 500; letter-spacing: 0; }
[data-page="progress"] .pr-note-group > summary > .i:last-child { margin-left: auto; transition: rotate var(--t-fast) var(--ease); }
[data-page="progress"] .pr-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--sp-2) var(--sp-3); padding: 4px 0; border-bottom: 1px solid var(--line); }
[data-page="progress"] .pr-note .pr-standing-row { border: 0; }
[data-page="progress"] .pr-note-meta { display: block; margin-top: -4px; padding-bottom: 8px; font-size: var(--fs-caption); }
[data-page="progress"] .pr-note-images { display: flex; flex-wrap: wrap; gap: 6px; max-width: 164px; padding-top: 8px; }
[data-page="progress"] .pr-note-images img { width: 68px; height: 68px; object-fit: cover; display: block; border-radius: var(--r-ctl); border: 1px solid var(--line); }
[data-page="progress"] .pr-home-box { grid-column: 1 / -1; margin-bottom: 10px; }
[data-page="progress"] .pr-home-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
[data-page="progress"] .pr-home-form .field { flex: 1 1 220px; }
[data-page="progress"] .pr-home-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
[data-page="progress"] .pr-home-picks .btn { white-space: normal; height: auto; padding-block: 5px; }

/* --- Search --- */
[data-page="progress"] .pr-results { display: grid; gap: var(--sp-6); max-width: 960px; }
[data-page="progress"] .pr-search-hit { padding: 9px var(--sp-2); border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
[data-page="progress"] .pr-search-btn { text-align: left; font-size: var(--fs-small); font-weight: 600; color: var(--head); overflow-wrap: anywhere; }
[data-page="progress"] .pr-search-btn:hover { color: var(--blue); }
[data-page="progress"] .pr-search-hit small { font-size: var(--fs-caption); color: var(--text3); overflow-wrap: anywhere; }
[data-page="progress"] mark { color: var(--head); background: var(--warn-bg); font-weight: 700; border-radius: 3px; padding: 0 2px; }

@container (max-width: 720px) {
  [data-page="progress"] .pr-navigation { display: grid; gap: var(--sp-3); border-bottom: 0; }
  [data-page="progress"] .pr-tabs { gap: 0 var(--sp-4); border-bottom: 1px solid var(--line); }
  [data-page="progress"] .pr-find { margin: 0; }
  [data-page="progress"] .pr-goal-row { grid-template-columns: 12px minmax(0, 1fr); }
  [data-page="progress"] .pr-goal-right { grid-column: 2; padding-top: 4px; }
  [data-page="progress"] .pr-goal-sub { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  [data-page="progress"] .pr-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  [data-page="progress"] .pr-call-body { padding-left: var(--sp-2); }
  [data-page="progress"] :is(.pr-tabs a, .pr-goal-row, .pr-seg > button, .pr-call summary, .pr-note-form .btn, .pr-note .btn,
    .pr-note-group summary, .pr-band-button, .pr-open-item > summary, [data-pr="close-inspector"]) { min-height: var(--pr-touch); }
  [data-page="progress"] .pr-note-images { max-width: 72px; }
}

@container (max-width: 520px) {
  [data-page="progress"] .pr-tabs > a > svg.i { display: none; }
}

/* static/pages/progress.day.css */
/* Progress's Overview (progress.day.js): the period's bar, the chart of days, the summary, the changes by area and,
   at the side, the questions that wait on the reader. */

[data-page="progress"] .pr-ov { display: grid; gap: var(--sp-5); min-width: 0; }

/* --- The period's bar: its name and counts at the left, Day, Week, Month and the steps at the right --- */
[data-page="progress"] .pr-pbar { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); }
[data-page="progress"] .pr-ptitle { display: grid; gap: var(--sp-2); min-width: 0; }
[data-page="progress"] .pr-ptitle h2 { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); margin: 0; font: 800 26px/1.15 var(--title); letter-spacing: -.02em; color: var(--head); }
[data-page="progress"] .pr-now { padding: 2px 9px; border-radius: var(--r-pill); background: var(--chip); font: 600 var(--fs-caption)/18px var(--sans); letter-spacing: 0; color: var(--text2); }
[data-page="progress"] .pr-pline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; font-size: var(--fs-small); color: var(--text2); }
[data-page="progress"] .pr-total { margin-inline-end: var(--sp-2); color: var(--text2); }
[data-page="progress"] .pr-total b { font: 800 var(--fs-card) var(--title); color: var(--head); }
[data-page="progress"] .pr-kchip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: var(--fs-small); color: var(--text2); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
[data-page="progress"] .pr-kchip:hover { background: var(--hover); color: var(--head); }
[data-page="progress"] .pr-kchip[aria-pressed="true"] { background: var(--sel); color: var(--head); box-shadow: inset 0 0 0 1px var(--line2); }
[data-page="progress"] .pr-kchip > i { width: 8px; height: 8px; border-radius: 50%; }
[data-page="progress"] .pr-kchip > b { font-weight: 700; color: var(--head); }
[data-page="progress"] .pr-latest { margin: 0; font-size: var(--fs-caption); color: var(--text3); }
[data-page="progress"] .pr-pnav { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }
[data-page="progress"] .pr-stepper { display: inline-flex; align-items: center; gap: 4px; }
[data-page="progress"] .pr-step.back > .i, [data-page="progress"] .pr-deck-nav .back > .i { rotate: 180deg; }
[data-page="progress"] .pr-pick { position: relative; display: inline-flex; }
[data-page="progress"] .pr-pick > input { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }

/* --- The chart: one bar a day, split by kind; the period's days stand out --- */
[data-page="progress"] .pr-chart-box { padding: var(--sp-4) var(--sp-4) var(--sp-3); border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
[data-page="progress"] .pr-chart { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: 3px; height: 112px; }
[data-page="progress"] .pr-col {
  display: flex; align-items: flex-end; height: 100%; min-width: 0; padding: 2px 1px 0; border-radius: var(--r-sm) var(--r-sm) 2px 2px;
  transition: background-color var(--t-fast) var(--ease);
}
[data-page="progress"] .pr-col:hover:not(:disabled), [data-page="progress"] .pr-col[aria-current] { background: var(--sel); }
[data-page="progress"] .pr-col-bar {
  display: flex; flex-direction: column-reverse; width: 100%; height: var(--h); min-height: 3px; gap: 1px;
  border-radius: 3px 3px 1px 1px; overflow: hidden; background: var(--line2); transition: opacity var(--t-fast) var(--ease);
}
[data-page="progress"] .pr-col-bar > i { flex-basis: 0; }
[data-page="progress"] .pr-chart.focus .pr-col:not(.in) .pr-col-bar { opacity: .32; }
[data-page="progress"] .pr-chart.focus .pr-col:not(.in):hover .pr-col-bar { opacity: .7; }
[data-page="progress"] .pr-col:disabled { cursor: default; }
[data-page="progress"] .pr-col:disabled .pr-col-bar { background: transparent; box-shadow: inset 0 -2px 0 var(--line); }
[data-page="progress"] .pr-col:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
[data-page="progress"] .pr-axis { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 6px; font-size: var(--fs-caption); color: var(--text3); }
[data-page="progress"] .pr-axis > span { white-space: nowrap; overflow: hidden; }

/* --- The summary, the changes and the side --- */
[data-page="progress"] .pr-ov-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 34%, 380px); grid-template-areas: "sum rail" "list rail";
  align-items: start; gap: var(--sp-6) var(--sp-8);
}
[data-page="progress"] .pr-ov-sum { grid-area: sum; min-width: 0; }
[data-page="progress"] .pr-ov-sum:empty { display: none; }
[data-page="progress"] .pr-ov-rail { grid-area: rail; min-width: 0; position: sticky; top: var(--sp-4); }
[data-page="progress"] .pr-ov-list { grid-area: list; display: grid; gap: var(--sp-6); min-width: 0; }
[data-page="progress"] .pr-sum { display: grid; }
[data-page="progress"] .pr-by { font-size: var(--fs-caption); color: var(--text3); }
[data-page="progress"] .pr-headline { margin: var(--sp-1) 0 var(--sp-2); font: 800 20px/1.3 var(--title); letter-spacing: -.015em; color: var(--head); text-wrap: balance; max-width: 56ch; }
[data-page="progress"] .pr-sum-text { margin: 0; font-size: var(--fs-lead); line-height: 1.6; color: var(--text2); max-width: 72ch; text-wrap: pretty; }
[data-page="progress"] .pr-sum-wait p { margin: var(--sp-1) 0 var(--sp-2); font-size: var(--fs-small); color: var(--text3); }
[data-page="progress"] .pr-hl { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
[data-page="progress"] .pr-hl > li { display: flex; align-items: baseline; gap: var(--sp-3); font-size: var(--fs-body); line-height: 1.5; color: var(--text); }
[data-page="progress"] .pr-hl-area {
  flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 8px; border-radius: var(--r-sm);
  background: var(--chip); font-size: var(--fs-caption); font-weight: 600; line-height: 20px; color: var(--text2);
}
[data-page="progress"] button.pr-hl-area { transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
[data-page="progress"] button.pr-hl-area:hover { background: var(--sel); color: var(--head); }

[data-page="progress"] .pr-area { scroll-margin-block-start: var(--sp-4); }
[data-page="progress"] .pr-area + .pr-area { margin-top: var(--sp-1); }
[data-page="progress"] .pr-area-h {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: 36px; padding: 6px var(--sp-2); border-radius: var(--r-sm);
  text-align: left; transition: background-color var(--t-fast) var(--ease);
}
[data-page="progress"] .pr-area-h:hover { background: var(--hover); }
[data-page="progress"] .pr-area-h > .i:first-child { flex: none; color: var(--text3); transition: rotate var(--t-fast) var(--ease); }
[data-page="progress"] .pr-area-h[aria-expanded="true"] > .i:first-child { rotate: 90deg; }
[data-page="progress"] .pr-area-h strong { font-size: var(--fs-card); font-weight: 700; color: var(--head); overflow-wrap: anywhere; }
[data-page="progress"] .pr-area-h > .pr-muted { font-size: var(--fs-caption); white-space: nowrap; }
[data-page="progress"] .pr-area-h > .pr-kbar { margin-inline-start: auto; }
[data-page="progress"] .pr-area > .pr-rows { padding-inline-start: 22px; }
[data-page="progress"] .pr-area > .pr-more { margin: var(--sp-1) 0 var(--sp-2) 30px; }
[data-page="progress"] .pr-asked .pr-standing-row:last-child { border-bottom: 0; }

@container (max-width: 900px) {
  [data-page="progress"] .pr-ov-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sum" "rail" "list"; }
  [data-page="progress"] .pr-ov-rail { position: static; }
}

@container (max-width: 720px) {
  /* Day, Week and Month across the width, then the steps with Today stretched and the date picker. */
  [data-page="progress"] .pr-pnav { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
  [data-page="progress"] .pr-pnav > .pr-seg { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  [data-page="progress"] .pr-stepper { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  [data-page="progress"] :is(.pr-pnav > .pr-seg > button, .pr-stepper .btn) { justify-content: center; }
  [data-page="progress"] .pr-ptitle h2 { font-size: 22px; }
  [data-page="progress"] .pr-chart { height: 88px; gap: 2px; }
  [data-page="progress"] .pr-chart-box { padding: var(--sp-3); }
  [data-page="progress"] .pr-area > .pr-rows { padding-inline-start: 0; }
  [data-page="progress"] .pr-area-h > .pr-kbar { flex-basis: 48px; }
  [data-page="progress"] :is(.pr-kchip, .pr-area-h, .pr-stepper .btn, .pr-pick .btn, .pr-hl-area) { min-height: var(--pr-touch); }
  [data-page="progress"] .pr-stepper .btn.sq, [data-page="progress"] .pr-pick .btn { min-width: var(--pr-touch); }
}

/* static/pages/recruitment.css */
/* Recruitment (pages/recruitment.js): Pipeline's board, Open roles' cards and funnel, Candidates' table and a candidate's
   page. Each stage has one hue, from the panel's state colours, used for its dot alone */
:is([data-page="pipeline"], [data-page="roles"], [data-page="candidates"]) {
  --rec-new: var(--text3); --rec-fit: var(--wait); --rec-int: var(--amber); --rec-pot: color-mix(in oklab, var(--wait) 55%, var(--bad));
  --rec-hired: var(--ok); --rec-out: var(--bad);
}
.rec-name { color: var(--text); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.rec-fit { font-family: var(--mono); font-variant-numeric: tabular-nums; min-width: 34px; justify-content: center; }
.rec-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin: 0 0 var(--sp-4); border: 1px solid var(--note-line); border-radius: 10px; background: var(--note-bg); color: var(--text2); }
.rec-note svg.i { width: 16px; height: 16px; color: var(--warn); flex: none; }
.rec-note.bad { border-color: color-mix(in oklab, var(--bad) 35%, transparent); background: color-mix(in oklab, var(--bad) 7%, transparent); color: var(--bad-ink); margin: var(--sp-3) 0 0; }
.rec-note.bad svg.i { color: var(--bad); }
.rec-foot { margin-top: var(--sp-3); font-size: var(--fs-small); }
.rec-bolt { display: flex; gap: 6px; margin: 0 4px 10px; font-size: var(--fs-caption); color: var(--text2); line-height: 1.35; }
.rec-bolt svg.i { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--warn); }
[data-page="pipeline"] .tiles { margin-bottom: var(--sp-5); }

/* the add form: a card under the head */
.rec-add { --pad-y: 16px; --pad-x: 18px; margin-bottom: var(--sp-5); }
.rec-add-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-3) var(--sp-4); }
.rec-add-a { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-3); }

/* the board: five stages, then Disqualified, all six in a laptop's width from 1440 px; a narrower one scrolls sideways */
.rec-board { display: grid; grid-template-columns: repeat(6, minmax(158px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
/* a column holds a screen's height and scrolls its own cards, its head staying on top (Andres, 2026-11-14) */
.rec-col { background: var(--side); border-radius: var(--r-card); padding: 8px; min-height: 220px; max-height: max(440px, calc(100dvh - 190px)); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 8px; }
.rec-col > * { flex: none; }
.rec-col-h { display: flex; align-items: center; gap: 8px; position: sticky; top: -8px; z-index: 1; margin: -8px -8px 0; padding: 12px 12px 6px; background: inherit; }
.rec-col-h h2 { margin: 0; font: 600 var(--fs-small) var(--title); color: var(--text); }
.rec-col-h b { margin-left: auto; font: 600 var(--fs-caption) var(--mono); color: var(--text3); }
.rec-col-l { margin: 0 4px; font-size: var(--fs-caption); color: var(--text2); }
.rec-drop { margin: 0; border: 1px dashed var(--line2); border-radius: 10px; padding: 18px 8px; text-align: center; color: var(--text3); font-size: var(--fs-small); }
.rec-card { background: var(--raise); box-shadow: var(--card); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 9px; cursor: grab; outline: 0; transition: background var(--t-fast); }
.rec-card:hover { background: var(--hover); }
.rec-card:focus-visible { box-shadow: var(--card), inset 0 0 0 2px var(--blue); }
.rec-card-t { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.rec-who { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.rec-who span { font-size: var(--fs-caption); color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-card-m { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-card-m .rec-idle { background: var(--note-bg); border-color: var(--note-line); color: var(--warn-ink); }
.rec-out { background: color-mix(in oklab, var(--bad) 6%, var(--side)); }
.rec-why, .rec-dq-list { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); }
.rec-why li, .rec-dq-list li { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.rec-why b { font: 600 var(--fs-caption) var(--mono); color: var(--text2); }
.rec-dq-list span { color: var(--text3); font-size: var(--fs-caption); text-align: right; }
.rec-out > .btn { align-self: flex-start; margin-left: 4px; }
.rec-dq-ask { background: var(--raise); border-radius: 12px; box-shadow: var(--card); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.rec-reasons { display: flex; flex-wrap: wrap; gap: 6px; }

/* the candidates' table */
.rec-tw td:first-child { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.rec-stage { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

/* Open roles */
.rec-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-4); }
.rec-role { --pad-y: 16px; --pad-x: 18px; display: flex; flex-direction: column; gap: var(--sp-4); }
.rec-role .card-h .sw { margin-left: auto; }
.rec-role-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.rec-role-n b { display: block; font: 600 var(--fs-figure) / 1.1 var(--title); color: var(--head); font-variant-numeric: tabular-nums; }
.rec-role-n span { font-size: var(--fs-caption); color: var(--text2); }
.rec-role-s { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: var(--fs-small); color: var(--text2); }
.rec-role-s li { display: flex; align-items: center; gap: 7px; }
.rec-role-s b { margin-left: auto; font: 600 var(--fs-caption) var(--mono); color: var(--text); }
.rec-role-l { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding-top: var(--sp-3); min-width: 0; }
.rec-role-l code { flex: 1; min-width: 0; font: 500 var(--fs-caption) var(--mono); color: var(--text2); overflow-wrap: anywhere; }  /* the link a person copies shows whole */
.rec-funnel { --pad-y: 16px; --pad-x: 18px; display: flex; flex-direction: column; gap: 10px; }
.rec-fun-r { display: grid; grid-template-columns: 120px minmax(0, 1fr) 40px 40px; align-items: center; gap: 12px; font-size: var(--fs-small); }
.rec-fun-t { height: 22px; background: var(--chip); border-radius: 6px; overflow: hidden; }
.rec-fun-t i { display: block; height: 100%; border-radius: 6px; }
.rec-fun-r b { font: 600 var(--fs-small) var(--mono); text-align: right; } .rec-fun-r small { color: var(--text3); font: 500 var(--fs-caption) var(--mono); text-align: right; }
.rec-fun-f { margin: 4px 0 0; font-size: var(--fs-caption); }

/* a candidate's page */
.rec-sum { --pad-y: 18px; --pad-x: 20px; margin-bottom: var(--sp-4); }
.rec-sum-t { display: flex; align-items: center; gap: 14px; }
.rec-sum-r { margin: 0 0 6px; color: var(--text2); }
.rec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rec-step { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rec-step li { display: flex; flex-direction: column; gap: 7px; font-size: var(--fs-caption); color: var(--text3); }
.rec-step li i { height: 6px; border-radius: 3px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); }
.rec-step li.done { color: var(--text2); } .rec-step li.done i { background: var(--head); box-shadow: none; }
.rec-step li.cur { color: var(--text); font-weight: 600; } .rec-step li.cur i { background: var(--blue); box-shadow: none; }
.rec-pdq { --pad-y: 14px; --pad-x: 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-4); }
.rec-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: var(--sp-4); align-items: start; }
.rec-cols > div { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.rec-cols .card { --pad-y: 16px; --pad-x: 18px; }
.rec-fit-t { display: flex; align-items: center; gap: 16px; margin-bottom: var(--sp-4); }
.rec-fit-t p { margin: 4px 0 0; color: var(--text2); max-width: 62ch; }
.rec-tier { font: 600 var(--fs-card) var(--title); }
.rec-ring { --c: var(--line2); flex: none; width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--chip) 0); }
.rec-ring.ok { --c: var(--ok); } .rec-ring.warn { --c: var(--amber); } .rec-ring.bad { --c: var(--bad); }
.rec-ring b { width: 64px; height: 64px; border-radius: 50%; background: var(--raise); display: grid; place-items: center; font: 600 var(--fs-figure) var(--title); color: var(--head); font-variant-numeric: tabular-nums; }
.rec-crit { padding: 10px 0; border-top: 1px solid var(--line); }
.rec-crit-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-crit-h small { color: var(--text3); font-size: var(--fs-caption); }
.rec-crit-h .rec-by-c { background: var(--info-bg); border-color: var(--info-line); color: var(--wait-ink); }
.rec-pts { margin-left: auto; font: 600 var(--fs-small) var(--mono); color: var(--text2); }
.rec-bar { height: 6px; border-radius: 3px; background: var(--chip); margin-top: 8px; overflow: hidden; }
.rec-bar i { display: block; height: 100%; border-radius: 3px; background: var(--line2); }
.rec-bar i.ok { background: var(--ok); } .rec-bar i.warn { background: var(--amber); } .rec-bar i.bad { background: var(--bad); }
.rec-crit-w { margin: 6px 0 0; font-size: var(--fs-small); color: var(--text2); }
.rec-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--text2); }
.rec-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rec-legend i { width: 9px; height: 9px; border-radius: 3px; } .rec-legend i.ok { background: var(--ok); } .rec-legend i.warn { background: var(--amber); } .rec-legend i.bad { background: var(--bad); }
.rec-rate { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.rec-rate:first-of-type { border-top: 0; }
.rec-rate .seg button { min-width: 32px; font-family: var(--mono); }
.rec-n { padding: 10px 12px; border-radius: 10px; background: var(--chip); margin-bottom: 8px; }
.rec-n p { margin: 0 0 4px; white-space: pre-line; } .rec-n small { color: var(--text3); font-size: var(--fs-caption); }
.rec-notes form { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; } .rec-notes textarea { width: 100%; resize: vertical; }
.rec-info dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.rec-info dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; font-size: var(--fs-small); }
.rec-info dt { color: var(--text3); } .rec-info dd { margin: 0; overflow-wrap: anywhere; }
.rec-info h3 { margin: var(--sp-4) 0 4px; font: 600 var(--fs-small) var(--title); }
.rec-res { margin: 0; font-size: var(--fs-small); color: var(--text2); white-space: pre-line; }
.rec-act ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rec-act li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; font-size: var(--fs-small); }
.rec-act li .dot { margin-top: 6px; }
.rec-act small { display: block; color: var(--text3); font-size: var(--fs-caption); }

@media (max-width: 1100px) { .rec-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .rec-board { grid-template-columns: repeat(6, 82%); scroll-snap-type: x mandatory; } .rec-col { scroll-snap-align: start; }
  .rec-name { padding-block: 10px; margin-block: -10px; }  /* a finger's 40 px, its line where it stood */
  .rec-step li { font-size: 11px; } .rec-info dl div { grid-template-columns: 1fr; gap: 2px; }
  .rec-fun-r { grid-template-columns: 92px minmax(0, 1fr) 32px 32px; gap: 8px; }
}

/* static/pages/salesdash.css */
/* Sales dashboard (pages/salesdash.js): the Ads dashboard's big numbers and charts (addash.css, its .ax room), five
   numbers in one row, the two rate charts side by side where the room holds both, and the folded days. */
@container ax (min-width: 1001px) { .ax.sd .sd-bigs > .ax-big { grid-column: span 4; } }  /* five in one row; a smaller room takes addash.css's steps */
.sd-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sd-chart .ax-area { min-height: 240px; }
.sd-days { --pad-y: 8px; --pad-x: 8px; }
.sd-fold { gap: 6px; }
.sd-fold svg.i { transform: rotate(-90deg); transition: transform var(--t-fast) var(--ease); }
.sd-fold[aria-expanded="true"] svg.i { transform: none; }
.sd-fold small { color: var(--text3); font-weight: 400; }
.sd-days .tw { margin-top: 8px; }
.sd-days td.num, .sd-days th[scope="col"] { text-align: center; }
[data-page="salesdash"] .tb-meta { display: flex; gap: 10px; color: var(--text3); font-size: var(--fs-small); }
@container ax (width < 900px) { .sd-pair { grid-template-columns: minmax(0, 1fr); } }
@container ax (width < 520px) { .sd-chart .card-h small { display: none; } }

/* static/pages/salespages.css */
/* Sales pages (pages/salespages.js): only what differs from app.css's table; the page's own words under its rows. */
[data-page="salespages"] #sp-pages td small { display: block; color: var(--text2); font-size: var(--fs-caption); }
[data-page="salespages"] .sp-mono { font-family: var(--mono, ui-monospace, monospace); font-size: var(--fs-small); }
[data-page="salespages"] .sp-dim { color: var(--text3); }
[data-page="salespages"] .sp-act { text-align: right; white-space: nowrap; }
/* a long title wraps, so on a phone the table fits the screen with its Preview in view */
[data-page="salespages"] #sp-pages td.wrap { white-space: normal; }
/* a phone's fold row: a long address breaks inside its own cell, never over the next */
[data-page="salespages"] .tw-more dd { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
[data-page="salespages"] .sp-line { margin-top: var(--sp-3); color: var(--text2); font-size: var(--fs-small); }

/* Analytics (spaPanel): the call funnel between the head and the list. One bar a step, its length the step's share of
   the first step's visitors; the mark on the opt-in bar is the target. Under it, a row per ad and niche. */
[data-page="salespages"] .spa { margin: 0 0 var(--sp-5, 24px); padding: 20px 22px 0; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
[data-page="salespages"] .spa-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin: 0 0 18px; }
[data-page="salespages"] .spa-head h2 { margin: 0 0 2px; font-size: 17px; line-height: 1.3; color: var(--head); }
[data-page="salespages"] .spa-head p, [data-page="salespages"] .spa-none { margin: 0; color: var(--text2); font-size: var(--fs-small); }
[data-page="salespages"] .spa-none, [data-page="salespages"] .spa > .empty, [data-page="salespages"] .spa > .sk-box { margin-bottom: 20px; }
[data-page="salespages"] .spa b, [data-page="salespages"] .spa .num { font-variant-numeric: tabular-nums; }
[data-page="salespages"] .spa .num { text-align: right; }
[data-page="salespages"] .spa-bars { display: grid; gap: 10px; margin: 0 0 20px; }
[data-page="salespages"] .spa-bar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 56px 330px; align-items: center; gap: 14px; }
[data-page="salespages"] .spa-name { color: var(--text); font-size: 14px; }
[data-page="salespages"] .spa-track { position: relative; display: block; height: 22px; border-radius: 5px; background: var(--chip); }
[data-page="salespages"] .spa-fill { display: block; height: 100%; min-width: 3px; border-radius: 5px; background: var(--wait); }
[data-page="salespages"] .spa-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--head); }
[data-page="salespages"] .spa-bar b { text-align: right; font-size: 16px; color: var(--head); }
[data-page="salespages"] .spa-of { color: var(--text3); font-size: 12.5px; white-space: nowrap; }
[data-page="salespages"] .spa-of .pill { margin-left: 6px; }
[data-page="salespages"] .spa-ads { margin: 0 -22px; border-top: 1px solid var(--line); border-radius: 0; overflow-x: auto; }
[data-page="salespages"] .spa-ads td.wrap { white-space: normal; }
[data-page="salespages"] .spa-rate { font-weight: 700; }
[data-page="salespages"] .spa-rate.ok { color: var(--ok); }
[data-page="salespages"] .spa-rate.warn { color: var(--warn); }
/* a narrow window: the step's name and count on one line, its bar under them, then its rate */
@media (max-width: 860px) {
  [data-page="salespages"] .spa-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  [data-page="salespages"] .spa-track { grid-column: 1 / -1; grid-row: 2; }
  [data-page="salespages"] .spa-of { grid-column: 1 / -1; white-space: normal; }
}

/* static/pages/scope.css */
/* The scope bar (pages/scope.js): Find a shop, then the CSM and pod picks, Clear while anything is picked, and Mine.
   In a page's toolbar (.tb) it is one row that wraps; on its own (Messages' list) the find takes its own row. */
.scope-find { position: relative; } .scope-find .input { width: 100%; }
.scope-picks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 6px; }
.scope-picks select.input { min-width: 0; padding-right: 22px; text-overflow: ellipsis; }
.scope-mine { white-space: nowrap; } .scope-mine[aria-pressed="true"] { background: var(--sel); color: var(--head); box-shadow: inset 0 0 0 1px var(--line2); }
.scope-mine svg.i { width: 14px; height: 14px; }
.scope-clear[hidden] { display: none; }
/* On a computer the bar takes its own width, not a fixed share, so the page's switches and the read age keep the
   toolbar's row beside it; on a phone the find takes the row and the picks share the next one. */
.tb > .scope { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); flex: 0 1 auto; min-width: min-content; }
/* a page that shows its own row of chips (filterChips) puts Clear all there: the bar's Clear would say it twice */
[data-page]:has([data-fc-row]:not([hidden])) .scope-clear { display: none; }
/* widths, not flex bases: the bar's own width is the sum of its parts' widths, so it never wraps inside itself */
.tb > .scope .scope-find { flex: 0 1 auto; width: 240px; min-width: 180px; }
.tb > .scope .scope-picks { display: flex; flex: 0 1 auto; min-width: 0; }
.tb > .scope .scope-picks select.input { flex: 0 1 auto; width: 160px; min-width: 112px; }
@media (max-width: 760px) {
  .tb > .scope, .tb > .scope .scope-find, .tb > .scope .scope-picks { flex: 1 1 100%; }
  .tb > .scope .scope-picks select.input { flex: 1 1 0; }
}

/* static/pages/seo.css */
/* SEO (pages/seo.js): four tiles, the clients' table with a trend drawn per row and its two map columns, and one
   client's report: its tiles, two charts, LeadSnap's map rank grid and keyword rankings, its queries and what they say.
   The head, toolbar, tiles, cards and table are app.css's; every class here is the page's own (seo-). Figures are ink:
   a change, a rank's band and a trend carry the state's colour on their own mark. */
.page[data-page="seo"] { max-width: 1340px; }
.seo-range { font-size: var(--fs-small); font-weight: 600; color: var(--text2); white-space: nowrap; }
.seo-foot { display: flex; align-items: center; gap: 6px; margin: var(--sp-3) 0 0; } .seo-foot > svg.i { flex: none; width: 14px; height: 14px; }  /* the list's foot: each source's reading */

.seo-body { display: contents; }  /* the list below the toolbar, redrawn alone when the scope changes */
.seo-kpis { margin-bottom: var(--sp-4); }
.seo-kpi .v small { font-size: 16px; font-weight: 700; color: var(--text3); }
.seo-kpi .d { min-height: 18px; }
.seo-chg { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; } .seo-chg.up { color: var(--ok-ink); } .seo-chg.down { color: var(--bad-ink); }

.seo-card { border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); min-width: 0; }  /* the card recipe, with a head and a body of its own padding */
.seo-x { border: 0; border-radius: 0; background: none; box-shadow: none; }  /* a table inside a card: no box of its own */
.seo-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.seo-name a { color: var(--head); text-decoration: none; } .seo-name a:hover { text-decoration: underline; }
.seo-name small { display: block; color: var(--text3); font-weight: 500; font-size: var(--fs-caption); }
.seo-spark { display: block; }
/* a figure of 30 days: its trend, then the figure over its change */
.seo-fig { display: inline-flex; align-items: center; gap: 12px; } .seo-tw .seo-spark { width: 80px; height: auto; }
.seo-fig > span { display: grid; justify-items: end; min-width: 52px; } .seo-fig b { font-weight: 600; color: var(--head); } .seo-fig :is(.seo-chg, .muted) { font-size: 11.5px; }
/* the health score over a bar of 100 */
.seo-meter { display: block; width: 44px; height: 4px; margin: 0 0 4px auto; border-radius: 2px; background: linear-gradient(90deg, var(--head) var(--v), var(--line2) var(--v)); }
.seo-tw td:first-child { white-space: normal; min-width: 196px; }  /* a long name goes on two lines */
.seo-tag { --tc: #9a2fa3; display: inline-block; font-size: 11.5px; font-weight: 600; line-height: 20px; padding: 0 9px; border-radius: var(--r-pill); color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, transparent); white-space: nowrap; }
.seo-tag.base { --tc: var(--text3); } .seo-name .seo-tag { margin-left: 8px; }
:root[data-theme="dark"] .seo-tag:not(.base) { --tc: #d46ad8; }
.seo-warn { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--sp-4); padding: 9px 14px; border-radius: 10px; border: 1px solid var(--note-line); background: var(--note-bg); font-weight: 600; }
.seo-warn svg { color: var(--warn); }

/* the sources that are not connected: one card, each source's line, then Open API keys */
.seo-offs { margin-bottom: var(--sp-4); gap: 0; justify-items: start; }
.seo-off { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0 12px; width: 100%; }
.seo-off + .seo-off { padding-top: 12px; border-top: 1px solid var(--line); }
.seo-off svg { flex: none; color: var(--text3); margin-top: 3px; } .seo-off b { color: var(--head); } .seo-off p { margin: 2px 0 0; color: var(--text2); max-width: 70ch; }
.seo-offs > .btn { margin-left: 28px; }
.page[data-page="seo"] > .seo-off { margin-bottom: var(--sp-4); padding: 16px 18px; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
.seo-card .seo-off { padding: 16px; }

/* a client's report */
.seo-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--text3); font-size: var(--fs-small); text-decoration: none; } .seo-back:hover { color: var(--text); }
.seo-url { display: inline-flex; align-items: center; gap: 5px; vertical-align: -2px; } .seo-url svg { width: 13px; height: 13px; }
.seo-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
@media (min-width: 1101px) { .seo-with-profile:has(.seo-profile) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.seo-with-profile > .empty-note { grid-column: 1 / -1; }
.seo-profile .card-h { flex-wrap: wrap; }
.seo-profile .card-h small { white-space: nowrap; }
.seo-profile .card-h b { color: var(--text); font-variant-numeric: tabular-nums; }
.seo-card h3 { margin: 0; }
.seo-card .b { padding: 14px 16px; }
.seo-chart { display: block; width: 100%; } .seo-chart text { font-size: 10px; fill: var(--text3); } .seo-chart text.n { font-family: var(--mono); }
.seo-chart .rule { stroke: var(--line); } .seo-chart .cut { stroke: var(--line2); stroke-dasharray: 3 3; }
.seo-says p { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); } .seo-says p:last-child { border-bottom: 0; }

/* LeadSnap: a rank's band is a dot before its figure in the list and the rankings, and a filled circle on the grid */
.seo-heat:is(.g, .y, .r)::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; }
.seo-heat.g::before { background: var(--ok); } .seo-heat.y::before { background: var(--amber); } .seo-heat.r::before { background: var(--bad); }
.seo-ls { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-4); align-items: start; }
.seo-ls .seo-x { border-radius: 0 0 var(--r-card) var(--r-card); }
.seo-gridcard .b { display: grid; gap: 12px; }
.seo-kw { width: 100%; } .seo-kw select { width: 100%; min-width: 0; text-overflow: ellipsis; }
/* the grid over its map (seo.js seoGeo): a square of the card's width; tiles and points placed in % of the frame, a
   point's size (--d) in % of the width, so the whole map scales as one */
.seo-geo { position: relative; aspect-ratio: 1; width: 100%; overflow: hidden; border-radius: 12px; background: var(--chip); container-type: inline-size; isolation: isolate; }
.seo-tiles img { position: absolute; display: block; max-width: none; height: auto; filter: saturate(.35) contrast(.92); user-select: none; }
:root[data-theme="dark"] .seo-tiles img { filter: invert(1) hue-rotate(180deg) saturate(.3) brightness(.8) contrast(.9); }
.seo-geo span { position: absolute; width: calc(var(--d) * 1cqw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; display: grid; place-items: center;
  font: 700 calc(var(--d) * .4cqw) / 1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgb(0 0 0 / .35); cursor: default; }
.seo-geo .g, .seo-legend .g { background: var(--ok); color: #06140d; } .seo-geo .y, .seo-legend .y { background: var(--warn); color: #1a1200; }
.seo-geo .r, .seo-legend .r { background: var(--bad); color: #fff; } .seo-geo .n { background: var(--chip); color: var(--text3); }
.seo-geo .center, .seo-legend .ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--head), 0 2px 6px rgb(0 0 0 / .4); z-index: 1; }
.seo-osm { position: absolute; right: 0; bottom: 0; z-index: 2; padding: 1px 6px; border-top-left-radius: 6px; font-size: 10.5px; color: #333; background: rgb(255 255 255 / .82); text-decoration: none; }
.seo-osm:hover { text-decoration: underline; }
.seo-legend { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-caption); color: var(--text3); }
.seo-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 8px; vertical-align: -1px; } .seo-legend i:first-child { margin-left: 0; }
.seo-legend .ring { width: 7px; height: 7px; margin-right: 8px; background: var(--chip); }
.seo-at { margin: 0; font-size: var(--fs-caption); color: var(--text3); }
.seo-nogrid { margin: 0; padding: 28px 12px; text-align: center; color: var(--text3); border: 1px dashed var(--line2); border-radius: 12px; }
.seo-rk tbody tr { cursor: pointer; } .seo-rk tbody tr:hover { background: var(--hover); }
.seo-rk tbody tr[aria-current] { background: var(--chip); } .seo-rk tbody tr[aria-current] .seo-kwb { text-decoration: underline; text-underline-offset: 3px; }
.seo-kwb { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--head); text-align: left; cursor: pointer; }
.seo-kwb:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.seo-lsoff { margin-bottom: var(--sp-4); }

/* Blog posts (seo.js seoBlog): the card's head holds the weekly switch, one line says what it does; a row is its
   state, its title over its query, the live address and the day; the open post stands under its row */
.seo-blog { margin-bottom: var(--sp-4); }
.seo-bh { display: flex; align-items: center; border-bottom: 1px solid var(--line); } .seo-bh .card-h { flex: 1; border-bottom: 0; }
.seo-bh .card-h small { margin-left: 0; }
.seo-bsw { display: inline-flex; align-items: center; gap: 8px; padding-right: 16px; font-size: var(--fs-small); font-weight: 600; color: var(--head); white-space: nowrap; cursor: pointer; }
.seo-bsw:has(:disabled) { cursor: default; color: var(--text3); } .seo-bsw .sw:disabled { opacity: .55; }
.seo-bline, .seo-none { margin: 0; padding: 9px 16px; font-size: var(--fs-caption); color: var(--text3); border-bottom: 1px solid var(--line); }
.seo-none { border-bottom: 0; padding: 18px 16px; font-size: var(--fs-small); }
/* why the client's site cannot take a post (GET /api/seo/posts "ready"): the alarm tone, under the switch's line */
.seo-ready { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px; font-size: var(--fs-small); font-weight: 600; color: var(--bad-ink); background: var(--bad-bg); border-bottom: 1px solid var(--line); }
.seo-ready > svg.i { flex: none; width: 14px; height: 14px; }
.seo-prow { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto 64px; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.seo-prow:hover { background: var(--hover); } .seo-prow.open { background: var(--chip); }
.seo-prow:last-child, .seo-pbody:last-child { border-bottom: 0; border-radius: 0 0 var(--r-card) var(--r-card); }
.seo-prow > .pill { justify-self: start; }
.seo-ball { margin: 10px 16px 12px; }
.seo-pt { min-width: 0; } .seo-pt small { display: block; color: var(--text3); font-size: var(--fs-caption); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-pm { display: grid; justify-items: end; font-size: var(--fs-caption); } .seo-pm small { color: var(--text3); }
.seo-pd { text-align: right; color: var(--text3); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.seo-pbody { padding: 14px 16px 18px calc(16px + 190px + 14px); border-bottom: 1px solid var(--line); }
.seo-pdesc { margin: 0 0 10px; color: var(--text2); max-width: 72ch; }
.seo-md { max-width: 72ch; } .seo-md p { margin: 0 0 10px; } .seo-md h4 { margin: 14px 0 6px; color: var(--head); } .seo-md ul { margin: 0 0 10px; padding-left: 20px; }
.seo-md a::after { content: " (" attr(href) ")"; color: var(--text3); font-size: var(--fs-caption); }  /* each link's path, read before the Approve */
.seo-acts { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 12px; } .seo-acts .hint { margin-left: 4px; }
.seo-reason { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 12px; max-width: 72ch; } .seo-reason input { flex: 1; min-width: 0; }
.seo-faults { align-items: flex-start; font-weight: 400; } .seo-faults svg { margin-top: 3px; flex: none; } .seo-faults ul { margin: 4px 0 0; padding-left: 18px; }
.seo-why { margin: 0 0 12px; padding: 9px 14px; border-radius: 10px; background: var(--chip); max-width: 72ch; }
@media (max-width: 760px) {
  .seo-prow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; } .seo-prow > .pill { grid-column: 1 / -1; }
  .seo-pd { grid-row: 2; grid-column: 2; } .seo-pm { grid-column: 1 / -1; justify-items: start; } .seo-pbody { padding-left: 16px; }
  .seo-bh { flex-wrap: wrap; } .seo-bsw { padding: 0 16px 12px; }
}

@media (max-width: 1100px) { .seo-two, .seo-ls { grid-template-columns: minmax(0, 1fr); } }
/* a stacked grid card keeps its map at most 460 px, the keyword, legend and day beside it */
@media (min-width: 761px) and (max-width: 1100px) {
  .seo-gridcard .b { grid-template-columns: minmax(0, 460px) minmax(180px, 1fr); grid-template-rows: auto auto 1fr; align-items: start; column-gap: var(--sp-4); }
  .seo-gridcard :is(.seo-geo, .seo-nogrid) { grid-column: 1; grid-row: 1 / 4; }
  .seo-legend { flex-direction: column; gap: 6px; }
}
/* The list folds a hidden column under the client's name (seo.js seoFold): a laptop keeps Client, Clicks, Impressions
   and Health; a phone keeps Client and Clicks. The queries keep Query, Clicks and Pos. on a phone; the grid fits the
   card's width and the rankings scroll inside their own box */
.seo-fold, .seo-fold > div { display: none; }
.seo-fold { flex-wrap: wrap; gap: 2px 14px; margin: 4px 0 0; font-weight: 400; } .seo-fold > div { gap: 4px; align-items: baseline; }
.seo-fold dt { font-size: var(--fs-caption); font-weight: 600; color: var(--text3); }
.seo-fold dd { margin: 0; font-size: var(--fs-caption); font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--text); }
@media (max-width: 1300px) {
  .seo-tw :is(.seo-gsc, .seo-pos, .seo-map, .seo-mapoff, .seo-t3) { display: none; }
  .seo-fold, .seo-fold > div:is([data-f="gsc"], [data-f="pos"], [data-f="map"], [data-f="t3"]) { display: flex; }
}
@media (max-width: 760px) {
  .seo-foot { align-items: flex-start; } .seo-range { display: none; }  /* each figure's label says its 30 days */
  .seo-tw :is(.seo-imp, .seo-hl), .seo-x:not(.seo-rk) :is(th, td):is(:nth-child(3), :nth-child(4)) { display: none; }
  .seo-fold > div { display: flex; }
  :is(.seo-tw, .seo-x:not(.seo-rk)) td:first-child { white-space: normal; min-width: 0; }
  .seo-tw :is(th, td) { padding-left: 8px; padding-right: 8px; } .seo-av { display: none; } .seo-tw .seo-spark { width: 56px; }
  .seo-offs > .btn { margin-left: 0; }
}

/* static/pages/settereod.css */
/* The end-of-day forms' look, shared by Setter EOD report (pages/settereod.js) and Closer EOD report (pages/closereod.js):
   the careers page's application (Web/grow/careers.html, .apply and .form-card) in the panel's tokens, so it follows
   the theme. A centred title, a white card with a red top line, bold labels, roomy fields with a thick edge, choices
   as cards, and one big red button. The reports' table under it is the panel's own. */
.eod { max-width: 720px; margin: var(--sp-2) auto var(--sp-8); }
.eod-top { text-align: center; margin-bottom: var(--sp-5); }
.eod-top h2 { display: block; font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 6px; color: var(--head); }
.eod-top h2 em { font-style: normal; color: var(--red); }
.eod-top p { margin: 0 auto; max-width: 560px; color: var(--text2); font-size: 15px; }
.eod-top .eod-who { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--raise); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); }
.eod-who i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.eod-card { position: relative; overflow: hidden; background: var(--raise); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 34px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.05); padding: 34px 36px 30px; }
.eod-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--red), #ff8a86 60%, transparent); }
.eod-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.eod-form .eod-wide { grid-column: 1 / -1; }
.eod-f { display: block; }
.eod-f > span:first-child, .eod-q legend { display: block; font-size: 15px; font-weight: 700; color: var(--head); margin-bottom: 7px; }
.eod-f .req { color: var(--red); text-decoration: none; margin-left: 3px; }
.eod-f .hint { display: block; font-size: 13px; font-weight: 400; color: var(--text2); margin-top: 2px; }
.eod-f input, .eod-f textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--raise); padding: 12px 14px;
  border: 2px solid var(--line2); border-radius: 10px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.eod-f textarea { min-height: 96px; resize: vertical; }
.eod-f input::placeholder, .eod-f textarea::placeholder { color: var(--text3, #a8afb8); }
.eod-f input:focus, .eod-f textarea:focus, .eod-q label:has(input:focus-visible) { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
.eod-money { position: relative; display: block; }
.eod-money::before { content: "$"; position: absolute; left: 15px; top: 50%; translate: 0 -50%; font-size: 16px; font-weight: 700; color: var(--text2); }
.eod-money input { padding-left: 30px; }
.eod-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.eod-q .eod-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eod-q label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--line2); border-radius: 10px; background: var(--raise);
  cursor: pointer; font-size: 14.5px; line-height: 1.35; transition: border-color var(--t-fast), background-color var(--t-fast); }
.eod-q input { accent-color: var(--red); width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.eod-q label:has(input[value="done"]:checked) { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--bg)); }
.eod-q label:has(input[value="not yet"]:checked) { border-color: var(--red); background: color-mix(in srgb, var(--red) 9%, var(--bg)); }
.eod-q .eod-must { display: none; margin: 8px 0 0; font-size: 13.5px; font-weight: 700; color: var(--red); }
.eod-q:has(input[value="not yet"]:checked) .eod-must { display: block; }
.eod-send { width: 100%; height: auto; padding: 17px 24px; border-radius: 12px; font-size: 17px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 16%, transparent), 0 10px 26px color-mix(in srgb, var(--red) 35%, transparent); transition: background-color var(--t-fast); }
.eod-send:hover { background: var(--red2); }
.eod-foot { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--text2); }
@media (max-width: 640px) {
  .eod-card { padding: 24px 18px 22px; }
  .eod-form, .eod-q .eod-opts { grid-template-columns: 1fr; }
}

/* static/pages/sms.css */
/* SMS Rebilling (pages/sms.js): one row per client, six columns; a calm banner over it counts the active clients whose
   rebilling needs someone, with app.css's chip to keep only those rows. A state stands on its tag or its dot, never
   on a figure or a row. On a phone a row is the client's name over its values, each led by its column's name. */
/* the option hues of the roster's tags that are no state (roster.js, RO_HUE) */
.sms { --violet: #5b3fc4; --orange: #a8480a; --magenta: #9a2fa3; --indigo: #3d4fc9; }
:root[data-theme="dark"] .sms { --violet: #a78bfa; --orange: #ff8a3d; --magenta: #d46ad8; --indigo: #8b9aff; }
#sms-read { white-space: nowrap; }

.sms-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: var(--sp-4); border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
.sms-banner > svg.i { flex: none; color: var(--warn); }
.sms-banner p { margin: 0; flex: 1; min-width: 0; } .sms-banner b { font-weight: 600; color: var(--head); }
.sms-banner small { color: var(--text2); font-size: var(--fs-small); margin-left: 6px; }
.sms-banner .chip svg.i { width: 14px; height: 14px; }

.sms-table { border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); overflow: hidden; }  /* app.css's card box */
/* five columns and the row's chevron; every track may shrink, so no column is ever clipped */
.sms-tr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.35fr) 16px; gap: var(--sp-4); align-items: center; min-height: var(--row-h); padding: 8px 14px; color: inherit; text-decoration: none; }
.sms-tr + .sms-tr { border-top: 1px solid var(--line); }
/* the column heads, as app.css's table head */
.sms-head { min-height: 0; padding: 10px 14px; font-size: var(--fs-caption); font-weight: 600; color: var(--text3); }
a.sms-tr { transition: background var(--t-fast); } a.sms-tr:hover { background: var(--hover); }
a.sms-tr:focus-visible { outline-offset: -2px; border-radius: 0; }
a.sms-tr > svg.i { width: 16px; height: 16px; color: var(--text3); }
a.sms-tr:hover > svg.i { color: var(--text); }
.sms-tr > span { min-width: 0; }
.sms-nm { display: flex; align-items: center; gap: 10px; } .sms-nm > span { display: grid; min-width: 0; }
.sms-nm b { font-weight: 600; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sms-nm small { font-size: var(--fs-caption); color: var(--text3); }
.sms-av { font: 700 9.5px var(--sans); }
/* the balance, and the watch's rule under it */
.sms-r, .sms-bal { text-align: right; }
.sms-bal { display: grid; justify-items: end; }
.sms-bal small { font-size: var(--fs-caption); color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sms-num { font-size: var(--fs-small); font-variant-numeric: tabular-nums; color: var(--text); }
/* a balance under the alert line: the figure in ink, a dot in the failure's colour before it */
.sms-num.low { font-weight: 600; } .sms-num .dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
.sms-nil { color: var(--text3); font-size: var(--fs-small); }
.sms-warn { color: var(--warn-ink); font-weight: 600; }
.sms-next { display: flex; align-items: center; gap: 7px; font-size: var(--fs-small); color: var(--text2); }
.sms-next .dot { flex: none; }
.sms-plan { display: flex; align-items: center; gap: 8px; margin: 0 2px var(--sp-3); color: var(--text2); font-size: var(--fs-small); }
.sms-plan svg.i { flex: none; width: 15px; height: 15px; color: var(--text3); }
.sms-plan b { color: var(--text); font-weight: 600; }
.sms-foot { margin: 12px 2px 0; color: var(--text3); font-size: var(--fs-small); }

/* an A2P or SMS rebilling value: one tag in its option's hue, led by a dot, by app.css's .pill recipe: the hue (--tc)
   at --chip-mix for the fill, its ink (--ti) for the words; the four state hues take app.css's inks */
.sms-tg { --tc: var(--text3); --ti: var(--tc); display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: var(--fs-caption); font-weight: 600; line-height: 22px; padding: 0 10px 0 9px; border-radius: var(--r-pill); color: var(--ti); background: color-mix(in srgb, var(--tc) var(--chip-mix), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sms-tg::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.sms-h-green { --tc: var(--ok); --ti: var(--ok-ink); } .sms-h-yellow { --tc: var(--warn); --ti: var(--warn-ink); } .sms-h-red { --tc: var(--bad); --ti: var(--bad-ink); } .sms-h-blue { --tc: var(--wait); --ti: var(--wait-ink); }
.sms-h-violet { --tc: var(--violet); } .sms-h-orange { --tc: var(--orange); } .sms-h-magenta { --tc: var(--magenta); } .sms-h-indigo { --tc: var(--indigo); }

.sms-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin-bottom: var(--sp-4); border: 1px solid var(--note-line); background: var(--note-bg); border-radius: 10px; }
.sms-note svg { color: var(--warn); margin-top: 3px; } .sms-note .btn { margin-left: auto; flex: none; }
.sms-note p { margin: 0; color: var(--text2); } .sms-note b { color: var(--text); } .sms-note small { display: block; color: var(--text3); overflow-wrap: anywhere; }

/* a laptop: A2P and SMS rebilling stack in one column, so each tag keeps its words */
@media (max-width: 1240px) and (min-width: 901px) {
  .sms-tr { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, .95fr) minmax(0, 1.25fr) 16px; grid-template-areas: "nm a2p bal next go" "nm sms bal next go"; row-gap: 4px; }
  .sms-tr > :nth-child(1) { grid-area: nm; } .sms-tr > :nth-child(2) { grid-area: a2p; } .sms-tr > :nth-child(3) { grid-area: sms; }
  .sms-tr > :nth-child(4) { grid-area: bal; } .sms-tr > :nth-child(5) { grid-area: next; } .sms-tr > :nth-child(6) { grid-area: go; }
  .sms-head > :nth-child(3) { display: none; } .sms-head > :nth-child(2)::after { content: " · SMS rebilling"; }
}
@media (max-width: 900px) {
  /* a phone's row: the name and group, then the two tags and the balance on one line, then what waits; empty cells hide */
  .sms-tr.sms-head { display: none; }
  .sms-tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; position: relative; padding: 12px 38px 12px 14px; }
  .sms-nm, .sms-next { flex-basis: 100%; }
  .sms-bal { margin-left: auto; }
  .sms-bal small { display: none; }
  a.sms-tr > svg.i { position: absolute; right: 14px; top: 50%; translate: 0 -50%; }
  .sms-tr > [data-l]:has(> .sms-nil:only-child) { display: none; }
  #sms-read { white-space: normal; }
  .sms-banner { flex-wrap: wrap; } .sms-banner small { display: block; margin: 2px 0 0; }
}

/* static/pages/smscode.css */
/* SMS code (pages/smscode.js): the texts' card under the number's, one row a text: its code with Copy at the left,
   who sent it, when and its words at the right; a narrow card stacks each row. The number's card is integrations.css's */
[data-page="smscode"] h2 { margin: 0 0 var(--sp-2); }
/* the Texts heading, with the read's age and Read again at its end, inside the column */
.smscode-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-1) var(--sp-3); max-width: 680px; margin-bottom: var(--sp-2); }
.smscode-head h2 { margin: 0; }
.smscode-read { display: flex; align-items: center; gap: var(--sp-2); color: var(--text3); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.smscode-read svg.i { width: 14px; height: 14px; }
.smscode-texts { --pad-y: 0; --pad-x: 0; max-width: 680px; margin-bottom: var(--sp-6); container-type: inline-size; }
.smscode-texts > .empty { margin: var(--sp-4); }
.smscode-list { list-style: none; margin: 0; padding: 0; }
.smscode-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--sp-4); align-items: start; padding: var(--sp-4); }
.smscode-row + .smscode-row { border-top: 1px solid var(--line); }
.smscode-code { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.smscode-code svg.i { width: 14px; height: 14px; }
.smscode-none { color: var(--text3); font-size: var(--fs-small); padding-top: var(--sp-1); }
.smscode-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-2); }
.smscode-meta b { color: var(--head); font-weight: 600; font-variant-numeric: tabular-nums; }
.smscode-meta time { color: var(--text3); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.smscode-text p { margin: var(--sp-1) 0 0; color: var(--text2); overflow-wrap: anywhere; }
@container (max-width: 460px) {
  .smscode-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .smscode-row .smscode-code { order: 1; flex-direction: row; flex-wrap: wrap; align-items: center; }
}

/* static/pages/social.css */
/* Social Posts (pages/social.js): four tiles and the clients' table; then one client: its path of five states, its Now card, its
   month as a calendar and the month's posts, or one post's form, beside it. The owner's mock sets the look. A hue
   class (h-<hue>) sets --tc, the colour of a status, on a pill, a tile's number, a calendar chip. */
.page[data-page="social"] { max-width: 1340px; --orange: #a8480a; }
:root[data-theme="dark"] .page[data-page="social"] { --orange: #ff8a3d; }
.page[data-page="social"] :is(.h-green, .h-yellow, .h-red, .h-blue, .h-orange, .h-grey) { --tc: var(--text3); }
.page[data-page="social"] .h-green { --tc: var(--ok-ink); } .page[data-page="social"] .h-yellow { --tc: var(--warn-ink); } .page[data-page="social"] .h-red { --tc: var(--bad-ink); }
.page[data-page="social"] .h-blue { --tc: var(--wait-ink); } .page[data-page="social"] .h-orange { --tc: var(--orange); }

.social-kpis { margin-bottom: 16px; }
.social-kpi .l { display: flex; align-items: center; gap: 7px; }

.social-card, .social-form { border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); min-width: 0; }  /* the card recipe (app.css .card) */
.social-tw td { padding: 9px 12px; }
/* Next post: as much of its text as the column holds, cut at the column's edge; the whole text is the cell's title.
   The floor keeps the text readable where the table scrolls sideways (a narrow window; a phone hides the column). */
.social-tw td.social-next { max-width: 0; min-width: 280px; width: 40%; overflow-wrap: anywhere; text-wrap: pretty; }  /* the next post reads whole: it wraps in its column */
.social-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.social-name a { color: var(--head); text-decoration: none; } .social-name a:hover { text-decoration: underline; }
.social-pill { font: 600 11.5px/22px var(--sans); padding: 0 10px; border-radius: 999px; color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent); white-space: nowrap; }

/* one client: the path of five named states, the Now card, the More menu */
.social-path { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 6px; }
.social-path li { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); color: var(--text3); font-weight: 600; font-size: 13px; white-space: nowrap; }
.social-path span { overflow: hidden; text-overflow: ellipsis; }
.social-path i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 11px var(--sans); background: var(--chip); flex: none; }
.social-path i svg { width: 12px; height: 12px; stroke-width: 2.4; }
.social-path .done i { background: var(--ok-bg); color: var(--ok); }
.social-path .cur { border-color: var(--head); color: var(--head); } .social-path .cur i { background: var(--head); color: var(--bg); }
.social-path .cur.ask { border-color: var(--bad-ink); color: var(--bad-ink); } .social-path .cur.ask i { background: var(--bad-ink); }
.social-now { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); border-left: 3px solid var(--head); }
.social-now.bad { border-left-color: var(--bad-ink); }
.social-now .who { font: 700 11px/22px var(--sans); text-transform: uppercase; letter-spacing: .04em; padding: 0 9px; border-radius: 999px; background: var(--chip); color: var(--head); white-space: nowrap; justify-self: start; }
.social-now .say { display: grid; gap: 6px; } .social-now .say > p:not([class]) { margin: 0; font-size: 13.5px; color: var(--text); }
.social-now .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.social-more { position: relative; } .social-more summary { list-style: none; cursor: pointer; } .social-more summary::-webkit-details-marker { display: none; }
.social-more summary svg { width: 13px; height: 13px; rotate: 90deg; } .social-more[open] summary svg { rotate: -90deg; }
.social-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 260px; display: grid; gap: 2px; padding: 6px; border-radius: 12px; background: var(--raise); box-shadow: var(--card), 0 8px 24px rgb(0 0 0 / .12); border: 1px solid var(--line); }
.social-menu > button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 13px; color: var(--text); } .social-menu > button:hover { background: var(--chip); }
.social-menu > button svg { width: 14px; height: 14px; } .social-menu > .danger { color: var(--bad-ink); }
.social-menu label { display: grid; gap: 4px; padding: 8px 10px; font-size: 12px; color: var(--text3); }
.social-who-ph { display: none; }
.social-who { font-weight: 600; color: var(--head); white-space: nowrap; }

/* one client */
.social-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--text3); font-size: 13px; text-decoration: none; } .social-back:hover { color: var(--text); }

.social-work { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.social-card h3 { margin: 0; padding: 10px 12px 10px 16px; }  /* app.css's .card-h, with room for the 28 px month buttons */
.social-card h3 span { margin-left: auto; font: 500 12px var(--sans); letter-spacing: 0; color: var(--text3); }
.social-card h3 .btn { width: 30px; height: 28px; padding: 0; justify-content: center; } .social-card h3 .fwd svg { rotate: 180deg; }
.social-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 12px; }
.social-cal .wd { font-size: var(--fs-caption); font-weight: 600; color: var(--text3); padding: 0 4px 2px; }
.social-cal .day { min-height: 92px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 5px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.social-cal .day.none { background: none; border-color: transparent; }
.social-cal .day.today { border-color: var(--head); }
.social-cal .add { display: flex; align-items: center; justify-content: space-between; padding: 1px 3px; border-radius: 6px; color: var(--text3); font-size: 12px; transition: background var(--t-fast), color var(--t-fast); }
.social-cal .add svg { width: 12px; height: 12px; color: var(--text3); } .social-cal .add:hover { background: var(--chip); color: var(--text); } .social-cal .add:hover svg { color: var(--text); }
.social-cal .today .add b { color: var(--head); }
.social-chip { display: flex; align-items: center; gap: 5px; text-align: left; font-size: 11.5px; line-height: 1.3; padding: 4px 6px; border-radius: 7px; background: color-mix(in srgb, var(--tc) 12%, transparent); color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; transition: background var(--t-fast); }
.social-chip:hover { background: color-mix(in srgb, var(--tc) 20%, transparent); }
.social-chip i { font: 700 9.5px var(--mono); color: var(--tc); flex: none; }
.social-chip span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.social-side { display: grid; gap: 10px; }
.social-post .in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.social-post { display: block; width: 100%; text-align: left; padding: 12px 14px; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; transition: border-color var(--t-fast); }
.social-post:hover { border-color: var(--line2); }
.social-post .when { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .social-post .when b { font-size: 13px; color: var(--head); }
.social-post .t { color: var(--text3); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.social-post .img, .social-img { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); } .social-post .img svg, .social-img svg { width: 13px; height: 13px; }
.social-form { display: grid; gap: 12px; padding: 16px; }
.social-form h3 { margin: 0; font: 800 15px/1.3 var(--title); letter-spacing: -.01em; color: var(--head); }
.social-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-form .acts { display: flex; gap: 8px; flex-wrap: wrap; } .social-form .del { margin-left: auto; }

/* Create posts for the month: the brief's form, then the month's card of drawn posts (social.js, soMake and soMonth) */
.social-hint { margin: -4px 0 0; font-size: 12.5px; color: var(--text3); }
.social-drop { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px dashed var(--line2); border-radius: 10px; color: var(--text3); font-size: 12.5px; cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast); }
.social-drop:hover, .social-drop:focus-within { border-color: var(--head); color: var(--text); }
.social-drop svg { flex: none; width: 18px; height: 18px; }
.social-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }  /* the whole box takes a click or a drop */
.social-colors input { flex: none; width: 44px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); cursor: pointer; }
.social-month { border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); padding: 0 0 14px; display: grid; gap: 12px; }
.social-month h3 { margin: 0; padding: 12px 16px 0; display: flex; align-items: baseline; font: 800 15px/1.3 var(--title); color: var(--head); }
.social-month h3 span { margin-left: auto; font: 500 12px var(--sans); color: var(--text3); }
.social-month > :not(h3) { margin: 0 16px; }
.social-month h4 { margin: 4px 16px 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: baseline; font: 700 13.5px/1.3 var(--title); color: var(--head); }
.social-month h4:first-of-type { border-top: 0; padding-top: 0; }
.social-month h4 span { margin-left: auto; font: 500 12px var(--sans); color: var(--text3); }
.social-month h4 .btn { margin-left: 12px; height: 28px; padding: 0 10px; font-size: 12.5px; }
/* a month's run, step by step (soSteps): the mark, the step's name, what it does now, its time at the end */
.social-now .say { container-type: inline-size; }
.social-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.social-steps li { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px; padding: 6px 0; font-size: 13px; color: var(--text3); }
.social-steps li + li { border-top: 1px solid var(--line); }
.social-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; align-self: center; font: 800 11px var(--sans); font-style: normal; background: var(--chip); }
.social-steps i svg { width: 12px; height: 12px; stroke-width: 2.4; }
.social-steps b { font-weight: 600; color: var(--text); white-space: nowrap; }
.social-steps time { color: var(--text3); white-space: nowrap; }
.social-steps .done i { background: var(--ok-bg); color: var(--ok-ink); }
.social-steps .running i { background: var(--head); color: var(--bg); } .social-steps .running span { color: var(--text); }
.social-steps .slow i { background: var(--warn-bg); color: var(--warn-ink); } .social-steps .slow span, .social-steps .slow time { color: var(--warn-ink); }
.social-steps .failed i { background: var(--bad-bg); color: var(--bad-ink); } .social-steps .failed span, .social-steps .failed b { color: var(--bad-ink); }
@container (max-width: 520px) { .social-steps li { grid-template-columns: 22px minmax(0, 1fr) auto; } .social-steps span { grid-column: 2 / -1; } .social-steps time { grid-area: 1 / 3; } }
/* with the client: its review link to copy or open, and the answer by hand for a client who answered by text */
.social-link { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.social-link .input { flex: 1; min-width: 0; font: 500 12.5px var(--mono); color: var(--text2); background: var(--panel); }
.social-link .btn { flex: none; }
.social-by { align-self: center; font-size: 12.5px; color: var(--text3); }
/* Text it to the client: the text and whom it reaches, in the Now card */
.social-sms { display: grid; gap: 8px; max-width: 640px; margin-top: 4px; }
.social-sms textarea { resize: vertical; min-height: 68px; }
.social-sms .acts { display: flex; gap: 8px; }
.social-fail .link { margin-left: 8px; padding: 0; border: 0; background: none; color: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.social-month h3 .btn { margin-left: 12px; height: 28px; padding: 0 10px; font-size: 12.5px; }
/* a post's answer from the client, under its caption: a change asked with the note, an approval, the round before's note */
.social-said { display: grid; gap: 2px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; line-height: 1.45; }
.social-said small { font-weight: 700; font-size: 11.5px; } .social-said q { quotes: none; overflow-wrap: anywhere; }
.social-said.ask { background: var(--warn-bg); color: var(--text); } .social-said.ask small { color: var(--warn-ink); }
.social-said.ok { display: flex; align-items: center; gap: 6px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; }
.social-said.ok svg { width: 13px; height: 13px; stroke-width: 2.4; }
.social-said.was { border: 1px dashed var(--line2); color: var(--text3); } .social-said.was small { color: var(--text3); }
.social-run, .social-fail { display: flex; gap: 8px; font-size: 13px; color: var(--text3); } .social-fail { color: var(--bad-ink); }
.social-run svg, .social-fail svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
/* Create posts: the logo and website it reads, and each field's source under it */
.social-brand { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.social-brand .social-logo { flex: none; width: 44px; height: 44px; }
.social-brand span { display: grid; gap: 2px; min-width: 0; } .social-brand b { color: var(--head); }
.social-brand small { color: var(--text3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-src { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text3); }
.social-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-color { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; } .social-color span { display: grid; min-width: 0; }
.social-color .social-src { margin-top: 0; }
/* the look: Auto or a look, each a miniature post in the client's two colours (--c1, --c2), the picked one outlined */
.social-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.social-look { position: relative; display: grid; justify-items: center; gap: 6px; padding: 8px 4px 7px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 12px; color: var(--text2); cursor: pointer; transition: border-color var(--t-fast); }
.social-look:hover { border-color: var(--line2); }
.social-look:has(input:checked) { border-color: var(--head); box-shadow: inset 0 0 0 1px var(--head); color: var(--head); }
.social-look:has(input:focus-visible) { outline: 2px solid var(--head); outline-offset: 2px; }
.social-look input { position: absolute; opacity: 0; pointer-events: none; }
.social-look b { font-weight: 600; }
.social-look-line { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text2); }
.mini { position: relative; width: 44px; height: 55px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.mini::before, .mini::after { content: ""; position: absolute; }
.mini::after { left: 5px; right: 5px; bottom: 7px; height: 16px; background: linear-gradient(#fff 0 0) 0 0 / 100% 3px no-repeat, linear-gradient(#fff 0 0) 0 6px / 72% 3px no-repeat, linear-gradient(var(--c2) 0 0) 0 12px / 42% 4px no-repeat; }
.mini-auto { background: var(--chip); } .mini-auto::after { display: none; }
.mini-auto::before { inset: 13px 8px; border-radius: 50%; background: conic-gradient(var(--c1) 0 25%, var(--c2) 0 50%, var(--c1) 0 75%, var(--c2) 0); }
.mini-garage { background: linear-gradient(#5b6069 0 42%, #111 62%); }
.mini-garage::before { left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--c2) 0 3px, #111 3px 6px); }
.mini-premium { background: linear-gradient(#8f97a1 0 18%, color-mix(in srgb, var(--c1) 28%, #07080c) 50%); }
.mini-premium::before { left: 5px; top: 22px; width: 15px; height: 4px; border-radius: 2px; background: var(--c2); }
.mini-clean { background: linear-gradient(#a9b0b9 0 38%, var(--c1) 38% 42%, #fff 42%); }
.mini-clean::after { background: linear-gradient(#1b1d22 0 0) 0 0 / 100% 3px no-repeat, linear-gradient(#1b1d22 0 0) 0 6px / 66% 3px no-repeat, linear-gradient(var(--c1) 0 0) 0 12px / 42% 4px no-repeat; }
.mini-bold { background: var(--c1); }
.mini-bold::before { inset: 0 0 auto 0; height: 50%; background: #a9b0b9; clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%); }
.mini-bold::after { background: linear-gradient(#fff 0 0) 0 0 / 100% 4px no-repeat, linear-gradient(#fff 0 0) 0 7px / 80% 4px no-repeat, linear-gradient(#fff 0 0) 0 13px / 40% 3px no-repeat; }
.mini-classic { background: #f4efe4; box-shadow: inset 0 0 0 3px #f4efe4, inset 0 0 0 4px var(--c1); }
.mini-classic::before { left: 8px; right: 8px; top: 8px; height: 17px; background: #a9b0b9; }
.mini-classic::after { left: 9px; right: 9px; background: linear-gradient(#2a221b 0 0) 50% 0 / 100% 3px no-repeat, linear-gradient(#2a221b 0 0) 50% 6px / 70% 3px no-repeat, linear-gradient(var(--c1) 0 0) 50% 12px / 46% 3px no-repeat; }
/* the look a drawn month was made in, and why */
.social-look-used { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: var(--text3); }
.social-look-used svg { flex: none; width: 14px; height: 14px; align-self: center; } .social-look-used b { color: var(--text); font-weight: 600; }
.social-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
/* a drawn post as it will look on its channel: the client's face and name, the caption, the image (social.js, soMonth) */
.social-pv { display: grid; align-content: start; gap: 8px; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.social-pv.on { border-color: color-mix(in srgb, var(--ok-ink) 45%, var(--line)); }
.social-pv header { display: flex; align-items: center; gap: 8px; min-width: 0; } .social-pv header > span { display: grid; min-width: 0; flex: 1; }
.social-pv header b { font-size: 12.5px; color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .social-pv header small { font-size: 11.5px; color: var(--text3); }
.social-pv .pv-av { flex: none; width: 30px; height: 30px; } .social-pv .social-pill { font-size: 10.5px; padding: 0 7px; line-height: 19px; }
.social-pv .pv-t { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.social-pv .pv-img { display: block; } .social-pv img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--chip); transition: opacity var(--t-fast); }
.social-pv .pv-img:hover img { opacity: .88; }
.social-check { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border-radius: 8px; border: 1px solid var(--line2); font: 600 12.5px var(--sans); color: var(--text); transition: background var(--t-fast), border-color var(--t-fast); }
.social-pv-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.social-check svg { width: 13px; height: 13px; stroke-width: 2.4; color: var(--text3); } .social-check:hover { background: var(--chip); }
.social-check[aria-pressed="true"] { background: var(--ok-bg); border-color: transparent; color: var(--ok-ink); } .social-check[aria-pressed="true"] svg { color: var(--ok); }
/* Create posts: photos or a Drive folder, one required field; with neither, it is named in place */
.social-photos { display: grid; gap: 6px; }
.social-need { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--bad-ink); } .social-need svg { width: 13px; height: 13px; }
.social-photos.bad .social-drop, .social-photos.bad .input { border-color: var(--bad-ink); }
.social-month .acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text3); }
.social-art { width: 100%; border-radius: 10px; }

@media (max-width: 1100px) { .social-work { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  /* A phone: the list keeps Client, Status and the month's posts; the row opens the rest. */
  .social-tw :is(th, td):is(:nth-child(3), :nth-child(5), :nth-child(6)) { display: none; } .social-who-ph { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text3); }
  .social-path span { display: none; } .social-path .cur span { display: inline; } .social-path li { flex: 0 0 auto; } .social-path li.cur { flex: 1; }
  .social-now { grid-template-columns: 1fr; } .social-now .acts { justify-content: stretch; } .social-now .acts .btn { flex: 1; justify-content: center; }
  .social-link { flex-wrap: wrap; } .social-link .input { flex-basis: 100%; } .social-link .btn { flex: 1; justify-content: center; }
  .social-by { flex-basis: 100%; }
  .social-arts { grid-template-columns: 1fr; }
  .social-tw :is(th, td) { padding-left: 6px; padding-right: 6px; }
  .social-tw :is(td:first-child, th.num) { white-space: normal; }
  .social-tw .social-av { display: none; }
  .social-cal { gap: 3px; padding: 8px; } .social-cal .day { min-height: 64px; padding: 3px; } .social-chip { font-size: 0; padding: 4px; } .social-chip i { font-size: 9.5px; }
}
/* Replace image under a drawn post's image (pages/social-post.js): the native file input stays the focus, its label the button */
.social-swap { display: grid; gap: 8px; }
.social-swap-do { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.social-swap-do .btn svg { width: 14px; height: 14px; }
.social-swap-do .social-src { margin-top: 0; flex: 1 1 180px; }
.social-swap-do input:focus-visible + .btn { outline: 2px solid var(--blue); outline-offset: 2px; }
.social-swap-do input:disabled + .btn { opacity: .6; pointer-events: none; }
/* Ask for a change (pages/social-post.js, soAsk): the words, Write it again, its busy line, then the draft */
.social-ask { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.social-ask textarea { height: auto; min-height: calc(var(--ctl-h) * 1.6); padding: 8px 11px; field-sizing: content; max-height: 12lh; resize: vertical; }
.social-ask textarea[readonly] { color: var(--text2); background-color: var(--panel); }
.social-ask-do { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.social-ask-do .btn svg { width: 14px; height: 14px; }
.social-ask-do .social-src { margin-top: 0; flex: 1 1 180px; }
.social-ask-busy { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-small); color: var(--wait-ink); }
.social-ask-busy:empty { display: none; }
.social-ask-busy svg.i { flex: none; width: 15px; height: 15px; }  /* a still mark, as nothing in the panel loops (motion.css) */
.social-draft { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px dashed var(--wait-ink); background: var(--wait-bg); }
.social-draft h4 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 var(--fs-small)/1.3 var(--sans); color: var(--head); }
.social-draft-tag { font-size: var(--fs-caption); font-weight: 600; color: var(--wait-ink); }
.social-draft-text { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }

/* static/pages/tasks.css */
/* Tasks and ClickUp (Work), Client requests (Clients), and the pieces the Work pages share (tasks.js): the owner's cards,
   tabs, tables, forms, avatars and department dots, in the frame's tokens. My Day and Inbox use these beside their own sheet. */
:root { --tasks-violet: #6d4fd8; }
:root[data-theme="dark"] { --tasks-violet: #a78bfa; }
.pill.tasks-violet { color: var(--tasks-violet); background: color-mix(in srgb, var(--tasks-violet) var(--chip-mix), transparent); }
.pill.tasks-nodot::before { content: none; }
.tasks-hint { color: var(--text3); font-size: var(--fs-small); }
/* The drawer's hand-offs: where the task came from, and the tasks it handed on, one line each */
.tasks-hands { display: grid; gap: 6px; margin-top: 12px; }
.tasks-kids { list-style: none; margin: 0; padding: 0 14px; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); font-size: var(--fs-small); }
/* a hand-off: its name on the left, the agent that has it and its state on the right */
.tasks-kids li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; padding: 9px 0; }
.tasks-kids li + li { border-top: 1px solid var(--line); } .tasks-kids li > a { min-width: 0; flex: 1 1 220px; }
.tasks-kids li > span { display: inline-flex; gap: 8px; align-items: center; color: var(--text3); white-space: nowrap; }
.tasks-hands .tasks-dh { margin: 8px 0 0; }
.tasks-av.none { background: var(--chip); color: var(--text3); }
.tasks-dept { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); white-space: nowrap; }
.tasks-dept i, .tasks-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
/* a card of the Work pages is app.css's `.card` with its `.card-h` head; `.tasks-card` lets the head and the rows run to its edges */
.tasks-card { --pad-y: 0px; --pad-x: 0px; gap: 0; min-width: 0; }
.tasks-card-b { padding: 14px 16px; }
/* .tasks-input: My Day's own fields still use it (Tasks, ClickUp and Onboarding are on app.css .input) */
.tasks-input { height: var(--ctl-h); border: 1px solid var(--line2); background: var(--raise); border-radius: var(--r-ctl); padding: 0 10px; outline: 0; min-width: 0; font: inherit; color: var(--text); }
.tasks-input:focus-visible { border-color: var(--blue); box-shadow: var(--ring); }
.tasks-input::placeholder { color: var(--text3); }
select.tasks-input { padding-right: 6px; }
/* a form of the Work pages, two to a row: Tasks' and ClickUp's cells are app.css .field; My Day's labels are bare */
.tasks-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-3); padding: var(--sp-4); }
.tasks-form label:not(.field-l, .tasks-drop) { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.tasks-form .tasks-input { width: 100%; }
.tasks-form .tasks-wide, .tasks-form .tasks-acts { grid-column: 1 / -1; }
.tasks-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tasks-new { margin-bottom: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* New task (mock A): the kind's seg over the fields; what and the client side by side; details beside the files */
.tasks-form .tasks-half { grid-column: span 2; min-width: 0; }
.tasks-newh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tasks-newh small { font-size: var(--fs-caption); }
.tasks-flabel { display: block; font-size: var(--fs-caption); font-weight: 600; color: var(--text3); margin-bottom: 6px; }
.tasks-combo { position: relative; }
.tasks-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); padding: 4px; border: 1px solid var(--line2); border-radius: 10px; background: var(--raise); box-shadow: 0 10px 28px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06); }
.tasks-pop [role=listbox] { max-height: 264px; overflow-y: auto; }
.tasks-pop [role=option] { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: 7px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.tasks-pop [role=option] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tasks-pop [role=option] small { flex: none; color: var(--text3); font-size: 12px; }
.tasks-pop [role=option]:hover { background: var(--hover); } .tasks-pop [role=option][aria-selected="true"] { background: var(--sel); }
.tasks-pop mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.tasks-pop .tasks-optnone { color: var(--text2); border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; margin-top: 2px; }
.tasks-lbnone { margin: 0; padding: 8px 9px; color: var(--text3); font-size: 13px; }
.tasks-lbf { display: flex; gap: 12px; align-items: center; padding: 7px 9px 3px; border-top: 1px solid var(--line); margin-top: 4px; color: var(--text3); font-size: 11.5px; }
.tasks-lbf span:last-child { margin-left: auto; }
.tasks-lbf kbd { display: inline-block; min-width: 18px; padding: 0 4px; border: 1px solid var(--line2); border-radius: 4px; font: 600 10.5px/16px var(--sans); text-align: center; color: var(--text2); }
.tasks-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.tasks-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 2px 0 9px; border-radius: 8px; background: var(--chip); font-size: 12.5px; color: var(--text); }
.tasks-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .tasks-chip small { color: var(--text3); font-size: 11.5px; flex: none; }
.tasks-chip svg.i { width: 13px; height: 13px; flex: none; color: var(--text3); } .tasks-chip .icon { width: 26px; height: 26px; }
/* Tasks' tab bar (tasksTabs): All, then a tab per category, its colour's dot, its name and its count; the open one
   underlined in charcoal */
.tasks-nav { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: var(--sp-4); overflow-x: auto; scrollbar-width: none; }
.tasks-nav a { position: relative; height: 40px; display: inline-flex; align-items: center; gap: 8px; color: var(--text3); font-size: var(--fs-body); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tasks-nav a:hover { color: var(--text); text-decoration: none; }
.tasks-nav a:focus-visible { outline-offset: -2px; }
.tasks-nav a[aria-current="page"] { color: var(--head); }
.tasks-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--head); }
.tasks-nav a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.tasks-nav b { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; border: 1px solid var(--line); background: var(--chip); font: 600 11px/16px var(--sans); color: var(--text3); text-align: center; font-variant-numeric: tabular-nums; }
.tasks-nav a[aria-current="page"] b { background: var(--head); border-color: var(--head); color: var(--bg); }
/* the toolbar (app.css .tb), one row at 1440 px: the search, Filters (every filter, core.js filterMenu), the order
   behind its icon, Show Final QA and Signal House; the view and the Archive's button at its right end, marked while
   the archive is open. Each control is the toolbar's one size (app_pages.css): this sheet sets none. */
.tasks-bar > .find { flex-basis: 210px; }
.tasks-bar > .scope { flex-shrink: 2000; }  /* the search gives way before the strip wraps, as a plain search does (app_pages.css .tb) */
.tasks-pick { position: relative; display: inline-flex; flex: none; }
.tasks-pick > svg.i { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--text3); pointer-events: none; }
.tasks-pick select.input { padding-left: 32px; max-width: 210px; }
.page:is([data-page="tasks"], [data-page="requests"]) .tasks-bar .tasks-arch[aria-pressed="true"] { border-color: var(--head); background: var(--sel); }
/* Show Final QA and Client requests' Show Signal House: one pair that wraps as a unit when the strip is full, each
   with the count of what it brings back, as a stage head's count reads */
.tasks-bar .tasks-outs { display: flex; gap: inherit; }
.tasks-bar .tasks-sh b { font: 600 12px var(--mono); color: var(--text3); }
/* the overdue line under the toolbar: whose tasks are overdue, how many more across the team, and Show */
.tasks-alert { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 8px 8px 14px; margin-bottom: 4px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--bad) 22%, transparent); background: color-mix(in srgb, var(--bad) 6%, var(--raise)); color: var(--bad-ink); font-weight: 600; font-size: var(--fs-small); }
.tasks-alert > svg.i { width: 17px; height: 17px; color: var(--bad); flex: none; }
.tasks-alert small { margin-left: 6px; font-size: inherit; font-weight: 500; color: color-mix(in srgb, var(--bad-ink) 70%, var(--text3)); }
.tasks-alert button, .tasks-rest button { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; font-weight: 700; white-space: nowrap; }
.tasks-alert button { color: var(--bad-ink); } .tasks-alert button:hover { background: var(--bad-bg); }
.tasks-alert button svg.i, .tasks-rest button svg.i { width: 15px; height: 15px; transform: scaleX(-1); }
/* under the cards while one person's tasks show: the rest of the team's, one click away (ControlPanel.md, rule 7) */
.tasks-rest { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 18px; padding: 6px 8px 6px 16px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--text2); font-size: var(--fs-small); }
.tasks-rest > svg.i { width: 17px; height: 17px; color: var(--text3); flex: none; }
.tasks-rest small { margin-left: 6px; font-size: inherit; color: var(--text3); }
.tasks-rest button { color: var(--head); } .tasks-rest button:hover { background: var(--hover); }
.tasks-mine0 { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); color: var(--text2); font-size: var(--fs-small); }
.tasks-mine0 svg.i { width: 17px; height: 17px; color: var(--ok); }
/* an empty tab or category: the picture small, so the words lead */
.page:is([data-page="tasks"], [data-page="requests"]) .tasks-body .empty.drawn { padding: var(--sp-8) var(--sp-5); border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
.page:is([data-page="tasks"], [data-page="requests"]) .tasks-body .empty.drawn > svg.ill { width: 84px; height: 59px; }
/* the open tasks: a card per category, its head (the category's colour, name and count) folding it */
.tasks-g { margin-top: 20px; }
.tasks-g .tasks-gh { margin: 0 0 var(--sp-2); }  /* app_frame.css .label: its state's dot, name, count and arrow */
.tasks-g .tasks-gh[aria-expanded="false"] { margin-bottom: 0; }
.label.tasks-violet { color: var(--tasks-violet); }
.tasks-cat { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--c) 13%, transparent); color: color-mix(in srgb, var(--c) 72%, var(--head)); }
.tasks-cpick { color: var(--text2); font-weight: 500; } .tasks-cpick.tasks-st:hover { padding-left: 9px; }
.tasks-cat i, .tasks-ctag i, .tasks-cpick i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.tasks-list { container: tasks-list / inline-size; border-radius: 14px; background: var(--raise); box-shadow: var(--card); overflow: hidden; }
/* a row's cells, and a card's column heads on the same grid: Task, Client Name, Status, Task Assignee, Priority, Due
   Date, Open, menu. Each track holds its head's words at least. The card follows the room it has, never the window's
   width: under 968 px Priority folds into a flag beside the name, under 862 px the client goes under the name, under
   712 px the row is a phone's (the @container steps at this file's end) */
.tasks-row, .tasks-cols { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(116px, 180px) 132px minmax(124px, 148px) 92px 104px 44px 28px; gap: 14px; align-items: start; padding: 11px 12px 11px 18px; outline: 0; }
.tasks-row > :not(.tasks-rmain) { min-height: 24px; display: flex; align-items: center; min-width: 0; }
.tasks-row > :is(.tasks-client, .tasks-pod) { display: block; line-height: 24px; }  /* a block, so a long name ends in … */
.tasks-cols { align-items: center; min-height: 36px; padding-block: 6px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 55%, var(--raise)); font: 600 var(--fs-caption)/14px var(--sans); color: var(--text3); }  /* app_pages.css .tw th's form */
.tasks-cols span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tasks-cols svg.i { width: 13px; height: 13px; flex: none; }
.tasks-cols span:nth-last-child(2) { justify-content: flex-end; }
/* the client requests' list adds its Assigned Pod track after Task Assignee (tasks.js, tasks-pods): its steps fall
   at 1094 px and 988 px */
.tasks-pods :is(.tasks-row, .tasks-cols) { grid-template-columns: minmax(200px, 1fr) minmax(116px, 170px) 132px minmax(124px, 140px) minmax(112px, 120px) 92px 104px 44px 28px; }
.tasks-pod { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* a narrow card's lines in the task's cell: the client (and its pod) under the name, the urgency beside it */
.tasks-sub { display: none; align-items: baseline; gap: 6px; min-width: 0; margin-top: 2px; }
.tasks-subc { min-width: 0; color: var(--text2); text-decoration: none; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.tasks-subc:hover { color: var(--head); text-decoration: underline; }
.tasks-subp { flex: none; font-size: 12.5px; color: var(--text3); white-space: nowrap; }
.tasks-subc + .tasks-subp::before { content: "·"; margin-right: 6px; }
.tasks-tprio { display: none; }
.tasks-row > .tasks-due { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-width: 0; font-size: 13px; }
.tasks-day { color: var(--text2); }
.tasks-when { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.tasks-when.bad { background: var(--bad-bg); color: var(--bad-ink); } .tasks-when.warn { background: var(--warn-bg); color: var(--warn-ink); }
.tasks-delay { font: 600 11px/14px var(--sans); color: var(--warn); white-space: nowrap; }
.tasks-row + .tasks-row { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.tasks-row:hover { background: color-mix(in srgb, var(--hover) 70%, var(--raise)); }
/* a category's own New task, at its card's foot */
.tasks-add { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 18px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); color: var(--text3); font-size: var(--fs-small); text-align: left; }
.tasks-add svg.i { width: 14px; height: 14px; }
.tasks-add:hover { background: color-mix(in srgb, var(--hover) 70%, var(--raise)); color: var(--text); }
/* Status: the state's glyph and word in its colour (tasks.js, stat; the board's column heads); To do reads quiet */
.tasks-stp { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tasks-glyph { width: 14px; height: 14px; flex: none; }
.tasks-stp.off { color: var(--text3); padding-left: 0; } .tasks-stp.wait { background: var(--wait-bg); color: var(--wait-ink); }
.tasks-stp.warn { background: var(--warn-bg); color: var(--warn-ink); } .tasks-stp.bad { background: var(--bad-bg); color: var(--bad-ink); }
.tasks-stp.ok { background: var(--ok-bg); color: var(--ok-ink); }
.tasks-stp.off .tasks-glyph { color: var(--text3); } .tasks-stp.wait .tasks-glyph { color: var(--wait); } .tasks-stp.warn .tasks-glyph { color: var(--warn); }
.tasks-stp.bad .tasks-glyph { color: var(--bad); } .tasks-stp.ok .tasks-glyph { color: var(--ok); }
/* the row's state control: the state itself with a caret, boxed so it reads as a pick (a ClickUp ticket's shows only, unboxed); its native list sits over it (tasks_list.js, stateCell) */
.tasks-stc { flex: none; height: 26px; padding: 0 7px 0 8px; } .tasks-stc.tasks-st { box-shadow: inset 0 0 0 1px var(--line2); }
.tasks-stc.off { padding-left: 8px; } .tasks-stc svg.i { width: 12px; height: 12px; color: var(--text3); margin-left: 1px; transform: rotate(90deg); }
.tasks-stc.tasks-st:hover { padding-left: 8px; box-shadow: inset 0 0 0 1px var(--text3); }
/* Priority: Urgent and High stand out; Normal reads quiet */
.tasks-prio { font-size: 13px; color: var(--text3); white-space: nowrap; }
.tasks-prio.warn, .tasks-prio.bad { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; font-weight: 700; }
.tasks-tprio { align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 5px; font: 700 11px/18px var(--sans); white-space: nowrap; flex: none; }
:is(.tasks-prio, .tasks-tprio).warn { background: var(--warn-bg); color: var(--warn-ink); } :is(.tasks-prio, .tasks-tprio).bad { background: var(--bad-bg); color: var(--bad-ink); }
.tasks-prio svg.i { width: 13px; height: 13px; fill: currentColor; } .tasks-tprio svg.i { width: 11px; height: 11px; fill: currentColor; }
/* a row or a board card of a task is one click target: it opens the task (tasks.js); its own controls keep theirs */
:is(.tasks-row, .tasks-kcard)[data-tasks-row] { cursor: pointer; }
.tasks-col.order-over { outline-offset: -1px; } .tasks-list.order-over { outline-offset: -2px; border-radius: 14px; }
:is(.tasks-row, .tasks-kcard) .tasks-rename { cursor: text; }
.tasks-row:focus-visible { box-shadow: inset 0 0 0 2px var(--head); }
/* the row's state pick (tasks.js, stat): its Status pill over a native pick */
.tasks-st { cursor: pointer; transition: box-shadow var(--t-fast); }
.tasks-st:hover { box-shadow: inset 0 0 0 1px var(--line2); }
.tasks-st.off:hover { padding-left: 7px; }
.tasks-st:has(select:focus-visible) { box-shadow: var(--ring); }
.tasks-st select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: inherit; }
.tasks-rmain { min-width: 0; }
/* the title leads: its tags go to the next line before it is cut */
.tasks-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
/* the name and its Rename pencil, one box that gives way to the state control on the name's line; the pencil stands
   over the name's end, out of the flow, so a hidden pencil never wraps a row taller, and the name fades under it */
.tasks-row .tasks-t > .tasks-nm { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 64px; }
:is(.tasks-row, .tasks-kcard) .tasks-tname { white-space: normal; overflow-wrap: anywhere; }  /* the name whole: the state control and the tags wrap first */
.tasks-row .tasks-nm > .tasks-tname { flex: 1 1 auto; max-width: 100%; }
.tasks-row .tasks-nm > .tasks-ren { position: absolute; right: 0; top: -2px; }
.tasks-row .tasks-nm:has(> .tasks-ren) > .tasks-tname { padding-right: 30px; }  /* the pencil's room at the first line's end: a wrapped name loses no word under it */
.tasks-t > .tasks-stc { margin: -3px 0; }  /* the 26px control sits inside the name's 21px line, so it adds no height *//* a row that drags (order.js): its grip stands in the row's left margin, shown with the row's hover or focus, as Rename
   is; the row keeps the pointer of its click, which opens the task. A board card drags as a whole */
.tasks-row { position: relative; }
.tasks-grip { position: absolute; left: 1px; top: 13px; width: 14px; height: 20px; display: grid; place-items: center; color: var(--faint); cursor: grab; opacity: 0; transition: opacity var(--t-fast); }
.tasks-grip svg.i { width: 14px; height: 14px; }
.tasks-row:is(:hover, :focus-within) .tasks-grip { opacity: 1; }
/* the drawer's top line: back, previous and next, Delete and Close */
.tasks-way { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.tasks-next svg.i { transform: rotate(180deg); }
.tasks-noway { opacity: .35; }
.tasks-way .tasks-del:hover { color: var(--bad-ink); }
.tasks-facts .tasks-delay { margin-top: 2px; }
a.tasks-tname, span.tasks-tname { font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
a.tasks-tname:hover { text-decoration: underline; }
.tasks-rename { height: 30px; flex: 1; font-weight: 600; }
/* Rename: a pencil beside the name, shown on the row's hover or focus (F2 opens it from the keyboard) */
.tasks-ren, .tasks-menu { width: 26px; height: 26px; border-radius: 6px; display: inline-grid; place-items: center; color: var(--text3); flex: none; opacity: 0; transition: opacity var(--t-fast), background var(--t-fast); }
.tasks-ren svg.i, .tasks-menu svg.i { width: 15px; height: 15px; }
:is(.tasks-row, .tasks-kcard):is(:hover, :focus-within) :is(.tasks-ren, .tasks-menu) { opacity: 1; }
.tasks-menu { opacity: .45; }  /* the row's menu shows at all times, quiet until the row is pointed at */
.tasks-ren:hover, .tasks-menu:hover { background: var(--line); color: var(--text); }
@media (hover: none) { .tasks-ren, .tasks-menu { opacity: 1; } }
/* the row's menu: its icon over a native pick, so a click, a tap and the keyboard each open the browser's own list */
.tasks-menu { position: relative; }
.tasks-menu select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: inherit; }
.tasks-tag, .tasks-n { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/18px var(--sans); padding: 0 7px; border-radius: 5px; background: var(--chip); color: var(--text2); white-space: nowrap; flex: none; }
.tasks-n { background: none; padding: 0 2px; color: var(--text3); }
.tasks-tag svg.i, .tasks-n svg.i { width: 12px; height: 12px; }
/* No answer: a client request with no first answer in time; a board card's category, its dot and name */
.tasks-noans { background: var(--warn-bg); color: var(--warn-ink); }
.tasks-ctag { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); color: var(--text3); font-weight: 500; gap: 5px; }
.tasks-t .pill { flex: none; }
.tasks-client { color: var(--text2); text-decoration: none; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
a.tasks-client:hover { color: var(--head); text-decoration: underline; }
.tasks-row .tasks-who { min-width: 0; overflow: hidden; }
.tasks-row .tasks-owner { min-width: 0; flex: 0 1 auto; }  /* the pick narrows with its cell; its name is cut, never drawn over the next */
.tasks-age { font: 12px var(--mono); color: var(--text3); text-align: right; white-space: nowrap; }
.tasks-row .tasks-last { margin: 2px 0 0; max-width: none; display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.tasks-row .tasks-last span { min-width: 0; }  /* two lines, as a request's line reads everywhere */
.tasks-row .tasks-last small { display: inline; flex: none; margin: 0; }
/* Clutchy's automatic tasks: one slim line under the cards; opened, their card stands below */
.tasks-secs { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; flex-wrap: wrap; }
.tasks-quiet { display: flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--text3); font-size: 13px; }
.tasks-quiet b { color: var(--text2); font-weight: 600; }
.tasks-quiet:hover b { color: var(--text); text-decoration: underline; }
.tasks-quiet svg.i { width: 15px; height: 15px; }
.tasks-secbody { margin-top: 28px; }
.tasks-sech { display: flex; align-items: center; gap: 10px; font: 700 15px var(--sans); color: var(--text); margin: 0 4px 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tasks-sech b { font: 600 12px var(--mono); color: var(--text3); }
.tasks-archive-h { margin: 0 4px 10px; }
.tasks-grow { flex: 1; }
.tasks-kcard .tasks-t { justify-content: space-between; }
.tasks-kcard .tasks-menu { align-self: flex-end; margin-top: -4px; }
.tasks-who { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tasks-who .tasks-av { width: 22px; height: 22px; font-size: 9px; }
/* File under…: beside a task's name, shown as the row's Move is, on its hover or focus */
.tasks-file { font: 600 12px var(--sans); color: var(--text3); border-radius: 4px; padding: 2px 0; white-space: nowrap; align-self: flex-start; }
.tasks-file:hover { color: var(--text); }
/* a task's Activity: its way in from the row, always shown, with its comments' count; and its drawer, narrower than a client's */
.tasks-name a.tasks-act { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 1px 7px; border-radius: 6px; background: var(--chip); color: var(--text2); font: 600 12px/18px var(--sans); text-decoration: none; white-space: nowrap; vertical-align: middle; transition: background var(--t-fast), color var(--t-fast); }
.tasks-name a.tasks-act:hover { background: var(--hover); color: var(--text); text-decoration: none; } .tasks-act svg.i { width: 13px; height: 13px; } .tasks-act b { color: var(--head); }
.tasks-kcard a.tasks-act { align-self: flex-start; margin: 0; background: var(--chip); color: var(--text2); display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; font: 600 12px/18px var(--sans); text-decoration: none; }
.tasks-drawer { width: min(660px, 100%); }
/* the drawer is the ticket (mock A): its name and line, the track of the five states, the state bar, the facts in one
   strip, details, files, then its Activity */
.tasks-dtop h2 { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; color: var(--head); overflow-wrap: anywhere; }
.tasks-drawer .tasks-ren { opacity: 1; margin-top: 1px; }
.tasks-dname { width: 100%; height: 40px; font-size: 18px; font-weight: 700; }
.tasks-dsub { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; color: var(--text3); font-size: 13px; }
.tasks-dsub a { color: var(--blue); font-weight: 500; text-decoration: none; } .tasks-dsub a:hover { text-decoration: underline; }
.tasks-track li.cur b svg.i { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; color: var(--bad); }
.tasks-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 18px 0 14px; padding: 0; list-style: none; }
.tasks-track li { display: grid; gap: 7px; font-size: 11.5px; color: var(--text3); min-width: 0; }
.tasks-track li span, .tasks-track li b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tasks-track i { height: 4px; border-radius: 4px; background: var(--line); }
.tasks-track li.on i { background: var(--text2); }
.tasks-track li.cur b { font-weight: 700; color: var(--text); }
.tasks-track li.cur.off i { background: var(--text2); } .tasks-track li.cur.wait i { background: var(--wait); } .tasks-track li.cur.warn i { background: var(--warn); }
.tasks-track li.cur.bad i { background: var(--bad); } .tasks-track li.cur.ok i { background: var(--ok); }
.tasks-sbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tasks-ask { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
.tasks-ask label { font-size: var(--fs-small); font-weight: 600; color: var(--head); }
.tasks-ask .tasks-acts { align-items: center; } .tasks-ask .tasks-acts small { margin-left: auto; font-size: var(--fs-caption); }
/* the facts: each an app.css .input at the small height, its label over it */
.tasks-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
.tasks-facts > div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.tasks-facts label { font-size: var(--fs-caption); font-weight: 600; color: var(--text3); }
.tasks-fpick.input { height: var(--ctl-h-sm); padding-left: 8px; font-size: var(--fs-small); text-overflow: ellipsis; }
.tasks-fwho { display: flex; align-items: center; gap: 6px; min-width: 0; } .tasks-fwho .tasks-av { width: 20px; height: 20px; font-size: 8.5px; flex: none; }
.tasks-dh { margin: 0 0 var(--sp-2); font-size: var(--fs-small); font-weight: 600; color: var(--head); }
.tasks-dsec { margin-bottom: 18px; }
/* Launch of a Google Ads upsell task: its button and one line, the refusal's sentence above them */
.tasks-launch { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.tasks-launch .tasks-acts { align-items: center; } .tasks-launch .tasks-hint { flex: 1 1 260px; }
.tasks-launch-no { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; color: var(--bad-ink); font-weight: 600; }
.tasks-launch-no > svg.i { color: var(--bad); flex: none; margin-top: 2px; }
.tasks-dact { margin-bottom: 20px; } .tasks-facts .tasks-flabel { margin: 0; }  /* clear of the comment box's sticky cover (activity.css) */
.tasks-facts .tasks-fixed { font-size: var(--fs-small); line-height: var(--ctl-h-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tasks-form .tasks-drop { display: flex; margin: 0; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text2); }
.tasks-dsech { display: flex; align-items: center; gap: 10px; } .tasks-dsech .tasks-dh { margin-bottom: 6px; }
.tasks-dedit { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px auto; padding: 2px 6px; border-radius: 6px; color: var(--text2); font-size: 12.5px; font-weight: 600; }
.tasks-dedit svg.i { width: 13px; height: 13px; } .tasks-dedit:hover { background: var(--hover); color: var(--text); }
.tasks-dsec .tasks-about { margin: 0; } .tasks-about.act-fold { max-height: 4.6em; } .tasks-dsec .tasks-acts { margin-top: 8px; }
.tasks-dtext { width: 100%; }
.tasks-dfs { margin-bottom: 22px; padding: 2px; border-radius: 12px; transition: background var(--t-fast); }
.tasks-dfs.over { background: var(--sel); }
.tasks-dfs .tasks-files { margin-bottom: 10px; }
.tasks-files li.tasks-docf { justify-content: center; }
.tasks-files .tasks-docf a.tasks-get { flex-wrap: wrap; gap: 2px 6px; height: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px; background: var(--raise); box-shadow: var(--card); color: var(--text); font-size: 13px; }
.tasks-files .tasks-docf a.tasks-get span { flex: 1; } .tasks-files .tasks-docf small { flex-basis: 100%; padding-left: 19px; color: var(--text3); font-size: 11.5px; }
.tasks-dfrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* a drop zone: Attach in the drawer, Files in New task; its native pick lies over it, so a click, a tap and the
   keyboard each open the browser's own picker */
.tasks-drop { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 12px; border: 1px dashed var(--line2); border-radius: 10px; color: var(--text2); cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.tasks-drop input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.tasks-drop:hover, .tasks-drop.over { border-color: var(--head); background: var(--hover); }
.tasks-drop:focus-within { border-color: var(--head); border-style: solid; }
.tasks-drop svg.i { width: 16px; height: 16px; flex: none; color: var(--text3); }
.tasks-drop span { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; font-size: 13px; } .tasks-drop b { font-weight: 600; color: var(--text); } .tasks-drop small { color: var(--text3); font-size: 12px; }
.tasks-dfs .tasks-drop { flex: 1; }
.tasks-tw .tasks-file { margin-left: 10px; opacity: 0; }
.tasks-tw tr:is(:hover, :focus-within) .tasks-file { opacity: 1; }
@media (hover: none) { .tasks-tw .tasks-file { opacity: 1; } }
@media (max-width: 760px) { .tasks-kinds { display: flex; } .tasks-kinds button { flex: 1; justify-content: center; padding: 0 8px; }
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw .tasks-file { display: block; margin: 4px 0 0; opacity: 1; white-space: normal; text-align: left; } }
/* a touch screen: File under… stands 12 px clear of the name and of Move, so its 40 px area (app.css) covers neither */
@media (pointer: coarse) { .page:is([data-page="tasks"], [data-page="requests"]) .tasks-tw .tasks-file { display: block; margin: 12px 0 0; } .tasks-kcard .tasks-file { margin-top: 4px; } }
/* a task's owner changes in its own cell: the pick reads as the name, as Move to… reads as words */
.tasks-owner { appearance: none; border: 0; background: none; font: 13px var(--sans); color: var(--text); cursor: pointer; padding: 2px 0; max-width: 150px; text-overflow: ellipsis; border-radius: 4px; }
.tasks-owner:hover { text-decoration: underline; }
/* a quiet chevron on the row's hover or focus says the owner is a pick */
.tasks-row .tasks-owner { padding-right: 14px; background: no-repeat right 1px center / 0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d949e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.tasks-row:is(:hover, :focus-within) .tasks-owner { background-size: 11px; } .tasks-owner option { background: var(--raise); color: var(--text); }
textarea.tasks-details { height: auto; min-height: 56px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
.tasks-about { margin: 10px 0 0; }
.tasks-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tasks-tabs button { padding: 9px 12px; color: var(--text3); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.tasks-tabs button:hover { color: var(--text); }
.tasks-tabs button[aria-pressed="true"] { color: var(--head); border-color: var(--head); }
.tasks-age { margin-left: auto; }
.tasks-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--bad); background: var(--bad-bg); margin-bottom: 16px; font-weight: 600; }
.tasks-banner > svg.i { color: var(--bad); }
.tasks-banner button { margin-left: auto; color: var(--bad-ink); font-weight: 700; white-space: nowrap; }
.tasks-banner.warn { border-color: var(--note-line); background: var(--note-bg); font-weight: 400; align-items: flex-start; }
.tasks-banner.warn > svg.i { color: var(--warn); margin-top: 3px; }
.tasks-tw td.tasks-name { white-space: normal; min-width: 200px; }
/* a client request's line under its name: where it stands, its newest note or comment in two lines at most, then who
   wrote it and how long ago */
.tasks-last { margin: 5px 0 0; max-width: 60ch; font: 400 13px/1.45 var(--sans); color: var(--text2); }
.tasks-last span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tasks-last small { display: block; margin-top: 2px; font-size: 12px; color: var(--text3); }
.tasks-last.none { color: var(--text3); }
.tasks-kcard .tasks-last { margin: 0; }
.tasks-stuck { font-style: normal; margin-left: 8px; vertical-align: middle; }
.tasks-act svg.i { flex: none; }
/* under 1640 px the list fits a laptop from 1366 px with no sideways scroll: the Department column folds into its dot
   before the task's name (the tabs above name each dot), First response's head takes two lines, the cells stand
   closer, Move stands under the status pill, which keeps the row's line, and a long client name wraps */
.tasks-deptdot { display: none; margin-right: 8px; vertical-align: middle; }
@media (max-width: 1640px) { .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw .tasks-deptcol { display: none; } .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-deptdot { display: inline-block; }
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw .tasks-wrap { white-space: normal; }
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw :is(th, td) { padding-left: 8px; padding-right: 8px; } }
@media (min-width: 761px) and (max-width: 1640px) {
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw td:has(> .tasks-move) { position: relative; padding-block: 22px; }
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw .tasks-move { position: absolute; left: 8px; top: calc(50% + 11px); margin: 0; } }
/* a request ticket's channel and its two deadlines: columns of their own, and on a phone a row of its own under the
   ticket's row; hidden, that row is the table's last, so the row before it drops its line as a last row does */
.tasks-sla { display: none; }
.tasks-tw tr:has(+ .tasks-sla:last-child) td { border-bottom: 0; }
.tasks-name { font-weight: 600; }
.tasks-name a { color: inherit; text-decoration: none; } .tasks-name a:hover { text-decoration: underline; }
.tasks-prog { height: 6px; border-radius: 6px; background: var(--chip); overflow: hidden; min-width: 80px; }
.tasks-prog i { display: block; height: 100%; background: var(--head); border-radius: 6px; }
/* the board: a column per status, each task a card; a task moves by its own "Move to…" */
.tasks-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.tasks-col { background: var(--side); border-radius: 14px; padding: 10px; min-height: 200px; }
.tasks-col-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.tasks-col-h b { font-size: var(--fs-caption); color: var(--text3); font-variant-numeric: tabular-nums; }
.tasks-kcard { background: var(--raise); box-shadow: var(--card); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.tasks-kcard[data-tasks-row] { outline: 0; transition: background var(--t-fast); }
.tasks-kcard[data-tasks-row]:hover { background: var(--hover); }
.tasks-kcard[data-tasks-row]:focus-visible { box-shadow: var(--card), inset 0 0 0 2px var(--head); }
.tasks-kcard .tasks-hint { font-size: 12px; margin-top: -4px; }
.tasks-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tasks-meta .tasks-av { margin-left: auto; width: 22px; height: 22px; font-size: 9px; }
.tasks-kempty { border: 1px dashed var(--line2); border-radius: 10px; padding: 18px; text-align: center; color: var(--text3); font-size: var(--fs-small); }
.tasks-move { appearance: none; border: 0; background: none; font: 600 12px var(--sans); color: var(--text3); cursor: pointer; padding: 2px 0; align-self: flex-start; border-radius: 4px; }
.tasks-move:hover { color: var(--text); } .tasks-move option { background: var(--raise); color: var(--text); }
/* a list row's Move shows on its hover or focus; it keeps its place, so the column holds its width */
.tasks-tw .tasks-move { margin-left: 10px; opacity: 0; }
.tasks-tw tr:is(:hover, :focus-within) .tasks-move { opacity: 1; }
@media (hover: none) { .tasks-tw .tasks-move { opacity: 1; } }
@media (max-width: 900px) { .tasks-new { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tasks-age { margin-left: 0; } }
@media (max-width: 760px) { .tasks-form { grid-template-columns: minmax(0, 1fr); } .tasks-bar > .find { flex: 1 1 100%; }
  .tasks-form .tasks-half { grid-column: 1 / -1; } .tasks-newh small { display: none; }
  .tasks-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tasks-sbar .tasks-grow { display: none; } .tasks-ask .tasks-acts small { margin-left: 0; flex-basis: 100%; }
  /* a phone's list keeps Task, Status and Due; a ticket's channel and deadlines go in a row under its own */
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw .tasks-fold { display: none; }
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw tr.tasks-sla { display: table-row; }
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw tr.tasks-sla td { white-space: normal; padding-top: 0; }
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw tr.tasks-sla div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw tr.tasks-sla div > span:not(.tasks-hint) { display: inline-flex; align-items: center; gap: 6px; }
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw tr:has(+ tr.tasks-sla) td { border-bottom: 0; padding-bottom: 6px; }
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw td.tasks-name { min-width: 0; }
  .page:is([data-page="tasks"], [data-page="requests"], [data-page="clickup"]) .tasks-tw .tasks-move { display: block; margin: 4px 0 0; opacity: 1; } }
/* a card of rows, by the room it has (.tasks-list's container; the steps under the grid at this file's top). Tasks
   and a client list (.tasks-pods, a track more) each fold at their own widths; a later step keeps the earlier's folds */
/* step 1: Priority folds into a flag beside the name; Normal says nothing */
@container tasks-list (max-width: 967px) {
  .tasks-body:not(.tasks-pods) :is(.tasks-row, .tasks-cols) { grid-template-columns: minmax(200px, 1fr) minmax(116px, 180px) 132px minmax(124px, 148px) 104px 44px 28px; }
  .tasks-body:not(.tasks-pods) :is(.tasks-row > .tasks-prio, .tasks-h-prio) { display: none; }
  .tasks-body:not(.tasks-pods) .tasks-tprio { display: inline-flex; }
}
@container tasks-list (max-width: 1093px) {
  .tasks-pods :is(.tasks-row, .tasks-cols) { grid-template-columns: minmax(200px, 1fr) minmax(116px, 170px) 132px minmax(124px, 140px) minmax(112px, 120px) 104px 44px 28px; }
  .tasks-pods :is(.tasks-row > .tasks-prio, .tasks-h-prio) { display: none; }
  .tasks-pods .tasks-tprio { display: inline-flex; }
}
/* step 2: the client, and its pod, go in a line under the name */
@container tasks-list (max-width: 861px) {
  .tasks-body:not(.tasks-pods) :is(.tasks-row, .tasks-cols) { grid-template-columns: minmax(180px, 1fr) 132px minmax(124px, 148px) 104px 44px 28px; }
  .tasks-body:not(.tasks-pods) :is(.tasks-row > .tasks-client, .tasks-h-client) { display: none; }
  .tasks-body:not(.tasks-pods) .tasks-sub { display: flex; }
}
@container tasks-list (max-width: 987px) {
  .tasks-pods :is(.tasks-row, .tasks-cols) { grid-template-columns: minmax(180px, 1fr) 132px minmax(124px, 140px) 104px 44px 28px; }
  .tasks-pods :is(.tasks-row > .tasks-client, .tasks-row > .tasks-pod, .tasks-h-client, .tasks-h-pod) { display: none; }
  .tasks-pods .tasks-sub { display: flex; }
}
/* step 3, a phone's row: the name, its client and its note; the Status over the due day; the menu beside */
@container tasks-list (max-width: 711px) {
  /* .tasks-body twice: step 2's columns, set under :not(.tasks-pods), outrank one class and put the menu past the row */
  .tasks-body.tasks-body .tasks-row { grid-template-columns: minmax(0, 1fr) auto 28px; gap: 4px 10px; padding: 11px 8px 11px 14px; }
  .tasks-row .tasks-rmain { grid-column: 1; grid-row: 1 / span 2; }
  .tasks-row .tasks-stp { grid-column: 2; grid-row: 1; justify-self: end; }
  .tasks-row .tasks-due { grid-column: 2; grid-row: 2; align-items: flex-end; }
  .tasks-row > :is(.tasks-who, .tasks-age, .tasks-pod, .tasks-prio, .tasks-client), .tasks-cols { display: none; }
  .tasks-body .tasks-sub { display: flex; } .tasks-body .tasks-tprio { display: inline-flex; }
  .tasks-row .tasks-menu { grid-column: 3; grid-row: 1 / span 2; }
  .tasks-row .tasks-t { flex-wrap: wrap; row-gap: 4px; } .tasks-row :is(.tasks-nm, .tasks-tname) { flex: 1 1 100%; white-space: normal; }
  .tasks-row .tasks-nm > .tasks-ren { position: static; translate: none; }
  .tasks-row:not(:focus-within) .tasks-ren { display: none; }
  .tasks-body .tasks-row .tasks-nm:has(> .tasks-ren) > .tasks-tname { padding-right: 0; }  /* the pencil stands in the flow here, over no word */
}
@media (max-width: 760px) {
  .tasks-nav { mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }  /* a cut tab shows the bar goes on */
  .tasks-nav { gap: 18px; }
  .tasks-secs { margin-top: 0; } .tasks-quiet span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
  /* View archive is its icon, its words kept for a screen reader and in its tip, so Whose tasks fits whole beside it */
  .tasks-bar .tasks-arch { position: relative; width: var(--ctl-h); padding: 0; justify-content: center; }
  .tasks-bar .tasks-arch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* a phone: the client's link under the name gets a finger's 40 px, unseen, as the row's other links */
@media (pointer: coarse) { .tasks-sub a.tasks-subc { padding-block: 11px; margin-block: -11px; } }


/* static/pages/team.css */
/* Team (pages/team.js): the mock's cards of people, three to a row, fewer as the page narrows, and a person's profile drawer. The card is app.css's. */
[data-page="team"] .team-count { margin: 0 0 var(--sp-3); font-size: var(--fs-small); color: var(--text3); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-4); }
.team-card { display: flex; align-items: center; gap: var(--sp-3); }
.team-card > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.team-card b { font-weight: 700; color: var(--head); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.team-card small { color: var(--text2); font-size: var(--fs-small); }
.team-card .team-areas { font-size: var(--fs-caption); color: var(--text3); }  /* every area shows: a long list wraps */
.team-card > :is(.tag, .pill) { flex: none; max-width: 40%; align-self: flex-start; }
/* a person who left: the words in --text3 on a quiet ground, the face faded; never the words by opacity */
.team-off { background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); }
.team-off .team-av { opacity: .55; } .team-off > div :is(b, small) { color: var(--text3); }
/* a card that leads somewhere: the whole card is the link, its chevron at the end */
a.team-go { color: inherit; text-decoration: none; transition: background var(--t-fast); }
a.team-go:hover { background: var(--hover); } a.team-go:hover b { text-decoration: underline; text-underline-offset: 3px; }
a.team-go > svg.i:last-child { width: 16px; height: 16px; color: var(--text3); flex: none; }
.team-former { margin-top: var(--sp-4); padding-left: 2px; }
.team-former svg.i { width: 14px; height: 14px; margin-left: auto; transition: transform var(--t-fast); } .team-former[aria-expanded="true"] svg.i { transform: rotate(90deg); }
/* the profile (#team-over): the drawer's head, the facts as a two-column list, the count of the last 90 days, the note box's picks */
.team-drawer { width: min(600px, 100%); }
.team-ph { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-2) 0 var(--sp-4); }
.team-ph h2 { margin: 0; font: 800 22px/1.2 var(--title); color: var(--head); } .team-ph p { margin: 2px 0 0; color: var(--text2); }
.team-facts { display: grid; gap: 6px; margin: 0 0 var(--sp-3); } .team-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: var(--sp-2); }
.team-facts dt { color: var(--text3); font-size: var(--fs-small); } .team-facts dd { margin: 0; overflow-wrap: anywhere; }
.team-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.team-tally { display: flex; align-items: flex-end; gap: var(--sp-3); margin: 0 0 var(--sp-4); }
.team-tl { display: grid; min-width: 72px; padding: 8px 12px; border-radius: var(--r-card); background: var(--chip); }
.team-tl b { font: 800 20px/1.1 var(--title); color: var(--head); } .team-tl small { color: var(--text2); font-size: var(--fs-caption); }
.team-tl.ok b { color: var(--ok-ink); } .team-tl.bad b { color: var(--bad-ink); } .team-tl-when { margin-left: auto; color: var(--text3); font-size: var(--fs-caption); }
.team-pick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); position: relative; z-index: 1; }
.team-pick select.input { flex: 1 1 200px; width: auto; min-width: 0; }
.team-pick [data-search-select] { flex: 1 1 140px; width: auto; min-width: 0; }
.team-hint { margin: var(--sp-3) 0 0; }
/* a profile note's tag (pages/activity.js, tone): a win and an issue in their state's ink */
.activity-kind.win { background: var(--ok-bg); color: var(--ok-ink); }
.activity-kind.issue { background: var(--bad-bg); color: var(--bad-ink); }

/* static/pages/teamonboard.css */
/* Team onboarding (pages/teamonboard.js): the form, each hire's card with its six steps, and the welcome screen */
.tob-form { --pad-y: 16px; --pad-x: 18px; margin-bottom: var(--sp-6); }
.tob-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3) var(--sp-4); }
.tob-wide { grid-column: span 2; }
@media (max-width: 640px) { .tob-wide { grid-column: auto; } }
.tob-mail { display: flex; align-items: center; gap: 6px; }
.tob-mail .input { flex: 1; min-width: 0; }
.tob-mail span { color: var(--text2); font-size: var(--fs-small); white-space: nowrap; }
.tob-u { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-caption); color: var(--text2); }
.tob-u svg.i { width: 14px; height: 14px; flex: none; }
.tob-u.ok svg.i { color: var(--ok); }
.tob-u.warn svg.i { color: var(--warn); }
.tob-u.bad { color: var(--bad-ink); }
.tob-u.bad svg.i { color: var(--bad); }
.tob-p { margin: var(--sp-3) 0 0; font-size: var(--fs-small); }
.tob-a { display: flex; justify-content: flex-end; margin-top: var(--sp-3); }

.tob-h { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--sp-3); font: 600 var(--fs-body) var(--title); color: var(--text); }
.tob-h b { font: 600 var(--fs-caption) var(--mono); color: var(--text3); }
.tob-hire { margin-bottom: var(--sp-2); padding: 0; }
.tob-hire summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; border-radius: var(--r-card); }
.tob-hire summary::-webkit-details-marker { display: none; }
.tob-hire summary:focus-visible { outline: 2px solid var(--focus, var(--blue)); outline-offset: 2px; }
.tob-hire summary > svg.i { width: 16px; height: 16px; margin-left: 4px; color: var(--text3); transform: rotate(90deg); }
.tob-hire[open] summary > svg.i { transform: rotate(-90deg); }
.tob-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tob-who b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tob-who span { font-size: var(--fs-small); color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tob-by { color: var(--text3); font-size: var(--fs-caption); white-space: nowrap; }
.tob-hire summary .pill { flex: none; }
@media (max-width: 760px) {  /* a phone: the status goes under the name, the person who started it stays in the card */
  .tob-hire summary { flex-wrap: wrap; row-gap: 6px; }
  .tob-who { flex-basis: calc(100% - 80px); }
  .tob-hire summary .pill { margin-left: 44px; }
  .tob-by { display: none; }
  .tob-h { padding-inline: 16px; }
}

.tob-steps { list-style: none; margin: 0; padding: 4px 16px 14px 60px; display: grid; gap: 10px; }
.tob-steps li { display: grid; grid-template-columns: 8px 16px 1fr auto; align-items: start; gap: 10px; }
.tob-steps .dot { margin-top: 6px; }
.tob-steps svg.i { width: 16px; height: 16px; color: var(--text3); margin-top: 1px; }
.tob-steps b { font-weight: 600; color: var(--text); font-size: var(--fs-small); }
.tob-steps p { margin: 2px 0 0; color: var(--text2); font-size: var(--fs-small); line-height: 1.45; max-width: 75ch; }
.tob-failed p { color: var(--bad-ink); }
@media (max-width: 640px) { .tob-steps { padding-left: 16px; } }

/* the welcome screen: a dialog over a still veil, no movement */
.tob-veil { position: fixed; inset: 0; z-index: 90; background: color-mix(in oklab, var(--side) 55%, rgba(16,18,21,.45)); }
.tob-welcome { position: fixed; z-index: 91; left: 50%; top: 50%; translate: -50% -50%; width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); overflow: auto; padding: 24px 26px 20px; border-radius: 14px; background: var(--raise);
  box-shadow: var(--card), var(--shadow); }  /* the tour card's recipe (tour.css), lifted over the veil */
.tob-welcome h2 { margin: 0 0 8px; font: 800 20px/1.25 var(--title); letter-spacing: -.01em; color: var(--head); text-wrap: balance; }
.tob-welcome h2:focus { outline: none; }
.tob-welcome p { margin: 0 0 12px; color: var(--text2); }
.tob-welcome ol { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.tob-welcome li { display: flex; gap: 8px; align-items: flex-start; color: var(--text); font-size: var(--fs-small); line-height: 1.45; }
.tob-welcome li svg.i { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--ok); }
.tob-w-a { display: flex; justify-content: flex-end; gap: var(--sp-2); }

/* static/pages/teamperf.css */
/* Team performance (pages/teamperf.js). Its tiles, tables, pills and dots are app.css's; its avatars pods.css's. */
[data-page="teamperf"] .teamperf-seg button { white-space: nowrap; }
.teamperf-sec { display: grid; min-width: 0; }
/* each table's heading: the page's h2, its source line beside it, cut on one line */
.teamperf-sec > h2 { margin: var(--sp-6) 0 var(--sp-3); flex-wrap: wrap; gap: 2px 10px; }
.teamperf-who { display: grid; min-width: 0; }
.teamperf-who b { font-weight: 600; color: var(--head); white-space: nowrap; }
.teamperf-who small { color: var(--text3); font-size: var(--fs-caption); }
.teamperf-sec td .dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
.teamperf-sec td .pill { font-family: var(--sans); }
[data-page="teamperf"] .tile-d .dot { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.teamperf-reply { display: inline-grid; justify-items: end; } .teamperf-reply small { color: var(--text3); font-size: var(--fs-caption); }
/* a head's period under its name ("First reply · this week") */
.teamperf-sec th small { display: block; font-weight: 500; color: var(--text3); }
.teamperf-sec th button { flex-direction: column; align-items: flex-end; }
/* the figures not connected: one quiet line that opens to say why each waits */
.teamperf-waits summary { cursor: pointer; width: fit-content; }
.teamperf-waits ul { margin: var(--sp-2) 0; padding-left: 18px; display: grid; gap: 4px; }
.teamperf-waits p { margin: 0; }
@media (max-width: 760px) {
  /* the period switch fills the toolbar's row */
  [data-page="teamperf"] .tb-s, .teamperf-seg { flex: 1; min-width: 0; } .teamperf-seg button { flex: 1; justify-content: center; }
}

/* static/pages/tracking.css */
/* Tracking (pages/tracking.js): only what differs from app.css's foundation */
[data-page="tracking"] .trk-line { margin: var(--sp-3) 0 0; color: var(--text3); font-size: var(--fs-small); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
[data-page="tracking"] .trk-line a { color: var(--blue); }
[data-page="tracking"] .trk-cause { margin: var(--sp-2) 0 0; color: var(--text); font-size: var(--fs-body); }
[data-page="tracking"] .trk-cause small { color: var(--text3); font-size: var(--fs-small); }
[data-page="tracking"] .trk-age { color: var(--text3); font-size: var(--fs-small); }
[data-page="tracking"] td small:not(.tw-ph) { display: block; color: var(--text3); font-size: var(--fs-caption); font-family: var(--sans); }
@media (max-width: 760px) { [data-page="tracking"] .trk-ph { display: block; white-space: normal; margin-top: 4px; } }
[data-page="tracking"] .trk-dim { color: var(--text3); }
[data-page="tracking"] .trk-why td { white-space: normal; padding-top: 0; border-top: 0; color: var(--text2); font-size: var(--fs-small); }
[data-page="tracking"] .trk-why small { display: inline; font-size: var(--fs-small); }
[data-page="tracking"] .num.trk-off { color: var(--bad-ink); }
[data-page="tracking"] .trk-out td { color: var(--text3); }
[data-page="tracking"] #trk-camps th small { display: block; color: var(--text3); font-size: var(--fs-caption); font-weight: 500; }
[data-page="tracking"] #trk-camps td.wrap { min-width: 0; overflow-wrap: anywhere; }

/* static/pages/upsell.css */
/* A client's upsell stage in the drawer's Status card (pages/upsell.js): the CSM's notes under the pick, quiet */
.up-cell { display: grid; justify-items: end; gap: 6px; min-width: 0; max-width: 260px; text-align: right; }
.up-note { display: block; color: var(--text2); font-size: var(--fs-small); line-height: 1.45; }
.up-note i { display: block; font-style: normal; color: var(--text3); }

/* static/pages/worklayout.css */
/* Work's added pages (pages/worklayout.js): Add page under Work's last row, and the catalog, which wears Report a
   problem's dialog (feedback.css) */
.wk-new { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 7px 10px; border: 1px dashed var(--line2); border-radius: 8px; color: var(--text3); font-weight: 600; font-size: 13px; }
.wk-new:hover { background: var(--raise); color: var(--text); border-color: var(--faint); }
.wk-new svg.i { width: 15px; height: 15px; }

/* the catalog: the search stays put while the list scrolls */
.wk-box { height: min(640px, 100%); overflow: hidden; }
.wk-find { margin: 0; }
.wk-cat { flex: 1; min-height: 0; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.wk-cat .nav-label { padding: 12px 4px 4px; }
.wk-item { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 3px 4px; border-radius: 8px; }
.wk-item > svg.i { color: var(--text3); flex: none; }
.wk-item b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-item .btn { height: 28px; flex: none; }
.wk-added { background: var(--sel); color: var(--head); border-color: transparent; }
@media (max-width: 760px) { .wk-box { height: 92%; } }

/* static/motion.css */
/* How the panel moves (Docs/Systems/ControlPanel.md, rule 6). Motion says what changed: a page arrives, a drawer
   comes from its edge, a control gives under the pointer. Everything arrives on one curve and nothing loops: each
   movement ends in under a second. Clutchy's robot is the one exception, drawn and moved by bot.css: it loops while
   Clutchy works, on screen, and stops with the work. The curve and the times are app.css's tokens (--ease, --t-press, --t-fast,
   --t-move). There is one set of moves, and a page added beside the built-in ones uses it and adds none: a page
   enters by rising 10 px, a drawer opens from the right edge, a tab's content settles in 4 px (arrive('page' |
   'drawer' | 'tab', el) in core.js), and a control eases its colours under the pointer (the press rule below). Only
   opacity, translate and scale move, so nothing is laid out or painted again while it runs, and the rail and the
   sidebar keep their widths. The page's code starts what a click moves, with glide(), enter() and arrive(), never on a poll's
   redraw: a rule here animates only what a click or a new state puts on the page, and an element a poll draws
   again gets none. This file and bot.css alone declare @keyframes and animations, and core.js alone calls .animate(): a sheet
   beside it holds only a hover's transition, timed by a token. Under Reduce Motion nothing moves (this file's last
   rule, and enter() in core.js). `python Panel/e2e.py page --stub` keeps both (motion_strays and STILL in
   e2e_page.py). */

/* --- A change of the frame (glide and enter, core.js) -------------------------------------------------------------
   The change is made at once, as the click expects. Another page then rises into its place; a drawer comes from its
   own edge, the left sidebar from the left and a session's details from the right; and the work, a session's
   conversation and the page's name slide from where they stood to where they stand. The page's code runs these
   moves, so only what they need is ruled here. */
@media (min-width: 1181px) { .insp { position: relative; } }  /* the details lie over the conversation that slides out from under them */
.scroll { scroll-behavior: smooth; }  /* a row picked in the left sidebar is brought into view by a scroll the eye can follow */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }
@keyframes drop { from { opacity: 0; translate: 0 -8px; } }
@keyframes from-right { from { opacity: 0; translate: 28px 0; } }
@keyframes arrive { from { opacity: 0; translate: 0 5px; } }

/* --- The rail's selection: one mark that slides to the open section (railMark in frame.js gives its place) ---------
   Until the page's code has placed it, the open section keeps its own ground, as app.css draws it. */
.rail { position: relative; }
.rail::before { content: ""; position: absolute; top: 0; left: 50%; width: 56px; height: var(--tall, 0); margin-left: -28px; border-radius: 10px; background: var(--rail-on); translate: 0 var(--at, 0); opacity: 0; }
.rail.placed::before { opacity: 1; transition: translate var(--t-move) var(--ease); }
.rail.placed a[aria-current] { background: none; }

/* --- A press: the control gives under the pointer and comes back on the curve -----------------------------------
   One rule holds what every control eases: its colours for --t-fast, its size for --t-press. */
.primary, .btn, .icon, .tool, .plus, .stop, .send, .pick, .starts button, .seg button, .login-card .google, .rail a, .phone-tabs a, .branch, .me, .row-more, .issue .mk, .box .bar2 .clip {
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), scale var(--t-press) var(--ease);
}
/* the controls of app.css's set: a field and a choice ease their edge and ground; a switch's knob slides on the curve */
.input, .chip, .sw, input.cb, input.rb, .tabs > [role="tab"] { transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), scale var(--t-press) var(--ease); }
.sw::before { transition: translate var(--t-move) var(--ease), background-color var(--t-fast); }
:is(.primary, .btn, .plus, .stop, .send, .starts button, .login-card .google, .issue .mk, .chip):active:not(:disabled) { scale: .96; }
:is(.icon, .row-more, .box .bar2 .clip):active { scale: .88; }
:is(.rail a, .tool, .phone-tabs a, .seg button):active { scale: .95; }
:is(.sw, input.cb, input.rb):active:not(:disabled) { scale: .92; }  /* a choice gives under the pointer too */
/* a row lights at once under the pointer and fades as the pointer leaves it; pressed, it takes the selection's ground */
.item, .proj-head, .sub, .now a, .now h2 button, .pop button, summary.step-line, .entry summary, .w-pick a { transition: background-color var(--t-fast), color var(--t-fast); }
:is(.item, .proj-head, .sub, .now a, .now h2 button, .pop button, summary.step-line, .entry summary, .w-pick a):hover { transition-duration: 0s; }
:is(.item, .proj-head, .now a, .pop button, .branch, .me):active { background: var(--sel); }
/* a field in use: its border turns blue inside a soft ring */
.box, .search { transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent); }
.box:focus-within { box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent); }

/* --- What a click or a new state puts on the page ----------------------------------------------------------------
   Each of these elements stays on the page and is shown or hidden, or is added once: a poll never draws it again. */
/* a notice rises from the window's foot and stays; when toast() in core.js ends it (4 s, an Undo's 10 s, or later while
   the pointer is on it), .leaving sinks it away */
.toast { animation: notice var(--t-move) var(--ease) both; }
.toast.leaving { animation: notice-out var(--t-move) ease-in forwards; pointer-events: none; }
@keyframes notice { from { opacity: 0; translate: 0 12px; } }
@keyframes notice-out { to { opacity: 0; translate: 0 8px; } }
.lost, .wpub { animation: drop var(--t-move) var(--ease); }
.latest { animation: rise var(--t-move) var(--ease); }
.row .pop { transform-origin: top right; }  /* a session's menu opens out of its ⋯ (enter in frame.js) */
/* in a conversation each step of the agent's work arrives as it is made, and a folded run opens the same way */
.chat .col > :not(.working), .chat .steps li { animation: arrive var(--t-move) var(--ease); }
.task[open] > p, .step[open] > pre, .steps[open] > .steps-in, .entry[open] > dl, .was[open] > :not(summary) { animation: drop var(--t-move) var(--ease); }
/* a website: its history comes from the right edge, and a view picked in the top bar fades in */
.wdraw { animation: from-right var(--t-move) var(--ease); }
.wchat, .wpane, .wgo { animation: fade var(--t-fast) ease-out; }
/* a client's and a shop's drawer: its layer fades in and its box comes from the right edge; a menu of choices and a
   dialog fade in */
.ro-scrim, .rv-scrim, .ro-modal, .ro-opts { animation: fade var(--t-fast) ease-out; }
.ro-drawer, .rv-drawer { animation: from-right var(--t-move) var(--ease); }

/* --- Three named moves of one part each ------------------------------------------------------------------------
   The Browser view's click mark: a ring closes on where the agent's click landed, stays, and fades (browserMark in
   browser.js hides it after 1.4 s). The Sales podium: its steps rise once, on the page's first draw. Clutchy's hello
   (clIntroPlay in pages/clutchy.js), once an account: its button rises into its corner, the logo's gear turns into
   place and its cursor clicks as in the app's opening. Then it calls the person: two rings, each a tremble with a
   ring spreading from it, at the times of the ring cue's two bursts (NT_CUES in pages/notifications.js, CL_RING_AT);
   then its card opens. */
.cl-btn.hello { animation: cl-rise 560ms cubic-bezier(.34, 1.56, .64, 1) both, cl-tremble 360ms 900ms linear, cl-tremble 360ms 1400ms linear; }
.cl-btn.hello::after { animation: cl-ring 500ms 900ms var(--ease) 2 forwards; }  /* unseen until its delay ends */
.cl-hello-gear { transform-origin: 50% 52.4%; animation: intro-gear 720ms 80ms var(--ease) both; }
.cl-hello-cursor { transform-origin: 70% 29%; animation: intro-cursor 520ms 300ms both; }
.cl-hello-sparks { transform-origin: 70% 29%; animation: intro-sparks 260ms 670ms cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes cl-rise { from { opacity: 0; translate: 0 96px; scale: .6; } }
@keyframes cl-ring { from { opacity: .9; } to { opacity: 0; scale: 1.8; } }
@keyframes cl-tremble { 12.5%, 37.5%, 62.5% { rotate: -8deg; translate: -1.5px 0; } 25%, 50%, 75% { rotate: 8deg; translate: 1.5px 0; } 87.5% { rotate: -3deg; translate: -.5px 0; } }
.bmark.passing { animation: bmark 1.4s var(--ease) forwards; }
@keyframes bmark { from { opacity: 0; scale: 2.2; } 18% { opacity: 1; scale: 1; } 70% { opacity: 1; } to { opacity: 0; } }
.sa-podium.rise .sa-step { animation: sa-rise 560ms var(--ease) both; }
.sa-podium.rise .p1 { animation-delay: 80ms; } .sa-podium.rise .p3 { animation-delay: 200ms; }
@keyframes sa-rise { from { opacity: 0; translate: 0 18px; } }

/* --- The app's opening: on the first load of a browser session the logo arrives on the paper, its gear turns into
   place and its cursor clicks while the page reads the account; then it flies to the logo the page shows and the
   paper fades from over the page (introOut in core.js). A slower load holds the logo still once it has clicked; a
   boot that never ends lets the paper go after 6 s. Every later load of the session shows no opening (theme.js).
   The parts turn about the gear's centre and press at the cursor's tip, as fractions of mark.svg's box. */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none; animation: fade 300ms 6s reverse both; }
:root[data-opened] .intro { display: none; }  /* a later load of the session (theme.js): the page shows at its first paint */
.intro-ground { position: absolute; inset: 0; background: var(--paper), var(--laid), var(--bg); }
:root[data-paper="plain"] .intro-ground { background: var(--bg); }
.intro-mark { position: relative; width: 120px; height: 120px; animation: intro-in 380ms var(--ease) both; }
.intro-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro-gear { transform-origin: 50% 52.4%; animation: intro-gear 620ms var(--ease) both; }
.intro-cursor { transform-origin: 70% 29%; animation: intro-cursor 520ms 60ms both; }
.intro-sparks { transform-origin: 70% 29%; animation: intro-sparks 260ms 430ms var(--ease) both; }
@keyframes intro-in { from { opacity: 0; scale: .82; } }
@keyframes intro-gear { from { rotate: -90deg; } }
@keyframes intro-cursor {
  0% { opacity: 0; translate: -18% 18%; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  58% { opacity: 1; translate: 0 0; scale: 1; animation-timing-function: ease-in; }
  72% { scale: .82; animation-timing-function: var(--ease); }
  100% { scale: 1; } }
@keyframes intro-sparks { from { opacity: 0; scale: .2; } }

/* --- The start page's moment: the mark arrives as its gear turns into place and its cursor clicks ---------------
   On the start page the question and its box follow it; on the sign-in card, the card. Nothing waits for it: the
   box takes the keyboard at once. */
.home .col::before, .login-card img { animation: clutch 720ms var(--ease) both; }
.home .col > *, .home .now, .login-card { animation: rise 420ms var(--ease) both; }
.home .col > :nth-child(2) { animation-delay: 45ms; } .home .col > :nth-child(3) { animation-delay: 90ms; }
.home .col > :nth-child(n+4) { animation-delay: 135ms; } .home .now { animation-delay: 180ms; }
@keyframes clutch { 0% { opacity: 0; rotate: -28deg; scale: .9; } 62% { rotate: 0deg; scale: 1; } 80% { scale: .96; } }

/* Reduce Motion: the one rule that ends every animation and transition at once, the drawn parts included, for the
   computer's own setting and for Preferences' Motion set to Reduced. This sheet loads last, so no sheet answers it. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
