/* 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: #0A6DA8;
  --sky-soft: #E3EFF7;
  --ink: #101418;

  --bg: #F0F2F5;
  --surface: #F8F9FB;
  --surface-2: #E8ECF0;
  --border: #D8DEE4;
  --text: var(--ink);
  --muted: #56616C;
  --primary: var(--sky);
  --primary-hover: #085A8C;
  --on-primary: #FFFFFF;
  --accent: var(--ink);
  --on-accent: #FFFFFF;
  --focus: #0A6DA8;
  --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: #E1E6EB;
  --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; }
.role-switch { position: relative; }
.role-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: .875rem; cursor: pointer; }
.role-chip .icon { width: 14px; height: 14px; }
.role-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 250px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0,0,0,.18); display: grid; gap: 4px; }
.role-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.role-opt:hover, .role-opt.on { background: color-mix(in srgb, var(--text) 7%, transparent); }
.role-opt-text { display: grid; gap: 2px; }
.role-opt-text small { color: var(--muted); font-size: .78rem; }
@media (max-width: 480px) { .role-menu { position: fixed; top: 64px; inset-inline: 12px; min-width: 0; } }
@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='%2356616C' 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 */
/* Messages ("נשמר", errors): top center under the header, so they never cover a save bar or the bottom of the page. */
.toasts { position: fixed; inset-inline: var(--space-3); top: calc(env(safe-area-inset-top, 0px) + 72px); z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: 440px; width: max-content; min-width: min(280px, 100%); background: var(--surface); color: var(--text); padding: 10px 16px 10px 12px; border-radius: 999px; border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(16, 20, 24, .18); display: flex; gap: 10px; align-items: center; justify-content: center; font-weight: 600; animation: toast-in .28s cubic-bezier(.2,.9,.25,1.15) both; }
.toast > .icon { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--ok, #16a34a); color: #fff; }
.toast.error > .icon { background: var(--danger); }
.toast.error { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.toast.leaving { animation: toast-out .22s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.leaving { animation: none; } }

/* 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); }
[data-case-menu-count] { display: inline-grid; place-items: center; flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 7px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent); font-size: 11px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-nav [data-case-menu-count], .drawer-nav [data-case-menu-count] { margin-inline-start: auto; }
.admin-nav a[aria-current="page"] [data-case-menu-count] { background: color-mix(in srgb, var(--surface) 86%, transparent); color: var(--text); border-color: color-mix(in srgb, var(--on-primary) 18%, transparent); box-shadow: 0 1px 2px rgb(0 0 0 / 8%); }
@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; }

/* Case management */
.case-hub, .case-workspace { min-width: 0; }
.case-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.case-badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 8px; border: 1px solid color-mix(in srgb, var(--case-color) 25%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--case-color) 8%, var(--surface)); color: color-mix(in srgb, var(--case-color) 75%, var(--text)); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.case-badge .icon { width: 11px; height: 11px; }
.case-hub, .case-conversation { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 2px 10px rgb(0 0 0 / 3%); overflow: hidden; }
.case-inbox-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.case-inbox-header h1 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; }
.case-inbox-header h1 > .icon { color: var(--primary); width: 19px; height: 19px; }
.case-inbox-header p { color: var(--muted); font-size: .75rem; margin: 5px 0 0; }
.case-inbox-count { background: var(--surface-2); color: var(--muted); border-radius: 5px; padding: 1px 6px; font-size: .7rem; font-weight: 500; }
.case-status-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 16px 10px; border-bottom: 1px solid var(--border); }
.case-nav-item { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; white-space: nowrap; padding: 5px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-weight: 500; font-size: .75rem; cursor: pointer; }
.case-nav-item .icon { width: 12px; height: 12px; }
.case-nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; padding: 1px 4px; border-radius: 4px; background: color-mix(in srgb, currentColor 9%, transparent); font-size: .65rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.case-nav-item:hover { background: var(--surface-2); color: var(--text); }
.case-nav-item.is-active { background: var(--info-bg); color: var(--primary); font-weight: 700; }
.case-list-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.case-list-search { display: flex; flex: 1 1 260px; align-items: center; gap: 9px; min-width: 0; max-width: 440px; margin: 0; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.case-list-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px var(--info-bg); }
.case-list-search .icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--muted); }
.case-list-filters input { min-width: 0; width: 100%; height: 36px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: .75rem; outline: none; box-shadow: none; }
.case-list-filters > .case-delete-tool { margin-inline-start: auto; min-height: 32px; padding-inline: 10px; }
.case-hub { container-type: inline-size; }
.case-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 20px; text-align: center; }
.case-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 2px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.case-empty-icon > .icon { width: 20px; height: 20px; }
.case-empty h2 { margin: 0; font-size: .9rem; font-weight: 600; color: var(--text); }
.case-empty p { max-width: 340px; margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.7; }
.case-empty > .case-tool { margin-top: 6px; }
.case-table-scroll { min-width: 0; }
.case-inbox-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: start; }
.case-inbox-table th, .case-inbox-table td { padding: 8px 5px; border-bottom: 1px solid var(--border); vertical-align: middle; text-align: start; overflow-wrap: anywhere; }
.case-inbox-table th { background: var(--surface-2); color: var(--muted); font-size: .66rem; font-weight: 600; }
.case-inbox-table th:nth-child(1) { width: 30px; }
.case-inbox-table th:nth-child(2) { width: 20%; }
.case-inbox-table th:nth-child(3) { width: 35%; }
.case-inbox-table th:nth-child(4) { width: 18%; }
.case-inbox-table th:nth-child(5) { width: 14%; }
.case-inbox-table th:nth-child(6) { width: 13%; }
.case-inbox-table th button { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: start; }
.case-inbox-table th button .icon { flex-shrink: 0; width: 11px; height: 11px; opacity: .4; }
.case-inbox-table th[aria-sort="ascending"], .case-inbox-table th[aria-sort="descending"] { color: var(--primary); }
.case-inbox-table th[aria-sort="ascending"] .icon, .case-inbox-table th[aria-sort="descending"] .icon { opacity: 1; }
.case-inbox-table tbody tr:hover { background: color-mix(in srgb, var(--info-bg) 25%, var(--surface)); }
.case-inbox-table[aria-busy="true"] tbody { opacity: .45; pointer-events: none; }
.case-customer { font-size: .75rem; overflow-wrap: anywhere; }
.case-treatment-cell .case-quick-controls { display: grid; grid-template-columns: minmax(0, 18fr) minmax(0, 14fr); gap: 10px; justify-items: start; }
.case-treatment-cell .case-quick-select { field-sizing: content; width: auto; min-width: 0; max-width: 100%; padding-inline: 5px; font-size: .65rem; }
.case-treatment-cell .case-badge { min-width: 0; padding-inline: 2px; font-size: .65rem; white-space: normal; }
.case-inbox-table .case-inbox-subject { gap: 6px; }
.case-inbox-table .case-inbox-subject strong { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-inbox-table .case-row-avatar { width: 24px; height: 24px; flex-basis: 24px; }
.case-inbox-table .case-row-time { font-size: .63rem; }
.case-inbox-table .case-row-meta { font-size: .63rem; }
.case-inbox-table .case-row-actions { gap: 2px; flex-wrap: wrap; }
.case-inbox-table .case-selection-cell { text-align: center; }
.case-inbox-table th > button, .case-inbox-table th > input { vertical-align: middle; }
.case-inbox-table input[type="checkbox"] { width: 14px; height: 14px; margin: 0 3px; accent-color: var(--primary); flex-shrink: 0; }
.case-inbox-table input[type="checkbox"]:disabled { opacity: .35; cursor: not-allowed; }
@container (max-width: 700px) {
  .case-inbox-table, .case-inbox-table thead, .case-inbox-table tbody { display: block; }
  .case-inbox-table thead tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 5px 8px; background: var(--surface-2); }
  .case-inbox-table th:nth-child(n) { width: auto; padding: 3px; border: 0; }
  .case-inbox-table th.case-selection-cell { grid-column: 1 / -1; text-align: start; }
  .case-inbox-table th:last-child { display: none; }
  .case-inbox-table th button { min-height: 24px; }
  .case-inbox-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; padding: 10px; border-bottom: 1px solid var(--border); }
  .case-inbox-table td { min-width: 0; padding: 0; border: 0; }
  .case-inbox-table td.case-selection-cell { grid-column: 1 / -1; text-align: start; }
  .case-inbox-table td:nth-child(2), .case-inbox-table td:nth-child(3), .case-inbox-table .case-treatment-cell { grid-column: 1 / -1; }
  .case-treatment-cell .case-quick-controls { display: flex; flex-wrap: wrap; gap: 6px; }
  .case-treatment-cell .case-quick-select { width: auto; padding-inline: 5px; }
  .case-inbox-table td:last-child { grid-column: 2; align-self: end; }
  .case-inbox-table td:last-child .case-row-actions { justify-content: flex-end; }
}
.case-row-actions { display: flex; align-items: center; gap: 4px; }
.case-row-actions .case-row-tool { width: 24px; height: 28px; padding: 0; flex: 0 0 24px; }
.case-row-actions .case-row-tool > .icon { width: 14px; height: 14px; }
.case-inbox-subject { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--text); }
.case-inbox-subject > div { min-width: 0; }
.case-inbox-subject strong { display: block; font-size: .82rem; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.case-row-avatar { position: relative; display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--case-color) 10%, var(--surface)); color: color-mix(in srgb, var(--case-color) 75%, var(--text)); }
.case-row-avatar > .icon { width: 16px; height: 16px; }
.case-inbox-table .case-row-avatar { color: var(--muted); background: var(--surface-2); }
.case-inbox-table .case-row-avatar.is-unread { color: #0284C7; background: color-mix(in srgb, #0284C7 10%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #0284C7 30%, transparent); }
.case-row-meta { display: block; font-size: .68rem; color: var(--muted); margin-top: 3px; }
.case-row-time { font-size: .67rem; line-height: 1.5; color: var(--muted); }
.case-row-open { display: grid; place-items: center; width: 24px; height: 28px; border-radius: 5px; color: var(--muted); }
.case-row-open:hover { background: var(--info-bg); color: var(--primary); }
.case-row-open .icon { width: 14px; height: 14px; }
.case-quick-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.case-quick-select { width: auto; max-width: 135px; min-height: 27px; border: 1px solid color-mix(in srgb, var(--case-color) 22%, var(--border)); border-radius: 6px; padding: 3px 6px; font: inherit; font-size: .71rem; font-weight: 600; color: color-mix(in srgb, var(--case-color) 75%, var(--text)); background: color-mix(in srgb, var(--case-color) 7%, var(--surface)); cursor: pointer; }
.case-quick-select option { color: var(--text); background: var(--surface); }
.case-quick-select:disabled { opacity: .55; cursor: wait; }
.case-hub .pager { padding: 10px; margin-top: 0; border-top: 1px solid var(--border); }
.case-hub .pager .btn { min-height: 28px; padding: 4px 8px; font-size: .72rem; }
.case-back { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; text-decoration: none; }
.case-breadcrumb { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--muted); font-size: .72rem; }
.case-conversation { min-width: 0; border-color: color-mix(in srgb, var(--case-priority-color) 35%, var(--border)); border-inline-start: 3px solid var(--case-priority-color); }
.case-conversation .case-chat-header { background: color-mix(in srgb, var(--case-priority-color) 6%, var(--surface)); }
.case-conversation .case-record-header { background: color-mix(in srgb, var(--case-priority-color) 6%, var(--surface)); }
.case-chat-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.case-chat-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: var(--info-bg); color: var(--primary); }
.case-chat-avatar .icon { width: 16px; height: 16px; }
.case-chat-heading { flex: 1; min-width: 0; }
.case-chat-heading h1 { margin: 0; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.case-chat-context { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; color: var(--muted); font-size: .7rem; }
.case-context-ref { padding: 1px 5px; border-radius: 4px; background: var(--surface-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-context-booking { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); text-decoration: none; white-space: nowrap; }
.case-context-booking:hover { text-decoration: underline; }
.case-context-booking .icon { width: 11px; height: 11px; }
.case-chat-header .case-badges { justify-content: flex-end; }
.case-chat-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 12px 8px; }
.case-chat-toolbar > .case-tool { flex: 0 1 108px; min-width: 0; height: 27px; min-height: 27px; padding: 3px 6px; gap: 4px; font-size: .65rem; white-space: nowrap; }
.case-chat-toolbar > .case-tool > .icon { width: 11px; height: 11px; }
.case-chat-toolbar > .case-tool > .case-tool-chevron { margin-inline-start: auto; }
.case-tool { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 4px; min-height: 28px; padding: 4px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: .68rem; font-weight: 600; cursor: pointer; line-height: 1.4; }
.case-tool > .icon { flex-shrink: 0; width: 12px; height: 12px; color: var(--primary); }
.case-tool > .case-tool-chevron { width: 12px; height: 12px; color: var(--muted); transition: transform .15s; }
.case-tool:hover:not(:disabled), .case-tool[aria-expanded="true"] { border-color: var(--primary); background: var(--info-bg); color: var(--primary); }
.case-tool[aria-expanded="true"] .case-tool-chevron { transform: rotate(180deg); }
.case-tool:disabled { opacity: .45; cursor: not-allowed; }
.case-delete-tool { color: var(--danger); }
.case-delete-tool > .icon { color: inherit; }
.case-chat-panel { padding: 8px 12px; border-top: 1px solid var(--border); background: var(--bg); }
.case-chat-panel .field label { margin-bottom: 3px; font-size: .73rem; }
.case-chat-panel .input { min-height: 28px; padding: 4px 7px; font-size: .75rem; border-radius: 6px; }
.case-chat-panel .btn { min-height: 28px; padding: 4px 8px; font-size: .7rem; border-radius: 6px; }
.case-chat-panel .btn .icon { width: 12px; height: 12px; }
.case-record { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; }
.case-record-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.case-record-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--primary); background: var(--info-bg); }
.case-record-symbol .icon { width: 15px; height: 15px; }
.case-record-heading { flex: 1; min-width: 100px; }
.case-record-heading strong { display: block; font-size: .78rem; }
.case-record-heading > span { display: block; margin-top: 2px; color: var(--muted); font-size: .65rem; }
.case-record-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 2px 12px; gap: 0 16px; }
.case-record-field { min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--border); }
.case-record-field dt { font-size: .65rem; color: var(--muted); margin-bottom: 5px; }
.case-record-field dd { margin: 0; font-size: .73rem; font-weight: 600; overflow-wrap: anywhere; }
.case-record-person { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: var(--text); text-decoration: none; }
.case-record-person:hover { color: var(--primary); text-decoration: underline; }
.case-record-person .icon { flex-shrink: 0; width: 12px; height: 12px; color: var(--muted); }
.case-record-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; font-size: .65rem; color: var(--muted); background: var(--surface-2); }
@media (max-width: 900px) { .case-record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case-held-amount { color: var(--warning, #D97706); }
.case-resolution-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.case-resolution-form > .case-close-row, .case-resolution-form > .form-error { grid-column: 1 / -1; }
.case-close-row { display: flex; align-items: flex-end; gap: 8px; }
.case-close-row > .field { flex: 1; min-width: 0; }
.case-close-row > .btn { flex-shrink: 0; height: 36px; }
.case-resolution-form textarea { min-height: 36px; height: 36px; max-height: 100px; resize: vertical; }
.case-chat-info { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 6px 16px; border-block: 1px solid var(--border); color: var(--muted); font-size: .68rem; background: var(--surface); }
.case-refresh-error { margin: 0; padding: 10px 18px; background: var(--danger-bg); color: var(--danger); }
.case-chat-log { display: flex; flex-direction: column; gap: 10px; height: clamp(220px, 34dvh, 340px); overflow-y: auto; overscroll-behavior: contain; padding: 16px; background: color-mix(in srgb, var(--bg) 75%, var(--surface)); }
.case-message { flex: 0 0 auto; align-self: flex-start; max-width: min(78%, 480px); padding: 8px 11px; border: 1px solid var(--border); border-radius: 10px 3px 10px 10px; background: var(--surface); }
.case-message.is-team { align-self: flex-end; border-radius: 3px 10px 10px 10px; background: var(--info-bg); border-color: color-mix(in srgb, var(--primary) 18%, var(--border)); }
.case-message.is-system { align-self: center; text-align: center; background: transparent; border: 0; box-shadow: none; }
.case-message.is-internal { align-self: center; max-width: min(90%, 480px); border: 1px dashed color-mix(in srgb, var(--warn) 45%, var(--border)); border-radius: 8px; background: var(--warn-bg); }
.case-message-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .65rem; color: var(--muted); }
.case-message-meta .icon { width: 12px; height: 12px; }
.case-message p { margin: 4px 0; white-space: pre-wrap; font-size: .8rem; line-height: 1.6; }
.case-message time { display: block; font-size: .62rem; color: var(--muted); text-align: end; }
.case-composer { padding: 10px 14px; border-top: 1px solid var(--border); }
.case-composer .field label { font-size: .7rem; margin-bottom: 4px; }
.case-composer textarea { resize: vertical; height: 48px; min-height: 48px; max-height: 120px; padding: 7px 9px; background: var(--bg); font-size: .8rem; border-radius: 8px; }
.case-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.case-composer-actions .btn { min-height: 28px; padding: 4px 9px; font-size: .72rem; border-radius: 6px; }
.case-composer-actions .btn .icon { width: 13px; height: 13px; }
.case-composer-actions .check { margin: 0; font-size: .7rem; }
.case-composer.is-internal { background: var(--warn-bg); }
.case-locked { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 12px; color: var(--muted); font-size: .75rem; border-top: 1px solid var(--border); }
@media (max-width: 600px) {
  .case-inbox-header { padding: 12px; }
  .case-status-nav { padding-inline: 12px; }
  .case-list-filters { padding-inline: 12px; }
  .case-chat-header { padding: 12px; gap: 8px; flex-wrap: wrap; }
  .case-chat-header .case-badges { justify-content: flex-start; width: 100%; }
  .case-chat-header .case-quick-controls { width: 100%; }
  .case-chat-toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); padding: 0 10px 8px; }
  .case-chat-log { padding: 12px; }
  .case-composer { padding: 10px 12px; }
  .case-chat-panel { padding: 8px 12px 10px; }
  .case-chat-info { padding-inline: 16px; }
  .case-resolution-form { grid-template-columns: minmax(0, 1fr); }
  .case-composer-actions { flex-wrap: wrap; gap: 8px; }
  .case-message { max-width: 92%; }
}

/* 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)); }
.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: 480px) { .wiz-value { display: none; } .wiz-steps li button { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 4px; } .wiz-steps .wiz-text { align-items: center; } }
.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; }

/* ---------- Photos ---------- */
.photo { display: block; overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.photo-missing img { visibility: hidden; }

/* Home hero: photo with the search panel over the empty wall (RTL start side) */
.hero-photo { position: relative; display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.hero-photo .hero-bg { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.hero-photo .hero-bg img { object-position: 30% 50%; }
.hero-panel { display: grid; gap: var(--space-3); }
.hero-panel h1 { font-size: var(--fs-3xl); margin: 0; letter-spacing: -.01em; }
.hero-panel .lead { margin: 0; color: var(--muted); font-size: var(--fs-lg); }
@media (min-width: 900px) {
  .hero-photo { min-height: 620px; border-radius: calc(var(--radius) + 6px); overflow: hidden; padding: 40px; align-items: center; justify-items: start; box-shadow: var(--shadow); }
  .hero-photo .hero-bg { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
  .hero-photo .hero-bg img { object-position: 0% 60%; }
  .hero-panel { position: relative; width: min(500px, 48%); padding: 28px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); box-shadow: 0 10px 40px rgba(16, 20, 24, .12); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
  .hero-panel .search-card { background: transparent; border: 0; box-shadow: none; padding: 0; }
}
@media (min-width: 900px) and (prefers-color-scheme: dark) { :root[data-theme="system"] .hero-photo .hero-bg img { filter: brightness(.82); } }
:root[data-theme="dark"] .hero-photo .hero-bg img { filter: brightness(.82); }

/* Results header banner */
.results-head { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 230px; display: flex; align-items: center; box-shadow: var(--shadow); }
.results-head .results-photo { position: absolute; inset: 0; }
.results-head .results-photo img { object-position: 0% 40%; }
.results-title { position: relative; margin-inline-start: var(--space-4); padding: 14px 20px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(8px); }
.results-title h1 { margin: 0; font-size: var(--fs-xl); }
.results-title p { margin: 2px 0 0; color: var(--muted); display: flex; align-items: center; gap: 4px; }
@media (max-width: 600px) { .results-head { min-height: 0; flex-direction: column; align-items: stretch; background: var(--surface); } .results-head .results-photo { position: relative; aspect-ratio: 16 / 9; } .results-head .results-photo img { object-position: 20% 50%; } .results-title { margin: 0; border-radius: 0; background: var(--surface); backdrop-filter: none; } }

/* Feature row on home */
.feature-row { display: grid; gap: var(--space-5); align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: var(--space-6); }
.feature-photo { aspect-ratio: 4 / 3; }
.feature-text { padding: 0 var(--space-5) var(--space-5); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .icon { color: var(--primary); }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr; } .feature-photo { aspect-ratio: auto; height: 100%; min-height: 360px; } .feature-text { padding: var(--space-6) var(--space-6) var(--space-6) 0; } }
.article-photo { aspect-ratio: 16 / 9; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Wizard symmetry ---------- */
.wiz-steps li button { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px; }
.wiz-steps li button > .wiz-dot { flex: none; }
.wiz-steps .wiz-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.quick-group { display: grid; gap: 6px; }
.quick-label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.quick-grid { display: grid; gap: 8px; }
.quick-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-grid .qchip { width: 100%; text-align: center; padding-inline: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-row { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
@media (max-width: 560px) { .quick-row { grid-template-columns: 1fr; } }
.wiz-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.wiz-nav.single { grid-template-columns: 1fr; }
.wiz-nav .btn { width: 100%; min-height: 50px; }
.wiz-nav .btn-primary { min-width: 0; }
.wiz-body .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .wiz-body .form-grid.cols-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .wiz-body .form-grid.cols-3 > :first-child { grid-column: 1 / -1; } }
.kid-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.kid-row select { max-width: none; }
.wiz-body .input, .wiz-body .field { min-width: 0; }
.wiz-body input[type="time"].input, .wiz-body input[type="date"].input { padding-inline: 8px; }
@media (max-width: 400px) { .quick-group > .quick-grid.cols-3[aria-label="ערים נפוצות"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Search: compact city step ---------- */
.city-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; }
.loc-btn { width: 46px; min-height: 46px; display: grid; place-items: center; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--primary); cursor: pointer; transition: background .2s, border-color .2s, transform .12s; }
.loc-btn:hover { background: var(--info-bg); border-color: var(--primary); }
.loc-btn:active { transform: scale(.94); }
.loc-btn.busy .icon { animation: loc-pulse 1s ease-in-out infinite; }
@keyframes loc-pulse { 50% { opacity: .35; transform: scale(.85); } }
.wiz-status:empty { display: none; }
.wizard { gap: var(--space-3); }
.wiz-title { font-size: 1.05rem; margin-bottom: var(--space-2); }

/* ---------- Hero slideshow ---------- */
.slideshow { position: relative; overflow: hidden; }
.slideshow .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slideshow .slide.active { opacity: 1; }
.slideshow .slide .photo { width: 100%; height: 100%; }
.slideshow .slide.active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.slide-dots { position: absolute; z-index: 2; inset-block-end: 14px; inset-inline-end: 16px; display: flex; gap: 6px; padding: 6px 8px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(6px); }
.slide-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: color-mix(in srgb, var(--text) 30%, transparent); cursor: pointer; transition: width .3s, background .3s; }
.slide-dots button.on { width: 22px; border-radius: 5px; background: var(--primary); }
.slide-dots button:focus-visible { outline-offset: 3px; }
.hero-photo .hero-bg.slideshow { aspect-ratio: 16 / 10; border-radius: var(--radius); }
@media (max-width: 899px) { .hero-photo .hero-bg { order: 2; } .hero-photo .hero-panel { order: 1; } }
@media (min-width: 900px) { .hero-photo .hero-bg.slideshow { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; } .slide-dots { inset-inline-end: auto; inset-inline-start: auto; left: 20px; } }
.hero-panel { animation: panel-in .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Micro-interactions & scroll reveal ---------- */
.btn { transition: background .2s, border-color .2s, box-shadow .2s, transform .12s; }
.btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(16, 20, 24, .10); }
.btn:not(:disabled):active { transform: translateY(0) scale(.98); box-shadow: none; }
.card, .stat, .sitter-card, .feature-row { transition: box-shadow .25s, transform .25s, border-color .25s; }
a.card:hover, .sitter-card:hover, a.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16, 20, 24, .10); }
.qchip, .chip span, .wiz-steps li button { transition: background .2s, border-color .2s, color .2s, transform .12s; }
.qchip:active, .chip span:active { transform: scale(.97); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.how li { transition: transform .25s; }
.how li:hover::before { transform: scale(1.08); }
.how li::before { transition: transform .25s; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space-7); padding: var(--space-6) 0 calc(var(--space-4) + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--border); color: var(--text); font-size: var(--fs-sm); }
.f-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; }
.f-brand { grid-column: 1 / -1; display: grid; gap: 8px; max-width: 420px; }
.f-brand p { margin: 0; color: var(--muted); }
.f-brand .f-tag { color: var(--primary); font-weight: 600; }
.footer-logo img { height: 64px; }
.f-title { font-size: .9rem; margin: 0 0 10px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-col a { color: var(--muted); text-decoration: none; transition: color .2s; }
.f-col a:hover { color: var(--primary); }
.f-emergency { display: flex; align-items: center; gap: 12px; margin-top: var(--space-5); padding: 12px 16px; border-radius: var(--radius-md); background: var(--danger-bg); color: var(--text); }
.f-emergency p { margin: 0; }
.f-emergency a { color: var(--danger); font-weight: 700; text-decoration: none; }
.f-em-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--danger); }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--muted); }
.f-bottom p { margin: 0; }
@media (min-width: 768px) { .f-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .f-brand { grid-column: auto; } }

/* Auth pages: form + tall photo on desktop */
.auth-split { display: grid; gap: var(--space-5); align-items: stretch; max-width: 980px; margin-inline: auto; }
.auth-main { max-width: 480px; width: 100%; margin-inline: auto; }
.auth-photo { display: none; }
@media (min-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 1fr) 440px; }
  .auth-photo { display: block; border-radius: var(--radius); box-shadow: var(--shadow); min-height: 560px; }
}
.banner-21x9 { aspect-ratio: 21 / 9; }

/* ---------- Loader v2: exact geometry ---------- */
.splash-meter { position: relative; width: 72px; height: 72px; display: block; flex: none; }
.splash-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.splash-meter::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: color-mix(in srgb, var(--primary) 60%, transparent); animation: spin 1s linear infinite; }
.splash-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: .9rem; font-weight: 700; line-height: 1; }
.splash-mark { position: absolute; display: none; width: 30px; height: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); }
/* page transitions: logo in the ring centre, percentage centred below */
.splash.mode-nav .splash-card { flex-direction: column; align-items: center; gap: 0; padding: 22px 30px 18px; min-width: 132px; }
.splash.mode-nav .splash-meter { width: 64px; height: 64px; margin-bottom: 34px; }
.splash.mode-nav .splash-mark { display: block; }
.splash.mode-nav .splash-pct { inset: auto 0 -30px 0; height: 20px; font-size: .85rem; color: var(--muted); }

/* ---------- Greeting with photo ---------- */
.greeting.has-photo { padding: var(--space-3); padding-inline-start: var(--space-5); }
.greet-photo { position: relative; flex: none; width: clamp(130px, 30vw, 340px); aspect-ratio: 16 / 10; border-radius: calc(var(--radius) - 4px); overflow: hidden; }
.greet-photo .photo { width: 100%; height: 100%; }
.greet-photo img { object-position: 20% 45%; animation: greet-zoom 12s ease-out both; }
@keyframes greet-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.greet-badge { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; width: 64px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.18); border: 2px solid var(--surface); }
.greet-badge .greet-art { width: 100%; border-radius: 0; display: block; }
.greeting .greet-text { animation: panel-in .6s cubic-bezier(.2,.8,.2,1) both; }
@media (max-width: 520px) { .greet-photo { width: 120px; aspect-ratio: 1; } .greet-badge { width: 44px; } .greeting.has-photo { padding-inline-start: var(--space-4); } }

/* ---------- Dashboard & list motion ---------- */
.widget.enter { animation: widget-in .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes widget-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.chart-svg .line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: line-draw 1.1s ease-out .15s forwards; }
@keyframes line-draw { to { stroke-dashoffset: 0; } }
.chart-svg .area { animation: fade-in .9s ease .5s both; }
@keyframes fade-in { from { opacity: 0; } }
.chart-svg .col.grow { transform-box: fill-box; transform-origin: 50% 100%; animation: col-grow .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes col-grow { from { transform: scaleY(0); } }
.bar { transition: width .8s cubic-bezier(.2,.8,.2,1); }
.list > li, .ops-list > li { animation: row-in .45s ease both; }
.list > li:nth-child(2), .ops-list > li:nth-child(2) { animation-delay: .04s; }
.list > li:nth-child(3), .ops-list > li:nth-child(3) { animation-delay: .08s; }
.list > li:nth-child(4), .ops-list > li:nth-child(4) { animation-delay: .12s; }
.list > li:nth-child(5), .ops-list > li:nth-child(5) { animation-delay: .16s; }
.list > li:nth-child(n+6), .ops-list > li:nth-child(n+6) { animation-delay: .2s; }
@keyframes row-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.stat .stat-ic { transition: transform .3s; }
.stat:hover .stat-ic { transform: rotate(-8deg) scale(1.08); }
.switch input::after { transition: inset-inline-start .2s cubic-bezier(.2,.8,.2,1); }

/* Mobile/tablet top bar: menu + logo + notifications only (theme & logout live in the drawer) */
@media (max-width: 1023px) {
  .topbar .theme-btn, .topbar .logout-btn { display: none; }
  .topbar .container { gap: 6px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .topbar-actions { flex: none; }
}
@media (max-width: 360px) { .brand-word img { height: 17px; } .brand-mark img { height: 30px; } }
.icon-btn .dot { top: 3px; left: 1px; right: auto; inset-inline-end: auto; min-width: 17px; height: 17px; line-height: 17px; font-size: .62rem; font-weight: 700; box-shadow: 0 0 0 2px var(--bg); }
.icon-btn .dot { top: 2px; left: -3px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; }

.hero-date { margin: 0 0 -6px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Sitter earnings */
.sitter-earnings-page { --earnings-accent: var(--primary); }
.sitter-earnings-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.sitter-earnings-head h1 { margin: 2px 0 4px; }
.sitter-earnings-head p { margin: 0; }
.sitter-earnings-eyebrow { color: var(--primary); font-size: var(--fs-sm); font-weight: 800; }
.sitter-earnings-overview { display: grid; gap: var(--space-3); }
.sitter-earnings-balance { min-width: 0; min-height: 164px; border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 4vw, 30px); display: flex; flex-direction: column; justify-content: center; gap: 3px; color: var(--on-primary); background: linear-gradient(130deg, var(--primary), color-mix(in srgb, var(--primary) 68%, #101418)); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.sitter-earnings-balance::after { content: ""; position: absolute; width: 200px; height: 200px; border: 1px solid color-mix(in srgb, var(--on-primary) 18%, transparent); border-radius: 50%; inset-inline-end: -65px; top: -125px; box-shadow: 0 0 0 24px color-mix(in srgb, var(--on-primary) 6%, transparent), 0 0 0 50px color-mix(in srgb, var(--on-primary) 4%, transparent); pointer-events: none; }
.sitter-earnings-balance-label, .sitter-earnings-balance-note { font-size: var(--fs-sm); opacity: .9; }
.sitter-earnings-balance-value { font-size: clamp(2.1rem, 7vw, 3rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.sitter-earnings-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.sitter-earnings-stats .kpi { min-width: 0; border-radius: var(--radius-md); padding: 12px; box-shadow: none; }
.sitter-earnings-stats .kpi .v { font-size: clamp(1.1rem, 4vw, 1.55rem); overflow-wrap: anywhere; }
.sitter-earnings-stats .kpi .k { font-weight: 700; }
.sitter-earnings-note { margin: 0; }
.sitter-earnings-grid { display: grid; gap: var(--space-3); align-items: start; }
.sitter-earnings-grid > .card, .sitter-payout-history, .sitter-ledger { min-width: 0; box-shadow: var(--shadow); }
.sitter-section-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.sitter-section-heading > .icon { color: var(--primary); width: 22px; height: 22px; }
.sitter-section-heading h2, .sitter-section-heading p { margin: 0; }
.sitter-section-heading .small { margin-top: 3px; }
.sitter-earnings-account > p { padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-2); }
.sitter-earnings-account details { border-top: 1px solid var(--border); padding-top: var(--space-2); }
.sitter-earnings-account details > summary { font-weight: 700; color: var(--primary); }
.sitter-earnings-request .field { margin-top: var(--space-2); }
.sitter-earnings-request .field.payout-amount-shake { animation: payout-amount-shake .38s ease; }
@keyframes payout-amount-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.sitter-earnings-request .btn { width: 100%; }
.sitter-request-footnote { margin: 0; }
.sitter-payout-list > li { padding: 0; }
.sitter-payout-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 14px 4px; }
.sitter-payout-info { display: grid; gap: 2px; min-width: 0; }
.sitter-payout-info > strong { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.sitter-payout-info > span { overflow-wrap: anywhere; }
.sitter-payout-reference { color: var(--text); font-size: var(--fs-sm); }
.sitter-payout-reference b { font-variant-numeric: tabular-nums; }
.sitter-payout-row > .pill { flex: none; }
.sitter-payout-history .pager { padding-top: var(--space-2); border-top: 1px solid var(--border); }
.sitter-ledger table.data { min-width: 560px; }
@media (min-width: 640px) {
  .sitter-earnings-overview { grid-template-columns: minmax(240px, .85fr) minmax(0, 1.5fr); align-items: stretch; }
  .sitter-earnings-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .sitter-earnings-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sitter-earnings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sitter-payout-history, .sitter-ledger { grid-column: 1 / -1; }
}
.user-actions.compact .btn { min-height: 34px; min-width: 34px; padding: 6px 8px; }
.user-actions.compact .btn .icon { width: 16px; height: 16px; }
.temp-pass { font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; text-align: center; padding: 12px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px dashed var(--primary); user-select: all; }

/* ---------- Searching animation ---------- */
.searching { display: grid; justify-items: center; text-align: center; gap: 6px; padding: var(--space-6) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.radar { position: relative; width: 168px; height: 168px; display: grid; place-items: center; margin-bottom: var(--space-3); }
.radar-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: radar-pulse 2.4s cubic-bezier(.2,.6,.4,1) infinite; }
.radar-ring.r2 { animation-delay: .8s; } .radar-ring.r3 { animation-delay: 1.6s; }
@keyframes radar-pulse { 0% { transform: scale(.35); opacity: .7; } 100% { transform: scale(1); opacity: 0; } }
.radar-sweep { position: absolute; inset: 14px; border-radius: 50%; background: conic-gradient(from 0deg, color-mix(in srgb, var(--primary) 0%, transparent) 0deg, color-mix(in srgb, var(--primary) 28%, transparent) 60deg, transparent 61deg); animation: spin 2.2s linear infinite; }
.radar-mark { position: relative; z-index: 2; width: 46px; height: auto; padding: 14px; box-sizing: content-box; border-radius: 50%; background: var(--surface); box-shadow: 0 4px 18px rgba(16, 20, 24, .14); }
.radar-orbit { position: absolute; inset: 0; animation: spin 6s linear infinite; }
.radar-dot { position: absolute; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--info-bg); color: var(--primary); border: 2px solid var(--surface); box-shadow: var(--shadow); animation: spin 6s linear infinite reverse; }
.radar-dot .icon { width: 15px; height: 15px; }
.radar-dot.d0 { top: 6px; left: calc(50% - 15px); }
.radar-dot.d1 { bottom: 22px; left: 10px; }
.radar-dot.d2 { bottom: 22px; right: 10px; }
.searching-title { margin: 0; font-size: 1.25rem; display: inline-flex; align-items: baseline; gap: 2px; }
.dots i { display: inline-block; width: 5px; height: 5px; margin-inline-start: 3px; border-radius: 50%; background: currentColor; animation: dot-blink 1.2s infinite both; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot-blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.searching-sub { margin: 0; color: var(--muted); }
.searching-step { margin: 6px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--primary); min-height: 1.5em; }
.searching-step.swap { animation: step-in .35s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Search result card ---------- */
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.result-card { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; animation: row-in .45s ease both; }
.result-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 10px 30px rgba(16, 20, 24, .10); transform: translateY(-2px); }
.rc-main { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4); align-items: start; }
.rc-avatar .avatar { width: 64px; height: 64px; }
.rc-body { display: grid; gap: 8px; min-width: 0; }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rc-name { margin: 0; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 6px; }
.rc-name a { color: var(--text); text-decoration: none; }
.rc-name a:hover { color: var(--primary); text-decoration: underline; }
.rc-verified { display: inline-flex; vertical-align: -3px; }
.rc-new { font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: var(--radius-pill); }
.rc-meta { margin: 0; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: var(--fs-sm); }
.rc-meta .icon { width: 16px; height: 16px; flex: none; }
.rc-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-sm); }
.rc-facts li { display: inline-flex; align-items: center; gap: 5px; }
.rc-facts .icon { width: 16px; height: 16px; color: var(--primary); }
.rc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-side { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface-2); border-top: 1px solid var(--border); }
.rc-price { display: grid; line-height: 1.2; }
.rc-price strong { font-size: 1.35rem; font-weight: 800; }
.rc-price span { font-size: .78rem; color: var(--muted); }
.rc-break { grid-column: 1; grid-row: 2; margin: 0; font-size: .78rem; color: var(--muted); }
.rc-actions { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-actions .btn { width: 100%; min-height: 44px; }
@media (max-width: 420px) {
  .rc-side { grid-template-columns: 1fr; }
  .rc-actions { grid-column: 1; grid-row: auto; }
  .rc-break { grid-row: auto; }
}
@media (min-width: 768px) {
  .result-card { grid-template-columns: minmax(0, 1fr) 230px; }
  .rc-main { grid-template-columns: 80px minmax(0, 1fr); padding: var(--space-4) var(--space-5); }
  .rc-avatar .avatar { width: 80px; height: 80px; }
  .rc-side { grid-template-columns: 1fr; align-content: center; gap: 6px; border-top: 0; border-inline-start: 1px solid var(--border); padding: var(--space-4); text-align: center; }
  .rc-price, .rc-break { grid-column: 1; grid-row: auto; justify-items: center; }
  .rc-actions { grid-column: 1; grid-row: auto; grid-template-columns: 1fr; margin-top: 6px; }
}

/* ---------- Results header v2 ---------- */
.rh { min-height: 260px; align-items: stretch; }
.rh .results-photo img { animation: greet-zoom 14s ease-out both; }
.rh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--bg) 10%, transparent) 0%, transparent 55%); pointer-events: none; }
.rh-glow { position: absolute; z-index: 1; width: 260px; height: 260px; border-radius: 50%; inset-inline-start: -60px; top: -80px; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 30%, transparent), transparent 70%); animation: glow-float 7s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow-float { to { transform: translate(-30px, 40px) scale(1.15); } }
.rh-panel { position: relative; z-index: 2; margin: var(--space-4); padding: var(--space-4) var(--space-5); width: min(560px, 62%); display: grid; gap: 12px; align-content: center; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(10px); box-shadow: 0 10px 40px rgba(16, 20, 24, .14); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); animation: panel-in .6s cubic-bezier(.2,.8,.2,1) both; }
.rh-top { display: flex; align-items: center; gap: 16px; }
.rh-top h1 { margin: 0; font-size: var(--fs-xl); }
.rh-sub { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.rh-counter { flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 18%, transparent); }
.rh-count { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.rh-count-label { font-size: .58rem; font-weight: 600; line-height: 1.15; max-width: 62px; margin-top: 2px; }
.rh-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rh-chips li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; animation: chip-in .45s ease both; }
.rh-chips li:nth-child(2) { animation-delay: .08s; } .rh-chips li:nth-child(3) { animation-delay: .16s; } .rh-chips li:nth-child(4) { animation-delay: .24s; }
.rh-chips .icon { width: 15px; height: 15px; color: var(--primary); }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.rh-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .84rem; color: var(--muted); min-height: 1.4em; }
.rh-stats li { display: inline-flex; align-items: center; gap: 5px; animation: chip-in .45s ease both; }
.rh-stats .icon { width: 15px; height: 15px; color: var(--primary); }
.rh-edit { justify-self: start; }
@media (max-width: 700px) {
  .rh { flex-direction: column; min-height: 0; background: var(--surface); }
  .rh::after { display: none; }
  .rh .results-photo { position: relative; aspect-ratio: 16 / 8; }
  .rh-panel { width: auto; margin: -36px 12px 12px; padding: var(--space-4); }
  .rh-glow { display: none; }
  .rh-edit { justify-self: stretch; }
}

/* ---------- How it works v2 (home stepper + page timeline) ---------- */
.hiw-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 700; font-size: .85rem; width: fit-content; }
.hiw-kicker .icon { width: 16px; height: 16px; }

.hiw-home { position: relative; overflow: hidden; display: grid; gap: var(--space-5); padding: var(--space-6) var(--space-5); border-radius: var(--radius); background:
  radial-gradient(600px 240px at 85% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
  radial-gradient(500px 220px at 0% 100%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); }
.hiw-head { display: grid; gap: 8px; justify-items: center; text-align: center; }
.hiw-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.hiw-head p { margin: 0; max-width: 46ch; }
.hiw-more { display: flex; justify-content: center; }

.hiw { list-style: none; margin: 0; padding: 0; display: grid; }
.hiw-step { position: relative; }
.hiw-bubble { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--primary); border: 2px solid color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 18%, transparent); transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s, color .35s, box-shadow .35s; }
.hiw-bubble .icon { width: 28px; height: 28px; }
.hiw-num { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--radius-pill); display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--primary); color: var(--on-primary); border: 2px solid var(--surface); }
.hiw-body h3 { margin: 0 0 4px; font-size: 1.08rem; }
.hiw-body p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.hiw-line { position: absolute; background: var(--border); border-radius: 2px; overflow: hidden; }
.hiw-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 55%, transparent)); transform: scaleX(0); transform-origin: right; transition: transform .9s cubic-bezier(.2,.8,.2,1) .25s; }
.hiw-step:last-child .hiw-line { display: none; }
.hiw-step.in .hiw-line::after { transform: none; }
.hiw-step.in .hiw-bubble { animation: hiw-pop .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes hiw-pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

/* Home: row of 4 (vertical on phones) with an auto-moving highlight. */
.hiw-row { gap: var(--space-5); }
.hiw-row .hiw-step { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-4); align-items: start; }
.hiw-row .hiw-node { position: relative; }
.hiw-row .hiw-line { top: 70px; bottom: calc(-1 * var(--space-5) - 6px); inset-inline-start: 31px; width: 2px; }
.hiw-row .hiw-line::after { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 55%, transparent)); }
.hiw-row .hiw-step.in .hiw-line::after { transform: none; }
.hiw-step.active .hiw-bubble { background: var(--primary); color: var(--on-primary); transform: translateY(-4px) scale(1.06); box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 16%, transparent), 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent); }
.hiw-step.active .hiw-num { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.hiw-step.active h3 { color: var(--primary); }
.hiw-step h3 { transition: color .35s; }
@media (min-width: 900px) {
  .hiw-row { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
  .hiw-row .hiw-step { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hiw-row .hiw-node { width: 100%; display: grid; justify-items: center; }
  .hiw-row .hiw-line { top: 31px; bottom: auto; height: 2px; width: auto; inset-inline-start: calc(50% + 40px); inset-inline-end: calc(-50% + 40px - var(--space-4)); }
  .hiw-row .hiw-line::after { transform: scaleX(0); transform-origin: right; background: linear-gradient(270deg, var(--primary), color-mix(in srgb, var(--primary) 55%, transparent)); }
  .hiw-row .hiw-step:hover .hiw-bubble { transform: translateY(-4px); }
}

/* Page: vertical timeline of cards. */
.hiw-timeline { gap: var(--space-4); padding-block: var(--space-2); padding-inline-start: 8px; }
.hiw-timeline .hiw-step { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-4); align-items: start; }
.hiw-timeline .hiw-node { position: relative; align-self: stretch; }
.hiw-timeline .hiw-line { top: 70px; bottom: calc(-1 * var(--space-4) - 4px); inset-inline-start: 31px; width: 2px; }
.hiw-timeline .hiw-line::after { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 50%, transparent)); }
.hiw-timeline .hiw-step.in .hiw-line::after { transform: none; }
.hiw-timeline .hiw-body { padding: var(--space-4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; }
.hiw-timeline .hiw-step:hover .hiw-body { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.hiw-timeline .hiw-step:hover .hiw-bubble { background: var(--primary); color: var(--on-primary); }
.hiw-tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hiw-tags li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface-2); font-size: .82rem; font-weight: 600; }
.hiw-tags .icon { width: 14px; height: 14px; color: var(--ok); }
@media (max-width: 520px) {
  .hiw-timeline .hiw-step, .hiw-row .hiw-step { grid-template-columns: 52px 1fr; gap: 12px; }
  .hiw-bubble { width: 52px; height: 52px; }
  .hiw-bubble .icon { width: 24px; height: 24px; }
  .hiw-timeline .hiw-line, .hiw-row .hiw-line { top: 58px; inset-inline-start: 25px; }
  .hiw-home { padding: var(--space-5) var(--space-4); }
}

.hiw-example h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--space-3); font-size: 1.15rem; }
.hiw-bar { display: flex; height: 58px; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); margin-bottom: var(--space-3); }
.hiw-seg { display: grid; align-content: center; justify-items: center; padding: 0 8px; white-space: nowrap; min-width: 0; }
.hiw-seg b { font-size: .9rem; } .hiw-seg small { font-size: .78rem; opacity: .85; }
.hiw-seg.planned { flex: 0 0 80%; background: color-mix(in srgb, var(--primary) 18%, var(--surface)); color: var(--text); }
.hiw-seg.extra { flex: 1 1 auto; background: var(--warn-bg); color: var(--warn); border-inline-start: 2px dashed var(--warn); }
.hiw-example.in .hiw-seg.planned { animation: hiw-grow 1s cubic-bezier(.2,.8,.2,1) .2s both; }
.hiw-example.in .hiw-seg.extra { animation: hiw-fade .5s ease 1.1s both; }
@keyframes hiw-grow { from { flex-basis: 0; } }
@keyframes hiw-fade { from { opacity: 0; transform: translateX(-10px); } }

@media (prefers-reduced-motion: reduce) {
  .hiw-line::after { transform: none !important; transition: none; }
  .hiw-step.in .hiw-bubble, .hiw-example.in .hiw-seg { animation: none !important; }
}

/* ---------- Photo scenes: the photo dissolves into the surface the text sits on ---------- */
/* Photos are 16:9 with people on the left and a free wall on the right (text side in RTL). */
.scene { position: relative; isolation: isolate; overflow: hidden; display: grid; border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.scene-media { position: relative; display: block; aspect-ratio: 1 / 1; background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, rgba(0,0,0,.55) 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 52%, rgba(0,0,0,.55) 74%, transparent 100%); }
.scene-media img { animation: greet-zoom 16s ease-out both; }
.scene-body { position: relative; z-index: 2; display: grid; gap: 12px; align-content: center; margin: -110px 12px 12px; padding: var(--space-4);
  border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 70%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent); box-shadow: 0 -8px 30px rgba(16, 20, 24, .06); animation: panel-in .7s cubic-bezier(.2,.8,.2,1) both; }
.scene-body h1, .scene-body h2 { margin: 0; letter-spacing: -.01em; }
.scene-body h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.scene-body h2 { font-size: clamp(1.35rem, 3.6vw, 1.9rem); }
.scene-body .lead, .scene-body > p { margin: 0; color: var(--muted); line-height: 1.65; }
.scene-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.scene .checks { margin: 0; }
@media (max-width: 899px) { .scene-actions .btn { flex: 1 1 auto; justify-content: center; } }
@media (min-width: 600px) and (max-width: 899px) { .scene-media, .scene-hero .slideshow.scene-media { aspect-ratio: 16 / 10; } }
@media (min-width: 900px) {
  .scene { min-height: clamp(380px, 38vw, 500px); align-items: center; }
  .scene-media { position: absolute; inset: 0; aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.06) 38%, rgba(0,0,0,.5) 52%, #000 68%);
    mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.06) 38%, rgba(0,0,0,.5) 52%, #000 68%); }
  .scene-body { justify-self: start; width: min(500px, 44%); margin: var(--space-6); margin-inline-start: clamp(32px, 4vw, 56px); padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
:root[data-theme="dark"] .scene-media img { filter: brightness(.86); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scene-media img { filter: brightness(.86); } }

/* Home hero: slideshow scene with the search wizard on the wall. */
.scene-hero { margin-bottom: var(--space-6); }
.scene-hero .hero-panel { width: auto; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
.scene-hero .search-card { background: transparent; border: 0; box-shadow: none; padding: 0; }
.scene-hero .slideshow.scene-media { aspect-ratio: 1 / 1; }
.scene-hero .slide .photo img { object-fit: cover; }
.scene-hero .slide-dots { inset-block-start: 14px; inset-block-end: auto; left: 14px; inset-inline-end: auto; }
@media (min-width: 900px) {
  .scene-hero { min-height: 620px; }
  .scene-hero .slideshow.scene-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .scene-hero .scene-body { width: min(520px, 46%); }
  .scene-hero .slide-dots { inset-block-start: auto; inset-block-end: 16px; left: 20px; }
}
.scene-page { margin-bottom: var(--space-2); }
.scene-feature { margin-top: var(--space-6); }

/* How it works (home): photo as the section's top backdrop. */
.hiw-home { --hiw-pad: var(--space-5); padding-top: 0; }
.hiw-cover { position: relative; display: block; margin-inline: calc(-1 * var(--hiw-pad)); aspect-ratio: 16 / 9; background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); }
.hiw-home .hiw-head { position: relative; z-index: 1; margin-top: -56px; }
@media (max-width: 520px) { .hiw-home { --hiw-pad: var(--space-4); } }
@media (min-width: 900px) {
  .hiw-cover { position: absolute; inset: 0 0 auto 0; margin: 0; height: 360px; aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.15) 34%, #000 60%), linear-gradient(to bottom, #000 40%, transparent 92%);
    mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.15) 34%, #000 60%), linear-gradient(to bottom, #000 40%, transparent 92%);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .hiw-home .hiw-head { margin: 0; min-height: 300px; align-content: center; justify-items: start; text-align: start; width: min(440px, 42%); justify-self: start; padding-inline-start: var(--space-3); }
}
:root[data-theme="dark"] .hiw-cover img { filter: brightness(.86); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hiw-cover img { filter: brightness(.86); } }

/* Join page points */
.join-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .join-points { grid-template-columns: 1fr 1fr; } }
.join-points li { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-3); align-items: start; }
.join-points h3 { margin: 0 0 4px; font-size: 1.05rem; }
.join-points p { margin: 0; }
.join-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }

/* Search results header: photo fades into the panel side. */
@media (min-width: 701px) {
  .rh .results-photo { -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.25) 0%, rgba(0,0,0,.6) 35%, #000 58%); mask-image: linear-gradient(to left, rgba(0,0,0,.25) 0%, rgba(0,0,0,.6) 35%, #000 58%); }
  .rh { background: var(--surface); }
}
@media (max-width: 700px) {
  .rh .results-photo { -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); }
}

/* Greeting: the photo is the card's backdrop on the far side, fading in behind the text (phones: a band on top). */
.greeting.has-photo { position: relative; overflow: hidden; isolation: isolate; padding: var(--space-5); min-height: 180px; align-items: center; }
.greeting.has-photo .greet-text { position: relative; z-index: 1; max-width: 58%; }
.greeting.has-photo .greet-photo { position: absolute; inset-block: 0; inset-inline-end: 0; width: 46%; height: 100%; aspect-ratio: auto; border-radius: 0; z-index: 0;
  -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 100%); mask-image: linear-gradient(to left, #000 50%, transparent 100%); }
.greeting.has-photo .greet-photo img { object-position: 15% 28%; }
.greeting.has-photo .greet-badge { z-index: 2; inset-block-start: auto; inset-block-end: 10px; inset-inline-end: 10px; width: 48px; }
@media (max-width: 640px) {
  .greeting.has-photo { display: grid; padding: 0 0 var(--space-4); min-height: 0; }
  .greeting.has-photo .greet-photo { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 8; order: -1;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); }
  .greeting.has-photo .greet-text { max-width: none; margin-top: -40px; padding-inline: var(--space-4); }
  .greeting.has-photo .greet-badge { width: 44px; }
}
:root[data-theme="dark"] .greet-photo img { filter: brightness(.82); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .greet-photo img { filter: brightness(.82); } }

/* Sign-in / sign-up: tall photo with an integrated caption. */
.auth-figure { display: none; margin: 0; }
@media (min-width: 900px) {
  .auth-figure { display: block; position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); min-height: 560px; }
  .auth-figure .auth-photo { position: absolute; inset: 0; min-height: 0; border-radius: 0; box-shadow: none; }
  .auth-figure .auth-photo img { animation: greet-zoom 16s ease-out both; }
  .auth-figure figcaption { position: absolute; inset: auto 0 0 0; z-index: 1; display: grid; gap: 4px; padding: 90px 24px 22px; color: #fff; background: linear-gradient(to top, rgba(10, 20, 30, .78), rgba(10, 20, 30, .35) 60%, transparent); }
  .auth-figure figcaption strong { font-size: 1.25rem; }
  .auth-figure figcaption span { font-size: .92rem; opacity: .92; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { .scene-media img, .auth-figure .auth-photo img { animation: none; } }

/* ---------- City search (combobox) ---------- */
.combo { position: relative; flex: 1 1 auto; min-width: 0; }
.combo .combo-input { padding-inline-start: 40px; }
.combo-ic { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: color .2s; }
.combo.has-value .combo-ic { color: var(--primary); }
.combo-list { position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 300px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 14px 40px rgba(16, 20, 24, .16); animation: combo-in .16s ease-out both; }
@keyframes combo-in { from { opacity: 0; transform: translateY(-4px); } }
.combo-opt { padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.combo-opt mark { background: none; color: var(--primary); font-weight: 800; padding: 0; }
.combo-opt[aria-selected="true"], .combo-opt:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.combo-empty { padding: 10px 12px; color: var(--muted); font-size: .92rem; }
.city-row .combo { flex: 1 1 auto; }

.city-multi { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.city-multi legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.city-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.city-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 4px; padding-inline-start: 12px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); font-weight: 600; font-size: .92rem; animation: combo-in .2s ease-out both; }
.city-chip-x { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.city-chip-x:hover, .city-chip-x:focus-visible { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.city-chip-x .icon { width: 14px; height: 14px; }
/* The home hero holds the city search: let its dropdown escape; the photo clips itself instead. */
.scene-hero { overflow: visible; }
.scene-hero .scene-media { border-radius: inherit; overflow: hidden; }
.scene-hero .scene-body { z-index: 5; }

/* ---------- Notifications (bell panel + page) ---------- */
.nt-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.nt-list.card { padding: 6px; }
.nt-item { position: relative; animation: row-in .35s ease both; }
.nt-link { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 14px; border-radius: calc(var(--radius) - 4px); color: inherit; text-decoration: none; transition: background .2s; }
.nt-link:hover, .nt-link:focus-visible { background: var(--surface-2); }
.nt-item.unread .nt-link { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.nt-item.unread .nt-link:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.nt-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.nt-ic .icon { width: 20px; height: 20px; }
.nt-ic.tone-info { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.nt-ic.tone-ok { background: var(--ok-bg); color: var(--ok); }
.nt-ic.tone-warn { background: var(--warn-bg); color: var(--warn); }
.nt-ic.tone-danger { background: var(--danger-bg, #FBE4E4); color: var(--danger, #B42318); }
.nt-ic.tone-neutral { background: var(--surface-2); color: var(--muted); }
.nt-text { display: grid; gap: 3px; min-width: 0; }
.nt-title { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.35; }
.nt-item:not(.unread) .nt-title { font-weight: 600; }
.nt-tag { font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--danger-bg, #FBE4E4); color: var(--danger, #B42318); }
.nt-body { color: var(--muted); font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.nt-time { color: var(--muted); font-size: .8rem; }
.nt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 6px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.nt-item.compact .nt-link { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; }
.nt-item.compact .nt-ic { width: 38px; height: 38px; border-radius: 12px; }
.nt-item.compact .nt-ic .icon { width: 18px; height: 18px; }
.nt-item.compact .nt-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; }

.bell-btn.open { background: var(--surface-2); color: var(--primary); }
.bell-panel { position: fixed; z-index: 90; width: 380px; max-width: calc(100vw - 16px); max-height: min(560px, calc(100dvh - 90px)); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); box-shadow: 0 20px 50px rgba(16, 20, 24, .22); overflow: hidden;
  transform-origin: top center; animation: bp-in .18s cubic-bezier(.2,.8,.2,1) both; }
.bell-panel.closing { animation: bp-out .14s ease-in both; }
@keyframes bp-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes bp-out { to { opacity: 0; transform: translateY(-4px) scale(.98); } }
.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.bp-title { display: grid; gap: 1px; }
.bp-title strong { font-size: 1.05rem; }
.bp-count { font-size: .8rem; color: var(--muted); }
.bp-count:empty { display: none; }
.bp-mark { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--primary); font: inherit; font-size: .84rem; font-weight: 700; padding: 6px 10px; border-radius: var(--radius-pill); cursor: pointer; }
.bp-mark:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.bp-mark .icon { width: 16px; height: 16px; }
.bp-list { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.bp-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px; border-top: 1px solid var(--border); font-weight: 700; text-decoration: none; color: var(--primary); background: var(--surface); }
.bp-all:hover { background: var(--surface-2); }
.bp-empty { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 28px 16px; color: var(--muted); }
.bp-empty strong { color: var(--text); }
.bp-empty-ic, .nt-empty-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); margin-bottom: 6px; }
.bp-empty-ic .icon, .nt-empty-ic .icon { width: 26px; height: 26px; }
.nt-skel { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px; }
.nt-skel span { height: 38px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 50%, var(--surface)), var(--surface-2)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.nt-skel span + span { height: 14px; margin-top: 4px; border-radius: 6px; }
@keyframes skel { to { background-position: -200% 0; } }

.nt-page { max-width: 760px; margin-inline: auto; width: 100%; }
.nt-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 22px; border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(400px 160px at 100% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%), var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.nt-hero-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); animation: bell-ring 2.4s ease-in-out 1s 2; transform-origin: 50% 20%; }
.nt-hero-ic .icon { width: 26px; height: 26px; }
@keyframes bell-ring { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(12deg); } 20% { transform: rotate(-10deg); } 30% { transform: rotate(7deg); } 40% { transform: rotate(-4deg); } }
.nt-hero h1 { margin: 0; font-size: clamp(1.4rem, 4vw, 1.8rem); }
.nt-sub { margin: 2px 0 0; color: var(--muted); }
.nt-page .seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.nt-page-list { display: grid; gap: var(--space-4); }
.nt-group { display: grid; gap: 8px; }
.nt-day { margin: 0; font-size: .85rem; font-weight: 700; color: var(--muted); padding-inline-start: 6px; }
.nt-empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 40px 20px; }
.nt-empty h2 { margin: 0; font-size: 1.15rem; }
.nt-empty p { margin: 0; }
@media (max-width: 560px) {
  .nt-hero { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .nt-hero-actions { grid-column: 1 / -1; }
  .nt-hero-actions .btn { width: 100%; justify-content: center; }
  .nt-link { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .nt-ic { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .bell-panel, .nt-hero-ic, .nt-item { animation: none; } }

/* ---------- Home rhythm: one consistent gap between all sections ---------- */
.home-stack { display: grid; gap: clamp(28px, 4.5vw, 52px); }
.home-stack > * { margin-block: 0 !important; }
.home-stack > .grid-2 { gap: var(--space-4); }

/* How it works (home), compact */
.hiw-home { gap: var(--space-4); padding-bottom: var(--space-5); }
.hiw-cover { aspect-ratio: 16 / 7; }
.hiw-home .hiw-head { margin-top: -40px; gap: 6px; }
.hiw-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.hiw-bubble { width: 56px; height: 56px; }
.hiw-bubble .icon { width: 24px; height: 24px; }
.hiw-body h3 { font-size: 1rem; }
.hiw-body p { font-size: .9rem; line-height: 1.55; }
@media (max-width: 899px) {
  /* Phones/tablets: a compact 2×2 grid instead of a long vertical list. */
  .hiw-row { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3); }
  .hiw-row .hiw-step { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
  .hiw-row .hiw-line { display: none; }
  .hiw-row .hiw-bubble { width: 52px; height: 52px; }
}
@media (min-width: 900px) {
  .hiw-home { padding-top: 0; }
  .hiw-cover { height: 300px; aspect-ratio: auto; }
  .hiw-home .hiw-head { min-height: 240px; margin: 0; }
  .hiw-row .hiw-line { top: 27px; inset-inline-start: calc(50% + 36px); inset-inline-end: calc(-50% + 36px - var(--space-4)); }
}
.hiw-step, .hiw-row .hiw-step { align-content: start; }
.scene-hero { position: relative; z-index: 3; }

/* ---------- Shared bits ---------- */
.pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2BD47D; box-shadow: 0 0 0 0 rgba(43, 212, 125, .6); animation: pulse 1.8s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 212, 125, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(43, 212, 125, 0); } }
.kid-avatar { display: block; flex: none; border-radius: 50%; }
.kid-stack { display: inline-flex; }
.kid-stack .kid-avatar { border: 2px solid var(--surface); margin-inline-start: -8px; }
.kid-stack .kid-avatar:first-child { margin-inline-start: 0; }
.count-badge { min-width: 24px; height: 24px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); font-size: .8rem; font-weight: 800; display: inline-grid; place-items: center; }

/* ---------- Sitter home ---------- */
.live-banner { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius); background: linear-gradient(90deg, #12324A, #1B4E6E); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.live-banner span:not(.pulse) { margin-inline-start: auto; opacity: .85; font-size: .9rem; }
.live-banner .icon { color: #fff; }
.sitter-top { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .sitter-top { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; } }

.av-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 22px; border-radius: calc(var(--radius) + 4px);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: background .35s, border-color .35s; }
.av-card.on { background: radial-gradient(420px 180px at 100% 0%, color-mix(in srgb, #2BD47D 16%, transparent), transparent 70%), var(--surface); border-color: color-mix(in srgb, #1BAF7A 45%, var(--border)); }
.av-text h2 { margin: 0 0 4px; font-size: 1.2rem; }
.av-sub { margin: 0; color: var(--muted); line-height: 1.55; }
.av-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.av-extra:empty { display: none; }
.av-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.av-link .icon { width: 16px; height: 16px; }
.av-switch { position: relative; width: 74px; height: 40px; border-radius: 20px; border: 0; padding: 0; cursor: pointer; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); transition: background .3s; flex: none; }
.av-switch[aria-checked="true"] { background: #1BAF7A; box-shadow: none; }
.av-switch:disabled { cursor: not-allowed; opacity: .55; }
.av-knob { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: right .3s cubic-bezier(.2,.8,.2,1); }
.av-switch[aria-checked="true"] .av-knob { right: 38px; }
.av-switch:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.av-radar { position: relative; width: 56px; height: 56px; flex: none; }
.av-radar span:not(.av-dot) { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1BAF7A; opacity: 0; }
.av-card.on .av-radar span:not(.av-dot) { animation: radar 2.6s ease-out infinite; }
.av-card.on .av-radar span:nth-child(2) { animation-delay: .85s; }
.av-card.on .av-radar span:nth-child(3) { animation-delay: 1.7s; }
@keyframes radar { 0% { transform: scale(.45); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
.av-dot { position: absolute; inset: 10px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); transition: background .3s, color .3s; }
.av-card.on .av-dot { background: #1BAF7A; color: #fff; }
.av-dot .icon { width: 20px; height: 20px; }
@media (max-width: 560px) { .av-card { grid-template-columns: auto minmax(0, 1fr); padding: 16px; } .av-card .av-switch { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; } .av-text { grid-column: 1 / -1; } }

.sitter-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ss { display: grid; justify-items: start; align-content: start; gap: 4px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); min-width: 0; }
.ss strong { font-size: 1.6rem; line-height: 1.1; }
.ss > span:last-child { color: var(--muted); font-size: .82rem; }
.ss-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.ss-ic.warn { background: var(--warn-bg); color: var(--warn); } .ss-ic.ok { background: var(--ok-bg); color: var(--ok); }
.ss-ic .icon { width: 18px; height: 18px; }
.ss .pill { font-size: .78rem; }

.job-sec { display: grid; gap: 10px; }
.job-sec-head { display: flex; align-items: center; gap: 10px; }
.job-sec-head h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.job-sec-head h2 .icon { color: var(--primary); }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.job-card { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; animation: row-in .4s ease both; }
.job-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.job-card.pending { border-inline-start: 4px solid var(--warn); }
.job-card.live { border-color: #1BAF7A; background: radial-gradient(300px 120px at 100% 0%, color-mix(in srgb, #2BD47D 12%, transparent), transparent 70%), var(--surface); }
.job-date { display: grid; justify-items: center; padding: 8px 4px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); line-height: 1.15; }
.job-date strong { font-size: 1.5rem; }
.job-date small { font-size: .72rem; font-weight: 700; }
.job-main { display: grid; gap: 5px; min-width: 0; }
.job-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.job-meta .icon { width: 15px; height: 15px; }
.job-kids { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); min-width: 0; }
.job-expire { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--warn); font-weight: 700; }
.job-expire .icon { width: 14px; height: 14px; }
.job-status { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--muted); }
.job-status.s-requested { background: var(--warn-bg); color: var(--warn); } .job-status.s-confirmed { background: var(--ok-bg); color: var(--ok); }
.job-live { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800; color: var(--ok); }
.job-side { display: grid; justify-items: end; gap: 6px; color: var(--muted); }
.job-side strong { color: var(--text); }
.job-empty { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px dashed var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.job-empty > .icon { width: 28px; height: 28px; color: var(--primary); flex: none; }
.job-empty div { display: grid; gap: 2px; } .job-empty span { color: var(--muted); font-size: .9rem; }
@media (max-width: 520px) { .job-card { grid-template-columns: 52px minmax(0, 1fr); } .job-side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; } .job-side .icon { display: none; } }

/* ---------- Arrival + shift mode ---------- */
.arrive-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 22px; border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(420px 200px at 0% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%), var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: var(--shadow); }
.arrive-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.arrive-ic .icon { width: 28px; height: 28px; }
.arrive-text h2 { margin: 0 0 4px; } .arrive-text p { margin: 0; color: var(--muted); }
.arrive-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.arrive-btn { min-width: 180px; justify-content: center; font-size: 1.1rem; }

.shift { display: grid; gap: var(--space-4); }
.shift-hero { --illu-bg: #16324d; position: relative; overflow: hidden; display: grid; gap: 14px; padding: 22px; border-radius: calc(var(--radius) + 6px); color: #fff;
  background: linear-gradient(160deg, #0F2338 0%, #16324D 55%, #1C4A6B 100%); box-shadow: 0 14px 40px rgba(10, 30, 50, .3); }
.shift-illu { position: absolute; inset-inline-start: -10px; bottom: -6px; width: 260px; opacity: .9; pointer-events: none; }
.illu-window { animation: window-glow 3s ease-in-out infinite alternate; }
@keyframes window-glow { from { opacity: .75; } to { opacity: 1; } }
.shift-head { position: relative; display: grid; gap: 6px; }
.shift-badge { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.12); font-weight: 700; font-size: .85rem; }
.shift-head h1 { margin: 0; font-size: clamp(1.4rem, 4.5vw, 2rem); color: #fff; }
.shift-addr { display: flex; align-items: center; gap: 6px; margin: 0; opacity: .85; }
.shift-addr .icon { width: 16px; height: 16px; }
.shift-time { position: relative; display: grid; gap: 2px; }
.shift-clock { font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 800; letter-spacing: .02em; direction: ltr; text-align: start; line-height: 1; }
.shift-time-label { opacity: .75; font-size: .85rem; }
.shift-progress { position: relative; display: grid; gap: 6px; }
.shift-track { height: 10px; border-radius: 5px; background: rgba(255,255,255,.15); overflow: hidden; }
.shift-fill { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(270deg, #6CC6F2, #2BD47D); transition: width .8s ease; margin-inline-start: 0; }
.shift-ends { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; opacity: .85; }
.shift-left { font-weight: 700; opacity: 1; text-align: center; }
.shift-left.over { color: #FFC2A8; }
@media (min-width: 760px) { .shift-hero { grid-template-columns: minmax(0, 1fr) auto; padding: 28px 30px; } .shift-progress { grid-column: 1 / -1; } .shift-time { justify-items: end; text-align: end; } .shift-illu { width: 320px; inset-inline-start: auto; inset-inline-end: 34%; opacity: .5; } }

.shift-sec { display: grid; gap: 10px; }
.shift-sec h2 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.shift-sec h2 .icon { color: var(--primary); }
.kid-grid { display: grid; gap: 10px; }
@media (min-width: 700px) { .kid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kid-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: row-in .4s ease both; }
.kid-info { display: grid; gap: 3px; min-width: 0; }
.kid-info h3 { margin: 0; font-size: 1.1rem; }
.kid-age { margin: 0; color: var(--muted); font-size: .88rem; }
.kid-alert { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin: 2px 0 0; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--danger-bg); color: var(--danger); font-size: .8rem; font-weight: 700; }
.kid-alert .icon { width: 14px; height: 14px; }
.kid-notes { margin: 0; font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kid-report { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 700; font-size: .85rem; text-decoration: none; }
.kid-report .icon { width: 15px; height: 15px; }

.dial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.dial { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 16px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .2s; min-width: 0; }
.dial:active { transform: scale(.97); }
.dial:hover { box-shadow: 0 8px 24px rgba(16, 20, 24, .12); }
.dial-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); margin-bottom: 4px; }
.dial-ic .icon { width: 24px; height: 24px; }
.dial.primary .dial-ic { background: #1BAF7A; color: #fff; box-shadow: 0 6px 16px rgba(27, 175, 122, .35); }
.dial.danger .dial-ic { background: var(--danger); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--danger) 35%, transparent); }
.dial-label { font-weight: 800; overflow-wrap: anywhere; }
.dial-sub { color: var(--muted); font-size: .85rem; direction: ltr; }

.shift-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.shift-tile { display: grid; justify-items: start; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: inherit; text-decoration: none; font: inherit; text-align: start; cursor: pointer; transition: transform .2s, border-color .2s; }
.shift-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.shift-tile span:last-child { color: var(--muted); font-size: .86rem; }
.tile-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); margin-bottom: 4px; }
.shift-tile.end { background: linear-gradient(135deg, #1BAF7A, #15936A); color: #fff; border-color: transparent; }
.shift-tile.end span:last-child { color: rgba(255,255,255,.85); }
.shift-tile.end .tile-ic { background: rgba(255,255,255,.2); color: #fff; }
@media (prefers-reduced-motion: reduce) { .pulse, .av-radar span, .illu-window { animation: none !important; } }

/* ---------- Search wizard: location, when, who ---------- */
.city-row.locating .combo-ic { animation: loc-spin 1s linear infinite; color: var(--primary); }
.city-row.locating .loc-btn { border-color: var(--primary); }
@keyframes loc-spin { 50% { transform: translateY(-50%) scale(1.25); } }
.wiz-status { display: flex; align-items: center; gap: 4px; min-height: 1.4em; margin: 6px 0 0; }
.wiz-status .icon { width: 14px; height: 14px; color: var(--primary); }
.wiz-title:focus { outline: none; }

.when-block { display: grid; gap: 8px; }
.when-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.when-label .icon { width: 16px; height: 16px; color: var(--primary); }
.wiz-body { display: grid; gap: 16px; }

.day-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; overscroll-behavior-x: contain; }
.day-card { flex: 0 0 auto; width: 64px; display: grid; justify-items: center; gap: 1px; padding: 9px 4px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; scroll-snap-align: center; font: inherit; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; }
.day-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.day-card.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent); transform: translateY(-2px); }
.dc-wd { font-size: .74rem; font-weight: 700; opacity: .85; }
.dc-d { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.dc-m { font-size: .72rem; opacity: .8; }
.day-other { position: relative; width: 82px; align-content: center; gap: 4px; }
.day-other .icon { width: 20px; height: 20px; }
.day-other-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.preset-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.preset { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.preset .icon { width: 20px; height: 20px; color: #E0A100; }
.preset:nth-child(n+3) .icon { color: #6C7BD8; }
.preset span { font-weight: 700; font-size: .88rem; } .preset small { color: var(--muted); font-size: .76rem; }
.preset.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); box-shadow: inset 0 0 0 1px var(--primary); }
.time-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.time-stepper { display: grid; gap: 4px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.ts-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ts-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 4px; }
.ts-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s, transform .1s; }
.ts-btn:hover { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.ts-btn:active { transform: scale(.92); }
.ts-btn:disabled { opacity: .4; cursor: not-allowed; }
.ts-btn .icon { width: 16px; height: 16px; }
.ts-btn.sm { width: 32px; height: 32px; }
.ts-input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.35rem; font-weight: 800; text-align: center; direction: ltr; padding: 0; }
.ts-input:focus-visible { outline: 2px solid var(--primary); border-radius: 8px; }
.ts-input::-webkit-calendar-picker-indicator { display: none; }

.dur-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dur { display: grid; justify-items: center; padding: 8px 2px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.dur strong { font-size: 1.15rem; line-height: 1.1; } .dur span { font-size: .72rem; color: var(--muted); }
.dur.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); } .dur.on span { color: inherit; opacity: .85; }

.when-summary { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border)); }
.when-summary p { margin: 4px 0 0; }
.day-track { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #2B3F66 0%, #8FB8E8 25%, #FFE3A3 50%, #8FB8E8 75%, #2B3F66 100%); opacity: .9; }
.dt-seg { position: absolute; top: -3px; bottom: -3px; border-radius: 6px; background: var(--primary); box-shadow: 0 0 0 2px var(--surface); transition: inset-inline-start .3s, width .3s; }
.dt-icon { position: absolute; top: -22px; transform: translateX(50%); color: var(--muted); }
.dt-icon .icon { width: 14px; height: 14px; }
.dt-icon.sun { inset-inline-start: 50%; color: #E0A100; } .dt-icon.moon { inset-inline-start: 94%; color: #6C7BD8; }
.dt-hours { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); }
.when-summary { padding-top: 26px; }

.kid-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kid-opt { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 14px 10px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: center; transition: border-color .2s, box-shadow .2s, transform .15s; }
.kid-opt:not(.static):hover { transform: translateY(-2px); }
.kid-opt span { color: var(--muted); font-size: .85rem; }
.kid-opt.on:not(.static) { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.kid-opt.static { cursor: default; }
.ko-check { position: absolute; top: 8px; inset-inline-end: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: transparent; transition: background .2s, color .2s; }
.ko-check .icon { width: 13px; height: 13px; }
.kid-opt.on .ko-check { background: var(--primary); color: var(--on-primary); }
.kid-opt:not(.on):not(.static) .kid-avatar { filter: grayscale(.7); opacity: .7; }
.ko-remove { position: absolute; top: 6px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.ko-remove:hover { background: var(--surface-2); color: var(--text); }
.ko-remove .icon { width: 14px; height: 14px; }
.age-step { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; gap: 4px; width: 100%; margin-top: 4px; }
.age-val { font-weight: 800; color: var(--text) !important; font-size: .92rem !important; }
.kid-opt.add { border-style: dashed; align-content: center; min-height: 160px; color: var(--primary); }
.add-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary) !important; }
@media (max-width: 420px) { .preset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kid-pick { grid-template-columns: 1fr 1fr; } }

/* ---------- Account area ---------- */
.acc { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 960px) { .acc { grid-template-columns: 280px minmax(0, 1fr); } .acc-side { position: sticky; top: 84px; } }
.acc-side { display: grid; gap: 12px; min-width: 0; }
.acc-profile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: calc(var(--radius) + 4px); color: #fff;
  background: radial-gradient(240px 140px at 0% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(135deg, #0A6DA8, #12507A); box-shadow: 0 10px 30px rgba(10, 80, 120, .25); }
.acc-avatar { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.2); color: #fff; font-weight: 800; font-size: 1.3rem; border: 2px solid rgba(255,255,255,.4); }
.acc-id { display: grid; gap: 2px; min-width: 0; }
.acc-id strong { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-role { width: fit-content; padding: 1px 10px; border-radius: var(--radius-pill); background: rgba(255,255,255,.2); font-size: .78rem; font-weight: 700; }
.acc-mail { font-size: .82rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-nav { display: grid; gap: 4px; padding: 8px; border-radius: calc(var(--radius) + 2px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; transition: background .2s, color .2s; }
.acc-nav a:hover { background: var(--surface-2); }
.acc-nav a[aria-current="page"] { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.acc-nav-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); flex: none; transition: background .2s, color .2s; }
.acc-nav a[aria-current="page"] .acc-nav-ic { background: var(--primary); color: var(--on-primary); }
.acc-nav-ic .icon { width: 18px; height: 18px; }
.acc-nav .count-badge { margin-inline-start: auto; }
@media (max-width: 959px) {
  .acc-profile { padding: 14px; }
  .acc-nav { display: flex; gap: 6px; overflow-x: auto; padding: 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-nav a { flex: 0 0 auto; padding: 8px 12px 8px 14px; gap: 8px; scroll-snap-align: start; white-space: nowrap; }
  .acc-nav-ic { width: 28px; height: 28px; border-radius: 8px; }
}
.acc-main { display: grid; gap: var(--space-4); min-width: 0; }
.acc-head { display: flex; align-items: center; gap: 14px; }
.acc-head-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); flex: none; }
.acc-head-ic .icon { width: 24px; height: 24px; }
.acc-head h1 { margin: 0; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.acc-head p { margin: 2px 0 0; color: var(--muted); }
.acc-sec { display: grid; gap: 16px; padding: 20px; border-radius: calc(var(--radius) + 2px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.acc-sec-head { display: flex; align-items: flex-start; gap: 12px; }
.acc-sec-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); flex: none; }
.acc-sec-ic .icon { width: 20px; height: 20px; }
.acc-sec-head h2 { margin: 0; font-size: 1.12rem; }
.acc-sec-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.span-2 { grid-column: 1 / -1; } .span-3 { grid-column: 1 / -1; }
.form-grid.cols-3 { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.input-static { display: flex; align-items: center; background: var(--surface-2); color: var(--muted); }

.acc-ready { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px; border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(360px 160px at 100% 0%, color-mix(in srgb, var(--warn) 14%, transparent), transparent 70%), var(--surface); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border)); box-shadow: var(--shadow); }
.acc-ready.done { background: radial-gradient(360px 160px at 100% 0%, color-mix(in srgb, #2BD47D 16%, transparent), transparent 70%), var(--surface); border-color: color-mix(in srgb, #1BAF7A 45%, var(--border)); }
.acc-ready > .btn { grid-column: 1 / -1; justify-self: start; }
.ar-ring { width: 76px; height: 76px; transform: rotate(-90deg); }
.ar-bg { fill: none; stroke: var(--surface-2); stroke-width: 7; }
.ar-fg { fill: none; stroke: var(--warn); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.acc-ready.done .ar-fg { stroke: #1BAF7A; }
.ar-num { transform: rotate(90deg); transform-origin: 32px 32px; font-size: 15px; font-weight: 800; fill: var(--text); }
.ar-text h2 { margin: 0 0 2px; font-size: 1.15rem; } .ar-text p { margin: 0; color: var(--muted); }
.ar-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.ar-list a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; padding-inline-start: 6px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.ar-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.ar-ic .icon { width: 14px; height: 14px; }
.ar-list li.ok a { background: var(--ok-bg); color: var(--ok); } .ar-list li.ok .ar-ic { background: var(--ok); color: #fff; }

.theme-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-opt { display: grid; gap: 8px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; text-align: start; transition: border-color .2s, box-shadow .2s; }
.theme-opt.on { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.to-preview { display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: 10px 22px; gap: 4px; padding: 8px; border-radius: 10px; height: 58px; }
.to-preview span { border-radius: 4px; } .to-preview span:first-child { grid-row: 1 / 3; }
.t-light .to-preview { background: #F0F2F5; } .t-light .to-preview span { background: #fff; } .t-light .to-preview span:nth-child(2) { background: #0A6DA8; }
.t-dark .to-preview { background: #141618; } .t-dark .to-preview span { background: #262A2E; } .t-dark .to-preview span:nth-child(2) { background: #6CC6F2; }
.t-system .to-preview { background: linear-gradient(90deg, #141618 50%, #F0F2F5 50%); } .t-system .to-preview span { background: color-mix(in srgb, #888 40%, transparent); } .t-system .to-preview span:nth-child(2) { background: #3B9BD6; }
.to-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.to-label .icon { width: 16px; height: 16px; }
@media (max-width: 420px) { .to-preview { height: 44px; } }

.toggle-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--border); cursor: pointer; }
.tr-text { display: grid; gap: 2px; } .tr-text span { color: var(--muted); font-size: .88rem; }
.tr-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tr-switch { position: relative; width: 50px; height: 28px; flex: none; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); transition: background .25s; }
.tr-switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: right .25s cubic-bezier(.2,.8,.2,1); }
.tr-input:checked + .tr-switch { background: var(--primary); box-shadow: none; }
.tr-input:checked + .tr-switch::after { right: 25px; }
.tr-input:focus-visible + .tr-switch { outline: 3px solid var(--primary); outline-offset: 2px; }

.privacy-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.priv-card { display: grid; justify-items: start; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font: inherit; text-align: start; cursor: pointer; transition: border-color .2s, transform .15s; }
.priv-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.priv-card span:last-child { color: var(--muted); font-size: .86rem; }
.priv-card.danger .acc-sec-ic { background: var(--danger-bg); color: var(--danger); }
.priv-card.danger:hover { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }

.kid-cards, .addr-cards { display: grid; gap: 12px; }
@media (min-width: 700px) { .kid-cards, .addr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kid-acc, .addr-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: calc(var(--radius) + 2px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font: inherit; color: var(--text); text-align: start; animation: row-in .4s ease both; }
.ka-info h2, .addr-info h2 { margin: 0; font-size: 1.1rem; }
.ka-info p, .addr-info p { margin: 2px 0 6px; color: var(--muted); }
.ka-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ka-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--surface-2); font-size: .78rem; font-weight: 600; color: var(--muted); }
.ka-tag .icon { width: 13px; height: 13px; }
.ka-tag.warn { background: var(--danger-bg); color: var(--danger); }
.ka-actions { display: flex; align-items: center; gap: 4px; }
.kid-acc.add, .addr-card.add { grid-template-columns: auto minmax(0, 1fr); border-style: dashed; cursor: pointer; box-shadow: none; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.kid-acc.add span:last-child { grid-column: 2; color: var(--muted); font-size: .88rem; margin-top: -10px; }
.kid-acc.add:hover, .addr-card.add:hover { border-color: var(--primary); }
.kid-acc.add .add-ic, .addr-card.add .add-ic { grid-row: span 2; width: 52px; height: 52px; }
.addr-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.addr-ic .icon { width: 24px; height: 24px; }

.fav-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.fav-card { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 20px 14px; border-radius: calc(var(--radius) + 2px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s; }
.fav-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.acc-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 30px 16px; border-radius: calc(var(--radius) + 2px); background: var(--surface); border: 1px solid var(--border); }
.acc-empty h2, .acc-empty p { margin: 0; } .acc-empty p { color: var(--muted); }
.acc-empty-illu { width: 220px; }
.illu-heart { transform-origin: 178px 40px; animation: heart-beat 1.6s ease-in-out infinite; }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } }

/* ---------- Wizard v3: compact when/who + animated transitions ---------- */
.wiz-body { gap: 12px; }
.when-block { gap: 6px; }
.when-label { font-size: .82rem; }
.day-strip { gap: 6px; padding: 2px 2px 6px; }
.day-card { width: 52px; padding: 6px 2px; border-radius: 12px; }
.dc-d { font-size: 1.1rem; }
.dc-wd, .dc-m { font-size: .68rem; }
.day-other { width: 66px; }
.day-card.on { transform: none; box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 30%, transparent); }
.time-pair { gap: 8px; }
.time-stepper { padding: 6px 8px; gap: 2px; border-radius: 12px; }
.ts-label { display: flex; align-items: center; justify-content: space-between; font-size: .74rem; }
.ts-part .icon { width: 14px; height: 14px; }
.ts-part.sun { color: #E0A100; } .ts-part.moon { color: #6C7BD8; }
.ts-row { grid-template-columns: 30px minmax(0, 1fr) 30px; }
.ts-btn { width: 30px; height: 30px; }
.ts-btn .icon { width: 14px; height: 14px; }
.ts-input { font-size: 1.12rem; }
.dur-row { grid-template-columns: auto repeat(5, minmax(0, 1fr)); gap: 6px; align-items: center; margin-top: 2px; }
.dur-label { font-size: .78rem; color: var(--muted); font-weight: 600; padding-inline-end: 2px; }
.dur { grid-auto-flow: column; justify-content: center; align-items: baseline; gap: 2px; padding: 6px 2px; border-radius: 10px; }
.dur strong { font-size: .95rem; } .dur span { font-size: .7rem; }
.when-summary { padding: 8px 12px; gap: 6px; border-radius: 12px; }
.when-summary p { margin: 0; font-size: .9rem; }
.day-track { height: 6px; }
.dt-seg { top: -2px; bottom: -2px; }

.kid-pick { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.kid-opt { grid-template-columns: 44px minmax(0, 1fr) auto; grid-auto-flow: row; justify-items: start; align-items: center; text-align: start; gap: 2px 10px; padding: 8px 10px; border-radius: 14px; }
.kid-opt .kid-avatar { grid-row: span 2; }
.kid-opt > strong { font-size: .95rem; }
.kid-opt > span:not(.ko-check):not(.add-ic) { grid-column: 2; font-size: .8rem; }
.kid-opt.static { grid-template-columns: 44px minmax(0, 1fr); padding-inline-end: 34px; }
.kid-opt .age-step { grid-column: 2; margin-top: 0; grid-template-columns: 28px auto 28px; justify-content: start; width: auto; gap: 6px; }
.kid-opt .ts-btn.sm { width: 28px; height: 28px; }
.age-val { font-size: .85rem !important; min-width: 70px; text-align: center; }
.ko-check { position: static; grid-row: span 2; grid-column: 3; }
.kid-opt.add { grid-template-columns: 44px minmax(0, 1fr); min-height: 0; }
.kid-opt.add .add-ic { width: 44px; height: 44px; grid-row: auto; }
.ko-remove { top: 50%; transform: translateY(-50%); }
@media (max-width: 420px) { .kid-pick { grid-template-columns: 1fr; } }

/* Step transitions (RTL: "next" arrives from the left, "back" from the right) */
.wiz-body.anim-next { animation: wiz-in-next .38s cubic-bezier(.2,.8,.2,1) both; }
.wiz-body.anim-prev { animation: wiz-in-prev .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes wiz-in-next { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes wiz-in-prev { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.wiz-body.anim-next > *, .wiz-body.anim-prev > * { animation: wiz-item .42s cubic-bezier(.2,.8,.2,1) both; }
.wiz-body > *:nth-child(2) { animation-delay: .05s; } .wiz-body > *:nth-child(3) { animation-delay: .1s; } .wiz-body > *:nth-child(4) { animation-delay: .15s; }
@keyframes wiz-item { from { opacity: 0; transform: translateY(8px); } }
.wiz-steps li.current .wiz-dot { animation: dot-pop .45s cubic-bezier(.2,1.5,.4,1) both; }
.wiz-steps li.done .wiz-dot .icon { animation: dot-pop .4s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes dot-pop { from { transform: scale(.6); } to { transform: scale(1); } }
.wiz-leaving .wiz-body { animation: wiz-out .4s cubic-bezier(.4,0,.2,1) both; }
@keyframes wiz-out { to { opacity: 0; transform: translateX(-36px) scale(.98); } }
.btn.launching { pointer-events: none; }
.btn-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .wiz-body, .wiz-body > *, .wiz-dot, .wiz-leaving .wiz-body { animation: none !important; } }

/* ---------- Auth pages (photo scene + card) ---------- */
.scene-auth { overflow: visible; }
.scene-auth .scene-media { border-radius: inherit; overflow: hidden; }
.scene-auth .scene-body { z-index: 5; }
@media (min-width: 900px) {
  .scene-auth { min-height: calc(100dvh - 180px); }
  .scene-auth .scene-body { width: min(460px, 46%); margin-block: 32px; }
}
.auth-card { display: grid; gap: 14px; padding: 26px; border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(16, 20, 24, .14); animation: panel-in .6s cubic-bezier(.2,.8,.2,1) both; }
@media (max-width: 899px) { .scene-auth .scene-body { background: none; border: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; } .auth-card { padding: 20px 18px; } }
.auth-card .auth-logo { justify-self: start; display: block; }
.auth-card .auth-logo img { height: 46px; width: auto; }
.auth-card h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 1.9rem); }
.auth-sub { margin: -6px 0 2px; color: var(--muted); }
.auth-form { gap: 14px; }
.auth-row { display: flex; justify-content: flex-end; margin-top: -6px; font-size: .9rem; }
.auth-switch { margin: 0; text-align: center; color: var(--muted); }
.auth-switch a { font-weight: 700; }
.auth-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.auth-trust li { display: inline-flex; align-items: center; gap: 5px; }
.auth-trust .icon { width: 15px; height: 15px; color: var(--primary); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 46px; }
.pw-toggle { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pw-toggle:hover { background: var(--surface-2); color: var(--text); }
.pw-toggle .icon { width: 18px; height: 18px; }
/* dir=ltr inputs: the toggle stays on the visual left in RTL pages */
.pw-wrap .input[dir="ltr"] { padding-inline-end: 12px; padding-left: 46px; }
.pw-wrap .pw-toggle { inset-inline-end: auto; left: 6px; }

.role-cards { display: grid; gap: 10px; }
.role-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.role-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 16%, transparent); }
.role-art { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 10%, transparent); overflow: hidden; }
.role-illu { width: 96px; }
.role-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #EB6834; color: #fff; }
.role-badge .icon { width: 26px; height: 26px; }
.role-text { display: grid; gap: 3px; }
.role-text > span { color: var(--muted); font-size: .86rem; }
.role-text ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; font-size: .82rem; }
.role-text li { display: flex; align-items: center; gap: 4px; }
.role-text li .icon { width: 13px; height: 13px; color: var(--ok); }
.role-go { color: var(--primary); }

.reg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; position: relative; }
.reg-steps li { display: grid; justify-items: center; gap: 4px; text-align: center; position: relative; }
.reg-steps li:not(:last-child)::after { content: ""; position: absolute; top: 17px; inset-inline-start: calc(50% + 22px); inset-inline-end: calc(-50% + 22px); height: 2px; border-radius: 1px; background: var(--border); }
.reg-steps li.done:not(:last-child)::after { background: var(--primary); }
.rs-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); border: 2px solid var(--border); transition: background .3s, color .3s; }
.rs-dot .icon { width: 16px; height: 16px; }
.reg-steps li.current .rs-dot { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 18%, transparent); animation: dot-pop .45s cubic-bezier(.2,1.5,.4,1) both; }
.reg-steps li.done .rs-dot { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.rs-label { font-size: .76rem; font-weight: 700; color: var(--muted); }
.reg-steps li.current .rs-label { color: var(--text); }
.reg-step.anim-next > :not(.reg-steps) { animation: wiz-in-next .38s cubic-bezier(.2,.8,.2,1) both; }
.reg-step.anim-prev > :not(.reg-steps) { animation: wiz-in-prev .38s cubic-bezier(.2,.8,.2,1) both; }
.ts-display { position: relative; display: grid; place-items: center; min-width: 0; height: 32px; border-radius: 8px; }
.ts-value { font-size: 1.15rem; font-weight: 800; direction: ltr; letter-spacing: .02em; }
.ts-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; font-size: 16px; }
.ts-native::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ts-display:focus-within { outline: 2px solid var(--primary); outline-offset: 1px; }
.dur-row { grid-template-columns: auto repeat(5, minmax(0, 1fr)); }
@media (max-width: 420px) { .dur-label { display: none; } .dur-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.auth-row { margin-top: -4px; }
@media (max-width: 520px) {
  .role-card { grid-template-columns: 52px minmax(0, 1fr) 20px; gap: 10px; padding: 12px; }
  .role-art { width: 52px; height: 52px; border-radius: 14px; }
  .role-illu { width: 70px; }
  .role-badge { width: 40px; height: 40px; } .role-badge .icon { width: 20px; height: 20px; }
}

/* Shift mode v2: compact dial + emergency row, illustration out of the way */
.shift-illu { inset-inline-start: auto; inset-inline-end: -16px; bottom: auto; top: -8px; width: 170px; opacity: .45; z-index: 0; }
.shift-head, .shift-time, .shift-progress { z-index: 1; }
@media (min-width: 760px) { .shift-illu { width: 240px; inset-inline-end: 30%; top: -14px; opacity: .35; } }
.dial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dial { grid-template-columns: 44px minmax(0, 1fr); justify-items: start; text-align: start; align-items: center; gap: 0 10px; padding: 12px; }
.dial-ic { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
.dial-ic .icon { width: 20px; height: 20px; }
.dial-sub { direction: rtl; }
.sos-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sos { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 0 8px; padding: 10px 12px; border-radius: var(--radius); background: var(--danger-bg); color: var(--danger); text-decoration: none; border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); transition: transform .15s; }
.sos:active { transform: scale(.97); }
.sos .icon { grid-row: span 2; width: 20px; height: 20px; }
.sos strong { font-size: 1.1rem; line-height: 1.1; }
.sos span { font-size: .78rem; font-weight: 600; }
@media (max-width: 380px) { .sos { grid-template-columns: 1fr; justify-items: center; text-align: center; } .sos .icon { grid-row: auto; } }
.shift-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shift-tile.end { grid-column: 1 / -1; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 0 12px; }
.shift-tile.end .tile-ic { grid-row: span 2; margin: 0; }
@media (min-width: 760px) { .shift-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } .shift-tile.end { grid-column: auto; grid-template-columns: 1fr; } .shift-tile.end .tile-ic { grid-row: auto; margin-bottom: 4px; } }
.auth-form .auth-row { margin-top: -6px; position: relative; } .auth-form { row-gap: 14px; } .auth-form .auth-row { margin-top: 0; }
/* Day picker: 4 days + "pick a date", filling the row without scrolling */
.day-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr); overflow: visible; padding: 2px 0 4px; }
.day-card, .day-other { width: auto; min-width: 0; }
.day-other .dc-m { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- When: 24h clock axis ---------- */
.clock-axis { position: relative; padding: 26px 14px 0; }
.clock-axis .day-track { height: 10px; border-radius: 5px; }
.ax-tick { position: absolute; top: 100%; width: 1px; height: 5px; background: color-mix(in srgb, var(--text) 30%, transparent); transform: translateX(50%); }
.ax-tick.major { height: 8px; background: color-mix(in srgb, var(--text) 50%, transparent); }
.ax-labels { position: relative; height: 18px; margin-top: 10px; font-size: .68rem; color: var(--muted); }
.ax-labels span { position: absolute; top: 0; transform: translateX(50%); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; direction: ltr; }
.ax-labels .icon { width: 11px; height: 11px; }
.ax-labels span:nth-child(3) .icon { color: #E0A100; } .ax-labels span:first-child .icon, .ax-labels span:last-child .icon { color: #6C7BD8; }
.ax-pins { position: absolute; inset: 0 14px auto; height: 22px; }
.ax-pin { position: absolute; top: 0; transform: translateX(50%); display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); font-size: .72rem; font-weight: 800; direction: ltr; white-space: nowrap; box-shadow: 0 2px 6px color-mix(in srgb, var(--primary) 35%, transparent); }
.ax-pin .icon { width: 11px; height: 11px; }
.ax-pin::after { content: ""; position: absolute; bottom: -4px; left: 50%; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 1px; z-index: -1; }
.ax-pin.end { background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.ax-pin.end::after { background: var(--primary); }
.when-summary { padding-top: 6px; }
.when-summary > p { margin-top: 2px; }
/* RTL axis: positioned with physical right; edge labels stay inside */
.dt-seg { inset-inline-start: auto; left: auto; }
.ax-labels span.edge-r { transform: none; }
.ax-labels span.edge-l { transform: translateX(100%); }
@media (max-width: 440px) { .ax-labels span:nth-child(2), .ax-labels span:nth-child(4) { display: none; } }

/* ---------- Account: photo, choice cards, signature, payment cards ---------- */
.acc-avatar-img { object-fit: cover; padding: 0; }
.acc-photo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acc-photo-img { width: 84px; height: 84px; border-radius: 24px; object-fit: cover; border: 1px solid var(--border); background: var(--surface-2); flex: none; }
.acc-photo-empty { display: grid; place-items: center; color: var(--muted); }
.acc-photo-empty .icon { width: 34px; height: 34px; }
.acc-photo-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-photo-actions .small { flex-basis: 100%; }
.choice-cards { border: 0; padding: 0; margin: 0; }
.choice-cards legend { font-weight: 600; margin-bottom: 8px; }
.cc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.cc { position: relative; }
.cc input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cc span { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); font-weight: 600; font-size: .9rem; text-align: center; transition: border-color .2s, background .2s, color .2s; }
.cc span .icon { width: 22px; height: 22px; color: var(--muted); }
.cc input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
.cc input:checked + span .icon { color: var(--primary); }
.cc input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.addr-card.is-default { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.addr-info h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.addr-default { background: color-mix(in srgb, #F59E0B 18%, transparent); color: #B45309; }
.addr-actions { flex-direction: column; }
@media (min-width: 520px) { .addr-actions { flex-direction: row; } }
.med-decl { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.med-decl p { margin: 0; }
.sig-pad { position: relative; border: 1px dashed var(--border-strong, var(--border)); border-radius: 14px; background: var(--surface); touch-action: none; }
.sig-svg { display: block; width: 100%; height: auto; aspect-ratio: 320 / 140; cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.sig-svg path { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sig-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); pointer-events: none; }
.sig-line { position: absolute; inset-inline: 24px; bottom: 28px; border-bottom: 1px solid var(--border); pointer-events: none; }
.sig-clear { position: absolute; top: 4px; inset-inline-end: 4px; }
.pay-cards { display: grid; gap: 14px; }
@media (min-width: 700px) { .pay-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay-card { display: grid; gap: 10px; padding: 12px; border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: row-in .4s ease both; }
.pay-card.is-primary { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.pc-face { display: grid; gap: 14px; padding: 16px 18px; border-radius: 16px; color: #fff; min-height: 128px; align-content: space-between;
  background: radial-gradient(220px 120px at 100% 0%, rgba(255,255,255,.2), transparent 70%), linear-gradient(135deg, #1E3A5F, #0A6DA8); }
.pc-brand { font-weight: 800; letter-spacing: .02em; }
.pc-num { font-size: 1.25rem; font-weight: 700; letter-spacing: .12em; text-align: end; }
.pc-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; opacity: .9; }
.pc-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pay-card.add { place-items: center; align-content: center; min-height: 170px; border-style: dashed; cursor: pointer; box-shadow: none; font: inherit; color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.pay-card.add:hover { border-color: var(--primary); }

/* ---------- Picture choices: gender options, pets row (form-field height) ---------- */
.gender-choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.gender-choice legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.gc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gc { position: relative; cursor: pointer; min-width: 0; }
.gc input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gc-box { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, background .2s, box-shadow .2s; }
.gc:hover .gc-box { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.gc-art { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; }
.gc-art svg { display: block; border-radius: 50%; }
.gc-label { flex: 1; font-weight: 600; }
.gc-check { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border); color: transparent; flex: none; transition: background .2s, border-color .2s, color .2s; }
.gc-check .icon { width: 12px; height: 12px; }
.gc input:checked + .gc-box { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.gc input:checked + .gc-box .gc-label { color: var(--primary); }
.gc input:checked + .gc-box .gc-check { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.gc input:focus-visible + .gc-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.pets-card { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; position: relative; transition: border-color .2s, background .2s; }
.pets-card:has(input:checked) { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.pets-art-wrap { display: grid; place-items: center; width: 42px; height: 34px; border-radius: 10px; background: color-mix(in srgb, #F59E0B 14%, var(--surface)); flex: none; }
.pets-text { flex: 1; font-weight: 600; }

/* ---------- Profile photo: tap to change; initials when there is no photo (same as the app) ---------- */
.acc-avatar { border-radius: 50%; letter-spacing: .02em; }
.acc-photo { display: flex; align-items: center; gap: 16px; }
.acc-photo-btn { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; flex: none; }
.acc-photo-btn .acc-photo-img { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; }
.acc-photo-initials { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--primary) 35%, transparent); color: var(--primary); font-weight: 800; font-size: 2rem; }
.acc-photo-btn:hover .acc-photo-img { filter: brightness(.95); }
.acc-photo-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.acc-photo-btn.loading .acc-photo-img { opacity: .5; }
.acc-photo-badge { position: absolute; bottom: 0; inset-inline-start: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); border: 3px solid var(--surface); }
.acc-photo-badge .icon { width: 14px; height: 14px; }
.acc-photo-text { display: grid; gap: 2px; justify-items: start; }
.acc-photo-text strong { font-size: 1.1rem; }
.link-btn { padding: 0; border: 0; background: none; color: var(--danger); font: inherit; cursor: pointer; text-decoration: underline; }
.addr-locate { margin-top: 8px; }
.addr-exact { margin-bottom: 4px; background: color-mix(in srgb, #16A34A 14%, transparent); color: #15803D; }

/* Saving layer: dim + spinner, then a green check (matches the app) */
.save-layer { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(15, 23, 42, .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.save-layer.on { opacity: 1; pointer-events: auto; }
.save-spin { width: 52px; height: 52px; border-radius: 50%; border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; animation: save-spin .8s linear infinite; }
.save-done { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #16A34A; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); animation: save-pop .35s cubic-bezier(.2,1.6,.4,1) both; }
.save-done .icon { width: 32px; height: 32px; stroke-width: 3; }
@keyframes save-spin { to { transform: rotate(360deg); } }
@keyframes save-pop { from { transform: scale(.6); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .save-spin { animation-duration: 2s; } .save-done { animation: none; } }
/* <button> does not inherit the page font: the photo circle's initials must use Heebo like the side card. */
.acc-photo-btn, .acc-photo-btn .acc-photo-initials { font-family: inherit; letter-spacing: .02em; line-height: 1; }
/* Form controls use the page font everywhere (browsers default buttons to the system font). */
button, input, select, textarea { font-family: inherit; }

/* ---------- Sitter week (one row per day) ---------- */
.week-grid { display: grid; gap: 8px; }
.week-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .15s, background .15s; }
.week-row.on { border-color: color-mix(in srgb, var(--ok, #16a34a) 45%, var(--border)); background: color-mix(in srgb, var(--ok, #16a34a) 6%, var(--surface)); }
.week-day { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 40px; }
.week-day input { position: absolute; opacity: 0; pointer-events: none; }
.week-check { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--border-strong, var(--border)); color: transparent; transition: background .15s, border-color .15s; }
.week-check svg { width: 14px; height: 14px; }
.week-day input:checked + .week-check { background: var(--ok, #16a34a); border-color: var(--ok, #16a34a); color: #fff; }
.week-day input:focus-visible + .week-check { outline: 2px solid var(--primary); outline-offset: 2px; }
.week-times { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.week-times select { width: auto; min-width: 88px; }
.week-note { min-width: 52px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: .9rem; cursor: pointer; color: var(--text); }
.chip-btn:hover { border-color: var(--primary); }
.chip-btn svg { width: 14px; height: 14px; }

/* ---------- Blue check (approved sitters) ---------- */
.blue-check { flex: none; display: inline-block; vertical-align: -3px; }
.name-row { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header chat button + messages list ---------- */
.chat-btn { position: relative; }
.chat-btn.open { background: var(--surface-2); color: var(--primary); }
.chat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chat-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: calc(var(--radius) + 2px); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.chat-row:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); transform: translateY(-1px); }
.chat-row.unread { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.chat-av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); }
.chat-av img { width: 100%; height: 100%; object-fit: cover; }
.chat-initial { font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.chat-text { display: grid; gap: 2px; min-width: 0; }
.chat-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-when { color: var(--muted); font-size: .8rem; }
.chat-preview { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row:not(.unread) .chat-preview { color: var(--muted); }
.chat-sub { color: var(--muted); font-size: .8rem; }
.chat-open { color: var(--ok); font-weight: 700; }
.chat-closed { color: var(--muted); }
.chat-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font-size: .8rem; font-weight: 800; display: grid; place-items: center; }

/* ---------- "The sitter is here" ---------- */
.arrival-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(10, 16, 14, .55); display: grid; place-items: center; padding: 16px; animation: fade-in .2s ease both; }
.arrival-backdrop.closing { animation: fade-out .2s ease both; }
.arrival-card { position: relative; width: min(420px, 100%); background: var(--surface); border-radius: 28px; padding: 34px 24px 22px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.3); overflow: hidden; animation: arrival-pop .45s cubic-bezier(.2,.9,.25,1.25) both; }
.arrival-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(135deg, #22C55E, #0F7A37); }
.arrival-ic { position: relative; width: 84px; height: 84px; margin: 22px auto 12px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #16A34A; box-shadow: 0 10px 26px rgba(22, 163, 74, .35); animation: arrival-bounce 1.2s ease .3s 2; }
.arrival-ic .icon { width: 40px; height: 40px; }
.arrival-card h2 { position: relative; margin: 6px 0 4px; font-size: 1.5rem; }
.arrival-card p { position: relative; margin: 0 0 18px; color: var(--muted); }
.arrival-actions { position: relative; display: flex; gap: 10px; justify-content: center; }
.arrival-burst span { position: absolute; top: 96px; left: 50%; width: 8px; height: 14px; border-radius: 3px; background: hsl(calc(var(--i) * 27), 85%, 60%); transform-origin: 50% 0; animation: burst 1.1s cubic-bezier(.15,.7,.3,1) both; --a: calc(var(--i) * 25.7deg); }
@keyframes burst { from { opacity: 1; transform: rotate(var(--a)) translateY(0); } to { opacity: 0; transform: rotate(var(--a)) translateY(150px) rotate(240deg); } }
@keyframes arrival-pop { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@keyframes arrival-bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } 60% { transform: translateY(0); } 80% { transform: translateY(-4px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .arrival-card, .arrival-ic, .arrival-burst span, .arrival-backdrop { animation: none; } }
a.icon-btn.chat-btn { color: inherit; text-decoration: none; }

/* /messages: room between the header block and the list */
.nt-page > .nt-hero + .chat-list, .nt-page > .nt-hero + .nt-empty { margin-top: var(--space-4); }

/* ---------- Sitter: what the child is doing ---------- */
.doing { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.doing-btn { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); font: inherit; font-weight: 700; font-size: .9rem; color: var(--text); cursor: pointer; transition: transform .12s, border-color .15s, background .15s; }
.doing-btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.doing-btn.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.doing-ic { display: grid; place-items: center; }

/* ----- Parent during the shift: what each child is doing now ----- */
.now-sec { padding: 16px; border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.now-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: var(--radius-pill); background: color-mix(in srgb, #16A34A 13%, transparent); color: #15803D; font-weight: 800; font-size: .8rem; }
.live-chip .pulse { background: #16A34A; }
.now-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.now-kid { --k: #94A3B8; display: grid; justify-items: center; gap: 3px; padding: 16px 10px 12px; border-radius: 18px; text-align: center;
  background: color-mix(in srgb, var(--k) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--k) 30%, transparent); animation: row-in .4s ease both; }
.now-kid svg { width: 58px; height: 58px; }
.now-kid strong { font-size: 1.05rem; margin-top: 4px; }
.now-label { font-weight: 800; color: var(--k); }
.now-at { color: var(--muted); }
.now-q { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--surface-2, #F1F5F9); color: var(--muted); font-size: 1.6rem; font-weight: 800; }
.k-sleeping { --k: #6366F1; } .k-awake { --k: #F59E0B; } .k-playing { --k: #16A34A; } .k-tv { --k: #0EA5E9; } .k-eating { --k: #F43F5E; } .k-other, .k-bath { --k: #A855F7; }
.now-feed-wrap { border-top: 1px solid var(--border); padding-top: 10px; }
.now-feed-wrap h3 { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.now-feed-wrap:has(.now-feed:empty) { display: none; }
.now-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.now-feed li { --k: #94A3B8; position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; }
.now-feed li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 6px; top: 22px; bottom: -8px; width: 2px; background: var(--border); }
.now-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 20%, transparent); }
.now-feed time { color: var(--muted); font-size: .85rem; }
.parent-shift .shift-head h1 { display: flex; align-items: center; gap: 8px; }

/* Admin – bank accounts */
.ok-text { color: #15803D; font-weight: 700; }
.danger-text { color: #B91C1C; font-weight: 700; }

/* Child photo on "הילדים שלי": click the circle to upload. */
.kid-photo { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.kid-photo-btn .kid-photo-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.kid-photo-btn .kid-avatar { width: 72px; height: 72px; }
.kid-photo-btn .acc-photo-badge { width: 26px; height: 26px; }
.kid-photo-btn.loading .kid-avatar, .kid-photo-btn.loading .kid-photo-img { opacity: .5; }

/* ---------- Admin: policy page (one topic at a time) ---------- */
.pol-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.pol-top h1 { margin: 0; }
.pol-top p { flex-basis: 100%; margin: 0; }
.pol { display: flex; flex-direction: column; gap: 14px; padding-bottom: 90px; }
/* Topics as a tab row above the content (the admin menu is already on the side). */
.pol-nav { position: sticky; top: calc(var(--nav-h, 64px) + 8px); z-index: 5; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 5px; }
.pol-nav::-webkit-scrollbar { display: none; }
.pol-nav button { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); cursor: pointer; font: inherit; font-weight: 600; white-space: nowrap; }
.pol-nav button:hover { background: var(--surface-2); color: var(--text); }
.pol-nav button[aria-current="page"] { background: var(--primary); color: var(--on-primary, #fff); }
.pol-nav button .icon { width: 18px; height: 18px; flex: none; }
.pol-nav-text span { display: none; }
.pol-content { display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: calc(var(--nav-h, 64px) + 12px); }
.pol-head { display: flex; align-items: center; gap: 12px; }
.pol-head h2 { margin: 0; font-size: 1.35rem; }
.pol-head p { margin: 2px 0 0; }
.pol-head-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); flex: none; }
.pol-head-ic .icon { width: 22px; height: 22px; }
.pol-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 18px 10px; }
.pol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 560px) { .pol-grid { grid-template-columns: 1fr; } }
.pol-card h3 { font-size: 1rem; margin: 12px 0 4px; }
.pol-card > .notice { margin: 6px 0; }
.pol-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.pol-card h3 + .pol-row, .pol-card .notice + .pol-row { border-top: 0; }
.pol-row.changed { box-shadow: inset 3px 0 0 var(--primary); padding-inline-start: 10px; margin-inline-start: -10px; }
.pol-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; }
.pol-label strong { font-size: .95rem; }
.pol-label span { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.pol-field { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.pol-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; }
.pol-input:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.pol-input .input { width: 96px; border: 0; background: none; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; padding: 8px 6px; min-height: 0; box-shadow: none; outline: none; }
.pol-input input[type="time"] { width: 120px; }
.pol-input .input.bad { color: var(--danger); }
.pol-unit { padding: 0 10px; font-size: .85rem; color: var(--muted); background: var(--surface-2); align-self: stretch; display: grid; place-items: center; border-inline-start: 1px solid var(--border); min-width: 44px; }
.pol-hint { font-size: .75rem; color: var(--muted); }
.pol-row-choice { flex-direction: column; align-items: stretch; }
.pol-choices { display: grid; gap: 8px; }
.pol-choice { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; }
.pol-choice:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
.pol-choice input { margin-top: 4px; accent-color: var(--primary); }
.pol-choice-body { display: flex; flex-direction: column; gap: 2px; }
.pol-choice-body span { font-size: .83rem; color: var(--muted); line-height: 1.45; }
.pol-switch { position: relative; width: 46px; height: 26px; flex: none; }
.pol-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.pol-switch span { position: absolute; inset: 0; border-radius: 13px; background: var(--border); transition: background .2s; }
.pol-switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.pol-switch input:checked + span { background: var(--primary); }
.pol-switch input:checked + span::after { transform: translateX(-20px); }
[dir="ltr"] .pol-switch input:checked + span::after { transform: translateX(20px); }
.pol-switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pol-example { background: var(--surface); border: 1px dashed var(--primary); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 8px; }
.pol-ex-head { display: flex; align-items: center; gap: 8px; }
.pol-ex-head .icon { color: var(--primary); }
.pol-ex-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pol-ex-line strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pol-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + var(--safe-b, 0px)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.pol-bar-in { max-width: var(--container, 1100px); margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.pol-reason { flex: 1; min-width: 0; }
.pol-tpls { display: grid; gap: 6px; margin-top: 6px; }
.pol-tpl { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; }
.pol-tpl summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.pol-tpl summary .icon { color: var(--muted); width: 16px; height: 16px; }
.pol-tpl-key { margin-inline-start: auto; font-size: .72rem; color: var(--muted); }
.pol-tpl[open] summary { margin-bottom: 8px; }
@media (max-width: 560px) {
  .pol-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .pol-field { align-items: flex-start; }
  .pol-bar-in { flex-wrap: wrap; }
  .pol-reason { flex-basis: 100%; order: 3; }
}

/* Checkout: what was chosen in the search, as a summary (changing it = back to the search). */
.co-sum { display: grid; gap: 4px; }
.co-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.co-sum-head h2 { margin: 0; }
.co-sum-row { display: grid; grid-template-columns: 32px 76px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.co-sum-head + .co-sum-row { border-top: 0; }
.co-sum-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); }
.co-sum-ic .icon { width: 17px; height: 17px; }
.co-sum-label { color: var(--muted); font-size: .9rem; }
.co-sum-row strong { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Admin: users list and user page ---------- */
.ua { border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--muted); }
.ua-md { width: 42px; height: 42px; font-size: 16px; }
.ua-lg { width: 76px; height: 76px; font-size: 28px; }
.ua-parent { background: linear-gradient(135deg, #0EA5E9, #0369A1); }
.ua-sitter { background: linear-gradient(135deg, #EC4899, #BE185D); }
.ua-admin { background: linear-gradient(135deg, #475569, #1E293B); }
.urole { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text); white-space: nowrap; }
.urole .icon { width: 14px; height: 14px; }
.urole-parent { background: color-mix(in srgb, #0EA5E9 14%, var(--surface)); color: #0369A1; }
.urole-sitter { background: color-mix(in srgb, #EC4899 14%, var(--surface)); color: #BE185D; }
:root[data-theme="dark"] .urole-parent { color: #7DD3FC; }
:root[data-theme="dark"] .urole-sitter { color: #F9A8D4; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .urole-parent { color: #7DD3FC; } :root[data-theme="system"] .urole-sitter { color: #F9A8D4; } }
.ul-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ul-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0; }
.ul-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ul-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: var(--radius-pill); padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ul-chip[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.ul-chip-n { font-size: .78rem; padding: 0 7px; border-radius: 10px; background: color-mix(in srgb, currentColor 14%, transparent); }
.ul-search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); padding: 0 12px; min-width: 260px; flex: 1; max-width: 380px; }
.ul-search .icon { color: var(--muted); }
.ul-search .input { border: 0; background: none; box-shadow: none; padding: 9px 0; min-height: 0; outline: none; }
.ul-search:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.ul-list { display: grid; gap: 8px; }
/* Fixed columns, so every row lines up the same way whatever its tags and buttons. */
.ul-row { display: grid; grid-template-columns: 42px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; min-width: 0; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ul-row:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.ul-main { display: flex; flex-direction: column; min-width: 0; }
.ul-name { font-size: 1rem; }
.ul-sub { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 5px; justify-content: flex-start; }
.ul-sub .icon { width: 13px; height: 13px; flex: none; }
.ul-sub bdi { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ul-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ul-meta { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--muted); }
.ul-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ul-meta .icon { width: 13px; height: 13px; }
.ul-act { justify-self: stretch; }
.ul-act .user-actions { flex-wrap: nowrap; justify-content: flex-end; gap: 4px; }
.ul-act .user-actions.compact .btn { min-width: 32px; min-height: 32px; padding: 5px 7px; }
.ul-tags { justify-content: flex-start; }
.user-support-form { display: flex; flex-direction: column; gap: 16px; }
.user-support-recipient { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.user-support-recipient > div { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.user-support-recipient strong { font-size: .9rem; overflow-wrap: anywhere; }
.user-support-recipient span:not(.ua) { color: var(--muted); font-size: .75rem; }
.user-support-recipient > .icon { color: var(--primary); width: 20px; height: 20px; }
.user-support-form textarea { min-height: 120px; resize: vertical; }
.user-support-hint { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.7; }
.user-support-hint > .icon { width: 15px; height: 15px; margin-top: 3px; }
.user-support-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .ul-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .ul-tags { grid-column: 2 / 4; }
  .ul-meta { grid-column: 2 / 4; flex-direction: row; gap: 12px; flex-wrap: wrap; }
  .ul-act { grid-column: 2 / 4; }
  .ul-search { max-width: none; min-width: 0; flex-basis: 100%; }
}
.up-head { display: flex; gap: 18px; align-items: flex-start; }
.up-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.up-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.up-name-row h1 { margin: 0; font-size: 1.6rem; }
.up-contact { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .92rem; }
.up-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.up-contact a:hover { color: var(--primary); }
.up-contact .icon { width: 15px; height: 15px; color: var(--muted); }
.up-who .user-actions { margin-top: 4px; }
.up-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.up-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.up-tile-ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); }
.up-tile strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.up-tile span:last-child { font-size: .82rem; color: var(--muted); }
.up-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.up-col { display: grid; gap: 14px; }
.up-card h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 6px; }
.up-card h2 .icon { color: var(--primary); width: 18px; height: 18px; }
.up-info { display: grid; grid-template-columns: 24px 120px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); font-size: .93rem; }
.up-card h2 + .up-info { border-top: 0; }
.up-info-ic .icon { width: 15px; height: 15px; color: var(--muted); }
.up-info-l { color: var(--muted); }
.up-info-v { font-weight: 600; overflow-wrap: anywhere; }
.up-card-actions { margin-top: 8px; }
.up-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.up-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--surface-2); font-size: .88rem; font-weight: 600; }
.up-chip .icon { width: 14px; height: 14px; color: var(--primary); }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.up-list li { padding: 6px 0; border-top: 1px solid var(--border); }
.up-list li:first-child { border-top: 0; }
.up-timeline { list-style: none; margin: 0; padding: 0 14px 0 0; border-inline-start: 2px solid var(--border); display: grid; gap: 10px; }
.up-timeline li { position: relative; padding-inline-start: 4px; }
.up-timeline li::before { content: ""; position: absolute; inset-inline-start: -21px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.up-tl-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.up-timeline p { margin: 2px 0 0; }
.role-opts { display: grid; gap: 8px; }
.role-opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; }
.role-opt:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); }
.role-opt.current { opacity: .6; cursor: default; }
.role-opt input { margin-top: 4px; accent-color: var(--primary); }
.role-opt-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); flex: none; }
.role-opt-body { display: flex; flex-direction: column; gap: 3px; }
.role-opt-body span { font-size: .85rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) {
  .up-grid { grid-template-columns: 1fr; }
  .up-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .up-head { flex-direction: column; align-items: center; text-align: center; }
  .up-name-row, .up-contact { justify-content: center; }
  .up-info { grid-template-columns: 24px 100px minmax(0, 1fr); }
}

/* Admin: viewing a document / comparing the ID photo with the selfie video. */
.doc-view { display: grid; place-items: center; }
.doc-media { max-width: 100%; max-height: 70vh; border-radius: var(--radius-sm); background: #000; }
.doc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-compare figure { margin: 0; display: grid; gap: 6px; justify-items: center; }
.doc-compare figcaption { font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) { .doc-compare { grid-template-columns: 1fr; } }

/* ---------- Admin: SMS page ---------- */
.sms-svg { width: 20px; height: 20px; flex: none; }
.sms-h { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.sms-h .sms-svg { width: 22px; height: 22px; color: var(--primary); }
.sms-card { box-shadow: var(--shadow); }
.mail-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Admin → אימייל → תבניות */
.mail-tpl-list { display: grid; gap: 10px; }
.mail-tpl-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--border); }
.mail-tpl-item:hover { border-color: var(--primary); }
.mail-tpl-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sky-soft); color: var(--primary); flex: none; }
.mail-tpl-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.mail-tpl-text > span { overflow: hidden; text-overflow: ellipsis; }
.mail-tpl-go { color: var(--primary); }
.mail-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mail-editor { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .mail-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mail-preview-card { position: sticky; top: 16px; } }
/* The preview copies the real email (fixed light colours, like a mail app). */
.mail-pv { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.mail-pv-subject { padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mail-pv-canvas { background: #F0F2F5; padding: 20px 12px; text-align: center; font-family: Arial, 'Segoe UI', Helvetica, sans-serif; }
.mail-pv-logo { width: 130px; height: auto; margin: 0 auto 16px; display: block; }
.mail-pv-card { background: #fff; border-radius: 16px; padding: 24px 20px; text-align: right; color: #101418; max-width: 560px; margin: 0 auto; }
.mail-pv-h { margin: 0 0 14px; font-size: 20px; line-height: 1.35; color: #101418; }
.mail-pv-p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #101418; }
.mail-pv-btn-row { text-align: center; margin: 6px 0 16px; }
.mail-pv-btn { display: inline-block; padding: 12px 24px; border-radius: 10px; background: #0A6DA8; color: #fff; font-weight: bold; font-size: 15px; }
.mail-pv-fallback { margin: 0 0 12px; font-size: 12px; color: #5B6470; word-break: break-all; }
.mail-pv-fallback span { color: #0A6DA8; text-decoration: underline; }
.mail-pv-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #E5E7EB; font-size: 13px; line-height: 1.5; color: #5B6470; white-space: pre-line; }
.mail-pv-foot { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: #5B6470; }
.sms-notice-ic { margin-top: 2px; }
.sms-hero { --tone: var(--muted); --tone-bg: var(--surface-2); border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--border)); border-inline-start: 6px solid var(--tone); background: linear-gradient(135deg, var(--tone-bg), var(--surface) 70%); border-radius: var(--radius-lg, 16px); padding: var(--space-4); display: grid; gap: var(--space-4); box-shadow: var(--shadow); }
.sms-hero.is-live { --tone: var(--ok); --tone-bg: var(--ok-bg); }
.sms-hero.is-test { --tone: var(--warn); --tone-bg: var(--warn-bg); }
.sms-hero.is-down { --tone: var(--danger); --tone-bg: var(--danger-bg); }
.sms-hero-top { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.sms-hero-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--tone); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px color-mix(in srgb, var(--tone) 35%, transparent); }
.sms-hero-badge .sms-svg { width: 30px; height: 30px; }
.sms-hero.is-live .sms-hero-badge { animation: sms-pulse 2.4s ease-out infinite; }
.sms-hero-text { flex: 1; min-width: 220px; }
.sms-hero-text h2 { margin: 0 0 2px; color: var(--tone); font-size: 1.35rem; }
.sms-hero-text p { margin: 0; }
.sms-hero-time { color: var(--muted); margin-top: 4px !important; }
.sms-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sms-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.sms-check-ic { width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.sms-check-body { display: grid; min-width: 0; flex: 1; }
.sms-check-body strong { font-size: .92rem; }
.sms-check-body span { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sms-check-mark { flex: none; display: grid; }
.sms-check.good .sms-check-mark, .sms-check.good .sms-check-ic { color: var(--ok); }
.sms-check.good .sms-check-ic { background: var(--ok-bg); }
.sms-check.bad .sms-check-mark, .sms-check.bad .sms-check-ic { color: var(--danger); }
.sms-check.bad .sms-check-ic { background: var(--danger-bg); }
.sms-check.bad { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.sms-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: sms-rot .8s linear infinite; }
.sms-spin.sm { width: 18px; height: 18px; border-width: 2px; border-color: var(--border); border-top-color: var(--primary); }
.sms-hero.is-checking .sms-hero-badge { background: var(--primary); }
.sms-tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface-2); border-radius: var(--radius-pill, 999px); overflow-x: auto; width: fit-content; max-width: 100%; }
.sms-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: var(--radius-pill, 999px); background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sms-tab[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.sms-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sms-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.sms-kpi { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.sms-kpi .sms-svg { width: 32px; height: 32px; padding: 6px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.sms-kpi.good .sms-svg { background: var(--ok-bg); color: var(--ok); }
.sms-kpi.bad .sms-svg { background: var(--danger-bg); color: var(--danger); }
.sms-kpi.warn .sms-svg { background: var(--warn-bg); color: var(--warn); }
.sms-kpi strong { display: block; font-size: 1.5rem; line-height: 1.1; }
.sms-kpi span { font-size: .85rem; color: var(--muted); }
.sms-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.sms-limit { padding: 12px; border-radius: var(--radius); background: var(--surface-2); display: grid; gap: 2px; }
.sms-limit strong { font-size: 1.3rem; }
.sms-limit span { font-size: .82rem; color: var(--muted); }
.sms-find { display: grid; grid-template-columns: 1fr 180px; gap: 8px; }
.sms-people { max-height: 300px; overflow: auto; display: grid; gap: 6px; padding: 2px; }
.sms-person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.sms-person.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.sms-person input { width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.sms-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); flex: none; }
.sms-person-t { flex: 1; display: grid; min-width: 0; }
.sms-person-t span { font-size: .82rem; color: var(--muted); }
.sms-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sms-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.sms-tpl { padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); }
@keyframes sms-rot { to { transform: rotate(360deg); } }
@keyframes sms-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 16px transparent; } }
@media (max-width: 560px) { .sms-find { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sms-hero.is-live .sms-hero-badge, .sms-spin { animation: none; } }

.sms-log .sms-day th{background:var(--surface-2,#f4f6f8);color:var(--muted,#5b6670);font-size:.85rem;text-align:start;padding:.5rem .9rem;font-weight:700}
.dev-list,.dev-history{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}
.dev-row{display:flex;align-items:center;gap:.8rem;padding:.8rem;border:1px solid var(--border,#e3e7ea);border-radius:14px;background:var(--surface,#fff)}
.dev-row.is-current{border-color:#2e9e62;background:#f1faf5}
.dev-row .dev-main{flex:1;min-width:0;display:grid;gap:.15rem}
.dev-ic{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#eef2f6;color:#334}
.dev-ic.sm{width:28px;height:28px;border-radius:8px}
.dev-ic .icon{width:20px;height:20px}.dev-ic.sm .icon{width:15px;height:15px}
.dev-badge{margin-inline-start:.5rem;padding:.1rem .5rem;border-radius:99px;background:#2e9e62;color:#fff;font-size:.72rem;font-weight:700}
.dev-history li{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;font-size:.92rem}
.dev-h{display:flex;align-items:center;gap:.4rem;margin:1rem 0 .5rem;font-size:1rem}
.dev-panel .row{margin-top:.8rem}
.sms-log tbody tr:not(.sms-day):hover{background:rgba(0,0,0,.025)}

.audit-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.7rem;align-items:end;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1rem;margin:1rem 0}
.audit-filter-actions{display:flex;gap:.5rem}
.audit-day h3{font-size:.95rem;color:var(--muted);margin:1.2rem 0 .5rem}
.audit-item{display:flex;gap:.8rem;background:var(--surface);border:1px solid var(--border);border-inline-start:4px solid var(--ok);border-radius:12px;padding:.8rem 1rem;margin-bottom:.6rem}
.audit-item.sev-warn{border-inline-start-color:var(--warn)}
.audit-item.sev-danger{border-inline-start-color:var(--danger)}
.audit-ic{flex:none;width:38px;height:38px;border-radius:50%;background:var(--ok-bg);color:var(--ok);display:grid;place-items:center}
.sev-warn .audit-ic{background:var(--warn-bg);color:var(--warn)}
.sev-danger .audit-ic{background:var(--danger-bg);color:var(--danger)}
.audit-ic svg{width:20px;height:20px}
.audit-main{min-width:0;flex:1}
.audit-head{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}
.audit-head time{margin-inline-start:auto}
.audit-desc{margin:.25rem 0}
.audit-meta{display:flex;flex-wrap:wrap;gap:.3rem 1.2rem;color:var(--muted);margin:0}
.audit-reason{margin:.3rem 0 0}
.audit-details{margin-top:.4rem}
.audit-details summary{cursor:pointer;color:var(--primary);font-size:.85rem}
.audit-prefs{margin-top:1.5rem}
.dev-cell{display:inline-flex;align-items:center;gap:.4rem}
.dev-cell svg{width:18px;height:18px;color:var(--muted)}
.dev-table td{vertical-align:middle}

.auth-card [hidden]{display:none !important}
.login-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.7rem}
.login-opt{display:flex;align-items:center;gap:.7rem;border:1px solid var(--border);border-radius:12px;padding:.8rem 1rem;cursor:pointer;background:var(--surface)}
.login-opt:has(input:checked){border-color:var(--primary);background:var(--ok-bg)}
.login-opt-ic{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--bg,#fff);color:var(--primary)}
.login-opt-text{display:flex;flex-direction:column}
.seg{display:flex;gap:.25rem;padding:.25rem;background:var(--surface);border:1px solid var(--border);border-radius:999px;margin-bottom:1rem}
.seg-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.45rem .8rem;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .15s,color .15s}
.seg-btn svg{width:16px;height:16px}
.seg-btn:hover{color:var(--text,inherit)}
.seg-btn[aria-selected=true]{background:var(--primary);color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.seg-btn:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* ==========================================================================
   Admin console 2027 – one design system for every admin page.
   Tokens (--a-*) live on <html class="is-admin-console"> so dialogs and menus
   opened from admin pages share them. No fixed colours inside components.
   ========================================================================== */
:root.is-admin-console {
  --a-canvas: #F3F5F8; --a-surface: #FFFFFF; --a-sunken: #F7F9FB; --a-hover: #F1F4F8;
  --a-line: #E3E8EE; --a-line-strong: #CDD5DE;
  --a-text: #101418; --a-muted: #5B6673; --a-faint: #8A949F;
  --a-brand: #0A6DA8; --a-brand-hover: #085A8C; --a-brand-soft: #E7F1F8; --a-on-brand: #FFFFFF;
  --a-danger: #B42318; --a-danger-bg: #FEF1EF;
  --a-warn: #8A5A00; --a-warn-bg: #FFF5DD; --a-warn-line: #E0A526;
  --a-ok: #17733E; --a-ok-bg: #E9F6EE; --a-live: #16955A;
  --a-info: #0A6DA8; --a-info-bg: #E7F1F8;
  --a-neutral: #475467; --a-neutral-bg: #F1F3F6;
  --a-violet: #6D4FD1; --a-star: #D99A06;
  --a-av-parent: #2A6FCC; --a-av-sitter: #BC3F72; --a-av-admin: #475569; --a-av-x: #64748B;
  --a-r-ctl: 8px; --a-r-card: 12px; --a-r-dialog: 16px;
  --a-shadow-raised: 0 4px 12px rgba(16, 24, 40, .08);
  --a-shadow-dialog: 0 20px 48px rgba(16, 24, 40, .22);
  --a-ease: cubic-bezier(.2, .8, .2, 1);
  --a-ctl-h: 36px;
}
:root.is-admin-console[data-theme="dark"] {
  --a-canvas: #0E1113; --a-surface: #171B1E; --a-sunken: #1C2125; --a-hover: #20262B;
  --a-line: #283037; --a-line-strong: #38424B;
  --a-text: #EEF1F4; --a-muted: #9AA5AF; --a-faint: #75808A;
  --a-brand: #6CC6F2; --a-brand-hover: #8FD3F6; --a-brand-soft: #15303E; --a-on-brand: #06202D;
  --a-danger: #FF9C8C; --a-danger-bg: #3A1F1B;
  --a-warn: #F5C86A; --a-warn-bg: #33291A; --a-warn-line: #C9922A;
  --a-ok: #7FD6A0; --a-ok-bg: #17301F; --a-live: #3DBE7E;
  --a-info: #8FD3F6; --a-info-bg: #15303E;
  --a-neutral: #B4BEC8; --a-neutral-bg: #23292E;
  --a-violet: #B4A2F0; --a-star: #F2B52E;
  --a-shadow-raised: 0 6px 18px rgba(0, 0, 0, .45);
  --a-shadow-dialog: 0 24px 56px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
  :root.is-admin-console[data-theme="system"] {
    --a-canvas: #0E1113; --a-surface: #171B1E; --a-sunken: #1C2125; --a-hover: #20262B;
    --a-line: #283037; --a-line-strong: #38424B;
    --a-text: #EEF1F4; --a-muted: #9AA5AF; --a-faint: #75808A;
    --a-brand: #6CC6F2; --a-brand-hover: #8FD3F6; --a-brand-soft: #15303E; --a-on-brand: #06202D;
    --a-danger: #FF9C8C; --a-danger-bg: #3A1F1B;
    --a-warn: #F5C86A; --a-warn-bg: #33291A; --a-warn-line: #C9922A;
    --a-ok: #7FD6A0; --a-ok-bg: #17301F; --a-live: #3DBE7E;
    --a-info: #8FD3F6; --a-info-bg: #15303E;
    --a-neutral: #B4BEC8; --a-neutral-bg: #23292E;
    --a-violet: #B4A2F0; --a-star: #F2B52E;
    --a-shadow-raised: 0 6px 18px rgba(0, 0, 0, .45);
    --a-shadow-dialog: 0 24px 56px rgba(0, 0, 0, .6);
  }
}

/* ---------- Page chrome ---------- */
.is-admin-console body { background: var(--a-canvas); color: var(--a-text); }
.is-admin-console #footer { display: none; }
@media (min-width: 900px) { .is-admin-console .topnav { display: none !important; } .is-admin-console .topbar-actions { margin-inline-start: auto !important; } }
.is-admin-console .container:has(> .admin-layout) { max-width: min(1520px, 100% - 32px); }
.admin-layout { --adm-gap: 16px; gap: 24px; padding-block: 8px 32px; font-size: 14px; line-height: 1.5; }
.admin-body { min-width: 0; width: 100%; max-width: 1240px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--adm-gap); align-content: start; }
.admin-layout > * { min-width: 0; }
@media (min-width: 900px) { .admin-layout { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 599px) { .admin-layout { --adm-gap: 12px; padding-block: 4px 24px; } }

/* ---------- Side menu ---------- */
.admin-nav.adm-nav { gap: 1px; }
.adm-nav-group { display: contents; }
.adm-nav-title, .adm-nav-foot { display: none; }
@media (min-width: 900px) {
  .admin-nav.adm-nav { position: sticky; top: calc(var(--nav-h) + 12px); max-height: calc(100dvh - var(--nav-h) - 24px); overflow-y: auto; scrollbar-width: none;
    background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-card); padding: 10px 8px; display: flex; flex-direction: column; }
  .admin-nav.adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav-group { display: grid; gap: 1px; }
  .adm-nav-group + .adm-nav-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--a-line); }
  .adm-nav-title { display: block; font-size: 12px; font-weight: 600; color: var(--a-faint); padding: 2px 10px 6px; }
  .admin-nav.adm-nav a { position: relative; height: 36px; padding: 0 10px; gap: 10px; border-radius: var(--a-r-ctl); font-size: 14px; font-weight: 500; color: var(--a-text); background: transparent; transition: background .12s, color .12s; }
  .admin-nav.adm-nav a .icon { width: 18px; height: 18px; color: var(--a-muted); flex: none; transition: color .12s; }
  .admin-nav.adm-nav a:hover { background: var(--a-hover); }
  .admin-nav.adm-nav a[aria-current="page"] { background: var(--a-brand-soft); color: var(--a-brand); font-weight: 600; }
  .admin-nav.adm-nav a[aria-current="page"] .icon { color: var(--a-brand); }
  .admin-nav.adm-nav a[aria-current="page"]::before { content: ''; position: absolute; inset-inline-start: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--a-brand); }
  .adm-nav-foot { display: block; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--a-line); }
  .adm-nav-keys { width: 100%; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--a-r-ctl); background: transparent; color: var(--a-muted); font: inherit; font-size: 13px; cursor: pointer; }
  .adm-nav-keys:hover { background: var(--a-hover); color: var(--a-text); }
  .adm-nav-keys .icon { width: 16px; height: 16px; }
  .adm-nav-keys kbd { margin-inline-start: auto; }
}
.adm-nav-badge { margin-inline-start: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--a-neutral-bg); color: var(--a-neutral); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.adm-nav-badge.hot { background: var(--a-danger); color: var(--a-surface); }
.adm-nav-badge.live { background: var(--a-ok-bg); color: var(--a-ok); }
.admin-nav a[aria-current="page"] .adm-nav-badge:not(.hot) { background: var(--a-surface); color: var(--a-brand); }
.is-admin-console kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--a-line-strong); border-bottom-width: 2px; background: var(--a-sunken); color: var(--a-text); font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- Page header ---------- */
.adm-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 4px 4px; }
.adm-head-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--a-brand-soft); color: var(--a-brand); flex: none; }
.adm-head-ic .icon { width: 22px; height: 22px; }
.adm-head.tone-live .adm-head-ic { background: var(--a-ok-bg); color: var(--a-ok); }
.adm-head-text { flex: 1 1 260px; min-width: 0; }
.adm-head h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; letter-spacing: -.01em; }
.adm-head-count { font-size: 13px; font-weight: 600; line-height: 22px; padding: 0 10px; border-radius: 999px; background: var(--a-neutral-bg); color: var(--a-neutral); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.adm-head p { margin: 2px 0 0; color: var(--a-muted); font-size: 14px; line-height: 21px; max-width: 760px; }
.adm-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 599px) {
  .adm-head { gap: 12px; }
  .adm-head-ic { width: 40px; height: 40px; border-radius: 10px; }
  .adm-head h1 { font-size: 20px; line-height: 28px; }
  .adm-head p { font-size: 13px; line-height: 19px; }
  .adm-head-actions { width: 100%; }
}
.adm-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--a-muted); text-decoration: none; width: fit-content; padding: 4px 0; }
.adm-back:hover { color: var(--a-brand); }

/* ---------- Buttons (admin scale) ---------- */
.admin-layout .btn, .is-admin-console .modal .btn { min-height: var(--a-ctl-h); padding: 0 14px; border-radius: var(--a-r-ctl); font-size: 14px; font-weight: 600; gap: 6px; transition: background .12s, border-color .12s, color .12s, box-shadow .12s, transform .08s; }
.admin-layout .btn:active { transform: translateY(1px); }
.admin-layout .btn .icon, .is-admin-console .modal .btn .icon { width: 16px; height: 16px; }
.admin-layout .btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.admin-layout .btn-primary, .is-admin-console .modal .btn-primary { background: var(--a-brand); color: var(--a-on-brand); border-color: var(--a-brand); }
.admin-layout .btn-primary:hover, .is-admin-console .modal .btn-primary:hover { background: var(--a-brand-hover); border-color: var(--a-brand-hover); }
.admin-layout .btn-outline, .is-admin-console .modal .btn-outline { background: var(--a-surface); color: var(--a-text); border-color: var(--a-line-strong); }
.admin-layout .btn-outline:hover, .is-admin-console .modal .btn-outline:hover { background: var(--a-hover); border-color: var(--a-faint); }
.admin-layout .btn-ghost { background: transparent; color: var(--a-brand); border-color: transparent; }
.admin-layout .btn-ghost:hover { background: var(--a-brand-soft); }
.admin-layout .btn-danger, .admin-layout .btn-danger-soft, .is-admin-console .modal .btn-danger { background: var(--a-danger-bg); color: var(--a-danger); border-color: color-mix(in srgb, var(--a-danger) 30%, transparent); }
.admin-layout .btn-danger:hover, .admin-layout .btn-danger-soft:hover { border-color: var(--a-danger); }
.is-admin-console .modal .btn-danger { background: var(--a-danger); color: var(--a-surface); border-color: var(--a-danger); }
.admin-layout .btn[disabled], .admin-layout .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.adm-tool { width: 36px; height: 36px; border-radius: var(--a-r-ctl); border: 1px solid var(--a-line-strong); background: var(--a-surface); color: var(--a-text); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; flex: none; transition: background .12s, border-color .12s, color .12s; }
.adm-tool:hover { background: var(--a-hover); color: var(--a-brand); }
.adm-tool .icon { width: 18px; height: 18px; }
.adm-tool.is-spinning .icon { animation: adm-spin 1s linear infinite; }
@keyframes adm-spin { to { transform: rotate(360deg); } }
@media (max-width: 599px) { .admin-layout .btn { min-height: 44px; } .admin-layout .btn-sm { min-height: 38px; } .adm-tool { width: 44px; height: 44px; } }

/* ---------- "⋯" menu ---------- */
.adm-more { position: relative; display: inline-flex; }
.adm-more-btn { height: 32px; min-width: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--a-r-ctl); border: 1px solid var(--a-line-strong); background: var(--a-surface); color: var(--a-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; }
.adm-more-btn:hover, .adm-more-btn[aria-expanded="true"] { background: var(--a-hover); border-color: var(--a-faint); }
.adm-more-btn .icon { width: 18px; height: 18px; }
.adm-more-btn.has-text { padding: 0 12px; }
@media (max-width: 599px) { .adm-more-btn { height: 38px; min-width: 38px; } }
.adm-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 40; min-width: 220px; max-width: min(300px, 90vw); padding: 6px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-card); box-shadow: var(--a-shadow-raised); display: grid; gap: 1px; transform-origin: top left; animation: adm-pop .16s var(--a-ease) both; }
.adm-menu.is-up { top: auto; bottom: calc(100% + 6px); transform-origin: bottom left; }
.adm-menu.is-leaving { animation: adm-pop-out .12s ease-in both; }
.adm-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: var(--a-r-ctl); background: transparent; color: var(--a-text); font: inherit; font-size: 14px; text-align: start; text-decoration: none; cursor: pointer; }
.adm-menu-item .icon { width: 16px; height: 16px; color: var(--a-muted); flex: none; }
.adm-menu-item:hover, .adm-menu-item:focus-visible { background: var(--a-hover); outline: none; }
.adm-menu-item.is-danger { color: var(--a-danger); }
.adm-menu-item.is-danger .icon { color: currentColor; }
.adm-menu-item.is-danger:hover, .adm-menu-item.is-danger:focus-visible { background: var(--a-danger-bg); }
.adm-menu-sep { height: 1px; background: var(--a-line); margin: 4px 6px; }
@keyframes adm-pop { from { opacity: 0; transform: scale(.97) translateY(-2px); } }
@keyframes adm-pop-out { to { opacity: 0; transform: scale(.98); } }

/* ---------- Toolbar, tabs, search, filters ---------- */
.adm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.adm-toolbar > * { min-width: 0; }
.adm-tabs { display: flex; gap: 2px; padding: 3px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 10px; overflow-x: auto; scrollbar-width: none; max-width: 100%; flex: 0 1 auto; scroll-snap-type: x proximity; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--a-muted); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; scroll-snap-align: start; transition: background .22s var(--a-ease), color .22s var(--a-ease), box-shadow .22s var(--a-ease); }
.adm-tab .icon { width: 15px; height: 15px; }
.adm-tab:hover { color: var(--a-text); background: var(--a-hover); }
.adm-tab.is-active { background: var(--a-brand); color: var(--a-on-brand); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.adm-tab-n { min-width: 20px; padding: 0 6px; height: 18px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--a-neutral-bg); color: var(--a-neutral); font-variant-numeric: tabular-nums; }
.adm-tab.is-active .adm-tab-n { background: color-mix(in srgb, var(--a-on-brand) 22%, transparent); color: inherit; }
.adm-tab.tone-danger:not(.is-active) .adm-tab-n { background: var(--a-danger-bg); color: var(--a-danger); }
.adm-tab.tone-warn:not(.is-active) .adm-tab-n { background: var(--a-warn-bg); color: var(--a-warn); }
/* Phones: a fade on the edge tells there are more tabs. */
@media (max-width: 599px) {
  .adm-tabs { -webkit-mask-image: linear-gradient(to left, #000 88%, transparent); mask-image: linear-gradient(to left, #000 88%, transparent); padding-inline-end: 24px; }
  .adm-tab { height: 36px; }
}
.adm-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: var(--a-ctl-h); border: 1px solid var(--a-line-strong); border-radius: var(--a-r-ctl); background: var(--a-surface); flex: 1 1 260px; max-width: 420px; min-width: 0; color: var(--a-muted); transition: border-color .12s, box-shadow .12s; }
.adm-search .icon { width: 16px; height: 16px; flex: none; }
.adm-search:focus-within { border-color: var(--a-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-brand) 20%, transparent); }
.adm-search-input { border: 0; background: transparent; color: var(--a-text); font: inherit; font-size: 14px; flex: 1; min-width: 0; outline: none; height: 100%; padding: 0; }
.adm-search-input::placeholder { color: var(--a-faint); }
@media (max-width: 599px) { .adm-search { flex-basis: 100%; max-width: none; height: 44px; } }
.adm-dates { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-dates .date-he { min-width: 150px; }
@media (max-width: 599px) { .adm-dates { width: 100%; flex-wrap: nowrap; } .adm-dates .date-he { flex: 1; min-width: 0; } }
.adm-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 14px; align-items: end; padding: 16px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-card); margin: 0; }
.adm-field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--a-text); }

/* ---------- Forms in the admin ---------- */
.admin-layout .field label, .is-admin-console .modal .field label { font-size: 13px; font-weight: 600; color: var(--a-text); }
.admin-layout .hint, .is-admin-console .modal .hint { font-size: 12.5px; color: var(--a-muted); }
.admin-layout .input, .is-admin-console .modal .input { min-height: var(--a-ctl-h); border-radius: var(--a-r-ctl); border-color: var(--a-line-strong); background: var(--a-surface); color: var(--a-text); font-size: 14px; }
/* The shorthand above resets the select arrow's placement (it repeated across the box in dark mode). */
.admin-layout select.input, .is-admin-console .modal select.input { background-repeat: no-repeat; background-position: left 12px center; background-size: 16px 16px; }
.admin-layout textarea.input, .is-admin-console .modal textarea.input { min-height: 80px; }
.admin-layout .input:focus, .is-admin-console .modal .input:focus { border-color: var(--a-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-brand) 20%, transparent); outline: none; }
@media (max-width: 599px) { .admin-layout .input, .is-admin-console .modal .input { min-height: 44px; font-size: 16px; } }

/* Hebrew date field (site-wide): the native input keeps the value, the label shows it in Hebrew. */
.date-he { position: relative; display: block; min-width: 0; }
.date-he-input { color: transparent !important; caret-color: transparent; cursor: pointer; }
.date-he-input::-webkit-datetime-edit { color: transparent; }
.date-he-input::-webkit-calendar-picker-indicator { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.date-he-ic { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--a-muted, var(--muted)); pointer-events: none; }
.date-he-label { position: absolute; inset-block: 0; inset-inline-start: 12px; inset-inline-end: 36px; display: flex; align-items: center; pointer-events: none; color: var(--a-text, var(--text)); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-he-label.is-empty { color: var(--a-faint, var(--muted)); }

/* ---------- KPI tiles ---------- */
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.adm-kpi { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--a-r-card); background: var(--a-surface); border: 1px solid var(--a-line); color: inherit; text-decoration: none; text-align: start; font: inherit; min-width: 0; transition: border-color .12s, box-shadow .12s, transform .12s; }
.adm-kpi.is-link { cursor: pointer; }
.adm-kpi.is-link:hover { border-color: var(--a-line-strong); box-shadow: var(--a-shadow-raised); transform: translateY(-1px); }
.adm-kpi-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--a-neutral-bg); color: var(--a-neutral); flex: none; }
.adm-kpi-ic .icon { width: 20px; height: 20px; }
.adm-kpi-body { display: grid; min-width: 0; }
.adm-kpi-v { font-size: 28px; font-weight: 700; line-height: 34px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-kpi-l { font-size: 13px; color: var(--a-muted); font-weight: 500; }
.adm-kpi-sub { font-size: 12px; color: var(--a-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-kpi.tone-ok .adm-kpi-ic, .adm-kpi.tone-live .adm-kpi-ic { background: var(--a-ok-bg); color: var(--a-ok); }
.adm-kpi.tone-warn .adm-kpi-ic { background: var(--a-warn-bg); color: var(--a-warn); }
.adm-kpi.tone-danger .adm-kpi-ic { background: var(--a-danger-bg); color: var(--a-danger); }
.adm-kpi.tone-info .adm-kpi-ic { background: var(--a-info-bg); color: var(--a-info); }
.adm-kpi.tone-danger { border-color: color-mix(in srgb, var(--a-danger) 35%, var(--a-line)); }
@media (max-width: 599px) {
  .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .adm-kpi { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .adm-kpi-ic { width: 32px; height: 32px; }
  .adm-kpi-v { font-size: 22px; line-height: 28px; }
}

/* ---------- Panels ---------- */
.adm-panel { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-card); min-width: 0; }
.adm-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--a-line); flex-wrap: wrap; min-height: 56px; }
.adm-panel-head h2 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.adm-panel-head h2 .icon { width: 18px; height: 18px; color: var(--a-muted); }
.adm-panel-sub { color: var(--a-muted); font-size: 13px; }
.adm-panel-actions { margin-inline-start: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.adm-panel-body { padding: 20px; display: grid; gap: 14px; min-width: 0; }
.adm-panel.is-flush > .adm-panel-body { padding: 0; gap: 0; }
.adm-panel-foot { padding: 10px 16px; border-top: 1px solid var(--a-line); }
.adm-panel-foot:not(:has(nav)) { display: none; }
.adm-panel > .adm-rows { padding: 0; }
.adm-grid-2, .adm-grid-3 { display: grid; gap: var(--adm-gap); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) {
  .adm-grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .adm-grid-2.wide-start { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .adm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 999px) { .adm-grid-2.side-first > :last-child { order: -1; } }
@media (max-width: 599px) { .adm-panel-head { padding: 12px 16px; min-height: 0; } .adm-panel-body { padding: 16px; } }

/* ---------- Data table (desktop table, phone cards) ---------- */
.adm-dt-wrap { min-width: 0; }
.adm-dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.adm-dt thead th { position: sticky; top: var(--nav-h); z-index: 2; background: var(--a-sunken); color: var(--a-muted); font-size: 12px; font-weight: 600; text-align: start; padding: 10px 16px; border-bottom: 1px solid var(--a-line); white-space: nowrap; }
.adm-dt thead th:first-child { border-start-start-radius: var(--a-r-card); }
.adm-dt thead th:last-child { border-start-end-radius: var(--a-r-card); }
.adm-dt td { padding: 10px 16px; border-bottom: 1px solid var(--a-line); vertical-align: middle; min-width: 0; }
.adm-dt tbody tr:last-child td { border-bottom: 0; }
.adm-dt tbody tr { transition: background .12s; }
.adm-dt tbody tr:hover { background: var(--a-hover); }
.adm-dt tr.is-link { cursor: pointer; }
.adm-dt .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-dt th.num { text-align: end; }
.adm-dt .act { width: 1%; white-space: nowrap; text-align: end; }
.adm-dt tr.tone-danger td:first-child { box-shadow: inset -3px 0 0 var(--a-danger); }
.adm-dt tr.tone-warn td:first-child { box-shadow: inset -3px 0 0 var(--a-warn-line); }
.adm-dt tr.tone-live td:first-child { box-shadow: inset -3px 0 0 var(--a-live); }
.adm-td-link { color: inherit; text-decoration: none; display: block; }
.adm-td-link:hover strong { color: var(--a-brand); }
.adm-td-link:focus-visible { outline: 2px solid var(--a-brand); outline-offset: 4px; border-radius: 4px; }
.adm-cell-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-cell-stack { display: grid; min-width: 0; gap: 1px; }
.adm-cell-stack strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-cell-sub { font-size: 12.5px; color: var(--a-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.adm-cell-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.adm-row-acts { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
/* Marking rows for bulk delete (checkbox column / before a row's picture, and the toolbar's tools). */
.adm-check { width: 18px; height: 18px; margin: 0; accent-color: var(--a-brand); cursor: pointer; flex: none; }
.adm-dt th.sel, .adm-dt td.sel { width: 1%; padding-inline-end: 0; }
.adm-row-lead-sel { display: flex; align-items: center; gap: 12px; }
.adm-grow { flex: 1 1 auto; }
.adm-danger-zone { border-color: color-mix(in srgb, var(--a-danger) 35%, var(--a-line)); }
.adm-danger-zone .adm-panel-head h2 { color: var(--a-danger); }
.adm-danger-zone .adm-panel-body { display: grid; gap: 12px; justify-items: start; }
.adm-bulk { display: inline-flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.adm-bulk-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--a-muted); cursor: pointer; white-space: nowrap; }
.adm-bulk .case-delete-tool { min-height: 32px; padding-inline: 10px; }
@media (max-width: 1099px) { .adm-dt thead th { position: static; } }
@media (max-width: 719px) {
  .adm-dt, .adm-dt tbody { display: block; }
  .adm-dt thead { display: none; }
  .adm-dt tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--a-line); position: relative; }
  .adm-dt tbody tr:last-child { border-bottom: 0; }
  .adm-dt td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0; border: 0; grid-column: 1 / -1; font-size: 13.5px; }
  .adm-dt td::before { content: attr(data-label); color: var(--a-muted); font-size: 12.5px; flex: none; }
  .adm-dt td.main { grid-column: 1; margin-bottom: 4px; }
  .adm-dt td.main::before, .adm-dt td.act::before, .adm-dt td[data-label=""]::before { content: none; }
  .adm-dt td.num { grid-column: 2; grid-row: 1; justify-content: flex-end; align-self: start; }
  .adm-dt td.num::before { content: none; }
  .adm-dt td.act { grid-column: 1 / -1; justify-content: flex-end; width: auto; margin-top: 6px; }
  .adm-dt td.hide-sm { display: none; }
  .adm-dt td.sel { grid-column: 1 / -1; justify-content: flex-start; width: auto; }
  .adm-dt td.sel::before { content: none; }
  .adm-dt tr.tone-danger, .adm-dt tr.tone-warn, .adm-dt tr.tone-live { box-shadow: inset -3px 0 0 var(--a-danger); }
  .adm-dt tr.tone-warn { box-shadow: inset -3px 0 0 var(--a-warn-line); }
  .adm-dt tr.tone-live { box-shadow: inset -3px 0 0 var(--a-live); }
  .adm-dt tr td:first-child { box-shadow: none !important; }
}
/* Legacy compact table (booking ledger etc.) in the same look */
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: start; font-size: 12px; color: var(--a-muted); font-weight: 600; padding: 10px 16px; background: var(--a-sunken); white-space: nowrap; border-bottom: 1px solid var(--a-line); }
.adm-table td { padding: 10px 16px; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: var(--a-hover); }
@media (max-width: 699px) {
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tr { border-bottom: 1px solid var(--a-line); padding: 10px 4px; }
  .adm-table td { border: 0; padding: 3px 12px; display: flex; justify-content: space-between; gap: 12px; }
  .adm-table td::before { content: attr(data-label); color: var(--a-muted); font-size: 12.5px; }
}

/* ---------- Pagination ---------- */
.adm-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--a-muted); }
.adm-pager-info { font-variant-numeric: tabular-nums; }
.adm-pager-pages { display: flex; align-items: center; gap: 4px; }
.adm-pg { min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--a-r-ctl); border: 1px solid transparent; background: transparent; color: var(--a-text); font: inherit; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; transition: background .12s, border-color .12s; }
.adm-pg:hover:not(:disabled) { background: var(--a-hover); }
.adm-pg.is-current { background: var(--a-brand); color: var(--a-on-brand); }
.adm-pg:disabled { opacity: .4; cursor: default; }
.adm-pg .icon { width: 16px; height: 16px; }
.adm-pg-step { border-color: var(--a-line-strong); background: var(--a-surface); }
.adm-pg-gap { padding: 0 4px; color: var(--a-faint); }
.adm-pg-mobile { display: none; }
.adm-pager-per { display: inline-flex; align-items: center; gap: 8px; }
.adm-pager-per select { height: 32px; border-radius: var(--a-r-ctl); border: 1px solid var(--a-line-strong); background: var(--a-surface); color: var(--a-text); font: inherit; font-size: 13px; padding: 0 8px; }
@media (max-width: 719px) {
  .adm-pager { justify-content: center; }
  .adm-pager-info, .adm-pager-per { display: none; }
  .adm-pager-pages .adm-pg:not(.adm-pg-step), .adm-pg-gap { display: none; }
  .adm-pg-mobile { display: inline; padding: 0 10px; color: var(--a-text); font-weight: 600; }
  .adm-pg-step { height: 40px; padding: 0 14px; }
}

/* ---------- List rows (cards on phones, rows on desktop) ---------- */
.adm-rows { display: grid; gap: 8px; }
.adm-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 14px 16px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-card); min-width: 0; transition: border-color .12s, box-shadow .12s; }
.adm-row.is-link:hover { border-color: var(--a-line-strong); box-shadow: var(--a-shadow-raised); }
.adm-row-cover { position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.adm-row-cover:focus-visible { outline: 2px solid var(--a-brand); outline-offset: 2px; }
.adm-row > *:not(.adm-row-cover) { position: relative; z-index: 1; pointer-events: none; }
.adm-row a, .adm-row button, .adm-row select, .adm-row input, .adm-row .adm-row-actions, .adm-row .adm-more { pointer-events: auto; }
.adm-row-lead { grid-row: span 2; align-self: start; }
.adm-row-main { min-width: 0; display: grid; gap: 3px; }
.adm-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.adm-row-title strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.adm-row-title a { color: inherit; text-decoration: none; }
.adm-row-title a:hover { color: var(--a-brand); }
.adm-row-line { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--a-muted); min-width: 0; }
.adm-row-tags, .adm-row-side { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-row-side { font-size: 13px; color: var(--a-muted); }
.adm-row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--a-line); justify-content: flex-end; }
.adm-row.tone-danger { box-shadow: inset -3px 0 0 var(--a-danger); }
.adm-row.tone-warn { box-shadow: inset -3px 0 0 var(--a-warn-line); }
.adm-row.tone-live { box-shadow: inset -3px 0 0 var(--a-live); }
@media (min-width: 900px) {
  .adm-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .adm-row-lead { grid-row: auto; align-self: center; }
  .adm-row-tags, .adm-row-side { grid-column: auto; justify-content: flex-end; }
  .adm-row-side { flex-direction: column; align-items: flex-end; gap: 2px; text-align: end; min-width: 110px; }
  .adm-row-actions { grid-column: auto; border-top: 0; padding-top: 0; margin-top: 0; }
  .adm-row:has(.adm-row-actions) { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
}
.adm-meta { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.adm-meta .icon { width: 14px; height: 14px; flex: none; color: var(--a-faint); }
.ok-text { color: var(--a-ok); font-weight: 600; }
.danger-text { color: var(--a-danger); font-weight: 600; }
.ok-text .icon, .danger-text .icon { color: currentColor !important; }

/* ---------- Avatars ---------- */
.adm-av { border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; font-weight: 700; color: #fff; background: var(--a-av-x); flex: none; }
.adm-av-sm { width: 28px; height: 28px; font-size: 11px; }
.adm-av-md { width: 40px; height: 40px; font-size: 14px; }
.adm-av-lg { width: 64px; height: 64px; font-size: 20px; }
.adm-av-parent { background: var(--a-av-parent); }
.adm-av-sitter { background: var(--a-av-sitter); }
.adm-av-admin { background: var(--a-av-admin); }
.adm-av-pair { display: inline-flex; flex: none; }
.adm-av-pair > :last-child { margin-inline-start: -10px; box-shadow: 0 0 0 2px var(--a-surface); }

/* ---------- Status pills ---------- */
.adm-status, .admin-layout .pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--a-neutral-bg); color: var(--a-neutral); white-space: nowrap; border: 0; }
.adm-status .icon { width: 13px; height: 13px; }
.adm-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.adm-status.tone-ok, .admin-layout .pill.ok { background: var(--a-ok-bg); color: var(--a-ok); }
.adm-status.tone-warn, .admin-layout .pill.warn { background: var(--a-warn-bg); color: var(--a-warn); }
.adm-status.tone-danger, .admin-layout .pill.danger { background: var(--a-danger-bg); color: var(--a-danger); }
.adm-status.tone-info, .admin-layout .pill.info { background: var(--a-info-bg); color: var(--a-info); }
.adm-status.tone-live { background: var(--a-ok-bg); color: var(--a-ok); }
.adm-status.tone-live .adm-dot { animation: adm-pulse 1.6s ease-in-out infinite; }
@keyframes adm-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 60% { box-shadow: 0 0 0 5px transparent; } }

/* ---------- Key–value grid ---------- */
.adm-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 20px; margin: 0; }
.adm-kv-item { display: grid; gap: 2px; min-width: 0; }
.adm-kv dt { font-size: 12.5px; color: var(--a-muted); display: flex; align-items: center; gap: 5px; font-weight: 500; }
.adm-kv dt .icon { width: 14px; height: 14px; color: var(--a-faint); }
.adm-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Empty, loading, error ---------- */
.adm-empty { display: grid; justify-items: center; gap: 6px; padding: 44px 16px; text-align: center; color: var(--a-muted); }
.adm-rows > .adm-empty, .admin-body > .adm-empty, .adm-sections .adm-empty { background: var(--a-surface); border: 1px dashed var(--a-line-strong); border-radius: var(--a-r-card); }
.adm-empty-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--a-neutral-bg); color: var(--a-muted); margin-bottom: 4px; }
.adm-empty-ic .icon { width: 24px; height: 24px; }
.adm-empty strong { color: var(--a-text); font-size: 15px; font-weight: 600; }
.adm-empty p { margin: 0; font-size: 13.5px; max-width: 420px; }
.adm-skel { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--a-sunken) 0%, var(--a-hover) 40%, var(--a-sunken) 80%); background-size: 300% 100%; animation: adm-shimmer 1.3s ease-in-out infinite; }
.adm-skel-row { grid-template-columns: auto minmax(0, 1fr); }
.adm-skel-av { width: 40px; height: 40px; border-radius: 50%; }
.adm-skel-ic { width: 40px; height: 40px; border-radius: 10px; }
.adm-skel-lines { display: grid; gap: 8px; min-width: 0; flex: 1; }
.adm-skel.w40 { width: 40%; } .adm-skel.w50 { width: 50%; } .adm-skel.w70 { width: 70%; } .adm-skel.w80 { width: 80%; }
.adm-panel .adm-rows[aria-busy] { padding: 12px; }
@keyframes adm-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- Detail pages ---------- */
.adm-sections { display: grid; gap: 12px; }
.adm-section-body { min-width: 0; }
.adm-actionbar { position: sticky; bottom: calc(var(--safe-b) + 12px); z-index: 6; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; border-radius: var(--a-r-card); background: color-mix(in srgb, var(--a-surface) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--a-line); box-shadow: var(--a-shadow-raised); animation: adm-rise .22s var(--a-ease) both; }
.adm-actionbar-text { font-size: 13px; color: var(--a-muted); }
.adm-actionbar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 899px) { .adm-actionbar { bottom: calc(var(--safe-b) + 76px); } .adm-actionbar-btns { width: 100%; } .adm-actionbar-btns .btn { flex: 1; } }
.adm-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-card); }
.adm-hero h1 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-hero-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--a-muted); font-size: 13.5px; margin-top: 4px; }
.adm-hero-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .adm-hero { grid-template-columns: auto minmax(0, 1fr) auto; } .adm-hero-actions { grid-column: auto; justify-content: flex-end; } }
@media (max-width: 599px) { .adm-hero { padding: 16px; } .adm-hero h1 { font-size: 19px; line-height: 26px; } }
.adm-care-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.adm-care-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--a-line); }
.adm-timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.adm-timeline li { position: relative; padding: 0 0 16px; padding-inline-start: 22px; border-inline-start: 2px solid var(--a-line); margin-inline-start: 6px; }
.adm-timeline li::before { content: ''; position: absolute; inset-inline-start: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--a-surface); border: 2px solid var(--a-brand); }
.adm-timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.adm-timeline strong { display: block; font-size: 14px; font-weight: 600; }
.adm-timeline span { font-size: 12.5px; color: var(--a-muted); }
.adm-money { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.adm-money.neg { color: var(--a-danger); }
.adm-money.pos { color: var(--a-ok); }
.adm-breakdown { display: grid; gap: 8px; margin: 0; }
.adm-breakdown > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.adm-breakdown > div.total { border-top: 1px solid var(--a-line); padding-top: 10px; font-weight: 700; }
.adm-breakdown dt { color: var(--a-muted); }
.adm-breakdown dd { margin: 0; }
.adm-stars { display: inline-flex; gap: 1px; color: var(--a-star); }
.adm-stars .icon { width: 15px; height: 15px; }
.adm-stars span:not(.off) svg { fill: currentColor; }
.adm-stars .off { color: var(--a-line-strong); }
.adm-review-text { display: block; color: var(--a-text); line-height: 1.6; padding-inline-start: 10px; border-inline-start: 3px solid var(--a-line); font-size: 14px; }
.adm-checks { display: grid; gap: 8px; }
.adm-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.adm-check .icon { width: 18px; height: 18px; }
.adm-check.ok .icon { color: var(--a-ok); }
.adm-check.no { color: var(--a-muted); }
.adm-check.no .icon { color: var(--a-danger); }
.adm-docs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.adm-doc { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--a-line); border-radius: var(--a-r-card); background: var(--a-surface); }
.adm-doc-head { display: flex; align-items: center; gap: 10px; }
.adm-doc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--a-brand-soft); color: var(--a-brand); flex: none; }
.adm-doc-ic .icon { width: 18px; height: 18px; }
.adm-doc-meta { font-size: 12.5px; color: var(--a-muted); }
.adm-doc-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-providers { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.adm-provider { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--a-line); border-radius: var(--a-r-ctl); }
.adm-provider strong { flex: 1; font-size: 14px; font-weight: 600; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-chip { display: inline-flex; gap: 6px; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--a-neutral-bg); color: var(--a-text); font-size: 13px; font-weight: 500; text-decoration: none; }
a.adm-chip:hover { background: var(--a-hover); box-shadow: inset 0 0 0 1px var(--a-line-strong); }
.adm-chip b { font-variant-numeric: tabular-nums; font-weight: 700; }
.adm-chip.tone-danger { background: var(--a-danger-bg); color: var(--a-danger); }
.adm-chip .icon { width: 14px; height: 14px; }
.adm-people { display: grid; gap: 10px; }
.adm-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--a-line); border-radius: var(--a-r-card); }
.adm-person > div { display: grid; min-width: 0; }
.adm-person strong a { color: inherit; text-decoration: none; }
.adm-person strong a:hover { color: var(--a-brand); }
.adm-chat { display: grid; gap: 8px; max-height: 520px; overflow-y: auto; padding: 4px; }
.adm-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; background: var(--a-sunken); border: 1px solid var(--a-line); }
.adm-msg.from-parent { justify-self: start; border-start-start-radius: 4px; }
.adm-msg.from-sitter { justify-self: end; background: var(--a-brand-soft); border-color: transparent; border-start-end-radius: 4px; }
.adm-msg-head { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--a-muted); flex-wrap: wrap; }
.adm-msg p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-select { max-width: 260px; }
@media (max-width: 640px) { .adm-select { max-width: none; width: 100%; } }
.adm-keys { display: grid; gap: 2px; margin: 0; }
.adm-keys > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--a-line); }
.adm-keys > div:last-child { border-bottom: 0; }
.adm-keys dd { margin: 0; color: var(--a-text); }

/* ---------- Live shifts ---------- */
.live-updated { font-size: 12.5px; color: var(--a-muted); display: inline-flex; align-items: center; gap: 6px; }
.live-updated .adm-dot { color: var(--a-live); animation: adm-pulse 1.6s ease-in-out infinite; }
.live-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.live-card { --tone: var(--a-line); position: relative; display: grid; gap: 12px; padding: 16px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-card); min-width: 0; overflow: hidden; }
.live-card::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--tone); }
.live-card.ph-live, .live-card.ph-arrived { --tone: var(--a-live); }
.live-card.ph-late { --tone: var(--a-danger); }
.live-card.ph-overtime { --tone: var(--a-warn-line); }
.live-card.ph-starting { --tone: var(--a-brand); }
.live-card.ph-upcoming { --tone: var(--a-line-strong); }
.live-card.ph-closing { --tone: var(--a-violet); }
.live-card.has-alert { border-color: color-mix(in srgb, var(--a-danger) 45%, var(--a-line)); }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-ref { font-size: 12.5px; color: var(--a-muted); font-weight: 600; text-decoration: none; }
.live-ref:hover { color: var(--a-brand); }
.live-people { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.live-people strong { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.live-people .sub { font-size: 13px; color: var(--a-muted); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.live-time { display: grid; gap: 6px; }
.live-time-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.live-time-row strong { color: var(--a-text); font-size: 14px; }
.live-bar { position: relative; height: 6px; border-radius: 999px; background: var(--a-sunken); overflow: hidden; }
.live-bar-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 0) * 1%); background: var(--tone); border-radius: inherit; transition: width .6s var(--a-ease); }
.live-card.ph-overtime .live-bar-fill { background: repeating-linear-gradient(45deg, var(--a-warn-line) 0 8px, color-mix(in srgb, var(--a-warn-line) 65%, var(--a-surface)) 8px 16px); }
.live-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.live-fact { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 7px; background: var(--a-sunken); font-size: 12.5px; font-weight: 500; }
.live-fact .icon { width: 14px; height: 14px; color: var(--a-muted); }
.live-fact.ok { background: var(--a-ok-bg); color: var(--a-ok); }
.live-fact.ok .icon { color: inherit; }
.live-alerts { display: grid; gap: 6px; }
.live-alert { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--a-r-ctl); font-size: 13px; font-weight: 600; background: var(--a-warn-bg); color: var(--a-warn); }
.live-alert.tone-danger { background: var(--a-danger-bg); color: var(--a-danger); }
.live-alert .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.live-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--a-line); }
.live-actions .btn { flex: 1 1 auto; justify-content: center; }
.live-section-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin: 8px 0 0; }
.gantt { display: grid; gap: 6px; min-width: 0; }
.gantt-scroll { overflow-x: auto; padding-bottom: 4px; }
.gantt-inner { min-width: 720px; display: grid; gap: 6px; position: relative; padding-top: 6px; }
.gantt-scale { display: grid; grid-template-columns: 150px 1fr; font-size: 11.5px; color: var(--a-muted); }
.gantt-hours { position: relative; height: 18px; }
.gantt-hour { position: absolute; top: 0; inset-inline-start: calc(var(--x) * 1%); transform: translateX(50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gantt-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; min-height: 34px; }
.gantt-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline-end: 8px; }
.gantt-name span { display: block; font-size: 11.5px; color: var(--a-muted); font-weight: 500; }
.gantt-track { position: relative; height: 26px; background: repeating-linear-gradient(to left, var(--a-line) 0 1px, transparent 1px calc(100% / var(--hours, 24))); border-radius: 7px; background-color: var(--a-sunken); }
.gantt-bar { position: absolute; top: 3px; bottom: 3px; inset-inline-start: calc(var(--x) * 1%); width: max(calc(var(--w) * 1%), 6px); border-radius: 5px; background: var(--tone, var(--a-brand)); color: #fff; font-size: 11.5px; font-weight: 600; display: flex; align-items: center; padding: 0 6px; overflow: hidden; white-space: nowrap; text-decoration: none; transition: filter .12s; }
.gantt-bar:hover { filter: brightness(1.08); }
.gantt-bar.ph-live, .gantt-bar.ph-arrived { --tone: var(--a-live); }
.gantt-bar.ph-late { --tone: var(--a-danger); }
.gantt-bar.ph-overtime { --tone: var(--a-warn-line); }
.gantt-bar.ph-starting, .gantt-bar.ph-upcoming { --tone: var(--a-brand); }
.gantt-bar.ph-closing { --tone: var(--a-violet); }
:root.is-admin-console[data-theme="dark"] .gantt-bar { color: #0E1113; }
.gantt-now { position: absolute; top: -4px; bottom: -4px; inset-inline-start: calc(var(--x) * 1%); width: 2px; background: var(--a-danger); z-index: 2; pointer-events: none; }
.gantt-now.first::before { content: 'עכשיו'; position: absolute; top: -16px; transform: translateX(50%); font-size: 11px; font-weight: 700; color: var(--a-danger); white-space: nowrap; }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--a-muted); }
.gantt-legend span { display: inline-flex; align-items: center; gap: 5px; }
.gantt-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: var(--c); }
.gantt-legend i.c-live { --c: var(--a-live); } .gantt-legend i.c-late { --c: var(--a-danger); } .gantt-legend i.c-over { --c: var(--a-warn-line); } .gantt-legend i.c-up { --c: var(--a-brand); } .gantt-legend i.c-close { --c: var(--a-violet); }
.live-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: var(--a-r-card); background: var(--a-surface); border: 1px solid var(--a-line); text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
.live-strip:hover { border-color: var(--a-line-strong); box-shadow: var(--a-shadow-raised); }
.live-strip strong { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.live-strip strong .icon { color: var(--a-live); }
.live-strip .live-strip-items { display: flex; flex-wrap: wrap; gap: 6px; }
.live-strip .go { margin-inline-start: auto; color: var(--a-brand); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Dashboard top ---------- */
.dash-hello { display: grid; gap: 16px; padding: 20px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-card); }
.dash-hello-date { margin: 0; font-size: 13px; color: var(--a-muted); }
.dash-hello h1 { margin: 2px 0 0; font-size: 24px; line-height: 32px; font-weight: 700; }
.dash-hello-sub { margin: 2px 0 0; color: var(--a-muted); font-size: 14px; }
.dash-queue { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.dash-q { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; border-radius: var(--a-r-ctl); background: var(--a-sunken); border: 1px solid var(--a-line); color: var(--a-text); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: border-color .12s, background .12s, transform .12s; }
a.dash-q:hover { border-color: var(--a-line-strong); background: var(--a-surface); transform: translateY(-1px); }
.dash-q-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--a-neutral-bg); color: var(--a-neutral); flex: none; }
.dash-q-ic .icon { width: 16px; height: 16px; }
.dash-q-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-q-n { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-q.tone-danger .dash-q-ic { background: var(--a-danger-bg); color: var(--a-danger); }
.dash-q.tone-danger .dash-q-n { color: var(--a-danger); }
.dash-q.tone-warn .dash-q-ic { background: var(--a-warn-bg); color: var(--a-warn); }
.dash-q.tone-info .dash-q-ic { background: var(--a-info-bg); color: var(--a-info); }
.dash-q.tone-ok .dash-q-ic { background: var(--a-ok-bg); color: var(--a-ok); }
@media (max-width: 599px) { .dash-hello { padding: 16px; } .dash-hello h1 { font-size: 20px; line-height: 28px; } }
.admin-layout .dash-grid .card, .admin-layout .dash-card { border-radius: var(--a-r-card); border-color: var(--a-line); background: var(--a-surface); box-shadow: none; }
.admin-layout .seg { background: var(--a-surface); border-color: var(--a-line); }
.admin-layout .seg button[aria-pressed="true"] { background: var(--a-brand); color: var(--a-on-brand); }

/* ---------- Older admin screens in the same look ---------- */
.admin-body > .card, .admin-body .card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-card); box-shadow: none; }
.admin-body .card h2 { font-size: 15px; line-height: 22px; font-weight: 600; }
.admin-body > h1 { font-size: 24px; line-height: 32px; margin: 0; }
.admin-body .muted { color: var(--a-muted); }
.admin-body .notice { border-radius: var(--a-r-card); font-size: 13.5px; }
/* User card */
.admin-body .up-head { background: var(--a-surface); border: 1px solid var(--a-line); }
.admin-body .up-head h1 { font-size: 22px; line-height: 30px; }
.admin-body .up-tile { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-card); box-shadow: none; }
.admin-body .up-info { font-size: 14px; border-top-color: var(--a-line); }
.admin-body .up-info-l { color: var(--a-muted); }
/* Customer service list */
.case-hub { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--adm-gap); min-width: 0; }
.case-hub .case-status-nav { padding: 3px; border: 1px solid var(--a-line); border-bottom: 1px solid var(--a-line); flex-wrap: nowrap; }
.case-hub .case-nav-item .icon { width: 15px; height: 15px; }
.case-hub .case-list-filters { padding: 0; border: 0; }
.case-hub .case-list-filters > .case-delete-tool { margin-inline-start: auto; }
.case-panel { overflow: visible; }
.case-panel .case-inbox-table { table-layout: auto; font-size: 14px; }
.case-panel .case-inbox-table th, .case-panel .case-inbox-table td { padding: 10px 12px; border-bottom-color: var(--a-line); }
.case-panel .case-inbox-table th { background: var(--a-sunken); color: var(--a-muted); font-size: 12px; font-weight: 600; }
.case-panel .case-inbox-table th:first-child { border-start-start-radius: var(--a-r-card); }
.case-panel .case-inbox-table th:last-child { border-start-end-radius: var(--a-r-card); }
.case-panel .case-inbox-table th button { font-size: 12px; font-weight: 600; color: inherit; }
.case-panel .case-inbox-table tbody tr td:first-child { box-shadow: inset -3px 0 0 var(--case-color, transparent); }
.case-panel .case-inbox-table tbody tr:hover { background: var(--a-hover); }
.case-panel .case-inbox-table tbody tr:last-child td { border-bottom: 0; }
.case-panel .case-customer { font-size: 14px; font-weight: 500; }
.case-panel .case-inbox-table .case-inbox-subject strong { font-size: 14px; font-weight: 600; }
.case-panel .case-inbox-table .case-row-meta, .case-panel .case-inbox-table .case-row-time { font-size: 12.5px; }
.case-panel .case-inbox-table .case-row-avatar { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
.case-panel .case-inbox-table .case-row-avatar.is-unread { color: var(--a-brand); background: var(--a-brand-soft); }
.case-panel .case-inbox-table tr.is-unread .case-inbox-subject strong::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--a-brand); margin-inline-start: 6px; vertical-align: middle; }
.case-panel .case-treatment-cell .case-badge { font-size: 12px; }
.case-panel .case-quick-select { min-height: 30px; font-size: 12.5px; border-radius: 7px; }
.case-panel .case-row-actions { gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.case-panel .case-empty { padding: 44px 16px; }
.case-panel .case-empty h2 { font-size: 15px; }
.case-panel .case-empty p { font-size: 13.5px; }
.case-panel input[type="checkbox"] { width: 16px; height: 16px; }
/* Audit log */
.audit-filters.adm-filters { margin: 0; }
.audit-filter-actions { display: flex; gap: 8px; align-items: center; }
.audit-list { display: grid; gap: 16px; }
.audit-day h3 { font-size: 13px; font-weight: 600; color: var(--a-muted); margin: 0 0 8px; }
.audit-group { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r-card); overflow: hidden; }
.audit-item { display: flex; gap: 12px; background: transparent; border: 0; border-bottom: 1px solid var(--a-line); border-radius: 0; padding: 14px 16px; margin: 0; box-shadow: inset -3px 0 0 transparent; transition: background .12s; }
.audit-item:last-child { border-bottom: 0; }
.audit-item:hover { background: var(--a-hover); }
.audit-item.sev-warn { box-shadow: inset -3px 0 0 var(--a-warn-line); }
.audit-item.sev-danger { box-shadow: inset -3px 0 0 var(--a-danger); }
.audit-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--a-neutral-bg); color: var(--a-neutral); display: grid; place-items: center; }
.sev-warn .audit-ic { background: var(--a-warn-bg); color: var(--a-warn); }
.sev-danger .audit-ic { background: var(--a-danger-bg); color: var(--a-danger); }
.audit-ic svg { width: 16px; height: 16px; }
.audit-main { min-width: 0; flex: 1; display: grid; gap: 3px; }
.audit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.audit-head strong { font-size: 14px; font-weight: 600; }
.audit-head time { margin-inline-start: auto; font-size: 12.5px; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.audit-cat { font-size: 12px; color: var(--a-faint); }
.audit-desc { margin: 0; font-size: 13.5px; color: var(--a-text); }
.audit-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--a-muted); margin: 0; font-size: 12.5px; }
.audit-meta span { display: inline-flex; align-items: center; gap: 4px; }
.audit-meta .icon { width: 13px; height: 13px; }
.audit-reason { margin: 2px 0 0; font-size: 13px; }
.audit-details { margin-top: 4px; }
.audit-details summary { font-size: 12.5px; color: var(--a-brand); cursor: pointer; width: fit-content; }
.audit-details .adm-kv { margin-top: 8px; padding: 12px; background: var(--a-sunken); border-radius: var(--a-r-ctl); }
/* SMS & email screens */
.admin-body .sms-hero, .admin-body .email-hero { border-radius: var(--a-r-card); }
.admin-body table.data { font-size: 14px; }
.admin-body table.data th { background: var(--a-sunken); color: var(--a-muted); font-size: 12px; font-weight: 600; }
.admin-body table.data td, .admin-body table.data th { border-color: var(--a-line); }
.admin-body .login-opt { border-color: var(--a-line); border-radius: var(--a-r-card); background: var(--a-surface); }
.admin-body .login-opt:has(input:checked) { border-color: var(--a-brand); background: var(--a-brand-soft); }
.admin-body .pager .btn { min-height: 32px; }

/* ---------- Dialogs and toasts while in the admin ---------- */
.is-admin-console .modal-backdrop { background: rgba(10, 14, 18, .5); backdrop-filter: blur(2px); animation: adm-fade .16s ease-out both; }
.is-admin-console .modal { background: var(--a-surface); color: var(--a-text); border: 1px solid var(--a-line); box-shadow: var(--a-shadow-dialog); animation: adm-rise .2s var(--a-ease) both; }
@media (min-width: 640px) { .is-admin-console .modal { border-radius: var(--a-r-dialog); } }
.is-admin-console .modal-head h2 { font-size: 17px; line-height: 24px; font-weight: 700; }
.is-admin-console .toast { border-color: var(--a-line); background: var(--a-surface); color: var(--a-text); box-shadow: var(--a-shadow-raised); }

/* ---------- Motion ---------- */
@keyframes adm-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes adm-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes adm-fade { from { opacity: 0; } }
@keyframes adm-flash { from { background: var(--a-brand-soft); } }
.admin-body > * { animation: adm-in .18s var(--a-ease) backwards; }
.admin-body > :nth-child(2) { animation-delay: 30ms; }
.admin-body > :nth-child(3) { animation-delay: 60ms; }
.admin-body > :nth-child(n+4) { animation-delay: 90ms; }
.adm-rows > *, .adm-dt tbody tr, .audit-item, .live-card, .adm-kpi { animation: adm-in .2s var(--a-ease) backwards; }
.adm-rows > :nth-child(2), .adm-dt tbody tr:nth-child(2), .adm-kpi:nth-child(2) { animation-delay: 25ms; }
.adm-rows > :nth-child(3), .adm-dt tbody tr:nth-child(3), .adm-kpi:nth-child(3) { animation-delay: 50ms; }
.adm-rows > :nth-child(4), .adm-dt tbody tr:nth-child(4), .adm-kpi:nth-child(4) { animation-delay: 75ms; }
.adm-rows > :nth-child(5), .adm-dt tbody tr:nth-child(5) { animation-delay: 100ms; }
.adm-rows > :nth-child(6), .adm-dt tbody tr:nth-child(6) { animation-delay: 125ms; }
.adm-rows > :nth-child(7), .adm-dt tbody tr:nth-child(7) { animation-delay: 150ms; }
.adm-rows > :nth-child(8), .adm-dt tbody tr:nth-child(8) { animation-delay: 175ms; }
.adm-rows > :nth-child(9), .adm-dt tbody tr:nth-child(9) { animation-delay: 200ms; }
.adm-rows > :nth-child(n+10), .adm-dt tbody tr:nth-child(n+10) { animation-delay: 225ms; }
.adm-flash { animation: adm-flash .9s ease-out; }
.admin-layout :focus-visible { outline: 2px solid var(--a-brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .admin-body > *, .adm-rows > *, .adm-dt tbody tr, .audit-item, .live-card, .adm-kpi, .adm-menu, .adm-actionbar, .adm-flash,
  .is-admin-console .modal, .is-admin-console .modal-backdrop, .adm-skel, .adm-status.tone-live .adm-dot, .live-updated .adm-dot, .adm-tool.is-spinning .icon { animation: none !important; }
  .adm-tab, .adm-kpi, .dash-q, .live-bar-fill { transition: none !important; }
}
.admin-body .case-hub { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; container-type: normal; }
.case-panel { container-type: inline-size; overflow: hidden; }
.date-he > .input { width: 100%; }
.adm-filters .field:has(.adm-dates) { grid-column: span 2; }
@media (max-width: 599px) { .adm-filters .field:has(.adm-dates) { grid-column: auto; } .adm-filters { grid-template-columns: minmax(0, 1fr); } }
.adm-dates .date-he { flex: 1 1 150px; }
@media (max-width: 599px) {
  .dash-queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-q { height: auto; min-height: 56px; padding: 8px 10px; flex-wrap: wrap; gap: 4px 8px; align-content: center; }
  .dash-q-l { white-space: normal; font-size: 12.5px; line-height: 1.3; order: 3; flex-basis: 100%; }
}

/* An open "⋯" menu sits above the rows below it. */
.adm-dt tbody tr:has(.adm-menu), .adm-row:has(.adm-menu), .audit-item:has(.adm-menu), .adm-panel:has(.adm-menu), .adm-toolbar:has(.adm-menu), .adm-head:has(.adm-menu) { position: relative; z-index: 20; }
.adm-dt-wrap, .case-panel { overflow: visible; }
@container (max-width: 700px) {
  .case-panel .case-inbox-table thead tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; background: var(--a-sunken); border-bottom: 1px solid var(--a-line); }
  .case-panel .case-inbox-table thead th { padding: 0; border: 0; background: none; }
  .case-panel .case-inbox-table thead th.case-selection-cell { order: -1; margin-inline-end: 4px; }
  .case-panel .case-inbox-table thead th button { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--a-line-strong); background: var(--a-surface); }
  .case-panel .case-inbox-table th[aria-sort="ascending"] button, .case-panel .case-inbox-table th[aria-sort="descending"] button { border-color: var(--a-brand); color: var(--a-brand); }
  .case-panel .case-inbox-table tbody tr { grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; padding: 14px 16px; box-shadow: inset -3px 0 0 var(--case-color, transparent); }
  .case-panel .case-inbox-table tbody tr td { padding: 0; border: 0; box-shadow: none !important; }
  .case-panel .case-inbox-table td.case-selection-cell { grid-column: 1; grid-row: 1; align-self: center; }
  .case-panel .case-inbox-table td.case-customer { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .case-panel .case-inbox-table td.case-customer .case-row-meta { display: inline; margin: 0; }
  .case-panel .case-inbox-table td:nth-child(3), .case-panel .case-inbox-table .case-treatment-cell, .case-panel .case-inbox-table td:last-child { grid-column: 1 / -1; }
  .case-panel .case-inbox-table td:last-child .case-row-actions { justify-content: flex-end; }
}

/* ---------- Admin → תשלומים וסליקה ---------- */
.pay-admin { --pay-r: 16px; }
.pay-card-x { padding: clamp(16px, 3vw, 24px); border-radius: var(--pay-r); box-shadow: var(--shadow); }
.pay-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pay-head > div { flex: 1 1 220px; min-width: 0; }
.pay-head h2 { margin: 0; font-size: 1.15rem; }
.pay-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.pay-head-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.pay-head-ic .icon { width: 22px; height: 22px; }
.pay-head-ic.apple { background: #000; color: #fff; font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.pay-label { display: block; font-weight: 700; font-size: .8rem; letter-spacing: .02em; color: var(--muted); text-transform: none; margin-bottom: 6px; }
.pay-hero .pay-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.pay-kpis li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.pay-kpi-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--warn-bg); color: var(--warn); }
.pay-kpis li.good .pay-kpi-ic { background: var(--ok-bg); color: var(--ok); }
.pay-kpi-ic .sms-svg { width: 17px; height: 17px; }
.pay-kpi-body { display: grid; line-height: 1.25; min-width: 0; }
.pay-kpi-body small { color: var(--muted); font-size: .78rem; }
.pay-kpi-body strong { font-size: .95rem; }
.pay-switches { display: grid; border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; background: var(--surface); }
.pay-switches .toggle-row:first-child { border-top: 0; }
.pay-switch .tr-text strong { font-size: .98rem; }
.pay-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; }
.pay-seg label { position: relative; cursor: pointer; }
.pay-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pay-seg span { display: inline-block; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.pay-seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.pay-seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.pay-info { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border)); }
.pay-info strong { display: block; font-size: .9rem; margin-bottom: 4px; }
.pay-info p { margin: 0; font-size: .88rem; color: var(--muted); }
.pay-copy { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.pay-copy code { flex: 1; min-width: 0; font-size: .82rem; overflow-wrap: anywhere; }
.pay-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--border); }
.pay-modes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pay-mode { position: relative; display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .15s; }
.pay-mode:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.pay-mode.on { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.pay-mode > input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pay-mode > input:focus-visible ~ .pay-mode-top { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
.pay-mode-top { display: flex; align-items: center; gap: 10px; }
.pay-mode-top strong { font-size: 1rem; }
.pay-mode-radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; }
.pay-mode.on .pay-mode-radio { border-color: var(--primary); }
.pay-mode.on .pay-mode-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.pay-mode-badge { margin-inline-start: auto; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.pay-mode-desc { color: var(--muted); font-size: .88rem; }
.pay-mode ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; }
.pay-mode li { display: flex; gap: 6px; align-items: flex-start; }
.pay-mode li .icon { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.pay-mode li.good .icon { color: var(--ok); }
.pay-mode li.note .icon { color: var(--warn); }
.pay-mode-state { margin-top: 2px; font-size: .8rem; font-weight: 600; color: var(--warn); }
.pay-mode-state.ok { color: var(--ok); }
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.pay-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 4px 0 20px; }
.pay-step:not(:last-child)::before { content: ""; position: absolute; top: 38px; bottom: 2px; inset-inline-start: 16px; width: 2px; background: var(--border); border-radius: 2px; }
.pay-step.done:not(:last-child)::before { background: color-mix(in srgb, var(--ok) 55%, var(--border)); }
.pay-step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--surface); border: 2px solid var(--border); color: var(--muted); z-index: 1; }
.pay-step-n .icon { width: 17px; height: 17px; }
.pay-step.done .pay-step-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.pay-step.warn .pay-step-n { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); color: var(--warn); }
.pay-step-body { display: grid; gap: 8px; align-content: start; padding-top: 5px; min-width: 0; }
.pay-step-body > strong { font-size: .98rem; }
.pay-step-body > p { margin: 0; color: var(--muted); font-size: .88rem; }
.pay-step-body .toggle-row { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.pay-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; font-size: .85rem; color: var(--ok); }
.pay-meta.muted { color: var(--muted); }
.pay-meta .icon { width: 15px; height: 15px; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-file { position: relative; overflow: hidden; cursor: pointer; }
.pay-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.is-busy { opacity: .6; pointer-events: none; }
.pay-chips { border: 0; padding: 0; margin: 0; }
.pay-chips legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.pay-master { border-radius: 14px; padding: 2px 16px; background: color-mix(in srgb, var(--primary) 7%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--primary) 30%, var(--border)); }
.pay-master .toggle-row { border-top: 0; }
.pay-master .tr-text strong { font-size: 1.02rem; }
.pay-log td.nowrap { white-space: nowrap; }
.pay-test-tag { margin-inline-start: 6px; font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pay-empty { display: grid; place-items: center; gap: 6px; padding: 28px; color: var(--muted); }
.pay-empty .icon { width: 28px; height: 28px; }
@media (max-width: 560px) { .pay-seg { display: flex; } .pay-seg label { flex: 1; text-align: center; } .pay-seg span { display: block; padding: 8px 10px; } }

/* ---------- Payment method picker (booking request) ---------- */
.pm-options { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.pm-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.pm-option:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.pm-option > input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pm-option:has(> input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.pm-option:has(> input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.pm-radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; transition: border-color .2s; }
.pm-option:has(> input:checked) .pm-radio { border-color: var(--primary); }
.pm-option:has(> input:checked) .pm-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.pm-logo { flex: none; min-width: 64px; height: 38px; padding: 0 10px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, #3b4652, #1d242b); }
.pm-logo.apple { background: #000; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.pm-logo.b-visa { background: linear-gradient(135deg, #1a3fa8, #0b1f66); }
.pm-logo.b-mastercard { background: linear-gradient(135deg, #e0452f, #f39a1e); }
.pm-logo.b-amex { background: linear-gradient(135deg, #2e7fd1, #145ea8); }
.pm-logo.b-isracard { background: linear-gradient(135deg, #1d6b8f, #0d4560); }
.pm-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pm-text strong { font-size: 1rem; }
.pm-text span { color: var(--muted); font-size: .85rem; }
.pm-tag { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pm-add { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: .9rem; font-weight: 600; text-decoration: none; padding: 4px 2px; }
.pm-add .icon { width: 16px; height: 16px; }
.pm-hold { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .86rem; }
.pm-hold .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.pm-steps { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--primary) 35%, var(--border)); font-size: .88rem; }
.pm-steps span { display: flex; gap: 8px; align-items: center; }
.pm-steps .icon { width: 16px; height: 16px; color: var(--primary); flex: none; }

/* ---------- Apple Pay through Tranzila (booking request) ---------- */
.pay-checkout { min-width: min(520px, 86vw); }
.pay-frame-box { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.pay-frame { display: block; width: 100%; height: min(560px, 70vh); border: 0; background: #fff; }
.pay-secure-note .icon { width: 14px; height: 14px; vertical-align: -2px; }
body.pay-return { min-height: 100vh; display: grid; place-items: center; margin: 0; padding: 24px; background: #fff; color: #1d2329; font: 16px/1.5 system-ui, sans-serif; text-align: center; }
.pay-return-msg.ok { color: #1f7a45; font-weight: 600; }
.pay-return-msg.fail { color: #b3261e; font-weight: 600; }
.applepay-box { display: grid; gap: 8px; }
.card-secure { color: var(--ok); }
.sticky-cta > [hidden] { display: none !important; }

/* ---------- Payment page /pay/<intent> (opened from the app in Safari) ---------- */
.is-pay-page .topbar, .is-pay-page #footer, .is-pay-page #bottom-nav { display: none !important; }
.paypage { max-width: 460px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 16px 32px; display: grid; gap: 18px; }
.paypage-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.paypage-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 22px 20px; display: grid; gap: 14px; }
.paypage-title { font-size: 1.35rem; margin: 0; text-align: center; }
.paypage-sum { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.paypage-sum dt { color: var(--muted); }
.paypage-sum .paypage-first { padding-top: 8px; border-top: 1px solid var(--border); }
.paypage-sum dd { margin: 0; text-align: end; font-weight: 600; font-variant-numeric: tabular-nums; }
.paypage-sum .paypage-total { padding-top: 8px; border-top: 1px dashed var(--border); font-size: 1.1rem; color: var(--text); font-weight: 700; }
.paypage-explain { margin: 0; line-height: 1.55; }
.paypage-pay { display: grid; }
.paypage-card > [role="status"] { text-align: center; margin: -4px 0 0; }
.paypage-apbtn { --apple-pay-button-width: 100%; --apple-pay-button-height: 52px; --apple-pay-button-border-radius: 12px; display: block; width: 100%; cursor: pointer; }
.paypage-apfallback { background: #000; color: #fff; min-height: 52px; font-size: 1.05rem; border-radius: 12px; }
.paypage-state { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 8px 0; }
.paypage-state h1 { margin: 0; font-size: 1.4rem; }
.paypage-state p { margin: 0; }
.paypage-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.paypage-badge .icon { width: 34px; height: 34px; }
.paypage-badge.ok { background: var(--ok-bg); color: var(--ok); }
.paypage-badge.fail { background: var(--danger-bg); color: var(--danger); }
.paypage-foot { text-align: center; margin: 0; }
.paypage-foot .icon { width: 14px; height: 14px; vertical-align: -2px; }
.paypage-state .btn { min-height: 50px; font-size: 1.05rem; }

/* ---------- Credits, refunds, payments due (paid with the request) ---------- */
.pm-credits { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--ok) 55%, var(--border)); background: color-mix(in srgb, var(--ok-bg) 55%, var(--surface)); cursor: pointer; }
.pm-credits > input { width: 20px; height: 20px; flex: none; accent-color: var(--ok); margin: 0; }
.pm-credits:has(> input:checked) { border-style: solid; border-color: var(--ok); }
.pm-logo.credits { background: linear-gradient(135deg, #1f8a4c, #136236); }
.pm-logo.credits .icon { width: 20px; height: 20px; }
.refund-choice { min-width: min(460px, 86vw); }
.refund-amount { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); }
.refund-amount strong { font-size: 1.6rem; }
.refund-opts { display: grid; gap: 10px; }
.refund-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.refund-opt:hover, .refund-opt:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.refund-opt.primary { border-color: color-mix(in srgb, var(--ok) 60%, var(--border)); background: color-mix(in srgb, var(--ok-bg) 45%, var(--surface)); }
.refund-opt[disabled] { opacity: .6; cursor: progress; }
.refund-opt-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.refund-opt.primary .refund-opt-ic { background: var(--ok); color: #fff; }
.refund-opt-ic .icon { width: 20px; height: 20px; }
.refund-opt-text { display: grid; gap: 2px; }
.refund-opt-text span { color: var(--muted); font-size: .86rem; }
.money-head { justify-content: space-between; }
.money-head h2 { margin: 0; }
.price-table tr.refund td { color: var(--ok); }
.btn-apple { background: #000; color: #fff; border-color: #000; }
.credits-card .credits-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.credits-card .credits-head > div { flex: 1 1 200px; }
.credits-card h2 { margin: 0; }
.credits-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.credits-balance { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.credits-redeem { flex-wrap: nowrap; }
.credits-redeem .input { flex: 1; min-width: 0; text-transform: uppercase; }
.credits-redeem.is-wrong .input { border-color: var(--danger, #DC2626); color: var(--danger, #DC2626); }
.credits-redeem.shake { animation: payout-amount-shake .38s ease; }
.credits-err:empty { display: none; }
.credits-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.credits-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.credits-list .plus { color: var(--ok); font-weight: 700; white-space: nowrap; }
.credits-list .minus { color: var(--text); font-weight: 700; white-space: nowrap; }
.credits-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.credits-pick .btn { justify-content: flex-start; gap: 10px; }
.credits-badge { background: var(--ok-bg); color: var(--ok); }
.coupon-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.coupon { display: grid; gap: 8px; border-inline-start: 4px solid var(--ok); }
.coupon.is-off { opacity: .65; border-inline-start-color: var(--border); }
.coupon p { margin: 0; }
.coupon-top { display: flex; align-items: center; gap: 10px; }
.coupon-code { font: 700 1.05rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; padding: 6px 10px; border-radius: 8px; border: 1.5px dashed var(--border); background: var(--surface-2); color: var(--text); cursor: copy; display: inline-flex; gap: 6px; align-items: center; }
.coupon-code .icon { width: 14px; height: 14px; opacity: .6; }
.coupon-amount { margin-inline-start: auto; font-size: 1.15rem; }

/* ==========================================================================
   Admin → קרדיטים וקופונים (cr-*). Money green + coupon gold; coupons are tickets.
   ========================================================================== */
.cr-page {
  --cr-mint: #0FA36B; --cr-deep: #0B4F4A; --cr-teal: #12735F; --cr-gold: #F4B740; --cr-gold-ink: #6B4500;
  --cr-mint-soft: #E6F6EE; --cr-paper: #FFFCF3; --cr-red: #C2410C;
  display: grid; gap: 18px; color: var(--a-text);
}
:root[data-theme="dark"] .cr-page { --cr-mint: #3CCB8F; --cr-mint-soft: #133227; --cr-paper: #2A2617; --cr-red: #FF9F7A; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .cr-page { --cr-mint: #3CCB8F; --cr-mint-soft: #133227; --cr-paper: #2A2617; --cr-red: #FF9F7A; } }
.cr-svg { width: 18px; height: 18px; flex: none; }
.cr-svg.big { width: 44px; height: 44px; color: var(--cr-mint); }
.cr-stack { display: grid; gap: 16px; }

/* hero */
.cr-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 26px 28px; border-radius: 22px;
  color: #fff; background: radial-gradient(120% 140% at 100% 0%, #13906F 0%, var(--cr-deep) 55%, #083A37 100%); box-shadow: 0 18px 40px -22px rgba(11, 79, 74, .8); }
.cr-hero::after { content: ""; position: absolute; inset: auto -40px -70px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 183, 64, .28), transparent); pointer-events: none; }
.cr-hero-text { position: relative; z-index: 1; display: grid; gap: 6px; min-width: 0; }
.cr-hero-kicker { margin: 0; font-size: .95rem; opacity: .82; }
.cr-hero-amount { margin: 0; font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cr-hero-sub { margin: 4px 0 0; max-width: 46ch; opacity: .85; line-height: 1.5; }
.cr-hero-facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cr-hero-facts li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .88rem; }
.cr-hero-facts b { font-weight: 800; }
.cr-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cr-hero-art { position: relative; z-index: 1; width: 220px; height: auto; }
.cr-float-ticket { animation: cr-float 5s ease-in-out infinite; transform-origin: center; }
.cr-float-coin { animation: cr-float 5s ease-in-out -2.5s infinite; }
@keyframes cr-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .cr-float-ticket, .cr-float-coin { animation: none; } }
@media (max-width: 640px) { .cr-hero { grid-template-columns: 1fr; padding: 22px 18px; } .cr-hero-art { position: absolute; inset-inline-start: -30px; top: -10px; width: 150px; opacity: .25; } }

/* buttons */
.cr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s; }
.cr-btn .icon, .cr-btn .cr-svg { width: 18px; height: 18px; }
.cr-btn:active { transform: translateY(1px); }
.cr-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--cr-gold) 70%, transparent); outline-offset: 2px; }
.cr-btn[disabled] { opacity: .55; cursor: not-allowed; }
.cr-btn-light { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.cr-btn-light:hover { background: rgba(255, 255, 255, .22); }
.cr-btn-gold { background: var(--cr-gold); color: var(--cr-gold-ink); box-shadow: 0 8px 18px -10px rgba(244, 183, 64, .9); }
.cr-btn-gold:hover { background: #F7C55E; }
.cr-btn-primary { background: var(--cr-mint); color: #fff; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--cr-mint) 90%, transparent); }
.cr-btn-primary:hover { background: color-mix(in srgb, var(--cr-mint) 88%, #000); }
.cr-btn-danger { background: var(--cr-red); color: #fff; }

/* tabs */
.cr-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--a-surface); border: 1px solid var(--a-line); justify-self: start; }
.cr-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 0; background: none; color: var(--a-muted); font: inherit; font-weight: 700; cursor: pointer; }
.cr-tab .icon, .cr-tab .cr-svg { width: 18px; height: 18px; }
.cr-tab[aria-selected="true"] { background: var(--cr-mint-soft); color: var(--cr-mint); }
.cr-tab:focus-visible { outline: 2px solid var(--cr-mint); outline-offset: 2px; }

/* cards & heads */
.cr-card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 18px; padding: 20px; }
.cr-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cr-section-head h2 { margin: 0; font-size: 1.1rem; }
.cr-section-head span { color: var(--a-muted); font-size: .88rem; }
.cr-section-head.cr-outside { margin: 6px 4px 0; }
.cr-label { display: block; font-size: .85rem; font-weight: 700; color: var(--a-muted); margin-bottom: 8px; }
.cr-field { display: grid; }
.cr-input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--a-line); background: var(--a-sunken); color: var(--a-text); font: inherit; transition: border-color .15s, box-shadow .15s, background .15s; }
.cr-input:focus { outline: none; border-color: var(--cr-mint); background: var(--a-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cr-mint) 16%, transparent); }
.cr-narrow { max-width: 160px; }
.cr-code-input { font-weight: 800; letter-spacing: .12em; text-align: left; }
.cr-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
@media (max-width: 640px) { .cr-row-2 { grid-template-columns: 1fr; } }

/* search */
.cr-search { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 60px; border-radius: 18px; background: var(--a-surface); border: 1.5px solid var(--a-line); box-shadow: 0 10px 30px -24px rgba(16, 24, 40, .6); transition: border-color .15s, box-shadow .15s; }
.cr-search:focus-within { border-color: var(--cr-mint); box-shadow: 0 0 0 5px color-mix(in srgb, var(--cr-mint) 14%, transparent); }
.cr-search > .icon { width: 22px; height: 22px; color: var(--cr-mint); }
.cr-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--a-text); font: inherit; font-size: 1.05rem; padding: 14px 0; }
.cr-search input:focus { outline: none; }
.cr-results { position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 20; display: none; padding: 6px; border-radius: 16px; background: var(--a-surface); border: 1px solid var(--a-line); box-shadow: var(--a-shadow-dialog); max-height: 360px; overflow: auto; }
.cr-results.open { display: grid; gap: 2px; }
.cr-results-note { margin: 0; padding: 12px; color: var(--a-muted); }
.cr-result { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 0; background: none; color: var(--a-text); font: inherit; text-align: start; cursor: pointer; }
.cr-result:hover, .cr-result:focus-visible { background: var(--cr-mint-soft); outline: none; }
.cr-result-text { display: grid; flex: 1; min-width: 0; }
.cr-result-text span { color: var(--a-muted); font-size: .85rem; }
.cr-chip { padding: 3px 10px; border-radius: 999px; background: var(--cr-mint-soft); color: var(--cr-mint); font-weight: 800; font-size: .85rem; }

/* avatars */
.cr-av { --hue: 158; width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  color: hsl(var(--hue) 55% 28%); background: hsl(var(--hue) 70% 90%); }
.cr-av.big { width: 56px; height: 56px; border-radius: 16px; font-size: 1.2rem; }
:root[data-theme="dark"] .cr-av { color: hsl(var(--hue) 70% 85%); background: hsl(var(--hue) 35% 24%); }

/* the selected customer */
.cr-customer { display: grid; gap: 18px; border-color: color-mix(in srgb, var(--cr-mint) 40%, var(--a-line)); box-shadow: 0 16px 40px -30px color-mix(in srgb, var(--cr-mint) 80%, transparent); }
.cr-customer-head { display: flex; align-items: center; gap: 14px; }
.cr-customer-who { flex: 1; min-width: 0; }
.cr-customer-who h2 { margin: 0; font-size: 1.2rem; }
.cr-customer-who p { margin: 2px 0 0; color: var(--a-muted); }
.cr-balance { display: grid; text-align: end; padding: 8px 14px; border-radius: 14px; background: var(--cr-mint-soft); color: var(--cr-mint); }
.cr-balance small { font-weight: 700; }
.cr-balance strong { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cr-close { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--a-sunken); color: var(--a-muted); cursor: pointer; display: grid; place-items: center; }
.cr-close .icon { width: 18px; height: 18px; }
.cr-load { display: grid; gap: 16px; padding: 16px; border-radius: 16px; background: var(--a-sunken); }
.cr-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-dir-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--a-line); background: var(--a-surface); color: var(--a-text); font: inherit; text-align: start; cursor: pointer; }
.cr-dir-opt span { display: grid; }
.cr-dir-opt small { color: var(--a-muted); }
.cr-dir-opt .icon { width: 22px; height: 22px; padding: 6px; box-sizing: content-box; border-radius: 10px; background: var(--a-sunken); }
.cr-dir-opt.add[aria-checked="true"] { border-color: var(--cr-mint); background: var(--cr-mint-soft); }
.cr-dir-opt.add[aria-checked="true"] .icon { background: var(--cr-mint); color: #fff; }
.cr-dir-opt.remove[aria-checked="true"] { border-color: var(--cr-red); background: color-mix(in srgb, var(--cr-red) 8%, var(--a-surface)); }
.cr-dir-opt.remove[aria-checked="true"] .icon { background: var(--cr-red); color: #fff; }
.cr-amount-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-amount { min-width: 72px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--a-line); background: var(--a-surface); color: var(--a-text); font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.cr-amount:hover { border-color: color-mix(in srgb, var(--cr-mint) 50%, var(--a-line)); }
.cr-amount[aria-pressed="true"] { background: var(--cr-mint); border-color: var(--cr-mint); color: #fff; }
.cr-custom { width: 120px; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px dashed var(--a-line-strong); background: var(--a-surface); color: var(--a-text); font: inherit; font-weight: 700; }
.cr-custom:focus { outline: none; border-style: solid; border-color: var(--cr-mint); }
.cr-reason-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cr-reason { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-muted); font: inherit; font-size: .86rem; cursor: pointer; }
.cr-reason:hover { color: var(--cr-mint); border-color: var(--cr-mint); }
.cr-load-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cr-go { min-height: 50px; padding: 0 22px; font-size: 1rem; }
.cr-notify { display: inline-flex; align-items: center; gap: 10px; color: var(--a-muted); font-size: .92rem; cursor: pointer; }

/* switch */
.cr-switch { position: relative; display: inline-flex; flex: none; }
.cr-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cr-switch span { width: 44px; height: 26px; border-radius: 999px; background: var(--a-line-strong); transition: background .2s; position: relative; }
.cr-switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--a-ease); }
.cr-switch input:checked + span { background: var(--cr-mint); }
.cr-switch input:checked + span::after { transform: translateX(-18px); }
[dir="ltr"] .cr-switch input:checked + span::after { transform: translateX(18px); }
.cr-switch input:focus-visible + span { outline: 2px solid var(--cr-mint); outline-offset: 2px; }

/* history */
.cr-history-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.cr-history-head h3 { margin: 0; font-size: 1rem; }
.cr-history-head span { color: var(--a-muted); font-size: .86rem; }
.cr-timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.cr-timeline li { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--a-line); }
.cr-dot { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--cr-mint); box-shadow: 0 0 0 4px var(--cr-mint-soft); }
.cr-timeline li.out .cr-dot { background: var(--a-faint); box-shadow: 0 0 0 4px var(--a-sunken); }
.cr-tl-text { display: grid; gap: 1px; min-width: 0; }
.cr-tl-text span, .cr-tl-text time { color: var(--a-muted); font-size: .85rem; }
.cr-timeline b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-timeline li.in b { color: var(--cr-mint); }
.cr-empty-line { margin: 0; color: var(--a-muted); }

/* people */
.cr-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cr-person { width: 100%; display: grid; grid-template-columns: auto minmax(120px, 1.2fr) minmax(140px, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; background: var(--a-sunken); color: var(--a-text); font: inherit; text-align: start; cursor: pointer; }
.cr-person:hover, .cr-person:focus-visible { border-color: color-mix(in srgb, var(--cr-mint) 45%, var(--a-line)); background: var(--a-surface); outline: none; }
.cr-person-text { display: grid; min-width: 0; }
.cr-person-text span { color: var(--a-muted); font-size: .85rem; }
.cr-meter { display: grid; gap: 4px; }
.cr-meter small { color: var(--a-muted); font-size: .78rem; }
.cr-meter-bar { position: relative; height: 8px; border-radius: 999px; background: var(--a-line); overflow: hidden; }
.cr-meter-bar::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); border-radius: inherit; background: var(--cr-mint); }
.cr-meter-bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--w) * var(--u, 0)); background: var(--cr-gold); border-radius: inherit; }
.cr-person-balance { font-size: 1.15rem; font-weight: 800; color: var(--cr-mint); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .cr-person { grid-template-columns: auto 1fr auto; } .cr-meter { display: none; } }
.cr-empty { display: grid; justify-items: center; gap: 4px; padding: 26px 12px; text-align: center; }
.cr-empty p { margin: 6px 0 0; font-weight: 700; }
.cr-empty span { color: var(--a-muted); font-size: .9rem; }
.cr-loading { display: flex; align-items: center; gap: 10px; color: var(--a-muted); }
.cr-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--a-line); border-top-color: var(--cr-mint); animation: cr-spin .8s linear infinite; }
@keyframes cr-spin { to { transform: rotate(360deg); } }

/* coupon creation */
.cr-create { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 22px; }
.cr-create-form { display: grid; gap: 16px; align-content: start; }
.cr-create-preview { position: sticky; top: 16px; align-self: start; padding: 18px; border-radius: 16px; background: radial-gradient(130% 120% at 0% 0%, color-mix(in srgb, var(--cr-gold) 18%, var(--a-sunken)), var(--a-sunken) 60%); }
@media (max-width: 860px) { .cr-create { grid-template-columns: 1fr; } .cr-create-preview { position: static; } }
.cr-limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cr-limit { display: grid; justify-items: start; gap: 2px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--a-line); background: var(--a-surface); color: var(--a-text); font: inherit; text-align: start; cursor: pointer; }
.cr-limit .cr-svg { width: 22px; height: 22px; color: var(--a-muted); margin-bottom: 4px; }
.cr-limit small { color: var(--a-muted); font-size: .8rem; }
.cr-limit[aria-checked="true"] { border-color: var(--cr-gold); background: color-mix(in srgb, var(--cr-gold) 14%, var(--a-surface)); }
.cr-limit[aria-checked="true"] .cr-svg { color: var(--cr-gold-ink); }
:root[data-theme="dark"] .cr-limit[aria-checked="true"] .cr-svg { color: var(--cr-gold); }
@media (max-width: 520px) { .cr-limits { grid-template-columns: 1fr; } }
.cr-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; border: 1.5px solid var(--a-line); background: var(--a-surface); justify-self: start; }
.cr-stepper button { width: 38px; height: 38px; border-radius: 9px; border: 0; background: var(--a-sunken); color: var(--a-text); cursor: pointer; display: grid; place-items: center; }
.cr-stepper button[disabled] { opacity: .4; cursor: not-allowed; }
.cr-stepper .icon { width: 16px; height: 16px; }
.cr-stepper output { min-width: 34px; text-align: center; font-weight: 800; font-size: 1.1rem; }

/* tickets */
.cr-tickets { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 400px) { .cr-tickets { grid-template-columns: 1fr; } }
.cr-ticket { --notch: 13px; position: relative; display: grid; grid-template-columns: 104px 1fr; min-height: 150px; border-radius: 18px; background: var(--cr-paper); border: 1px solid color-mix(in srgb, var(--cr-gold) 40%, var(--a-line));
  -webkit-mask: radial-gradient(circle var(--notch) at 104px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 104px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at 104px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 104px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
[dir="rtl"] .cr-ticket { -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 104px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 104px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at calc(100% - 104px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 104px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.cr-ticket-stub { display: grid; place-content: center; justify-items: center; gap: 2px; padding: 12px 8px; background: linear-gradient(160deg, #F7C860, var(--cr-gold)); color: var(--cr-gold-ink); border-start-start-radius: 17px; border-end-start-radius: 17px; border-inline-end: 2px dashed rgba(107, 69, 0, .35); }
.cr-ticket-stub small { font-weight: 700; opacity: .8; }
.cr-ticket-stub strong { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cr-ticket-body { display: grid; align-content: start; gap: 10px; padding: 14px 16px; min-width: 0; }
.cr-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cr-ticket-code { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--a-text); font: inherit; font-size: 1.25rem; font-weight: 800; letter-spacing: .12em; direction: ltr; cursor: copy; }
.cr-ticket-code .cr-svg { width: 16px; height: 16px; color: var(--a-faint); }
.cr-ticket-code:hover .cr-svg { color: var(--cr-mint); }
.cr-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-rule { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--cr-gold) 16%, var(--a-surface)); color: var(--a-text); font-size: .8rem; font-weight: 600; }
.cr-progress { display: grid; gap: 4px; }
.cr-progress-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--cr-gold) 20%, var(--a-line)); position: relative; overflow: hidden; }
.cr-progress-bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--cr-mint), #34C38F); }
.cr-progress small { color: var(--a-muted); font-size: .8rem; }
.cr-ticket-note { color: var(--a-muted); font-size: .85rem; }
.cr-ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cr-ticket-foot summary { cursor: pointer; color: var(--cr-mint); font-weight: 700; font-size: .88rem; }
.cr-ticket-foot ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.cr-ticket-foot li { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.cr-ticket-foot li .cr-av { width: 26px; height: 26px; border-radius: 8px; font-size: .7rem; }
.cr-ticket-foot li small { color: var(--a-muted); margin-inline-start: auto; }
.cr-link-danger { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--cr-red); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.cr-link-danger .icon { width: 15px; height: 15px; }
.cr-ticket.is-off { filter: grayscale(.9); opacity: .7; }
.cr-ticket.is-preview { min-height: 160px; box-shadow: 0 20px 40px -26px rgba(107, 69, 0, .7); }
.cr-ticket-hint { color: var(--a-muted); font-size: .82rem; }
.cr-code-input:placeholder-shown { letter-spacing: normal; font-weight: 400; text-align: right; }
.cr-ticket-code { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .cr-hero-art { display: none; }
  .cr-limits { grid-template-columns: repeat(3, 1fr); }
  .cr-limit { padding: 10px 8px; justify-items: center; text-align: center; }
  .cr-limit small { display: none; }
  .cr-ticket { grid-template-columns: 84px 1fr; }
  [dir="rtl"] .cr-ticket { -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 84px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 84px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle var(--notch) at calc(100% - 84px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 84px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
  .cr-ticket-code { font-size: 1.05rem; letter-spacing: .06em; }
  .cr-tickets { grid-template-columns: 1fr; }
  .cr-card { padding: 16px; }
  .cr-dir { grid-template-columns: 1fr 1fr; }
  .cr-dir-opt small { display: none; }
  .cr-go { width: 100%; }
}

/* Admin → תשלומים וסליקה → עסקאות בטרנזילה */

/* Admin → payments → Tranzila transactions (ledger) */
.ptx { display: grid; gap: 18px; padding: 22px 24px; }
.ptx-head { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; }
.ptx-title { min-width: 0; }
.ptx-title h2 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ptx-title p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.ptx-test { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); cursor: help; }
.ptx-spin .icon { animation: ptx-rot .8s linear infinite; }
@keyframes ptx-rot { to { transform: rotate(360deg); } }

.ptx-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ptx-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2); }
.ptx-seg button { border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.ptx-seg button:hover { color: var(--text); }
.ptx-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--border); }
.ptx-range, .ptx-search { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); }
.ptx-range:focus-within, .ptx-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.ptx-range .icon, .ptx-search .icon { width: 16px; height: 16px; flex: none; }
.ptx-range input, .ptx-search input { border: 0; background: none; font: inherit; font-size: .88rem; color: var(--text); outline: none; min-width: 0; }
.ptx-range input { width: 128px; }
.ptx-range-sep { color: var(--muted); }
.ptx-search { margin-inline-start: auto; }
.ptx-search input { width: 140px; text-align: right; }
.ptx-search input::placeholder { color: var(--muted); }

.ptx-summary { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.ptx-summary > div { padding: 16px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.ptx-summary > div + div { border-inline-start: 1px solid var(--border); }
.ptx-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.ptx-lbl .icon { width: 14px; height: 14px; }
.ptx-summary strong { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.2; }
.ptx-summary > div > span:last-child:not(.ptx-lbl) { font-size: .8rem; color: var(--muted); }
.ptx-net { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.ptx-net strong { font-size: 1.85rem; color: var(--text); }
.ptx-range-txt { font-size: .8rem; color: var(--muted); }
.ptx-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; gap: 2px; margin-top: 6px; background: var(--surface-2); }
.ptx-bar .in { background: var(--ok); }
.ptx-bar .out { background: var(--danger); opacity: .75; }
.ptx-stat:nth-child(2) .ptx-lbl .icon { color: var(--ok); }
.ptx-stat strong.neg { color: var(--danger); }
.ptx-stat.alert strong, .ptx-stat.alert .ptx-lbl .icon { color: var(--danger); }

.ptx-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.ptx-tabs [role="tab"] { position: relative; border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); padding: 10px 12px 12px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.ptx-tabs [role="tab"]:hover:not(:disabled) { color: var(--text); }
.ptx-tabs [role="tab"]:disabled { opacity: .45; cursor: default; }
.ptx-tabs [role="tab"][aria-selected="true"] { color: var(--primary); }
.ptx-tabs [role="tab"][aria-selected="true"]::after { content: ''; position: absolute; inset-inline: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.ptx-count { font-size: .72rem; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
[aria-selected="true"] > .ptx-count { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); }
.ptx-export { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 600; color: var(--primary); padding: 8px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.ptx-export:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.ptx-export:disabled { opacity: .45; cursor: default; }
.ptx-export .icon { width: 16px; height: 16px; }
.ptx-cap { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.ptx-cap .icon { width: 16px; height: 16px; flex: none; }

.ptx-wrap { transition: opacity .2s; }
.ptx-wrap.busy { opacity: .5; pointer-events: none; }
.ptx-table { --ptx-cols: 40px minmax(170px, 1.7fr) minmax(150px, 1.1fr) 92px 96px minmax(96px, .8fr) 20px; display: grid; }
.ptx-thead, .ptx-row { display: grid; grid-template-columns: var(--ptx-cols); align-items: center; column-gap: 16px; }
.ptx-thead { padding: 0 14px 8px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.ptx-day { display: flex; justify-content: space-between; gap: 12px; padding: 18px 14px 8px; font-size: .8rem; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); }
.ptx-thead + .ptx-day { padding-top: 6px; }
.ptx-day-sum { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.ptx-row { padding: 12px 14px; border-bottom: 1px solid var(--grid); cursor: pointer; transition: background .12s; border-radius: 0; }
.ptx-row:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.ptx-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 8px; }
.ptx-row.open { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); border-bottom-color: transparent; }
.ptx-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.ptx-ic .icon { width: 17px; height: 17px; }
.ptx-ic.in { background: var(--ok-bg); color: var(--ok); }
.ptx-ic.out { background: var(--info-bg); color: var(--primary); }
.ptx-ic.warn { background: var(--warn-bg); color: var(--warn); }
.ptx-ic.danger { background: var(--danger-bg); color: var(--danger); }
.ptx-main { display: grid; gap: 2px; min-width: 0; }
.ptx-main strong { font-size: .95rem; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.ptx-sub-tag { font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.ptx-meta { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptx-st { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.ptx-st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ptx-st.ok { color: var(--ok); }
.ptx-st.danger { color: var(--danger); }
.ptx-st.muted { color: var(--muted); }
.ptx-time { font-variant-numeric: tabular-nums; }
.ptx-card { display: flex; align-items: center; gap: 8px; font-size: .88rem; min-width: 0; }
.ptx-brand { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); white-space: nowrap; }
.ptx-num { font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; letter-spacing: .02em; }
.ptx-book a { font-weight: 600; font-variant-numeric: tabular-nums; }
.ptx-none { color: var(--muted); }
.ptx-idx { display: grid; font-size: .82rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ptx-idx small { font-size: .7rem; opacity: .8; }
.ptx-amt { text-align: left; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .98rem; white-space: nowrap; }
.ptx-thead .ptx-amt { font-weight: 600; font-size: .75rem; }
.ptx-amt.pos { color: var(--text); }
.ptx-amt.neg { color: var(--danger); }
.ptx-row.declined .ptx-amt { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.ptx-chev { color: var(--muted); display: grid; place-items: center; }
.ptx-chev .icon { width: 16px; height: 16px; transition: transform .2s; }
.ptx-row.open .ptx-chev .icon { transform: rotate(180deg); }

.ptx-more { padding: 0 14px 14px; background: color-mix(in srgb, var(--primary) 6%, var(--surface)); border-bottom: 1px solid var(--border); animation: ptx-in .18s ease-out; }
@keyframes ptx-in { from { opacity: 0; transform: translateY(-4px); } }
.ptx-detail { display: grid; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.ptx-dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.ptx-dgroup h4 { margin: 0 0 8px; font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.ptx-dgroup dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 14px; margin: 0; font-size: .86rem; }
.ptx-dgroup dt { color: var(--muted); }
.ptx-dgroup dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ptx-dgroup dd[dir="ltr"] { text-align: right; font-variant-numeric: tabular-nums; }
.ptx-dactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.ptx-dnote { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.ptx-dnote .icon { width: 16px; height: 16px; }

.ptx-skel { display: grid; gap: 10px; }
.ptx-skel span { height: 52px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: ptx-sh 1.2s linear infinite; }
@keyframes ptx-sh { to { background-position: -200% 0; } }
.ptx-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; color: var(--muted); font-size: .9rem; }
.ptx-empty strong { color: var(--text); font-size: 1rem; }
.ptx-empty-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 6px; }
.ptx-empty-ic .icon { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) { .ptx-more, .ptx-skel span, .ptx-spin .icon { animation: none; } }

@media (max-width: 900px) {
  .ptx-summary { grid-template-columns: 1fr 1fr; }
  .ptx-net { grid-column: 1 / -1; }
  .ptx-summary > div + div { border-inline-start: 0; border-top: 1px solid var(--border); }
  .ptx-summary > div:nth-child(n+3) { border-inline-start: 1px solid var(--border); }
  .ptx-summary > div:nth-child(4) { grid-column: 1 / -1; border-inline-start: 0; }
  .ptx-dgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .ptx { padding: 16px; gap: 14px; }
  .ptx-search { margin-inline-start: 0; flex: 1 1 100%; }
  .ptx-search input { width: 100%; }
  .ptx-range { flex: 1 1 100%; }
  .ptx-range input { flex: 1; width: auto; }
  .ptx-thead { display: none; }
  .ptx-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ic main amt" "ic card idx"; row-gap: 4px; column-gap: 12px; padding: 12px 6px; }
  .ptx-ic { grid-area: ic; align-self: start; }
  .ptx-main { grid-area: main; }
  .ptx-amt { grid-area: amt; }
  .ptx-card { grid-area: card; font-size: .8rem; }
  .ptx-idx { grid-area: idx; text-align: left; }
  .ptx-book, .ptx-chev { display: none; }
  .ptx-day { padding-inline: 6px; }
  .ptx-more { padding: 0 0 12px; }
  .ptx-dgrid { grid-template-columns: 1fr; }
}

/* The page Safari shows after a card added from the app (Tranzila's success / fail address) */
body.card-return { min-height: 100vh; display: grid; place-items: center; margin: 0; padding: 24px; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, sans-serif; }
.card-return-box { width: min(420px, 100%); display: grid; gap: 12px; padding: 28px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: center; }
.card-return-box h1 { margin: 0; font-size: 1.3rem; }
.card-return-box.ok h1 { color: var(--ok); }
.card-return-box.fail h1 { color: var(--danger); }
.card-return-box p { margin: 0 0 6px; color: var(--muted); }

/* /card/<intent>: our card page around Tranzila's Hosted Fields */
.cardpage-card { gap: 18px; }
.cardpage-head { display: flex; gap: 12px; align-items: center; }
.cardpage-head .paypage-title { text-align: start; font-size: 1.25rem; }
.cardpage-head p { margin: 2px 0 0; }
.cardpage-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.cardpage-ic .icon { width: 22px; height: 22px; }
.cardpage-test { margin: 0; padding: 6px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-weight: 600; text-align: center; }
.cardpage-form { display: grid; gap: 14px; }
.hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hf-field { display: grid; gap: 6px; min-width: 0; }
.hf-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.hf-input { height: 50px; padding: 2px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color-scheme: light; transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.hf-input iframe { width: 100% !important; height: 44px !important; border: 0; display: block; }
.hf-input.hosted-fields-focused, .hf-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.hf-input.hosted-fields-invalid { border-color: var(--danger); }
.hf-input.hosted-fields-valid { border-color: color-mix(in srgb, var(--ok) 60%, var(--border)); }
.hf-error { min-height: 1em; font-size: .8rem; color: var(--danger); }
.hf-error:empty { display: none; }
.cardpage-btn { min-height: 52px; font-size: 1.05rem; margin-top: 4px; }
.cardpage-status { margin: 0; text-align: center; color: var(--muted); }
.cardpage-status:empty { display: none; }
.cardpage-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); color: var(--text); font-size: .88rem; line-height: 1.5; }
.cardpage-note .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--primary); }
.cardpage-note p { margin: 0; }

.hf-input-own { display: flex; align-items: center; }
.hf-own { width: 100%; height: 44px; border: 0; outline: 0; background: transparent; font: 17px system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; color: #101418; }
.hf-own[dir="ltr"] { text-align: left; letter-spacing: .04em; }
.hf-own::placeholder { color: #8a939c; }

.cardpage-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.cardpage-top .paypage-brand { justify-content: center; }
.cardpage-top::after { content: ''; width: 64px; }
.cardpage-back { width: 64px; display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--primary); text-decoration: none; padding: 8px 0; }
.cardpage-back .icon { width: 18px; height: 18px; }

/* Admin → booking → "פעולות": action rows and their forms */
.adm-acts { display: grid; gap: 8px; padding: 4px 0 2px; }
.adm-act { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.adm-act:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.adm-act:active { transform: scale(.99); }
.adm-act:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.adm-act-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.adm-act-ic .icon { width: 19px; height: 19px; }
.adm-act.tone-danger .adm-act-ic { background: var(--danger-bg); color: var(--danger); }
.adm-act.tone-danger:hover { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.adm-act-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.adm-act-txt strong { font-size: .95rem; }
.adm-act-txt small { color: var(--muted); font-size: .8rem; }
.adm-act-go { width: 16px; height: 16px; color: var(--muted); flex: none; }
.adm-act-form { display: grid; gap: 14px; min-width: min(480px, 86vw); }
.adm-act-intro { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.adm-act-body { display: grid; gap: 8px; }
.adm-act-sub { display: grid; gap: 8px; }
.adm-act-sub:empty { display: none; }
.adm-act-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-top: 6px; }
.adm-act-choices { display: grid; gap: 6px; }
.adm-act-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.adm-act-choice input { position: absolute; opacity: 0; pointer-events: none; }
.adm-act-choice:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.adm-act-choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.adm-act-choice-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.adm-act-choice:has(input:checked) .adm-act-choice-ic { background: var(--primary); color: var(--on-primary); }
.adm-act-choice-ic .icon { width: 16px; height: 16px; }
.adm-act-choice-txt { display: grid; gap: 1px; min-width: 0; }
.adm-act-choice-txt strong { font-size: .92rem; }
.adm-act-choice-txt small { font-size: .78rem; color: var(--muted); }
.adm-act-amount-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-act-amount-wrap { position: relative; flex: 0 1 180px; }
.adm-act-cur { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.adm-act-amount { width: 100%; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 32px; }
.adm-act-quick { display: flex; gap: 4px; }
.adm-act-reason { resize: vertical; min-height: 72px; }
.adm-act-summary { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--info-bg); font-size: .88rem; line-height: 1.5; }
.adm-act-summary .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.adm-act-summary:empty { display: none; }
.adm-act-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; border-top: 1px solid var(--border); }
.adm-act-foot .btn { min-height: 44px; }

/* Admin → booking → "תנועות כספיות" */
.mv-list { display: grid; }
.mv-row { display: grid; grid-template-columns: 36px 1fr auto 16px; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--grid); background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.mv-row:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.mv-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 8px; }
.mv-row.open { border-bottom-color: transparent; }
.mv-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.mv-ic .icon { width: 17px; height: 17px; }
.mv-ic.tone-in { background: var(--ok-bg); color: var(--ok); }
.mv-ic.tone-out { background: var(--info-bg); color: var(--primary); }
.mv-ic.tone-warn { background: var(--warn-bg); color: var(--warn); }
.mv-ic.tone-danger { background: var(--danger-bg); color: var(--danger); }
.mv-main { display: grid; gap: 2px; min-width: 0; }
.mv-main strong { font-size: .93rem; }
.mv-main small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-amt.tone-out, .mv-amt.tone-warn { color: var(--danger); }
.mv-amt.tone-warn { color: var(--warn); }
.mv-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.mv-row.open .mv-chev { transform: rotate(180deg); }
.mv-more { display: grid; gap: 10px; padding: 12px 14px 14px; margin: 0 0 6px; border-radius: 12px; background: var(--surface-2); border-bottom: 1px solid var(--grid); }
.mv-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: .86rem; }
.mv-dl dt { color: var(--muted); }
.mv-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mv-dl dd[dir="ltr"] { text-align: right; font-variant-numeric: tabular-nums; }
.mv-more > .btn { justify-self: start; }
.mv-tz { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.mv-tz-title { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.mv-tz-title .icon { width: 15px; height: 15px; }
.mv-empty { padding: 8px 0; margin: 0; }
.adm-ledger-more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); font-size: .88rem; font-weight: 600; padding: 4px 0; }
.adm-ledger-more > summary .icon { width: 15px; height: 15px; }
.adm-ledger-more[open] > summary { margin-bottom: 8px; }

/* Parent → booking → payment: the credit holds */
.money-hold-note { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.money-hold-note .icon { width: 14px; height: 14px; margin-top: 3px; flex: none; }
.money-holds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.money-holds li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: .9rem; }
.money-holds li .icon { width: 16px; height: 16px; flex: none; color: var(--primary); }
.money-holds li.hold-failed { background: var(--danger-bg); }
.money-holds li.hold-failed .icon { color: var(--danger); }
.money-holds li.hold-captured .icon, .money-holds li.hold-released .icon { color: var(--ok); }
.mv-amt.tone-hold { color: var(--muted); font-weight: 600; }

/* Terms of use / privacy policy */
.legal { max-width: 780px; margin: 0 auto; padding-bottom: 48px; line-height: 1.75; }
.legal-head h1 { margin: 0 0 4px; }
.legal-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.legal-summary { margin: 12px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.legal-toc { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border); }
.legal-toc ol { margin: 8px 0 0; padding-inline-start: 22px; columns: 2 220px; column-gap: 28px; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-sec { scroll-margin-top: 90px; }
.legal-sec h2 { font-size: 1.2rem; margin: 18px 0 6px; }
.legal-sec p { margin: 0 0 8px; }
.legal-sec ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.legal-foot { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); }
.legal-foot p { margin: 0 0 4px; }

/* Report / block */
.safety-menu { position: relative; }
.safety-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(15, 23, 42, .16); display: grid; }
.safety-pop[hidden] { display: none; }
.safety-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 600; color: var(--text); text-align: start; cursor: pointer; }
.safety-pop button:hover, .safety-pop button:focus-visible { background: var(--surface-2); }
.safety-pop button.danger { color: var(--danger); }
.safety-pop .icon { width: 18px; height: 18px; flex: none; }
.report-reasons { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.report-reason { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--border); cursor: pointer; font-weight: 600; }
.report-reason:has(input:checked) { border-color: var(--primary); background: var(--surface-2); }
.report-reason input { accent-color: var(--primary); }
.blocked-list { display: grid; gap: 8px; }
.blocked-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); }
.blocked-row .grow { flex: 1; min-width: 0; }
.blocked-row img, .blocked-row .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.msg-report { border: 0; background: none; padding: 2px 4px; margin-inline-start: 6px; color: var(--muted); cursor: pointer; vertical-align: middle; border-radius: 6px; opacity: .55; }
.msg-report:hover, .msg-report:focus-visible { opacity: 1; color: var(--danger); background: var(--danger-bg); }
.msg-report .icon { width: 13px; height: 13px; }
.notice[hidden], .safety-pop[hidden], .field-error[hidden] { display: none !important; }
.grow { flex: 1 1 auto; min-width: 0; }

/* Admin → legal documents */
.legal-adm-head h1 { margin: 0; }
.legal-adm-head p { margin: 4px 0 0; }
.legal-adm-biz { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.legal-adm-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legal-adm-sec { display: grid; gap: 8px; }
.legal-adm-sec > .row { flex-wrap: nowrap; }
.legal-adm-sec-title { flex: 1; font-weight: 700; min-width: 0; }
.legal-adm-num { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); font-weight: 800; font-size: .85rem; flex: none; }
.legal-adm-tools { gap: 4px; flex: none; }
.legal-adm-tools .icon-btn.danger { color: var(--danger); }
.legal-adm-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-adm-hist li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); }
.legal-adm-publish { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); }
.strong { font-weight: 700; }
.review-demo h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.review-cred { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 8px; }
.review-cred code { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: .95rem; overflow-wrap: anywhere; user-select: all; }
.review-notes { max-height: 280px; overflow: auto; white-space: pre-wrap; padding: 12px; border-radius: 12px; background: var(--surface-2); font-size: .8rem; line-height: 1.5; text-align: left; user-select: all; }
.cr-ticket-acts { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.cr-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.cr-link .icon { width: 15px; height: 15px; }

/* Admin → app updates (עדכוני אפליקציה) */
.upd { --u-ok: #1BAF7A; --u-soft: #E0A100; --u-block: #D9432B; }
:root[data-theme="dark"] .upd { --u-ok: #4FD6A0; --u-soft: #F3C452; --u-block: #FF8A73; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .upd { --u-ok: #4FD6A0; --u-soft: #F3C452; --u-block: #FF8A73; } }
.upd-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-radius: calc(var(--radius) + 6px); color: #fff;
  background: radial-gradient(600px 260px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #0EA5E9 0%, #0A6DA8 55%, #084A73 100%); box-shadow: 0 10px 30px rgba(10,109,168,.25); }
.upd-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); pointer-events: none; animation: upd-drift 9s ease-in-out infinite alternate; }
.upd-orb.o1 { width: 340px; height: 340px; inset-inline-end: -120px; top: -170px; }
.upd-orb.o2 { width: 220px; height: 220px; inset-inline-start: 18%; bottom: -150px; animation-duration: 11s; }
@keyframes upd-drift { to { transform: translate(-26px, 22px) scale(1.08); } }
.upd-hero-main { position: relative; display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1 1 360px; }
.upd-hero-main h1 { font-size: var(--fs-2xl); font-weight: 900; }
.upd-hero-main p { opacity: .92; line-height: 1.55; max-width: 520px; margin-top: 4px; }
.upd-hero-icon { position: relative; width: 84px; height: 84px; flex: none; display: grid; place-items: center; }
.upd-tile { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(0,0,0,.25); animation: upd-float 3.6s ease-in-out infinite; }
.upd-tile .brand-logo img, .pm-tile .brand-logo img { filter: none !important; }
.upd-ring { position: absolute; inset: 6px; border-radius: 22px; border: 2px solid rgba(255,255,255,.7); opacity: 0; animation: upd-ring 2.8s ease-out infinite; }
.upd-ring.r2 { animation-delay: 1.4s; }
:root[data-theme="dark"] .pm-phone { border-color: #3A3F45; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .pm-phone { border-color: #3A3F45; } }
@keyframes upd-ring { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes upd-float { 50% { transform: translateY(-5px); } }
.upd-hero-side { position: relative; display: grid; gap: 12px; justify-items: end; }
.upd-store { display: grid; justify-items: end; text-align: end; }
.upd-store-l { font-size: .8rem; font-weight: 700; opacity: .85; }
.upd-store strong { font-size: 2.3rem; font-weight: 900; line-height: 1.1; letter-spacing: -.5px; }
.upd-store-s { font-size: .8rem; opacity: .85; }
.upd-hero-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.upd-hero-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.18); color: #fff; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; text-decoration: none; backdrop-filter: blur(6px); transition: background .2s; }
.upd-hero-btn:hover { background: rgba(255,255,255,.3); }
.upd-hero-btn.ghost { background: transparent; }
.upd-hero-btn .icon { width: 16px; height: 16px; }
.upd-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.upd-seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .88rem; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.upd-seg button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.upd-seg.on-dark { background: rgba(0,0,0,.18); }
.upd-seg.on-dark button { color: rgba(255,255,255,.85); }
.upd-seg.on-dark button[aria-selected="true"] { background: #fff; color: #0A6DA8; }
.upd-seg button:focus-visible, .upd-hero-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.upd-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.upd-badge-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--info-bg); color: var(--primary); }
.upd-badge-ic .icon { width: 20px; height: 20px; }
.upd-card-head h2 { font-size: 1.12rem; }

.upd-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.upd-bar span { width: var(--w); transition: width .8s cubic-bezier(.2,.8,.2,1); animation: upd-grow .9s cubic-bezier(.2,.8,.2,1) both; }
.upd-bar .b-ok { background: var(--u-ok); } .upd-bar .b-soft { background: var(--u-soft); } .upd-bar .b-block { background: var(--u-block); }
@keyframes upd-grow { from { width: 0; } }
.upd-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.upd-zone { --z: var(--u-ok); display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--z) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--z) 28%, var(--border)); }
.upd-zone.z-soft { --z: var(--u-soft); } .upd-zone.z-block { --z: var(--u-block); }
.upd-zone-ic { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--z); color: #fff; }
.upd-zone-ic .icon { width: 18px; height: 18px; }
.upd-zone-t { display: grid; min-width: 0; } .upd-zone-t span { font-weight: 800; } .upd-zone-t small { color: var(--muted); font-size: .78rem; }
.upd-zone strong { grid-row: 1; font-size: 1.6rem; font-weight: 900; line-height: 1; color: var(--z); }
.upd-zone-p { grid-row: 2; grid-column: 3; font-size: .78rem; color: var(--muted); text-align: end; }

.upd-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .upd-cols { grid-template-columns: 1fr; } }
.upd-form { display: grid; gap: 14px; }
.upd-level { --z: var(--u-soft); margin: 0; padding: 14px 16px 6px; min-width: 0; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--z) 30%, var(--border)); background: color-mix(in srgb, var(--z) 6%, var(--surface)); display: grid; gap: 8px; }
.upd-level.l-block { --z: var(--u-block); }
.upd-level legend { float: inline-start; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 2px; }
.upd-level legend > span:last-child { display: grid; } .upd-level legend small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.upd-level-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--z); color: #fff; }
.upd-level-ic .icon { width: 16px; height: 16px; }
.upd-ver { font-weight: 800; font-size: 1.05rem; letter-spacing: .5px; max-width: 220px; }
.upd-switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0 10px; cursor: pointer; }
.upd-switch-row > span { display: grid; } .upd-switch-row small { color: var(--muted); font-size: .8rem; }
.upd-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 26px; border-radius: 13px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; transition: background .25s; margin: 2px 0 0; }
.upd-switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: inset-inline-start .25s cubic-bezier(.2,.8,.2,1); }
.upd-switch:checked { background: var(--u-block); box-shadow: none; }
.upd-switch:checked::after { inset-inline-start: 23px; }
.upd-switch:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.upd-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--border); padding-top: 14px; }
.upd-form-foot .icon { width: 14px; height: 14px; vertical-align: -2px; }

.upd-preview { position: sticky; top: 16px; display: grid; gap: 14px; justify-items: center; }
.upd-preview .upd-card-head { justify-self: stretch; margin: 0; }
.upd-phone-wrap { width: 100%; display: grid; place-items: center; }
.pm-phone { --pa: #0EA5E9; --pd: #075E8C; position: relative; width: 270px; height: 560px; border-radius: 38px; overflow: hidden; background: #F3F4F6; border: 8px solid #101418; box-shadow: 0 20px 44px rgba(16,20,24,.25); font-size: 12px; color: #101418; animation: fade-in .35s ease; }
.pm-phone b, .pm-phone strong { font-weight: 900; }
.pm-phone .icon { width: 13px; height: 13px; }
.pm-tile { width: 62px; height: 62px; border-radius: 15px; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0,0,0,.28); position: relative; z-index: 1; }
.pm-icon { position: relative; display: grid; place-items: center; width: 110px; height: 96px; animation: upd-float 3.4s ease-in-out infinite; }
.pm-icon.sm { width: 90px; height: 76px; } .pm-icon.sm .pm-tile { width: 50px; height: 50px; border-radius: 12px; }
.pm-halo { position: absolute; width: 84px; height: 84px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.45); animation: spin 16s linear infinite; }
.pm-icon.sm .pm-halo { width: 70px; height: 70px; }
.pm-dl { position: absolute; z-index: 2; bottom: 10px; inset-inline-end: 22px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--pa); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.pm-icon.sm .pm-dl { bottom: 6px; inset-inline-end: 16px; }
.pm-dl .icon { width: 12px; height: 12px; stroke-width: 2.8; animation: pm-drop 1.5s ease-in-out infinite; }
@keyframes pm-drop { 0% { transform: translateY(-5px); opacity: 0; } 30%, 70% { transform: none; opacity: 1; } 100% { transform: translateY(4px); opacity: 0; } }
.pm-top { position: relative; height: 54%; display: grid; place-items: center; align-content: center; gap: 5px; padding: 18px 16px 30px; text-align: center; color: #fff; background: linear-gradient(160deg, var(--pa), var(--pd)); overflow: hidden; }
.pm-spark { position: absolute; width: 8px; height: 8px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: pm-twinkle 1.8s ease-in-out infinite; }
.pm-spark.s1 { top: 14%; inset-inline-start: 12%; } .pm-spark.s2 { top: 22%; inset-inline-end: 14%; animation-delay: .6s; width: 6px; height: 6px; } .pm-spark.s3 { top: 52%; inset-inline-end: 9%; animation-delay: 1.1s; width: 10px; height: 10px; }
@keyframes pm-twinkle { 50% { opacity: .25; transform: scale(.6) rotate(45deg); } }
.pm-kicker { font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); }
.pm-title { font-size: 19px; }
.pm-sub { font-size: 10.5px; opacity: .92; line-height: 1.45; }
.pm-card { position: absolute; inset-inline: 0; bottom: 0; top: 50%; background: #F3F4F6; border-radius: 24px 24px 0 0; padding: 12px; display: grid; align-content: start; gap: 8px; animation: pm-up .6s cubic-bezier(.2,.8,.2,1); }
@keyframes pm-up { from { transform: translateY(40%); } }
.pm-path { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 5px; }
.pm-path > span { display: grid; justify-items: center; padding: 5px; border-radius: 10px; background: #fff; border: 1.5px solid #E5E7EB; }
.pm-path > span small { font-size: 8.5px; color: #6B7280; font-weight: 700; } .pm-path > span b { font-size: 13px; color: #6B7280; }
.pm-path > span.new { border-color: var(--pa); background: #E0F2FE; } .pm-path > span.new small, .pm-path > span.new b { color: var(--pa); }
.pm-path > i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--pa); color: #fff; }
.pm-path > i .icon { width: 12px; height: 12px; stroke-width: 3; }
.pm-notes { display: grid; gap: 5px; padding: 9px 10px; border-radius: 12px; background: #fff; border: 1px solid #E5E7EB; }
.pm-notes > b { font-size: 11px; color: #101418; }
.pm-note { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #4B5563; animation: wiz-in .45s ease both; animation-delay: var(--d); }
.pm-note i { width: 16px; height: 16px; flex: none; border-radius: 50%; background: #E0F2FE; color: var(--pa); display: grid; place-items: center; }
.pm-note i .icon { width: 10px; height: 10px; stroke-width: 3; }
.pm-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 12px; color: #fff; font-weight: 900; font-size: 12px; background: linear-gradient(135deg, var(--pa), var(--pd)); }
.pm-btn .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.pm-btn::after { content: ''; position: absolute; top: -10px; bottom: -10px; width: 34px; background: rgba(255,255,255,.3); transform: skewX(-20deg); animation: pm-shine 2.9s ease-in-out infinite; inset-inline-start: -60px; }
@keyframes pm-shine { 0%, 45% { inset-inline-start: -60px; } 90%, 100% { inset-inline-start: 110%; } }
.pm-foot { text-align: center; font-size: 9.5px; color: #6B7280; }
.pm-home { padding: 52px 16px; display: grid; gap: 10px; justify-items: end; }
.pm-line { height: 10px; border-radius: 5px; background: #D1D5DB; } .pm-line.w60 { width: 60%; height: 14px; background: #9CA3AF; } .pm-line.w40 { width: 40%; }
.pm-block { width: 100%; height: 80px; border-radius: 16px; background: #E5E7EB; }
.pm-phone.soft::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 1; animation: fade-in .4s ease; }
.pm-sheet { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; background: #F3F4F6; border-radius: 22px 22px 0 0; padding: 6px 10px 12px; display: grid; gap: 7px; animation: pm-up .55s cubic-bezier(.2,.8,.2,1); }
.pm-grab { justify-self: center; width: 32px; height: 4px; border-radius: 2px; background: #D1D5DB; }
.pm-banner { position: relative; height: 92px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, var(--pa), var(--pd)); }
.pm-new { position: absolute; top: 8px; inset-inline-start: 8px; background: #fff; color: var(--pa); font-weight: 900; font-size: 9.5px; padding: 2px 8px; border-radius: 999px; }
.pm-head { display: flex; align-items: center; gap: 6px; } .pm-head strong { font-size: 15px; }
.pm-chip { font-size: 10px; font-weight: 900; color: var(--pa); background: #E0F2FE; padding: 2px 7px; border-radius: 999px; }
.pm-msg { font-size: 10.5px; color: #4B5563; margin-top: -3px; }
.pm-later { text-align: center; color: #6B7280; font-weight: 800; font-size: 11px; }

.upd-dist-body { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; }
@media (max-width: 640px) { .upd-dist-body { grid-template-columns: 1fr; justify-items: center; } .upd-rows { width: 100%; } }
.upd-donut { position: relative; width: 170px; height: 170px; }
.upd-donut-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.upd-donut-svg circle { fill: none; stroke-width: 16; }
.upd-donut-svg .trk { stroke: var(--surface-2); }
.upd-donut-svg .seg { stroke-linecap: butt; animation: fade-in .8s ease both; }
.upd-donut-svg .z-ok { stroke: var(--u-ok); } .upd-donut-svg .z-soft { stroke: var(--u-soft); } .upd-donut-svg .z-block { stroke: var(--u-block); }
.upd-donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.upd-donut-c strong { font-size: 1.5rem; font-weight: 900; } .upd-donut-c small { color: var(--muted); font-size: .75rem; }
.upd-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.upd-rows li { --z: var(--u-ok); display: grid; grid-template-columns: 10px 96px 1fr 36px 40px 92px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; transition: background .2s; }
.upd-rows li:hover { background: var(--surface-2); }
.upd-rows li.z-soft { --z: var(--u-soft); } .upd-rows li.z-block { --z: var(--u-block); }
.upd-row-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--z); }
.upd-row-v { font-weight: 800; }
.upd-row-track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.upd-row-bar { display: block; height: 100%; width: var(--w); border-radius: 5px; background: var(--z); animation: upd-grow .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.upd-rows strong { text-align: end; font-size: 1.05rem; }
.upd-row-p { color: var(--muted); font-size: .82rem; text-align: end; }
.upd-tag { justify-self: start; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; color: var(--z); background: color-mix(in srgb, var(--z) 14%, transparent); }
.upd-tag.t-soft { --z: var(--u-soft); } .upd-tag.t-block { --z: var(--u-block); } .upd-tag.t-ok { --z: var(--u-ok); }
.upd-tag.t-soft { color: color-mix(in srgb, var(--u-soft) 72%, var(--text)); }
@media (max-width: 640px) { .upd-rows li { grid-template-columns: 10px 1fr 34px auto; } .upd-row-track, .upd-row-p { display: none; } }
.upd-empty { display: grid; justify-items: center; gap: 8px; padding: 26px; text-align: center; color: var(--muted); }
.upd-empty .icon { width: 30px; height: 30px; }
@media (max-width: 640px) { .upd-hero { padding: 20px; } .upd-hero-side { justify-items: start; } .upd-store { justify-items: start; text-align: start; } .upd-hero-acts { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .upd *, .upd *::before, .upd *::after, .upd-hero, .upd-orb { animation: none !important; transition: none !important; } }
