/* =====================================================================================================================
   KINSLEY DESIGN SYSTEM · tokens + core components (brand identity: “The Kin Dot”, concept #16)
   One source of truth: every module stylesheet uses these variables. Legacy names (--fern, --peach…) are mapped to the
   Kinsley palette so older module CSS inherits the brand automatically.
   ===================================================================================================================== */
/* UI-042: fonts are served by Kinsley itself (static/fonts, SIL Open Font License 1.1, licences next to the files): no Google
   request, works offline and in the app shell. */
/* Figtree (K-060): the files are Google's variable Figtree (weight axis 300-900, despite the '-400' in their names), declared
   here for the four interface weights the design uses: 400, 500, 600 and 700. CSS never asks for more (tests/test_waveB_brand.py). */
/* Figtree · latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/figtree-latin-ext-400.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree · latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/figtree-latin-400.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;
}
/* Fraunces · latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext-400-600.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces · latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/fraunces-latin-400-600.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;
}
/* IBM Plex Sans Arabic · arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-arabic-400.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* IBM Plex Sans Arabic · arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-arabic-500.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* IBM Plex Sans Arabic · arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-arabic-600.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
:root{
  /* colour · brand */
  --k-aubergine:#4B3557;--k-aubergine-d:#3A2844;--k-honey:#D9A746;--k-clay:#D98E7F;--k-sage:#8FA38E;--k-dusk:#6F86A6;
  /* colour · neutrals */
  --k-ink:#2A2130;--k-ink-2:#4A4152;--k-muted:#6D6674;--k-line:#E6DDE4;--k-line-2:#EFE9EE;--k-tint:#F1EAF0;--k-linen:#F8F4EF;--k-paper:#FFFFFF;
  --k-clay-l:#F8E7E3;--k-honey-l:#FAF0DA;--k-dusk-l:#E7ECF4;--k-clay-ink:#8E4A3D;
  /* K-055 (C-19): form fields get a border you can see (3:1 against white, linen and tint); --k-line stays the card hairline */
  --k-field:#8F8496;--k-field-hover:#6D6674;
  /* K-056 (C-19): honey, clay, sage and dusk are fills and dots only, never text. Text colours are: ink, ink-2, muted, aubergine,
     aubergine-d, error and the -ink shades (4.5:1 or more on white, linen and tint; tests/test_waveB_brand.py) */
  /* colour · semantic (AA on white) */
  --k-success:#3E7C5A;--k-success-l:#E5F0E9;--k-warning:#9A6513;--k-warning-l:#FBF0DC;--k-error:#B0413E;--k-error-l:#F8E4E2;--k-info:#4C6FA0;--k-info-l:#E6ECF5;
  /* status-tag text: deeper shades of the same hues so small text on the light tints passes WCAG AA (brand colours unchanged) */
  --k-success-ink:#336A4C;--k-warning-ink:#805314;--k-error-ink:#9E3936;--k-info-ink:#3F5F8C;
  /* type */
  --k-display:'Fraunces','IBM Plex Sans Arabic',Georgia,'Times New Roman',serif;--k-body:'Figtree','IBM Plex Sans Arabic',system-ui,-apple-system,'Segoe UI',sans-serif;
  /* shape · space · depth · motion */
  --k-r-xs:8px;--k-r-sm:12px;--k-r:18px;--k-r-lg:24px;--k-pill:999px;
  --k-s1:4px;--k-s2:8px;--k-s3:12px;--k-s4:16px;--k-s5:24px;--k-s6:32px;--k-s7:48px;--k-s8:64px;
  --k-sh-1:0 1px 2px rgba(42,33,48,.05);--k-sh-2:0 1px 2px rgba(42,33,48,.04),0 8px 28px rgba(42,33,48,.06);--k-sh-3:0 18px 50px rgba(42,33,48,.14);
  --k-ease:cubic-bezier(.2,.7,.2,1);--k-t:.18s;
  /* C-13 (K-124): the "Kin Dot settles" on a save: a short ease with a soft overshoot (static/brand/tokens.json is the source) */
  --k-ease-settle:cubic-bezier(.3,1.35,.5,1);--k-t-settle:.32s;
  /* legacy aliases (module stylesheets) */
  --fern:var(--k-aubergine);--fern-d:var(--k-aubergine-d);--fern-l:var(--k-tint);--peach:var(--k-clay);--peach-l:var(--k-clay-l);--honey:var(--k-honey);--honey-l:var(--k-honey-l);
  --plum:var(--k-ink);--cream:var(--k-linen);--sky:var(--k-dusk);--sky-l:var(--k-dusk-l);--rose:var(--k-error);--rose-l:var(--k-error-l);--muted:var(--k-muted);
  --line:var(--k-line);--card:var(--k-paper);--r:var(--k-r);--sh:var(--k-sh-2);--on-fern:var(--k-paper);--on-peach:var(--k-ink)}
*{box-sizing:border-box}html,body{margin:0}
/* B19 / K-052 (P-16): text follows the phone's text-size setting - sizes in rem from the browser's default; never switch text size adjusting off */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-family:var(--k-body);background:var(--k-linen);color:var(--k-ink);font-size:.96875rem;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* APP-24 (21 Nov 2026): typed Arabic runs right to left. safeui.js gives text boxes dir=auto; in a text area every paragraph
   takes its own direction, and an Arabic name is isolated in <bdi> so it never swaps places with the numbers beside it */
textarea{unicode-bidi:plaintext}bdi{unicode-bidi:isolate}
::selection{background:#E9DDE8}
h1,h2,h3,h4{margin:0 0 .45em;line-height:1.15;color:var(--k-ink)}
/* S12 (UI-027): the optical size follows the font size; tracking by size (0 below 28 px, -0.01em above; the landing hero keeps its display cut) */
h1,h2{font-family:var(--k-display);font-weight:500;letter-spacing:0;font-optical-sizing:auto}
h1{letter-spacing:-.01em}
h1{font-size:2.15rem}h2{font-size:1.5rem}h3{font-size:1.06rem;font-weight:700;letter-spacing:-.005em}h4{font-size:.95rem;font-weight:700}
a{color:var(--k-aubergine);text-decoration:none;font-weight:600}a:hover{color:var(--k-aubergine-d)}p{margin:0 0 .6em}
.muted{color:var(--k-muted)}.small{font-size:.86rem}.tiny{font-size:.76rem}
:focus-visible{outline:2px solid var(--k-aubergine);outline-offset:2px;border-radius:6px}
.i{flex:none;display:block}
@media (prefers-reduced-motion:no-preference){[data-speed-content]{animation:k-in .22s var(--k-ease)}@keyframes k-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}}

/* ---------------------------------------------------------------- layout shell */
.shell{display:grid;grid-template-columns:264px 1fr;min-height:100vh}
.side{background:var(--k-paper);border-inline-end:1px solid var(--k-line-2);padding:22px 14px 14px;position:sticky;top:0;height:100vh;overflow-y:auto;display:flex;flex-direction:column;scrollbar-width:thin}
.brand{display:flex;align-items:center;gap:10px;color:var(--k-ink);padding:2px 10px 20px;font-weight:700}.brand img{width:36px;height:36px}
.brand .k-wm{height:30px;width:auto}.brand .k-wm-sm{height:24px;width:auto}
.setting{display:flex;align-items:center;gap:8px;background:var(--k-tint);color:var(--k-ink-2);border-radius:var(--k-r-sm);padding:9px 12px;font-size:.82rem;font-weight:600;margin:0 4px 16px}
.setting:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--k-honey);box-shadow:5px 4px 0 -1px var(--k-clay);flex:none;margin-inline-end:4px}
.site-switch{margin:0 4px 14px}.site-switch .in{padding:9px 12px;font-size:.88rem}
.nav a,.nav .nav-site{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:var(--k-r-sm);color:var(--k-ink-2);font-weight:600;font-size:.93rem;margin-bottom:1px;
  position:relative;transition:background var(--k-t),color var(--k-t);background:none;border:0;width:100%;font-family:inherit;cursor:pointer;text-align:start}
.nav a:hover,.nav .nav-site:hover{background:var(--k-linen);color:var(--k-ink)}
.nav a.on{background:var(--k-tint);color:var(--k-aubergine);font-weight:700}
.nav a.on:before{content:"";position:absolute;inset-inline-start:-14px;top:9px;bottom:9px;width:3px;border-start-start-radius:0;border-start-end-radius:3px;border-end-end-radius:3px;border-end-start-radius:0;background:var(--k-aubergine)}
.nav .ic{width:22px;display:grid;place-items:center;color:var(--k-muted);font-size:1rem}.nav a.on .ic{color:var(--k-aubergine)}
.nav .sec{font-size:.75rem;text-transform:uppercase;letter-spacing:.14em;color:var(--k-muted);font-weight:700;padding:16px 12px 6px}
.badge{margin-inline-start:auto;background:var(--k-aubergine);color:#fff;border-radius:var(--k-pill);font-size:.75rem;padding:1px 7px;font-weight:700;min-width:18px;text-align:center}
.me-box{margin-top:auto;display:flex;align-items:center;gap:10px;padding:14px 8px 4px;border-top:1px solid var(--k-line-2)}
.me-box a,.me-box button{color:var(--k-muted)}
.me-box a{min-width:44px;min-height:44px;display:inline-grid;place-items:center}       /* 2.5.8: icons big enough to tap */
.main{min-width:0}.top{display:flex;align-items:center;gap:12px;padding:20px 40px 0}
.content{padding:26px 40px 110px;max-width:1240px}
.crumb{display:flex;align-items:center;gap:8px;font-size:.78rem;color:var(--k-muted);font-weight:600;letter-spacing:.02em;margin-bottom:14px}
.crumb b{color:var(--k-ink-2);font-weight:700}.crumb .sep{opacity:.5}
.mtop{display:none}.tabs-m{display:none}
.icon-btn{width:40px;height:40px;border-radius:var(--k-r-sm);display:grid;place-items:center;background:var(--k-paper);border:1px solid var(--k-line);color:var(--k-ink);padding:0;cursor:pointer;font-family:inherit}
/* tablet (901-1200 px) and phone: the top bar shows where you are, search, site and profile */
@media(max-width:1200px){
 .mtop{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:40;background:rgba(248,244,239,.9);backdrop-filter:saturate(1.2) blur(14px);-webkit-backdrop-filter:saturate(1.2) blur(14px);padding:10px 14px;border-bottom:1px solid var(--k-line-2)}
 .mtop .brand{padding:0}.mtop .brand img{width:30px;height:30px}.mtop-title{display:flex;align-items:center;gap:2px;min-width:0}.mtop-tt{display:flex;flex-direction:column;line-height:1.15;min-width:0}
 .mtop-title b{font-family:var(--k-display);font-weight:500;font-size:1.12rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mtop-tt>span{font-size:.75rem;color:var(--k-muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .drawer.open{display:block}.crumb{display:none}}
/* tablet: a collapsed icon rail instead of the full sidebar (room tablets) */
@media(min-width:901px) and (max-width:1200px){
 .shell{grid-template-columns:76px 1fr}.mtop .brand{display:none}.mtop{padding:10px 24px}
 .shell>.side{padding:16px 10px 12px;align-items:stretch;overflow-x:hidden}
 .shell>.side .lbl,.shell>.side .site-switch,.shell>.side .setting,.shell>.side .ks-box,.shell>.side .sec{display:none}
 .shell>.side .brand .k-mono{display:grid}
 .shell>.side .brand{justify-content:center;padding:2px 0 16px}.shell>.side .brand .k-wm{display:none}.shell>.side .brand .k-sym,.shell>.side .brand img{display:block;width:36px;height:36px}
 .shell>.side .nav a,.shell>.side .nav .nav-off,.shell>.side .nav .nav-site{justify-content:center;padding:11px 0;gap:0}
 .shell>.side .nav a.on:before{inset-inline-start:-10px}
 .shell>.side .nav .badge{position:absolute;top:3px;inset-inline-end:8px;margin:0;font-size:.75rem;padding:0 5px;min-width:16px}
 .shell>.side .nav .k-pins-h{display:block;font-size:0;height:1px;padding:0;background:var(--k-line-2);margin:12px 10px}
 .shell>.side .me-box{flex-direction:column;gap:12px;padding:12px 0 4px}
 .content{padding:24px 28px 80px}}
@media(max-width:900px){
 .shell{grid-template-columns:minmax(0,1fr)}.side{display:none}.content{padding:18px 18px 112px}.top{padding:12px 18px 0}
 .tabs-m{display:flex;position:fixed;bottom:0;inset-inline-start:0;inset-inline-end:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--k-line-2);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
 .tabs-m a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:.75rem;font-weight:600;color:var(--k-muted);padding:5px 0;position:relative;transition:color var(--k-t);min-width:0}
 .tabs-m a .ic{display:grid;place-items:center;width:44px;height:28px;border-radius:var(--k-pill);transition:background var(--k-t)}
 .tabs-m a.on{color:var(--k-aubergine)}.tabs-m a.on .ic{background:var(--k-tint)}.tabs-m .badge{position:absolute;top:1px;inset-inline-end:calc(50% - 22px);margin:0}
 h1{font-size:1.75rem}}
.drawer{display:none;position:fixed;inset:0;z-index:60;background:rgba(42,33,48,.36);backdrop-filter:blur(2px)}.drawer .side{display:flex;position:absolute;inset-inline-start:0;top:0;bottom:0;width:292px;box-shadow:var(--k-sh-3)}

/* ---------------------------------------------------------------- page header (where am I / what can I do) */
.ph{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.ph .eyebrow,.eyebrow{font-size:.75rem;text-transform:uppercase;letter-spacing:.14em;color:var(--k-muted);font-weight:700;margin-bottom:6px}

/* ---------------------------------------------------------------- surfaces */
.card{background:var(--k-paper);border-radius:var(--k-r);box-shadow:var(--k-sh-1);padding:24px;border:1px solid var(--k-line-2)}
.card h3:first-child,.card h2:first-child{margin-top:0}
.card.soft{background:var(--k-tint);border-color:transparent;box-shadow:none}
.grid{display:grid;gap:18px}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.split{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:22px;align-items:start}
@media(max-width:1100px){.g4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.split{grid-template-columns:minmax(0,1fr)}.g3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.g2,.g3{grid-template-columns:minmax(0,1fr)}.card{padding:18px;border-radius:16px}}
.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.mt{margin-top:16px}.mb{margin-bottom:16px}

/* ---------------------------------------------------------------- buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:var(--k-r-sm);padding:11px 18px;font-family:inherit;font-weight:700;
  font-size:.92rem;line-height:1.1;cursor:pointer;transition:background var(--k-t),border-color var(--k-t),color var(--k-t),transform .08s,box-shadow var(--k-t);text-decoration:none;white-space:nowrap;letter-spacing:.005em}
.btn:active{transform:translateY(1px)}.btn[disabled],.btn[aria-disabled="true"]{opacity:.5;pointer-events:none}
.btn-p{background:var(--k-aubergine);color:#fff}.btn-p:hover{background:var(--k-aubergine-d);color:#fff}
/* S2 (UI-008): honey is never a button colour. A leftover .btn-a renders as the primary, or as a secondary when the page already has one. */
.btn-a{background:var(--k-aubergine);color:#fff}.btn-a:hover{background:var(--k-aubergine-d);color:#fff}
:where(.content:has(.btn-p)) .btn-a,.k-moment .btn-a{background:var(--k-tint);color:var(--k-aubergine);border-color:transparent}
:where(.content:has(.btn-p)) .btn-a:hover{background:#E8DDE7;color:var(--k-aubergine-d)}
.btn-o{background:var(--k-paper);color:var(--k-ink);border-color:var(--k-line)}.btn-o:hover{border-color:var(--k-aubergine);color:var(--k-aubergine)}
.btn-g{background:var(--k-tint);color:var(--k-aubergine)}.btn-g:hover{background:#E8DDE7;color:var(--k-aubergine-d)}
.btn-r{background:var(--k-error-l);color:var(--k-error-ink)}.btn-r:hover{background:#F2D5D2}
.btn-sm{padding:7px 12px;font-size:.82rem;border-radius:10px}.w100{width:100%}
.k-quiet{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;font-weight:600;color:var(--k-muted);padding:8px 2px}.k-quiet:hover{color:var(--k-aubergine)}
.k-kind{display:inline-flex;vertical-align:-3px;color:var(--k-aubergine)}.k-heart{display:inline-flex}.k-heart.on svg{fill:var(--k-clay);stroke:var(--k-clay)}

/* ---------------------------------------------------------------- inputs */
.in,select.in,textarea.in{width:100%;padding:11px 14px;border:1px solid var(--k-field);border-radius:var(--k-r-sm);font-family:inherit;font-weight:500;font-size:.95rem;background:var(--k-paper);color:var(--k-ink);
  transition:border-color var(--k-t),box-shadow var(--k-t)}
.in::placeholder{color:var(--k-muted)}.in:hover{border-color:var(--k-field-hover)}
.in:focus{outline:0;border-color:var(--k-aubergine);box-shadow:0 0 0 4px rgba(75,53,87,.12)}textarea.in{resize:vertical;min-height:84px}
label{display:block;font-weight:600;font-size:.83rem;margin:0 0 6px;color:var(--k-ink-2)}.field{margin-bottom:16px}
input[type=checkbox],input[type=radio]{accent-color:var(--k-aubergine)}

/* ---------------------------------------------------------------- chips & status */
.chip{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:var(--k-pill);font-size:.76rem;font-weight:700;background:var(--k-linen);color:var(--k-ink-2);border:1px solid var(--k-line-2)}
.chip.g{background:var(--k-success-l);color:var(--k-success-ink);border-color:transparent}.chip.p{background:var(--k-clay-l);color:var(--k-clay-ink);border-color:transparent}
.chip.h{background:var(--k-warning-l);color:var(--k-warning-ink);border-color:transparent}.chip.r{background:var(--k-error-l);color:var(--k-error-ink);border-color:transparent}
.chip.s{background:var(--k-info-l);color:var(--k-info-ink);border-color:transparent}
.av{width:2.98em;height:2.98em;border-radius:50%;display:inline-grid;place-items:center;font-weight:700;color:#fff;flex-shrink:0;font-size:.88rem;background:var(--k-aubergine);object-fit:cover;letter-spacing:.02em}
.av.lg{width:3.28em;height:3.28em;font-size:1.6rem}.av.sm{width:2.5em;height:2.5em;font-size:.75rem}

/* ---------------------------------------------------------------- data display */
.kpi{padding:20px}.kpi .n{font-family:var(--k-display);font-size:2rem;font-weight:500;line-height:1.05;letter-spacing:-.02em;font-variant-numeric:lining-nums}
.kpi .n span{font-family:var(--k-body);font-size:1rem!important;color:var(--k-muted)}.kpi .l{font-size:.82rem;color:var(--k-muted);font-weight:600;margin-top:4px}
.kpi .ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:1.05rem;margin-bottom:12px;background:var(--k-tint)!important;color:var(--k-aubergine)}
.list>*{padding:13px 0;border-bottom:1px solid var(--k-line-2)}.list>*:last-child{border:0;padding-bottom:0}.list>*:first-child{padding-top:0}
.tbl{width:100%;border-collapse:collapse;font-size:.92rem}.tbl th{text-align:start;font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:var(--k-muted);font-weight:700;padding:10px 12px;border-bottom:1px solid var(--k-line)}
.tbl td{padding:13px 12px;border-bottom:1px solid var(--k-line-2);vertical-align:middle;font-variant-numeric:tabular-nums}.tbl tr:last-child td{border:0}.tbl tbody tr:hover td{background:#FCFAFB}
.r{text-align:end}.scroll{overflow-x:auto}
.bar{height:8px;border-radius:var(--k-pill);background:var(--k-tint);overflow:hidden}.bar i{display:block;height:100%;border-radius:var(--k-pill);background:var(--k-aubergine)}
.seg{display:inline-flex;background:var(--k-paper);border:1px solid var(--k-line-2);border-radius:var(--k-r-sm);padding:4px;gap:2px;flex-wrap:wrap}
.seg a{padding:7px 14px;border-radius:9px;color:var(--k-muted);font-size:.86rem;font-weight:600}.seg a:hover{color:var(--k-ink)}.seg a.on{background:var(--k-aubergine);color:#fff}
.dot{width:10px;height:10px;border-radius:50%;display:inline-block}

/* ---------------------------------------------------------------- feedback · flash/toast, empty, loading */
.flash{display:flex;align-items:flex-start;gap:10px;padding:13px 16px;border-radius:var(--k-r-sm);margin-bottom:18px;font-weight:600;border:1px solid transparent;font-size:.93rem}
.flash:before{content:"";flex:none;width:18px;height:18px;margin-top:1px;border-radius:50%;background:currentColor;-webkit-mask:var(--k-flash-ic) center/12px no-repeat;mask:var(--k-flash-ic) center/12px no-repeat;opacity:.9}
.flash.ok{background:var(--k-success-l);color:var(--k-success-ink);border-color:#CFE3D6;--k-flash-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.8 9 10 3.5' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")}
/* UX-07 (audit 17 Nov 2026): a refused form's message beside the field it is about (core.keep_form / kept_form) */
.flash.k-ferr{margin:6px 0 0;padding:8px 10px;font-size:.9rem;overflow-wrap:anywhere}
.in[aria-invalid="true"],[aria-invalid="true"] .in{border-color:var(--k-error)}
.flash.err{background:var(--k-error-l);color:var(--k-error-ink);border-color:#EDCBC8;--k-flash-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2.5v4.2M6 9.2v.1' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}
.flash.ok:before,.flash.err:before{background:currentColor}
.flash.info{background:var(--k-info-l);color:var(--k-info-ink);border-color:#CDD8EA;--k-flash-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 5.3v3.9M6 2.8v.1' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}
.flash > *{min-width:0}
.empty{text-align:center;color:var(--k-muted);padding:34px 12px;font-size:.93rem}
.empty:before{content:"";display:block;width:56px;height:44px;margin:0 auto 12px;
  background:radial-gradient(circle at 22px 18px,var(--k-honey) 0 13px,transparent 13.5px),radial-gradient(circle at 38px 30px,var(--k-clay) 0 8.5px,transparent 9px)}
.empty .e{display:none}
.skeleton{background:linear-gradient(90deg,var(--k-tint) 25%,#F8F3F7 50%,var(--k-tint) 75%);background-size:200% 100%;border-radius:var(--k-r-xs)}
@media (prefers-reduced-motion:no-preference){.skeleton{animation:k-sk 1.4s infinite}}
@keyframes k-sk{to{background-position:-200% 0}}

/* ---------------------------------------------------------------- toggles, tiles, misc */
.pill-tog input{display:none}.pill-tog span{display:inline-block;padding:7px 13px;border-radius:var(--k-pill);border:1px solid var(--k-line);font-weight:600;font-size:.84rem;cursor:pointer;margin-block:0 6px;margin-inline:0 4px;background:var(--k-paper);transition:all var(--k-t)}
.pill-tog input:checked+span{background:var(--k-aubergine);border-color:var(--k-aubergine);color:#fff}
.kid-tile{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:14px 8px;border-radius:16px;background:var(--k-paper);border:1px solid var(--k-line);cursor:pointer;position:relative;transition:all var(--k-t)}
.kid-tile:hover{border-color:#D6CBD4}
.kid-pick input{display:none}.kid-pick input:checked+.kid-tile{border-color:var(--k-aubergine);background:var(--k-tint);box-shadow:0 0 0 3px rgba(75,53,87,.1)}
.kid-pick input:checked+.kid-tile:after{content:"";position:absolute;top:8px;inset-inline-end:10px;width:9px;height:9px;border-radius:50%;background:var(--k-honey);box-shadow:5px 4px 0 -1.5px var(--k-clay)}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
details>summary{cursor:pointer;list-style:none}details>summary::-webkit-details-marker{display:none}
.post img.ph{width:100%;border-radius:14px;margin-top:12px;max-height:480px;object-fit:cover}
.bubble{max-width:75%;padding:10px 14px;border-radius:18px;margin-bottom:8px;white-space:pre-wrap}
.bubble.mine{background:var(--k-aubergine);color:#fff;margin-inline-start:auto;border-end-end-radius:6px}.bubble.theirs{background:var(--k-paper);border:1px solid var(--k-line-2);border-end-start-radius:6px}
.timeline{position:relative;padding-inline-start:26px}.timeline:before{content:"";position:absolute;inset-inline-start:8px;top:8px;bottom:8px;width:1.5px;background:var(--k-line)}
.timeline .t{position:relative;padding-bottom:16px}.timeline .t:before{content:"";position:absolute;inset-inline-start:-22px;top:6px;width:11px;height:11px;border-radius:50%;background:var(--k-paper);border:2.5px solid var(--k-honey)}
.hero-kid{background:var(--k-aubergine);color:#fff;border-radius:var(--k-r-lg);padding:24px;position:relative;overflow:hidden}
.hero-kid:before{content:"";position:absolute;inset-inline-end:-30px;top:-40px;width:180px;height:180px;border-radius:50%;background:rgba(217,167,70,.22)}
.hero-kid:after{content:"";position:absolute;inset-inline-end:70px;top:90px;width:70px;height:70px;border-radius:50%;background:rgba(217,142,127,.25)}
.hero-kid>*{position:relative;z-index:1}.hero-kid h1,.hero-kid h2{color:#fff}
.status{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.16);padding:4px 12px;border-radius:var(--k-pill);font-weight:600;font-size:.8rem}
.ratio-ok{color:var(--k-success-ink)}.ratio-bad{color:var(--k-error)}
.modal-btn{position:fixed;inset-inline-end:22px;bottom:26px;z-index:45;width:56px;height:56px;border-radius:50%;font-size:1.6rem;box-shadow:0 12px 30px rgba(75,53,87,.35)}
@media(max-width:900px){.modal-btn{bottom:90px}}
.chart{display:flex;align-items:flex-end;gap:10px;height:180px;padding-top:10px}.chart .c{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.chart .b{width:100%;max-width:40px;border-radius:var(--k-pill);background:var(--k-aubergine);position:relative}.chart .b.alt{background:var(--k-clay)}

/* ---------------------------------------------------------------- role home blocks */
.hello{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.hello h1{margin:0}.hello .eyebrow{margin-bottom:4px}
.next{display:flex;gap:14px;align-items:center;background:var(--k-paper);border:1px solid var(--k-line-2);border-radius:var(--k-r);padding:14px 18px;margin-bottom:18px;box-shadow:var(--k-sh-1)}
.next .k-dots{flex:none;width:30px;height:26px;background:radial-gradient(circle at 11px 11px,var(--k-honey) 0 8px,transparent 8.5px),radial-gradient(circle at 21px 18px,var(--k-clay) 0 5px,transparent 5.5px)}
.next b{font-weight:700}.next .grow span{color:var(--k-muted);font-size:.88rem}

/* ---------------------------------------------------------------- landing / public */
.land-nav{display:flex;align-items:center;justify-content:space-between;max-width:1180px;margin:0 auto;padding:22px 24px}
.land-hero{max-width:1180px;margin:0 auto;padding:48px 24px 90px;display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}
.land-hero h1{font-size:clamp(2.6rem,5.4vw,4.3rem);letter-spacing:-.03em;line-height:1.02;font-variation-settings:"opsz" 96}.land-hero h1 em{font-style:italic;color:var(--k-aubergine)}
.phone{background:var(--k-ink);border-radius:44px;padding:11px;max-width:330px;margin:0 auto;box-shadow:0 40px 80px rgba(42,33,48,.22)}
.phone .scr{background:var(--k-linen);border-radius:34px;padding:18px;min-height:540px}
.feat{max-width:1180px;margin:0 auto;padding:64px 24px}.feat .ic{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:1.3rem;margin-bottom:14px;background:var(--k-tint)!important;color:var(--k-aubergine)}
@media(max-width:900px){.land-hero{grid-template-columns:minmax(0,1fr)}.phone{display:none}}
.swatch{height:90px;border-radius:16px;padding:10px;display:flex;align-items:flex-end;font-weight:700;font-size:.8rem}

/* ---------------------------------------------------------------- navigation: places, sub-tabs, + Record / + Create, pins, sheets */
.brand .k-sym,.brand .k-mono{display:none}
.brand .k-mono{width:36px;height:36px;border-radius:12px;background:var(--k-aubergine);color:#fff;place-items:center;font-family:var(--k-display);font-size:1.15rem;font-weight:500}
.nav .k-act{background:var(--k-aubergine);color:#fff;font-weight:700;margin:0 0 14px;box-shadow:0 6px 18px rgba(75,53,87,.2)}
.nav .k-act .ic{color:#fff}.nav .k-act:hover{background:var(--k-aubergine-d);color:#fff}.nav .k-act:before{display:none}
.nav .nav-off{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:var(--k-r-sm);color:#A9A2AE;font-weight:600;font-size:.93rem;cursor:default}
.nav .nav-off .ic{width:22px;display:grid;place-items:center;color:#C9C2CC}
.nav .k-pins-h{padding-top:20px}
.me-box .k-me-set.on{color:var(--k-aubergine)}
/* sub-tabs: the sections of the place you are in */
.k-subtabs{display:flex;align-items:flex-end;gap:4px 26px;border-bottom:1px solid var(--k-line);margin:-2px 0 24px;flex-wrap:wrap}
.k-subtabs>a,.k-more>summary{display:inline-flex;align-items:center;gap:6px;padding:4px 0 11px;color:var(--k-muted);font-weight:600;font-size:.92rem;white-space:nowrap;position:relative;transition:color var(--k-t)}
.k-subtabs>a:hover,.k-more>summary:hover{color:var(--k-ink)}
.k-subtabs>a.on,.k-more.on>summary{color:var(--k-aubergine)}
.k-subtabs>a.on:after,.k-more.on>summary:after{content:"";position:absolute;inset-inline-start:0;inset-inline-end:0;bottom:-1px;height:2px;border-radius:2px;background:var(--k-aubergine)}
.k-subtabs .badge{margin-inline-start:2px}
.k-sub-x{display:none!important}
.k-more{position:relative}
.k-more>summary{padding-inline-end:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' stroke='%236D6674' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 1px top 9px/10px no-repeat}
.k-more-menu{position:absolute;top:calc(100% + 6px);inset-inline-start:-10px;min-width:220px;background:var(--k-paper);border:1px solid var(--k-line-2);border-radius:var(--k-r-sm);box-shadow:var(--k-sh-3);padding:6px;z-index:30;display:flex;flex-direction:column}
.k-more-menu a{padding:9px 12px;border-radius:9px;color:var(--k-ink-2);font-weight:600;font-size:.9rem}.k-more-menu a:hover{background:var(--k-linen);color:var(--k-ink)}
.k-more-menu a.on{background:var(--k-tint);color:var(--k-aubergine)}
/* breadcrumb + pin */
.crumb .k-pin-f{margin-block:0 0;margin-inline:auto 0}
.k-pin{display:inline-flex;align-items:center;gap:5px;background:none;border:1px solid var(--k-line);border-radius:var(--k-pill);padding:3px 10px;font:inherit;font-size:.75rem;font-weight:700;color:var(--k-muted);cursor:pointer;letter-spacing:0}
.k-pin:hover{border-color:var(--k-aubergine);color:var(--k-aubergine)}.k-pin.on{background:var(--k-warning-l);border-color:transparent;color:var(--k-warning-ink)}.k-pin.on svg{fill:currentColor}
/* phone tab bar: the raised centre action */
.tabs-m .k-fab{color:var(--k-aubergine)}
.tabs-m .k-fab .ic{width:50px!important;height:50px!important;border-radius:50%!important;background:var(--k-aubergine)!important;color:#fff;margin-top:-22px;box-shadow:0 8px 20px rgba(75,53,87,.35);border:3px solid #fff}
/* sheets: bottom sheet on phones, a panel near the top on larger screens */
.k-sheet{position:fixed;inset:0;z-index:80;background:rgba(42,33,48,.38);display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity var(--k-t)}
.k-sheet[hidden]{display:none}.k-sheet.open{opacity:1}
.k-sheet-panel{background:var(--k-paper);width:100%;max-width:560px;max-height:86vh;overflow-y:auto;border-start-start-radius:24px;border-start-end-radius:24px;border-end-end-radius:0;border-end-start-radius:0;padding:10px 20px calc(22px + env(safe-area-inset-bottom));box-shadow:var(--k-sh-3);transform:translateY(24px);transition:transform .22s var(--k-ease)}
.k-sheet.open .k-sheet-panel{transform:none}
/* accessibility review 27 Nov 2026 (WCAG 2.2 AA): a button reached with Tab is never hidden under the sheet's Save bar (2.4.11) */
.k-sheet-panel{scroll-padding-bottom:6rem}
/* one login, both sides: the Staff / Parent switch (top bar on phones, account box on wide screens) */
.k-view-sw{display:inline-flex;border:1px solid var(--k-line, #d9d2cc);border-radius:999px;padding:2px;gap:2px;background:var(--k-card, #fff)}
.k-view-sw button{border:0;background:none;border-radius:999px;padding:6px 12px;min-height:36px;font:inherit;font-size:.85rem;color:var(--k-muted);cursor:pointer}
.k-view-sw button.on{background:var(--k-aubergine);color:#fff}
.k-view-m{flex:none}.k-view-m .chip{white-space:nowrap;min-height:36px;font-size:.8rem;padding-inline:10px}
.me-box:has(.k-view-sw){flex-wrap:wrap}
.me-box .k-view-sw{order:-1;flex:0 0 100%;justify-content:center;margin-bottom:8px}
.me-box .k-view-sw button{flex:1}
@media (max-width:350px){.k-view-m .chip svg{display:none}}
@media (min-width:901px){.mtop .k-view-m{display:none}}
.k-idle{position:fixed;inset-inline:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:60;display:flex;gap:12px;align-items:center;flex-wrap:wrap;max-width:640px;margin-inline:auto}   /* D8 */
.k-sheet-panel h2{margin:0}.k-sheet-panel .eyebrow{margin:18px 0 8px}
.k-grab{width:40px;height:4px;border-radius:9px;background:var(--k-line);margin:2px auto 12px}
.k-x{font-size:1.5rem;line-height:1;width:36px;height:36px}
.k-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.k-acts a{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;padding:12px 4px 10px;border:1px solid var(--k-line-2);border-radius:14px;color:var(--k-ink-2);font-size:.8rem;font-weight:600;transition:border-color var(--k-t),color var(--k-t)}
.k-acts a .ic{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--k-tint);color:var(--k-aubergine)}
.k-acts a:hover{border-color:var(--k-aubergine);color:var(--k-aubergine)}
.k-places{display:flex;flex-direction:column;gap:2px;margin-top:10px}
.k-places a{display:flex;gap:12px;align-items:center;padding:10px;border-radius:12px;color:var(--k-ink);font-weight:600}
.k-places a .ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--k-tint);color:var(--k-aubergine);flex:none}
.k-places a small{display:block;color:var(--k-muted);font-weight:500;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.k-places a.on,.k-places a:hover{background:var(--k-tint)}
@media(min-width:901px){.k-sheet{align-items:flex-start;padding-top:9vh}.k-sheet-panel{border-radius:var(--k-r-lg);transform:translateY(-8px);padding-bottom:24px}.k-grab{display:none}}
@media(max-width:560px){.k-acts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){
 .k-subtabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:-4px -18px 18px;padding:0 18px;gap:22px;-webkit-overflow-scrolling:touch}
 .k-subtabs::-webkit-scrollbar{display:none}
 /* B19 / K-045: phones show the same five sub-tabs + "More" as larger screens (no long sideways strip); the More list opens as a
    panel above the tab bar, so the strip's sideways scroll can't clip it */
 .k-subtabs{gap:14px}.k-subtabs>a,.k-more>summary{font-size:.875rem}
 .k-more{position:static;flex:none}
 .k-more[open]>.k-more-menu{position:fixed;inset-inline:12px;top:auto;bottom:calc(4.75rem + env(safe-area-inset-bottom));min-width:0;max-height:60vh;overflow-y:auto;z-index:70}
 .k-more-menu a{min-height:44px;display:flex;align-items:center;font-size:.95rem}}
/* + Record: the all-in-one sheet */
.k-rec .eyebrow{margin:14px 0 8px}.k-rec-n{color:var(--k-aubergine);letter-spacing:0;text-transform:none}.k-rec-sel{margin:0 0 8px;overflow-wrap:anywhere}.k-pick-clash{display:block;font-size:.75rem;color:var(--k-ink-2);line-height:1.2}
.k-link{background:none;border:0;color:var(--k-aubergine);font:inherit;font-weight:700;font-size:.84rem;cursor:pointer;padding:4px}
.k-rec-rooms{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:10px}.k-rec-rooms .chip{cursor:pointer;white-space:nowrap;font-family:inherit}
.k-rec-rooms .chip.on{background:var(--k-aubergine);color:#fff;border-color:var(--k-aubergine)}
.k-rec-kids{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;max-height:236px;overflow-y:auto;padding:2px}
.k-rec-kid{display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 2px 7px;border:1px solid var(--k-line-2);border-radius:14px;cursor:pointer;position:relative;margin:0;font-weight:600}
.k-rec-kid input{position:absolute;opacity:0;pointer-events:none}.k-rec-kid b{font-size:.78rem;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.k-rec-kid .av{width:3.05em;height:3.05em;font-size:.78rem}
.k-rec-kid:has(input:checked){border-color:var(--k-aubergine);background:var(--k-tint);box-shadow:0 0 0 2px rgba(75,53,87,.15)}
.k-rec-kid:has(input:checked):after{content:"✓";position:absolute;top:4px;inset-inline-end:6px;width:18px;height:18px;border-radius:50%;background:var(--k-aubergine);color:#fff;font-size:.75rem;display:grid;place-items:center}
.k-rec-kid:has(input:focus-visible){outline:2px solid var(--k-aubergine);outline-offset:2px}
.k-rec-kid[hidden]{display:none}.k-rec-al{position:absolute;top:4px;inset-inline-start:6px;width:16px;height:16px;border-radius:50%;background:var(--k-error);color:#fff;font-size:.75rem;font-style:normal;font-weight:700;display:grid;place-items:center}
.k-rec-kinds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.k-rec-kinds label{margin:0}
.k-rec-kinds input{position:absolute;opacity:0;pointer-events:none}
.k-rec-kinds span{display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 2px;border:1px solid var(--k-line-2);border-radius:12px;font-size:.78rem;font-weight:700;color:var(--k-ink-2);cursor:pointer}
.k-rec-kinds input:checked+span{background:var(--k-aubergine);border-color:var(--k-aubergine);color:#fff}
.k-rec-kinds input:focus-visible+span{outline:2px solid var(--k-aubergine);outline-offset:2px}
.k-rec-pre{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.k-rec-pre button{font-family:inherit;cursor:pointer}
.k-rec-pre button.on{background:var(--k-aubergine);color:#fff;border-color:var(--k-aubergine)}
.k-rec-msg{min-height:1.3em;margin:8px 0;font-size:.86rem;font-weight:600;color:var(--k-error)}.k-rec-msg.ok{color:var(--k-success-ink)}
.k-rec [data-k-rec-save]{position:sticky;bottom:0}
/* Wave 3 (audit F19, UI-026): "replace or add?" in the sheet, the toast's "Add another for…", the manager's Record care tile, chips 40 px */
.k-rec-dup:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 10px}
.kn-toast-act{display:block;margin-top:6px;padding:8px 12px;min-height:40px;border:1px solid currentColor;border-radius:999px;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.k-rec-tile{margin-top:14px}.k-rec-tile>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:44px;border:1px solid var(--k-line-2);border-radius:14px;font-weight:700;color:var(--k-ink-2);cursor:pointer}
.k-rec-tile>summary::-webkit-details-marker{display:none}.k-rec-tile>summary .ic{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--k-tint);color:var(--k-aubergine)}
.k-rec-tile[open]>summary{border-color:var(--k-aubergine);color:var(--k-aubergine)}
.k-rec-meal .chip,.k-rec-rooms .chip{min-height:40px;display:inline-flex;align-items:center}.k-rec-kinds span{min-height:56px;justify-content:center}
.k-dup-acts{flex-wrap:wrap}
/* F34: the ＋ Record child picker on other forms (templates/_kid_picker.html) */
.k-rec-kid.k-q-out{display:none}.k-pick-q{margin:0 0 10px}.k-rec-kid small{font-size:.75rem;color:var(--k-muted);font-weight:600}
.k-pick-field{border:0;padding:0;margin:12px 0 0;min-width:0}.k-pick-field>legend{font-weight:600;font-size:.9rem;margin-bottom:8px;padding:0}
/* a parent with several children: switch child on the child page */
.k-kidswitch{gap:6px;margin-bottom:12px}.k-kidswitch .chip{font-size:.84rem;padding:5px 14px}.k-kidswitch .chip.on{background:var(--k-aubergine);color:#fff;border-color:var(--k-aubergine)}
/* the child page: five groups (sub-tabs) and the tabs inside the open group */
.child-sub{margin-top:-8px}

/* ---------------------------------------------------------------- responsive tables, touch, overflow */
@media (max-width:480px){.tbl.cards-m tr:first-child{display:none}.tbl.cards-m,.tbl.cards-m tbody{display:block}
.tbl.cards-m tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;padding:14px 4px;border-bottom:1px solid var(--k-line-2)}
.tbl.cards-m td{display:block;padding:0;border:0;text-align:start!important}.tbl.cards-m td[data-label]::before{content:attr(data-label);display:block;font-size:.75rem;color:var(--k-muted);font-weight:600}
.tbl.cards-m td:last-child{grid-column:1/-1}.tbl.cards-m td:last-child .row{justify-content:stretch!important}.tbl.cards-m td:last-child .btn{flex:1;min-height:44px}}
@media (pointer:coarse){.btn,.btn-sm,button.btn{min-height:44px}.tap-link{display:inline-block;padding:12px 0}}
.grid>*{min-width:0}
/* child profile tabs: one scrolling strip on phones instead of a cloud of chips */
@media(max-width:700px){.child-sub,.seg.tabs-strip{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}.child-sub::-webkit-scrollbar{display:none}.child-sub a{white-space:nowrap}}

/* ---------------------------------------------------------------- full-page states (404, 403, 500, offline) */
.k-state{max-width:520px;margin:0 auto;padding:70px 20px;text-align:center;display:flex;flex-direction:column;align-items:center}
.k-state h1{font-size:2rem;margin:6px 0 10px}.k-state p{margin-bottom:22px}
.k-state-art{width:120px;height:96px;margin-bottom:22px;background:radial-gradient(circle at 46px 40px,var(--k-honey) 0 30px,transparent 30.5px),radial-gradient(circle at 84px 66px,var(--k-clay) 0 19px,transparent 19.5px)}
@media (prefers-reduced-motion:no-preference){.k-state-art{animation:k-settle 1.6s var(--k-ease) both}@keyframes k-settle{0%{transform:translateY(-6px);opacity:0}60%{opacity:1}100%{transform:none}}}
/* toasts from speed.js use .flash inside a fixed stack */

/* Home hierarchy (U3/U9): Needs-you strip and a lead KPI with context */
.k-needs{background:var(--k-paper);border:1px solid var(--k-line-2);border-radius:var(--k-r);padding:14px 18px;box-shadow:var(--k-sh-1)}
.k-needs-h{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin-bottom:10px}
.k-needs-row{display:flex;flex-wrap:wrap;gap:8px}
.k-need{display:inline-flex;align-items:center;gap:8px;padding-block:6px 6px;padding-inline:12px 8px;border-radius:999px;border:1px solid var(--k-line);color:var(--k-muted);font-size:.85rem;font-weight:600}
.k-need.on{color:var(--k-ink);border-color:var(--k-aubergine);background:var(--k-tint)}.k-need:hover{border-color:var(--k-aubergine);color:var(--k-aubergine)}
.k-kpis{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:16px}
.k-kpis .kpi:not(.k-lead){padding:16px}.k-kpis .kpi:not(.k-lead) .n{font-size:1.6rem}.k-kpis .kpi:not(.k-lead) .ic{width:32px;height:32px;margin-bottom:10px}
.kpi.k-lead{background:var(--k-aubergine);color:#fff!important;border-color:var(--k-aubergine)}
.kpi.k-lead .n{font-size:2.6rem}.kpi.k-lead .n span,.kpi.k-lead .l,.kpi.k-lead .k-ctx{color:rgba(255,255,255,.82)!important}
.kpi.k-lead .ic{background:rgba(255,255,255,.14)!important;color:#fff}
.k-bar{height:6px;border-radius:99px;background:rgba(255,255,255,.18);margin:12px 0 8px;overflow:hidden}.k-bar i{display:block;height:100%;background:var(--k-honey);border-radius:99px}
.k-ctx{font-size:.84rem}
@media (max-width:900px){.k-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.k-kpis .k-lead{grid-column:1/-1}}
.flash[hidden]{display:none}

/* ---------------------------------------------------------------- fit every screen (mobile audit, Nov 2026)
   Root causes found by tools/ui_audit.py: (1) ".grow" had flex-basis 0 so text squeezed into a sliver next to buttons
   instead of letting the buttons drop to the next line; (2) buttons never wrapped their label; (3) wide tables pushed
   the page sideways; (4) .flash was a flex row, so bold words and plain text became separate columns. */
.flash{display:block;position:relative;padding-inline-start:44px}
.flash:before{position:absolute;inset-inline-start:16px;top:14px;margin:0}
/* UX review 27 Nov 2026: a message beside a field has less padding, so its icon moves with it (it covered the first letters) */
.flash.k-ferr{padding-inline-start:34px}.flash.k-ferr:before{inset-inline-start:10px;top:9px}
.brand img.u-wauto{width:auto}      /* the Kinsley wordmark on the sign-in style pages keeps its width */
.flash[hidden]{display:none}
h1,h2,h3,b,strong,p,.small,.tiny,td,th,label,summary{overflow-wrap:break-word}
.content{overflow-wrap:break-word}
code,pre{overflow-wrap:anywhere}
.row:has(>.grow){flex-wrap:wrap}
.row>.grow{flex:1 1 11rem}
.row.nowrap{flex-wrap:nowrap}
img,video,svg,canvas,iframe{max-width:100%}
.in{min-width:0;max-width:100%}
select.in{text-overflow:ellipsis}
/* Wide tables: become stacked cards on phones (labels added by nav.js), or scroll inside their own box */
.tbl-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
@media (max-width:700px){
 /* any row that has a text column lets its buttons/chips drop underneath instead of crushing the text */
 .row.between{flex-wrap:wrap}
 .btn{white-space:normal;text-align:center;max-width:100%;line-height:1.2}
 .chip{white-space:normal;max-width:100%}
 .hello{align-items:flex-start}
 .hello>form.row{flex-wrap:wrap}
 .next{flex-wrap:wrap}.next .grow{flex:1 1 12rem}
 .k-hero-child .grow{flex:1 1 10rem}
 .tbl.cards-auto tr:first-child{display:none}
 .tbl.cards-auto,.tbl.cards-auto tbody{display:block}
 .tbl.cards-auto tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;padding:14px 2px;border-bottom:1px solid var(--k-line-2)}
 .tbl.cards-auto td{display:block;padding:0;border:0;text-align:start!important;min-width:0}
 .tbl.cards-auto td:first-child{grid-column:1/-1;font-weight:700}
 .tbl.cards-auto td[data-label]:not(:first-child)::before{content:attr(data-label);display:block;font-size:.75rem;color:var(--k-muted);font-weight:600;text-transform:uppercase;letter-spacing:.06em}
 .tbl.cards-auto td:last-child:has(.btn,form,select){grid-column:1/-1}
 .tbl.cards-auto tr.k-group-row{display:block}.tbl.cards-auto tr.k-group-row td::before{display:none}
 .grid.g4,.k-links{grid-template-columns:repeat(2,minmax(0,1fr))}
 .kpi{padding:14px}.kpi .ic{width:30px;height:30px;margin-bottom:8px}.kpi .n{font-size:1.5rem}
 .k-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .k-kpis .kpi:not(.k-lead){display:block;padding:12px}.k-kpis .kpi:not(.k-lead) .ic{width:28px;height:28px;margin-bottom:6px!important}
 .k-kpis .kpi:not(.k-lead) .n{font-size:1.35rem}.k-kpis .kpi:not(.k-lead) .l{font-size:.75rem;line-height:1.25}
 .k-quick{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}.k-quick .kid-tile{padding:12px 4px}
}
@media (max-width:560px){.grid.g2>.kpi,.grid.g3>.kpi{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:center;padding:12px 14px}
 .grid.g2>.kpi .ic,.grid.g3>.kpi .ic{grid-row:1/4;margin:0!important}}
@media (max-width:480px){.k-links{grid-template-columns:1fr!important;gap:10px}.k-links .kpi{padding:12px 14px}}
@media (max-width:380px){
 .content{padding-inline-start:14px;padding-inline-end:14px}
 .k-subtabs{margin-inline-start:-14px;margin-inline-end:-14px;padding:0 14px}
 .k-kpis{grid-template-columns:minmax(0,1fr);gap:8px}
 .k-kpis .kpi:not(.k-lead){display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;column-gap:10px;padding:10px 14px}
 .k-kpis .kpi:not(.k-lead) .ic{grid-row:auto;margin:0!important}.k-kpis .kpi:not(.k-lead) .n{font-size:1.3rem}.k-kpis .kpi:not(.k-lead) .l{font-size:.82rem;margin:0}
 .row.between>.btn,.row.between>form>.btn{flex:1 1 auto}
 .k-quick{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .chip{border-radius:10px}
 .card{padding:16px}
 h1{font-size:1.7rem}
}
/* Home: less empty space on wide screens */
.k-lead-top{display:flex;align-items:center;gap:14px}.k-lead-top .ic{margin:0!important}
.k-kpis{align-items:stretch}
.k-kpis .kpi:not(.k-lead){display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-content:center}
.k-kpis .kpi:not(.k-lead) .ic{grid-row:1/3;margin:0!important;align-self:center}
.k-kpis .kpi:not(.k-lead) .n{align-self:end}
.k-links .kpi{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;padding:16px}
.k-links .kpi .ic{grid-row:1/3;margin:0!important}
@media (min-width:1000px){
 .k-flow{columns:2;column-gap:18px}
 .k-flow>*{break-inside:avoid}
 .k-flow>.card,.k-flow>div{margin-top:0;margin-bottom:18px}
 .k-flow .grid.g3{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
 .k-flow .grid.g4{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
}
.pill-tog span.k-kind{display:inline-flex;padding:0;border:0;margin-block:0 0;margin-inline:0 4px;background:none;vertical-align:-3px;color:inherit;border-radius:0;min-width:0;min-height:0}
.mob-status .chip{display:block;white-space:normal;line-height:1.35;padding:8px 12px;border-radius:12px}
.feed-row>.grow{flex:1 1 10rem}
@media (max-width:560px){.land-nav{flex-wrap:wrap;gap:12px;padding:16px}.land-nav>.row{flex-wrap:wrap;gap:8px;width:100%}.land-nav>.row>.btn{flex:1 1 auto}}

/* inside the Kinsley store app (Capacitor shell): hide web-only prompts such as "install this app" */
.k-native .k-web-only{display:none!important}

/* ---------------------------------------------------------------- redesign (approved mix, Nov 2026)
   C "Clear view" for managers/directors: headline sentence, key numbers with a meaning line, attention list (safety first).
   B "One tap" for educators: do-now list, compact numbers, quick actions. A "Kept close" for parents: story-led Today. */
.k-head{margin:4px 0 18px}
.k-headline{font-family:var(--k-display);font-weight:500;font-size:clamp(1.45rem,2.6vw,2rem);line-height:1.2;letter-spacing:-.01em;margin:0;color:var(--k-ink);max-width:40ch}
.k-headline .k-accent{color:var(--k-aubergine)}
.k-head-sub{margin:8px 0 0;max-width:62ch}
.k-nums{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.k-nums-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.k-num{display:flex;flex-direction:column;gap:4px;padding:16px 18px;background:var(--k-paper);border-radius:var(--k-r);box-shadow:var(--k-sh-1);color:inherit;text-decoration:none;transition:transform var(--k-t),box-shadow var(--k-t)}
a.k-num:hover{transform:translateY(-1px);box-shadow:var(--k-sh-2)}
.k-num-l{font-size:.8rem;font-weight:600;color:var(--k-muted)}
.k-num-n{font-family:var(--k-body);font-weight:700;font-size:1.6rem;line-height:1.15;font-variant-numeric:tabular-nums;color:var(--k-ink)}
.k-num-n small{font-size:1rem;color:var(--k-muted);font-weight:500}.k-num-n.k-bad{color:var(--k-error-ink)}
.k-num-m{font-size:.82rem;color:var(--k-muted);line-height:1.35}
.k-num-bar{display:block;height:5px;border-radius:99px;background:var(--k-tint);margin-top:6px;overflow:hidden}.k-num-bar i{display:block;height:100%;background:var(--k-aubergine);border-radius:99px}
.k-attn{padding:18px 20px}
.k-attn-h{font-size:.75rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--k-muted);margin:16px 0 4px}
.k-attn-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--k-line-2);color:inherit;text-decoration:none}
.k-attn-row .grow{flex:1 1 12rem;min-width:0}.k-attn-row .tiny{display:block;margin-top:2px}.k-attn-row [data-allergy-names]{display:block;margin-top:2px}
a.k-attn-row:hover b{color:var(--k-aubergine)}
.k-attn-ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--k-tint);color:var(--k-aubergine)}
.k-attn-bad .k-attn-ic{background:var(--k-error-l);color:var(--k-error-ink)}.k-attn-bad b{color:var(--k-error-ink)}
.chip.k-tag::before,.k-tag::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block}
.k-more-today{margin-top:6px}.k-more-today>summary{list-style:none;cursor:pointer}.k-more-today>summary::-webkit-details-marker{display:none}
/* Wave 3 (UI-005): the one overdue alert on the educator's Today */
.next.k-alert{border-color:var(--k-error);background:var(--k-error-l)}.k-alert b{color:var(--k-error-ink)}
.k-alert-ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--k-paper);color:var(--k-error-ink)}
.next .grow .k-alert-sub{display:block;margin-top:2px;color:var(--k-ink)}
.k-glance-more>summary{list-style:none;cursor:pointer}.k-glance-more>summary::-webkit-details-marker{display:none}
@media (max-width:900px){.k-nums{grid-template-columns:repeat(2,minmax(0,1fr))}.k-nums-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){.k-nums-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.k-nums-3 .k-num{padding:12px}.k-nums-3 .k-num-n{font-size:1.25rem}.k-nums-3 .k-num-m{font-size:.75rem}
 .k-num{padding:14px}.k-num-n{font-size:1.35rem}.k-attn{padding:16px}}
@media (max-width:380px){.k-nums-3{grid-template-columns:minmax(0,1fr)}}
/* A "Kept close" (parents) */
.k-kidpick label{position:relative;cursor:pointer}.k-kidpick input{position:absolute;opacity:0;width:1px;height:1px}
.k-kidpick label span{display:inline-block;padding:8px 16px;border-radius:999px;font-weight:600}
.k-kidpick label:has(input:checked) span{background:var(--k-paper);box-shadow:var(--k-sh-1);color:var(--k-aubergine)}
.k-kidpick label:has(input:focus-visible) span{outline:3px solid var(--k-aubergine);outline-offset:2px}
.k-now{position:relative;overflow:hidden;background:var(--k-aubergine);color:#fff;border-radius:var(--k-r-lg);padding:22px 22px 18px}
.k-now-dot{position:absolute;inset-inline-end:-26px;top:-26px;width:110px;height:110px;border-radius:50%;background:var(--k-honey);opacity:.9}
.k-now-dot::after{content:"";position:absolute;inset-inline-start:-8px;bottom:6px;width:30px;height:30px;border-radius:50%;background:var(--k-clay)}
.k-now-e{color:rgba(255,255,255,.75)!important;position:relative}
.k-now-h{font-family:var(--k-display);font-weight:500;font-size:clamp(1.35rem,3.2vw,1.85rem);line-height:1.2;color:#fff;margin:6px 0 16px;max-width:24ch;position:relative}
.k-now-kids{display:grid;gap:10px;position:relative}
.k-now-kid{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.1);border-radius:14px;padding:10px 12px}
.k-now-kid .grow{flex:1 1 8rem;min-width:0}.k-now-kid b{display:block;color:#fff}.k-now-kid .small{color:rgba(255,255,255,.82)}
.k-now-st{flex:none;font-size:.78rem;font-weight:700;background:rgba(255,255,255,.16);border-radius:999px;padding:5px 11px;color:#fff}
.k-sec-h{display:flex;align-items:center;gap:12px;font-size:.82rem;font-weight:600;color:var(--k-muted);margin:24px 0 10px}
.k-sec-h::after{content:"";flex:1;height:1px;background:var(--k-line)}
.k-sec-row{margin:22px 0 10px}.k-sec-title{font-family:var(--k-display);font-weight:500;font-size:1.4rem;margin:0}
.k-story{padding:20px}.k-story-warm{background:#FBEFEC;box-shadow:none}
.k-story-h{font-family:var(--k-display);font-weight:500;font-size:1.3rem;margin:4px 0 8px}
.k-human{font-family:var(--k-display);font-size:1.02rem;line-height:1.5;color:var(--k-ink)}
/* Wave 5 (APP-03): long paragraphs (an announcement, an accident report) in the text face; Fraunces stays for short human lines */
.k-human.k-long{font-family:var(--k-body);font-size:1rem;line-height:1.55}
.k-story .k-human{display:block;margin:0 0 14px}
.k-timeline{list-style:none;margin:0;padding:0}
.k-timeline li{display:grid;grid-template-columns:3.2rem 14px minmax(0,1fr);gap:12px;align-items:start;padding:8px 0;position:relative}
.k-timeline li:not(:last-child)::after{content:"";position:absolute;inset-inline-start:calc(3.2rem + 18px);top:26px;bottom:-8px;width:2px;background:var(--k-line)}
.k-tl-time{font-size:.82rem;color:var(--k-muted);font-variant-numeric:tabular-nums;padding-top:2px}
.k-tl-dot{width:12px;height:12px;border-radius:50%;background:var(--k-sage);margin-top:5px;position:relative;z-index:1}
.k-tl-meal,.k-tl-bottle{background:var(--k-honey)}.k-tl-nap{background:var(--k-dusk)}.k-tl-nappy,.k-tl-mood{background:var(--k-clay)}
.k-tl-kind{display:flex;align-items:center;gap:6px;font-size:.78rem;color:var(--k-muted);font-weight:600}
.k-timeline .k-human{display:block;margin-top:2px}
.k-ask{border-top:1px solid var(--k-line-2);padding-top:10px}.k-ask+.k-ask{margin-top:10px}
.k-ask>summary{cursor:pointer;display:flex;align-items:center;gap:8px;font-family:var(--k-display);font-size:1.02rem;color:var(--k-aubergine);list-style:none;min-height:40px}
.k-ask>summary::-webkit-details-marker{display:none}
.k-moment .btn-a{background:var(--k-paper);color:var(--k-ink);border-color:var(--k-line)}
.k-moment .btn-a:hover{border-color:var(--k-aubergine);color:var(--k-aubergine)}
/* child pills: show one child's sections only */
.k-kidview [data-kid]{transition:opacity var(--k-t)}
/* B "One tap" register */
.k-filters{display:flex;flex-wrap:wrap;gap:8px}.k-filters label{position:relative}.k-filters input{position:absolute;opacity:0;width:1px;height:1px}
.k-filters span{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border-radius:999px;background:var(--k-paper);border:1px solid var(--k-line);font-weight:600;font-size:.88rem;cursor:pointer}
.k-filters i{font-style:normal;font-size:.76rem;color:var(--k-muted);font-variant-numeric:tabular-nums}
.k-filters input:checked+span{background:var(--k-aubergine);border-color:var(--k-aubergine);color:#fff}.k-filters input:checked+span i{color:rgba(255,255,255,.8)}
.k-filters input:focus-visible+span{outline:3px solid var(--k-aubergine);outline-offset:2px}
.k-reg-list{display:grid;gap:8px;container-type:inline-size}
.k-reg-row{padding:12px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 14px}
.k-reg-main{display:flex;align-items:center;gap:12px;min-width:0}.k-reg-main .grow{flex:1 1 10rem;min-width:0}
.k-reg-line{display:block;margin:2px 0 4px}.k-reg-act{flex:none;margin-inline-start:auto}
.k-reg-row>details,.k-reg-row>.k-reg-btns{justify-self:end}.k-reg-row>details[open]{grid-column:1/-1;justify-self:stretch}
.k-reg-btns{gap:6px;flex-wrap:nowrap}
.k-reg-in{box-shadow:inset 3px 0 0 var(--k-success),var(--k-sh-1)}
@container (max-width:35rem){.k-reg-row{grid-template-columns:minmax(0,1fr)}.k-reg-row>details,.k-reg-row>.k-reg-btns{justify-self:stretch}.k-reg-btns form{flex:1}.k-reg-btns .btn,.k-reg-row summary.btn{width:100%}}
.k-reg-list:has(+ *){}
main:has(input[name=regf][value=in]:checked) .k-reg-row:not([data-state=in]),
main:has(input[name=regf][value=out]:checked) .k-reg-row:not([data-state=out]),
main:has(input[name=regf][value=absent]:checked) .k-reg-row:not([data-state=absent]),
main:has(input[name=regf][value=off]:checked) .k-reg-row:not([data-state=off]),
main:has(input[name=regf][value=allergy]:checked) .k-reg-row:not([data-allergy]){display:none}
.k-reg-notes .row{align-items:flex-start;gap:10px}.k-reg-notes .row+.row{margin-top:10px}
.k-rooms .k-attn-row:first-child{border-top:0}.k-room-dot{flex:none;width:12px;height:12px;border-radius:50%}
@media (max-width:560px){.k-now-h{padding-inline-end:64px}.k-now-dot{width:90px;height:90px;inset-inline-end:-30px;top:-30px}}
/* child profile header (staff) */
.k-child-head{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:18px 20px}
.k-child-head .grow{flex:1 1 14rem;min-width:0}.k-child-name{font-family:var(--k-display);font-weight:500;font-size:clamp(1.5rem,3vw,2rem);margin:2px 0 6px}
.k-child-facts{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.88rem;color:var(--k-ink-2)}
.k-child-facts span+span::before{content:"·";margin-inline-end:14px;color:var(--k-muted)}
.k-child-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin-inline-start:auto}
@media (max-width:560px){.k-child-side{align-items:flex-start;margin-inline-start:0;width:100%}.k-child-side .row{justify-content:flex-start!important}}
.k-allergy{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--k-r);background:#FBEFEC;color:var(--k-ink)}
.k-allergy b{color:var(--k-error-ink)}.k-allergy-ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#fff;color:var(--k-error-ink)}
.k-allergy .tiny{display:block;margin-top:4px}
@media (max-width:380px){.k-reg-act{display:none}}
/* Team members */
.k-leaver{position:relative}.k-leaver>summary{list-style:none}.k-leaver>summary::-webkit-details-marker{display:none}
.k-leaver[open]{flex-basis:100%}.k-leaver-panel{margin-top:10px;background:var(--k-error-l);box-shadow:none}

/* =====================================================================================================================
   Wave 2 design-system sweep (audit Nov 2026, S1-S13). One change here fixes many screens; module sheets keep their own look.
   ===================================================================================================================== */
/* S13 (UI-031): nothing moves for people who asked their device for less motion (keyframes are also gated one by one) */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* S1 (UI-003): initials avatars are a light tint of their identity colour with ink text, whatever colour a room or the
   template gives them (a 70% paper veil keeps any colour >= 4.5:1 with ink). Deep tones with white text: .av-c0-.av-c5. */
span.av{position:relative;z-index:0;color:var(--k-ink)}
span.av::before{content:"";position:absolute;inset:0;border-radius:inherit;background:rgba(255,255,255,.7);z-index:-1}
span.av.av-tint{background:color-mix(in srgb,var(--av,var(--k-aubergine)) 30%,#fff)}span.av.av-tint::before{display:none}
span.av[class*="av-c"]{color:#fff}span.av[class*="av-c"]::before{display:none}
.av-c0{background:#4B3557!important}.av-c1{background:#8E4A3D!important}.av-c2{background:#3F5F8C!important}
.av-c3{background:#4F6B4E!important}.av-c4{background:#805314!important}.av-c5{background:#7A4E6B!important}
.k-room-dot,.dot{box-shadow:inset 0 0 0 1.5px rgba(42,33,48,.35)}

/* S3 (UI-006, UI-024): one page head on phones. nav.js marks a page H1 (and its eyebrow) that repeats the app-bar title, and
   intros already read on this device; they stay for screen readers. The site chip becomes a 44 px icon button: the site name
   is already the app bar's subtitle. */
.k-sr,.u-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
@media (max-width:900px){
 .k-dup-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
 .k-intro-seen{display:none!important}
}
@media (max-width:1200px){
 .site-chip-m{font-size:0;width:44px;height:44px;min-height:44px;padding:0;justify-content:center;border-radius:var(--k-r-sm);flex:none}
 .site-chip-m>span{font-size:1.125rem;line-height:1}.site-chip-m>svg{width:18px;height:18px}
}

/* S4 (UI-029): 44 px controls. Small buttons are 36 px with a 44 px hit area; sub-tabs and icon buttons 44; chips 32, chips you
   choose 40. tools/ui_audit.py --strict checks these. */
.btn{min-height:44px}
.btn-sm{min-height:36px;position:relative}
.btn-sm::after{content:"";position:absolute;inset:-4px 0}
/* Wave 3 long lists (APP-21): the pager under a long list ({{ pager(pg) }} in templates/_m.html). Wraps under the count on a phone. */
.k-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin:12px 0}
.k-pager-btns{display:flex;gap:8px;margin-inline-start:auto}
.k-pager-btns .btn{min-height:44px}
/* Wave 3 long sections (APP-16): a section folded under its heading; the heading is a 44 px target */
.k-fold>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}
.k-fold>summary::-webkit-details-marker{display:none}
.k-fold>summary::after{content:"";margin-inline-start:auto;width:8px;height:8px;border-inline-end:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(45deg);opacity:.6}
.k-fold[open]>summary::after{transform:rotate(-135deg)}
.icon-btn{width:44px;height:44px}
.k-subtabs>a,.k-more>summary{min-height:44px;padding-top:0;padding-bottom:0;align-items:center}
.seg a{min-height:40px;display:inline-flex;align-items:center}
button.chip,a.chip,label.chip,summary.chip{min-height:32px}
.pill-tog span,.k-kidswitch .chip,.k-rec-rooms .chip,.k-rec-pre button,.k-kidpick label span{min-height:40px;display:inline-flex;align-items:center}

/* S7 (UI-038): one selected state everywhere - aubergine tint, aubergine text and a tick (solid aubergine is the primary button only) */
.seg a.on,.pill-tog input:checked+span,.k-filters input:checked+span,.k-kidswitch .chip.on,.k-rec-rooms .chip.on,.k-rec-pre button.on,
.k-kidpick label:has(input:checked) span,.k-rec-kinds input:checked+span,.k-select [aria-pressed="true"],.k-select .on{
 background:var(--k-tint);color:var(--k-aubergine);border-color:var(--k-aubergine);box-shadow:inset 0 0 0 1px var(--k-aubergine)}
.seg a.on::before,.pill-tog input:checked+span::before,.k-filters input:checked+span::before,.k-kidswitch .chip.on::before,.k-rec-rooms .chip.on::before,
.k-rec-pre button.on::before,.k-kidpick label:has(input:checked) span::before,.k-select [aria-pressed="true"]::before,.k-select .on::before{
 content:"";display:inline-block;flex:none;width:12px;height:12px;margin-inline-end:6px;background:currentColor;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.8 9 10 3.5' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.8 9 10 3.5' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat}
.k-filters input:checked+span i{color:var(--k-aubergine)}
.pill-tog span.k-kind::before{display:none}

/* S10 (UI-040): right-to-left ready. Layout uses logical properties; direction-aware marks mirror. */
[dir=rtl] .k-dir,[dir=rtl] svg.k-dir{display:inline-block;transform:scaleX(-1)}
[dir=rtl] .lb-prev,[dir=rtl] .lb-next{transform:scaleX(-1)}
[dir=rtl] .k-reg-in{box-shadow:inset -3px 0 0 var(--k-success),var(--k-sh-1)}
[dir=rtl] .k-more>summary{background-position:left 1px top 9px}
[dir=rtl] .bubble.mine{border-end-end-radius:18px;border-end-start-radius:6px}

/* S11: small utilities so templates can drop inline styles (tokens only) */
.u-m0{margin:0}.u-mt0{margin-top:0}.u-mb0{margin-bottom:0}.u-mt1{margin-top:4px}.u-mt2{margin-top:8px}.u-mt3{margin-top:16px}.u-mb1{margin-bottom:4px}.u-mb2{margin-bottom:8px}.u-mb3{margin-bottom:16px}
.u-gap1{gap:6px}.u-gap2{gap:8px}.u-gap3{gap:12px}.u-inline{display:inline}.u-wauto{width:auto}.u-w100{width:100%}.u-center{text-align:center}.u-start{text-align:start}
.u-end{justify-content:flex-end}.u-nowrap{white-space:nowrap}.u-bold{font-weight:700}.u-hidden{display:none}.u-flex1{flex:1}.u-pre{white-space:pre-wrap}
.u-round{border-radius:var(--k-r-sm)}.u-cover{object-fit:cover}.u-maxh360{max-height:360px}.u-img{width:100%;border-radius:14px;object-fit:cover}
.u-muted{color:var(--k-muted)}.u-ink{color:var(--k-ink)}.u-ok{color:var(--k-success-ink)}.u-warn{color:var(--k-warning-ink)}.u-err{color:var(--k-error-ink)}.u-info{color:var(--k-info-ink)}.u-aub{color:var(--k-aubergine)}
.u-bg-tint{background:var(--k-tint)}.u-bg-linen{background:var(--k-linen)}.u-bg-ok{background:var(--k-success-l)}.u-bg-warn{background:var(--k-warning-l)}.u-bg-err{background:var(--k-error-l)}.u-bg-info{background:var(--k-info-l)}
/* base.html banners and the shell (moved out of inline styles) */
.k-env-banner{background:var(--k-honey-l);color:var(--k-ink);text-align:center;font-weight:700;padding:6px;font-size:.85rem;position:sticky;top:0;z-index:99}
.imp-banner{background:var(--k-error-ink);color:#fff;text-align:center;font-weight:700;padding:8px;position:sticky;top:0;z-index:100}
.imp-banner form{display:inline;margin:0}.imp-banner button{background:#fff;color:var(--k-error-ink);border:0;border-radius:8px;padding:3px 10px;font-weight:700;cursor:pointer;min-height:32px}
.k-trial-banner{background:var(--k-honey-l);color:var(--k-warning-ink);text-align:center;font-weight:700;padding:7px;font-size:.88rem}.k-trial-banner a{color:inherit;text-decoration:underline}
.brand-logo{border-radius:8px;object-fit:contain}.brand .lbl{font-size:1.05rem;line-height:1.15}
.k-cur-site{font-weight:700;margin:2px 0 4px}.k-site-dot{color:var(--k-site,var(--k-aubergine))}
.me-name{font-weight:700;font-size:.88rem}.me-box form{margin:0}.me-lock{background:none!important;padding:4px!important;min-height:36px}
.k-inline-form{margin:0}
.k-env-banner .i,.imp-banner .i,.k-trial-banner .i{display:inline-block;vertical-align:-3px}
.k-enq-act>form.row{flex-wrap:wrap;gap:6px}.k-enq-act>form.row>.btn{white-space:nowrap}
/* requests from the template sweep (eng-people, Wave 2) */
.u-on-aub{color:#fff}.u-on-clay{color:var(--k-ink)}.u-clay{color:var(--k-clay-ink)}
.u-bg-aub{background:var(--k-aubergine)}.u-bg-paper{background:var(--k-paper)}.u-bg-clay{background:var(--k-clay-l)}.u-bg-clay-solid{background:var(--k-clay)}
.u-bg-dusk{background:var(--k-dusk)}.u-bg-honey{background:var(--k-honey)}.u-bg-ink{background:var(--k-ink)}
.u-b-line{border:1px solid var(--k-line)}.u-bt-line{border-top:1px solid var(--k-line)}.u-bb-line{border-bottom:1px solid var(--k-line)}
.u-b-err{border:1px solid var(--k-error)}.u-b-err-l{border:2px solid var(--k-error-l)}.u-b-clay-l{border:2px solid var(--k-clay-l)}
.u-bl-clay{border-inline-start:6px solid var(--k-clay)}.u-b-honey-dashed{border:2px dashed var(--k-honey)}
.u-r12{border-radius:12px}.u-r50{border-radius:50%}
.rb-outline{stroke:#CDB9A3}.rb-skin{fill:#FFF4E8}.rb-feature{fill:#B9A38C}.rb-feature-line{fill:none;stroke:#B9A38C}.rb-hair{fill:#E9D8C4}.rb-spine{stroke:#EADBC9}.rb-mark-ring{stroke:#fff}
[data-mock-photo]{background:radial-gradient(circle at 70% 30%,#FFF6EA,#E9D8C4 45%,#B9A08A)}
.k-site-pick{padding:10px;border-radius:14px}.k-site-pick.on{background:var(--k-tint);font-weight:700}
.kpi[aria-current]{box-shadow:0 0 0 2px var(--k-aubergine);background:var(--k-tint)}
.k-pv{border:1px solid var(--k-line);border-radius:16px;padding:16px}.k-pv-dot{flex:none;width:12px;height:12px;border-radius:50%;background:var(--dot,var(--k-aubergine));box-shadow:inset 0 0 0 1.5px rgba(42,33,48,.35)}
.field-label{display:block;font-weight:600;font-size:.83rem;margin:0 0 6px;color:var(--k-ink-2)}
[dir=rtl] svg[data-ico*="chevron"],[dir=rtl] svg[data-ico*="arrow"],[dir=rtl] svg[data-ico="back"],[dir=rtl] svg[data-ico="next"]{transform:scaleX(-1)}
/* Wave 5 UI-050: Kinsley symbol + "by Kinsley" under the nursery name in the app shell (nursery logo still wins) */
.brand .lbl small.k-by{display:block;font-size:.75rem;font-weight:600;color:var(--k-ink-3,var(--k-ink-2));letter-spacing:.02em;margin-top:2px}
.brand img.k-bsym{border-radius:10px}
.mtop .brand{min-width:44px;min-height:44px;justify-content:center}

/* first-sign-in PIN (owner decision 10 Nov 2026): templates/account_pin.html */
.k-pin-setup{max-width:460px;margin:24px auto;padding:0 16px}.k-pin-setup h1{margin:6px 0 8px}.k-pin-ic{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--k-tint);color:var(--k-aubergine)}.k-pin-in{font-size:1.4rem;letter-spacing:.4em;text-align:center;min-height:52px}.k-pin-err{margin:12px 0 0;padding:10px 12px;border-radius:var(--k-r-sm);background:var(--k-error-l);color:var(--k-error-ink);font-weight:600}

/* ===================================================================================================================== B19 (Wave B,
   NB-11): daily screens tidied for the phone. K-062 a native-feeling title bar: no boxed menu button, no logo on phones (the Today
   tab goes home), a back arrow on sub-pages (nav_state.back) instead of the menu button on small phones, safe areas, one compact row. */
.mtop-back{display:none}
@media (max-width:1200px){
 .mtop-back{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:var(--k-r-sm);color:var(--k-ink);margin-inline-start:-4px}
 .mtop-back:hover{background:var(--k-tint);color:var(--k-aubergine)}}
@media (max-width:900px){
 .mtop{gap:4px;min-height:3.5rem;padding-block:calc(4px + env(safe-area-inset-top)) 4px;padding-inline:max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right))}
 .mtop .brand{display:none}
 .mtop .mtop-menu{background:none;border:0;color:var(--k-ink)}
 .mtop-title b{font-size:1.2rem}}
@media (max-width:560px){.mtop:has(.mtop-back) .mtop-menu{display:none}}
/* K-052: tab labels a little larger; when the phone's text size is large (few "text widths" across the screen) the tab bar keeps
   its icons and the labels stay for screen readers only, so they never overlap. Media-query ems use the browser's default size. */
@media (max-width:900px){.tabs-m a{font-size:.75rem}.tabs-m .lbl{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
html.k-ts-l .tabs-m .lbl,html.k-ts-xl .tabs-m .lbl{white-space:normal;text-align:center;line-height:1.1;overflow-wrap:anywhere}   /* 1.4.4: never cut off */
input[type=time]:focus-visible,input[type=date]:focus-visible{outline:2px solid var(--k-aubergine);outline-offset:2px}   /* 2.4.7 */
[data-signup-card] input[type=radio],[data-signup-card] input[type=checkbox]{min-width:24px;min-height:24px;accent-color:var(--k-aubergine)}   /* 2.5.8: sign-up */
@media (max-width:19em){.tabs-m .lbl{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}}
/* K-054: one primary action pinned above the tab bar on phones. Opt in with class k-actbar (or data-actbar) on the action row
   of a long form; it sticks to the bottom of its form while the form scrolls past (the register's "Sign in N" works this way). */
@media (max-width:900px){.k-actbar,[data-actbar]{position:sticky;bottom:calc(4.75rem + env(safe-area-inset-bottom));z-index:35;background:var(--k-paper);border:1px solid var(--k-line);border-radius:16px;box-shadow:var(--k-sh-2);padding:10px;margin-top:12px}}
/* K-046 register: children not booked today sit at the end, quieter, never counted as "Not arrived" */
.k-reg-off{background:var(--k-linen);box-shadow:none}.k-reg-off .k-reg-line{color:var(--k-muted)}
.k-reg-booking{margin-inline-start:4px}
/* K-051: the 10-second Undo after a sign-in or sign-out (moved into the toasts by nav.js; a plain block without JavaScript) */
.k-undo{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}.k-undo .grow{flex:1 1 11rem;min-width:0}.k-undo .btn{min-height:44px}
#kn-toasts .k-undo{margin:0}
/* ---------------------------------------------------------------- Wave C · C11 brand system (static/brand/tokens.json) */
/* C-12 (K-122): Kin Dot illustrations in empty states ({{ illo('name') }} in templates/_m.html, files in static/illustrations/). They
   replace the two plain circles; decorative (the sentence says it all). Fixed box, so nothing moves while the image loads. */
.empty .e.k-illo-e,.k-illo-e{display:block}
.empty:has(.k-illo-e):before{content:none}
.k-illo{display:block;width:128px;height:96px;margin:0 auto 12px}
.empty.small .k-illo{width:96px;height:72px;margin-bottom:8px}
/* C-13 (K-124): "the Kin Dot settles" when something is saved: the tick drops in and settles, then the Kin Dot (honey with its
   small clay dot, as on the k of the symbol) settles at its top right. Transform and opacity only, on absolutely placed dots, so the message never moves or changes size (no layout
   shift). 0.32 s + 0.06 s delay = 0.38 s (under 400 ms). Never with "reduce motion": then the dots are simply there. */
.flash.ok:after{content:"";position:absolute;inset-inline-start:30px;top:10px;width:7px;height:7px;border-radius:50%;background:var(--k-honey);box-shadow:4px 3.5px 0 -1.5px var(--k-clay)}
@media (prefers-reduced-motion:no-preference){
  .flash.ok:before{animation:k-dot-settle var(--k-t-settle) var(--k-ease-settle) both}
  .flash.ok:after{animation:k-dot-settle var(--k-t-settle) var(--k-ease-settle) .06s both}
}
@keyframes k-dot-settle{0%{opacity:0;transform:translateY(-6px) scale(.6)}60%{opacity:1;transform:translateY(1px) scale(1.06)}100%{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.flash.ok:before,.flash.ok:after{animation:none!important;transform:none!important}}

/* ---- Wave C · C13 (parents & design items) ---- */
/* K-113: one "saving / saved" pattern. speed.js marks the pressed button .k-saving while a form posts (spinner, none with reduced
   motion); rows that save as you go use .k-saved with data-state="saving|saved|offline" ("Saved · 10:42"; offline in amber). */
.k-saving{cursor:progress}
.k-saving::after{content:"";display:inline-block;width:.85em;height:.85em;margin-inline-start:8px;border-radius:50%;border:2px solid currentColor;border-inline-end-color:transparent;vertical-align:-2px;flex:none}
@media (prefers-reduced-motion:no-preference){.k-saving::after{animation:k-spin .8s linear infinite}@keyframes k-spin{to{transform:rotate(360deg)}}}
.k-saved{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:600;color:var(--k-success-ink)}
.k-saved[data-state="saving"]{color:var(--k-muted)}
.k-saved[data-state="offline"]{color:var(--k-warning-ink);background:var(--k-warning-l);border-radius:var(--k-pill);padding:2px 10px}
/* K-116: on tablets the icon rail is the navigation, so the top bar has no menu button as well (the site chip still opens the drawer) */
@media (min-width:901px) and (max-width:1200px){.mtop-menu{display:none}}
/* K-115: a clearer type scale (section headings sit below the page title) and staff notes in Figtree */
.k-reg-note{font-family:var(--k-body)}
@media (max-width:900px){h2{font-size:1.3rem}.k-sec-title{font-size:1.2rem}.k-story-h{font-size:1.15rem}}
/* N13 (P-15): the person's own text size (Settings › Text size); rem-based sizes follow it */
html.k-ts-l{font-size:112.5%}html.k-ts-xl{font-size:125%}

/* ===================================================================================================================== Wave 4
   accessibility (audit 17 Nov 2026 section 6.4, WCAG 2.2 AA: APP-19, UX-20, UX-19, APP-05, UX-21, APP-20, UX-14; 21 Nov 2026).
   tests/test_waveD_a11y.py checks these rules are here. */
/* UX-20 (2.4.1): "Skip to content" is the first thing on every signed-in page; hidden until it has keyboard focus */
.k-skip{position:absolute;inset-inline-start:-999px;top:8px;z-index:1001;display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;
 border-radius:var(--k-r-sm);background:var(--k-paper);color:var(--k-aubergine);font-weight:700;box-shadow:var(--k-sh-2)}
.k-skip:focus{inset-inline-start:8px}
#main:focus{outline:0}        /* the skip link's target: focus lands at the top of the page, no ring round the whole page */
/* 2.4.7 / 2.4.11: focus is always visible. Fields get a 2 px aubergine ring (the old 12% halo was hard to see); a white ring on
   dark surfaces; sticky bars never hide the control you tabbed to (scroll padding the height of the bars) */
.in:focus,.ks-input:focus{outline:0;border-color:var(--k-aubergine);box-shadow:0 0 0 1px var(--k-aubergine),0 0 0 4px rgba(75,53,87,.16)}
.kn-pill:focus-visible{outline:2px solid var(--k-aubergine);outline-offset:3px}
.imp-banner :focus-visible,.k-sleep-strip:focus-visible,.lb :focus-visible,.mc-modal :focus-visible,.u-bg-aub :focus-visible,.u-bg-ink :focus-visible{outline-color:#fff}
@media (max-width:1200px){html{scroll-padding-top:4.5rem}}
@media (max-width:900px){html{scroll-padding-bottom:5.5rem}}
/* APP-05 / UX-21 (2.5.8, brand rule 44 px): list links and small controls on phones and touch screens.
   .k-tap = a stand-alone link or summary 44 px tall; .k-hit = a link inside a line of text keeps its look and gets an invisible
   44 px touch area (nothing moves). Text fields are 44 px too. */
@media (max-width:900px),(pointer:coarse){
 .in,select.in{min-height:2.75rem}
 .k-tap,a:has(>.k-dir:first-child),.k-sec-row>a,.row.between>a.small,.k-reg-main .grow>a:first-child,.ck-tpl-edit,.cv-diary-seen>summary,.k-quiet,.k-biz-back{display:inline-flex;align-items:center;min-height:44px}
 label.row:has(>input[type=checkbox]),label.row:has(>input[type=radio]){min-height:44px}   /* a tick with its words: the whole row is the target */
 .k-hit,.cv-report>summary{position:relative}
 .k-hit::after,.cv-report>summary::after{content:"";position:absolute;inset:-12px -6px}
}
/* APP-05: the "… collecting" chip on the register wraps instead of being cut off ("Wei Chen (Grandad) collect…") */
.k-reg-row .k-reg-tag{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;border-radius:var(--k-r-xs)}
/* UX-19 (1.4.10 Reflow): on a short screen (a phone on its side, 400% zoom = 320 x 200, a laptop at 200%) the bars stop
   sticking, so they never cover most of the view: they scroll away with the page. 31.25em = 500 px at the browser's own text
   size (a larger text setting un-sticks them sooner, as the bars grow with the text). !important: module stylesheets load later. */
@media (max-height:31.25em){
 .mtop,.k-env-banner,.imp-banner,.tabs-m,.k-actbar,[data-actbar],.k-reg-bar,.k-reg-batch,.k-sleep-strip,.ops-alert,.k-set-nav,.kw-kbar,.fam-nav,.lf-ph{position:static!important}
 .mtop{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--k-linen)}
 .content{padding-bottom:24px!important}
 .modal-btn{bottom:16px}
 .k-more[open]>.k-more-menu{bottom:8px;max-height:80vh}
 html{scroll-padding-top:0;scroll-padding-bottom:0}
 .k-sheet-panel{max-height:96vh}
}
/* APP-20: a page's main heading that keeps the look of a section heading (the form or poll page) */
.k-h-as2{font-size:1.5rem}
@media (max-width:900px){.k-h-as2{font-size:1.3rem}}
/* Audit UX-18: the group owner's campus summary, straight under the headline */
.k-camps{padding:4px 14px}.k-camp{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;min-height:44px;color:inherit;text-decoration:none}
.k-camp+.k-camp{border-top:1px solid var(--k-line)}.k-camp-n{display:flex;align-items:center;gap:8px;min-width:0;font-weight:600;overflow-wrap:anywhere}.k-camp-n .k-room-dot{flex:none}.k-camp-in{font-size:.86rem;white-space:nowrap}
[id^="site-"].site-card{scroll-margin-top:72px}
