/* css/00-base.css */
/* Wrennery design system — base, tokens, layout, components. */
@font-face { font-family: 'Jakarta'; src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; 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: 'Jakarta'; src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; 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; }
@font-face { font-family: 'Jakarta'; src: url('../fonts/plus-jakarta-sans-latin-wght-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --font: 'Jakarta', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  --brand-50: #EFF2F8; --brand-100: #DDE3F0; --brand-200: #BBC6E0; --brand-300: #91A2CB; --brand-400: #647AB1;
  --brand-500: #465E9A; --brand-600: #354A80; --brand-700: #2B3C68; --brand-800: #243256; --brand-900: #1E2B4A; --brand-950: #141D34;
  --coral: #B4633A; --coral-50: #FBF2EB; --coral-100: #F5E0D2; --coral-700: #8A4424;
  --moss: #7C9A6D; --moss-50: #F1F5EE; --moss-100: #DFE8D9; --moss-700: #4C6A3F;
  --eggshell: #CFE0E8; --oat: #F3EEE3;
  --sun: #F2B33D; --sun-50: #FFF8E6; --sun-100: #FFEDC2; --sun-700: #8F5F00;
  --sky: #2E86D6; --sky-50: #EEF6FD; --sky-100: #D9EBFB; --sky-700: #1B5E9E;
  --lilac: #7457DA; --lilac-50: #F4F1FE; --lilac-100: #E8E1FC; --lilac-700: #5338B0;
  --pink: #D6458B; --pink-50: #FDEFF6; --pink-100: #FADBEA;

  --ink: #1A2238; --ink-2: #3A445C; --muted: #636E85; --faint: #8A93A6; --ghost: #B8BFCD;
  --line: #E6E1DA; --line-2: #EEEBE6; --line-3: #F4F2EE;
  --canvas: #F7F3EB; --surface: #FFFFFF; --subtle: #FAF9F6; --hover: #F7F5F1;

  --ok: #12804B; --ok-bg: #E2F4E9; --ok-line: #B6E2C7;
  --warn: #A86500; --warn-bg: #FDF1D6; --warn-line: #F4D79A;
  --bad: #C42F3D; --bad-bg: #FCE7E9; --bad-line: #F4BEC4;
  --info: #22609F; --info-bg: #E4EFFB; --info-line: #BBD5F1;

  --r-xs: 6px; --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --sh-xs: 0 1px 1px rgba(26,34,56,.04);
  --sh-sm: 0 1px 2px rgba(26,34,56,.05), 0 1px 1px rgba(26,34,56,.03);
  --sh: 0 1px 2px rgba(26,34,56,.04), 0 4px 12px rgba(26,34,56,.05);
  --sh-lg: 0 18px 44px rgba(26,34,56,.14), 0 3px 8px rgba(26,34,56,.06);
  --ring: 0 0 0 3px rgba(53,74,128,.26);
  --sidebar-w: 268px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'cv11', 'ss01'; }
img, svg { display: inline-block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15.5px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; }
p { margin: 0 0 .75em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 18px 0; }
small, .small { font-size: 12.5px; }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); font-size: 11px; color: var(--muted); line-height: 1.5; }
::selection { background: var(--brand-100); }
.ic { flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- utilities ---------- */
.flex { display: flex; } .iflex { display: inline-flex; } .col { flex-direction: column; } .wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; } .items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; } .shrink-0 { flex-shrink: 0; }
.gap-0 { gap: 2px; } .gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grid { display: grid; gap: 20px; } .grid.tight { gap: 12px; } .grid.loose { gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cols-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .cols-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .cols-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .cols-side { grid-template-columns: minmax(0, 1fr) 340px; } .cols-side-l { grid-template-columns: 280px minmax(0, 1fr); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-all { grid-column: 1 / -1; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.ml-auto { margin-left: auto; } .mr-auto { margin-right: auto; }
.p-0 { padding: 0 !important; } .p-3 { padding: 12px; } .p-4 { padding: 16px; } .p-5 { padding: 20px; } .px-4 { padding-left: 16px; padding-right: 16px; } .py-2 { padding-top: 8px; padding-bottom: 8px; }
.w-full { width: 100%; } .h-full { height: 100%; } .min-w-0 { min-width: 0; }
.text-xs { font-size: 11.5px; } .text-sm { font-size: 12.5px; } .text-md { font-size: 14px; } .text-lg { font-size: 16px; } .text-xl { font-size: 20px; } .text-2xl { font-size: 26px; } .text-3xl { font-size: 32px; }
.bold { font-weight: 700; } .semi { font-weight: 600; } .medium { font-weight: 500; } .normal { font-weight: 400; } .italic { font-style: italic; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .ink { color: var(--ink); } .brand { color: var(--brand-600); }
.c-ok { color: var(--ok); } .c-warn { color: var(--warn); } .c-bad { color: var(--bad); } .c-info { color: var(--info); } .c-lilac { color: var(--lilac); } .c-coral { color: var(--coral); }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabnum { font-variant-numeric: tabular-nums; } .upper { text-transform: uppercase; letter-spacing: .06em; }
.rounded { border-radius: var(--r); } .round { border-radius: 999px; }
.relative { position: relative; } .block { display: block; } .inline-block { display: inline-block; }
.lh-tight { line-height: 1.25; } .lh-loose { line-height: 1.7; }
.divider-v { width: 1px; align-self: stretch; background: var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--faint); }
.dot.ok { background: #1DA463; } .dot.warn { background: #E39A12; } .dot.bad { background: #E0414F; } .dot.info { background: var(--sky); } .dot.lilac { background: var(--lilac); }
.dot.pulse { box-shadow: 0 0 0 0 rgba(29,164,99,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(29,164,99,.45); } 70% { box-shadow: 0 0 0 7px rgba(29,164,99,0); } 100% { box-shadow: 0 0 0 0 rgba(29,164,99,0); } }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.hide { display: none !important; }

/* ---------- demo bar ---------- */
.demobar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 16px; background: var(--ink); color: #D9E1EA; font-size: 12.5px; }
.demobar a { color: #fff; }
.demobar .tag { background: var(--coral); color: #fff; font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.demobar .roles { display: flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.demobar .roles a { color: #C3CDD8; padding: 3px 11px; border-radius: 999px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.demobar .roles a:hover { color: #fff; background: rgba(255,255,255,.08); }
.demobar .roles a.on { background: #fff; color: var(--ink); }
.demobar .sp { flex: 1; }
.demobar .back { display: inline-flex; align-items: center; gap: 6px; opacity: .85; }
.demobar .back:hover { opacity: 1; color: #fff; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - 38px); }
.sidebar { position: sticky; top: 38px; height: calc(100vh - 38px); overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(180deg, var(--brand-900) 0%, var(--brand-950) 100%); color: #D0D8EA; padding: 14px 12px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.sidebar .brandmark { display: flex; align-items: center; gap: 10px; padding: 6px 10px 14px; color: #fff; }
.logo-img { display: block; height: auto; max-width: 100%; }
.sidebar .site-pill { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; margin-bottom: 12px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); color: #fff; cursor: pointer; text-align: left; font: inherit; }
.sidebar .site-pill:hover { background: rgba(255,255,255,.11); }
.sidebar .site-pill .site-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--sun); color: var(--brand-950); font-weight: 800; font-size: 13px; }
.sidebar .site-pill .t1 { font-weight: 700; font-size: 13px; line-height: 1.2; }
.sidebar .site-pill .t2 { font-size: 11.5px; color: #A3AFCB; }
.nav-sec { margin-top: 14px; }
.nav-sec > .lbl { padding: 0 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8A97B5; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 1px 0; border-radius: 9px; color: #D0D8EA; font-weight: 550; font-size: 13.5px; line-height: 1.3; }
.nav a .ic { color: #9AA8C6; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a:hover .ic { color: #fff; }
.nav a.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--sun); }
.nav a.on .ic { color: var(--sun); }
.nav a .count { margin-left: auto; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.12); color: #fff; padding: 1px 7px; border-radius: 999px; }
.nav a .count.alert { background: var(--coral); }
.nav a .lock { margin-left: auto; opacity: .55; }
.sidebar-foot { margin-top: 20px; padding: 12px 10px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 12px; color: #A3AFCB; }
.sidebar-foot b { color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 38px; z-index: 40; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 28px; background: rgba(246,244,240,.86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar .menu-btn { display: none; }
.search { position: relative; flex: 0 1 440px; }
.search input { width: 100%; height: 38px; padding: 0 70px 0 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.search .ic { position: absolute; left: 12px; top: 10px; color: var(--faint); }
.search kbd { position: absolute; right: 10px; top: 9px; }
.topbar .now { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
.icon-btn .badge-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); border: 2px solid var(--canvas); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; background: none; font: inherit; color: inherit; text-align: left; }
.user-chip:hover { background: var(--surface); border-color: var(--line); }
.user-chip .n { font-weight: 700; font-size: 13px; line-height: 1.15; }
.user-chip .r { font-size: 11.5px; color: var(--muted); line-height: 1.15; }
.content { padding: 26px 32px 56px; width: 100%; max-width: 1480px; }
.content.wide { max-width: none; }
.content.narrow { max-width: 1040px; }

/* ---------- page header ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); font-weight: 500; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs .ic { color: var(--ghost); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { margin-top: 5px; color: var(--muted); font-size: 14px; max-width: 760px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-title h2 { font-size: 16px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); min-width: 0; }
.card.flat { box-shadow: none; }
.card.soft { background: var(--subtle); }
.card.pad { padding: 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line-2); min-height: 56px; }
.card-h h3 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.card-h .sub { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.card-h.plain { border-bottom: 0; padding-bottom: 4px; }
.card-b { padding: 18px 20px; }
.card-b.tight { padding: 12px 16px; }
.card-f { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.card-link { font-size: 12.5px; font-weight: 650; display: inline-flex; align-items: center; gap: 4px; }
.card.accent-top { border-top: 3px solid var(--brand-500); }
.card.hoverable { transition: box-shadow .15s, transform .15s, border-color .15s; }
.card.hoverable:hover { box-shadow: var(--sh); border-color: #DCD6CE; transform: translateY(-1px); }
.tint-brand { background: var(--brand-50); border-color: var(--brand-100); }
.tint-sun { background: var(--sun-50); border-color: var(--sun-100); }
.tint-coral { background: var(--coral-50); border-color: var(--coral-100); }
.tint-sky { background: var(--sky-50); border-color: var(--sky-100); }
.tint-lilac { background: var(--lilac-50); border-color: var(--lilac-100); }

/* ---------- stats ---------- */
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.stat .lbl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stat .val { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .val small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat .foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.stat-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 12px; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.delta.up { color: var(--ok); background: var(--ok-bg); } .delta.down { color: var(--bad); background: var(--bad-bg); } .delta.flat { color: var(--muted); background: var(--line-3); }
.ico-brand { background: var(--brand-50); color: var(--brand-600); } .ico-coral { background: var(--coral-50); color: var(--coral); } .ico-sun { background: var(--sun-50); color: #C8890E; } .ico-sky { background: var(--sky-50); color: var(--sky); } .ico-lilac { background: var(--lilac-50); color: var(--lilac); } .ico-pink { background: var(--pink-50); color: var(--pink); } .ico-ink { background: var(--line-3); color: var(--ink-2); } .ico-ok { background: var(--ok-bg); color: var(--ok); } .ico-bad { background: var(--bad-bg); color: var(--bad); } .ico-warn { background: var(--warn-bg); color: var(--warn); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; font-size: 13.5px; cursor: pointer; white-space: nowrap; box-shadow: var(--sh-xs); transition: background .12s, border-color .12s, box-shadow .12s, color .12s; text-decoration: none; }
.btn:hover { background: var(--hover); border-color: #D9D3CA; color: var(--ink); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn .ic { margin-left: -2px; }
.btn.primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 1px 2px rgba(53,74,128,.3), inset 0 1px 0 rgba(255,255,255,.12); }
.btn.primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn.coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.coral:hover { background: var(--coral-700); border-color: var(--coral-700); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; color: #fff; }
.btn.danger { color: var(--bad); border-color: var(--bad-line); background: #fff; }
.btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(26,34,56,.05); }
.btn.soft { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); box-shadow: none; }
.btn.soft:hover { background: var(--brand-100); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; gap: 4px; }
.btn.lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn.icon { width: 36px; padding: 0; } .btn.sm.icon { width: 30px; } .btn.xs.icon { width: 26px; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: 10px 0 0 10px; margin-left: 0; } .btn-group .btn:last-child { border-radius: 0 10px 10px 0; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap; background: var(--line-3); color: var(--ink-2); border: 1px solid transparent; }
.badge .ic { width: 13px; height: 13px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.info { background: var(--info-bg); color: var(--info); }
.badge.brand { background: var(--brand-50); color: var(--brand-700); } .badge.lilac { background: var(--lilac-50); color: var(--lilac-700); } .badge.coral { background: var(--coral-50); color: var(--coral-700); } .badge.sun { background: var(--sun-50); color: var(--sun-700); } .badge.pink { background: var(--pink-50); color: var(--pink); } .badge.sky { background: var(--sky-50); color: var(--sky-700); }
.badge.dark { background: var(--ink); color: #fff; }
.badge.outline { background: transparent; border-color: var(--line); color: var(--ink-2); }
.badge.lg { height: 26px; padding: 0 11px; font-size: 12.5px; }
.badge.sq { border-radius: 6px; }
.badge.dotted::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--line-3); color: var(--ink-2); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: #D3CDC4; color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { font-size: 11px; color: var(--faint); font-weight: 700; } .chip.on .n { color: #C9D2DC; }
.allergen { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 6px; background: var(--bad-bg); color: var(--bad); font-size: 11.5px; font-weight: 700; border: 1px solid var(--bad-line); }

/* ---------- avatars ---------- */
.av { position: relative; display: inline-block; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--line-3); overflow: hidden; }
.av img { width: 100%; height: 100%; display: block; }
.av.xs { width: 22px; height: 22px; } .av.sm { width: 28px; height: 28px; } .av.md { width: 44px; height: 44px; } .av.lg { width: 64px; height: 64px; } .av.xl { width: 96px; height: 96px; }
.av.ring { box-shadow: 0 0 0 2px var(--surface); }
.av .st { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; border-radius: 50%; border: 2px solid #fff; background: #1DA463; }
.av-initials { display: inline-grid; place-items: center; font-weight: 700; color: #fff; font-size: 13px; }
.av-stack { display: inline-flex; } .av-stack .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); } .av-stack .av:first-child { margin-left: 0; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .nm { font-weight: 650; color: var(--ink); line-height: 1.25; }
.person a.nm:hover { color: var(--brand-600); }
.person .meta { font-size: 12px; color: var(--muted); line-height: 1.25; }

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { position: sticky; top: 0; text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; padding: 10px 14px; background: var(--subtle); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-3); vertical-align: middle; }
.table tbody tr:hover td { background: var(--hover); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table.compact td { padding: 8px 12px; } .table.compact th { padding: 8px 12px; }
.table .row-muted td { color: var(--faint); }
.table tr.row-alert td { background: #FFF8F7; }
.table tr.row-warn td { background: #FFFBF1; }
.table tr.row-ok td { background: #F6FCF8; }
.table tfoot td { font-weight: 700; background: var(--subtle); border-top: 1px solid var(--line-2); }
.card > .table-wrap:first-child table th:first-child { border-top-left-radius: var(--r-lg); }
.card > .table-wrap:first-child table th:last-child { border-top-right-radius: var(--r-lg); }
.table .actions { display: flex; gap: 4px; justify-content: flex-end; }
.sort { cursor: pointer; } .sort:hover { color: var(--ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--bad); font-weight: 600; }
.input, .select, .textarea { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 13.5px; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23637081' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.input.sm, .select.sm { height: 32px; font-size: 13px; border-radius: 8px; }
.input[readonly] { background: var(--subtle); color: var(--ink-2); }
.input.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(196,47,61,.12); }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); background: var(--subtle); color: var(--muted); font-size: 13px; font-weight: 600; }
.input-group .addon:first-child { border-radius: 10px 0 0 10px; border-right: 0; } .input-group .addon:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.input-group .input { border-radius: 0; } .input-group .input:first-child { border-radius: 10px 0 0 10px; } .input-group .input:last-child { border-radius: 0 10px 10px 0; }
.input-icon { position: relative; } .input-icon .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; } .input-icon .input { padding-left: 36px; }
.check { display: inline-flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13.5px; line-height: 1.4; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--brand-600); flex-shrink: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .tr { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #D5D0C8; transition: background .15s; flex-shrink: 0; }
.switch .tr::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .tr { background: var(--brand-500); }
.switch input:checked + .tr::after { transform: translateX(16px); }
.switch input:disabled + .tr { opacity: .55; }
.switch input:focus-visible + .tr { box-shadow: var(--ring); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { padding: 22px 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
.form-section:first-child { border-top: 0; padding-top: 4px; }
.form-section .fs-title h3 { font-size: 14.5px; margin-bottom: 4px; }
.form-section .fs-title p { font-size: 13px; color: var(--muted); }
.range { width: 100%; accent-color: var(--brand-600); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: #EEEBE6; border-radius: 10px; }
.seg button, .seg a { border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 650; color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on, .seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }
.seg button:hover:not(.on), .seg a:hover:not(.on) { color: var(--ink); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; font: inherit; font-size: 13.5px; font-weight: 650; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .on { color: var(--brand-700); }
.tabs .on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; border-radius: 3px 3px 0 0; background: var(--brand-600); }
.tabs .n { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--line-3); color: var(--muted); }
.tabs .on .n { background: var(--brand-50); color: var(--brand-700); }
.tab-panel { display: none; } .tab-panel.on { display: block; }

/* ---------- callouts ---------- */
.callout { display: flex; gap: 12px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--info-line); background: var(--info-bg); color: #18466F; font-size: 13.5px; align-items: flex-start; }
.callout .ic { margin-top: 1px; color: var(--info); }
.callout b, .callout strong { color: inherit; }
.callout.ok { border-color: var(--ok-line); background: var(--ok-bg); color: #0E5A35; } .callout.ok .ic { color: var(--ok); }
.callout.warn { border-color: var(--warn-line); background: var(--warn-bg); color: #6E4200; } .callout.warn .ic { color: var(--warn); }
.callout.bad { border-color: var(--bad-line); background: var(--bad-bg); color: #84202A; } .callout.bad .ic { color: var(--bad); }
.callout.brand { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-800); } .callout.brand .ic { color: var(--brand-600); }
.callout.neutral { border-color: var(--line); background: var(--subtle); color: var(--ink-2); } .callout.neutral .ic { color: var(--muted); }
.callout .grow > :first-child { font-weight: 700; }
.guard { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #FBF7FF; border: 1px dashed #CDBDF6; color: #4B3696; font-size: 12.5px; }
.guard .ic { color: var(--lilac); margin-top: 1px; }
.guard b { color: #3A2785; }

/* ---------- lists & key-values ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line-3); }
.list > li:last-child { border-bottom: 0; }
.list.tight > li { padding: 8px 16px; }
.list > li:hover { background: var(--hover); }
.list.nohover > li:hover { background: none; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 9px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 550; }
.kv dd { margin: 0; color: var(--ink); font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.kv.stack { grid-template-columns: 1fr; gap: 2px; }
.kv.stack dd { margin-bottom: 10px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.meta-row span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- progress & meters ---------- */
.bar { height: 8px; border-radius: 999px; background: #ECE8E2; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--brand-500); }
.bar.ok > i { background: #22A565; } .bar.warn > i { background: #E39A12; } .bar.bad > i { background: #E0414F; } .bar.sky > i { background: var(--sky); } .bar.lilac > i { background: var(--lilac); } .bar.coral > i { background: var(--coral); }
.bar.thin { height: 5px; } .bar.thick { height: 12px; }
.stack-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #ECE8E2; gap: 2px; }
.stack-bar > i { display: block; height: 100%; }
.ring-pct { position: relative; display: inline-grid; place-items: center; }
.ring-pct .v { position: absolute; font-weight: 750; font-size: 13px; }
.steps { display: flex; align-items: center; gap: 0; counter-reset: s; }
.steps .s { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.steps .s .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line-3); color: var(--muted); font-size: 12px; font-weight: 800; }
.steps .s.done .n { background: var(--brand-600); color: #fff; } .steps .s.done { color: var(--ink-2); }
.steps .s.cur .n { background: var(--ink); color: #fff; } .steps .s.cur { color: var(--ink); }
.steps .ln { flex: 1; height: 2px; min-width: 18px; background: var(--line); margin: 0 10px; }
.steps .ln.done { background: var(--brand-400); }

/* ---------- timeline / feed ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline > li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.timeline > li::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line-2); }
.timeline > li:last-child::before { display: none; }
.timeline .t-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.timeline .t-body { flex: 1; min-width: 0; padding-top: 6px; }
.timeline .t-time { font-size: 12px; color: var(--muted); font-weight: 600; }
.timeline .t-title { font-weight: 650; }
.feed-photo { margin-top: 10px; border-radius: 12px; overflow: hidden; display: block; max-width: 300px; border: 1px solid var(--line-2); }
.feed-photo img { display: block; width: 100%; height: auto; }
.feed-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; max-width: 520px; }
.feed-photos img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 1px solid var(--line-2); }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ic { color: var(--ghost); margin-bottom: 8px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: #EFECE7; border-radius: 14px; padding: 10px; min-height: 200px; }
.kcol-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-weight: 700; font-size: 13px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; margin-bottom: 8px; box-shadow: var(--sh-xs); font-size: 13px; cursor: grab; }
.kcard:hover { border-color: #D3CDC4; box-shadow: var(--sh-sm); }
.kcard .t { font-weight: 700; margin-bottom: 2px; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.cal .dow { padding: 8px 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--subtle); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.cal .day { min-height: 112px; padding: 6px 7px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal .day .dn { font-weight: 700; font-size: 12.5px; color: var(--ink-2); margin-bottom: 2px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal .day.out { background: #FBFAF8; } .cal .day.out .dn { color: var(--ghost); }
.cal .day.wknd { background: #FAF9F7; }
.cal .day.today .dn { background: var(--brand-600); color: #fff; }
.cal .day.closed { background: repeating-linear-gradient(-45deg, #FBF8F4, #FBF8F4 6px, #F5F1EB 6px, #F5F1EB 12px); }
.ev { display: block; padding: 2px 6px; border-radius: 5px; font-size: 11.5px; font-weight: 650; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--brand-50); color: var(--brand-700); border-left: 3px solid var(--brand-500); }
.ev.coral { background: var(--coral-50); color: var(--coral-700); border-color: var(--coral); } .ev.sun { background: var(--sun-50); color: var(--sun-700); border-color: var(--sun); } .ev.sky { background: var(--sky-50); color: var(--sky-700); border-color: var(--sky); } .ev.lilac { background: var(--lilac-50); color: var(--lilac-700); border-color: var(--lilac); } .ev.ink { background: var(--line-3); color: var(--ink-2); border-color: var(--muted); } .ev.pink { background: var(--pink-50); color: var(--pink); border-color: var(--pink); }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(15,22,30,.42); backdrop-filter: blur(2px); display: none; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; }
.overlay.open { display: flex; animation: fadeIn .15s ease; }
.modal { width: 100%; max-width: 560px; background: var(--surface); border-radius: 18px; box-shadow: var(--sh-lg); animation: popIn .18s ease; }
.modal.lg { max-width: 820px; } .modal.sm { max-width: 420px; } .modal.xl { max-width: 1100px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal-h h3 { font-size: 16px; }
.modal-b { padding: 20px 22px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line-2); background: var(--subtle); border-radius: 0 0 18px 18px; }
.drawer-overlay { align-items: stretch; justify-content: flex-end; padding: 0; }
.drawer { width: 100%; max-width: 520px; height: 100%; background: var(--surface); box-shadow: var(--sh-lg); display: flex; flex-direction: column; animation: slideIn .2s ease; }
.drawer .modal-b { flex: 1; overflow-y: auto; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.dropdown { position: relative; display: inline-block; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-lg); padding: 6px; display: none; }
.menu.left { right: auto; left: 0; }
.dropdown.open > .menu { display: block; animation: popIn .12s ease; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--hover); color: var(--ink); }
.menu .ic { color: var(--muted); }
.menu .sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.menu .mh { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: 420px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--sh-lg); font-size: 13.5px; font-weight: 550; animation: popIn .2s ease; }
.toast .ic { color: #6EE7B7; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .25s; }

/* ---------- palette (command-K) ---------- */
.palette { max-width: 640px; padding: 0; overflow: hidden; }
.palette .p-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.palette .p-in input { flex: 1; border: 0; font: inherit; font-size: 16px; outline: none; background: transparent; }
.palette .p-res { max-height: 56vh; overflow-y: auto; padding: 6px; }
.palette .p-res a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink); }
.palette .p-res a.sel, .palette .p-res a:hover { background: var(--brand-50); }
.palette .p-res .k { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 600; }
.palette .p-grp { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }

/* ---------- misc components ---------- */
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 12px; text-align: center; }
.mini-cal .h { font-weight: 700; color: var(--faint); font-size: 11px; }
.mini-cal .d { padding: 6px 0; border-radius: 8px; font-weight: 600; color: var(--ink-2); }
.mini-cal .d.on { background: var(--brand-600); color: #fff; } .mini-cal .d.mark { background: var(--brand-50); color: var(--brand-700); } .mini-cal .d.off { color: var(--ghost); } .mini-cal .d.hol { background: var(--sun-50); color: var(--sun-700); }
.notice { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.notice.pinned { border-color: var(--sun-100); background: linear-gradient(180deg, #FFFCF2, #fff); }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filterbar .input, .filterbar .select { height: 34px; width: auto; }
.filterbar .search-in { min-width: 240px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); }
.ratio-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.ratio-pill.ok { background: var(--ok-bg); color: var(--ok); } .ratio-pill.warn { background: var(--warn-bg); color: var(--warn); } .ratio-pill.bad { background: var(--bad-bg); color: var(--bad); }
.room-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.room-chip i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.signature { font-family: 'Fraunces', serif; font-style: italic; font-size: 22px; color: #1C3E77; }
.locked-overlay { position: relative; }
.photo-tile { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--line-3); }
.photo-tile img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 12px; font-weight: 600; }
.phone { width: 390px; height: 800px; border-radius: 54px; background: #0F1720; padding: 13px; box-shadow: 0 40px 80px rgba(16,24,40,.28), inset 0 0 0 2px #2A3440; position: relative; flex-shrink: 0; }
.phone .scr { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--canvas); position: relative; }
.phone .notch { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 112px; height: 32px; border-radius: 20px; background: #0F1720; z-index: 5; }

/* ---------- permission banner ---------- */
.perm-banner { display: none; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; background: #FFF6E5; border: 1px solid var(--warn-line); color: #6E4200; font-size: 13.5px; }
.perm-banner.show { display: flex; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .demobar .hide-md { display: none !important; } }
@media (max-width: 1280px) { .cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols-side { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; left: 0; top: 38px; width: 280px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--sh-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; z-index: 75; background: rgba(15,22,30,.35); }
  .topbar .menu-btn { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 18px 48px; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-side, .cols-side-l, .cols-2-1, .cols-1-2, .cols-3-2 { grid-template-columns: 1fr; }
  .form-section { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  .cols-2, .cols-3, .cols-4, .cols-5, .cols-6 { grid-template-columns: 1fr; }
  .grid.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .topbar .now, .user-chip .txt, .hide-sm { display: none !important; }
  .search { flex: 1 1 auto; }
  .search kbd { display: none; }
  h1 { font-size: 21px; }
  .demobar { gap: 6px; padding: 0 8px; }
  .demobar .sp { display: none; }
  .demobar .roles { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .demobar .roles::-webkit-scrollbar { display: none; }
  .demobar .roles a { padding: 3px 8px; font-size: 11.5px; }
  .demobar .tag { padding: 3px 6px; }
  .demobar .hide-sm { display: none; }
  .page-head .actions { width: 100%; }
  .span-2, .span-3 { grid-column: auto; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; }
  .cal .day { min-height: 70px; } .cal .ev { font-size: 10px; padding: 1px 3px; }
  .phone { transform: scale(.86); transform-origin: top center; }
}
@media print {
  .demobar, .sidebar, .topbar, .no-print, .toasts { display: none !important; }
  .app { display: block; } .content { padding: 0; max-width: none; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
}

/* grid children may shrink below their content width (prevents sideways scrolling on phones) */
.grid > *, .cols-side > *, .form-grid > * { min-width: 0; }
.card-f { flex-wrap: wrap; }
@media (max-width: 760px) {
  .flex.justify-center, .flex.justify-end, .page-head .actions { flex-wrap: wrap; }
  .steps { flex-wrap: wrap; row-gap: 8px; }
  .steps .ln { flex: 0 0 12px; min-width: 12px; margin: 0 4px; }
}

/* css/01-roles.css */
/* Role-based visibility: elements with .rv are shown only to the roles listed as .r-<role> classes. */
html[data-role="superadmin"] .rv:not(.r-superadmin),
html[data-role="admin"] .rv:not(.r-admin),
html[data-role="manager"] .rv:not(.r-manager),
html[data-role="practitioner"] .rv:not(.r-practitioner),
html[data-role="parent"] .rv:not(.r-parent) { display: none !important; }
/* role-only blocks: .only-admin etc. */
html:not([data-role="superadmin"]) .only-superadmin, html:not([data-role="admin"]) .only-admin, html:not([data-role="manager"]) .only-manager, html:not([data-role="practitioner"]) .only-practitioner { display: none !important; }
html[data-role="practitioner"] .hide-practitioner, html[data-role="superadmin"] .hide-superadmin, html[data-role="admin"] .hide-admin, html[data-role="manager"] .hide-manager { display: none !important; }

/* parent portal */
.parent-portal .sidebar { background: linear-gradient(180deg, #123F52 0%, #0B2B39 100%); }
.parent-portal .nav a.on { box-shadow: inset 3px 0 0 #F7C04A; }
.parent-portal .parent-kids b { font-size: 13.5px; }
.nav a .count.alert { background: var(--coral); }

/* css/02-domain.css */
/* Shared domain widgets */
.pattern { display: inline-flex; gap: 3px; }
.pattern i { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--ghost); background: var(--line-3); }
.pattern i.on { color: #fff; background: var(--brand-500); }
.pattern i.s-AM, .pattern i.s-PM { background: linear-gradient(135deg, var(--brand-500) 50%, var(--brand-200) 50%); }
.pattern i.s-SD, .pattern i.s-FS { background: var(--sky); }
.profile-hero { display: flex; gap: 22px; align-items: center; padding: 22px; border-radius: 20px; background: linear-gradient(120deg, var(--surface) 0%, var(--subtle) 100%); border: 1px solid var(--line); margin-bottom: 20px; position: relative; overflow: hidden; }
.profile-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: var(--hero-tint, var(--brand-50)); opacity: .9; }
.profile-hero > * { position: relative; z-index: 1; }
.profile-hero h1 { font-size: 26px; }
.alert-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.alert-strip .callout { flex: 1 1 280px; }
.body-map { display: flex; gap: 18px; justify-content: center; }
.body-map svg { width: 130px; height: auto; }
.qr { width: 120px; height: 120px; image-rendering: pixelated; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 76%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--brand-600); color: #fff; border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.sys { align-self: center; background: var(--warn-bg); color: #6E4200; font-size: 12.5px; border-radius: 10px; }
.bubble .who { font-size: 11.5px; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.room-card { border-top: 4px solid var(--room, var(--brand-500)); }
.big-num { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mini-stat { display: flex; flex-direction: column; gap: 2px; }
.mini-stat .v { font-weight: 750; font-size: 18px; font-variant-numeric: tabular-nums; }
.mini-stat .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.ev-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-3); }
.ev-row:last-child { border-bottom: 0; }
.date-tile { width: 46px; flex-shrink: 0; text-align: center; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.date-tile .m, .date-tile .d { display: block; }
.date-tile .m { background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 800; text-transform: uppercase; padding: 2px 0; letter-spacing: .05em; }
.date-tile .d { font-size: 18px; font-weight: 800; padding: 3px 0 4px; }
.timeline-mini { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 34px; align-items: end; }
.timeline-mini i { display: block; border-radius: 3px 3px 0 0; background: var(--brand-300); } .timeline-mini i.spare { background: var(--brand-500); }
.timeline-mini i.bad { background: #E0414F; } .timeline-mini i.warn { background: var(--brand-300); } .timeline-mini i.now { outline: 2px solid var(--ink); outline-offset: 1px; }
.score { display: inline-flex; gap: 3px; } .score i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; } .score i.on { background: var(--brand-500); }
.area-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--line-3); }
.area-dot i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
@media (max-width: 760px) {
  .profile-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .profile-hero > .flex.col { align-items: flex-start !important; }
  .profile-hero .badge { white-space: normal; height: auto; min-height: 22px; padding-top: 3px; padding-bottom: 3px; line-height: 1.3; }
}

/* css/11-care.css */
/* ===== Care area: registers, rooms, diary, sleep, learning, kitchen, tablet, kiosk ===== */

/* register */
.reg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.reg-steps li { position: relative; padding-left: 22px; color: var(--ink-2); }
.reg-steps li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ghost); }
.reg-steps li.done::before { background: var(--brand-500); }
.reg-steps li.next::before { background: var(--coral); box-shadow: 0 0 0 4px rgba(180,99,58,.18); }
.reg-steps li.next { color: var(--coral-700); font-weight: 600; }
.reg-steps b { font-variant-numeric: tabular-nums; margin-right: 4px; }
.reg-staff > li { padding: 8px 16px; }
#reg-table tr.reg-flash td { animation: regFlash 1.4s ease; }
@keyframes regFlash { 0% { background: #E2F4E9; } 100% { background: transparent; } }

/* fire roll call */
body.fire-mode { background: #13161B; color: #F2F4F7; }
.fire-mode #fire-root { padding: 18px 22px 60px; max-width: 1600px; margin: 0 auto; }
.fire-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 16px 20px; border-radius: 18px; background: linear-gradient(90deg, #B4232F, #D9412E); box-shadow: 0 12px 30px rgba(180,35,47,.35); }
.fire-alarm { display: flex; align-items: center; gap: 14px; flex: 1 1 320px; }
.fire-alarm .ic { animation: firePulse 1s infinite; }
@keyframes firePulse { 50% { opacity: .35; } }
.fa-t { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.fa-s { font-size: 13px; opacity: .9; }
.fire-timer { display: flex; flex-direction: column; align-items: center; padding: 6px 16px; border-radius: 12px; background: rgba(0,0,0,.18); }
.ftm { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fts { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.fire-progress { min-width: 220px; }
.fp-n { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fp-l { font-size: 12px; opacity: .85; margin-bottom: 6px; }
.fire-progress .bar { background: rgba(255,255,255,.25); }
.fire-progress .bar > i { background: #fff; }
.fire-top .btn.lg { background: #fff; color: #9E1C27; border-color: #fff; }
.fire-top .btn.lg[disabled] { opacity: .55; }
.fire-top .fire-exit { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.5) !important; }
.fire-banner { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: #138A4F; font-weight: 600; }
.fire-banner .btn { margin-left: auto; }
.fire-help { margin: 14px 2px 18px; font-size: 13px; color: #AEB7C2; display: flex; align-items: center; gap: 8px; }
.fire-groups { display: flex; flex-direction: column; gap: 18px; }
.fire-group { background: #1C2028; border: 1px solid #2A303A; border-radius: 18px; padding: 14px; }
.fire-group header { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 12px; }
.fg-name { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.fg-name i { width: 14px; height: 14px; border-radius: 4px; background: var(--room); }
.fg-count { font-size: 15px; color: #AEB7C2; font-variant-numeric: tabular-nums; }
.fg-count b { color: #fff; font-size: 20px; }
.fire-group.done header .fg-count b { color: #4ADE80; }
.fire-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fire-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 14px; border: 2px solid #2F3642; background: #242A34; color: #F2F4F7; font: inherit; cursor: pointer; text-align: center; transition: background .12s, border-color .12s, transform .08s; }
.fire-tile:active { transform: scale(.97); }
.fire-tile .ft-n { font-weight: 700; font-size: 14px; line-height: 1.2; }
.fire-tile .ft-s { font-size: 11.5px; color: #9AA4B1; }
.fire-tile .ft-ok { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: none; place-items: center; background: #16A34A; color: #fff; }
.fire-tile.ok { background: #123622; border-color: #22C55E; }
.fire-tile.ok .ft-ok { display: grid; }
.fire-tile.ok .av { opacity: .85; }
.fire-mode .demobar { background: #000; }

/* rooms */
.rm-card .rm-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.rm-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-3); font-size: 12px; color: var(--muted); font-weight: 600; }
.rm-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cr-tile { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; min-width: 0; }
.cr-tile:hover { border-color: #D3CDC4; box-shadow: var(--sh-sm); color: inherit; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cr-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 5px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--line-3); color: var(--ink-2); white-space: nowrap; }
.cr-chip.sleep { background: var(--sky-50); color: var(--sky-700); }
.cr-chip.allergy { background: var(--bad-bg); color: var(--bad); }
.cr-chip.med { background: var(--coral-50); color: var(--coral-700); }
.cr-chip.nappy { background: var(--lilac-50); color: var(--lilac-700); }
.cr-chip.send { background: var(--lilac-50); color: var(--lilac-700); }
.cr-chip.restrict { background: var(--ink); color: #fff; }
.rv-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rv-act { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.rv-act img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* attendance history */
.hist-table td.hcell { text-align: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 6px 4px; }
.hcell.ok { color: var(--ok); background: #F3FBF6; }
.hcell.abs { color: var(--bad); background: var(--bad-bg); }
.hcell.hol { color: var(--info); background: var(--info-bg); }
.hcell.none { color: var(--ghost); }
.hcell.now { color: #fff; background: var(--brand-600); }
.hcell.exp { color: var(--warn); background: var(--warn-bg); }
.hist-table tbody tr:hover td.hcell { filter: brightness(.97); }

/* diary */
.dq { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.dq button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; font-size: 13px; color: var(--ink); cursor: pointer; box-shadow: var(--sh-xs); }
.dq button:hover { border-color: #D3CDC4; box-shadow: var(--sh-sm); transform: translateY(-1px); }
.dq .qi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.dfeed { list-style: none; margin: 0; padding: 0; }
.dfeed > li { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-3); }
.dfeed > li:last-child { border-bottom: 0; }
.dfeed .t { width: 48px; flex-shrink: 0; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ink-2); padding-top: 8px; }
.dfeed .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.dfeed .feed-photo { max-width: 260px; }
.amounts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.amounts span { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line-3); color: var(--ink-2); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; padding: 2px; }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 650; text-align: center; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); }
.pick .pk { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-600); color: #fff; display: none; place-items: center; }
.pick:has(input:checked) .pk { display: grid; }
.amt-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-3); }
.amt-row:last-child { border-bottom: 0; }
.amt-row .seg { margin-left: auto; }

/* sleep */
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.sl-card { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 16px; box-shadow: var(--sh-sm); position: relative; overflow: hidden; }
.sl-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--sky); }
.sl-card.due::before { background: #E39A12; } .sl-card.over::before { background: #E0414F; }
.sl-card.awake { opacity: .55; }
.sl-head { display: flex; align-items: center; gap: 12px; }
.sl-elapsed { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sl-next { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--sky-50); color: var(--sky-700); font-weight: 650; font-size: 13px; }
.sl-card.due .sl-next { background: var(--warn-bg); color: var(--warn); }
.sl-card.over .sl-next { background: var(--bad-bg); color: var(--bad); }
.sl-cd { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sl-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sl-checks { display: flex; gap: 4px; margin-top: 10px; }
.sl-checks i { flex: 1; height: 6px; border-radius: 3px; background: var(--sky); opacity: .7; }

/* learning journal */
.lj-cols { column-count: 3; column-gap: 16px; }
.lj-item { break-inside: avoid; margin-bottom: 16px; display: block; }
.lj-item .lj-who { display: flex; align-items: center; gap: 8px; padding: 10px 14px 0; }
.lj-item .card { box-shadow: var(--sh-sm); }
.lj-item.hidden-more { display: none; }
@media (max-width: 1280px) { .lj-cols { column-count: 2; } }
@media (max-width: 760px) { .lj-cols { column-count: 1; } }
.scene-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.scene-pick label { position: relative; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.scene-pick label img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.scene-pick input { position: absolute; opacity: 0; }
.scene-pick label:has(input:checked) { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.stmt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); margin-bottom: 6px; font-size: 13px; cursor: pointer; }
.stmt:hover { background: var(--hover); }
.stmt input { margin-top: 2px; accent-color: var(--brand-600); }
.stmt[hidden], .stmt-band[hidden] { display: none; }
.stmt-band { margin-bottom: 8px; }
.stmt-band > summary { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.stmt-band > summary::-webkit-details-marker { display: none; }
.stmt-band > summary::before { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; opacity: .6; }
.stmt-band[open] > summary::before { transform: rotate(45deg); }
.stmt-band .src, .stmt .src { font-size: 11px; font-weight: 700; color: var(--faint); white-space: nowrap; }

/* tracker */
.trk td.tc { text-align: center; padding: 6px 4px; }
.trk .tcell { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 26px; border-radius: 7px; font-size: 11.5px; font-weight: 750; }
.tcell.on { background: #DDF3E7; color: #0E6B3E; }
.tcell.above { background: #DCEBFB; color: #1B5E9E; }
.tcell.below { background: #FDE2D9; color: #A8361F; }
.tcell.na { background: var(--line-3); color: var(--ghost); }
.trk th.ac { text-align: center; }
.grp-table td.num b { font-size: 14px; }

/* reports */
.report-doc { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); padding: 34px 38px; max-width: 860px; margin: 0 auto; }
.report-doc .rd-head { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 2px solid var(--brand-100); margin-bottom: 20px; }
.report-doc h2.rd-title { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -.01em; }
.rd-area { padding: 14px 0; border-bottom: 1px solid var(--line-3); }
.rd-area:last-child { border-bottom: 0; }
.rd-area h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rd-area h4 i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rd-area p { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.rd-box { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; min-height: 84px; color: var(--faint); font-size: 13px; }
.rd-sign { display: flex; gap: 28px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.rd-sign > div { flex: 1; border-top: 1px solid var(--line); padding-top: 8px; }

/* planning */
.plan-grid { display: grid; grid-template-columns: 170px repeat(5, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.plan-grid > div { padding: 10px 12px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 12.5px; line-height: 1.45; min-width: 0; }
.plan-grid .ph { background: var(--subtle); font-weight: 750; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.plan-grid .rh { background: var(--subtle); font-weight: 700; color: var(--ink-2); }
.plan-grid .today { background: #F2FBF7; }
.plan-wrap { overflow-x: auto; }
.plan-chip { display: inline-block; margin-top: 6px; }

/* kitchen */
.alg-table th.alg { writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; height: 128px; padding: 8px 4px; font-size: 11px; letter-spacing: 0; text-transform: none; vertical-align: bottom; }
.alg-table td.alg { text-align: center; padding: 6px 2px; }
.alg-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #E0414F; box-shadow: 0 0 0 3px #FCE7E9; }
.alg-may { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #E39A12; }
.menu-cycle td, .menu-cycle th { font-size: 12.5px; }
.menu-cycle tr.cur td { background: #F2FBF7; }
.kit-meal { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-3); }
.kit-meal:last-child { border-bottom: 0; }
.kit-meal .km-t { width: 92px; flex-shrink: 0; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }

/* room tablet */
body.tablet-app { background: #10182B; }
.tb { display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100vh - 38px); background: var(--canvas); }
.tb-top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: linear-gradient(90deg, #1E2B4A, #2B3C68); color: #fff; flex-wrap: wrap; }
.tb-room { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.tb-room i { width: 14px; height: 14px; border-radius: 4px; background: var(--room); display: inline-block; }
.tb-ratio { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.1); font-weight: 650; font-size: 14px; }
.tb-ratio b { font-size: 18px; }
.tb-clock { margin-left: auto; text-align: right; }
.tb-clock .t { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tb-clock .d { font-size: 12px; opacity: .8; }
.tb-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.tb-btn:hover { background: rgba(255,255,255,.16); }
.tb-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; padding: 18px 20px 120px; }
.tb-filter { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tb-filter button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.tb-filter button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.tb-kid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 18px; border: 3px solid transparent; background: var(--surface); box-shadow: var(--sh-sm); cursor: pointer; font: inherit; color: var(--ink); text-align: center; user-select: none; }
.tb-kid .av { width: 72px; height: 72px; }
.tb-kid .nm { font-weight: 800; font-size: 15px; }
.tb-kid .st { font-size: 12px; font-weight: 650; color: var(--muted); }
.tb-kid .badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.tb-kid .badges i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; }
.tb-kid.sel { border-color: var(--brand-500); background: var(--brand-50); }
.tb-kid.sel::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-600); color: #fff; display: grid; place-items: center; font-weight: 800; }
.tb-kid.is-out { opacity: .5; }
.tb-kid.is-sleep .av { box-shadow: 0 0 0 3px var(--sky); }
.tb-side { display: flex; flex-direction: column; gap: 14px; }
.tb-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(26,34,56,.08); transform: translateY(110%); transition: transform .2s ease; overflow-x: auto; }
.tb-actions.show { transform: none; }
.tb-actions .sel-n { font-weight: 800; white-space: nowrap; margin-right: 6px; }
.tb-act { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 92px; height: 64px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 750; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.tb-act:hover { background: var(--hover); }
.tb-act.primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.tb-staff { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-staff button { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tb-staff button .dot { margin-left: 2px; }
.tb-lock { position: fixed; inset: 38px 0 0 0; z-index: 85; display: none; align-items: center; justify-content: center; background: linear-gradient(160deg, #1E2B4A, #141D34); color: #fff; }
.tb-lock.show { display: flex; }
.pin-box { text-align: center; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 18px 0 22px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
.pin-dots i.on { background: #fff; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 14px; justify-content: center; }
.pin-pad button { width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 28px; font-weight: 700; cursor: pointer; }
.pin-pad button:hover { background: rgba(255,255,255,.2); }
.pin-pad button.ghost { background: transparent; font-size: 15px; }
.pin-people { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; flex-wrap: wrap; }
.pin-people button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 16px; border: 2px solid transparent; background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; width: 96px; }
.pin-people button.on { border-color: #C5D2EE; background: rgba(255,255,255,.14); }
.tb-big-modal .modal { max-width: 640px; }
.tb-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tb-opts label { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 14px; border: 2px solid var(--line); font-weight: 750; cursor: pointer; }
.tb-opts input { position: absolute; opacity: 0; }
.tb-opts label:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-800); }
@media (max-width: 1100px) { .tb-main { grid-template-columns: 1fr; } .tb-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tb-side { grid-template-columns: 1fr; } .tb-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); } }

/* kiosk */
body.kiosk-app { background: linear-gradient(160deg, #1E2B4A 0%, #2B3C68 55%, #465E9A 100%); min-height: 100vh; }
.ks { min-height: calc(100vh - 38px); display: flex; align-items: center; justify-content: center; padding: 28px 16px; color: #fff; }
.ks-card { width: 100%; max-width: 760px; background: rgba(255,255,255,.98); color: var(--ink); border-radius: 28px; box-shadow: 0 40px 80px rgba(0,0,0,.25); overflow: hidden; }
.ks-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 26px; border-bottom: 1px solid var(--line-2); }
.ks-body { padding: 26px; min-height: 420px; }
.ks-step { display: none; } .ks-step.on { display: block; animation: popIn .18s ease; }
.ks h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ks .lead { color: var(--muted); margin-top: 4px; }
.ks-pin .pin-dots i { border-color: var(--brand-600); } .ks-pin .pin-dots i.on { background: var(--brand-600); }
.ks-pin .pin-pad button { background: var(--subtle); color: var(--ink); border: 1px solid var(--line); }
.ks-pin .pin-pad button:hover { background: var(--brand-50); }
.ks-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 18px; }
.ks-kid { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 20px; border: 3px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; font-weight: 800; font-size: 16px; position: relative; }
.ks-kid .av { width: 84px; height: 84px; }
.ks-kid.on { border-color: var(--brand-500); background: var(--brand-50); }
.ks-kid .sub { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ks-who { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.ks-who button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); font: inherit; text-align: left; cursor: pointer; }
.ks-who button.on { border-color: var(--brand-500); background: var(--brand-50); }
.ks-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--line-2); background: var(--subtle); }
.ks-done { text-align: center; padding: 30px 0; }
.ks-done .big-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--ok-bg); color: var(--ok); }
#reg-table .person .nm, .trk .person .nm { white-space: nowrap; }
#reg-table td { vertical-align: middle; }
.tb-top { flex-wrap: nowrap; }
@media (max-width: 1180px) { .tb-xl { display: none; } .tb-clock .d { display: none; } .tb-top { gap: 10px; padding: 10px 14px; } .tb-ratio { padding: 8px 10px; font-size: 13px; } }
@media (max-width: 760px) { .tb-top { flex-wrap: wrap; } }
.tb-opts label { position: relative; }

.plan-grid .plan-cell { cursor: pointer; transition: background .12s; }
.plan-grid .plan-cell:hover, .plan-grid .plan-cell:focus-visible { background: var(--brand-50); outline: none; }
tr.row-on > td { background: var(--brand-50); }
@media print { .report-doc { border: 0; box-shadow: none; padding: 0; max-width: none; } }
.label-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plate-label { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; break-inside: avoid; }
.plate-label.severe { border-color: var(--bad, #C8372D); border-width: 2.5px; }
.menu-edit select { min-width: 150px; font-size: 12.5px; padding: 5px 8px; margin-bottom: 4px; width: 100%; }
.menu-edit td { vertical-align: top; }
.alg-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; }
.alg-pick > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.alg-pick select { width: auto; padding: 4px 8px; font-size: 12.5px; }
@media (max-width: 760px) { .label-sheet { grid-template-columns: 1fr; } .alg-pick { grid-template-columns: 1fr; } }

/* shared devices run without the demo bar: full height, and the pieces the tablet and kiosk add */
.tb, .ks { min-height: 100vh; }
.tb-lock { inset: 0; overflow-y: auto; padding: 20px 12px; }
.tb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; }
.tb-wait { position: fixed; right: 16px; top: 76px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: 13px; box-shadow: var(--sh-sm); }
.tb-wait[hidden] { display: none; }
.tb-someone { display: block; margin: 6px auto 0; height: 44px; min-width: 220px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 650; }
.tb-someone option { color: #1A2238; }
.pin-msg { min-height: 22px; font-size: 14px; font-weight: 700; color: #FFD9A8; margin: -10px 0 12px; }
.tb-fire { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto; background: #B3261E; color: #fff; }
.tb-fire[hidden] { display: none; }
.tb-fire-h, .tb-fire-f { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; flex-wrap: wrap; }
.tb-fire .tb-grid { padding: 4px 20px 20px; overflow-y: auto; align-content: start; }
.tb-fire .tb-kid.sel { border-color: #fff; background: #E8F7EF; }
.tb-fire .tb-kid.sel::after { background: var(--ok); }
.tb-cam-view { border-radius: 14px; overflow: hidden; background: #10182B; margin-bottom: 10px; max-height: 320px; display: grid; place-items: center; }
.tb-cam-view[hidden] { display: none; }
.tb-cam-view video, .tb-cam-view img { width: 100%; max-height: 320px; object-fit: contain; display: block; }
.tb-cam-view [hidden] { display: none; }
.tb-actions { z-index: 60; }
.ks-welcome { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: center; }
.ks-scan { text-align: center; padding: 18px; border-radius: 20px; background: var(--subtle); border: 1px solid var(--line-2); }
.ks-qr svg { width: 190px; height: 190px; max-width: 100%; display: block; margin: 0 auto; background: #fff; border-radius: 12px; }
.ks-kid:disabled { cursor: default; }
.ks .ks-card .lead { color: var(--muted); }
@media (max-width: 720px) { .ks-welcome { grid-template-columns: 1fr; } }

/* ---- photos and videos on an observation: one fills the card, several scroll sideways */
.obs-media { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 12px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.obs-m { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; border-radius: 12px; overflow: hidden; background: var(--line-3); }
.obs-media.many .obs-m { flex-basis: 88%; aspect-ratio: 4 / 3; }
.obs-m > a, .obs-m > .pp-ph { display: block; height: 100%; }
.obs-m img { display: block; width: 100%; height: auto; }
.obs-m video { display: block; width: 100%; height: auto; max-height: 72vh; background: #0b1016; }
.obs-media.many .obs-m img { height: 100%; object-fit: cover; }
.obs-media.many .obs-m video { height: 100%; max-height: none; object-fit: contain; }
.obs-m-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 160px; height: 100%; padding: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.obs-m-n, .obs-m-len { position: absolute; top: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(10, 16, 22, .62); color: #fff; font-size: 11.5px; font-weight: 600; pointer-events: none; display: inline-flex; align-items: center; gap: 4px; }
.obs-m-n { right: 8px; }
.obs-m-len { left: 8px; }
.obs-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.obs-pick { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: var(--line-3); aspect-ratio: 4 / 3; }
.obs-pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.obs-pick .obs-pick-ico { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; height: 100%; font-size: 11.5px; color: var(--muted); text-align: center; padding: 6px; }
.obs-pick label { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 99px; background: rgba(255, 255, 255, .92); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.obs-pick:has(input:checked) { outline: 2px solid var(--bad); }
.obs-pick:has(input:checked) img { opacity: .4; }
.obs-pick .obs-m-len { top: 6px; left: 6px; }
.pp-photos .pp-vid { position: relative; }
.pp-photos .pp-vid video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #0b1016; }

/* css/12-engage.css */
/* Engage area — admissions, bookings, occupancy, communication (prefix: eg-) */

/* enquiries board */
.eg-kanban { grid-auto-columns: minmax(232px, 1fr); }
.eg-kcard { cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.eg-kcard:hover { transform: translateY(-1px); }
.eg-kcard:focus-visible { outline: none; box-shadow: var(--ring); }
.eg-kfoot { border-top: 1px dashed var(--line); }
.eg-lost { opacity: .72; }
.eg-lost .kcard { background: var(--subtle); }
.eg-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px; border-radius: 10px; border: 1px dashed #CFC8BE; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.eg-add:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.eg-steps .steps { flex-wrap: wrap; row-gap: 8px; }
.eg-steps .steps .s { font-size: 12px; }
.eg-steps .steps .ln { min-width: 10px; margin: 0 6px; }
.eg-code { background: #0F1A24; color: #D0D8EA; border-radius: 12px; padding: 14px 16px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; margin: 12px 0; }
.eg-mini li { border-bottom: 1px solid var(--line-3) !important; gap: 10px !important; }
.eg-mini li:last-child { border-bottom: 0 !important; }
.eg-mini .stat-ico { width: 28px; height: 28px; border-radius: 8px; }

/* waiting list forecast */
.eg-forecast th { text-align: center; }
.eg-forecast th:first-child { text-align: left; }
.eg-forecast td.eg-fc { text-align: center; padding: 8px 6px; border-left: 2px solid var(--surface); min-width: 72px; }
.eg-fc.ok { background: #EAF7EF; } .eg-fc.warn { background: #FDF3DC; } .eg-fc.bad { background: #FCE9EB; }
.table tbody tr:hover td.eg-fc.ok { background: #DFF2E6; } .table tbody tr:hover td.eg-fc.warn { background: #FBEBC6; } .table tbody tr:hover td.eg-fc.bad { background: #F9DCE0; }
.eg-fc-v { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.eg-fc.ok .eg-fc-v { color: var(--ok); } .eg-fc.warn .eg-fc-v { color: var(--warn); } .eg-fc.bad .eg-fc-v { color: var(--bad); }
.eg-fc-s { font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; display: flex; gap: 4px; justify-content: center; }
.eg-rdy { display: inline-block; padding: 0 5px; border-radius: 6px; background: var(--lilac-50); color: var(--lilac-700); font-weight: 800; }
.eg-pos { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line-3); font-weight: 800; font-size: 12px; color: var(--ink-2); }
.eg-rules { margin: 0 0 14px; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }
.eg-rules li { margin-bottom: 4px; }
.eg-rules li::marker { font-weight: 800; color: var(--brand-600); }

/* onboarding checklist */
.eg-chklist > li { padding: 7px 0 !important; border-bottom: 1px dashed var(--line-2) !important; font-size: 13px; gap: 10px !important; }
.eg-chklist > li:last-child { border-bottom: 0 !important; }
.eg-chk-i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--line-3); color: var(--faint); }
.eg-chk.ok .eg-chk-i { background: var(--ok-bg); color: var(--ok); }
.eg-chk.na .eg-chk-i { background: var(--info-bg); color: var(--info); }
.eg-chk.todo .grow { color: var(--ink); font-weight: 600; }
.eg-chk.ok .grow { color: var(--ink-2); }

/* bookings */
.eg-req { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; }
.eg-req + .eg-req { border-top: 1px solid var(--line-2); }
.eg-req-main { padding: 18px 20px; min-width: 0; }
.eg-req-side { padding: 18px 20px; background: var(--subtle); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.eg-req.done { opacity: .55; }
.eg-req.done .eg-req-side .btn { pointer-events: none; }
.eg-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 5px 0; }
.eg-check .ic { margin-top: 2px; }
.eg-check.ok .ic { color: var(--ok); } .eg-check.warn .ic { color: var(--warn); } .eg-check.bad .ic { color: var(--bad); }
.eg-check b { font-weight: 700; }
.eg-verdict { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700; }
.eg-verdict.ok { background: var(--ok-bg); color: var(--ok); } .eg-verdict.warn { background: var(--warn-bg); color: var(--warn); } .eg-verdict.bad { background: var(--bad-bg); color: var(--bad); }
.eg-week th, .eg-week td { text-align: center; }
.eg-week th:first-child, .eg-week td:first-child { text-align: left; }
.eg-week .eg-sub th { font-size: 10.5px; padding-top: 4px; padding-bottom: 6px; }
.eg-slot { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 46px; }
.eg-slot b { font-size: 13px; font-variant-numeric: tabular-nums; }
.eg-slot .bar { width: 44px; height: 5px; }
.eg-slot.full b { color: var(--bad); } .eg-slot.tight b { color: var(--warn); }

/* occupancy */
.eg-occ td.eg-oc { text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12.5px; border-left: 2px solid var(--surface); }
.eg-occ th { text-align: center; } .eg-occ th:first-child { text-align: left; }
.eg-wi-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.eg-wi-out .mini-stat { padding: 12px 14px; border-radius: 12px; background: var(--subtle); border: 1px solid var(--line-2); }
.eg-wi-out .mini-stat .v.bad { color: var(--bad); } .eg-wi-out .mini-stat .v.ok { color: var(--ok); }

/* messages */
.eg-inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr) 280px; min-height: 640px; overflow: hidden; }
.eg-threads { border-right: 1px solid var(--line-2); display: flex; flex-direction: column; min-width: 0; }
.eg-threads .eg-tsearch { padding: 12px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.eg-tlist { overflow-y: auto; flex: 1; }
.eg-t { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-3); cursor: pointer; position: relative; }
.eg-t:hover { background: var(--hover); }
.eg-t.on { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand-500); }
.eg-t .nm { font-weight: 700; font-size: 13.5px; }
.eg-t .sub { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.eg-t .pv { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eg-t .tm { font-size: 11.5px; color: var(--faint); font-weight: 600; white-space: nowrap; }
.eg-t.unread .nm::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-left: 6px; vertical-align: middle; }
.eg-conv { display: flex; flex-direction: column; min-width: 0; }
.eg-conv-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.eg-conv-b { flex: 1; overflow-y: auto; padding: 18px; background: var(--subtle); }
.eg-conv-f { border-top: 1px solid var(--line-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.eg-conv-f .textarea { min-height: 64px; }
.eg-pane { display: none; flex-direction: column; height: 100%; }
.eg-pane.on { display: flex; }
.eg-side { border-left: 1px solid var(--line-2); padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.eg-day { align-self: center; font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }

/* noticeboard */
.eg-notice.eg-pinned { border-color: var(--sun-100); background: linear-gradient(180deg, #FFFCF2, #fff 60%); }
.eg-notices { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.eg-notice .eg-nimg { margin: -1px -1px 0; border-radius: 16px 16px 0 0; overflow: hidden; aspect-ratio: 16/7; }
.eg-notice .eg-nimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eg-phone { width: 300px; margin: 0 auto; border-radius: 36px; background: #0F1720; padding: 10px; box-shadow: var(--sh-lg); }
.eg-phone-s { border-radius: 28px; overflow: hidden; background: var(--canvas); min-height: 420px; }
.eg-phone-top { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); color: #fff; padding: 22px 16px 14px; font-weight: 700; font-size: 14px; }
.eg-phone-card { margin: 12px; background: #fff; border-radius: 14px; padding: 14px; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.eg-phone-card h4 { font-size: 14px; margin-bottom: 6px; word-break: break-word; }
.eg-phone-card p { font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }

/* calendar */
.eg-cal .day { min-height: 104px; }
.eg-cal .ev { cursor: default; }
.eg-cal .ev .ic { width: 11px; height: 11px; margin-right: 2px; vertical-align: -1px; }

/* broadcasts & surveys */
.eg-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-channel { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 600; flex: 1 1 150px; }
.eg-channel input { accent-color: var(--brand-600); }
.eg-channel:has(input:checked) { border-color: var(--brand-400); background: var(--brand-50); }
.eg-comment { padding: 12px 14px; border-radius: 12px; background: var(--subtle); border: 1px solid var(--line-2); font-size: 13.5px; font-style: italic; color: var(--ink-2); }

/* notifications & tasks */
.eg-prefs th, .eg-prefs td { padding-left: 8px !important; padding-right: 8px !important; }
.eg-prefs th:first-child, .eg-prefs td:first-child { padding-left: 16px !important; }
.eg-pref { width: 17px; height: 17px; accent-color: var(--brand-600); cursor: pointer; }
.eg-notif { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-3); align-items: flex-start; }
.eg-notif:last-child { border-bottom: 0; }
.eg-notif.unread { background: #FBFDFC; }
.eg-notif.unread .eg-n-title::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-right: 7px; vertical-align: middle; }
.eg-n-title { font-weight: 650; font-size: 13.5px; }
.eg-task { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-3); }
.eg-task:last-child { border-bottom: 0; }
.eg-task.done .eg-task-t { text-decoration: line-through; color: var(--faint); }
.eg-task input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand-600); flex-shrink: 0; }
.eg-cl li { gap: 10px !important; padding: 8px 18px !important; font-size: 13px; }
.eg-cl li.done .grow { color: var(--ink-2); }
.eg-cl input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand-600); }
.eg-auto { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line-3); }
.eg-auto:last-child { border-bottom: 0; }
.eg-auto .w { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-right: 6px; }
.eg-auto .row { font-size: 13.5px; margin: 2px 0; }

/* apply (public registration form) */
.ap-body { background: radial-gradient(1200px 400px at 50% -100px, #E9EDF5 0%, rgba(234,238,246,0) 70%), var(--canvas); min-height: 100vh; }
.ap-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1060px; margin: 0 auto; padding: 22px 20px 6px; }
.ap-brand { display: flex; align-items: center; gap: 12px; }
.ap-mark { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #F2B33D, #E8664E); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(232,102,78,.3); }
.ap-brand .t1 { font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.1; }
.ap-brand .t2 { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ap-wrap { max-width: 1060px; margin: 0 auto; padding: 14px 20px 60px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.ap-progress { display: flex; gap: 6px; margin: 4px 0 18px; }
.ap-progress i { flex: 1; height: 6px; border-radius: 999px; background: #E6E1DA; }
.ap-progress i.done { background: var(--brand-500); } .ap-progress i.cur { background: var(--brand-300); }
.ap-step { display: none; } .ap-step.on { display: block; animation: fadeIn .2s ease; }
.ap-step h2 { font-size: 20px; margin-bottom: 4px; }
.ap-step .lead { color: var(--muted); margin-bottom: 18px; }
.ap-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--line-2); }
.ap-allergens { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ap-allergens label { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--surface); }
.ap-allergens label:has(input:checked) { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); }
.ap-allergens input { accent-color: var(--bad); }
.ap-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ap-day { border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; background: var(--surface); }
.ap-day .dn { font-weight: 800; margin-bottom: 6px; }
.ap-day:has(select option:checked:not([value=""])) { border-color: var(--brand-300); background: var(--brand-50); }
.ap-contact { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: var(--subtle); position: relative; }
.ap-contact .rm { position: absolute; right: 10px; top: 10px; }
.ap-review dl { margin-bottom: 14px; }
.ap-review h4 { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ap-sig { font-family: 'Fraunces', serif; font-style: italic; font-size: 24px; color: #1C3E77; height: 48px; }
.ap-done { text-align: center; padding: 30px 10px; }
.ap-done .ok-ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--ok-bg); color: var(--ok); }
.ap-foot { text-align: center; font-size: 12px; color: var(--muted); padding: 0 20px 30px; }
.ap-err { display: none; font-size: 12px; color: var(--bad); font-weight: 650; }
.field.invalid .ap-err { display: block; }
.field.invalid .input, .field.invalid .select { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(196,47,61,.12); }
.ap-side .card + .card { margin-top: 16px; }

@media (max-width: 1100px) {
  .eg-inbox { grid-template-columns: 300px minmax(0, 1fr); }
  .eg-side { display: none; }
  .eg-req { grid-template-columns: 1fr; }
  .eg-req-side { border-left: 0; border-top: 1px solid var(--line-2); }
  .ap-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ap-head { flex-wrap: wrap; padding: 16px 14px 4px; }
  .ap-wrap { padding: 10px 12px 40px; }
  #ap-root main > .card-b { padding: 18px 16px !important; }
  .ap-nav .btn { padding: 0 12px; }
  #ap-hint { display: none; }
  .eg-inbox { grid-template-columns: 1fr; }
  .eg-threads { max-height: 300px; }
  .ap-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eg-wi-out { grid-template-columns: 1fr; }
}

/* Admissions: built pages */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.eg-chk-i { border: 0; cursor: pointer; padding: 0; transition: transform .12s, box-shadow .12s; }
button.eg-chk-i:hover { box-shadow: 0 0 0 3px var(--brand-100); }
.eg-chk form { display: contents; }
form.inline { display: inline-flex; gap: 4px; align-items: center; }
.ap-embed { background: transparent; min-height: 0; }
.ap-embed .ap-wrap { padding: 0; max-width: none; }
body.is-embed { background: transparent; }
.ap-contact { position: relative; }
.ap-contact .rm { position: absolute; top: 8px; right: 8px; }

/* ---- app additions */
button.ev { border: 0; font: inherit; font-size: inherit; cursor: pointer; text-align: left; width: 100%; }
button.ev:hover { filter: brightness(.96); }
.eg-conv-h form.inline { display: inline-flex; }
.eg-q .select, .eg-q .input { min-width: 0; }
@media (max-width: 640px) { .eg-q { flex-wrap: wrap; } .eg-q .select, .eg-q .input { width: 100% !important; } }
.eg-notice { display: flex; flex-direction: column; }
.eg-notice > .card-b { flex: 1; }

/* css/13-safety.css */
/* Fork C — safety, compliance, reports, settings (prefix: sf-) */
.sf-bodymap { display: flex; gap: 22px; justify-content: center; align-items: flex-start; padding: 6px 0; }
.sf-bodymap svg { width: 116px; height: auto; display: block; }
.sf-bodymap.small svg { width: 78px; }
.sf-bm-fig { margin: 0; text-align: center; }
.sf-bm-fig figcaption { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.sf-bodymap [data-bodymap-input]:hover { filter: drop-shadow(0 0 6px rgba(224, 65, 79, .25)); }
.sf-restricted { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 16px; border-radius: 12px; background: #1E2733; color: #E8EEF4; font-size: 13px; font-weight: 550; }
.sf-restricted .ic { color: #F7C04A; }
.sf-sig { border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px 16px; background: var(--subtle); }
.sf-sig.signed { border-style: solid; border-color: var(--ok-line); background: #F6FCF8; }
.sf-sig .signature { font-size: 26px; }
.sf-flow { display: flex; flex-direction: column; gap: 0; position: relative; }
.sf-flow .st { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.sf-flow .st::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.sf-flow .st:last-child::before { display: none; }
.sf-flow .st .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--line-3); color: var(--muted); z-index: 1; }
.sf-flow .st.done .n { background: var(--ok-bg); color: var(--ok); }
.sf-flow .st.cur .n { background: var(--warn-bg); color: var(--warn); }
.sf-flow .st.bad .n { background: var(--bad-bg); color: var(--bad); }
.sf-flow .st .t { font-weight: 650; font-size: 13.5px; }
.sf-flow .st .d { font-size: 12.5px; color: var(--muted); }
.sf-countdown { flex-shrink: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 50%; border: 5px solid var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.sf-countdown b { font-size: 22px; line-height: 1; }
.sf-countdown span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sf-countdown.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.sf-countdown.bad { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); }
.sf-rag { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sf-rag.ok { background: #1DA463; } .sf-rag.warn { background: #E39A12; } .sf-rag.bad { background: #E0414F; }
.sf-grade { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.sf-grade.g-exc { background: #E7E0FD; color: #4B2FB0; }
.sf-grade.g-str { background: var(--ok-bg); color: var(--ok); }
.sf-grade.g-exp { background: var(--info-bg); color: var(--info); }
.sf-grade.g-att { background: var(--warn-bg); color: var(--warn); }
.sf-grade.g-urg { background: var(--bad-bg); color: var(--bad); }
.sf-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.sf-scale span { height: 8px; border-radius: 4px; background: var(--line-3); }
.sf-scale span.on { background: var(--brand-500); }
.sf-sef-card h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sf-sef-card ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.sf-sef-card li { margin-bottom: 3px; }
.sf-policy-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.sf-signbar { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.sf-signbar .bar { flex: 1; }
.sf-temp-ok { color: var(--ok); font-weight: 700; } .sf-temp-bad { color: var(--bad); font-weight: 700; }
.sf-tile { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sf-tile:hover { border-color: #D6CFC6; box-shadow: var(--sh); transform: translateY(-1px); color: inherit; }
.sf-tile .stat-ico { margin-top: 2px; }
.sf-tile h4 { margin-bottom: 2px; }
.sf-tile p { font-size: 12.5px; color: var(--muted); margin: 0; }
.sf-builder { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.sf-builder .palette-list { display: flex; flex-direction: column; gap: 6px; }
.sf-builder .palette-list span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 9px; font-size: 13px; font-weight: 600; background: var(--subtle); cursor: grab; }
.sf-builder .canvas { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.sf-builder .canvas .fld { padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; position: relative; }
.sf-builder .canvas .fld.sel { border-color: var(--brand-400); box-shadow: var(--ring); }
.sf-builder .canvas .fld .tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }

/* regulatory guardrails showcase */
.sf-profiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sf-profile { position: relative; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.sf-profile.on { border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-50); }
.sf-profile .flag { display: inline-grid; place-items: center; min-width: 38px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.sf-profile .ratios { display: flex; flex-wrap: wrap; gap: 4px; }
.sf-profile .ratios span { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--line-3); color: var(--ink-2); }
.sf-rule { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line-3); align-items: start; }
.sf-rule:last-child { border-bottom: 0; }
.sf-rule h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sf-rule .src { font-size: 12px; color: var(--muted); margin-top: 4px; }
.sf-kind { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.sf-kind.k-stat { background: #1E2733; color: #fff; }
.sf-kind.k-guid { background: var(--sky-50); color: var(--sky-700); border: 1px solid var(--sky-100); }
.sf-kind.k-own { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.sf-ratio-ctl { display: flex; flex-direction: column; gap: 8px; }
.sf-ratio-ctl .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sf-ratio-ctl .val { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sf-ratio-ctl .val small { font-size: 12px; color: var(--muted); font-weight: 650; letter-spacing: 0; margin-left: 6px; }
.sf-track { position: relative; height: 34px; }
.sf-track input[type=range] { position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; z-index: 2; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sf-track input[type=range]:focus { outline: none; }
.sf-track input[type=range]::-webkit-slider-runnable-track { height: 8px; background: transparent; border-radius: 999px; }
.sf-track input[type=range]::-moz-range-track { height: 8px; background: transparent; border: 0; }
.sf-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -6px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-600); box-shadow: 0 1px 4px rgba(26,34,56,.3); }
.sf-track input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-600); box-shadow: 0 1px 4px rgba(26,34,56,.3); }
.sf-track input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }
.sf-track .zones { position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 999px; overflow: hidden; display: flex; z-index: 1; }
.sf-track .zones .ok { background: var(--brand-100); }
.sf-track .zones .no { background: repeating-linear-gradient(-45deg, #FCE7E9, #FCE7E9 5px, #F6CDD2 5px, #F6CDD2 10px); }
.sf-track .limit { position: absolute; top: 4px; bottom: 4px; width: 2px; background: var(--bad); z-index: 3; pointer-events: none; }
.sf-track .limit::after { content: attr(data-label); position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: var(--bad); white-space: nowrap; }
.sf-scale-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); font-weight: 600; }
.sf-blocked { display: none; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--bad-bg); border: 1px solid var(--bad-line); color: #84202A; font-size: 12.5px; }
.sf-blocked.show { display: flex; animation: sfShake .35s ease; }
.sf-blocked .ic { color: var(--bad); margin-top: 1px; }
@keyframes sfShake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.sf-calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.sf-calc .out { padding: 10px 12px; border-radius: 10px; background: var(--brand-50); color: var(--brand-800); font-weight: 700; }
.sf-capbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: var(--line-3); font-size: 11.5px; font-weight: 700; }
.sf-capbar > span { display: grid; place-items: center; color: #fff; white-space: nowrap; overflow: hidden; }
.sf-hero-reg { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; padding: 24px 26px; border-radius: 20px; margin-bottom: 22px; background: radial-gradient(120% 140% at 100% 0%, #E3F4EE 0%, #F7FBF9 45%, #FFFFFF 100%); border: 1px solid var(--brand-100); }
.sf-hero-reg h2 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 6px; }
.sf-hero-reg .legend-kinds { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; font-size: 12.5px; color: var(--ink-2); }
.sf-hero-reg .legend-kinds > span { display: inline-flex; align-items: center; gap: 8px; }
.sf-shield { display: grid; place-items: center; }
.sf-changelog li { padding: 12px 18px; }
.sf-mini-table { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.sf-mini-table td { padding: 5px 0; border-bottom: 1px dashed var(--line-2); }
.sf-mini-table tr:last-child td { border-bottom: 0; }
.sf-mini-table td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sf-site-head { display: flex; align-items: center; gap: 10px; }
.sf-site-head .site-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.sf-hours { display: grid; grid-template-columns: 110px 1fr 1fr 90px; gap: 10px; align-items: center; font-size: 13px; }
.sf-hours .d { font-weight: 650; }
.sf-chk-line { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-3); }
.sf-chk-line:last-child { border-bottom: 0; }
.sf-chk-line .grow .t { font-weight: 650; font-size: 13.5px; }
.sf-chk-line .grow .d { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1280px) { .sf-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .sf-rule { grid-template-columns: 1fr; } .sf-hero-reg { grid-template-columns: 1fr; } .sf-builder { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sf-profiles { grid-template-columns: 1fr; } .sf-calc { grid-template-columns: 1fr; } .sf-hours { grid-template-columns: 90px 1fr 1fr; } .sf-hours .x { display: none; } }

/* OK / Issue answer on a daily checklist */
.sf-chk-line .seg { flex-shrink: 0; }
.sf-chk-line .seg label { position: relative; cursor: pointer; padding: 0; }
.sf-chk-line .seg label input { position: absolute; opacity: 0; pointer-events: none; }
.sf-chk-line .seg label span { display: block; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.sf-chk-line .seg label input:checked + span { background: var(--ok-bg); color: var(--ok); }
.sf-chk-line .seg label input[value="0"]:checked + span { background: var(--bad-bg); color: var(--bad); }
.sf-chk-line .seg label input:focus-visible + span { outline: 2px solid var(--brand-600); outline-offset: 1px; }
.modal .sf-chk-line { padding-left: 0; padding-right: 0; }
.sf-bodymap [data-bodymap-input] { touch-action: manipulation; }
.table tr.row-alert .c-bad, .c-bad.semi { font-weight: 650; }

/* long-form text: policies, letters, form wording */
.prose { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); max-width: 74ch; }
.prose.text-sm { font-size: 13.5px; }
.prose h1, .prose h2, .prose h3 { color: var(--ink); font-size: 16px; margin: 22px 0 8px; }
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--ink); }
@media print { .prose { max-width: none; } }

/* inspection pack: a plain document to print or save as a PDF */
.pack-body { background: var(--subtle); }
.pack-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.pack-doc { max-width: 1040px; margin: 24px auto 60px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px 44px; font-size: 13.5px; color: var(--ink-2); }
.pack-cover { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.pack-cover h1 { font-size: 28px; letter-spacing: -.02em; margin: 4px 0; color: var(--ink); }
.pack-meta, .pack-kv { display: grid; grid-template-columns: max-content 1fr; gap: 5px 16px; margin: 0; }
.pack-meta dt, .pack-kv dt { color: var(--muted); font-size: 12px; font-weight: 650; }
.pack-meta dd, .pack-kv dd { margin: 0; color: var(--ink); }
.pack-kv { margin: 10px 0 14px; }
.pack-toc { columns: 2; column-gap: 32px; margin: 18px 0 0; padding-left: 20px; color: var(--ink); }
.pack-toc li { margin: 3px 0; break-inside: avoid; }
.pack-sec { margin-top: 30px; }
.pack-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.pack-sec h2 span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; flex: none; }
.pack-sec h3 { font-size: 13.5px; color: var(--ink); margin: 16px 0 6px; }
.pack-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 6px 0 10px; }
.pack-table th { text-align: left; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.pack-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-3); vertical-align: top; }
.pack-note { color: var(--muted); font-size: 12.5px; margin: 8px 0; }
.pack-sef { padding: 12px 0; border-bottom: 1px solid var(--line-3); break-inside: avoid; }
.pack-sef h3 { display: flex; justify-content: space-between; gap: 12px; margin-top: 0; }
.pack-sef h3 span { font-weight: 700; color: var(--brand-ink, var(--ink)); }
.pack-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pack-cols ul { margin: 4px 0 0; padding-left: 18px; } .pack-cols p { margin: 4px 0 0; color: var(--muted); }
.pack-foot { margin-top: 34px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
@media (max-width: 760px) { .pack-doc { padding: 22px 16px; margin: 12px 8px 40px; } .pack-cols { grid-template-columns: 1fr; } .pack-toc { columns: 1; } .pack-doc { overflow-x: auto; } }
@media print {
  .pack-body { background: #fff; } .pack-doc { border: 0; border-radius: 0; margin: 0; padding: 0; max-width: none; font-size: 11.5px; }
  .pack-table { font-size: 10.5px; } .pack-sec h2 { break-after: avoid; } .pack-table tr { break-inside: avoid; }
}

/* forms: builder, filling in and the signed copy */
.sf-builder .palette-list .fb-add { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; background: var(--subtle); cursor: pointer; text-align: left; color: var(--ink-2); }
.sf-builder .palette-list .fb-add:hover { border-color: var(--brand-400); background: var(--surface); color: var(--ink); }
.sf-builder .canvas #fb-list { display: flex; flex-direction: column; gap: 12px; }
.sf-builder .canvas .fld { padding: 12px 12px 12px; }
.fb-type { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.fb-row[data-type=heading] { background: var(--subtle); }
.fb-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 12px; color: var(--muted); font-size: 13.5px; text-align: center; }
.fb-empty[hidden], .fb-opts[hidden], .fb-extra[hidden] { display: none; }
.fm-fields { display: flex; flex-direction: column; gap: 16px; }
.fm-fields .fm-heading { font-size: 15px; margin: 6px 0 -4px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.fm-fields .fm-heading:first-child { border-top: 0; padding-top: 0; }
.fm-q > label { font-size: 13.5px; line-height: 1.4; }
.fm-allergens, .fm-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.fm-pick { max-height: 260px; overflow: auto; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; }
.fm-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh); padding: 28px 30px; max-width: 760px; margin: 0 auto; }
.fm-body { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--subtle); max-width: none; }
.fm-signbox { padding: 16px; border: 1px dashed var(--brand-400); border-radius: 12px; background: var(--surface); }
.fm-signed { font-family: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive; font-size: 30px; line-height: 1.1; color: var(--ink); }
.fm-answers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.fm-answers dt { font-size: 12.5px; font-weight: 650; color: var(--muted); padding-top: 10px; }
.fm-answers dd { margin: 2px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line-3); color: var(--ink); white-space: pre-line; }
.fm-cert { font-size: 12.5px; }
.fm-cert .mono { word-break: break-all; }
@media (max-width: 760px) { .fm-sheet { padding: 20px 16px; border-radius: 12px; } }
@media print { .fm-sheet { border: 0; box-shadow: none; padding: 0; max-width: none; } .fm-body { background: #fff; } }
.sf-builder.fb { grid-template-columns: minmax(0, 1fr); }
.sf-builder.fb .palette-list { flex-direction: row; flex-wrap: wrap; }
.sf-builder .palette-list .fb-add span { border: 0; padding: 0; background: none; cursor: pointer; font-size: inherit; }

/* css/14-business.css */
/* ---------- Business area: team, rota, finance, funding, payroll ---------- */
.biz-off { color: var(--ghost); font-size: 12.5px; font-weight: 600; }
.biz-shift { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 6px 9px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); font: inherit; text-align: left; cursor: pointer; color: var(--ink); min-width: 0; }
.biz-shift:hover { background: color-mix(in srgb, var(--c) 16%, #fff); }
.biz-shift b { font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.biz-shift span { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.biz-shift.warn { border-left-color: #E0414F; box-shadow: 0 0 0 2px rgba(224,65,79,.18); }
.biz-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 9px; font-size: 12px; font-weight: 700; width: 100%; }
.biz-chip.bad { background: var(--bad-bg); color: var(--bad); } .biz-chip.sun { background: var(--sun-50); color: var(--sun-700); } .biz-chip.sky { background: var(--sky-50); color: var(--sky-700); } .biz-chip.lilac { background: var(--lilac-50); color: var(--lilac-700); } .biz-chip.ghost { background: transparent; border: 1px dashed var(--line); color: var(--faint); }
.biz-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.biz-staff-card { border-top: 3px solid var(--c); color: inherit; }
.biz-nmw { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: #0E5A35; }
.biz-nmw.bad { border-color: var(--bad-line); background: var(--bad-bg); color: #84202A; }
.biz-doc-title h2 { font-size: 18px; }

/* rota grid */
.rota-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.rota-grid th { position: sticky; top: 0; z-index: 2; background: var(--subtle); padding: 10px 8px; text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.rota-grid th.today { color: var(--brand-700); background: var(--brand-50); }
.rota-grid td { padding: 6px 6px; border-bottom: 1px solid var(--line-3); vertical-align: middle; min-width: 118px; }
.rota-grid td.today { background: #F7FCFA; }
.rota-grid td.who { min-width: 210px; padding-left: 14px; }
.rota-grid tr.grp td { background: var(--subtle); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 14px; border-bottom: 1px solid var(--line-2); }
.rota-grid tr.grp td i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.rota-grid td.hrs { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; padding-right: 14px; white-space: nowrap; min-width: 90px; }
.rota-grid td.hrs small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.cov-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-3); }
.cov-row:last-child { border-bottom: 0; }
.cov-row .nm { font-weight: 750; display: flex; align-items: center; gap: 8px; }
.cov-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.cov-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cover-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-3); }
.cover-opt:last-child { border-bottom: 0; }
.cover-opt .rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-weight: 800; font-size: 12px; }
.cover-opt.best { background: linear-gradient(90deg, var(--brand-50), transparent); margin: 0 -22px; padding-left: 22px; padding-right: 22px; }

/* matrix (training) */
.matrix { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.matrix th { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; vertical-align: bottom; padding: 4px; min-width: 76px; line-height: 1.25; }
.matrix th.who { text-align: left; min-width: 200px; }
.matrix td { text-align: center; padding: 0; }
.matrix td.who { text-align: left; padding: 4px 8px 4px 0; white-space: nowrap; }
.mx { display: grid; place-items: center; height: 30px; border-radius: 7px; font-weight: 700; font-size: 11px; font-variant-numeric: tabular-nums; }
.mx.ok { background: #E2F4E9; color: #12804B; } .mx.warn { background: #FDF1D6; color: #A86500; } .mx.bad { background: #FCE7E9; color: #C42F3D; } .mx.na { background: #F4F2EE; color: #B7C0CB; } .mx.info { background: #E4EFFB; color: #22609F; }

/* leave calendar */
.lv-cal { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.lv-cal th { font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 4px 0; text-align: center; min-width: 26px; }
.lv-cal th.wk { border-left: 2px solid var(--line); }
.lv-cal th.mo { text-align: left; font-size: 11.5px; color: var(--ink-2); padding-left: 4px; }
.lv-cal td { padding: 2px 1px; text-align: center; }
.lv-cal td.who { text-align: left; white-space: nowrap; padding-right: 12px; font-weight: 600; font-size: 12.5px; }
.lv-cal td.wk { border-left: 2px solid var(--line); }
.lv { display: block; height: 22px; border-radius: 5px; background: #F4F2EE; }
.lv.ap { background: #7FB3E9; } .lv.pe { background: repeating-linear-gradient(-45deg, #F7C04A, #F7C04A 4px, #FBDD94 4px, #FBDD94 8px); } .lv.bh { background: #D5D0C8; } .lv.cl { background: repeating-linear-gradient(-45deg, #E8E4DE, #E8E4DE 4px, #F4F2EE 4px, #F4F2EE 8px); } .lv.sk { background: #F2A3AB; } .lv.tr { background: #C9B9F4; }
.lv-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.lv-legend span { display: inline-flex; align-items: center; gap: 6px; } .lv-legend .lv { width: 18px; height: 12px; display: inline-block; }

/* documents (invoice / payslip) */
.biz-paper { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh); padding: 40px 44px; max-width: 920px; margin: 0 auto; }
.biz-paper .hdr { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.biz-paper .doc-kind { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.biz-paper .meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.biz-paper .meta-grid .l { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.biz-paper .meta-grid .v { font-weight: 650; margin-top: 2px; }
.inv-lines { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 13.5px; }
.inv-lines th { text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.inv-lines td { padding: 9px 10px; border-bottom: 1px solid var(--line-3); vertical-align: top; }
.inv-lines td.num, .inv-lines th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-lines tr.child td { background: var(--subtle); font-weight: 750; border-bottom: 1px solid var(--line-2); padding-top: 12px; }
.inv-lines tr.funded td { background: #F3FBF6; }
.inv-lines tr.discount td { color: var(--ok); }
.inv-total { margin-left: auto; width: 340px; margin-top: 14px; }
.inv-total .row { display: flex; justify-content: space-between; padding: 7px 10px; font-variant-numeric: tabular-nums; }
.inv-total .row.big { font-size: 18px; font-weight: 800; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 10px; }
.free { color: var(--ok); font-weight: 800; }
.payslip-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.payslip-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.payslip-box h4 { padding: 9px 14px; background: var(--subtle); border-bottom: 1px solid var(--line-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.payslip-box .r { display: flex; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--line-3); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.payslip-box .r:last-child { border-bottom: 0; }
.payslip-box .r.t { font-weight: 800; background: var(--subtle); }
.netpay { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: var(--brand-900); color: #fff; }
.netpay .v { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* wizard */
.wiz { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
.wiz-steps { list-style: none; margin: 0; padding: 0; }
.wiz-steps li { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 650; color: var(--muted); align-items: center; }
.wiz-steps li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--line-3); }
.wiz-steps li.done { color: var(--ink-2); } .wiz-steps li.done .n { background: var(--brand-600); color: #fff; }
.wiz-steps li.cur { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--sh-sm); } .wiz-steps li.cur .n { background: var(--ink); color: #fff; }
.exc { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-bottom: 1px solid var(--line-3); }
.exc:last-child { border-bottom: 0; }
.exc .ic-wrap { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }

/* misc */
.clock-card { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 18px; background: linear-gradient(120deg, var(--brand-900), var(--brand-700)); color: #fff; }
.clock-card .t { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.clock-card .btn { background: #fff; color: var(--brand-800); border-color: #fff; }
.clock-card .btn.out { background: var(--coral); color: #fff; border-color: var(--coral); }
.calc-out { padding: 16px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-800); }
.calc-out .big { font-size: 22px; font-weight: 800; margin: 2px 0; }
.ecs-progress { display: none; margin-top: 12px; }
.ecs-progress.on { display: block; }
.rti-step { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; color: var(--muted); }
.rti-step.done { color: var(--ink); } .rti-step.done .ic { color: var(--ok); }
.rti-step.run { color: var(--ink); font-weight: 650; }
.biz-kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.biz-kpi-strip > div { padding: 16px 18px; border-left: 1px solid var(--line-2); }
.biz-kpi-strip > div:first-child { border-left: 0; }
.biz-kpi-strip .l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.biz-kpi-strip .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.pipeline-col .kcard .tag { margin-top: 6px; }
.term-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.term-strip .tm { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.term-strip .tm.cur { border-color: var(--brand-300); background: var(--brand-50); }
@media (max-width: 1100px) { .wiz { grid-template-columns: 1fr; } .cov-row { grid-template-columns: 110px minmax(0, 1fr); } .cov-row > :last-child { grid-column: 1 / -1; } .biz-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .biz-kpi-strip > div:nth-child(3) { border-left: 0; } }
@media (max-width: 760px) { .biz-week { grid-template-columns: 1fr; } .biz-paper { padding: 22px 18px; } .biz-paper .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inv-total { width: 100%; } .payslip-grid { grid-template-columns: 1fr; } .biz-paper .hdr { flex-direction: column; } }
@media print {
  .biz-paper { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .biz-print-hide { display: none !important; }
}
.biz-shift.draft { border-style: dashed; border-left-style: solid; }
button.biz-chip { border: 0; cursor: pointer; font-family: inherit; text-align: left; }
button.biz-chip:hover { filter: brightness(.97); }
.biz-add { display: flex; align-items: center; gap: 5px; width: 100%; padding: 6px 9px; border-radius: 9px; border: 1px dashed transparent; background: transparent; color: var(--ghost); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; }
.biz-add .ic { opacity: 0; }
.biz-add:hover, .biz-add:focus-visible { border-color: var(--line); color: var(--brand-700); background: var(--brand-50); }
.biz-add:hover .ic, .biz-add:focus-visible .ic { opacity: 1; }
.mr-auto { margin-right: auto; }

/* pay run: twelve columns, so tighter cells */
.pay-table th, .pay-table td { padding-left: 10px; padding-right: 10px; }
.pay-table th:first-child, .pay-table td:first-child { padding-left: 18px; }

/* css/15-platform.css */
/* ===================== Platform: system pages ===================== */
.pl-status { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(90deg, var(--ok-bg), #F2FBF6); border: 1px solid var(--ok-line); color: #0E5A35; }
.pl-status-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ok); box-shadow: 0 0 0 4px rgba(18,128,75,.12); }
.pl-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.pl-ticks li { display: flex; gap: 8px; align-items: flex-start; }
.pl-ticks li > .ic { color: var(--ok); margin-top: 2px; }
.pl-ol { margin: 0 0 10px; padding-left: 20px; font-size: 13.5px; }
.pl-ol li { margin-bottom: 6px; }

/* update hero */
.pl-upd-hero { display: flex; align-items: center; gap: 22px; padding: 22px 24px; background: linear-gradient(110deg, #fff 0%, #F4F6FA 60%, #EAF3FC 100%); flex-wrap: wrap; }
.pl-ver { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.pl-ver-n { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.pl-ver-n.c-info { color: var(--sky-700); }
.pl-ver-arrow { color: var(--ghost); }
.pl-upd-meta { min-width: 240px; }
.pl-upd-actions { min-width: 200px; }
.pl-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pl-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.pl-note .badge { flex-shrink: 0; min-width: 84px; justify-content: center; margin-top: 1px; }
.pl-pre li .ic { color: var(--ok); }
.pl-pre li .ic.lucide-clock, .pl-pre li svg:first-child { flex-shrink: 0; }

/* flow diagram */
.pl-flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.pl-flow-step { flex: 1 1 100px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 8px; border-radius: 14px; background: var(--subtle); border: 1px solid var(--line-2); font-size: 13px; }
.pl-flow-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.pl-flow-arrow { display: flex; align-items: center; color: var(--ghost); }
.pl-flow-fail { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: #6E4200; font-size: 13px; }

/* simulation */
.pl-sim { border-color: var(--brand-200); box-shadow: 0 0 0 4px rgba(53,74,128,.08), var(--sh); }
.pl-sim.failed { border-color: var(--warn-line); box-shadow: 0 0 0 4px rgba(168,101,0,.08), var(--sh); }
.pl-sim.done-ok { border-color: var(--ok-line); }
.pl-clock { font-size: 15px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #9FF0CF; }
.pl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pl-step { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; color: var(--faint); transition: background .2s, color .2s; }
.pl-step-ico { position: relative; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-3); color: var(--muted); flex-shrink: 0; font-size: 11px; font-weight: 800; }
.pl-step-ico > .ic, .pl-step-ico .spin { display: none; }
.pl-step.run { background: var(--brand-50); color: var(--ink); font-weight: 650; }
.pl-step.run .pl-step-ico { background: #fff; }
.pl-step.run .pl-step-ico .n { display: none; }
.pl-step.run .pl-step-ico .spin { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--brand-200); border-top-color: var(--brand-600); animation: plspin .8s linear infinite; }
.pl-step.done { color: var(--ink-2); }
.pl-step.done .pl-step-ico { background: var(--brand-600); color: #fff; }
.pl-step.done .pl-step-ico .n { display: none; }
.pl-step.done .pl-step-ico .ic:nth-of-type(1) { display: block; }
.pl-step.fail { background: var(--bad-bg); color: var(--bad); font-weight: 650; }
.pl-step.fail .pl-step-ico { background: var(--bad); color: #fff; }
.pl-step.fail .pl-step-ico .n { display: none; }
.pl-step.fail .pl-step-ico .ic:nth-of-type(2) { display: block; }
.pl-steps.rb .pl-step.done .pl-step-ico { background: var(--warn); }
.pl-step-t { color: var(--faint); }
.pl-rb-h { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-weight: 750; font-size: 13px; }
@keyframes plspin { to { transform: rotate(360deg); } }
.pl-log { background: #0F1A20; color: #D0D8EA; border-radius: 12px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.65; min-height: 300px; max-height: 420px; overflow-y: auto; }
.pl-log.static { min-height: 0; max-height: 360px; }
.pl-log.tall { max-height: 460px; }
.pl-log div { white-space: pre-wrap; word-break: break-word; }
.pl-log .t { color: #8493B5; }
.pl-log .lvl { color: #8FB3FF; }
.pl-log .err { color: #FF9AA2; } .pl-log .err .t { color: #FF9AA2; }
.pl-log .warn { color: #FFD27A; } .pl-log .warn .t { color: #FFD27A; }
.pl-log .ok { color: #8BF0C3; }
.pl-log .cursor::after { content: '▋'; animation: plblink 1s steps(1) infinite; color: #8BF0C3; }
@keyframes plblink { 50% { opacity: 0; } }

/* backups */
.pl-rp { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pl-rp:hover { background: var(--hover); }
.pl-rp input { accent-color: var(--brand-600); }

/* licence */
.pl-licence { padding: 0; overflow: hidden; background: linear-gradient(130deg, var(--brand-800) 0%, var(--brand-950) 100%); color: #E6EAF4; border: 0; }
.pl-licence-top { display: flex; justify-content: space-between; gap: 16px; padding: 24px 24px 0; }
.pl-licence-h { font-size: 22px; font-weight: 800; color: #fff; margin: 4px 0; }
.pl-licence-key { display: flex; align-items: center; gap: 10px; margin: 18px 24px 0; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.09); color: #fff; font-size: 15px; letter-spacing: .04em; }
.pl-licence-key .mono { flex: 1; }
.pl-licence .grid { padding: 0 24px 24px; }
.pl-act { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.07); }
.pl-act b { color: #fff; }
.pl-tl-bar { position: relative; height: 12px; border-radius: 999px; background: #ECE8E2; margin-top: 30px; }
.pl-tl-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); }
.pl-tl-now { position: absolute; top: -30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 750; color: var(--ink); }
.pl-tl-now::after { content: ''; width: 2px; height: 30px; background: var(--ink); margin-top: 2px; }
.pl-tl-now span { background: var(--ink); color: #fff; padding: 1px 7px; border-radius: 6px; }
.pl-price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.pl-price span { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* integrations & users */
.pl-int h4 { font-size: 14.5px; }
.pl-perm { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pl-perm.none { color: var(--ghost); }
.pl-perm.view { background: var(--sky-50); color: var(--sky-700); }
.pl-perm.edit { background: var(--brand-50); color: var(--brand-700); }
.pl-perm.full { background: var(--lilac-50); color: var(--lilac-700); }
.pl-perm.own { background: var(--sun-50); color: var(--sun-700); }
.pl-matrix td, .pl-matrix th { padding: 9px 10px; }

/* ===================== Parent portal ===================== */
.pp-kid { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pp-kidcard { color: inherit; background: linear-gradient(110deg, #fff 55%, var(--tint, var(--brand-50)) 100%); }
.pp-kidcard:hover { color: inherit; }
.pp-feed .timeline > li { padding-bottom: 0; }
.pp-feed .timeline > li::before { display: none; }
.pp-feed .feed-photo { max-width: 100%; }
.pp-feed .card { box-shadow: none; }
.pp-react { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pp-r { width: 34px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; transition: transform .12s, background .12s; }
.pp-r:hover { transform: scale(1.08); }
.pp-r.on { background: var(--coral-50); border-color: var(--coral-100); transform: scale(1.12); }
.pp-todo li { align-items: flex-start; }
.pp-tiles .stat .val { font-size: 22px; }
.pp-learn > div > .card { height: auto; }
.pp-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.pp-drop:hover { border-color: var(--brand-300); color: var(--brand-700); }
.pp-ph { padding: 0; border: 0; cursor: zoom-in; display: block; width: 100%; text-align: left; font: inherit; }
.pp-inbox { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 560px; overflow: hidden; }
.pp-list { border-right: 1px solid var(--line-2); padding: 8px; display: flex; flex-direction: column; gap: 2px; background: var(--subtle); }
.pp-thread { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.pp-thread:hover { background: var(--hover); }
.pp-thread.on { background: #fff; box-shadow: var(--sh-sm); }
.pp-conv { display: flex; flex-direction: column; min-width: 0; }
.pp-pane { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pp-pane-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.pp-msgs { flex: 1; padding: 18px; overflow-y: auto; max-height: 470px; background: linear-gradient(180deg, #FBFAF8, #F7F5F1); }
.pp-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-2); background: #fff; }
.pp-days { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.pp-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink-2); cursor: pointer; }
.pp-day-n { font-size: 18px; font-weight: 800; color: var(--ink); }
.pp-day.available { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-700); }
.pp-day.available:hover { background: var(--brand-100); }
.pp-day.available.sel { background: var(--brand-600); color: #fff; } .pp-day.available.sel .pp-day-n { color: #fff; }
.pp-day.booked { background: var(--line-3); color: var(--muted); cursor: default; }
.pp-day.full { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.pp-ref { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; margin-top: 8px; border-radius: 10px; background: var(--subtle); border: 1px solid var(--line-2); }
.pp-pay-dd { padding-top: 12px; border-top: 1px solid var(--line-2); }
.btn.w-full { width: 100%; justify-content: center; }
.pp-booked { display: inline-flex; gap: 3px; margin-left: 4px; }
.pp-booked i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.cal .day .dn + .pp-booked { position: relative; top: -2px; }
.pp-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pp-slots .chip.disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.pp-notice-img { width: 180px; flex-shrink: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.pp-notice-img img { display: block; width: 100%; height: auto; }
.pp-sign-card { border-top: 3px solid var(--coral); }
.pp-sig { display: block; width: 100%; height: 150px; border: 1.5px dashed var(--line); border-radius: 12px; background: #FFFEFB; touch-action: none; cursor: crosshair; margin-top: 6px; }
.pp-sig.signed { border-style: solid; border-color: var(--brand-300); }
.pp-report-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line-2); background: linear-gradient(110deg, #fff, var(--sky-50)); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.pp-report-h h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.pp-rep-area { padding: 12px 0; border-bottom: 1px solid var(--line-3); }
.pp-pw { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--subtle); font-size: 16px; font-weight: 700; }
@media (max-width: 900px) {
  .pp-inbox { grid-template-columns: 1fr; }
  .pp-list { border-right: 0; border-bottom: 1px solid var(--line-2); flex-direction: row; overflow-x: auto; }
  .pp-thread { min-width: 230px; }
  .pp-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pp-notice-img { width: 110px; }
}
@media (max-width: 760px) {
  .pp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pp-tiles > .card:last-child { grid-column: span 2; }
  .parent-portal .topbar .parent-kids b { display: none; }
  .pp-notice-img { display: none; }
  .parent-portal .page-head .actions .btn { flex: 1; }
}

/* ===================== Parent app mockup ===================== */
.pa-body-page { background: radial-gradient(1200px 600px at 75% 20%, #EAEEF6 0%, rgba(234,238,246,0) 60%), var(--canvas); }
.pa-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: start; max-width: 1180px; margin: 0 auto; padding: 40px 28px 64px; }
.pa-logo { display: inline-block; }
.pa-title { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; margin: 16px 0 12px; }
.pa-lead { font-size: 16px; color: var(--ink-2); max-width: 520px; }
.pa-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pa-jump a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 650; font-size: 13px; }
.pa-jump a.on, .pa-jump a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pa-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; margin-top: 32px; }
.pa-feat { display: flex; gap: 12px; align-items: flex-start; }
.pa-feat b { font-size: 14px; }
.pa-feat p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pa-stage { position: sticky; top: 58px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pa-caption { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 0; }
#phone .scr { display: flex; flex-direction: column; background: #F7F5F1; font-size: 14px; }
.pa-status { height: 50px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0 30px; font-size: 14px; color: var(--ink); z-index: 4; }
.pa-status span { display: flex; align-items: center; gap: 5px; }
.pa-screens { flex: 1; min-height: 0; position: relative; }
.pa-screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; animation: paIn .22s ease; }
@keyframes paIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.pa-screen[hidden] { display: none; }
.pa-h { display: flex; align-items: center; gap: 10px; padding: 6px 16px 10px; flex-shrink: 0; }
.pa-h.big { padding: 8px 18px 12px; }
.pa-h-t { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.pa-h.big .pa-h-t { font-size: 24px; }
.pa-h-t.sm { font-size: 15.5px; }
.pa-h-s { font-size: 12px; color: var(--muted); font-weight: 600; }
.pa-back { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; color: var(--ink); cursor: pointer; box-shadow: var(--sh-sm); flex-shrink: 0; }
.pa-back.abs { position: absolute; top: 4px; left: 16px; z-index: 2; }
.pa-ico-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: var(--sh-sm); padding: 0; }
.pa-badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 800; font-style: normal; display: grid; place-items: center; border: 2px solid #F7F5F1; }
.pa-badge.static { position: static; border: 0; margin-right: 6px; }
.pa-body { flex: 1; overflow-y: auto; padding: 0 14px 90px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.pa-body::-webkit-scrollbar { display: none; }
.pa-kids { display: flex; flex-direction: column; gap: 8px; }
.pa-kid { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 0; background: linear-gradient(110deg, #fff 55%, var(--tint) 100%); box-shadow: var(--sh-sm); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pa-kid b { font-size: 16px; }
.pa-kid-s { font-size: 12.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.pa-kid-r { font-size: 12px; color: var(--muted); }
.pa-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pa-dot.green { background: #1DA463; box-shadow: 0 0 0 3px rgba(29,164,99,.18); } .pa-dot.blue { background: var(--sky); box-shadow: 0 0 0 3px rgba(46,134,214,.18); }
.pa-card { background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--sh-sm); }
.pa-card-h { display: flex; align-items: center; gap: 7px; font-weight: 750; font-size: 13.5px; margin-bottom: 8px; }
.pa-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 2px; border: 0; border-top: 1px solid var(--line-3); background: none; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.pa-card-h + .pa-row, .pa-menu .pa-row:first-child { border-top: 0; }
.pa-r-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex-shrink: 0; }
.pa-r-ic.coral { background: var(--coral-50); color: var(--coral); } .pa-r-ic.sun { background: var(--sun-50); color: #B07A00; }
.pa-post { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-sm); }
.pa-post-h { display: flex; align-items: center; gap: 7px; padding: 10px 12px; font-size: 13px; }
.pa-post-h span { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.pa-post-img img, .pa-ev-img img { display: block; width: 100%; height: auto; }
.pa-post-b { padding: 10px 12px 12px; font-size: 13.5px; }
.pa-post-b p { margin: 4px 0 0; color: var(--ink-2); line-height: 1.5; }
.pa-areas { display: flex; gap: 4px; margin-bottom: 6px; }
.pa-areas i { font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; padding: 2px 7px; border-radius: 999px; }
.pa-next { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--brand-50); color: var(--brand-800); font-size: 12.5px; }
.pa-reacts { display: flex; gap: 6px; margin-top: 10px; align-items: center; }
.pa-reacts button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 14px; cursor: pointer; }
.pa-reacts button.on { background: var(--coral-50); border-color: var(--coral-100); transform: scale(1.1); }
.pa-reacts .pa-link { border: 0; font-size: 13px; }
.pa-link { border: 0; background: none; color: var(--brand-600); font-weight: 700; font: inherit; font-size: 13px; cursor: pointer; padding: 0; margin-top: 6px; }
.pa-small { font-size: 13.5px; }
.pa-muted { color: var(--muted); font-size: 12.5px; margin: 2px 0 0; line-height: 1.45; }
.pa-seg { display: flex; padding: 3px; background: #ECE8E2; border-radius: 12px; gap: 3px; flex-shrink: 0; }
.pa-seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; padding: 7px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.pa-seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.pa-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pa-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; box-shadow: var(--sh-xs); }
.pa-evs { display: flex; flex-direction: column; gap: 8px; }
.pa-ev { display: flex; gap: 10px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: var(--sh-xs); }
.pa-ev-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.pa-ev-b { flex: 1; min-width: 0; font-size: 13px; }
.pa-ev-t { display: flex; justify-content: space-between; gap: 8px; }
.pa-ev-t span { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.pa-ev-d { color: var(--ink-2); margin-top: 1px; line-height: 1.45; }
.pa-ev-img { margin-top: 8px; border-radius: 12px; overflow: hidden; }
.pa-chat { gap: 8px; padding-top: 10px; background: #F2EFEA; }
.pa-bub { max-width: 82%; padding: 9px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.45; position: relative; }
.pa-bub span { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; text-align: right; }
.pa-bub.me { align-self: flex-end; background: var(--brand-600); color: #fff; border-bottom-right-radius: 6px; }
.pa-bub.them { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: var(--sh-xs); }
.pa-compose { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 12px 26px; background: #fff; border-top: 1px solid var(--line-2); }
.pa-compose input { flex: 1; height: 40px; border-radius: 999px; border: 1px solid var(--line); padding: 0 14px; font: inherit; font-size: 14px; outline: none; }
.pa-compose button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand-600); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pa-screen[data-screen="messages"] .pa-body { padding-bottom: 90px; }
.pa-tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; padding: 6px 6px 22px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); }
.pa-tabbar[hidden] { display: none; }
.pa-tabbar button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 10.5px; font-weight: 700; color: var(--faint); cursor: pointer; }
.pa-tabbar button.on { color: var(--brand-600); }
.pa-tabbar .pa-badge { top: 0; right: calc(50% - 22px); }
.pa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 14px; border: 0; background: var(--brand-600); color: #fff; font: inherit; font-weight: 750; font-size: 15px; cursor: pointer; }
.pa-btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pa-btn.sm { height: 38px; font-size: 13.5px; border-radius: 11px; margin-top: 10px; }
.pa-stack { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 30px; margin-top: auto; }
.pa-center { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 26px 0; gap: 10px; }
.pa-center h2, .pa-pad h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.pa-center p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.pa-pad { padding: 0 22px; }
.pa-sub { color: var(--muted); margin: 4px 0 18px; }
.pa-label { display: block; font-size: 12px; font-weight: 750; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.pa-code { display: flex; align-items: center; height: 54px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--brand-400); }
.pa-code input { flex: 1; border: 0; outline: none; font: inherit; font-size: 20px; font-weight: 800; letter-spacing: .08em; background: none; min-width: 0; }
.pa-code input[value*="@"] { font-size: 15px; letter-spacing: 0; font-weight: 600; }
.pa-ok { color: var(--ok); }
.pa-found { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--sh-sm); font-size: 13px; color: var(--ink-2); }
.pa-found b { color: var(--ink); font-size: 15px; display: block; }
.pa-found.mini { margin-top: 50px; padding: 10px 12px; }
.pa-found-logo { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--sun); color: var(--brand-950); font-weight: 900; flex-shrink: 0; }
.pa-found.mini .pa-found-logo { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; }
.pa-found-v { display: flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 700; font-size: 12px; margin-top: 3px; }
.pa-fine { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 14px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.pa-fine.center { justify-content: center; text-align: center; }
.pa-step { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pa-step[hidden] { display: none; }
.pa-big-ic { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.pa-mail { width: 100%; margin-top: 18px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--sh); text-align: left; font-size: 13px; }
.pa-mail-h { display: flex; justify-content: space-between; margin-bottom: 2px; }
.pa-mail-h span { color: var(--muted); font-size: 12px; }
.pa-faceid { width: 110px; height: 110px; border-radius: 30px; display: grid; place-items: center; background: #fff; color: var(--brand-600); box-shadow: var(--sh); animation: paPulse 1.6s ease-in-out infinite; }
@keyframes paPulse { 50% { box-shadow: 0 0 0 10px rgba(53,74,128,.12), var(--sh); } }
.pa-paid { display: flex; gap: 10px; align-items: center; background: var(--ok-bg); color: #0E5A35; }
.pa-warn { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-bg); color: #6E4200; }
.pa-lines { padding: 6px 14px; }
.pa-line-h { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 0 4px; }
.pa-line { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-3); font-size: 13px; }
.pa-line span { display: block; font-size: 11.5px; color: var(--muted); }
.pa-line span.opt { color: var(--sun-700); font-weight: 650; }
.pa-line b { white-space: nowrap; }
.pa-line em { font-style: normal; color: var(--ok); }
.pa-line.funded { background: linear-gradient(90deg, rgba(226,244,233,.6), transparent); }
.pa-line.total { font-weight: 800; font-size: 15px; border-top: 2px solid var(--line); }
.pa-ref { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line-3); font-size: 13px; }
.pa-ref b { font-family: var(--mono); font-size: 12.5px; }
.pa-ref b.green { color: var(--ok); font-family: var(--font); }
.pa-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 12px 0 8px; }
.pa-day { display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 14px; border: 0; background: #fff; box-shadow: var(--sh-xs); font: inherit; color: var(--ink-2); cursor: pointer; }
.pa-day span { font-size: 11px; font-weight: 750; }
.pa-day b { font-size: 18px; color: var(--ink); }
.pa-day em { font-style: normal; font-size: 10px; font-weight: 700; }
.pa-day.available { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1.5px var(--brand-200); }
.pa-day.booked { background: #ECE8E2; color: var(--muted); }
.pa-day.full { opacity: .45; }
.pa-sheet { position: absolute; inset: 0; z-index: 6; background: rgba(15,22,30,.35); display: flex; align-items: flex-end; }
.pa-sheet[hidden] { display: none; }
.pa-sheet-in { width: 100%; background: #fff; border-radius: 26px 26px 0 0; padding: 12px 18px 30px; display: flex; flex-direction: column; gap: 8px; animation: paUp .22s ease; }
.pa-sheet-in p { margin: 0 0 6px; color: var(--ink-2); }
.pa-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; margin-bottom: 6px; }
@keyframes paUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.pa-me { display: flex; gap: 12px; align-items: center; }
.pa-cal { display: flex; gap: 12px; align-items: center; padding: 10px 12px; font-size: 13.5px; }
.pa-date { width: 44px; text-align: center; border-radius: 12px; overflow: hidden; background: var(--subtle); flex-shrink: 0; }
.pa-date span { display: block; background: var(--coral); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 2px 0; }
.pa-date b { display: block; font-size: 17px; padding: 2px 0 3px; }
.pa-sig { display: block; width: 100%; height: 110px; border: 1.5px dashed var(--line); border-radius: 12px; margin-top: 8px; background: #FFFEFB; touch-action: none; cursor: crosshair; }
.pa-switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.pa-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.pa-switch i { position: absolute; inset: 0; border-radius: 999px; background: #D5D0C8; transition: background .15s; }
.pa-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.pa-switch input:checked + i { background: #34C759; }
.pa-switch input:checked + i::after { transform: translateX(18px); }
.pa-push { position: absolute; top: 44px; left: 10px; right: 10px; z-index: 8; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(16,24,40,.22); font-size: 13px; cursor: pointer; animation: paDrop .35s cubic-bezier(.2,1.2,.4,1); }
.pa-push[hidden] { display: none; }
.pa-push img { border-radius: 9px; }
.pa-push-h { display: flex; justify-content: space-between; } .pa-push-h span { color: var(--muted); font-size: 11.5px; }
@keyframes paDrop { from { transform: translateY(-80px); opacity: 0; } to { transform: none; opacity: 1; } }
.pa-connect { background: linear-gradient(180deg, #F7F5F1 0%, #EEF1F8 100%); }
@media (max-width: 1060px) {
  .pa-wrap { grid-template-columns: 1fr; gap: 30px; padding: 28px 18px 48px; }
  .pa-stage { position: static; order: -1; }
  .pa-title { font-size: 34px; }
}
@media (max-width: 760px) {
  .pa-stage .phone { transform: none; }
  .pa-feats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pa-wrap { padding: 0 0 40px; }
  .pa-stage .phone { width: 100%; height: calc(100svh - 38px); border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .pa-stage .phone .notch { display: none; }
  .pa-stage .phone .scr { border-radius: 0; }
  .pa-caption { display: none; }
  .pa-intro { padding: 0 18px; }
}

/* ===================== Login ===================== */
.lg-body { background: var(--canvas); }
.lg-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100vh - 38px); }
.lg-brand { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 40px 48px; background: linear-gradient(150deg, var(--brand-800) 0%, var(--brand-950) 100%); color: #DDE3F0; overflow: hidden; }
.lg-brand::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(247,192,74,.12); }
.lg-brand-top { display: flex; align-items: center; gap: 12px; color: #fff; }
.lg-site { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sun); color: var(--brand-950); font-weight: 900; flex-shrink: 0; }
.lg-art { max-width: 460px; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.25); margin-top: 18px; }
.lg-art img { display: block; width: 100%; height: auto; }
.lg-claim { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.15; color: #fff; max-width: 520px; margin-top: 10px; }
.lg-sub { max-width: 520px; font-size: 15px; line-height: 1.6; opacity: .85; }
.lg-powered { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .85; position: relative; z-index: 1; }
.lg-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
.lg-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--sh); }
.lg-card h1 { font-size: 26px; margin-bottom: 6px; }
.lg-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--faint); font-size: 12px; font-weight: 650; }
.lg-or::before, .lg-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.lg-otp { display: flex; gap: 8px; justify-content: space-between; }
.lg-otp input { width: 50px; height: 58px; text-align: center; font-size: 24px; font-weight: 800; border: 1px solid var(--line); border-radius: 12px; font-family: var(--mono); }
.lg-otp input:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.lg-demo-box { margin-top: 22px; padding: 14px; border-radius: 14px; background: var(--subtle); border: 1px dashed var(--line); }
.lg-demo { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.lg-demo:hover { background: #fff; color: var(--ink); box-shadow: var(--sh-xs); }
@media (max-width: 900px) { .lg-wrap { grid-template-columns: 1fr; } .lg-brand { padding: 28px 22px; } .lg-art, .lg-sub { display: none; } .lg-claim { font-size: 24px; } }

/* ===================== Maintenance & 404 ===================== */
.mt-body { background: radial-gradient(900px 500px at 50% 0%, #E6EAF4, var(--canvas)); }
.mt-wrap { min-height: calc(100vh - 38px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 18px; gap: 16px; }
.mt-card { width: 100%; max-width: 520px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px 30px; box-shadow: var(--sh-lg); }
.mt-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 30px; margin-bottom: 8px; }
.mt-lead { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.mt-art { position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 22px; }
.mt-art img { display: block; width: 100%; height: 170px; object-fit: cover; }
.mt-gear { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--brand-600); animation: plspin 6s linear infinite; }
.mt-progress { position: relative; height: 8px; border-radius: 999px; background: #ECE8E2; overflow: hidden; margin: 18px 0; }
.mt-progress i { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); animation: mtbar 1.6s ease-in-out infinite; }
@keyframes mtbar { 0% { left: -40%; } 100% { left: 100%; } }
.mt-list { list-style: none; margin: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.mt-list li { display: flex; gap: 10px; align-items: flex-start; }
.mt-list .ic { color: var(--brand-600); margin-top: 1px; }
.mt-demo { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.nf-num { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 96px; font-weight: 800; letter-spacing: -0.04em; color: var(--brand-700); line-height: 1; margin-bottom: 10px; }
.nf-num span { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--oat); color: var(--coral); overflow: hidden; }

/* --- review fixes --- */
.pa-body > *, .pa-evs > *, .pa-kidpanel > * { flex-shrink: 0; }
#upd-sim { scroll-margin-top: 112px; }
.pl-sim.failed #upd-bar > i { background: linear-gradient(90deg, var(--brand-500) 0%, #E39A12 80%); }
.pl-mini .mini-stat .v { font-size: 17px; }
.pp-feed .feed-photo { max-width: 440px; }
.pp-feed .card-b > .card .mb-3 { max-width: 440px; }
.pp-sticky { align-self: start; position: sticky; top: 118px; }
@media (max-width: 1100px) { .pp-sticky { position: static; } }
.pa-step .pa-pad > h2.mt-6 { margin-top: 52px; }
.lg-wrap > * { min-width: 0; }

/* system health banner in its amber and red states */
.pl-status.is-warn { background: linear-gradient(90deg, var(--warn-bg, #FFF6E0), #FFFBF1); border-color: var(--warn-line, #F3D48A); color: #7A4B00; }
.pl-status.is-warn .pl-status-ico { color: #C57D00; box-shadow: 0 0 0 4px rgba(227,154,18,.14); }
.pl-status.is-bad { background: linear-gradient(90deg, var(--bad-bg, #FDECEE), #FFF6F7); border-color: var(--bad-line, #F3B5BB); color: #8A1C28; }
.pl-status.is-bad .pl-status-ico { color: #D03545; box-shadow: 0 0 0 4px rgba(224,65,79,.14); }
.pl-keybox { width: 100%; font-family: var(--mono); font-size: 12px; min-height: 92px; }

/* ---- parent app: phone tab bar, install hint, small pieces ---- */
.pp-tabbar { display: none; }
.pp-install { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: #F7C04A; color: #0B2B39; font: inherit; font-weight: 700; cursor: pointer; }
.pp-install[hidden] { display: none; }
.pp-install:not([hidden]) + .pp-install-tip { display: none; }
.pp-kid.lg b { font-size: 15px; }
.pp-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pp-photos figure { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); }
.pp-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pp-photos figcaption { padding: 8px 10px; font-size: 12.5px; }
.pp-lightbox { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,16,22,.88); cursor: zoom-out; }
.pp-lightbox.open { display: flex; }
.pp-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.pp-bubbles { display: flex; flex-direction: column; gap: 10px; }
.pp-b { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.pp-b.me { align-self: flex-end; background: var(--brand-600); border-color: var(--brand-600); color: #fff; border-bottom-right-radius: 6px; }
.pp-b.them { align-self: flex-start; border-bottom-left-radius: 6px; }
.pp-b.sys { align-self: center; max-width: 92%; background: var(--subtle); color: var(--muted); font-size: 12.5px; text-align: center; }
.pp-b .who { display: block; font-size: 11.5px; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.pp-b .at { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.pp-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pp-week > div { padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; text-align: center; font-size: 12.5px; }
.pp-week > div.off { background: var(--line-3); color: var(--muted); }
.pp-week b { display: block; font-size: 13px; }
@media (max-width: 1100px) {
  .parent-portal .pp-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line-2); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(15,22,30,.06); }
  .pp-tabbar a, .pp-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 10px; }
  .pp-tabbar .on { color: var(--brand-700); }
  .pp-tabbar .n { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 10.5px; font-style: normal; line-height: 17px; text-align: center; }
  .parent-portal .content { padding-bottom: 96px; }
  .parent-portal .topbar .menu-btn { display: none; }
  .parent-portal .toasts { bottom: 84px; }
  .pp-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pp-b { max-width: 90%; }
  .pp-week { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; }
}

/* css/16-appraisals.css */
/* ---------- Staff appraisals: looking back at objectives, the objective rows and the read-only record ---------- */
.apr-row { padding: 14px 0; border-bottom: 1px solid var(--line-3); }
.apr-row:last-child { border-bottom: 0; }
.apr-row .seg-radio { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.apr-row .seg-radio label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.apr-row .seg-radio input { accent-color: var(--brand-600); }
.apr-obj { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.apr-obj + .apr-obj { margin-top: 10px; }
.apr-obj .form-grid { margin-top: 8px; }
.apr-quote { white-space: pre-line; color: var(--ink-2); }
.apr-section + .apr-section { margin-top: 14px; }
.apr-trend { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.apr-trend i { display: block; width: 10px; border-radius: 3px 3px 0 0; background: var(--lilac); opacity: .75; }

/* css/16-clubs.css */
/* ===================== Holiday and wraparound clubs ===================== */
.club-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-3); color: inherit; }
.club-row:last-child { border-bottom: 0; }
.club-row:hover { background: var(--hover); color: inherit; }
.club-row.compact { padding: 9px 14px; }
.club-row.row-muted { opacity: .6; }
.club-date { display: flex; flex-direction: column; align-items: center; width: 42px; line-height: 1.1; font-size: 10.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.club-date b { font-size: 17px; color: var(--ink); }
.club-num { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.club-week { padding: 12px 16px; border-bottom: 1px solid var(--line-3); }
.club-week:last-child { border-bottom: 0; }
.club-week-h { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.club-sessions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.club-session { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.club-session:hover { border-color: var(--brand-200); background: var(--brand-50); color: var(--ink-2); }
.club-session.today { border-color: var(--brand-600); box-shadow: 0 0 0 1px var(--brand-600) inset; }
.club-session.full { background: #FFF8F7; }
.club-session.muted { opacity: .55; text-decoration: line-through; }
.club-session b { font-size: 16px; color: var(--ink); }

/* parent app: choose days */
.club-bar { position: sticky; bottom: 12px; z-index: 5; }
.club-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.club-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--brand-200); background: var(--brand-50); color: var(--brand-700); cursor: pointer; text-align: center; font-size: 12px; }
.club-tile input { position: absolute; opacity: 0; pointer-events: none; }
.club-tile .n { font-size: 17px; font-weight: 800; color: var(--ink); }
.club-tile:hover { background: var(--brand-100); }
.club-tile:has(input:checked) { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.club-tile:has(input:checked) .n { color: #fff; }
.club-tile:has(input:focus-visible) { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.club-tile.few { border-color: var(--sun-200, #F3D9A4); background: var(--sun-50, #FFF8E8); color: var(--sun-700, #8A5A00); }
.club-tile.wait { border-style: dashed; border-color: var(--line); background: #fff; color: var(--muted); }
.club-tile.held { background: var(--line-3); border-color: var(--line-2); color: var(--muted); cursor: default; }
.club-tile.off { opacity: .45; cursor: not-allowed; background: #fff; border-color: var(--line-2); color: var(--faint); }
.club-tile.off .n { color: var(--faint); }

@media (max-width: 900px) {
  .club-sessions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .club-bar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .club-pick { gap: 4px; }
  .club-tile { padding: 7px 2px; font-size: 11px; border-radius: 10px; }
  .club-tile .n { font-size: 15px; }
  .club-sessions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* css/16-payroll-forms.css */
/* P45 and P60: HMRC's boxes, numbered as on HMRC's own forms, one part per printed page */
.hm-form { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh); padding: 30px 34px; max-width: 920px; margin: 0 auto 22px; }
.hm-form .hm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 14px; border-bottom: 3px solid #111; margin-bottom: 14px; }
.hm-form .hm-kind { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.hm-form .hm-part { font-size: 15px; font-weight: 700; margin-top: 4px; }
.hm-form .hm-for { font-size: 12.5px; color: #444; text-align: right; max-width: 340px; }
.hm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.hm-grid .full { grid-column: 1 / -1; }
.hm-box { border: 1.5px solid #111; border-radius: 6px; padding: 7px 10px 8px; min-height: 54px; break-inside: avoid; }
.hm-box .q { font-size: 11px; font-weight: 700; color: #333; display: flex; gap: 6px; }
.hm-box .q b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 4px; background: #111; color: #fff; font-size: 10.5px; }
.hm-box .a { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 600; margin-top: 4px; white-space: pre-line; letter-spacing: .02em; }
.hm-box .a.blank { color: #999; font-family: inherit; font-size: 12px; font-weight: 500; }
.hm-box .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 4px; }
.hm-box .pair .l { font-size: 10.5px; color: #555; }
.hm-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hm-table th, .hm-table td { border: 1px solid #111; padding: 6px 8px; text-align: right; }
.hm-table th { background: #f2f2f2; font-weight: 700; font-size: 11px; }
.hm-table th:first-child, .hm-table td:first-child { text-align: center; }
.hm-note { font-size: 11.5px; color: #444; margin-top: 12px; }
.hm-cert { border-top: 1.5px solid #111; margin-top: 14px; padding-top: 10px; font-size: 12px; }
@media (max-width: 760px) { .hm-form { padding: 20px 16px; } .hm-grid { grid-template-columns: 1fr; } .hm-form .hm-top { flex-direction: column; } .hm-form .hm-for { text-align: left; } }
@media print {
  .hm-form { border: 0; box-shadow: none; border-radius: 0; padding: 0; max-width: none; margin: 0; break-after: page; }
  .hm-form:last-of-type { break-after: auto; }
}

/* css/16-send.css */
/* ---------- SEND support: outcomes in a plan, the plan form and its print ---------- */
.send-outcomes { list-style: none; margin: 0; padding: 0; counter-reset: so; }
.send-outcomes > li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line-3); counter-increment: so; }
.send-outcomes > li:last-child { border-bottom: 0; }
.send-outcomes > li::before { content: counter(so); position: absolute; left: 0; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--lilac-50); color: var(--lilac); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.send-row { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card, #fff); }
.send-row + .send-row { margin-top: 12px; }
.send-row .send-row-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.send-row .send-row-h b { flex: 1; }
.send-review-row { padding: 14px 0; border-bottom: 1px solid var(--line-3); }
.send-review-row:last-child { border-bottom: 0; }
.send-review-row .seg-radio { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.send-review-row .seg-radio label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.send-review-row .seg-radio input { accent-color: var(--brand-600); }
.send-doc table.table td, .send-doc table.table th { vertical-align: top; }
@media print { .send-doc { box-shadow: none; border: 0; padding: 0; } }

/* css/17-evenings.css */
/* parents' evenings: the key person's schedule and the parent's booking */
.pe-schedule { max-width: 980px; }
.pe-free { padding: 2px 16px; }
.pe-time { min-width: 96px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pe-time b { font-size: 1.25rem; }
.pe-kid + .pe-kid { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.pe-booked { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); margin-bottom: 10px; }
.pe-pick summary { cursor: pointer; padding: 4px 0; }
.pe-pick .club-tile .n { font-size: 15px; }
@media print {
  .pe-schedule { max-width: none; }
  .pe-appt { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .pe-notes textarea { border: 1px solid #ccc; min-height: 5em; }
  .pe-free { padding: 0; }
}
.pe-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.pe-slots > li { padding: 5px 14px; gap: 8px; min-height: 36px; }
.pe-slots > li form { margin: 0; }
.pe-slots .mono { min-width: 52px !important; }
.pe-unbooked .list { max-height: 360px; overflow: auto; }
.pe-row { display: flex; gap: 20px; align-items: flex-start; }
.pe-row > .grow { flex: 1; min-width: 0; }
@media (max-width: 640px) { .pe-row { flex-direction: column; gap: 10px; } .pe-time { flex-direction: row; align-items: center; } }

/* css/90-app.css */
/* Additions for the live application (things the static mockup did not need). */
/* No demo bar unless this is the demo nursery */
body:not(.has-demobar) .app { min-height: 100vh; }
body:not(.has-demobar) .sidebar { top: 0; height: 100vh; }
body:not(.has-demobar) .topbar { top: 0; }
body:not(.has-demobar) .lg-wrap, body:not(.has-demobar) .mt-wrap { min-height: 100vh; }
.demobar .roles a.on { pointer-events: none; }

/* Forms */
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(196,47,61,.12); }
.menu form { margin: 0; display: contents; }
.menu form button { width: 100%; }
form.inline { display: inline; }
.toast.bad .ic { color: #FCA5A5; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line-2); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-600); cursor: pointer; font-weight: 600; }
.link-btn:hover { color: var(--brand-700); text-decoration: underline; }
.link-btn.danger { color: var(--bad); }

/* Installer and platform console */
.setup-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 18px 60px; gap: 22px; background: radial-gradient(1200px 500px at 50% -10%, var(--brand-50), transparent), var(--canvas); }
.setup-card { width: 100%; max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh); padding: 30px 32px; }
.setup-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 28px; margin-bottom: 6px; }
.mode-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mode-pick label { display: block; position: relative; padding: 18px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; background: #fff; }
.mode-pick label:hover { border-color: var(--brand-300); }
.mode-pick input { position: absolute; opacity: 0; }
.mode-pick label:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); box-shadow: var(--ring); }
.mode-pick h3 { margin: 10px 0 4px; }
.mode-pick p { font-size: 13px; color: var(--muted); }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: 13px; }
.req-list li { display: flex; align-items: center; gap: 8px; }
.req-list .ic.ok { color: var(--ok); } .req-list .ic.bad { color: var(--bad); }
@media (max-width: 640px) { .mode-pick, .req-list { grid-template-columns: 1fr; } .setup-card { padding: 22px 18px; } }

/* Guided tour (driver.js) in the house style */
.driver-popover { font-family: var(--font); border-radius: 16px; padding: 18px; box-shadow: var(--sh-lg); max-width: 340px; color: var(--ink); }
.driver-popover-title { font: 700 16px var(--font); color: var(--ink); }
.driver-popover-description { font: 450 13.5px/1.55 var(--font); color: var(--ink-2); }
.driver-popover-progress-text { font-size: 12px; color: var(--faint); }
.driver-popover-footer button { font: 650 13px var(--font); text-shadow: none; border-radius: 9px; padding: 7px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.driver-popover-footer button.driver-popover-next-btn { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.driver-popover-footer button.driver-popover-next-btn:hover { background: var(--brand-700); }
.driver-popover-close-btn { color: var(--faint); }

/* Print */
@media print {
  .no-print, .sidebar, .topbar, .demobar, .toasts, .overlay { display: none !important; }
  .app { display: block; } .content { padding: 0; max-width: none; } body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* css/vendor/driver.css */
.driver-layer{width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;color:inherit!important;pointer-events:none!important;background:0 0!important;border:0!important;margin:0!important;padding:0!important;position:fixed!important;inset:0!important;overflow:visible!important}.driver-layer::backdrop{display:none}.driver-layer .driver-popover{pointer-events:auto}.driver-popover{all:unset;font-family:var(--driver-popover-font-family,"Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif);box-sizing:border-box;pointer-events:auto;color:#2d2d2d;z-index:1000000000;background-color:#fff;border-radius:5px;min-width:250px;max-width:300px;margin:0;padding:15px;position:fixed;top:0;right:0;box-shadow:0 1px 10px #0006}.driver-popover-title{zoom:1;margin:0;font-size:19px;font-weight:700;line-height:1.5;display:block;position:relative}.driver-popover-close-btn{all:unset;cursor:pointer;color:#d2d2d2;z-index:1;text-align:center;width:32px;height:28px;font-size:18px;font-weight:500;transition:color .2s;position:absolute;top:0;right:0}.driver-popover-close-btn:hover,.driver-popover-close-btn:focus-visible{color:#2d2d2d}.driver-popover-title:not([style*=none])+.driver-popover-description{margin-top:5px}.driver-popover-description{zoom:1;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.5}.driver-popover-footer{text-align:right;zoom:1;justify-content:space-between;align-items:center;margin-top:15px;display:flex}.driver-popover-progress-text{color:#727272;zoom:1;font-size:13px;font-weight:400}.driver-popover-footer-btn{all:unset;box-sizing:border-box;color:#2d2d2d;cursor:pointer;zoom:1;background-color:#fff;border:1px solid #ccc;border-radius:3px;outline:0;padding:3px 7px;font-size:12px;line-height:1.3;text-decoration:none;display:inline-block}.driver-popover-footer .driver-popover-btn-disabled{opacity:.5;pointer-events:none}.driver-popover-footer-btn:hover,.driver-popover-footer-btn:focus-visible{background-color:#f7f7f7}.driver-popover-navigation-btns{flex-grow:1;justify-content:flex-end;display:flex}.driver-popover-navigation-btns button+button{margin-inline-start:4px}.driver-popover-arrow{content:"";border:5px solid #fff;position:absolute}.driver-popover-arrow-side-over{display:none}.driver-popover-arrow-side-left{border-top-color:#0000;border-bottom-color:#0000;border-right-color:#0000;left:100%}.driver-popover-arrow-side-right{border-top-color:#0000;border-bottom-color:#0000;border-left-color:#0000;right:100%}.driver-popover-arrow-side-top{border-bottom-color:#0000;border-left-color:#0000;border-right-color:#0000;top:100%}.driver-popover-arrow-side-bottom{border-top-color:#0000;border-left-color:#0000;border-right-color:#0000;bottom:100%}.driver-popover-arrow-side-center,.driver-popover-arrow-none{display:none}.driver-active .driver-overlay{pointer-events:none}.driver-active.driver-no-scroll{overflow:hidden}.driver-active :where(:not(.driver-page-interactive *,.driver-active-element,.driver-active-element *,.driver-allowed-element,.driver-allowed-element *,.driver-popover,.driver-popover *)){pointer-events:none}.driver-page-interactive .driver-overlay path{pointer-events:none!important}.driver-active .driver-active-element,.driver-popover{pointer-events:auto}.driver-active .driver-allowed-element{pointer-events:auto;z-index:var(--driver-allowed-z-index,10001)}.driver-active .driver-active-element-raised{outline:var(--driver-raised-highlight-width,2px) solid var(--driver-raised-highlight-color,#2563eb);outline-offset:var(--driver-raised-highlight-offset,-2px);box-shadow:inset 0 0 0 100vmax var(--driver-raised-highlight-background,#2563eb1a)}@keyframes animate-fade-in{0%{opacity:0}to{opacity:1}}.driver-fade .driver-overlay{animation:animate-fade-in var(--driver-animation-duration,.4s) ease-in-out}.driver-fade .driver-popover{animation:animate-fade-in var(--driver-animation-duration,.4s)}.driver-active-element-parent-no-scroll{overflow:hidden!important}.driver-no-interaction,.driver-no-interaction *{pointer-events:none!important}.driver-popover.driver-popover-waiting .driver-popover-title,.driver-popover.driver-popover-waiting .driver-popover-description,.driver-popover.driver-popover-waiting .driver-popover-footer{opacity:.55;transition:opacity .15s ease-in-out}@keyframes driver-nudge-shake{0%,to{transform:translate(0)}20%{transform:translateX(calc(-1 * var(--driver-nudge-distance,6px)))}40%{transform:translateX(var(--driver-nudge-distance,6px))}60%{transform:translateX(calc(-.5 * var(--driver-nudge-distance,6px)))}80%{transform:translateX(calc(.5 * var(--driver-nudge-distance,6px)))}}@keyframes driver-nudge-flash{0%{box-shadow:0 0 0 3px var(--driver-nudge-color,#f59e0b)}to{box-shadow:0 0 0 3px #0000}}.driver-popover.driver-popover-nudge{animation:driver-nudge-shake var(--driver-nudge-duration,.5s) ease-in-out}.driver-fade .driver-popover.driver-popover-nudge{animation:animate-fade-in var(--driver-animation-duration,.4s), driver-nudge-shake var(--driver-nudge-duration,.5s) ease-in-out}@media (prefers-reduced-motion:reduce){.driver-popover.driver-popover-nudge{animation:driver-nudge-flash var(--driver-nudge-duration,.5s) ease-out}.driver-fade .driver-popover.driver-popover-nudge{animation:animate-fade-in var(--driver-animation-duration,.4s), driver-nudge-flash var(--driver-nudge-duration,.5s) ease-out}}.driver-popover-instruction{padding:var(--driver-instruction-padding,8px 10px);border-radius:var(--driver-instruction-radius,4px);background-color:var(--driver-instruction-background,#f2f2f2);color:var(--driver-instruction-color,inherit);align-items:flex-start;gap:10px;margin-top:12px;font-size:14px;line-height:1.5;display:flex}.driver-popover-instruction-text{overflow-wrap:break-word;flex:1;min-width:0}.driver-popover-instruction-indicator{--size:var(--driver-instruction-indicator-size,8px);box-sizing:border-box;width:var(--size);height:var(--size);margin:calc((1.5em - var(--size)) / 2) 2px 0;background-color:var(--driver-instruction-indicator-color,#f59e0b);border-radius:50%;flex:none;animation:1.6s ease-in-out infinite driver-instruction-pulse}:where(.driver-popover:not(.driver-popover-has-instruction)) .driver-popover-instruction-indicator{display:none}@keyframes driver-instruction-pulse{50%{opacity:.35;transform:scale(.7)}}.driver-popover-instruction-done .driver-popover-instruction{background-color:var(--driver-instruction-done-background,#dcfce7);color:var(--driver-instruction-done-color,#15803d)}.driver-popover-instruction-done .driver-popover-instruction-indicator{width:calc(var(--size) * .7);height:calc(var(--size) * 1.3);margin-top:calc((1.5em - var(--size) * 1.3) / 2 - 1px);background:0 0;border:2px solid;border-width:0 2px 2px 0;border-radius:0;animation:none;transform:rotate(45deg)}.driver-popover-footer .driver-popover-btn-disabled[aria-disabled]{pointer-events:auto;cursor:default;opacity:1;color:var(--driver-instruction-next-color,#a3a3a3);background-color:#fff}.driver-popover-instruction-done .driver-popover-footer .driver-popover-next-btn{border-color:var(--driver-instruction-done-color,#15803d);background-color:var(--driver-instruction-done-color,#15803d);color:#fff}.driver-popover-nudge .driver-popover-instruction{box-shadow:0 0 0 2px var(--driver-instruction-indicator-color,#f59e0b)}@media (prefers-reduced-motion:reduce){.driver-popover-instruction-indicator{animation:none}}.driver-popover-feedback{color:var(--driver-feedback-color,#b45309);overflow-wrap:break-word;margin-top:8px;font-size:13px;line-height:1.4}
