/* p2-states.part.css · copied verbatim, 27 Nov, from 2026-11-26-creators-v2/04-build/admin/p2.css lines 21–27 (clock), 48–64 (text roles), 261–283 (loading, error, 390), 302–305 (focus), 435–510 (waiting row, dot matrix C5), 548–550 (sub lines), 607–682 (filter line, 390 sheet), 379–383 (save failed). */
/* ── Shell: the data's clock in the top bar (Lagos time on every screen) ── */
.top__now { margin-left: auto; font-size: var(--tiny); color: var(--color-text-tertiary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.top__now span { color: var(--color-text-secondary); }
.top .tabs + .top__now { margin-left: var(--space-4); }
@media (max-width: 1100px) { .top__now span { display: none; } }
@media (max-width: 760px) { .top__now { display: none; } }

/* ── Small text roles ── */
.p2-red { color: var(--color-status-danger-fg) !important; }
.p2-mute { color: var(--color-text-tertiary); }
.p2-of { color: var(--color-text-tertiary); font-variant-numeric: tabular-nums; }
.p2-lnk { padding: 0; border: 0; background: none; font: inherit; color: var(--color-text-accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); cursor: pointer; border-radius: 2px; }
.p2-lnk:hover { text-decoration-color: currentColor; }
.p2-lnk:focus-visible { outline: 2px solid var(--color-lilac-700); outline-offset: 2px; }
.p2-meta { margin: 8px 0 0; font-size: var(--tiny); color: var(--color-text-tertiary); line-height: 1.5; }
.p2-quote { margin: 0; font-size: var(--row); line-height: 1.5; color: var(--color-text-primary); }
.p2-opt { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: var(--row); }
.p2-line { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-3); font-size: var(--tiny); color: var(--color-text-secondary); }
.p2-h3 { margin: 0 0 var(--space-3); font-size: var(--row); font-weight: var(--font-weight-medium); }
.p2-h3 .faint { font-weight: var(--font-weight-regular); }
.p2-tbnote { margin: var(--space-3) 0 var(--space-2); font-size: var(--tiny); color: var(--color-text-tertiary); }
.toolbar .p2-tbnote { margin: 0; }
.vwt__n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: var(--radius-pill); background: var(--color-bg-surface); font-family: var(--font-family-body); font-size: var(--tiny); font-weight: var(--font-weight-medium); color: var(--color-text-secondary); vertical-align: 4px; letter-spacing: 0; }

/* ── Loading (skeleton) and error. Reduced motion stops the shimmer. ── */
.sk { display: block; height: 12px; border-radius: var(--radius-xs); background: linear-gradient(90deg, var(--color-neutral-100) 0%, var(--color-neutral-50) 40%, var(--color-neutral-100) 80%); background-size: 200% 100%; animation: p2-sk 1.2s linear infinite; }
@keyframes p2-sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; background: var(--color-neutral-100); } }
.sk-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: var(--space-4) 0; border: 1px solid var(--se-line, var(--color-border-subtle)); border-radius: var(--radius-sm); }
.sk-tiles > div { display: grid; gap: 10px; padding: 16px; }
.sk-tiles > div + div { border-left: 1px solid var(--se-line, var(--color-border-subtle)); }
.sk-rows { display: grid; }
.sk-row { display: flex; align-items: center; gap: 16px; height: 56px; border-bottom: 1px solid var(--se-line, var(--color-border-subtle)); }
.p2-state__note { margin-top: var(--space-5); font-size: var(--tiny); color: var(--color-text-tertiary); }
.p2-err__i { display: block; margin: 0 auto 12px; image-rendering: pixelated; }
@media (max-width: 760px) { .sk-tiles { grid-template-columns: 1fr 1fr; } .sk-tiles > div:nth-child(n+3) { display: none; } }

/* ── 390: no horizontal page scroll ── */
@media (max-width: 760px) {
  .page .pad { overflow-x: hidden; }
  .p2-tbl { width: 100%; table-layout: auto; }
  .ph.hd1 .acts { flex-wrap: wrap; }
  .p2-figs--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p2-ks { grid-template-columns: 1fr; }
}
.p2-uc { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Focus (DESIGN-SYSTEM §3.6 proposed canonical, tasks.md Shared 9): 2px lilac-700, 2px offset on every control ── */
:root, html[data-theme] { --focus-ring-offset: 2px; }
.b--danger-solid:focus-visible { outline-color: var(--color-status-danger-solid); }
@media (max-width: 760px) { .dw-sum .p8__sq i { width: 6px; } .dw-sum .p8__sq { gap: 1px; } .dw-sum .p8__n { min-width: 0; } .dw-sum .p8 { gap: 6px; } }
/* ── Waiting for the team · option A, calm list (Mikky, 26 Nov; ported from explore/flags). A caption row joined under the tile strip. ── */
.p2-wjoin { margin-bottom: var(--space-5); border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--se-line), var(--se-shadow); background: var(--se-line); display: grid; gap: 1px; overflow: hidden; }
.p2-wjoin > .ov-strip.dt--do-a, .p2-wjoin > .v2-strip { margin: 0; box-shadow: none; border-radius: 0; border: 0; }
.p2-wait { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-6); min-height: 40px; padding: var(--space-2) var(--space-4); background: var(--color-bg-canvas); }
.p2-wait__l { font-size: var(--font-size-12); color: var(--color-text-tertiary); }
.p2-wait__list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: 0; padding: 0; list-style: none; min-width: 0; }
.p2-wait__i { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: var(--font-size-13); color: var(--color-text-secondary); text-decoration: none; border-radius: var(--radius-xs); transition: color var(--motion-duration-fast) var(--motion-easing-standard); }
.p2-wait__i .gi { flex: none; image-rendering: pixelated; }
.p2-wait__i b { font-weight: var(--font-weight-semibold); color: var(--color-text-primary); }
.p2-wait__i.is-zero { color: var(--color-text-tertiary); }
.p2-wait__i.is-zero b { color: var(--color-text-tertiary); font-weight: var(--font-weight-medium); }
.p2-wait__i.is-zero img { opacity: .4; filter: grayscale(1); }
@media (hover: hover) and (pointer: fine) { .p2-wait__i:hover { color: var(--color-text-primary); } }
.p2-wait__i:focus-visible { outline: 2px solid var(--color-lilac-700); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .p2-wait__i { transition: none; } }
@media (max-width: 640px) {
  .p2-wait { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); }
  .p2-wait__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); }
  .p2-wait__i { align-items: flex-start; } .p2-wait__i img { margin-top: 1px; }
}/* Content links (Mikky, 26 Nov: "Open" not aligned): one 44px row, three fixed columns, everything centred on one line; pixel link icon */
.p2-links { border-top: 1px solid var(--se-line, var(--color-border-subtle)); }
.p2-links li { display: grid; grid-template-columns: 16px minmax(0, 1fr) 72px; align-items: center; column-gap: 12px; height: 44px; min-height: 0; padding: 0; }
.p2-links__ic, .p2-links__ic .gi { display: block; width: 16px; height: 16px; }
.p2-links__u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--font-size-13); line-height: 16px; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.p2-links__o { justify-self: end; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 2px; border: 0; background: none; font: inherit; font-size: var(--font-size-13); line-height: 16px; font-weight: var(--font-weight-medium); color: var(--color-text-secondary); border-radius: var(--radius-xs); cursor: pointer; transition: color var(--motion-duration-fast) var(--motion-easing-standard); }
.p2-links__o .gi { flex: none; image-rendering: pixelated; }
@media (hover: hover) and (pointer: fine) { .p2-links__o:hover { color: var(--color-text-primary); } }
.p2-links__o:focus-visible { outline: 2px solid var(--color-lilac-700); outline-offset: 2px; }

/* ── Day meter = option B, the dot-matrix strip (Mikky, 26 Nov; ported from explore/day-meter) ──
   Half the explorer's height on the card (12 rows of 4px dots). Days 0–6 step through the lilac ramp (admin DS "outcome steps",
   the app tracker's ramp), day 7 lilac-700 the one accent, unlit dots bg-surface, the top lit rows amber for "haven't played today". */
.p2-dm { --dot: 4px; --gap: 2px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.p2-dm__d { min-width: 0; }
.p2-dm__b { display: grid; grid-template-rows: auto auto auto; justify-items: stretch; gap: 6px; width: 100%; padding: 4px 6px 6px; border: 0; border-radius: var(--radius-xs); background: none; font: inherit; color: inherit; text-align: left; text-decoration: none; }
.p2-dm__d:first-child .p2-dm__b { padding-left: 0; }
button.p2-dm__b, a.p2-dm__b { cursor: pointer; transition: background-color var(--motion-duration-fast) var(--motion-easing-standard); }
.p2-dm__b:focus-visible { outline: 2px solid var(--color-lilac-700); outline-offset: 2px; }
.p2-dm__n { font-family: var(--font-family-display); font-size: var(--font-size-18); font-weight: var(--font-weight-semibold); letter-spacing: -0.01em; line-height: 1.1; color: var(--color-text-primary); white-space: nowrap; }
.p2-dm__n small { font-family: var(--font-family-body); font-size: var(--font-size-12); font-weight: var(--font-weight-medium); color: var(--color-text-accent); letter-spacing: 0; }
.p2-dm__m { display: block; min-width: 0; height: calc(12 * (var(--dot) + var(--gap)) - var(--gap)); }
.p2-dm__m svg { display: block; width: var(--w); height: var(--h); stroke: none; margin: 0; }   /* the admin's global 16px icon rule would shrink and stroke the matrix (explorer fix) */
.p2-dm__off rect { fill: var(--color-bg-surface); }
.p2-dm__risk rect { fill: var(--color-amber-500); }
.p2-dm__d.is-k0 .p2-dm__on rect { fill: var(--color-lilac-200); }
.p2-dm__d.is-k1 .p2-dm__on rect { fill: var(--color-lilac-200); }
.p2-dm__d.is-k2 .p2-dm__on rect { fill: var(--color-lilac-300); }
.p2-dm__d.is-k3 .p2-dm__on rect { fill: var(--color-lilac-300); }
.p2-dm__d.is-k4 .p2-dm__on rect { fill: var(--color-lilac-400); }
.p2-dm__d.is-k5 .p2-dm__on rect { fill: var(--color-lilac-400); }
.p2-dm__d.is-k6 .p2-dm__on rect { fill: var(--color-lilac-500); }
.p2-dm__d.is-k7 .p2-dm__on rect { fill: var(--color-lilac-700); }
.p2-dm__d.is-k7 .p2-dm__off rect { fill: var(--color-lilac-50); }
.p2-dm__l { font-size: var(--tiny); color: var(--color-text-secondary); }
.p2-dm__d.is-k7 .p2-dm__l { color: var(--color-text-accent); font-weight: var(--font-weight-medium); }
.p2-dm__d.is-zero .p2-dm__n { color: var(--color-text-tertiary); }
@media (hover: hover) and (pointer: fine) { button.p2-dm__b:hover, a.p2-dm__b:hover { background: var(--color-bg-surface); } button.p2-dm__b:hover .p2-dm__off rect, a.p2-dm__b:hover .p2-dm__off rect { fill: var(--color-neutral-100); } }
.p2-dm__b[aria-pressed="true"] { background: var(--color-bg-brand); box-shadow: inset 0 -2px 0 var(--color-lilac-700); }
.p2-dm__b[aria-pressed="true"] .p2-dm__off rect { fill: var(--color-lilac-100); }
.p2-dm__key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: var(--space-2) 0 0; font-size: var(--tiny); color: var(--color-text-tertiary); }
.p2-dm__key span { display: inline-flex; align-items: center; gap: 6px; }
.p2-dm__key i { width: 8px; height: 8px; border-radius: 2px; }
.p2-dm__key i.is-on { background: var(--color-lilac-400); }
.p2-dm__key i.is-risk { background: var(--color-amber-500); }
@media (prefers-reduced-motion: no-preference) { .p2-ovpipe.is-play .p2-dm__on, .p2-ovpipe.is-play .p2-dm__risk { animation: p2-dm-rise 420ms var(--motion-easing-out) both; animation-delay: calc(var(--d, 0) * 40ms + 60ms); } }
@keyframes p2-dm-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 1180px) { .p2-dm__n { font-size: var(--font-size-16); } }
@media (max-width: 640px) {
  .p2-dm { --dot: 3px; --gap: 1px; }
  .p2-dm__b { gap: 4px; padding: 4px 2px 6px; justify-items: center; text-align: center; }
  .p2-dm__n { font-size: var(--font-size-12); letter-spacing: 0; }
  .p2-dm__n small { display: block; font-size: var(--font-size-11); line-height: 1.2; }
  .p2-dm__l { font-size: var(--font-size-11); }
  .p2-dm__m svg { margin: 0 auto; }
}
.p2-dm__m { width: 100%; justify-self: stretch; }
/* Page-head sub lines (Mikky, 26 Nov): one short line, and the same 20px gap to the tile strip on every tab (Posts' head had 0) */
.p2-posts .ap-ph { margin-bottom: var(--space-5) !important; }   /* hd.css:368 zeroes .ap-ph */
.p2-subtag { height: 20px; padding: 0 6px; margin-left: 6px; font-size: var(--font-size-11); vertical-align: 1px; }
/* 26 Nov · join sweep: phone tile strips span the first tile, so an even count left the last tile alone with an empty
   grey cell beside it (Referrals, Directory). The lone last tile spans the row too. */
@container page (max-width: 760px) {
  .dt--a:not(.ov-strip):has(> .dt-t:nth-child(even):last-child) > .dt-t:last-child { grid-column: 1 / -1 !important; }
}

/* ── Filter line (26 Nov · Mikky picked A, "the quiet line"). One shared strip: CA().filterLine() + flUp() in app.js.
   The waiting row's language, class for class (.p2-wait: 40px, 16px sides, 13px): muted "Filter", then
   "[icon] <b>Value</b> noun ▾" items with no boxes; hover fills only the item; applied = accent value + a small ×. ── */
.toolbar.p2-fl { flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); min-height: 40px; padding: 6px var(--space-4); }
.p2-fl .p2-fl__list { align-items: center; gap: var(--space-2) var(--space-5); }
.p2-fl__f { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.p2-fl__f[hidden] { display: none; }
/* the trigger: ui.js's .msel button on the tab's own <select>, in the waiting item's type */
.p2-fl .msel.sel { min-height: 0; height: 28px; max-width: 260px; padding: 0 20px 0 6px; margin: 0 0 0 -6px; border: 0; border-radius: var(--radius-xs); background-color: transparent; background-position: right 5px center; background-size: 10px; font-size: var(--font-size-13); font-weight: var(--font-weight-regular); color: var(--color-text-secondary); box-shadow: none; transition: background-color var(--motion-duration-fast) var(--motion-easing-standard); }
.p2-fl .msel__t { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.p2-fl .msel__t > span { overflow: hidden; text-overflow: ellipsis; }
.p2-fl .msel .gi { flex: none; image-rendering: pixelated; }
.p2-fl .msel.sel b, .p2-fl__mb b { font-weight: var(--font-weight-semibold); color: var(--color-text-primary); }
.p2-fl__face { --fs: 16px; }
.p2-fl__face .face__av { display: none; }
@media (hover: hover) and (pointer: fine) { .p2-fl .msel.sel:hover, .p2-fl__qb:hover, .p2-fl__mb:hover { background-color: var(--color-bg-surface); color: var(--color-text-primary); } }
.p2-fl .msel.sel[aria-expanded="true"] { background-color: var(--color-bg-surface); color: var(--color-text-primary); }
.p2-fl .is-on .msel.sel b, .p2-fl .is-on .p2-fl__mb b { color: var(--color-text-accent); }
.p2-fl__x { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: var(--radius-xs); background: none; color: var(--color-text-tertiary); cursor: pointer; transition: color var(--motion-duration-fast) var(--motion-easing-standard), background-color var(--motion-duration-fast) var(--motion-easing-standard); }
.p2-fl__x svg, .p2-flsh__x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .p2-fl__x:hover { color: var(--color-text-primary); background: var(--color-bg-surface); } }
.p2-fl__clear { height: 24px; padding: 0 6px; margin: 0 -6px; border: 0; border-radius: var(--radius-xs); background: none; font: inherit; font-size: var(--font-size-13); color: var(--color-text-tertiary); cursor: pointer; transition: color var(--motion-duration-fast) var(--motion-easing-standard); }
@media (hover: hover) and (pointer: fine) { .p2-fl__clear:hover { color: var(--color-text-primary); background: var(--color-bg-surface); } }
/* Search: an item that opens into a field (surface fill, no box); collapses on blur or Esc while empty */
.p2-fl__qb, .p2-fl__mb { height: 28px; padding: 0 6px; margin: 0 -6px; border: 0; background: none; font: inherit; font-size: var(--font-size-13); cursor: pointer; transition: background-color var(--motion-duration-fast) var(--motion-easing-standard); }
.p2-fl__mb { gap: 6px; }
.p2-fl__ch { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.p2-fl__qf { display: none; align-items: center; gap: 6px; height: 28px; width: 232px; max-width: 100%; padding: 0 6px; margin: 0 -6px; border-radius: var(--radius-xs); background: var(--color-bg-surface); color: var(--color-text-tertiary); }
.p2-fl__qf .gi { flex: none; image-rendering: pixelated; }
.p2-fl__q.is-open .p2-fl__qb { display: none; }
.p2-fl__q.is-open .p2-fl__qf { display: inline-flex; }
.p2-fl__qf input { flex: 1; min-width: 0; height: 28px; padding: 0; border: 0; outline: 0; background: none; font: inherit; font-size: var(--font-size-13); color: var(--color-text-primary); }
.p2-fl__qf:focus-within { box-shadow: 0 0 0 1px var(--color-border-strong); }
.p2-fl__qf input::-webkit-search-cancel-button { display: none; }
@media (prefers-reduced-motion: no-preference) { .p2-fl__q.is-open .p2-fl__qf { animation: p2-fl-grow 160ms var(--motion-easing-out) both; } }
@keyframes p2-fl-grow { from { width: 92px; } }
:is(.p2-fl__x, .p2-fl__clear, .p2-fl__qb, .p2-fl__mb, .p2-fl .msel):focus-visible { outline: 2px solid var(--color-lilac-700); outline-offset: 1px; }
.p2-fl .end { margin-left: auto; }
.p2-fl .end .b { height: 28px; }
.p2-fl__ph { display: none; }
/* 390: one line, the fields fold into "[toggle] N filters ▾" + Search; the action keeps its count, drops its long words */
@media (max-width: 640px) {
  .toolbar.p2-fl { display: flex; flex-wrap: nowrap; gap: var(--space-2) var(--space-4); padding: 6px var(--space-3); }
  .p2-fl .p2-wait__l, .p2-fl__it, .p2-fl__clr { display: none !important; }
  .p2-fl .p2-fl__list { display: flex; flex-wrap: nowrap; gap: var(--space-6); min-width: 0; }
  .p2-fl .end .p2-fl__long { display: none; }   /* the action keeps its verb + count: <span class="p2-fl__long"> clear signups</span> */
  .p2-fl__ph { display: inline-flex; }
  .p2-fl__qf { width: 150px; }
  .p2-fl .end { width: auto; flex: none; }
  .p2-fl .end .b { padding: 0 8px; }
  .p2-fl .p2-wait__i { align-items: center; } .p2-fl .p2-wait__i img { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .p2-fl .msel, .p2-fl__x, .p2-fl__clear, .p2-fl__qb, .p2-fl__mb, .p2-fl__qf { transition: none !important; animation: none !important; } }
/* the 390 bottom sheet (v1 dialog kit look) */
.p2-flsh { width: min(480px, calc(100vw - var(--space-8))); max-height: calc(100dvh - var(--space-12)); padding: 0; border: 1px solid var(--color-border-default); border-radius: var(--radius-sm); background: var(--color-bg-canvas); color: var(--color-text-primary); box-shadow: var(--elevation-dialog); }
.p2-flsh::backdrop { background: var(--color-scrim-soft); }
.p2-flsh[open] { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) { .p2-flsh[open] { animation: p2-fl-up var(--motion-duration-base) var(--motion-easing-out); } }
@keyframes p2-fl-up { from { transform: translateY(12px); opacity: 0; } }
.p2-flsh__h { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-3) var(--space-2) var(--space-5); }
.p2-flsh__h h2 { flex: 1; margin: 0; font-family: var(--font-family-display); font-size: var(--font-size-14); font-weight: var(--font-weight-semibold); }
.p2-flsh__x { width: 32px; height: 32px; color: var(--color-text-tertiary); }
.p2-flsh__b { display: grid; gap: var(--space-4); padding: var(--space-2) var(--space-5) var(--space-4); overflow: auto; }
.p2-flsh__f { display: grid; gap: 6px; }
.p2-flsh__f > span { font-size: var(--font-size-12); font-weight: var(--font-weight-medium); color: var(--color-text-secondary); }
.p2-flsh__ft { display: flex; padding: var(--space-3) var(--space-5) var(--space-5); border-top: 1px solid var(--se-line); }
.p2-flsh__ft .b { flex: 1; }
.p2-flsh :is(.msel, .p2-fl__clear, .b):focus-visible { outline: 2px solid var(--color-lilac-700); outline-offset: 1px; }
@media (max-width: 560px) { .p2-flsh { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); } }

/* + lines 379–383 (save-failed line, K38) */
/* Outcome dialogs use the v1 decision header (no generic tick); the save-failed line carries the pixel flag */
#dlg.dlg--outcome .lg-h { padding-bottom: var(--space-5); }
.p2-savefail { display: flex; align-items: center; gap: 8px; }
.p2-savefail .gi { flex: none; image-rendering: pixelated; }
.lp2-chip .gi { image-rendering: pixelated; }
