/* Lidach – mobile-first, RTL, light/dark. Fonts: Heebo (SIL OFL 1.1, see /assets/fonts/OFL.txt). */
@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-hebrew.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-latin.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

:root {
  --sky: #0B72B0;
  --sky-soft: #EAF5FC;
  --ink: #101418;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F2F8FC;
  --border: #DDE7EF;
  --text: var(--ink);
  --muted: #5A6570;
  --primary: var(--sky);
  --primary-hover: #095E93;
  --on-primary: #FFFFFF;
  --accent: var(--ink);
  --on-accent: #FFFFFF;
  --focus: #0B72B0;
  --ok: #1D6B3A;
  --ok-bg: #E5F4EA;
  --warn: #7A5300;
  --warn-bg: #FBF1D9;
  --danger: #A32F1E;
  --danger-bg: #FBE7E3;
  --info-bg: var(--sky-soft);
  --shadow: 0 1px 2px rgba(16, 20, 24, .05), 0 4px 14px rgba(16, 20, 24, .06);

  --radius: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --grid: #E6EEF4;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --fs-sm: .875rem; --fs-base: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: clamp(1.9rem, 5vw, 2.75rem);
  --container: 1120px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #141618;
  --surface: #1D2023;
  --surface-2: #262A2E;
  --border: #33383D;
  --text: #F4F6F8;
  --muted: #A9B2BA;
  --primary: #6CC6F2;
  --primary-hover: #8FD3F6;
  --on-primary: #06202D;
  --accent: #F4F6F8;
  --on-accent: #141618;
  --focus: #8FD3F6;
  --ok: #8FD9A8; --ok-bg: #1C2B22;
  --warn: #F3CF7E; --warn-bg: #2E2A1E;
  --danger: #FFA493; --danger-bg: #35221F;
  --info-bg: #1C2C36;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.25);
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --grid: #2C3136;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
  --bg: #141618;
  --surface: #1D2023;
  --surface-2: #262A2E;
  --border: #33383D;
  --text: #F4F6F8;
  --muted: #A9B2BA;
  --primary: #6CC6F2;
  --primary-hover: #8FD3F6;
  --on-primary: #06202D;
  --accent: #F4F6F8;
  --on-accent: #141618;
  --focus: #8FD3F6;
  --ok: #8FD9A8; --ok-bg: #1C2B22;
  --warn: #F3CF7E; --warn-bg: #2E2A1E;
  --danger: #FFA493; --danger-bg: #35221F;
  --info-bg: #1C2C36;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.25);
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --grid: #2C3136;
  color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Heebo", "Assistant", "Arial Hebrew", "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--space-3); }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--space-3); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--surface); color: var(--text); padding: 8px 12px; z-index: 100; border: 2px solid var(--focus); }
.skip-link:focus { top: 8px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }

/* Icons */
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.icon-24 { width: 24px; height: 24px; }
[dir="rtl"] .icon.dir { transform: scaleX(-1); }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-4); }
main { flex: 1; padding-block: var(--space-4) calc(var(--nav-h) + var(--space-6) + var(--safe-b)); }
main:focus { outline: none; }
.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: var(--space-4); }
.grid-2 { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  main { padding-bottom: var(--space-7); }
}
.layout-side { display: grid; gap: var(--space-5); }
@media (min-width: 1024px) { .layout-side { grid-template-columns: 1fr 340px; align-items: start; } .layout-side > aside { position: sticky; top: 88px; } }


/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; align-items: center; gap: var(--space-3); min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.35rem; }
.brand { gap: 10px; }
.brand-logo { display: inline-flex; flex: none; }
.brand-logo img { display: block; width: auto; }
.brand-mark img { height: 38px; }
.brand-word img { height: 22px; }
@media (max-width: 359px) { .brand-word img { height: 18px; } .brand-mark img { height: 32px; } }
.footer-logo { display: inline-block; margin-bottom: var(--space-3); }
.footer-logo img { height: 56px; }
.auth-logo { display: flex; justify-content: center; padding-block: var(--space-2); }
.auth-logo img { height: 110px; max-width: 100%; }
.boot-logo img, img.boot-logo { height: 96px; width: auto; }
/* The master logo is black: render it white on dark surfaces. */
:root[data-theme="dark"] .brand-logo img, :root[data-theme="dark"] img.brand-logo { filter: invert(1) brightness(.94); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .brand-logo img, :root[data-theme="system"] img.brand-logo { filter: invert(1) brightness(.94); } }
.brand .tagline { display: none; font-weight: 400; font-size: var(--fs-sm); color: var(--muted); }
@media (min-width: 1024px) { .brand .tagline { display: inline; } }
.topnav { display: none; gap: var(--space-1); margin-inline-start: auto; }
.topnav a { padding: 8px 12px; border-radius: var(--radius); text-decoration: none; color: var(--text); font-weight: 500; }
.topnav a[aria-current="page"] { background: var(--surface-2); color: var(--primary); }
.topbar-actions { display: flex; gap: var(--space-2); align-items: center; margin-inline-start: auto; }
@media (min-width: 900px) { .topnav { display: flex; } .topbar-actions { margin-inline-start: 0; } }

/* Bottom nav (mobile) */
.bottom-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--border); padding-bottom: var(--safe-b); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.bottom-nav:empty { display: none; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--nav-h); text-decoration: none; color: var(--muted); font-size: .78rem; font-weight: 500; position: relative; }
.bottom-nav a[aria-current="page"] { color: var(--primary); }
.bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; inset-inline: 22%; height: 3px; background: var(--primary); }
.bottom-nav .dot { position: absolute; top: 10px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: var(--on-accent); border-radius: 9px; font-size: .7rem; line-height: 18px; text-align: center; }
@media (min-width: 900px) { .bottom-nav { display: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-5) 0 calc(var(--nav-h) + var(--space-5) + var(--safe-b)); color: var(--muted); font-size: var(--fs-sm); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-2); }
@media (min-width: 900px) { .site-footer { padding-bottom: var(--space-5); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-md); border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; background: var(--surface-2); color: var(--text); }
.btn:hover { filter: brightness(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; filter: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: var(--fs-sm); }
.icon-btn { min-width: 44px; min-height: 44px; padding: 0; background: transparent; border: 0; border-radius: var(--radius); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .dot { position: absolute; top: 6px; inset-inline-end: 4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: .65rem; line-height: 16px; padding: 0 4px; }
.sticky-cta { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 20; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); padding: var(--space-3); border-radius: var(--radius); display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; }
@media (min-width: 900px) { .sticky-cta { bottom: var(--space-4); } }

/* Cards & surfaces */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow); }
.card-flat { background: var(--surface-2); border-radius: var(--radius); padding: var(--space-4); }
.card h2, .card h3 { margin-bottom: var(--space-2); }
.divider { border: 0; border-top: 1px solid var(--border); margin: var(--space-4) 0; }
.notice { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--info-bg); border-inline-start: 4px solid var(--primary); }
.notice.warn { background: var(--warn-bg); border-color: var(--warn); color: var(--text); }
.notice.danger { background: var(--danger-bg); border-color: var(--danger); }
.notice.ok { background: var(--ok-bg); border-color: var(--ok); }
.notice p:last-child { margin: 0; }

/* Pills (always icon/text, never colour only) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 600; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill.danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.pill.info { background: var(--info-bg); color: var(--primary); border-color: transparent; }
.pill .icon { width: 16px; height: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 600; }
.field .hint { font-size: var(--fs-sm); color: var(--muted); }
.field .error { font-size: var(--fs-sm); color: var(--danger); font-weight: 500; display: flex; gap: 4px; align-items: center; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); appearance: none;
}
textarea.input { min-height: 96px; resize: vertical; }
select.input { 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='%235A6570' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: left 12px center; background-size: 16px 16px; background-repeat: no-repeat; padding-inline-end: 12px; padding-left: 36px; }
:root[data-theme="dark"] select.input { 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='%23A9B2BA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] select.input { 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='%23A9B2BA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); } }
.input:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--focus) 40%, transparent); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--danger); }
input[type="date"].input, input[type="time"].input { direction: ltr; text-align: end; }
.form-grid { display: grid; gap: var(--space-4); }
@media (min-width: 600px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-block: 8px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: 0; min-width: 0; }
legend { font-weight: 700; padding-inline: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); font-weight: 500; }
.chip input:checked + span { background: var(--info-bg); border-color: var(--primary); color: var(--primary); }
.chip input:checked + span::before { content: "✓"; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Switch (rounded by convention) */
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; cursor: pointer; }
.switch input { appearance: none; width: 52px; height: 30px; border-radius: 15px; background: var(--border); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: inset-inline-start .15s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { inset-inline-start: 25px; }
.switch .state { font-size: var(--fs-sm); font-weight: 600; min-width: 4.5em; }

/* Steps */
.steps { display: flex; gap: 6px; margin-bottom: var(--space-4); list-style: none; padding: 0; }
.steps li { flex: 1; height: 6px; background: var(--border); border-radius: var(--radius-pill); }
.steps li.done, .steps li[aria-current="step"] { background: var(--primary); }

/* Hero */
.hero { display: grid; gap: var(--space-5); align-items: center; padding-block: var(--space-4) var(--space-5); }
.hero h1 { font-size: var(--fs-3xl); letter-spacing: -.01em; }
.hero .lead { font-size: var(--fs-lg); color: var(--muted); }
.hero-media { aspect-ratio: 16 / 9; width: 100%; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; padding-block: var(--space-6); } }
.search-card { padding: var(--space-4); }
.search-card .btn-primary { min-height: 52px; font-size: var(--fs-lg); }

/* Sitter cards */
.sitter-card { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-3); align-items: start; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden; }
.avatar-lg { width: 112px; height: 112px; }
.avatar-sm { width: 40px; height: 40px; }
.sitter-card .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: var(--fs-sm); }
.sitter-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.sitter-card .price { font-weight: 700; font-size: var(--fs-lg); }
.sitter-card .actions { grid-column: 1 / -1; display: flex; gap: var(--space-2); flex-wrap: wrap; }
@media (min-width: 600px) { .sitter-card { grid-template-columns: 88px 1fr auto; } .sitter-card .avatar { width: 88px; height: 88px; } .sitter-card .actions { grid-column: auto; flex-direction: column; align-items: stretch; min-width: 150px; } }
.stars { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.stars .icon { color: #B07A12; fill: #E9B85B; }

/* Price table */
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.price-table td:last-child { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table tr.total td { font-weight: 800; font-size: var(--fs-lg); border-bottom: 0; padding-top: 10px; }

/* Lists & tables */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
.list-link { display: flex; gap: var(--space-3); align-items: center; text-decoration: none; color: inherit; min-height: 56px; }
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.data th, table.data td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--surface-2); font-weight: 700; position: sticky; top: 0; }
@media (max-width: 767px) {
  table.data.responsive thead { display: none; }
  table.data.responsive, table.data.responsive tbody, table.data.responsive tr, table.data.responsive td { display: block; width: 100%; }
  table.data.responsive tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--space-3); padding: var(--space-2) var(--space-3); background: var(--surface); }
  table.data.responsive td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: var(--space-3); }
  table.data.responsive td::before { content: attr(data-label); font-weight: 600; color: var(--muted); }
}
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: var(--space-4); }
.tabs a, .tabs button { padding: 10px 16px; border-radius: var(--radius-md) var(--radius-md) 0 0; min-height: 44px; text-decoration: none; color: var(--muted); font: inherit; font-weight: 600; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 var(--space-4) var(--space-3); }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -6px; top: 8px; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; }

/* Chat */
.chat { display: flex; flex-direction: column; height: calc(100dvh - 230px); min-height: 360px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: var(--space-3); background: var(--surface-2); border-radius: var(--radius); }
.msg { max-width: 82%; padding: 8px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-start; background: var(--info-bg); border-color: transparent; }
.msg.theirs { align-self: flex-end; }
.msg .meta { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.msg.blocked { background: var(--danger-bg); border: 1px dashed var(--danger); }
.chat-form { display: flex; gap: var(--space-2); padding-top: var(--space-3); align-items: flex-end; }
.chat-form textarea { min-height: 46px; max-height: 140px; }

/* Care report */
.child-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
@media (min-width: 600px) { .child-status { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.status-tile { background: var(--surface-2); border-radius: var(--radius); padding: var(--space-2) var(--space-3); }
.status-tile .k { font-size: .78rem; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.status-tile .v { font-weight: 700; }
.status-tile.not-updated .v { color: var(--muted); font-weight: 500; font-style: italic; }
.incident { border: 2px solid var(--danger); background: var(--danger-bg); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }

/* Empty / error / loading */
.empty { text-align: center; padding: var(--space-6) var(--space-4); color: var(--muted); }
.empty img, .empty svg.illus { width: min(260px, 70%); margin: 0 auto var(--space-4); aspect-ratio: 4 / 3; }
.empty h2 { color: var(--text); }
.boot { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-7) var(--space-4); color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; border-radius: var(--radius); min-height: 18px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.net-status { position: sticky; top: 60px; z-index: 29; background: var(--warn-bg); color: var(--warn); text-align: center; padding: 6px; font-weight: 600; font-size: var(--fs-sm); }

/* Toasts */
.toasts { position: fixed; inset-inline: var(--space-3); bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: 480px; width: 100%; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; }
.toast.error { background: var(--danger); color: #fff; }
@media (min-width: 900px) { .toasts { bottom: var(--space-5); inset-inline-start: auto; inset-inline-end: var(--space-5); align-items: flex-end; } }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 18, .55); z-index: 80; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.modal { background: var(--surface); width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; border-radius: var(--radius) var(--radius) 0 0; padding: var(--space-5) var(--space-4) calc(var(--space-5) + var(--safe-b)); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); }
.modal-head h2 { margin: 0; }
@media (min-width: 600px) { .modal-backdrop { align-items: center; padding: var(--space-4); } .modal { border-radius: var(--radius); } }

/* Emergency strip */
.emergency { border: 2px solid var(--danger); border-radius: var(--radius); padding: var(--space-3); background: var(--surface); }
.emergency .row a { font-weight: 700; }

/* Admin */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); text-decoration: none; color: inherit; display: block; }
.kpi .v { font-size: var(--fs-2xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi .k { color: var(--muted); font-size: var(--fs-sm); }
.admin-layout { display: grid; gap: var(--space-4); }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.admin-nav a { white-space: nowrap; padding: 9px 14px; border-radius: var(--radius-md); display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); background: var(--surface-2); font-size: var(--fs-sm); font-weight: 600; }
.admin-nav a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
@media (min-width: 1024px) {
  .admin-layout { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .admin-nav { flex-direction: column; position: sticky; top: 80px; overflow: visible; }
  .admin-nav a { background: transparent; }
}
.pager { display: flex; gap: var(--space-2); align-items: center; justify-content: center; margin-top: var(--space-4); }
.filters { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--space-3); }
.filters .field { min-width: 140px; flex: 1; }

/* Feature list on home */
.how { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.how li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); align-items: start; }
.how li::before { content: counter(step); width: 36px; height: 36px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 800; border-radius: 50%; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(4, 1fr); } .how li { grid-template-columns: 1fr; } }
.figure-16x9 { aspect-ratio: 16 / 9; max-width: 760px; margin-inline: auto; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.figure-16x9 img { width: 100%; height: 100%; object-fit: cover; }
.faq details { border-bottom: 1px solid var(--border); padding: var(--space-3) 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print { .topbar, .bottom-nav, .site-footer, .toasts { display: none; } }

/* Utilities added for views */
.m0 { margin: 0; }
.meeting-code { font-size: 2.4rem; letter-spacing: .18em; font-variant-numeric: tabular-nums; display: inline-block; padding: 8px 16px; background: var(--surface-2); border: 2px dashed var(--primary); border-radius: var(--radius); }
.skeleton[data-w="0"] { width: 60%; height: 22px; }
.skeleton[data-w="1"] { width: 90%; }
.skeleton[data-w="2"] { width: 75%; }
.skeleton[data-w="3"] { width: 85%; }
.card.row { min-height: 56px; text-decoration: none; color: inherit; font-weight: 600; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--primary); }
.list-link > .stack-sm { flex: 1; min-width: 0; }
.filters .check { align-self: center; }
details > summary { cursor: pointer; min-height: 32px; }

/* ---------- Dashboard & charts ---------- */
.dash-head { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; justify-content: space-between; }
.dash-head h1 { margin: 0; }
.dash-head p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: var(--fs-sm); padding: 6px 14px; min-height: 34px; border-radius: var(--radius-pill); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.stats { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; box-shadow: var(--shadow); min-width: 0; }
a.stat:hover { border-color: var(--primary); }
.stat-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.stat-ic { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; place-items: center; color: var(--primary); flex: none; }
.stat-ic .icon { width: 17px; height: 17px; }
.stat-value { font-size: clamp(1.35rem, 3.2vw, 1.9rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; }
.stat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); }
.delta .icon { width: 14px; height: 14px; }
.delta.good { color: var(--ok); background: var(--ok-bg); }
.delta.bad { color: var(--danger); background: var(--danger-bg); }
.delta.flat { color: var(--muted); }
.spark { flex: 0 1 120px; width: 120px; min-width: 0; height: 32px; overflow: hidden; }
.stat-foot { overflow: hidden; }
.spark .line { stroke-width: 1.75; }
.panel-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .panel-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .panel-grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow); min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); margin-bottom: var(--space-2); }
.chart-title { font-size: 1rem; margin: 0; }
.chart-sub { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 var(--space-2); padding: 0; font-size: .82rem; color: var(--muted); }
.chart-legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.swatch.s1, .bar.s1, .col.s1 { background: var(--series-1); fill: var(--series-1); }
.swatch.s2, .bar.s2, .col.s2 { background: var(--series-2); fill: var(--series-2); }
.swatch.s3, .bar.s3, .col.s3 { background: var(--series-3); fill: var(--series-3); }
.chart-body { position: relative; }
.chart-plot { width: 100%; min-height: 40px; }
.chart-svg { display: block; overflow: visible; font-family: inherit; }
.chart-svg .grid { stroke: var(--grid); stroke-width: 1; }
.chart-svg .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-svg .line, .spark .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line.s1 { stroke: var(--series-1); } .line.s2 { stroke: var(--series-2); } .line.s3 { stroke: var(--series-3); }
.area.s1 { fill: var(--series-1); opacity: .1; } .area.s2 { fill: var(--series-2); opacity: .1; } .area.s3 { fill: var(--series-3); opacity: .1; }
.dot { stroke: var(--surface); stroke-width: 2; }
.dot.s1 { fill: var(--series-1); } .dot.s2 { fill: var(--series-2); } .dot.s3 { fill: var(--series-3); }
.crosshair { stroke: var(--muted); stroke-width: 1; }
.chart-svg .hit:focus { outline: none; }
.chart-svg .hit:focus-visible { stroke: var(--focus); stroke-width: 2; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--text); color: var(--bg); border-radius: var(--radius-sm); padding: 6px 10px; font-size: .8rem; box-shadow: var(--shadow); white-space: nowrap; }
.chart-tip .tip-title { font-weight: 700; margin-bottom: 2px; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.chart-table { margin-top: var(--space-2); }
.chart-empty { padding: var(--space-4) 0; text-align: center; }
.barlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.barlist li { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; align-items: center; gap: 10px; min-height: 30px; border-radius: var(--radius-sm); padding: 0 4px; }
.barlist li:hover, .barlist li:focus-visible { background: var(--surface-2); }
.bl-label { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-track { height: 12px; background: transparent; display: block; }
.bar { display: block; height: 12px; border-radius: 0 6px 6px 0; }
[dir="rtl"] .bar { border-radius: 6px 0 0 6px; margin-inline-start: 0; }
.bl-value { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.bl-note { color: var(--muted); font-weight: 400; }
.ops-list { list-style: none; margin: 0; padding: 0; }
.ops-list li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; border-radius: var(--radius-sm); }
.ops-list li:last-child a { border-bottom: 0; }
.ops-list li a:hover { background: var(--surface-2); }
.ops-list .count { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: center; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-2); }
.ops-list .count.hot { background: var(--danger-bg); color: var(--danger); }
.ops-list .lbl { display: flex; align-items: center; gap: 10px; }
.mini-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.mini-kpis div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.mini-kpis .k { font-size: .78rem; color: var(--muted); }
.mini-kpis .v { font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.table-wrap { border-radius: var(--radius-md); }
table.data th:first-child { border-start-start-radius: var(--radius-sm); }
table.data th:last-child { border-start-end-radius: var(--radius-sm); }

/* ---------- Greeting ---------- */
.greeting { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.greeting::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.greeting-morning::before { background: linear-gradient(90deg, transparent 40%, #FFE9C755); }
.greeting-noon::before { background: linear-gradient(90deg, transparent 40%, #CFEAF755); }
.greeting-evening::before { background: linear-gradient(90deg, transparent 40%, #F7B58F44); }
.greeting-night::before { background: linear-gradient(90deg, transparent 40%, #2E447044); }
.greet-text { position: relative; min-width: 0; }
.greet-date { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.greet-title { margin: 2px 0 4px; font-size: clamp(1.4rem, 4.2vw, 2rem); letter-spacing: -.01em; }
.greet-sub { margin: 0; padding: 0; list-style: none; color: var(--muted); display: grid; gap: 2px; }
.greet-art { width: clamp(120px, 24vw, 220px); height: auto; flex: none; position: relative; border-radius: 18px; }
.greet-rays { transform-origin: center; animation: greet-pulse 5s ease-in-out infinite; }
.greet-stars { animation: greet-twinkle 4s ease-in-out infinite; }
@keyframes greet-pulse { 50% { opacity: .55; } }
@keyframes greet-twinkle { 50% { opacity: .5; } }
@media (max-width: 420px) { .greeting { padding: var(--space-3) var(--space-4); } .greet-art { width: 96px; } }

/* ---------- Customisable dashboard ---------- */
.dash-toolbar { margin: var(--space-4) 0 var(--space-3); display: grid; gap: var(--space-3); }
.dash-edit-hint { margin: 0; align-items: center; font-size: var(--fs-sm); }
.dash-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.widget { position: relative; min-width: 0; display: flex; flex-direction: column; }
.widget > .w-body { flex: 1; min-height: 0; }
.widget.w-chart > .w-body, .widget.w-list > .w-body { height: var(--px); overflow: auto; scrollbar-width: thin; }
.widget.w-kpi > .w-body > .stat { height: 100%; }
@media (min-width: 768px) {
  .dash-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 140px; grid-auto-flow: dense; }
  .widget { grid-column: span var(--tw); grid-row: span var(--h); }
  .widget.w-chart > .w-body, .widget.w-list > .w-body { height: auto; }
}
@media (min-width: 1100px) {
  .dash-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .widget { grid-column: span var(--w); }
}
.dash-grid.editing .widget { outline: 2px dashed color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 3px; border-radius: var(--radius); }
.dash-grid.editing .widget > .w-body { opacity: .92; pointer-events: none; }
.dash-grid.editing .widget.w-list:has(.note-input) > .w-body { pointer-events: auto; }
.w-bar { position: absolute; z-index: 3; inset-block-start: 6px; inset-inline: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; overflow: hidden; max-height: calc(100% - 12px); padding: 2px 4px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.w-name { font-size: .78rem; font-weight: 700; flex: 1 1 50px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }
.w-btns .icon-btn { min-width: 28px; min-height: 28px; }
.w-btns .icon { width: 15px; height: 15px; }
.widget { isolation: isolate; }
.w-remove { color: var(--danger); }
.w-grip { min-width: 30px; min-height: 30px; border: 0; background: var(--surface-2); color: var(--muted); border-radius: var(--radius-sm); cursor: grab; display: grid; place-items: center; touch-action: none; }
.w-grip:active { cursor: grabbing; }
.w-size { position: absolute; z-index: 3; inset-block-end: 8px; inset-inline-start: 10px; font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-pill); padding: 1px 8px; font-variant-numeric: tabular-nums; }
.w-resize { position: absolute; z-index: 4; inset-block-end: -4px; inset-inline-end: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); box-shadow: var(--shadow); cursor: nwse-resize; touch-action: none; }
[dir="rtl"] .w-resize { cursor: nesw-resize; }
.widget.dragging { opacity: .6; transform: scale(.98); }
.widget.resizing { outline-style: solid !important; }
.widget-catalog { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); max-height: 65dvh; overflow: auto; }
.catalog-item { display: flex; gap: 10px; align-items: center; text-align: start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; font: inherit; color: var(--text); }
.catalog-item:hover:not(:disabled) { border-color: var(--primary); background: var(--surface-2); }
.catalog-item:disabled { opacity: .5; cursor: not-allowed; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--radius-md); background: var(--surface-2); text-decoration: none; color: var(--text); font-size: .82rem; font-weight: 600; }
.shortcuts a:hover { color: var(--primary); }
.note-text { white-space: pre-wrap; margin: 0; font-size: 1.02rem; }
.note-input { min-height: 80px; height: calc(100% - 44px); resize: none; }
.dash-empty { grid-column: 1 / -1; }
.dash-loading { grid-column: 1 / -1; }
.ops-list .lbl { min-width: 0; }
.ops-list .lbl > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Loading screen (first load + page transitions) ---------- */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); transition: opacity .3s ease; }
.splash[hidden] { display: none; }
.splash.is-hiding { opacity: 0; }
.splash-card { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 32px; }
.splash-logo { width: auto; height: clamp(96px, 18vw, 140px); animation: splash-in .6s ease both; }
.splash-mark { display: none; height: 46px; width: auto; }
.splash-meter { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.splash-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.splash-ring circle { fill: none; stroke-width: 3.5; }
.splash-ring .track { stroke: var(--border); }
.splash-ring .bar { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.splash-meter::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: color-mix(in srgb, var(--primary) 55%, transparent); animation: spin 1s linear infinite; }
.splash-pct { position: relative; font-size: .85rem; font-weight: 700; color: var(--text); }
@keyframes splash-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
/* page transitions: lighter overlay over the content, small logo */
.splash.mode-nav { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(3px); }
.splash.mode-nav .splash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 28px; gap: 14px; flex-direction: row; }
.splash.mode-nav .splash-logo { display: none; }
.splash.mode-nav .splash-mark { display: block; }
.splash.mode-nav .splash-meter { width: 52px; height: 52px; }
html.is-booting body { overflow: hidden; }

/* ---------- Mobile side drawer (replaces horizontal bars) ---------- */
.bottom-nav { display: none !important; }
main { padding-bottom: calc(var(--space-6) + var(--safe-b)); }
.site-footer { padding-bottom: calc(var(--space-5) + var(--safe-b)); }
.sticky-cta { bottom: calc(var(--space-3) + var(--safe-b)); }
.toasts { bottom: calc(var(--space-4) + var(--safe-b)); }
.menu-btn { display: inline-flex; margin-inline-end: 2px; }
.topnav { display: none !important; }
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .topnav { display: flex !important; }
}
@media (max-width: 1023px) {
  .admin-nav, .sitter-tabs { display: none !important; }
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
}
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(10, 14, 18, .45); opacity: 0; transition: opacity .25s ease; }
.drawer-backdrop.open { opacity: 1; }
.drawer { position: fixed; z-index: 91; inset-block: 0; inset-inline-start: 0; width: min(86vw, 340px); background: var(--surface); border-inline-end: 1px solid var(--border); box-shadow: 0 0 40px rgba(0,0,0,.18); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--safe-b); overscroll-behavior: contain; }
[dir="ltr"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.drawer-brand .brand-mark img { height: 34px; }
.drawer-brand .brand-word img { height: 20px; }
.drawer-user { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-2); }
.drawer-nav { flex: 1; overflow-y: auto; padding: 8px 10px; }
.drawer-group + .drawer-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.drawer-title { font-size: .74rem; font-weight: 700; color: var(--muted); padding: 6px 10px; letter-spacing: .02em; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: var(--radius-md); text-decoration: none; color: var(--text); font-weight: 500; }
.drawer-nav a:hover { background: var(--surface-2); }
.drawer-nav a[aria-current="page"] { background: var(--info-bg); color: var(--primary); font-weight: 700; }
.drawer-nav a .count { margin-inline-start: auto; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); }
.drawer-foot { padding: 12px 14px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.drawer-foot .seg { width: 100%; }
.drawer-foot .seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.drawer-foot .seg .icon { width: 16px; height: 16px; }
html.drawer-open body { overflow: hidden; }

/* ---------- Search wizard ---------- */
.wizard { display: grid; gap: var(--space-4); }
.wiz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wiz-steps li button { width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; text-align: start; padding: 8px 10px; min-height: 52px; background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-md); font: inherit; color: var(--muted); cursor: pointer; }
.wiz-steps li button:disabled { cursor: default; opacity: .7; }
.wiz-steps li.current button { background: var(--info-bg); border-color: var(--primary); color: var(--text); }
.wiz-steps li.done button { color: var(--text); }
.wiz-dot { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.wiz-steps li.current .wiz-dot { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.wiz-steps li.done .wiz-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wiz-dot .icon { width: 16px; height: 16px; }
.wiz-label { font-weight: 700; font-size: .9rem; }
.wiz-value { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .wiz-value { display: none; } .wiz-steps li button { grid-template-columns: 1fr; justify-items: center; text-align: center; } .wiz-dot { grid-row: auto; } }
.wiz-title { font-size: 1.15rem; margin: 0 0 var(--space-3); }
.wiz-body { display: grid; gap: var(--space-3); animation: wiz-in .22s ease both; }
@keyframes wiz-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.wiz-nav { display: flex; justify-content: space-between; gap: var(--space-3); }
.wiz-nav .btn-primary { min-width: 46%; min-height: 50px; font-size: 1.02rem; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { min-height: 38px; padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.qchip:hover { border-color: var(--primary); }
.qchip.on { background: var(--info-bg); border-color: var(--primary); color: var(--primary); font-weight: 700; }
.kid-row { flex-wrap: nowrap; }
.kid-n { min-width: 64px; font-weight: 600; font-size: .9rem; }
.kid-row select { max-width: 220px; }
