/* DM Sans, the face every page names, served from vendor/ (scripts/vendor.mjs).
   Until 2 Oct only the assessment loaded it, so every other page fell back to
   the device's own font and looked different on each (audit, 30 Sep). One
   variable file holds every weight; Latin Extended is fetched only by a page
   that shows one of its letters. swap: the text is drawn at once in the
   fallback, never held back. */
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:100 1000; font-display:swap;
  src:url('vendor/dm-sans-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:100 1000; font-display:swap;
  src:url('vendor/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Fraunces, the display serif (UI audit, P1; Willy, 2 Oct): page titles,
   headings and the hero figures, where Georgia was. Its figures line up,
   which Georgia's never did, and it has an optical-size axis, so the one
   file draws a 34px figure finer than a 17px heading. The same subsets as
   DM Sans; vendored by scripts/vendor.mjs. Georgia stays as the fallback
   while it loads, and offline before it has been cached. */
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:100 900; font-display:swap;
  src:url('vendor/fraunces-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:100 900; font-display:swap;
  src:url('vendor/fraunces-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* The type scale: seven sizes, and nothing between them (UI audit, P1).
   A heading takes one by its job: the hero figure, a page's title, a
   section or a modal, a card's or a row's name; the text, small text and
   captions under them. Pages take the scale as they are next changed, the
   way they take the kit; every display heading already has. */
:root {
  --font-display:'Fraunces', Georgia, serif;
  --fs-hero:34px; --fs-title:26px; --fs-h2:20px; --fs-h3:17px;
  --fs-body:15px; --fs-sm:13px; --fs-cap:12px;
}

/* Space, corners and widths (UI audit, P2): seven steps of space, three
   corners, two widths. As with the type scale, a page takes them as it is
   next changed; the button below already has. */
:root {
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px; --sp-7:48px;
  --r-sm:8px; --r-md:12px; --r-round:999px;
  --w-read:760px; --w-list:1120px;
}

/* The button, one for every page (UI audit, P2: "one .btn instead of 23").
   Each page had a copy, and they had drifted: 13 to 14px, padding 7 to 10,
   corners 8 or 9. One class each and no more, and this file comes first,
   so a page with a look of its own (the Holt, the assessment, the client's
   statement and comparison, the Excel pages from fa) still decides its own
   buttons. Not :where(), which weighs nothing: a page's * { padding:0 }
   then took the padding off every button. Every variant has the same
   1px border, transparent where it has none to show, so a ghost and a
   primary side by side are the same height. */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:var(--sp-2);
  cursor:pointer; border:1px solid transparent; border-radius:var(--r-sm); font-family:inherit;
  font-size:var(--fs-body); font-weight:600; line-height:1.25; padding:8px var(--sp-4);
  text-decoration:none; transition:background-color .15s, border-color .15s, color .15s; }
/* One action colour (audit, 30 Sep): the main button is teal on every page;
   gold is kept for what was earned (tiers, awards, the Holt). */
.btn-primary { background:var(--teal); color:#04110f; }
@media (hover:hover) { .btn-primary:hover { background:#7dd4d0; } }
.btn-ghost { background:transparent; border-color:var(--border-lt); color:var(--dim); }
@media (hover:hover) { .btn-ghost:hover { border-color:var(--teal); color:var(--text); } }
.btn-danger { background:transparent; border-color:var(--danger); color:var(--danger-tx); }
@media (hover:hover) { .btn-danger:hover { background:var(--danger-wash); } }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }

/* AgencyOS's palette, once (docs/DESIGN-ui-kit.md). Every page links this
   before its own <style>. A page with a look of its own (the public intake
   form, the client's statement and the comparison, the Holt) overrides
   after it, as its own rules come later.

   Dark is the default; theme.js sets data-theme on <html> before the first
   paint, from the Auto / Light / Dark switch. An accent's "-tx" shade is the
   one for text on the page's background: in light mode the accent itself is
   too pale to read at body size. A "-wash" is a tint for a filled row or
   panel behind text.

   Fewer boxes (UI audit, P2): a card is set apart by its tone against the
   page, and its border only finishes the edge. So the light page is a
   shade darker than its white cards, the dark card a shade lighter than
   its page, and --border sits close to the card in both. It is the same
   colour as a card's inner dividers, which stay faint on purpose. */

:root, [data-theme="dark"] {
  --bg:#09090f; --card:#13131b; --card2:#1a1a23;
  --border:#1d1d2a; --border-lt:#2a2a3e; --field-edge:#7a7a8c;
  --text:#e8e8f0; --dim:#a0a0c2;
  --teal:#5bbfba;   --teal-tx:#5bbfba;
  --gold:#d4a853;   --gold-tx:#d4a853;
  --amber:#e0a657;  --amber-tx:#e0a657;
  --green:#52c97e;  --green-tx:#52c97e;
  --danger:#e05757; --danger-tx:#e05757;
  --violet-tx:#a98cf0; --blue-tx:#66a6e8;
  --teal-wash:rgba(91,191,186,.08); --gold-wash:rgba(212,168,83,.10);
  --amber-wash:rgba(224,166,87,.12); --danger-wash:rgba(224,87,87,.12);
}

[data-theme="light"] {
  --bg:#f1f1f6; --card:#ffffff; --card2:#ededf4;
  --border:#e6e6ef; --border-lt:#d0d0e4; --field-edge:#7a7a88;
  --text:#1a1a2e; --dim:#4a4a63;
  --teal:#2a8f8a;   --teal-tx:#176662;
  --gold:#b07d20;   --gold-tx:#7d5714;
  --amber:#c98a1e;  --amber-tx:#8a5f14;
  --green:#2f9a5c;  --green-tx:#1d6b3e;
  --danger:#c94747; --danger-tx:#9e2c2c;
  --violet-tx:#553497; --blue-tx:#1f5892;
  --teal-wash:rgba(42,143,138,.08); --gold-wash:rgba(176,125,32,.10);
  --amber-wash:rgba(201,138,30,.12); --danger-wash:rgba(201,71,71,.10);
}

/* The rules pages share, for a page on the kit only: its <body class="kit">.
   A page not yet moved never matches them, so linking this file changes
   nothing but its colours. Each selector sits inside :where(), which weighs
   nothing, so a rule here is exactly as specific as the page's own copy
   would be: the page's rule, coming later, wins wherever the two meet. */
:where(.kit), :where(.kit) * { box-sizing:border-box; }
:where(body.kit) { margin:0; min-height:100vh; background:var(--bg); color:var(--text);
  font-family:'DM Sans',-apple-system,system-ui,sans-serif; }
/* A browser draws buttons and fields in its own font (Arial on Windows)
   unless told otherwise, so a page that never said so had Arial buttons and
   boxes beside DM Sans text. Family only, and a type selector, so a page
   that sets its own still wins. From fa, f4edebc (D3). */
button, input, select, textarea { font-family:inherit; }
/* One focus ring for everything a keyboard can reach (from fa, A3). Most
   controls had none but the browser's, which is a thin blue line on some
   platforms and nothing at all on others. It is :where(), so it weighs
   nothing: a page's own ring (a field's :focus border, the menu's, a strip's
   inset one) still wins where one was drawn on purpose. --teal-tx, not
   --teal: on the light ground --teal is under the 3:1 a focus indicator
   needs, and the text twin clears it in both themes. An element given
   tabindex="-1" only to be focused by a script (a dialog, a page's main
   area) is not a control, so it is left out. */
:where(a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline:2px solid var(--teal-tx, var(--teal)); outline-offset:2px; }
/* "Skip to content" (nav.js): off the page until a keyboard reaches it, the
   first thing it does, then in the corner over the menu it skips. */
.appnav-skip { position:absolute; top:-100px; left:16px; z-index:30; background:var(--teal); color:#04110f;
  padding:10px 18px; border-radius:var(--r-sm); font-size:13px; font-weight:600; text-decoration:none; white-space:nowrap; }
.appnav-skip:focus { top:12px; }
.appnav-skip:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
/* Where it lands: below the sticky menu, and with no ring of its own, since
   the page itself is not a control. */
[data-appnav-main] { scroll-margin-top:72px; }
[data-appnav-main]:focus { outline:none; }
@media print { .appnav-skip { display:none !important; } }
:where(.kit) a { color:var(--teal-tx); text-decoration:none; }
/* Hover effects are gated on (hover:hover): a touch screen fakes a hover on
   tap and leaves it stuck on whatever was touched last. */
@media (hover:hover) { :where(.kit) a:hover { text-decoration:underline; } }
:where(.kit) .num { font-variant-numeric:tabular-nums; }
:where(.kit) .sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* The column under the menu (the menu is nav.js's, below) */
:where(.kit) .container { max-width:960px; margin:0 auto; padding:24px 24px 80px; }
:where(.kit) .head { display:flex; align-items:flex-end; justify-content:space-between; gap:10px 16px;
  flex-wrap:wrap; margin-bottom:14px; }
:where(.kit) h1.page { font-family:var(--font-display); font-size:var(--fs-title); font-weight:500; margin:0; overflow-wrap:anywhere; }
:where(.kit) .subline { color:var(--dim); font-size:13px; margin:4px 0 0; }

/* The segmented switch, selects (the button is above, for every page) */
:where(.kit) :is(.seg button, select):focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
/* Never wider than its column: more choices than a phone is wide (Brain's six
   tabs, an administrator's) scroll within it, never the page. */
:where(.kit) .seg { display:inline-flex; max-width:100%; border:1px solid var(--border-lt); border-radius:10px;
  overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:var(--border-lt) transparent; }
:where(.kit) .seg button { flex:none; white-space:nowrap; background:none; border:none; color:var(--dim); font:inherit; font-size:13px;
  font-weight:600; padding:6px 13px; cursor:pointer; }
:where(.kit) .seg button[aria-pressed="true"] { background:var(--card2); color:var(--text);
  box-shadow:inset 0 -2px 0 var(--teal); }
:where(.kit) select { padding:8px 12px; border-radius:9px; border:1px solid var(--field-edge);
  background:var(--card2); color:var(--text); font-size:14px; font-family:inherit; max-width:100%; }

/* Panels, and what a panel says when there is nothing, or a problem (ui.js
   <Empty> and <Problem>) */
:where(.kit) .panel { background:var(--card); border:1px solid var(--border); border-radius:14px;
  padding:20px 22px; margin-bottom:18px; }
:where(.kit) .panel > h2 { margin:0 0 12px; font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold-tx); font-weight:700; }
:where(.kit) .pnote { font-size:12.5px; color:var(--dim); margin:14px 0 0; line-height:1.6; max-width:70ch; }
:where(.kit) .none { font-size:13.5px; color:var(--dim); padding:6px 0; line-height:1.6; }
:where(.kit) .empty { text-align:center; padding:30px 20px; }
:where(.kit) .empty .mark { font-size:28px; line-height:1; }
:where(.kit) .empty h3 { font-family:var(--font-display); font-size:var(--fs-h2); margin:12px 0 6px; font-weight:400; }
:where(.kit) .empty p { font-size:13px; color:var(--dim); margin:0 auto; max-width:44em; line-height:1.65; }
:where(.kit) .empty .btn { margin-top:16px; }

/* Forms: the calendar's and coaching's, as a page on the kit shares them. A
   field is a label around its title and its input; .hint is a line of help
   under the title. .btn-primary is the one action a form is for. */
:where(.kit) .form { display:flex; flex-direction:column; gap:14px; }
:where(.kit) .f { display:flex; flex-direction:column; gap:6px; font-size:11px; letter-spacing:.1em;
  text-transform:uppercase; font-weight:700; color:var(--dim); }
:where(.kit) .f .hint { text-transform:none; letter-spacing:0; font-weight:400; font-size:12px; }
:where(.kit) :is(input[type=text], input[type=number], input[type=search], textarea) { width:100%;
  padding:10px 12px; border-radius:9px; border:1px solid var(--field-edge); background:var(--card2);
  color:var(--text); font-size:15px; font-family:inherit; }
:where(.kit) .f select { width:100%; padding:10px 12px; font-size:15px; }
/* A date box as a field, with the browser's own calendar in the page's
   theme: unstyled, it drew white on the dark pages (KPIs, 17 Oct). */
:where(.kit) input[type=date] { padding:9px 12px; border-radius:9px; border:1px solid var(--field-edge);
  background:var(--card2); color:var(--text); font-size:15px; font-family:inherit; color-scheme:dark; }
:where([data-theme="light"]) :where(.kit) input[type=date] { color-scheme:light; }
:where(.kit) textarea { resize:vertical; min-height:70px; line-height:1.5; }
:where(.kit) :is(input, textarea, .f select):focus { border-color:var(--teal); outline:2px solid var(--teal); outline-offset:1px; }
:where(.kit) ::placeholder { color:var(--dim); opacity:1; }
:where(.kit) .row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
:where(.kit) .acts { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
:where(.kit) .ticks { display:flex; flex-wrap:wrap; gap:8px 18px; }
:where(.kit) .tick { display:flex; gap:8px; align-items:center; font-size:14px; cursor:pointer;
  text-transform:none; letter-spacing:0; font-weight:400; color:var(--text); }
:where(.kit) .tick input { width:18px; height:18px; margin:0; accent-color:var(--teal); flex:none; }
:where(.kit) .msg { font-size:13px; line-height:1.5; }
:where(.kit) .msg.good { color:var(--teal-tx); }
:where(.kit) .msg.bad { color:var(--danger-tx); }

/* A person's circle: their picture, or their initials (public/face.js). Not
   under .kit, since Numbers and Coaching show it too; --face sets its size. */
:where(.kface) { --face:26px; width:var(--face); height:var(--face); border-radius:50%; flex:none;
  display:inline-grid; place-items:center; vertical-align:middle; overflow:hidden;
  background:var(--card2); border:1px solid var(--border-lt); color:var(--dim);
  font-size:calc(var(--face) * .38); font-weight:800; line-height:1; letter-spacing:0; }
:where(.kface) img { width:100%; height:100%; object-fit:cover; display:block; }

@media (max-width:720px) {
  :where(.kit) .container { padding:18px 16px 70px; }
  :where(.kit) h1.page { font-size:25px; }
  :where(.kit) .panel { padding:16px; }
  :where(.kit) .row2 { grid-template-columns:1fr; }
}

/* The menu on every signed-in page (nav.js): for every page that links this
   file, on the kit or not, so none of it sits inside :where(.kit). Sticky,
   so Home is always a tap away; below every modal (50 and up). */
.appnav { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:6px;
  padding:10px 24px; background:var(--bg); border-bottom:1px solid var(--border);
  font-family:inherit; font-size:14px; }
.appnav a { text-decoration:none; }
.appnav-brand { font-family:var(--font-display); font-size:var(--fs-h2); font-weight:500; color:var(--text); margin-right:10px; white-space:nowrap; }
.appnav-brand span { color:var(--teal-tx); }
.appnav-brand { display:inline-flex; align-items:center; gap:10px; }
.appnav-logo { display:block; height:28px; width:auto; max-width:120px; object-fit:contain; }
@media (max-width:720px) { .appnav-logo { height:24px; max-width:84px; } }
.appnav-home, .appnav-toggle, .appnav-quick { display:inline-flex; align-items:center; gap:6px; padding:7px 12px;
  border-radius:9px; border:1px solid transparent; background:none; color:var(--dim); font:inherit;
  font-weight:600; cursor:pointer; white-space:nowrap; }
.appnav-toggle::after { content:''; width:6px; height:6px; margin-left:2px; border:solid currentColor;
  border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg); }
.appnav-home[aria-current="page"], .appnav-toggle.here, .appnav-quick[aria-current="page"] {
  color:var(--text); background:var(--card2); border-color:var(--border-lt); }
.appnav-groups { display:flex; gap:2px; }
.appnav-group { position:relative; }
.appnav-space { flex:1; }
.appnav-badge { background:var(--teal); color:var(--bg); border-radius:100px; padding:1px 7px;
  font-size:11px; font-weight:800; font-variant-numeric:tabular-nums; }
.appnav-quick[href="/my-day"] .appnav-badge { background:var(--gold); }
.appnav-menu { display:none; position:absolute; top:calc(100% + 6px); left:0; min-width:210px; z-index:21;
  padding:6px; background:var(--card); border:1px solid var(--border-lt); border-radius:12px;
  box-shadow:0 12px 32px rgba(0,0,0,.28); }
.appnav-menu.open { display:grid; }
.appnav-menu-end { left:auto; right:0; }
.appnav-menu a, .appnav-item { display:block; width:100%; text-align:left; padding:9px 12px; border-radius:8px;
  border:none; background:none; color:var(--text); font:inherit; cursor:pointer; }
.appnav-menu a[aria-current="page"] { background:var(--teal-wash); color:var(--teal-tx); font-weight:700; }
.appnav-who { padding:8px 12px 10px; margin-bottom:4px; border-bottom:1px solid var(--border);
  font-size:12px; color:var(--dim); overflow-wrap:anywhere; }
.appnav-who b { color:var(--text); }
/* The keyboard shortcuts, at the foot of the account menu. A phone has no
   keys to press, so there the line goes. */
.appnav-keys { padding:8px 12px 4px; margin-top:4px; border-top:1px solid var(--border);
  font-size:12px; color:var(--dim); }
.appnav-keys kbd { font:inherit; font-weight:700; color:var(--text); padding:0 5px;
  border:1px solid var(--border-lt); border-radius:var(--r-sm); }
@media (hover:none) and (pointer:coarse) { .appnav-keys { display:none; } }
.appnav-face { width:34px; height:34px; border-radius:50%; margin-left:4px; cursor:pointer;
  background:var(--card2); border:1px solid var(--border-lt); color:var(--text); font:inherit; font-weight:800; }
.appnav :is(a, button):focus-visible, .appnav-foot :is(a, button):focus-visible, .appnav-sheet a:focus-visible {
  outline:2px solid var(--teal); outline-offset:2px; }
@media (hover:hover) {
  .appnav-home:hover, .appnav-toggle:hover, .appnav-quick:hover { color:var(--text); }
  .appnav-menu a:hover, .appnav-item:hover, .appnav-sheet a:hover { background:var(--card2); }
}
.appnav [hidden], .appnav-foot [hidden], .appnav-sheet [hidden] { display:none; }

/* Search from any page (nav.js, UI audit P2): the button in the bar, a
   field's look so it reads as search; on a narrower bar, the lens alone.
   The finder is a <dialog>, over everything, a little above the middle. */
.appnav-find { display:inline-flex; align-items:center; gap:8px; min-width:210px; margin-right:6px;
  padding:6px 8px 6px 12px; border-radius:9px; border:1px solid var(--border-lt); background:var(--card);
  color:var(--dim); font:inherit; cursor:pointer; white-space:nowrap; }
.appnav-find-ico { display:inline-flex; }
.appnav-find-t { flex:1; text-align:left; }
.appnav-find kbd { font:inherit; font-size:11px; line-height:1.5; padding:0 6px; border:1px solid var(--border-lt);
  border-radius:5px; color:var(--dim); }
@media (hover:hover) { .appnav-find:hover { color:var(--text); border-color:var(--teal); } }
@media (max-width:1180px) {
  .appnav-find { min-width:0; padding:7px 9px; }
  .appnav-find-t, .appnav-find kbd { display:none; }
}
.appnav-finder { width:min(560px, calc(100vw - 32px)); margin:12vh auto auto; padding:0;
  border:1px solid var(--border-lt); border-radius:14px; background:var(--card); color:var(--text);
  box-shadow:0 24px 60px rgba(0,0,0,.4); }
.appnav-finder::backdrop { background:rgba(0,0,0,.5); }
.appnav-finder input { display:block; width:100%; box-sizing:border-box; padding:16px 18px; border:0;
  border-bottom:1px solid var(--border); border-radius:14px 14px 0 0; background:none; color:var(--text);
  font:inherit; font-size:16px; outline:none; }
.appnav-finder input:focus-visible { box-shadow:inset 0 -2px 0 var(--teal); }
.appnav-hits { list-style:none; margin:0; padding:6px; max-height:min(420px, 50vh); overflow-y:auto; }
.appnav-hits:empty { display:none; }
.appnav-hit { display:flex; flex-direction:column; gap:2px; padding:9px 12px; border-radius:8px; cursor:pointer; }
.appnav-hit[aria-selected="true"] { background:var(--teal-wash); }
@media (hover:hover) { .appnav-hit:hover { background:var(--card2); } }
.appnav-hit-n { font-weight:600; overflow-wrap:anywhere; }
.appnav-hit-s { font-size:var(--fs-sm); color:var(--dim); overflow-wrap:anywhere; }
.appnav-find-note { margin:0; padding:10px 18px 14px; font-size:var(--fs-sm); color:var(--dim); }

/* The phone's bar at the bottom, and More's sheet over the page. Hidden on a
   wider screen, where the groups fit at the top. */
.appnav-foot, .appnav-sheet, .appnav-spacer, .appnav-switch { display:none; }
@media (max-width:720px) {
  .appnav { padding:8px 16px; }
  .appnav-groups, .appnav-home, .appnav-quick { display:none; }
  body.has-appnav-foot .appnav-foot { display:grid; grid-auto-flow:column; grid-auto-columns:1fr;
    position:fixed; left:0; right:0; bottom:0; z-index:20; background:var(--card);
    border-top:1px solid var(--border); padding:6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .appnav-tab { display:flex; flex-direction:column; align-items:center; gap:2px; padding:4px 0;
    background:none; border:none; font:inherit; font-size:11px; color:var(--dim); cursor:pointer; text-decoration:none; }
  .appnav-tab[aria-current], .appnav-tab[aria-expanded="true"] { color:var(--teal-tx); }
  .appnav-ico { font-size:19px; line-height:1.1; }
  body.has-appnav-foot .appnav-sheet:not([hidden]) { display:block; position:fixed; left:0; right:0;
    bottom:calc(58px + env(safe-area-inset-bottom, 0px)); max-height:70vh; overflow-y:auto; z-index:20;
    background:var(--card); border-top:1px solid var(--border-lt); padding:8px 16px 12px;
    box-shadow:0 -12px 32px rgba(0,0,0,.28); }
  /* More: each group a panel in its own colour, its pages as tiles. */
  .appnav-sheet section[data-tone="book"] { --tone:var(--teal); --tone-tx:var(--teal-tx); }
  .appnav-sheet section[data-tone="work"] { --tone:var(--gold); --tone-tx:var(--gold-tx); }
  .appnav-sheet section[data-tone="team"] { --tone:var(--violet-tx); --tone-tx:var(--violet-tx); }
  .appnav-sheet section[data-tone="account"] { --tone:var(--blue-tx); --tone-tx:var(--blue-tx); }
  .appnav-sheet section { margin-top:10px; padding:10px 8px 8px; border-radius:14px;
    background:color-mix(in srgb, var(--tone) 7%, transparent);
    border:1px solid color-mix(in srgb, var(--tone) 24%, transparent); }
  .appnav-sheet h2 { display:flex; align-items:center; gap:8px; font-size:11px; letter-spacing:.08em;
    text-transform:uppercase; color:var(--tone-tx); margin:0 4px 6px; font-weight:800; }
  .appnav-sheet h2::before { content:''; width:8px; height:8px; border-radius:50%; background:var(--tone); }
  .appnav-tiles { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:2px; }
  .appnav-sheet a.appnav-tile { display:flex; flex-direction:column; align-items:center; gap:6px; padding:8px 2px 6px;
    min-height:72px; border-radius:10px; color:var(--text); text-decoration:none; text-align:center;
    font-size:11.5px; line-height:1.25; }
  /* Outweighs the tile's own display, as [hidden] alone would not (Admin, the Holt). */
  .appnav-sheet a.appnav-tile[hidden] { display:none; }
  .appnav-tile-ico { width:36px; height:36px; border-radius:11px; display:grid; place-items:center; font-size:20px;
    color:var(--tone-tx); background:color-mix(in srgb, var(--tone) 18%, transparent); }
  .appnav-sheet a.appnav-tile[aria-current="page"] { background:color-mix(in srgb, var(--tone) 16%, transparent);
    font-weight:700; }
  .appnav-sheet a.appnav-tile[aria-current="page"] .appnav-tile-ico { background:var(--tone); color:var(--card); }
  /* Clients or Prospects, at the top of each: the bar has one tab for both. */
  body.has-appnav-foot .appnav-switch { display:flex; gap:4px; margin:10px 16px 0; padding:3px; border-radius:100px;
    background:var(--card2); border:1px solid var(--border); }
  .appnav-switch a { flex:1; display:grid; place-items:center; min-height:40px; border-radius:100px; color:var(--dim);
    font-size:14px; font-weight:600; text-decoration:none; }
  .appnav-switch a[aria-current] { background:var(--card); color:var(--text); box-shadow:0 1px 3px rgba(0,0,0,.18); }
  /* Room for the bar under the page's last line, and its toasts above it. */
  body.has-appnav-foot .appnav-spacer { display:block; height:calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.has-appnav-foot :is(.toast, .kyp-toast, #uploadToast) { bottom:calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Compact parts, for every page (Willy, 30 Sep: "clean, neat and small").
   A strip of counts (.tally): one row, each cell a number over a word, in the order
   the page reads them; a cell may be a button, a filter. And a small button,
   two classes so it wins over a page's own .btn. */
.tally { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); margin:14px 0 10px;
  background:var(--card); border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.tally > * { background:none; border:0; border-left:1px solid var(--border); color:var(--text);
  padding:8px 4px 7px; text-align:center; font:inherit; min-width:0; text-decoration:none; }
.tally > :first-child { border-left:0; }
.tally[hidden] { display:none; }
/* A hero figure: in Fraunces, whose numerals line up but are proportional,
   so a figure in it stands alone, as each count here does, never in a column. */
.tally .n { display:block; font-family:var(--font-display); font-size:var(--fs-h2); font-weight:600; line-height:1.2; }
.tally .l { display:block; font-size:11px; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tally button, .tally a { cursor:pointer; }
@media (hover:hover) { .tally button:hover, .tally a:hover { background:var(--card2); } }
.tally .on { background:rgba(91,191,186,.12); box-shadow:inset 0 -2px 0 var(--teal); }
.tally .teal .n { color:var(--teal-tx); }
.tally .gold .n { color:var(--gold-tx); }
.tally .danger .n { color:var(--danger-tx); }
.tally .green .n { color:var(--green-tx); }
.btn.btn-sm { font-size:var(--fs-sm); padding:6px var(--sp-3); border-radius:var(--r-sm); gap:6px; }

/* A row of small counts under a strip: only what asks for a move, each a
   filter or a link. */
.nudges { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 14px; }
.nudge { background:transparent; border:1px solid var(--border-lt); color:var(--dim); border-radius:999px;
  padding:3px 10px; font:inherit; font-size:12.5px; line-height:1.5; }
button.nudge, a.nudge { cursor:pointer; }
.nudge b { color:var(--text); font-variant-numeric:tabular-nums; }
/* Gold is "your move"; danger is late. */
.nudge.warn, .nudge.warn b { color:var(--gold-tx); }
.nudge.warn { border-color:var(--gold); }
.nudge.danger, .nudge.danger b { color:var(--danger-tx); }
.nudge.danger { border-color:var(--danger); }
a.nudge { text-decoration:none; }
@media (hover:hover) { button.nudge:hover, a.nudge:hover { border-color:var(--teal); } }
.nudge.on { border-color:var(--teal); background:rgba(91,191,186,.1); }
.nudges .calm { font-size:12.5px; color:var(--dim); padding:3px 2px; }
.nudges .end { margin-left:auto; }

/* Folded panels. The browser's own triangle is a different size and colour
   on every platform, and a small one was missed: nobody saw the panel
   could open. So the summary says it, Show or Hide, with a chevron that
   turns, on the side a thumb reaches. Shut, the panel is a line or two. */
details.fold { padding:12px 16px; }
.fold > summary { cursor:pointer; list-style:none; display:flex; align-items:center; gap:6px 10px; flex-wrap:wrap; }
.fold > summary::-webkit-details-marker { display:none; }
.fold .fold-t { font-size:12px; letter-spacing:.05em; text-transform:uppercase; color:var(--gold-tx); font-weight:700; }
.fold .fold-sub { font-size:12.5px; color:var(--dim); }
.fold .fold-btn { margin-left:auto; display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600;
  color:var(--dim); border:1px solid var(--border-lt); border-radius:999px; padding:2px 9px 2px 10px; }
.fold .fold-btn::before { content:'Show'; }
.fold[open] .fold-btn::before { content:'Hide'; }
.fold .fold-btn::after { content:''; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg); transition:transform .15s; }
.fold[open] .fold-btn::after { transform:translateY(1px) rotate(-135deg); }
@media (hover:hover) { .fold > summary:hover .fold-btn { border-color:var(--teal); color:var(--text); } }
.fold[open] > summary { margin-bottom:12px; }

/* A toggle among a few, pressed ones filled and ticked: how the coach
   speaks (Brain), what kind of day it is (Your day). */
:where(.kit) .tone { min-height:44px; padding:8px 14px; border-radius:100px; border:1px solid var(--field-edge);
  background:var(--card2); color:var(--text); font:inherit; font-size:14px; font-weight:600;
  letter-spacing:0; text-transform:none; cursor:pointer; }
:where(.kit) .tone[aria-pressed="true"] { background:var(--teal-wash); color:var(--teal-tx); border-color:var(--teal); }
:where(.kit) .tone[aria-pressed="true"]::before { content:'✓ '; }
:where(.kit) .tone:disabled { opacity:.45; cursor:default; }

/* Your day (kit/day-card.js): the card at the top of My coach, and on Today.
   A ring per target, "5 of 20", filled when met; the coach's line; the week. */
:where(.kit) .daycard { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:16px;
  margin-bottom:18px; max-width:var(--w-read); display:flex; flex-direction:column; gap:12px; }
:where(.kit) .daycard .day-top { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
:where(.kit) .daycard h2 { margin:0; font-family:var(--font-display); font-size:var(--fs-h3); }
:where(.kit) .daycard .day-more { font-size:13px; font-weight:600; white-space:nowrap; }
:where(.kit) .daycard .day-kinds { display:flex; flex-wrap:wrap; gap:8px; }
:where(.kit) .daycard .day-line { margin:0; font-size:15px; line-height:1.5; padding:10px 13px; border-radius:12px;
  background:var(--teal-wash); color:var(--text); border:1px solid var(--border-lt); }
:where(.kit) .daycard .rings { display:grid; grid-template-columns:repeat(auto-fill, minmax(84px, 1fr)); gap:12px 8px; }
:where(.kit) .daycard .ring { position:relative; display:flex; flex-direction:column; align-items:center; gap:4px; }
:where(.kit) .daycard .ring svg { width:64px; height:64px; transform:rotate(-90deg); }
:where(.kit) .daycard .ring circle { fill:none; stroke-width:6; }
:where(.kit) .daycard .ring .track { stroke:var(--card2); }
:where(.kit) .daycard .ring .arc { stroke:var(--gold); stroke-linecap:round; transition:stroke-dashoffset .5s ease; }
:where(.kit) .daycard .ring.met .arc { stroke:var(--teal); }
/* The count over its target, "of 20" on a line of its own: "1/20" in one
   line read as 21 on a phone (Willy, 17 Oct). */
:where(.kit) .daycard .ring .n { position:absolute; top:0; left:0; right:0; height:64px; display:flex; flex-direction:column;
  align-items:center; justify-content:center; font-weight:800; line-height:1.05;
  font-size:17px; font-variant-numeric:tabular-nums; }
:where(.kit) .daycard .ring .n small { display:block; font-size:10px; font-weight:600; color:var(--dim); }
:where(.kit) .daycard .ring .l { font-size:12px; color:var(--dim); }
:where(.kit) .daycard .ring .btn-sm { min-width:56px; }
:where(.kit) .daycard .day-week { margin:0; font-size:13px; color:var(--dim); line-height:1.5; }
:where(.kit) .daycard .day-week b { color:var(--text); margin-right:6px; }
/* The coach's own lines today, under the week (slice 6a), and on My coach
   the person's switch for them. */
:where(.kit) .daycard .day-said { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
:where(.kit) .daycard .day-said li { font-size:14px; line-height:1.5; padding:8px 12px; border-radius:10px;
  background:var(--teal-wash); border-left:3px solid var(--teal); }
:where(.kit) .daycard .day-said b { display:block; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-tx); }
:where(.kit) .daycard .day-said a { color:var(--teal-tx); white-space:nowrap; }
:where(.kit) .daycard .day-lines-set { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline; margin-top:10px;
  font-size:12.5px; color:var(--dim); }
:where(.kit) .daycard .day-lines-set b { color:var(--text); margin-right:4px; }
:where(.kit) .daycard .day-lines-set .acts { display:flex; flex-wrap:wrap; gap:10px; }

/* The check-in (kit/checkin-card.js), under Your day on Today and My coach:
   three rows of five, 44px each to a thumb; after a low one, the agency's
   wellbeing contact; folded to a line on a day it was skipped. And the
   month's line on Coaching › Me (kit/pages/checkin-month.js). */
:where(.kit) .checkin { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:16px;
  margin-bottom:18px; max-width:var(--w-read); display:flex; flex-direction:column; gap:12px; }
:where(.kit) .checkin form { display:flex; flex-direction:column; gap:12px; }
:where(.kit) .checkin .ci-top { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
:where(.kit) .checkin h2 { margin:0; font-family:var(--font-display); font-size:var(--fs-h3); }
:where(.kit) .checkin .ci-time { font-size:12px; color:var(--dim); }
:where(.kit) .checkin .ci-scale { border:none; margin:0; padding:0; min-width:0; }
:where(.kit) .checkin .ci-scale legend { font-size:13px; font-weight:700; margin-bottom:6px; padding:0; }
:where(.kit) .checkin .ci-dots { display:grid; grid-template-columns:repeat(5, minmax(44px, 1fr)); gap:6px; max-width:340px; }
:where(.kit) .checkin .ci-dots button { min-height:44px; border-radius:12px; border:1px solid var(--field-edge);
  background:var(--card2); color:var(--text); font:inherit; font-size:16px; font-weight:700; cursor:pointer;
  font-variant-numeric:tabular-nums; }
:where(.kit) .checkin .ci-dots button[aria-pressed="true"] { background:var(--teal-wash); color:var(--teal-tx); border-color:var(--teal); }
:where(.kit) .checkin .ci-dots button:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
:where(.kit) .checkin .ci-ends { display:flex; justify-content:space-between; max-width:340px; margin-top:4px;
  font-size:11.5px; color:var(--dim); }
:where(.kit) .checkin .ci-hit { display:flex; flex-wrap:wrap; gap:8px; }
:where(.kit) .checkin .ci-said { margin:0; font-size:15px; line-height:1.5; }
:where(.kit) .checkin .ci-low { margin:0; font-size:14.5px; line-height:1.5; padding:10px 13px; border-radius:12px;
  background:var(--amber-wash); border-left:3px solid var(--amber); }
:where(.kit) .checkin .ci-private { margin:0; font-size:12.5px; color:var(--dim); }
:where(.kit) .checkin .ci-chat { margin:0; font-size:13.5px; color:var(--dim); display:flex; flex-wrap:wrap; gap:8px;
  align-items:center; border-top:1px solid var(--border-lt); padding-top:10px; }
:where(.kit) .checkin.folded { flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between;
  padding:10px 16px; font-size:13.5px; color:var(--dim); }
:where(.kit) .ci-month .ci-avgs { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; }
:where(.kit) .ci-month .ci-avg { display:flex; flex-direction:column; gap:2px; }
:where(.kit) .ci-month .ci-avg .k { font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--dim); font-weight:700; }
:where(.kit) .ci-month .ci-avg b { font-size:22px; font-variant-numeric:tabular-nums; }
:where(.kit) .ci-month .ci-avg small { font-size:12px; color:var(--dim); }
:where(.kit) .ci-month svg { width:100%; height:auto; max-width:var(--w-read); display:block; margin-top:8px; }
:where(.kit) .ci-month svg .line { fill:none; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
:where(.kit) .ci-month svg .energy { stroke:var(--teal); }
:where(.kit) .ci-month svg .mood { stroke:var(--gold); }
:where(.kit) .ci-month svg .focus { stroke:var(--dim); stroke-dasharray:4 3; }
:where(.kit) .ci-month svg .grid { stroke:var(--border-lt); stroke-width:1; }
:where(.kit) .ci-month svg text { fill:var(--dim); font-size:10px; }
:where(.kit) .ci-month .ci-key { display:flex; flex-wrap:wrap; gap:4px 14px; font-size:12px; color:var(--dim); margin-top:6px; }
:where(.kit) .ci-month .ci-key i { display:inline-block; width:14px; height:3px; border-radius:2px; vertical-align:middle; margin-right:5px; }
:where(.kit) .daycard .day-lines-set .linkbtn { color:var(--teal-tx); text-decoration:underline; font-size:12.5px; }
/* Telegram in place of phone notifications, on a line of its own. */
:where(.kit) .daycard .day-lines-tg { flex-basis:100%; }
:where(.kit) .daycard .day-lines-tg a { color:var(--teal-tx); }
:where(.kit) .daycard .day-foot { display:flex; flex-wrap:wrap; gap:8px 16px; font-size:12.5px; color:var(--dim); }
:where(.kit) .daycard .day-foot:empty { display:none; }
:where(.kit) .daycard .linkbtn { color:var(--teal-tx); text-decoration:underline; }
:where(.kit) .daycard .day-numbers .nums { display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:10px; }
:where(.kit) .daycard.compact .rings { grid-template-columns:repeat(auto-fill, minmax(76px, 1fr)); }
@media (prefers-reduced-motion:reduce) { :where(.kit) .daycard .ring .arc { transition:none; } }

/* A KPI and its bar for the period (kit/kpi-bars.js): Today and the KPIs
   page. Met fills teal; behind the pace, amber; missed, the danger red. */
:where(.kit) .kpi { display:flex; flex-direction:column; gap:5px; padding:10px 0; }
:where(.kit) .kpi + .kpi { border-top:1px solid var(--border); }
:where(.kit) .kpi-top { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
:where(.kit) .kpi-t { font-weight:600; font-size:14.5px; overflow-wrap:anywhere; }
:where(.kit) .kpi-n { font-size:13.5px; font-variant-numeric:tabular-nums; white-space:nowrap; }
:where(.kit) .kpi-bar { height:8px; border-radius:99px; background:var(--card2); overflow:hidden; }
:where(.kit) .kpi-bar .fill { display:block; height:100%; border-radius:99px; background:var(--teal); transition:width .6s ease; }
:where(.kit) .kpi-bar .fill.behind { background:var(--amber); }
:where(.kit) .kpi-bar .fill.missed { background:var(--danger); }
:where(.kit) .kpi-sub { font-size:12.5px; color:var(--dim); line-height:1.5; }
:where(.kit) .kpi-sub .met { color:var(--teal-tx); font-weight:600; }
:where(.kit) .kpi-sub .behind { color:var(--amber-tx); font-weight:600; }
:where(.kit) .kpi-sub .missed { color:var(--danger-tx); font-weight:600; }
@media (prefers-reduced-motion:reduce) { :where(.kit) .kpi-bar .fill { transition:none; } }

/* Buttons that read as text: a row's Edit or Delete, a modal's ✕, a chip.
   They were spans and divs with onclick, which a keyboard never reaches
   and a screen reader does not call a button (audit, 30 Sep). Now they
   are <button type="button">, and this takes the browser's own button
   look off them. :where() weighs nothing, so each page's own rule for
   the class still decides its colour, size and padding. Line height is
   left as a button has it: Activity, Admin and My agency had button
   .rowact chips before this, and they keep the height they had. */
:where(button.rowact, button.lact, button.modal-x, button.x, button.cc-x, button.apply, button.ask-chip,
       button.cat-item, button.tl-att, button.iconbtn, button.check, button.cal-cell, button.linkbtn, button.pill) {
  appearance:none; -webkit-appearance:none; background:none; border:0; padding:0; margin:0;
  font-family:inherit; font-size:inherit; font-weight:inherit; font-style:inherit; color:inherit;
  text-align:inherit; cursor:pointer; }
:where(button.rowact, button.lact, button.modal-x, button.x, button.cc-x, button.apply, button.ask-chip,
       button.cat-item, button.tl-att, button.iconbtn, button.check, button.cal-cell, button.linkbtn, button.pill):focus-visible {
  outline:2px solid var(--teal); outline-offset:2px; border-radius:4px; }
/* On a touch screen a small text button is as easy to hit as a 44px one:
   its hit area reaches past the ink, which ::after carries none of. A
   .rowact has its own, in padding every page gives it. */
@media (any-pointer:coarse) {
  :where(button.lact, button.modal-x, button.x, button.cc-x, button.apply) { position:relative; }
  :where(button.lact, button.modal-x, button.x, button.cc-x, button.apply)::after {
    content:''; position:absolute; left:50%; top:50%; min-width:44px; min-height:44px;
    width:100%; height:100%; transform:translate(-50%,-50%); }
  /* A small button is about 32px tall; its hit area is 44, the ink is not. */
  .btn.btn-sm { position:relative; }
  .btn.btn-sm::after { content:''; position:absolute; left:0; right:0; top:50%; height:44px;
    min-height:100%; transform:translateY(-50%); }
}

/* The tick (UI audit, P2): one for every list of tasks, a round button with
   aria-pressed. Pressed, it fills teal and a check springs in. .pop, the
   bounce and a ring going out, is added by the page only when a person
   ticks, never when a done task is drawn, so a list of done tasks does not
   bounce on every load. A transition does not run on a new element either,
   so the check springs only on a tick too. On a touch screen it answers a
   thumb 44px across; still, for anyone who asked for less motion. */
.tickbox { position:relative; flex:none; width:22px; height:22px; padding:0; border-radius:var(--r-round);
  border:2px solid var(--border-lt); background:none; cursor:pointer; transition:background .15s, border-color .15s; }
.tickbox::before { content:''; position:absolute; left:5.5px; top:1.5px; width:5px; height:10px;
  border:solid #04110f; border-width:0 2.5px 2.5px 0; transform:rotate(45deg) scale(0);
  transition:transform .2s cubic-bezier(.3,1.6,.5,1) .06s; }
.tickbox[aria-pressed="true"] { background:var(--teal); border-color:var(--teal); }
.tickbox[aria-pressed="true"]::before { transform:rotate(45deg) scale(1); }
@media (hover:hover) { .tickbox:hover { border-color:var(--teal); } }
.tickbox:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.tickbox:disabled { cursor:default; }
.tickbox.pop { animation:tickpop .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes tickpop {
  0% { transform:scale(.8); box-shadow:0 0 0 0 var(--teal); }
  40% { transform:scale(1.18); }
  100% { transform:scale(1); box-shadow:0 0 0 12px transparent; }
}
@media (any-pointer:coarse) {
  .tickbox::after { content:''; position:absolute; top:50%; left:50%; width:44px; height:44px; transform:translate(-50%,-50%); }
}
@media (prefers-reduced-motion:reduce) {
  .tickbox, .tickbox::before { transition:none; }
  .tickbox.pop { animation:none; }
}

/* Reduced motion (UI audit, P3): when the device asks for less motion,
   nothing slides, pops, pulses or glides, on any page, whatever its own
   rules say. Durations go to almost nothing rather than none, so a state
   an animation ends in is still reached. Nothing in the app waits on an
   animation's or a transition's end event. A script's own smooth scroll
   is not reached from here: it asks KYPUI.smooth(). */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    animation-delay:0s !important; transition-duration:.01ms !important;
    transition-delay:0s !important; scroll-behavior:auto !important;
  }
}

/* Pull to refresh, in the installed app (nav.js; UI audit, P3): a round
   arrow under the top edge that follows the finger, teal once letting go
   will reload. */
.appnav-pull { position:fixed; left:50%; top:calc(env(safe-area-inset-top, 0px) - 34px); z-index:60;
  width:36px; height:36px; border-radius:50%; display:grid; place-items:center; pointer-events:none;
  background:var(--card); border:1px solid var(--border-lt); color:var(--dim);
  box-shadow:0 4px 14px rgba(0,0,0,.25); opacity:0; transform:translate(-50%, 0); }
.appnav-pull.on { opacity:1; }
.appnav-pull.ready { background:var(--teal); border-color:var(--teal); color:#04110f; }
.appnav-pull .ico { width:18px; height:18px; }
.appnav-pull.going .ico { animation:pullspin .8s linear infinite; }
@keyframes pullspin { to { transform:rotate(360deg); } }

/* Icons (UI audit, P2): Phosphor's, from the sprite scripts/vendor.mjs
   builds, through KYPUI.icon() or <Icon>. The size of the text beside them,
   in its colour. An empty or a problem state leads with a duotone one, in
   teal, where a page had an emoji. */
.ico { display:inline-block; width:1.15em; height:1.15em; fill:currentColor; flex:none; vertical-align:-0.2em; }
.empty .mark .ico, .empty .icon .ico { width:40px; height:40px; color:var(--teal-tx); vertical-align:top; }
/* A first-run empty state's picture (scripts/spot-art.mjs), where a mark
   would be: a fixed height, so the words under it never jump as it loads. */
.empty .art { display:block; height:128px; width:auto; max-width:100%; margin:0 auto 6px; }
@media (max-width:600px) { .empty .art { height:104px; } }

/* Skeleton rows (UI audit, P2): the shape of what is coming, where a line
   said "Loading…". The list arrives into the space the rows held, so the
   page does not jump when it does. Each <i> is a row; .lines makes them
   bare lines, for a short list inside a panel. The block says what it is
   waiting for to a screen reader (role="status" and its label), and stays
   still for anyone who has asked for less motion. KYPUI.skel() writes one
   for a classic page; <Skeleton> in ui.js for a page on the kit. */
.skel { display:flex; flex-direction:column; gap:var(--sp-2); }
.skel > i { position:relative; display:block; height:64px; border-radius:var(--r-md);
  background:var(--card); border:1px solid var(--border); animation:skel 1.4s ease-in-out infinite; }
.skel > i::before, .skel > i::after { content:''; position:absolute; left:var(--sp-4);
  border-radius:var(--r-round); background:var(--border-lt); }
.skel > i::before { top:17px; width:46%; height:11px; }
.skel > i::after { top:36px; width:28%; height:9px; }
.skel > i:nth-child(3n+2)::before { width:38%; }
.skel > i:nth-child(3n)::before { width:54%; }
.skel > i:nth-child(2) { animation-delay:.12s; } .skel > i:nth-child(3) { animation-delay:.24s; }
.skel > i:nth-child(4) { animation-delay:.36s; } .skel > i:nth-child(n+5) { animation-delay:.48s; }
.skel.lines { gap:10px; padding:4px 0; }
.skel.lines > i { height:12px; width:62%; border:0; border-radius:var(--r-round); background:var(--border-lt); }
.skel.lines > i:nth-child(2n) { width:44%; }
.skel.lines > i::before, .skel.lines > i::after { content:none; }
@keyframes skel { 50% { opacity:.5; } }
@media (prefers-reduced-motion:reduce) { .skel > i { animation:none; } }

/* The app's own feedback (feedback.js): a toast, and a question before
   something that cannot be taken back. For every page, kit or not. */
.kyp-toast { position:fixed; left:50%; bottom:26px; transform:translateX(-50%); z-index:200;
  background:var(--card); border:1px solid var(--teal); color:var(--text);
  padding:10px 12px 10px 18px; border-radius:12px; font-size:14px; line-height:1.4;
  box-shadow:0 10px 30px rgba(0,0,0,.35); width:max-content; max-width:min(560px, calc(100vw - 32px));
  display:flex; gap:14px; align-items:center; }
.kyp-toast.bad { border-color:var(--danger); padding-right:18px; }
.kyp-toast span { white-space:pre-line; }
.kyp-toast button { background:none; border:1px solid var(--border-lt); color:var(--teal-tx); flex:none;
  border-radius:8px; font:inherit; font-size:13px; font-weight:700; padding:5px 12px; cursor:pointer; min-height:32px; }
.kyp-confirm { background:var(--card); color:var(--text); border:1px solid var(--border-lt); border-radius:14px;
  padding:20px 20px 16px; width:min(420px, calc(100vw - 32px)); box-shadow:0 20px 50px rgba(0,0,0,.45);
  font-family:'DM Sans',-apple-system,system-ui,sans-serif; }
.kyp-confirm::backdrop { background:rgba(4,4,10,.55); }
.kyp-confirm h2 { margin:0 0 8px; font-size:17px; font-weight:700; }
.kyp-confirm p { margin:0 0 18px; font-size:14.5px; line-height:1.55; color:var(--dim); white-space:pre-line; }
.kyp-confirm h2 + p { color:var(--dim); }
.kyp-confirm:not(:has(h2)) p { color:var(--text); }
.kyp-confirm-row { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.kyp-confirm-row button { font:inherit; font-size:14px; font-weight:700; border-radius:8px; padding:9px 16px;
  min-height:40px; cursor:pointer; }
.kyp-no { background:transparent; border:1px solid var(--border-lt); color:var(--text); }
.kyp-yes { background:var(--teal); border:1px solid var(--teal); color:#04110f; }
/* Dark ink on the dark theme's red, white on the light theme's: each 4.5:1 or better. */
.kyp-yes.danger { background:var(--danger); border-color:var(--danger); color:#1a0606; }
[data-theme="light"] .kyp-yes.danger { color:#fff; }
.kyp-confirm-row button:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
@media (hover:hover) { .kyp-no:hover { border-color:var(--teal); } .kyp-yes:hover { filter:brightness(1.08); } }

/* A row's ⋯ and the menu it opens (KYPUI.menu). The dots are small; the
   button is 40px, a thumb's size, and pulls back by its padding so it lines
   up with the row's edge. */
.kyp-more { background:none; border:0; color:var(--dim); cursor:pointer; flex:none; font:inherit;
  font-size:20px; line-height:1; letter-spacing:1px; width:40px; height:40px; margin:-8px -10px -8px 0;
  border-radius:10px; display:inline-grid; place-items:center; }
@media (hover:hover) { .kyp-more:hover { background:var(--card2); color:var(--text); } }
.kyp-more[aria-expanded="true"] { background:var(--card2); color:var(--text); }
.kyp-more:focus-visible { outline:2px solid var(--teal); outline-offset:-2px; }
.kyp-menu { position:fixed; z-index:210; min-width:180px; max-width:calc(100vw - 16px); padding:6px;
  background:var(--card); border:1px solid var(--border-lt); border-radius:12px;
  box-shadow:0 14px 34px rgba(0,0,0,.35); display:flex; flex-direction:column; }
.kyp-menu button { background:none; border:0; color:var(--text); font:inherit; font-size:14px; text-align:left;
  padding:11px 12px; border-radius:8px; cursor:pointer; white-space:nowrap; }
.kyp-menu button.danger { color:var(--danger-tx); }
.kyp-menu button:focus-visible { outline:none; background:var(--card2); }
@media (hover:hover) { .kyp-menu button:hover { background:var(--card2); } }
