/* Sampurn app engine — design system
   Tokens first (light), then dark. Components use tokens only. */

:root {
  color-scheme: light;
  --font-ui: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  --bg: #f3f4f1;
  --bg-2: #eceeea;
  --surface: #ffffff;
  --surface-2: #f8f8f6;
  --surface-3: #f1f2ef;
  --ink: #121417;
  --ink-2: #4b5563;
  --ink-3: #848b96;
  --line: #e5e7e2;
  --line-2: #d6d9d2;

  --accent: #0e7c72;
  --accent-2: #19a596;
  --accent-deep: #0a5f58;
  --accent-soft: #e2f2ef;
  --accent-soft-2: #c9e8e2;
  --on-accent: #ffffff;

  --pos: #1d9e6b;  --pos-soft: #e3f5ec;
  --warn: #c97d0a; --warn-soft: #fcf0d8;
  --neg: #d14343;  --neg-soft: #fbe5e5;
  --info: #2f6fed; --info-soft: #e5edfd;
  --wa: #25d366;   --wa-ink: #073b1a;

  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 1px rgba(16, 24, 40, .03);
  --shadow-2: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px -14px rgba(16, 24, 40, .18);
  --shadow-3: 0 24px 60px -24px rgba(16, 24, 40, .35), 0 2px 6px rgba(16, 24, 40, .06);
  --glass: rgba(255, 255, 255, .72);
  --scrim: rgba(12, 14, 18, .45);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 26px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --nav-h: 64px; --tab-h: 64px; --side-w: 248px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 120ms; --t-med: 220ms; --t-slow: 360ms;
  --cta-h: 0px;   /* room reserved for the demo-only quote bar (html.is-demo) */
  --cta-bg: radial-gradient(120% 160% at 0% 0%, rgba(123, 97, 255, .30), transparent 52%), linear-gradient(120deg, #101318, #1b2029);
  --cta-line: rgba(255, 255, 255, .07);
  --cta-shadow: 0 18px 40px -18px rgba(16, 24, 40, .6), 0 2px 8px rgba(16, 24, 40, .16);
  --art: linear-gradient(transparent, transparent);   /* soft background art of the industry look (html[data-look]) */
  --tile-1: var(--accent-soft); --tile-1-ink: var(--accent-deep); --tile-2: var(--accent-soft); --tile-2-ink: var(--accent-deep);
  --tile-3: var(--accent-soft); --tile-3-ink: var(--accent-deep); --tile-4: var(--accent-soft); --tile-4-ink: var(--accent-deep);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d10; --bg-2: #0f1216;
  --surface: #14171c; --surface-2: #1a1e24; --surface-3: #20252c;
  --ink: #eceef1; --ink-2: #a9b0ba; --ink-3: #6f7784;
  --line: #262b33; --line-2: #343a44;
  --accent: #2bb8a6; --accent-2: #4fd1c0; --accent-deep: #1b8d80;
  --accent-soft: rgba(43, 184, 166, .14); --accent-soft-2: rgba(43, 184, 166, .26); --on-accent: #06211e;
  --pos: #34c38f; --pos-soft: rgba(52, 195, 143, .14);
  --warn: #e6a23c; --warn-soft: rgba(230, 162, 60, .14);
  --neg: #ef6a6a; --neg-soft: rgba(239, 106, 106, .14);
  --info: #6b9cff; --info-soft: rgba(107, 156, 255, .14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .7);
  --shadow-3: 0 30px 70px -24px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .5);
  --glass: rgba(20, 23, 28, .72);
  --scrim: rgba(0, 0, 0, .6);
  --cta-bg: radial-gradient(120% 160% at 0% 0%, rgba(123, 97, 255, .34), transparent 52%), linear-gradient(120deg, #1c2029, #252b38);
  --cta-line: rgba(255, 255, 255, .11);
  --cta-shadow: 0 20px 44px -16px rgba(0, 0, 0, .9), 0 2px 8px rgba(0, 0, 0, .5);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--art), var(--bg); background-attachment: fixed; color: var(--ink);
  font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01"; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft-2); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 16px; height: 16px; } .ico.lg { width: 24px; height: 24px; } .ico.xl { width: 32px; height: 32px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---------- app frame ---------- */
.app { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.side { display: none; }
.main { min-width: 0; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + var(--cta-h) + 12px); }
.topbar {
  position: sticky; top: 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px); background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar-in { height: var(--nav-h); display: flex; align-items: center; gap: 10px; padding: 0 var(--s-4); max-width: 1180px; margin: 0 auto; }
.topbar h1 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page { max-width: 1180px; margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-8); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: var(--s-5); flex-wrap: wrap; }
.page-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.page-head p { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tab-h); font-size: 11px; font-weight: 600; color: var(--ink-3); transition: color var(--t-fast); position: relative; }
.tabbar a .ico { width: 22px; height: 22px; transition: transform var(--t-med) var(--ease-out); }
.tabbar a.on { color: var(--accent); }
.tabbar a.on .ico { transform: translateY(-1px); }
.tabbar a:active .ico { transform: scale(.9); }
.tabbar a .dot { position: absolute; top: 10px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 99px; background: var(--neg); border: 2px solid var(--surface); }

@media (min-width: 1024px) {
  .app { grid-template-columns: var(--side-w) 1fr; }
  .side {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 22px 16px 18px;
    background: var(--surface); border-right: 1px solid var(--line);
  }
  .tabbar { display: none; }
  .main { padding-bottom: calc(32px + var(--cta-h)); }
  .topbar { background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; position: static; height: auto; padding-top: 0; }
  .topbar-in { height: 56px; padding: 8px 32px 0; }
  .topbar h1 { display: none; }
  .page { padding: 8px 32px 48px; }
  .page-head h2 { font-size: 40px; }
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--on-accent); font-family: var(--font-display); font-size: 22px; box-shadow: var(--shadow-1); overflow: hidden; }
.brand .logo img { width: 100%; height: 100%; object-fit: contain; }
.brand b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.brand small { display: block; color: var(--ink-3); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 550; font-size: 14.5px; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent-deep); }
:root[data-theme="dark"] .nav a.on { color: var(--accent-2); }
.nav a .ico { width: 20px; height: 20px; }
.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.side-foot b { color: var(--ink-2); font-weight: 600; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card.pad { padding: var(--s-5); }
.card.hover { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.section { margin-top: var(--s-6); }
.section-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: var(--s-3); }
.section-h h3 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.section-h a, .section-h button.link { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.grid { display: grid; gap: var(--s-3); }
.grid > * { min-width: 0; }
@media (max-width: 520px) { .kpi .val { font-size: 25px; } .kpi.hero .val { font-size: 30px; } .inv-top h2 { font-size: 24px; } .inv { padding: 20px 18px; } .demo-bar { font-size: 12.5px; padding: 7px 12px; } }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .g3 { grid-template-columns: minmax(0, 1fr); } .g2.one { grid-template-columns: minmax(0, 1fr); } }
.bento { display: grid; gap: var(--s-3); grid-template-columns: repeat(12, 1fr); }
.bento > * { grid-column: span 12; min-width: 0; }
@media (min-width: 640px) { .bento .c6 { grid-column: span 6; } .bento .c4 { grid-column: span 4; } .bento .c8 { grid-column: span 8; } .bento .c3 { grid-column: span 6; } }
@media (min-width: 1024px) { .bento .c3 { grid-column: span 3; } }

/* ---------- KPI / stat ---------- */
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-height: 122px; }
.kpi .lbl { font-size: 13px; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.kpi .lbl .ico { width: 16px; height: 16px; color: var(--ink-3); }
.kpi .val { font-size: 30px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-top: auto; }
.kpi .sub.up { color: var(--pos); } .kpi .sub.down { color: var(--neg); }
.kpi.hero { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); color: #fff; border: 0; position: relative; overflow: hidden; box-shadow: 0 18px 40px -22px var(--accent-deep); }
.kpi.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent 70%); }
.kpi.hero .lbl, .kpi.hero .sub, .kpi.hero .lbl .ico { color: rgba(255,255,255,.78); }
.kpi.hero .val { color: #fff; font-size: 34px; }
.kpi.hero .spark { position: absolute; right: 16px; bottom: 14px; width: 42%; height: 46px; opacity: .9; }
.kpi .trend { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--pos-soft); color: var(--pos); }
.kpi .trend.down { background: var(--neg-soft); color: var(--neg); }
.kpi.hero .trend { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast); user-select: none; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px var(--accent-deep); }
.btn-primary:hover { background: var(--accent-deep); }
:root[data-theme="dark"] .btn-primary:hover { background: var(--accent-2); }
.btn-soft { background: var(--accent-soft); color: var(--accent-deep); }
:root[data-theme="dark"] .btn-soft { color: var(--accent-2); }
.btn-soft:hover { background: var(--accent-soft-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--neg-soft); color: var(--neg); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { filter: brightness(1.05); }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 9px; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn-block { width: 100%; }
.fab { position: fixed; right: 18px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + var(--cta-h) + 16px); z-index: 25; width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 16px 34px -12px var(--accent-deep), 0 2px 6px rgba(0,0,0,.15); transition: transform var(--t-fast); }
.fab:active { transform: scale(.94); }
.fab .ico { width: 26px; height: 26px; stroke-width: 2; }
@media (min-width: 1024px) { .fab { display: none; } }

/* ---------- chips / badges / avatars ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.chip .ico { width: 13px; height: 13px; stroke-width: 2.2; }
.chip.pos { background: var(--pos-soft); color: var(--pos); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.neg { background: var(--neg-soft); color: var(--neg); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.accent { background: var(--accent-soft); color: var(--accent-deep); }
:root[data-theme="dark"] .chip.accent { color: var(--accent-2); }
.chip.dotted::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--neg); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 650; font-size: 14px; color: #fff; flex: 0 0 auto; letter-spacing: .02em; }
.avatar.lg { width: 60px; height: 60px; border-radius: 18px; font-size: 20px; }
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg.block { display: flex; } .seg.block button { flex: 1; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills::-webkit-scrollbar { display: none; }
/* Schedule's doctor names on a computer: a mouse cannot drag the row sideways, so the names go onto more lines (12 Nov 2026) */
@media (hover: hover) and (pointer: fine) { .pills.sch-docs { flex-wrap: wrap; overflow-x: visible; } }
.pill { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: all var(--t-fast); }
.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-theme="dark"] .pill.on { background: var(--ink); color: var(--bg); }

/* ---------- lists / rows ---------- */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); min-width: 0; transition: background var(--t-fast); }
.row:first-child { border-top: 0; }
.row.click { cursor: pointer; }
.row.click:hover { background: var(--surface-2); }
.row .body { flex: 1; min-width: 0; }
.row .t { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.due .val { color: var(--neg); }
.frow .span2 { grid-column: 1 / -1; }
@media (max-width: 520px) { .hide-sm { display: none; } }
.row .s { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row .end { text-align: right; flex: 0 0 auto; }
.row .end .t { font-variant-numeric: tabular-nums; }
.row .time { width: 52px; flex: 0 0 auto; font-size: 13px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.2; }
.row .time small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.row .acts { display: flex; gap: 6px; flex: 0 0 auto; }
.chev { color: var(--ink-3); width: 18px; height: 18px; }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ico { width: 40px; height: 40px; color: var(--ink-3); opacity: .7; stroke-width: 1.4; }
.empty b { color: var(--ink); font-size: 15px; font-weight: 650; }
.empty p { font-size: 13.5px; max-width: 32ch; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; min-width: 0; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.field .err { font-size: 12.5px; color: var(--neg); font-weight: 600; }
.input, .select, .textarea { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 15px; outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.textarea { height: auto; min-height: 84px; padding: 11px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input.bad { border-color: var(--neg); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-wrap { position: relative; }
.input-wrap .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.input-wrap .input { padding-left: 42px; }
.input-wrap .pre { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; }
.input-wrap .input.pre-pad { padding-left: 30px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .frow { grid-template-columns: 1fr; } }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.toggle b { font-size: 14.5px; font-weight: 600; display: block; } .toggle small { color: var(--ink-3); font-size: 12.5px; }
.switch { width: 46px; height: 28px; border-radius: 99px; background: var(--line-2); position: relative; transition: background var(--t-med); flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--t-med) var(--ease-out); }
.switch.on { background: var(--accent); } .switch.on::after { transform: translateX(18px); }
.check { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 550; transition: all var(--t-fast); background: var(--surface); }
.check.on { border-color: var(--accent); background: var(--accent-soft); }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: var(--surface); flex: 0 0 auto; }
.check.on .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check .box .ico { width: 13px; height: 13px; stroke-width: 3; }
.check .price { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 600; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.amount-chips button { height: 32px; padding: 0 12px; border-radius: 99px; background: var(--surface-3); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: all var(--t-fast); }
.amount-chips button:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- sheet / modal ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; animation: fade var(--t-med) both; }
.sheet { width: 100%; max-width: 580px; max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-3); animation: up var(--t-slow) var(--ease-out) both; }
.sheet .handle { width: 40px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 0 auto 10px; }
.sheet-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sheet-h h3 { font-size: 21px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.sheet-h p { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.sheet-foot { display: flex; gap: 10px; margin-top: 22px; position: sticky; bottom: -1px; background: var(--surface); padding-top: 12px; }
.sheet-foot .btn { flex: 1; }
@media (min-width: 700px) {
  .sheet-bg { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; padding: 22px 26px 24px; max-height: calc(100dvh - 48px); animation: pop var(--t-med) var(--ease-out) both; }
  .sheet .handle { display: none; }
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes up { from { transform: translateY(40px); opacity: .6 } to { transform: none; opacity: 1 } }
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + var(--cta-h) + 14px); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
@media (min-width: 1024px) { .toasts { bottom: calc(24px + var(--cta-h)); } }
.toast { background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-3); display: flex; align-items: center; gap: 10px; animation: up var(--t-med) var(--ease-out) both; pointer-events: auto; max-width: 100%; }
.toast .ico { width: 18px; height: 18px; color: var(--accent-2); }
.toast.neg .ico { color: var(--neg); }

/* ---------- misc ---------- */
.search { position: relative; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px 0 42px; font-size: 15px; outline: none; box-shadow: var(--shadow-1); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.daystrip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
.daystrip::-webkit-scrollbar { display: none; }
.day { flex: 0 0 auto; width: 56px; height: 68px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); transition: all var(--t-fast); scroll-snap-align: center; }
.day small { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.day b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.day .dots { display: flex; gap: 3px; height: 4px; }
.day .dots i { width: 4px; height: 4px; border-radius: 99px; background: var(--accent); }
.day.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day.on small { color: inherit; opacity: .7; }
.day.on .dots i { background: var(--accent-2); }
.day.today:not(.on) { border-color: var(--accent); }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.strong { font-weight: 650; }
.pos { color: var(--pos); } .neg { color: var(--neg); } .warn { color: var(--warn); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.hstack { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.sp { flex: 1; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width var(--t-slow) var(--ease-out); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font-ui); fill: var(--ink-3); font-size: 11px; }
.demo-bar { background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 550; padding: 9px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.demo-bar button, .demo-bar a { color: inherit; font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent-2); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.demo-bar a { white-space: nowrap; }
.demo-bar button { flex: 0 0 auto; }

/* demo-only quote bar: floats just above the tab bar (and below the FAB) on phones, at the foot of the main column on desktop */
html.is-demo { --cta-h: 64px; }
.demo-cta {
  position: fixed; z-index: 29; left: 10px; right: 10px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 8px);
  max-width: 640px; margin: 0 auto; height: 54px; padding: 0 7px 0 8px; display: flex; align-items: center; gap: 10px;
  border-radius: 16px; background: var(--cta-bg); border: 1px solid var(--cta-line); box-shadow: var(--cta-shadow); color: #fff;
  animation: cta-in var(--t-slow) var(--ease-out) both;
}
@keyframes cta-in { from { transform: translateY(14px); opacity: 0 } to { transform: none; opacity: 1 } }
.demo-cta-mark { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #7b61ff, #4f8bff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px -6px rgba(91, 110, 255, .8); }
.demo-cta-mark .ico { width: 18px; height: 18px; stroke-width: 2; }
.demo-cta-txt { flex: 1; min-width: 0; line-height: 1.25; }
.demo-cta-txt .l1 { display: block; font-size: 13.5px; font-weight: 620; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-cta-txt .l2 { display: block; font-size: 12px; color: rgba(255, 255, 255, .66); margin-top: 1px; white-space: nowrap; }
.demo-cta-txt .l2 b { color: #fff; font-weight: 650; }
.demo-cta-txt .dash { display: none; }
.demo-cta-btn {
  flex: 0 0 auto; height: 40px; padding: 0 12px 0 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #111418; font-size: 13.5px; font-weight: 650; letter-spacing: -.005em; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 6px 18px -8px rgba(0, 0, 0, .6); transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.demo-cta-btn .ico { transition: transform var(--t-med) var(--ease-out); }
.demo-cta-btn:hover .ico { transform: translateX(2px); }
.demo-cta-btn:active { transform: scale(.97); }
.demo-cta-btn:focus-visible { outline-color: #fff; }
@media (max-width: 439px) { .demo-cta { padding-left: 12px; gap: 8px; } .demo-cta-mark { display: none; } .demo-cta-txt .l1 { font-size: 13px; } .demo-cta-btn { padding: 0 11px 0 13px; font-size: 13px; } }
@media (max-width: 379px) { .demo-cta-btn { padding: 0 13px; } .demo-cta-btn .ico { display: none; } }
@media (max-width: 359px) { .demo-cta { left: 8px; right: 8px; padding: 0 6px 0 10px; } .demo-cta-txt .l1 { font-size: 12.5px; letter-spacing: -.01em; } .demo-cta-txt .l2 { font-size: 11.5px; } .demo-cta-btn { padding: 0 11px; font-size: 12.5px; } }
@media (min-width: 640px) {
  .demo-cta-txt .l1, .demo-cta-txt .dash, .demo-cta-txt .l2 { display: inline; font-size: 14px; }
  .demo-cta-txt .dash { color: rgba(255, 255, 255, .4); }
  .demo-cta-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1024px) {
  html.is-demo { --cta-h: 78px; }
  .demo-cta { left: calc(var(--side-w) + 32px); right: 32px; bottom: 18px; max-width: 760px; height: 60px; padding: 0 9px 0 10px; gap: 12px; border-radius: 18px; }
  .demo-cta-txt .l1, .demo-cta-txt .dash, .demo-cta-txt .l2 { font-size: 14.5px; }
  .demo-cta-btn { height: 42px; padding: 0 14px 0 16px; font-size: 14px; }
}
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity var(--t-slow), visibility var(--t-slow); }
.splash.off { opacity: 0; visibility: hidden; }
.splash .logo { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; font-family: var(--font-display); font-size: 34px; box-shadow: var(--shadow-2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.04) } }

/* invoice (screen + print) */
.inv { padding: 26px 28px; }
.inv-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.inv-top h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: -.01em; }
.inv-meta { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.inv-tbl { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 14px; }
.inv-tbl th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.inv-tbl td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.inv-tot { margin-left: auto; width: min(100%, 300px); margin-top: 14px; font-size: 14px; }
.inv-tot div { display: flex; justify-content: space-between; padding: 5px 0; }
.inv-tot .grand { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 18px; font-weight: 650; }
.inv-paid { display: inline-flex; padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
/* pay box (UPI QR on invoices) */
.paybox { display: flex; flex-direction: column; align-items: center; gap: 6px; width: auto; min-width: 150px; max-width: 60%; flex: 0 0 auto; }
.paybox .muted { overflow-wrap: break-word; }   /* the box fits the UPI id (it was cut at the paper edge); a very long one wraps after the @ */
.qr { width: 120px; height: 120px; background: #fff; padding: 6px; border-radius: 12px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.qr.lg { width: 220px; height: 220px; margin: 0 auto; }
/* feature list */
.feat { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feat:first-child { border-top: 0; }
.feat .ico { color: var(--accent); }
.feat .pl { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; letter-spacing: .02em; }
.card.built { border-color: rgba(123, 97, 255, .35); background: linear-gradient(135deg, rgba(123, 97, 255, .08), rgba(79, 139, 255, .05)); }
/* app lock */
.lock { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; place-items: center; padding: 24px; }
.lock-card { text-align: center; width: 100%; max-width: 320px; }
.lock .logo { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; font-family: var(--font-display); font-size: 30px; overflow: hidden; }
.lock .logo img { width: 100%; height: 100%; object-fit: contain; }
.lock h2 { font-size: 22px; font-weight: 650; }
.dots { display: flex; justify-content: center; gap: 12px; margin: 22px 0 26px; }
.dots i { width: 14px; height: 14px; border-radius: 99px; border: 2px solid var(--line-2); transition: background var(--t-fast); }
.dots i.on { background: var(--accent); border-color: var(--accent); }
.dots.shake { animation: shake .4s; }
@keyframes shake { 0%, 100% { transform: translateX(0) } 25% { transform: translateX(-8px) } 75% { transform: translateX(8px) } }
.pinpad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; justify-content: center; }
.pinpad button { height: 72px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); font-size: 24px; font-weight: 600; display: grid; place-items: center; transition: transform var(--t-fast), background var(--t-fast); }
.pinpad button:active { transform: scale(.94); background: var(--surface-2); }
/* public booking page */
.book { min-height: 100dvh; }
.book-hero { text-align: center; padding: 36px 16px 22px; }
.book-hero .logo { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; font-family: var(--font-display); font-size: 34px; overflow: hidden; box-shadow: var(--shadow-2); }
.book-hero .logo img { width: 100%; height: 100%; object-fit: contain; }
.book-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: 34px; letter-spacing: -.01em; }
.book-hero p { color: var(--ink-2); margin-top: 4px; }
.book .check { align-items: center; width: 100%; text-align: left; }
.note.hstack { color: var(--ink); }
@media print {
  body { background: #fff; }
  .side, .topbar, .tabbar, .fab, .toasts, .demo-bar, .demo-cta, .no-print { display: none !important; }
  .main { padding: 0 !important; } .page { padding: 0 !important; max-width: none; }
  .card { box-shadow: none; border: 0; }
  .inv { padding: 0; }
}

/* ---------- industry looks (theme.look → html[data-look]) ----------
   A bold hero gradient (--hero-1..3: launch screen, home header, demo bar, active chips) over a light canvas with soft
   background art, and a four-colour tile palette for icons. dental = ocean blue · skin = rose gold · care = warm teal
   (general, physio, child) · heart = deep red · salon = mauve & champagne. White on every look's accent passes 4.5:1. */
html[data-look] { --r-lg: 22px; --r-xl: 28px; }
html[data-look="dental"] { --hero-1: #03174a; --hero-2: #0a3fa8; --hero-3: #2b86f0; --hero-glow: rgba(90, 175, 255, .5); --hero-em: #9fd0ff;
  --bg: #f3f7fe; --bg-2: #e9f0fc; --surface: #ffffff; --surface-2: #f8fbff; --surface-3: #edf3fd; --line: #e2eaf7; --line-2: #cfdaee; --ink: #0a1a33; --ink-2: #3c4f6b; --ink-3: #74869f; --glass: rgba(246, 249, 255, .86);
  --shadow-1: 0 1px 2px rgba(10, 30, 70, .05), 0 1px 1px rgba(10, 30, 70, .03); --shadow-2: 0 2px 5px rgba(10, 30, 70, .04), 0 18px 40px -20px rgba(10, 50, 120, .28);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(43, 134, 240, .12), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(57, 195, 230, .10), transparent 58%);
  --tile-1: #e3edff; --tile-1-ink: #1a56c9; --tile-2: #dcf3f6; --tile-2-ink: #0a7f99; --tile-3: #ebe8fc; --tile-3-ink: #5546c8; --tile-4: #fdeadf; --tile-4-ink: #b4532a; }
html[data-look="skin"] { --hero-1: #2a0c19; --hero-2: #6e2a40; --hero-3: #c7808a; --hero-glow: rgba(255, 196, 170, .45); --hero-em: #ffcdb9;
  --bg: #fcf6f5; --bg-2: #f7ecea; --surface: #ffffff; --surface-2: #fffafa; --surface-3: #f7ecec; --line: #f1e2e1; --line-2: #e6cfcf; --ink: #2a1218; --ink-2: #634850; --ink-3: #977b81; --glass: rgba(255, 250, 249, .86);
  --shadow-1: 0 1px 2px rgba(60, 20, 30, .05), 0 1px 1px rgba(60, 20, 30, .03); --shadow-2: 0 2px 5px rgba(60, 20, 30, .04), 0 18px 40px -20px rgba(110, 42, 64, .26);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(199, 128, 138, .16), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(232, 180, 140, .14), transparent 58%);
  --tile-1: #fbe4ea; --tile-1-ink: #a8345a; --tile-2: #f8ecd6; --tile-2-ink: #8f5a0b; --tile-3: #efe6fb; --tile-3-ink: #7a3fc2; --tile-4: #e2f1e6; --tile-4-ink: #2f7650; }
html[data-look="care"] { --hero-1: #022b28; --hero-2: #0a6b62; --hero-3: #18a493; --hero-glow: rgba(255, 186, 140, .4); --hero-em: #a8f0de;
  --bg: #f1f8f6; --bg-2: #e7f2ee; --surface: #ffffff; --surface-2: #f7fbf9; --surface-3: #e9f3f0; --line: #ddebe6; --line-2: #c9ddd6; --ink: #0b211d; --ink-2: #3e5a53; --ink-3: #758d86; --glass: rgba(246, 251, 249, .86);
  --shadow-1: 0 1px 2px rgba(10, 45, 40, .05), 0 1px 1px rgba(10, 45, 40, .03); --shadow-2: 0 2px 5px rgba(10, 45, 40, .04), 0 18px 40px -20px rgba(10, 90, 80, .26);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(24, 164, 147, .14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(255, 180, 138, .14), transparent 58%);
  --tile-1: #dcf1ea; --tile-1-ink: #0b6f65; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dfedfb; --tile-4-ink: #1d5fc0; }
html[data-look="heart"] { --hero-1: #2a0307; --hero-2: #8a0f20; --hero-3: #d42a3c; --hero-glow: rgba(255, 95, 110, .45); --hero-em: #ffadb5;
  --bg: #fbf5f5; --bg-2: #f6eaeb; --surface: #ffffff; --surface-2: #fffafa; --surface-3: #f6eced; --line: #f0e0e2; --line-2: #e4cdd0; --ink: #2a0e12; --ink-2: #634448; --ink-3: #977b7f; --glass: rgba(255, 249, 249, .86);
  --shadow-1: 0 1px 2px rgba(60, 10, 15, .05), 0 1px 1px rgba(60, 10, 15, .03); --shadow-2: 0 2px 5px rgba(60, 10, 15, .04), 0 18px 40px -20px rgba(130, 15, 30, .26);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(212, 42, 60, .10), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(255, 170, 120, .10), transparent 58%);
  --tile-1: #fde4e7; --tile-1-ink: #b4152b; --tile-2: #e3edff; --tile-2-ink: #1a56c9; --tile-3: #fff0c2; --tile-3-ink: #9a5800; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="salon"] { --hero-1: #2a0f1c; --hero-2: #7f3051; --hero-3: #c76a92; --hero-glow: rgba(240, 200, 140, .4); --hero-em: #ffd6e6;
  --bg: #fbf3f2; --bg-2: #f6e8e6; --surface: #ffffff; --surface-2: #fffafa; --surface-3: #f6eceb; --line: #f0e1df; --line-2: #e5cfcc; --ink: #2b1519; --ink-2: #614549; --ink-3: #977d81; --glass: rgba(255, 249, 248, .86);
  --shadow-1: 0 1px 2px rgba(60, 20, 30, .05), 0 1px 1px rgba(60, 20, 30, .03); --shadow-2: 0 2px 5px rgba(60, 20, 30, .04), 0 18px 40px -20px rgba(140, 60, 90, .24);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(244, 150, 180, .18), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(240, 200, 140, .16), transparent 58%);
  --tile-1: #fbe3ec; --tile-1-ink: #b0285e; --tile-2: #f8ecd6; --tile-2-ink: #8f5a0b; --tile-3: #f0e7fc; --tile-3-ink: #7a3fc2; --tile-4: #e2f1e6; --tile-4-ink: #2f7650; }
/* dark: the same hero, a deep canvas tinted by the look */
html[data-look="dental"][data-theme="dark"] { --bg: #050c1a; --bg-2: #081224; --surface: #0c1729; --surface-2: #111e33; --surface-3: #16253d; --line: #1d2d47; --line-2: #283b5a; --ink: #e8eef8; --ink-2: #a7b6cc; --ink-3: #6f8099; --glass: rgba(12, 23, 41, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(43, 134, 240, .14), transparent 60%); }
html[data-look="skin"][data-theme="dark"] { --bg: #120709; --bg-2: #180b0e; --surface: #1d1013; --surface-2: #241519; --surface-3: #2b1a1f; --line: #372329; --line-2: #463037; --ink: #f6eaec; --ink-2: #c7aeb3; --ink-3: #8f777c; --glass: rgba(29, 16, 19, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(199, 128, 138, .12), transparent 60%); }
html[data-look="care"][data-theme="dark"] { --bg: #06100e; --bg-2: #091714; --surface: #0e1c19; --surface-2: #132320; --surface-3: #182b27; --line: #1f332e; --line-2: #2a423c; --ink: #e7f2ee; --ink-2: #a7bcb5; --ink-3: #6f8780; --glass: rgba(14, 28, 25, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(24, 164, 147, .12), transparent 60%); }
html[data-look="heart"][data-theme="dark"] { --bg: #120506; --bg-2: #18080a; --surface: #1d0d10; --surface-2: #241215; --surface-3: #2b171b; --line: #372026; --line-2: #462c32; --ink: #f7e9eb; --ink-2: #c9adb1; --ink-3: #91767a; --glass: rgba(29, 13, 16, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(212, 42, 60, .12), transparent 60%); }
html[data-look="salon"][data-theme="dark"] { --bg: #140b0e; --bg-2: #1a0f13; --surface: #1e1317; --surface-2: #25181d; --surface-3: #2c1d23; --line: #38252c; --line-2: #47313a; --ink: #f7eaee; --ink-2: #c9b0b8; --ink-3: #917880; --glass: rgba(30, 19, 23, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(229, 141, 178, .12), transparent 60%); }

/* business looks (21 Oct 2026): gym, coaching, retail (shop & boutique), restaurant (tiffin & café), home services, and the neutral Sampurn 'biz' look */
html[data-look="gym"] { --hero-1: #070b08; --hero-2: #14301c; --hero-3: #38b25a; --hero-glow: rgba(170, 255, 110, .38); --hero-em: #c9f7a6;
  --bg: #f3f7f2; --bg-2: #e9f1e7; --surface: #ffffff; --surface-2: #f8fbf7; --surface-3: #ebf3e9; --line: #dde9da; --line-2: #c8dbc4; --ink: #0d1a10; --ink-2: #3f5543; --ink-3: #778b7a; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(56, 178, 90, .12), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(170, 255, 110, .10), transparent 58%);
  --tile-1: #e3f5e6; --tile-1-ink: #1f7a3a; --tile-2: #eaf2d6; --tile-2-ink: #5a6b10; --tile-3: #e3edff; --tile-3-ink: #1a56c9; --tile-4: #fde6d9; --tile-4-ink: #ae4a22; }
html[data-look="gym"][data-theme="dark"] { --bg: #060a07; --bg-2: #09110b; --surface: #0e1a11; --surface-2: #132317; --surface-3: #182b1c; --line: #1f3624; --line-2: #2a4630; --ink: #e6f1e8; --ink-2: #a6bcaa; --ink-3: #6f8774; --glass: rgba(20, 20, 30, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(56, 178, 90, .12), transparent 60%); }
html[data-look="coaching"] { --hero-1: #0a0a2a; --hero-2: #2a2580; --hero-3: #5a52e0; --hero-glow: rgba(255, 205, 110, .38); --hero-em: #ffd98a;
  --bg: #f4f3fd; --bg-2: #ebe9fb; --surface: #ffffff; --surface-2: #f9f8ff; --surface-3: #eeecfb; --line: #e2dff7; --line-2: #cfcbef; --ink: #11102e; --ink-2: #46446b; --ink-3: #7c7aa0; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(90, 82, 224, .12), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(255, 205, 110, .12), transparent 58%);
  --tile-1: #eae6fd; --tile-1-ink: #4b37c8; --tile-2: #fff0c2; --tile-2-ink: #8a5a00; --tile-3: #dcf2f6; --tile-3-ink: #0a7f99; --tile-4: #fde6d9; --tile-4-ink: #ae4a22; }
html[data-look="coaching"][data-theme="dark"] { --bg: #07071a; --bg-2: #0b0b22; --surface: #11112d; --surface-2: #161637; --surface-3: #1c1c41; --line: #25254f; --line-2: #323262; --ink: #ebeaf8; --ink-2: #aeacd0; --ink-3: #76749a; --glass: rgba(20, 20, 30, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(90, 82, 224, .12), transparent 60%); }
html[data-look="retail"] { --hero-1: #16100a; --hero-2: #5a3a12; --hero-3: #f0a32b; --hero-glow: rgba(255, 196, 90, .42); --hero-em: #ffd79a;
  --bg: #fcf7f0; --bg-2: #f6eee2; --surface: #ffffff; --surface-2: #fffbf6; --surface-3: #f6eee3; --line: #efe3d2; --line-2: #e2d0b8; --ink: #22170c; --ink-2: #5c4a36; --ink-3: #94806a; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(240, 163, 43, .14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(255, 196, 90, .10), transparent 58%);
  --tile-1: #fbeedc; --tile-1-ink: #8a4a08; --tile-2: #fbe3ec; --tile-2-ink: #a8345a; --tile-3: #dcf3ea; --tile-3-ink: #12795f; --tile-4: #e3edff; --tile-4-ink: #1a56c9; }
html[data-look="retail"][data-theme="dark"] { --bg: #110c06; --bg-2: #17110a; --surface: #1f170e; --surface-2: #271d12; --surface-3: #2f2316; --line: #3a2c1c; --line-2: #4a3926; --ink: #f6eee2; --ink-2: #c9b6a0; --ink-3: #917c66; --glass: rgba(20, 20, 30, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(240, 163, 43, .14), transparent 60%); }
html[data-look="restaurant"] { --hero-1: #2a0905; --hero-2: #8a2310; --hero-3: #f05a2b; --hero-glow: rgba(255, 150, 80, .42); --hero-em: #ffc0a0;
  --bg: #fcf5f1; --bg-2: #f7ebe4; --surface: #ffffff; --surface-2: #fffaf7; --surface-3: #f7ece6; --line: #f0e0d7; --line-2: #e4cbbd; --ink: #2a120b; --ink-2: #634238; --ink-3: #9a7b70; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(240, 90, 43, .12), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(255, 196, 90, .10), transparent 58%);
  --tile-1: #fde6d9; --tile-1-ink: #ae4a22; --tile-2: #fff0c2; --tile-2-ink: #8a5a00; --tile-3: #dcf3ea; --tile-3-ink: #12795f; --tile-4: #ebe6fb; --tile-4-ink: #5a43c6; }
html[data-look="restaurant"][data-theme="dark"] { --bg: #130806; --bg-2: #1a0b08; --surface: #22100c; --surface-2: #2a1510; --surface-3: #321a14; --line: #3d221a; --line-2: #4d2e24; --ink: #f7ebe6; --ink-2: #cbb0a6; --ink-3: #93776d; --glass: rgba(20, 20, 30, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(240, 90, 43, .12), transparent 60%); }
html[data-look="services"] { --hero-1: #0b1220; --hero-2: #1f2f4f; --hero-3: #3d6fd6; --hero-glow: rgba(120, 170, 255, .42); --hero-em: #a9c6ff;
  --bg: #f3f6fb; --bg-2: #e9eef7; --surface: #ffffff; --surface-2: #f8faff; --surface-3: #ecf1f9; --line: #dfe6f1; --line-2: #cbd5e5; --ink: #0d1626; --ink-2: #3f4d63; --ink-3: #76839a; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(61, 111, 214, .12), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(57, 195, 230, .08), transparent 58%);
  --tile-1: #e3ecff; --tile-1-ink: #1a56c9; --tile-2: #dcf2f6; --tile-2-ink: #0a7f99; --tile-3: #fde6d9; --tile-3-ink: #ae4a22; --tile-4: #ebe6fb; --tile-4-ink: #5a43c6; }
html[data-look="services"][data-theme="dark"] { --bg: #060a12; --bg-2: #0a0f19; --surface: #0f1624; --surface-2: #141c2d; --surface-3: #192337; --line: #202c44; --line-2: #2c3a56; --ink: #e8edf6; --ink-2: #a8b4c8; --ink-3: #707d93; --glass: rgba(20, 20, 30, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(61, 111, 214, .12), transparent 60%); }
html[data-look="biz"] { --hero-1: #120b35; --hero-2: #3b2fa0; --hero-3: #6f5cff; --hero-glow: rgba(140, 120, 255, .45); --hero-em: #c4b8ff;
  --bg: #f5f4fd; --bg-2: #ecebfa; --surface: #ffffff; --surface-2: #faf9ff; --surface-3: #efedfb; --line: #e3e1f6; --line-2: #cfcbee; --ink: #13112e; --ink-2: #48456d; --ink-3: #7d7aa2; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(111, 92, 255, .12), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(79, 139, 255, .10), transparent 58%);
  --tile-1: #efecfe; --tile-1-ink: #5b45e0; --tile-2: #e3edff; --tile-2-ink: #1a56c9; --tile-3: #fde6d9; --tile-3-ink: #ae4a22; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="biz"][data-theme="dark"] { --bg: #08071a; --bg-2: #0c0b22; --surface: #12112d; --surface-2: #171637; --surface-3: #1d1c41; --line: #26254f; --line-2: #333262; --ink: #ecebf9; --ink-2: #afadd2; --ink-3: #77749c; --glass: rgba(20, 20, 30, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(111, 92, 255, .12), transparent 60%); }
/* gym demo looks (23 Oct 2026, /demo/gym/): ember (default) · volt · gold · ice. Dark-first, like the gym landing page; a light canvas too */
html[data-look="gym-ember"] { --hero-tint: rgba(255, 106, 43, .26); --hero-fade: rgba(12, 7, 5, .7); --hero-1: #0c0705; --hero-2: #3a1709; --hero-3: #ff6a2b; --hero-glow: rgba(255, 122, 61, .42); --hero-em: #ffb38a;
  --bg: #fbf6f3; --bg-2: #f5ece6; --surface: #ffffff; --surface-2: #fffaf7; --surface-3: #f6ece6; --line: #efe1d8; --line-2: #e2cdbf; --ink: #1d120c; --ink-2: #5a473c; --ink-3: #8f7b70; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(255, 106, 43, .14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(255, 179, 138, .12), transparent 58%);
  --tile-1: #fdebe2; --tile-1-ink: #b4400e; --tile-2: #fff0c2; --tile-2-ink: #8a5a00; --tile-3: #e3edff; --tile-3-ink: #1a56c9; --tile-4: #e2f1e6; --tile-4-ink: #2f7650; }
html[data-look="gym-ember"][data-theme="dark"] { --bg: #0a0706; --bg-2: #0f0a08; --surface: #16100d; --surface-2: #1c1410; --surface-3: #241a15; --line: #2f221b; --line-2: #3f2e24; --ink: #f7eee9; --ink-2: #c9b5a9; --ink-3: #8e796d; --glass: rgba(22, 16, 13, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(255, 106, 43, .16), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(255, 150, 80, .06), transparent 58%); }
html[data-look="gym-volt"] { --hero-tint: rgba(168, 216, 26, .22); --hero-fade: rgba(5, 7, 5, .7); --hero-1: #050705; --hero-2: #18240a; --hero-3: #a8d81a; --hero-glow: rgba(212, 255, 58, .32); --hero-em: #e2ff73;
  --bg: #f5f8ef; --bg-2: #ecf1e2; --surface: #ffffff; --surface-2: #fafcf6; --surface-3: #eef3e5; --line: #e1e9d3; --line-2: #ccd8b8; --ink: #11160a; --ink-2: #48523a; --ink-3: #7c8770; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(168, 216, 26, .16), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(212, 255, 58, .10), transparent 58%);
  --tile-1: #eef7d9; --tile-1-ink: #4a6d00; --tile-2: #e3edff; --tile-2-ink: #1a56c9; --tile-3: #fde6d9; --tile-3-ink: #ae4a22; --tile-4: #ebe6fb; --tile-4-ink: #5a43c6; }
html[data-look="gym-volt"][data-theme="dark"] { --bg: #070806; --bg-2: #0b0d09; --surface: #12150f; --surface-2: #171b13; --surface-3: #1d2218; --line: #262c1f; --line-2: #343c2a; --ink: #f1f5e9; --ink-2: #b6bfa6; --ink-3: #7b8470; --glass: rgba(18, 21, 15, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(212, 255, 58, .10), transparent 60%); }
html[data-look="gym-gold"] { --hero-tint: rgba(201, 164, 86, .24); --hero-fade: rgba(8, 7, 6, .7); --hero-1: #080706; --hero-2: #2c2316; --hero-3: #c9a456; --hero-glow: rgba(235, 201, 127, .36); --hero-em: #f5dca6;
  --bg: #faf7f1; --bg-2: #f3ede2; --surface: #ffffff; --surface-2: #fffcf7; --surface-3: #f4eee3; --line: #ebe2d1; --line-2: #dccfb6; --ink: #1c1710; --ink-2: #574d3e; --ink-3: #8d8270; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(201, 164, 86, .16), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(245, 220, 166, .14), transparent 58%);
  --tile-1: #f7efdd; --tile-1-ink: #7c5a17; --tile-2: #ecebe8; --tile-2-ink: #3b352c; --tile-3: #e3edff; --tile-3-ink: #1a56c9; --tile-4: #fbe4ea; --tile-4-ink: #a8345a; }
html[data-look="gym-gold"][data-theme="dark"] { --bg: #090807; --bg-2: #0d0c0a; --surface: #15130f; --surface-2: #1b1813; --surface-3: #221e18; --line: #2d2820; --line-2: #3c352a; --ink: #f6f0e4; --ink-2: #c4b9a5; --ink-3: #8a806f; --glass: rgba(21, 19, 15, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(235, 201, 127, .12), transparent 60%); }
html[data-look="gym-ice"] { --hero-tint: rgba(31, 184, 217, .24); --hero-fade: rgba(3, 7, 12, .7); --hero-1: #03070c; --hero-2: #0b2536; --hero-3: #1fb8d9; --hero-glow: rgba(65, 227, 255, .34); --hero-em: #9ff0ff;
  --bg: #f2f8fb; --bg-2: #e7f1f6; --surface: #ffffff; --surface-2: #f7fbfd; --surface-3: #e9f2f7; --line: #dbe8ef; --line-2: #c5d7e1; --ink: #08141b; --ink-2: #3c505c; --ink-3: #738793; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(31, 184, 217, .14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(159, 240, 255, .14), transparent 58%);
  --tile-1: #e1f4fb; --tile-1-ink: #066791; --tile-2: #ebe6fb; --tile-2-ink: #5a43c6; --tile-3: #dcf3ea; --tile-3-ink: #12795f; --tile-4: #fde6d9; --tile-4-ink: #ae4a22; }
html[data-look="gym-ice"][data-theme="dark"] { --bg: #04080c; --bg-2: #070c12; --surface: #0d141b; --surface-2: #121a23; --surface-3: #18212c; --line: #1f2b37; --line-2: #2b3a49; --ink: #e9f3f8; --ink-2: #a7b9c5; --ink-3: #6e808c; --glass: rgba(13, 20, 27, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(65, 227, 255, .11), transparent 60%); }
/* @depts:start — the doctors' departments (generated by work-doctors/gen-css.mjs from lib/depts.js, 10 Nov 2026) */
html[data-look="gp"] { --hero-1: #06173a; --hero-2: #1846a8; --hero-3: #3d7cf0; --hero-glow: rgba(129, 170, 245, 0.45); --hero-em: #b5cdf9;
  --bg: #f6f9fe; --bg-2: #eff4fe; --surface: #ffffff; --surface-2: #fcfdff; --surface-3: #f1f6fe; --line: #e8effd; --line-2: #d6e3fc; --ink: #08132b; --ink-2: #2f426c; --ink-3: #66779a; --glass: rgba(247, 250, 254, 0.86);
  --shadow-1: 0 1px 2px rgba(6, 23, 58, 0.06), 0 1px 1px rgba(6, 23, 58, 0.03); --shadow-2: 0 2px 5px rgba(6, 23, 58, 0.05), 0 18px 40px -20px rgba(24, 70, 168, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(61, 124, 240, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(158, 152, 189, 0.12), transparent 58%);
  --tile-1: #e0eafd; --tile-1-ink: #264d95; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="gp"][data-theme="dark"] { --bg: #050d1f; --bg-2: #050f25; --surface: #0d1529; --surface-2: #0e1932; --surface-3: #0f1c3b; --line: #102147; --line-2: #112756; --ink: #ecf2fe; --ink-2: #96acd4; --ink-3: #6c80a9; --glass: rgba(13, 21, 41, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(61, 124, 240, 0.13), transparent 60%); }
html[data-look="diabetes"] { --hero-1: #2a0b06; --hero-2: #8a2f16; --hero-3: #f0683b; --hero-glow: rgba(245, 157, 128, 0.45); --hero-em: #f9c6b5;
  --bg: #fef8f6; --bg-2: #fef2ee; --surface: #ffffff; --surface-2: #fffdfc; --surface-3: #fef4f1; --line: #fdede7; --line-2: #fcdfd6; --ink: #1f0b09; --ink-2: #5a3a35; --ink-3: #867171; --glass: rgba(254, 249, 247, 0.86);
  --shadow-1: 0 1px 2px rgba(42, 11, 6, 0.06), 0 1px 1px rgba(42, 11, 6, 0.03); --shadow-2: 0 2px 5px rgba(42, 11, 6, 0.05), 0 18px 40px -20px rgba(138, 47, 22, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(240, 104, 59, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(248, 142, 99, 0.12), transparent 58%);
  --tile-1: #fde7e0; --tile-1-ink: #954025; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="diabetes"][data-theme="dark"] { --bg: #150808; --bg-2: #1a0807; --surface: #1f1212; --surface-2: #271412; --surface-3: #2f1612; --line: #391913; --line-2: #451c13; --ink: #fef0eb; --ink-2: #c8a6a1; --ink-3: #9a7b7a; --glass: rgba(31, 18, 18, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(240, 104, 59, 0.13), transparent 60%); }
html[data-look="multi"] { --hero-1: #0d0a2e; --hero-2: #3a2fa0; --hero-3: #7b6cff; --hero-glow: rgba(169, 159, 255, 0.45); --hero-em: #cdc7ff;
  --bg: #f9f8ff; --bg-2: #f4f3ff; --surface: #ffffff; --surface-2: #fdfdff; --surface-3: #f6f5ff; --line: #efedff; --line-2: #e3e0ff; --ink: #0c0a23; --ink-2: #3c3a69; --ink-3: #707198; --glass: rgba(250, 249, 255, 0.86);
  --shadow-1: 0 1px 2px rgba(13, 10, 46, 0.06), 0 1px 1px rgba(13, 10, 46, 0.03); --shadow-2: 0 2px 5px rgba(13, 10, 46, 0.05), 0 18px 40px -20px rgba(58, 47, 160, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(123, 108, 255, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(189, 144, 197, 0.12), transparent 58%);
  --tile-1: #eae7ff; --tile-1-ink: #4c439e; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="multi"][data-theme="dark"] { --bg: #08071a; --bg-2: #09081e; --surface: #131228; --surface-2: #151430; --surface-3: #181639; --line: #1c1944; --line-2: #211c53; --ink: #f2f0ff; --ink-2: #a8a7d8; --ink-3: #7c7cad; --glass: rgba(19, 18, 40, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(123, 108, 255, 0.13), transparent 60%); }
html[data-look="gynae"] { --hero-1: #2a0718; --hero-2: #8a1f52; --hero-3: #e0528f; --hero-glow: rgba(235, 143, 182, 0.45); --hero-em: #f3bdd4;
  --bg: #fef7fa; --bg-2: #fcf0f5; --surface: #ffffff; --surface-2: #fffcfd; --surface-3: #fdf3f7; --line: #fbeaf2; --line-2: #f8dbe7; --ink: #1f0815; --ink-2: #5a334c; --ink-3: #866c82; --glass: rgba(254, 248, 251, 0.86);
  --shadow-1: 0 1px 2px rgba(42, 7, 24, 0.06), 0 1px 1px rgba(42, 7, 24, 0.03); --shadow-2: 0 2px 5px rgba(42, 7, 24, 0.05), 0 18px 40px -20px rgba(138, 31, 82, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(224, 82, 143, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(240, 131, 141, 0.12), transparent 58%);
  --tile-1: #fae3ed; --tile-1-ink: #8b3359; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="gynae"][data-theme="dark"] { --bg: #150610; --bg-2: #1a0612; --surface: #1f0f1b; --surface-2: #27101f; --surface-3: #2f1123; --line: #391328; --line-2: #45152f; --ink: #fceef4; --ink-2: #c4a0b9; --ink-3: #967690; --glass: rgba(31, 15, 27, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(224, 82, 143, 0.13), transparent 60%); }
html[data-look="ivf"] { --hero-1: #1e0a2e; --hero-2: #5e2a8a; --hero-3: #b06ae0; --hero-glow: rgba(204, 158, 235, 0.45); --hero-em: #e1c6f3;
  --bg: #fbf8fe; --bg-2: #f8f2fc; --surface: #ffffff; --surface-2: #fefdff; --surface-3: #f9f5fd; --line: #f6edfb; --line-2: #eee0f8; --ink: #170a23; --ink-2: #4a3861; --ink-3: #7a6f92; --glass: rgba(252, 249, 254, 0.86);
  --shadow-1: 0 1px 2px rgba(30, 10, 46, 0.06), 0 1px 1px rgba(30, 10, 46, 0.03); --shadow-2: 0 2px 5px rgba(30, 10, 46, 0.05), 0 18px 40px -20px rgba(94, 42, 138, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(176, 106, 224, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(216, 143, 181, 0.12), transparent 58%);
  --tile-1: #f2e7fa; --tile-1-ink: #6d428b; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="ivf"][data-theme="dark"] { --bg: #10071a; --bg-2: #13081e; --surface: #181124; --surface-2: #1d132c; --surface-3: #221433; --line: #29173d; --line-2: #311a49; --ink: #f7f0fc; --ink-2: #b6a6cf; --ink-3: #8a7ca5; --glass: rgba(24, 17, 36, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(176, 106, 224, 0.13), transparent 60%); }
html[data-look="paeds"] { --hero-1: #2a1702; --hero-2: #8a5208; --hero-3: #f0a62b; --hero-glow: rgba(245, 197, 117, 0.45); --hero-em: #f9ddae;
  --bg: #fefbf5; --bg-2: #fef7ed; --surface: #ffffff; --surface-2: #fffefc; --surface-3: #fef9f0; --line: #fdf4e6; --line-2: #fcecd2; --ink: #1f1307; --ink-2: #5a4730; --ink-3: #867a6e; --glass: rgba(254, 251, 247, 0.86);
  --shadow-1: 0 1px 2px rgba(42, 23, 2, 0.06), 0 1px 1px rgba(42, 23, 2, 0.03); --shadow-2: 0 2px 5px rgba(42, 23, 2, 0.05), 0 18px 40px -20px rgba(138, 82, 8, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(240, 166, 43, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(248, 173, 91, 0.12), transparent 58%);
  --tile-1: #fdf1dd; --tile-1-ink: #95671b; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="paeds"][data-theme="dark"] { --bg: #150d06; --bg-2: #1a0f05; --surface: #1f1710; --surface-2: #271b0f; --surface-3: #2f200e; --line: #39250e; --line-2: #452c0d; --ink: #fef6ea; --ink-2: #c8b79d; --ink-3: #9a8b76; --glass: rgba(31, 23, 16, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(240, 166, 43, 0.13), transparent 60%); }
html[data-look="hair"] { --hero-1: #1a1206; --hero-2: #5a3f12; --hero-3: #c9973e; --hero-glow: rgba(220, 187, 130, 0.45); --hero-em: #ead7b6;
  --bg: #fdfaf6; --bg-2: #faf6ef; --surface: #ffffff; --surface-2: #fefdfc; --surface-3: #fbf8f1; --line: #f9f3e8; --line-2: #f4e9d6; --ink: #151009; --ink-2: #484033; --ink-3: #797570; --glass: rgba(253, 251, 247, 0.86);
  --shadow-1: 0 1px 2px rgba(26, 18, 6, 0.06), 0 1px 1px rgba(26, 18, 6, 0.03); --shadow-2: 0 2px 5px rgba(26, 18, 6, 0.05), 0 18px 40px -20px rgba(90, 63, 18, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(201, 151, 62, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(228, 166, 100, 0.12), transparent 58%);
  --tile-1: #f6eee0; --tile-1-ink: #7d5e26; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="hair"][data-theme="dark"] { --bg: #0e0b08; --bg-2: #110d07; --surface: #181411; --surface-2: #1c1711; --surface-3: #211a11; --line: #271e11; --line-2: #2f2311; --ink: #faf5ec; --ink-2: #bdb3a2; --ink-3: #90877b; --glass: rgba(24, 20, 17, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(201, 151, 62, 0.13), transparent 60%); }
html[data-look="aesthetic"] { --hero-1: #2a0f16; --hero-2: #7a3346; --hero-3: #d58c98; --hero-glow: rgba(228, 180, 188, 0.45); --hero-em: #efd3d8;
  --bg: #fdfafa; --bg-2: #fbf5f6; --surface: #ffffff; --surface-2: #fefdfd; --surface-3: #fcf7f8; --line: #faf1f3; --line-2: #f6e7e9; --ink: #1f0e14; --ink-2: #543b47; --ink-3: #82727f; --glass: rgba(253, 250, 251, 0.86);
  --shadow-1: 0 1px 2px rgba(42, 15, 22, 0.06), 0 1px 1px rgba(42, 15, 22, 0.03); --shadow-2: 0 2px 5px rgba(42, 15, 22, 0.05), 0 18px 40px -20px rgba(122, 51, 70, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(213, 140, 152, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(234, 160, 145, 0.12), transparent 58%);
  --tile-1: #f8edef; --tile-1-ink: #84575e; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="aesthetic"][data-theme="dark"] { --bg: #150a0f; --bg-2: #1a0b11; --surface: #1d1219; --surface-2: #23151d; --surface-3: #2a1720; --line: #331a24; --line-2: #3e1e29; --ink: #fbf4f5; --ink-2: #c1b0bb; --ink-3: #938592; --glass: rgba(29, 18, 25, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(213, 140, 152, 0.13), transparent 60%); }
html[data-look="eye"] { --hero-1: #03141f; --hero-2: #0b4a6e; --hero-3: #1fa6d9; --hero-glow: rgba(109, 197, 230, 0.45); --hero-em: #aaddf1;
  --bg: #f5fbfd; --bg-2: #ecf7fc; --surface: #ffffff; --surface-2: #fcfefe; --surface-3: #eff9fc; --line: #e4f4fa; --line-2: #d0ecf7; --ink: #061119; --ink-2: #2a4456; --ink-3: #63788a; --glass: rgba(246, 251, 253, 0.86);
  --shadow-1: 0 1px 2px rgba(3, 20, 31, 0.06), 0 1px 1px rgba(3, 20, 31, 0.03); --shadow-2: 0 2px 5px rgba(3, 20, 31, 0.05), 0 18px 40px -20px rgba(11, 74, 110, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(31, 166, 217, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(143, 173, 178, 0.12), transparent 58%);
  --tile-1: #dbf1f9; --tile-1-ink: #136787; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="eye"][data-theme="dark"] { --bg: #040c13; --bg-2: #030e16; --surface: #0b1620; --surface-2: #0b1a25; --surface-3: #0b1d2b; --line: #0b2232; --line-2: #0b293c; --ink: #e9f6fb; --ink-2: #8eb7cd; --ink-3: #648ba3; --glass: rgba(11, 22, 32, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(31, 166, 217, 0.13), transparent 60%); }
html[data-look="ent"] { --hero-1: #021f1d; --hero-2: #0a5a55; --hero-3: #14b8a6; --hero-glow: rgba(102, 209, 197, 0.45); --hero-em: #a6e4dd;
  --bg: #f4fcfb; --bg-2: #ebf9f7; --surface: #ffffff; --surface-2: #fbfefe; --surface-3: #effaf9; --line: #e3f6f4; --line-2: #cef0ec; --ink: #051818; --ink-2: #2a4a4d; --ink-3: #637d83; --glass: rgba(246, 252, 251, 0.86);
  --shadow-1: 0 1px 2px rgba(2, 31, 29, 0.06), 0 1px 1px rgba(2, 31, 29, 0.03); --shadow-2: 0 2px 5px rgba(2, 31, 29, 0.05), 0 18px 40px -20px rgba(10, 90, 85, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(20, 184, 166, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(138, 182, 152, 0.12), transparent 58%);
  --tile-1: #d9f4f1; --tile-1-ink: #0c7267; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="ent"][data-theme="dark"] { --bg: #031112; --bg-2: #031415; --surface: #0b181c; --surface-2: #0b1d20; --surface-3: #0b2224; --line: #0b2829; --line-2: #0b3030; --ink: #e8f8f6; --ink-2: #8bbcbf; --ink-3: #619096; --glass: rgba(11, 24, 28, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(20, 184, 166, 0.13), transparent 60%); }
html[data-look="chest"] { --hero-1: #04121f; --hero-2: #0f3f66; --hero-3: #3aa0e0; --hero-glow: rgba(127, 193, 235, 0.45); --hero-em: #b4dbf3;
  --bg: #f6fbfe; --bg-2: #eef7fc; --surface: #ffffff; --surface-2: #fcfeff; --surface-3: #f1f8fd; --line: #e7f4fb; --line-2: #d6ebf8; --ink: #061019; --ink-2: #2c4053; --ink-3: #647588; --glass: rgba(247, 251, 254, 0.86);
  --shadow-1: 0 1px 2px rgba(4, 18, 31, 0.06), 0 1px 1px rgba(4, 18, 31, 0.03); --shadow-2: 0 2px 5px rgba(4, 18, 31, 0.05), 0 18px 40px -20px rgba(15, 63, 102, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(58, 160, 224, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(157, 170, 181, 0.12), transparent 58%);
  --tile-1: #dff0fa; --tile-1-ink: #24638b; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="chest"][data-theme="dark"] { --bg: #040b13; --bg-2: #040d16; --surface: #0c141f; --surface-2: #0c1724; --surface-3: #0c1a29; --line: #0c1e30; --line-2: #0d2338; --ink: #ebf6fc; --ink-2: #95b6cf; --ink-3: #6b8aa5; --glass: rgba(12, 20, 31, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(58, 160, 224, 0.13), transparent 60%); }
html[data-look="nephro"] { --hero-1: #080b2e; --hero-2: #26318a; --hero-3: #5468f0; --hero-glow: rgba(144, 157, 245, 0.45); --hero-em: #bec6f9;
  --bg: #f7f8fe; --bg-2: #f0f2fe; --surface: #ffffff; --surface-2: #fcfdff; --surface-3: #f3f4fe; --line: #eaedfd; --line-2: #dbdffc; --ink: #090b23; --ink-2: #343a61; --ink-3: #6a7192; --glass: rgba(248, 249, 254, 0.86);
  --shadow-1: 0 1px 2px rgba(8, 11, 46, 0.06), 0 1px 1px rgba(8, 11, 46, 0.03); --shadow-2: 0 2px 5px rgba(8, 11, 46, 0.05), 0 18px 40px -20px rgba(38, 49, 138, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(84, 104, 240, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(170, 142, 189, 0.12), transparent 58%);
  --tile-1: #e4e7fd; --tile-1-ink: #344095; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="nephro"][data-theme="dark"] { --bg: #06081a; --bg-2: #06081e; --surface: #0f1224; --surface-2: #11142c; --surface-3: #131633; --line: #15193d; --line-2: #171d49; --ink: #eef0fe; --ink-2: #9da6d4; --ink-3: #727ba9; --glass: rgba(15, 18, 36, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(84, 104, 240, 0.13), transparent 60%); }
html[data-look="gastro"] { --hero-1: #1f1503; --hero-2: #6a4a08; --hero-3: #d99a1c; --hero-glow: rgba(230, 189, 107, 0.45); --hero-em: #f1d9a9;
  --bg: #fdfaf5; --bg-2: #fcf6ec; --surface: #ffffff; --surface-2: #fefdfc; --surface-3: #fcf8ef; --line: #faf3e4; --line-2: #f7eacf; --ink: #181207; --ink-2: #4e4430; --ink-3: #7d786e; --glass: rgba(253, 251, 246, 0.86);
  --shadow-1: 0 1px 2px rgba(31, 21, 3, 0.06), 0 1px 1px rgba(31, 21, 3, 0.03); --shadow-2: 0 2px 5px rgba(31, 21, 3, 0.05), 0 18px 40px -20px rgba(106, 74, 8, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(217, 154, 28, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(236, 167, 83, 0.12), transparent 58%);
  --tile-1: #f9efdb; --tile-1-ink: #875f11; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="gastro"][data-theme="dark"] { --bg: #100c06; --bg-2: #140e06; --surface: #1a1610; --surface-2: #201a0f; --surface-3: #261d0e; --line: #2d220e; --line-2: #37290d; --ink: #fbf5e8; --ink-2: #c2b499; --ink-3: #948872; --glass: rgba(26, 22, 16, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(217, 154, 28, 0.13), transparent 60%); }
html[data-look="uro"] { --hero-1: #03181f; --hero-2: #0a5566; --hero-3: #21a8c6; --hero-glow: rgba(111, 198, 218, 0.45); --hero-em: #abdee9;
  --bg: #f5fbfc; --bg-2: #ecf8fa; --surface: #ffffff; --surface-2: #fcfefe; --surface-3: #eff9fb; --line: #e4f5f8; --line-2: #d0edf3; --ink: #061319; --ink-2: #2a4853; --ink-3: #637b88; --glass: rgba(246, 252, 253, 0.86);
  --shadow-1: 0 1px 2px rgba(3, 24, 31, 0.06), 0 1px 1px rgba(3, 24, 31, 0.03); --shadow-2: 0 2px 5px rgba(3, 24, 31, 0.05), 0 18px 40px -20px rgba(10, 85, 102, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(33, 168, 198, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(144, 174, 168, 0.12), transparent 58%);
  --tile-1: #dbf1f6; --tile-1-ink: #14687b; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="uro"][data-theme="dark"] { --bg: #040e13; --bg-2: #031016; --surface: #0b181f; --surface-2: #0b1c24; --surface-3: #0b2029; --line: #0b2630; --line-2: #0b2e38; --ink: #e9f6f9; --ink-2: #8eb8c8; --ink-3: #648c9e; --glass: rgba(11, 24, 31, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(33, 168, 198, 0.13), transparent 60%); }
html[data-look="ortho"] { --hero-1: #140a05; --hero-2: #5a2a0e; --hero-3: #ea6a1f; --hero-glow: rgba(241, 158, 109, 0.45); --hero-em: #f7c6aa;
  --bg: #fef8f5; --bg-2: #fdf2ec; --surface: #ffffff; --surface-2: #fffdfc; --surface-3: #fef5ef; --line: #fcede4; --line-2: #fbe0d0; --ink: #110a09; --ink-2: #483832; --ink-3: #796f6f; --glass: rgba(254, 249, 246, 0.86);
  --shadow-1: 0 1px 2px rgba(20, 10, 5, 0.06), 0 1px 1px rgba(20, 10, 5, 0.03); --shadow-2: 0 2px 5px rgba(20, 10, 5, 0.05), 0 18px 40px -20px rgba(90, 42, 14, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(234, 106, 31, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(245, 143, 85, 0.12), transparent 58%);
  --tile-1: #fce7db; --tile-1-ink: #914213; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="ortho"][data-theme="dark"] { --bg: #0b0707; --bg-2: #0d0807; --surface: #181111; --surface-2: #1c1310; --surface-3: #211410; --line: #271710; --line-2: #2f1a10; --ink: #fdf0e9; --ink-2: #c7a699; --ink-3: #997c73; --glass: rgba(24, 17, 17, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(234, 106, 31, 0.13), transparent 60%); }
html[data-look="physio"] { --hero-1: #04180a; --hero-2: #145a2a; --hero-3: #2fae5a; --hero-glow: rgba(120, 202, 148, 0.45); --hero-em: #b0e0c0;
  --bg: #f6fbf8; --bg-2: #edf8f1; --surface: #ffffff; --surface-2: #fcfefd; --surface-3: #f0f9f3; --line: #e6f5eb; --line-2: #d3eedc; --ink: #06130c; --ink-2: #2d4a3d; --ink-3: #657d77; --glass: rgba(247, 252, 248, 0.86);
  --shadow-1: 0 1px 2px rgba(4, 24, 10, 0.06), 0 1px 1px rgba(4, 24, 10, 0.03); --shadow-2: 0 2px 5px rgba(4, 24, 10, 0.05), 0 18px 40px -20px rgba(20, 90, 42, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(47, 174, 90, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(151, 177, 114, 0.12), transparent 58%);
  --tile-1: #def2e5; --tile-1-ink: #1d6c38; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="physio"][data-theme="dark"] { --bg: #040e09; --bg-2: #04100a; --surface: #0c1815; --surface-2: #0d1d17; --surface-3: #0e2218; --line: #0e281a; --line-2: #0f301d; --ink: #eaf7ef; --ink-2: #92baaa; --ink-3: #688d82; --glass: rgba(12, 24, 21, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(47, 174, 90, 0.13), transparent 60%); }
html[data-look="neuro"] { --hero-1: #120a2e; --hero-2: #43239a; --hero-3: #8b5cf6; --hero-glow: rgba(180, 149, 249, 0.45); --hero-em: #d3c1fc;
  --bg: #faf8ff; --bg-2: #f5f1fe; --surface: #ffffff; --surface-2: #fdfdff; --surface-3: #f7f4fe; --line: #f1ebfe; --line-2: #e7ddfd; --ink: #100a23; --ink-2: #3f3567; --ink-3: #736d96; --glass: rgba(250, 248, 255, 0.86);
  --shadow-1: 0 1px 2px rgba(18, 10, 46, 0.06), 0 1px 1px rgba(18, 10, 46, 0.03); --shadow-2: 0 2px 5px rgba(18, 10, 46, 0.05), 0 18px 40px -20px rgba(67, 35, 154, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(139, 92, 246, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(197, 136, 192, 0.12), transparent 58%);
  --tile-1: #ece5fe; --tile-1-ink: #563999; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="neuro"][data-theme="dark"] { --bg: #0a071a; --bg-2: #0c081e; --surface: #141027; --surface-2: #17112f; --surface-3: #1b1237; --line: #1f1442; --line-2: #251750; --ink: #f3effe; --ink-2: #aca3d6; --ink-3: #8078ab; --glass: rgba(20, 16, 39, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(139, 92, 246, 0.13), transparent 60%); }
html[data-look="psych"] { --hero-1: #03191c; --hero-2: #0f5560; --hero-3: #2bb3b8; --hero-glow: rgba(117, 206, 209, 0.45); --hero-em: #aee2e4;
  --bg: #f5fcfc; --bg-2: #edf9f9; --surface: #ffffff; --surface-2: #fcfefe; --surface-3: #f0fafa; --line: #e6f6f6; --line-2: #d2eff0; --ink: #061417; --ink-2: #2c4851; --ink-3: #647b86; --glass: rgba(247, 252, 252, 0.86);
  --shadow-1: 0 1px 2px rgba(3, 25, 28, 0.06), 0 1px 1px rgba(3, 25, 28, 0.03); --shadow-2: 0 2px 5px rgba(3, 25, 28, 0.05), 0 18px 40px -20px rgba(15, 85, 96, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(43, 179, 184, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(149, 180, 161, 0.12), transparent 58%);
  --tile-1: #ddf3f4; --tile-1-ink: #1b6f72; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="psych"][data-theme="dark"] { --bg: #040e12; --bg-2: #031114; --surface: #0c181e; --surface-2: #0c1c22; --surface-3: #0c2027; --line: #0c262d; --line-2: #0d2e35; --ink: #eaf7f8; --ink-2: #91bbc4; --ink-3: #678f9a; --glass: rgba(12, 24, 30, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(43, 179, 184, 0.13), transparent 60%); }
html[data-look="surgery"] { --hero-1: #0a0f1a; --hero-2: #26344f; --hero-3: #5b7bb0; --hero-glow: rgba(148, 169, 204, 0.45); --hero-em: #c1cde1;
  --bg: #f8f9fb; --bg-2: #f1f4f8; --surface: #ffffff; --surface-2: #fdfdfe; --surface-3: #f4f6f9; --line: #ebeff6; --line-2: #dde3ee; --ink: #0a0e16; --ink-2: #343b4b; --ink-3: #6a7281; --glass: rgba(248, 250, 252, 0.86);
  --shadow-1: 0 1px 2px rgba(10, 15, 26, 0.06), 0 1px 1px rgba(10, 15, 26, 0.03); --shadow-2: 0 2px 5px rgba(10, 15, 26, 0.05), 0 18px 40px -20px rgba(38, 52, 79, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(91, 123, 176, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(173, 152, 157, 0.12), transparent 58%);
  --tile-1: #e5eaf2; --tile-1-ink: #384c6d; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="surgery"][data-theme="dark"] { --bg: #070a11; --bg-2: #070b13; --surface: #0f121b; --surface-2: #11151f; --surface-3: #131722; --line: #151a27; --line-2: #171e2e; --ink: #eff2f7; --ink-2: #9fabc2; --ink-3: #738098; --glass: rgba(15, 18, 27, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(91, 123, 176, 0.13), transparent 60%); }
html[data-look="onco"] { --hero-1: #24081a; --hero-2: #6e2050; --hero-3: #d0588f; --hero-glow: rgba(224, 146, 182, 0.45); --hero-em: #edc0d4;
  --bg: #fdf7fa; --bg-2: #fbf1f5; --surface: #ffffff; --surface-2: #fefcfd; --surface-3: #fcf3f7; --line: #f9ebf2; --line-2: #f5dce7; --ink: #1b0916; --ink-2: #50344b; --ink-3: #7f6c82; --glass: rgba(253, 248, 251, 0.86);
  --shadow-1: 0 1px 2px rgba(36, 8, 26, 0.06), 0 1px 1px rgba(36, 8, 26, 0.03); --shadow-2: 0 2px 5px rgba(36, 8, 26, 0.05), 0 18px 40px -20px rgba(110, 32, 80, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(208, 88, 143, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(232, 134, 141, 0.12), transparent 58%);
  --tile-1: #f7e4ed; --tile-1-ink: #813759; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="onco"][data-theme="dark"] { --bg: #120611; --bg-2: #170713; --surface: #1b0f1b; --surface-2: #21101f; --surface-3: #271223; --line: #2f1328; --line-2: #39152e; --ink: #faeef4; --ink-2: #bfa1b9; --ink-3: #927790; --glass: rgba(27, 15, 27, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(208, 88, 143, 0.13), transparent 60%); }
html[data-look="ayurveda"] { --hero-1: #0e1604; --hero-2: #3a5a10; --hero-3: #8fb82a; --hero-glow: rgba(182, 209, 117, 0.45); --hero-em: #d4e4ae;
  --bg: #fafcf5; --bg-2: #f5f9ed; --surface: #ffffff; --surface-2: #fdfefc; --surface-3: #f7faf0; --line: #f2f6e5; --line-2: #e7f0d2; --ink: #0d1208; --ink-2: #3c4a33; --ink-3: #707d70; --glass: rgba(251, 252, 246, 0.86);
  --shadow-1: 0 1px 2px rgba(14, 22, 4, 0.06), 0 1px 1px rgba(14, 22, 4, 0.03); --shadow-2: 0 2px 5px rgba(14, 22, 4, 0.05), 0 18px 40px -20px rgba(58, 90, 16, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(143, 184, 42, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(199, 182, 90, 0.12), transparent 58%);
  --tile-1: #edf4dd; --tile-1-ink: #59721a; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="ayurveda"][data-theme="dark"] { --bg: #090d07; --bg-2: #0a0f06; --surface: #131811; --surface-2: #151d11; --surface-3: #182211; --line: #1c2811; --line-2: #213011; --ink: #f4f8ea; --ink-2: #adbc9c; --ink-3: #819075; --glass: rgba(19, 24, 17, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(143, 184, 42, 0.13), transparent 60%); }
html[data-look="homeo"] { --hero-1: #04160f; --hero-2: #145a40; --hero-3: #2fae7e; --hero-glow: rgba(120, 202, 171, 0.45); --hero-em: #b0e0ce;
  --bg: #f6fbf9; --bg-2: #edf8f4; --surface: #ffffff; --surface-2: #fcfefd; --surface-3: #f0f9f6; --line: #e6f5f0; --line-2: #d3eee4; --ink: #06120f; --ink-2: #2d4a45; --ink-3: #657d7d; --glass: rgba(247, 252, 250, 0.86);
  --shadow-1: 0 1px 2px rgba(4, 22, 15, 0.06), 0 1px 1px rgba(4, 22, 15, 0.03); --shadow-2: 0 2px 5px rgba(4, 22, 15, 0.05), 0 18px 40px -20px rgba(20, 90, 64, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(47, 174, 126, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(151, 177, 132, 0.12), transparent 58%);
  --tile-1: #def2ea; --tile-1-ink: #1d6c4e; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="homeo"][data-theme="dark"] { --bg: #040d0c; --bg-2: #040f0c; --surface: #0c1819; --surface-2: #0d1d1b; --surface-3: #0e221e; --line: #0e2822; --line-2: #0f3027; --ink: #eaf7f2; --ink-2: #92bab4; --ink-3: #688d8b; --glass: rgba(12, 24, 25, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(47, 174, 126, 0.13), transparent 60%); }
html[data-look="diet"] { --hero-1: #0d1604; --hero-2: #3d5a0e; --hero-3: #86b82a; --hero-glow: rgba(176, 209, 117, 0.45); --hero-em: #d1e4ae;
  --bg: #fafcf5; --bg-2: #f5f9ed; --surface: #ffffff; --surface-2: #fdfefc; --surface-3: #f7faf0; --line: #f0f6e5; --line-2: #e6f0d2; --ink: #0c1208; --ink-2: #3d4a32; --ink-3: #717d6f; --glass: rgba(250, 252, 246, 0.86);
  --shadow-1: 0 1px 2px rgba(13, 22, 4, 0.06), 0 1px 1px rgba(13, 22, 4, 0.03); --shadow-2: 0 2px 5px rgba(13, 22, 4, 0.05), 0 18px 40px -20px rgba(61, 90, 14, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(134, 184, 42, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(195, 182, 90, 0.12), transparent 58%);
  --tile-1: #ecf4dd; --tile-1-ink: #53721a; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="diet"][data-theme="dark"] { --bg: #080d07; --bg-2: #090f06; --surface: #131811; --surface-2: #161d10; --surface-3: #192210; --line: #1d2810; --line-2: #223010; --ink: #f3f8ea; --ink-2: #abbc9c; --ink-3: #7f9075; --glass: rgba(19, 24, 17, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(134, 184, 42, 0.13), transparent 60%); }
html[data-look="lab"] { --hero-1: #031520; --hero-2: #0a4a66; --hero-3: #1ba3c9; --hero-glow: rgba(107, 195, 220, 0.45); --hero-em: #a8dcea;
  --bg: #f5fbfd; --bg-2: #ecf7fa; --surface: #ffffff; --surface-2: #fcfefe; --surface-3: #eff9fb; --line: #e4f4f9; --line-2: #cfecf4; --ink: #06121a; --ink-2: #2a4453; --ink-3: #637888; --glass: rgba(246, 251, 253, 0.86);
  --shadow-1: 0 1px 2px rgba(3, 21, 32, 0.06), 0 1px 1px rgba(3, 21, 32, 0.03); --shadow-2: 0 2px 5px rgba(3, 21, 32, 0.05), 0 18px 40px -20px rgba(10, 74, 102, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(27, 163, 201, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(141, 172, 170, 0.12), transparent 58%);
  --tile-1: #dbf0f6; --tile-1-ink: #11657d; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="lab"][data-theme="dark"] { --bg: #040c13; --bg-2: #030e16; --surface: #0b161f; --surface-2: #0b1a24; --surface-3: #0b1d29; --line: #0b2230; --line-2: #0b2938; --ink: #e8f6fa; --ink-2: #8db6c9; --ink-3: #638b9f; --glass: rgba(11, 22, 31, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(27, 163, 201, 0.13), transparent 60%); }
html[data-look="imaging"] { --hero-1: #08091f; --hero-2: #252a6e; --hero-3: #5b62d9; --hero-glow: rgba(148, 153, 230, 0.45); --hero-em: #c1c3f1;
  --bg: #f8f8fd; --bg-2: #f1f2fc; --surface: #ffffff; --surface-2: #fdfdfe; --surface-3: #f4f4fc; --line: #ebecfa; --line-2: #dddef7; --ink: #090a19; --ink-2: #343856; --ink-3: #6a6f8a; --glass: rgba(248, 249, 253, 0.86);
  --shadow-1: 0 1px 2px rgba(8, 9, 31, 0.06), 0 1px 1px rgba(8, 9, 31, 0.03); --shadow-2: 0 2px 5px rgba(8, 9, 31, 0.05), 0 18px 40px -20px rgba(37, 42, 110, 0.3);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(91, 98, 217, 0.14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(173, 139, 178, 0.12), transparent 58%);
  --tile-1: #e5e6f9; --tile-1-ink: #383d87; --tile-2: #fde6d9; --tile-2-ink: #ae4a22; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #dcf3ea; --tile-4-ink: #12795f; }
html[data-look="imaging"][data-theme="dark"] { --bg: #060713; --bg-2: #060716; --surface: #0f1120; --surface-2: #111325; --surface-3: #12142b; --line: #141732; --line-2: #171a3c; --ink: #efeffb; --ink-2: #9fa4cd; --ink-3: #737aa3; --glass: rgba(15, 17, 32, 0.84); --art: radial-gradient(900px 480px at 108% -8%, rgba(91, 98, 217, 0.13), transparent 60%); }
/* @depts:end */
html[data-look][data-theme="dark"] { --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .7);
  --tile-1: var(--accent-soft); --tile-1-ink: var(--accent-2); --tile-2: rgba(240, 165, 74, .14); --tile-2-ink: #f2b46a; --tile-3: rgba(155, 124, 255, .15); --tile-3-ink: #b9a2ff; --tile-4: rgba(91, 139, 255, .15); --tile-4-ink: #8fb0ff; }
/* gym, dark: tiles alternate the accent and a quiet white (black-and-accent, like the landing page); the demo bar wears the look */
html[data-look^="gym-"][data-theme="dark"] { --tile-1: var(--accent-soft); --tile-1-ink: var(--accent-2); --tile-2: rgba(255, 255, 255, .07); --tile-2-ink: var(--ink); --tile-3: var(--accent-soft); --tile-3-ink: var(--accent-2); --tile-4: rgba(255, 255, 255, .07); --tile-4-ink: var(--ink); }
html[data-look^="gym-"] { --cta-bg: radial-gradient(120% 160% at 0% 0%, var(--hero-tint), transparent 55%), linear-gradient(120deg, #0d0b0a, #1c1815); --cta-line: rgba(255, 255, 255, .09); }
html[data-look^="gym-"] .demo-cta-mark { background: linear-gradient(135deg, var(--hero-3), var(--hero-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px -6px var(--hero-tint); }

/* ---------- dental pack: clinic details (its colours come from the look) ---------- */
html[data-pack="dental"] .side { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
html[data-pack="dental"] .page-head h2 { letter-spacing: -.02em; }
html[data-pack="dental"] .card { border-radius: 22px; }
html[data-pack="dental"] .kpi.hero { background: radial-gradient(120% 140% at 100% 0%, var(--hero-glow, rgba(33, 179, 198, .55)), transparent 55%), linear-gradient(135deg, var(--hero-1, #062f3b) 0%, var(--hero-2, #0a7f99) 70%, var(--hero-3, #21b3c6) 100%); box-shadow: 0 24px 50px -24px var(--hero-2, rgba(6, 93, 114, .75)); }
html[data-pack="dental"] .kpi.hero::before { display: none; }
html[data-pack="dental"] .kpi.hero::after { content: ""; position: absolute; right: -6px; top: -16px; width: 132px; height: 156px; opacity: .13; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cpath fill='%23fff' d='M20 3c-9 0-15 6-15 15 0 7 3 10 4 18 .5 5 2 8 4.5 8 3 0 3.8-6 6.5-6s3.5 6 6.5 6c2.5 0 4-3 4.5-8 1-8 4-11 4-18 0-9-6-15-15-15z'/%3E%3C/svg%3E") no-repeat center / contain; }
html[data-pack="dental"] .card.built { border-color: var(--accent-soft-2); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
html[data-pack="dental"] .demo-cta-mark, html[data-pack="dental"] .splash .logo { background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); }
html[data-pack="dental"] .avatar.lg { border-radius: 20px; }
a.kpi { text-decoration: none; color: inherit; }

/* ---------- odontogram (tooth chart) ---------- */
.odont { padding: 10px 0 4px; overflow-x: auto; scrollbar-width: none; }
.odont::-webkit-scrollbar { display: none; }
.odont-lbl { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 0 8px; min-width: 330px; }
.arch { display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 8px 0; min-width: 330px; }
.arch.lower { align-items: flex-start; }
.arch .quad { display: flex; gap: 3px; }
.arch .mid { width: 2px; height: 40px; background: var(--line-2); border-radius: 2px; margin: 0 4px; align-self: center; }
.tooth { width: 34px; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; padding: 3px 0; border-radius: 10px; transition: transform var(--t-fast), background var(--t-fast); cursor: pointer; }
.tooth:hover { background: var(--surface-2); transform: translateY(-2px); }
.tooth svg { width: 30px; height: 36px; overflow: visible; }
.tooth.molar svg { width: 34px; }
.tooth svg path { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.6; transition: fill var(--t-fast), stroke var(--t-fast); }
:root[data-theme="dark"] .tooth svg path { fill: var(--surface-3); }
.arch.lower .tooth { flex-direction: column-reverse; }
.arch.lower .tooth svg { transform: scaleY(-1); }
.tooth small { font-size: 10.5px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; line-height: 1; }
.tooth i { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 800; color: #fff; pointer-events: none; line-height: 1; }
.arch.lower .tooth i { top: auto; bottom: 15px; }
.tooth.cond-caries svg path { fill: #e0493f; stroke: #b8362d; }
.tooth.cond-filled svg path { fill: #2d8fe0; stroke: #1c6cb0; }
.tooth.cond-rct svg path { fill: #7a4ff0; stroke: #5a35c4; }
.tooth.cond-crown svg path { fill: #d9a21b; stroke: #a87a0c; }
.tooth.cond-bridge svg path { fill: #f0c75e; stroke: #a87a0c; stroke-dasharray: 3 2; }
.tooth.cond-implant svg path { fill: #15a99a; stroke: #0d7f73; }
.tooth.cond-veneer svg path { fill: #e86aa6; stroke: #bf3f7d; }
.tooth.cond-extract svg path { fill: #f08a2e; stroke: #c26413; }
.tooth.cond-missing svg path { fill: transparent; stroke: var(--line-2); stroke-dasharray: 3 3; }
.tooth.cond-missing small { text-decoration: line-through; }
.tooth.cond-mobile svg path { fill: #f3cf3a; stroke: #b79a10; }
.tooth.cond-mobile i, .tooth.cond-bridge i { color: #4a3400; }
.tooth.cond-watch svg path { fill: var(--surface-3); stroke: var(--ink-3); }
.tooth.cond-watch i { color: var(--ink-2); }
.tooth.cond-rct_need svg path { fill: #c9b8ff; stroke: #7a4ff0; stroke-dasharray: 3 2; } .tooth.cond-rct_need i { color: #3b1d8f; }
.tooth.cond-fracture svg path { fill: #fb923c; stroke: #c2410c; }
.tooth.cond-abscess svg path { fill: #be123c; stroke: #881337; }
.tooth.cond-root svg path { fill: #a16207; stroke: #713f12; }
.tooth.cond-impacted svg path { fill: #a3b1c4; stroke: #475569; stroke-dasharray: 3 2; } .tooth.cond-impacted i { color: #1e293b; }
.sw.cond-rct_need { background: #c9b8ff; border-color: #7a4ff0; } .sw.cond-fracture { background: #fb923c; border-color: #fb923c; } .sw.cond-abscess { background: #be123c; border-color: #be123c; } .sw.cond-root { background: #a16207; border-color: #a16207; } .sw.cond-impacted { background: #a3b1c4; border-color: #475569; }
.tooth-dot.cond-rct_need { background: #7a4ff0; } .tooth-dot.cond-fracture { background: #ea7a22; } .tooth-dot.cond-abscess { background: #be123c; } .tooth-dot.cond-root { background: #a16207; } .tooth-dot.cond-impacted { background: #64748b; }
.cond-opt .sw.cond-rct_need { color: #3b1d8f; } .cond-opt .sw.cond-impacted { color: #1e293b; }
.tooth-hist .row { padding: 8px 2px; } .tooth-hist .row .t, .tooth-hist .row .s { white-space: normal; }
.sw { display: inline-grid; place-items: center; width: 12px; height: 12px; border-radius: 4px; background: var(--surface-3); border: 1px solid var(--line-2); margin-right: 6px; vertical-align: -1px; }
.sw.cond-caries { background: #e0493f; border-color: #e0493f; } .sw.cond-filled { background: #2d8fe0; border-color: #2d8fe0; } .sw.cond-rct { background: #7a4ff0; border-color: #7a4ff0; } .sw.cond-crown { background: #d9a21b; border-color: #d9a21b; } .sw.cond-bridge { background: #f0c75e; border-color: #d9a21b; } .sw.cond-implant { background: #15a99a; border-color: #15a99a; } .sw.cond-veneer { background: #e86aa6; border-color: #e86aa6; } .sw.cond-extract { background: #f08a2e; border-color: #f08a2e; } .sw.cond-missing { background: transparent; border-style: dashed; } .sw.cond-mobile { background: #f3cf3a; border-color: #f3cf3a; } .sw.cond-watch { background: var(--surface-3); }
.odont-legend { margin-top: 12px; gap: 10px 14px; }
.odont-list .row .t, .odont-list .row .s { white-space: normal; }
.tooth-dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: 0 0 auto; background: var(--ink-3); font-variant-numeric: tabular-nums; }
.tooth-dot.cond-caries { background: #e0493f; } .tooth-dot.cond-filled { background: #2d8fe0; } .tooth-dot.cond-rct { background: #7a4ff0; } .tooth-dot.cond-crown, .tooth-dot.cond-bridge { background: #d9a21b; } .tooth-dot.cond-implant { background: #15a99a; } .tooth-dot.cond-veneer { background: #e86aa6; } .tooth-dot.cond-extract { background: #f08a2e; } .tooth-dot.cond-mobile { background: #b79a10; }
.cond-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) { .cond-grid { grid-template-columns: repeat(3, 1fr); } }
.cond-opt { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; align-items: center; text-align: left; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); transition: all var(--t-fast); cursor: pointer; }
.cond-opt .sw { grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; margin: 0; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; }
.cond-opt .sw.cond-mobile, .cond-opt .sw.cond-bridge { color: #4a3400; } .cond-opt .sw.cond-watch, .cond-opt .sw.cond-healthy, .cond-opt .sw.cond-missing { color: var(--ink-2); }
.cond-opt b { font-size: 13.5px; line-height: 1.2; } .cond-opt small { font-size: 11.5px; color: var(--ink-3); line-height: 1.25; }
.cond-opt.on { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 520px) {
  .tooth { width: 18px; padding: 2px 0; border-radius: 6px; } .tooth svg { width: 17px; height: 21px; } .tooth.molar svg { width: 18px; } .tooth small { font-size: 8px; } .tooth i { font-size: 7.5px; top: 8px; } .arch.lower .tooth i { bottom: 8px; }
  .arch { gap: 2px; min-width: 0; } .arch .quad { gap: 1px; } .arch .mid { margin: 0 2px; height: 28px; } .odont-lbl { min-width: 0; }
  .odont-list .row .t, .odont-list .row .s { white-space: normal; }
}

/* ---------- clinic home (clinic + dental packs) ---------- */
:root { --ch-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M18 4h12v14h14v12H30v14H18V30H4V18h14z'/%3E%3C/svg%3E"); }
html[data-pack="dental"] { --ch-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cpath d='M20 3c-9 0-15 6-15 15 0 7 3 10 4 18 .5 5 2 8 4.5 8 3 0 3.8-6 6.5-6s3.5 6 6.5 6c2.5 0 4-3 4.5-8 1-8 4-11 4-18 0-9-6-15-15-15z'/%3E%3C/svg%3E"); }
.ch-top, .ch-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.ch-top > *, .ch-grid > * { min-width: 0; }
@media (min-width: 1024px) { .ch-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; } }
.ch-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 20px 20px 18px; background: linear-gradient(158deg, var(--surface) 0%, var(--surface-2) 46%, var(--accent-soft) 100%); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.ch-hero::after { content: ""; position: absolute; right: -34px; top: -26px; width: 200px; height: 232px; opacity: .075; pointer-events: none; background: var(--accent); -webkit-mask: var(--ch-mark) no-repeat center / contain; mask: var(--ch-mark) no-repeat center / contain; }
.ch-hero::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -70px; height: 140px; border-radius: 50%; border-top: 1.5px solid var(--accent-soft-2); opacity: .7; pointer-events: none; }
.ch-hero > * { position: relative; z-index: 1; }
.ch-id { display: flex; align-items: center; gap: 12px; }
.ch-logo { width: 48px; height: 48px; border-radius: 15px; overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--on-accent); font-family: var(--font-display); font-size: 24px; box-shadow: 0 12px 24px -12px var(--accent-deep), 0 0 0 4px var(--surface); }
.ch-logo img { width: 100%; height: 100%; object-fit: cover; }
.ch-id b { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.ch-id small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.ch-greet { font-family: var(--font-display); font-weight: 400; font-size: 33px; line-height: 1.04; letter-spacing: -.012em; margin-top: 18px; text-wrap: balance; }
.ch-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font-size: 13px; color: var(--ink-3); font-weight: 550; }
.opd { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font-weight: 650; font-size: 12.5px; }
.opd i { width: 8px; height: 8px; border-radius: 99px; background: var(--ink-3); }
.opd.on { background: var(--pos-soft); color: var(--pos); }
.opd.on i { background: var(--pos); animation: live-g 1.8s infinite; }
@keyframes live-g { 0% { box-shadow: 0 0 0 0 rgba(29, 158, 107, .45) } 70% { box-shadow: 0 0 0 8px rgba(29, 158, 107, 0) } 100% { box-shadow: 0 0 0 0 rgba(29, 158, 107, 0) } }
.ch-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ch-stats > div { padding: 10px 12px; border-left: 1px solid var(--line); min-width: 0; }
.ch-stats > div:first-child { border-left: 0; }
.ch-stats b { display: block; font-size: 23px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.ch-stats small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ch-chair { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: flex; flex-direction: column; }
.ch-chair::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.ch-chair.free::before { background: var(--line-2); }
.ch-chair-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-deep); }
:root[data-theme="dark"] .live { color: var(--accent-2); }
.live i { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); animation: live-a 1.8s infinite; }
@keyframes live-a { 0% { box-shadow: 0 0 0 0 var(--accent-soft-2) } 70% { box-shadow: 0 0 0 9px transparent } 100% { box-shadow: 0 0 0 0 transparent } }
.live.idle { color: var(--ink-3); } .live.idle i { background: var(--ink-3); animation: none; }
.ch-pt { display: flex; align-items: center; gap: 12px; }
.ch-pt .body { min-width: 0; flex: 1; }
.ch-pt b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.ch-pt small { display: block; font-size: 12.5px; color: var(--ink-3); }
.ch-pt small.up { font-weight: 650; color: var(--accent-deep); }
:root[data-theme="dark"] .ch-pt small.up { color: var(--accent-2); }
.ch-pt .alert { color: var(--neg); font-weight: 600; }
.ch-tx, .ch-plan { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.ch-tx .ico, .ch-plan .ico { color: var(--accent); margin-top: 2px; }
.ch-tx small { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.ch-plan { margin-top: 6px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.ch-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.ch-acts .grow { flex: 1 1 auto; }

.mini-arch { position: relative; margin-top: 12px; padding: 22px 8px 20px; border-radius: 18px; background: radial-gradient(90% 120% at 50% 50%, var(--surface), var(--accent-soft)); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ma-row { display: flex; gap: 2px; align-items: flex-end; }
.ma-row.lower { align-items: flex-start; }
.mt { width: 15px; display: block; }
.mt.molar { width: 17px; }
.mt svg { width: 100%; height: auto; overflow: visible; display: block; }
.mt path { fill: #fff; stroke: var(--line-2); stroke-width: 2.6; }
:root[data-theme="dark"] .mt path { fill: var(--surface-3); }
.ma-row.lower .mt svg { transform: scaleY(-1); }
.mt.cond-caries path { fill: #e0493f; stroke: #b8362d; } .mt.cond-filled path { fill: #2d8fe0; stroke: #1c6cb0; } .mt.cond-rct path { fill: #7a4ff0; stroke: #5a35c4; }
.mt.cond-crown path, .mt.cond-bridge path { fill: #d9a21b; stroke: #a87a0c; } .mt.cond-implant path { fill: #15a99a; stroke: #0d7f73; } .mt.cond-veneer path { fill: #e86aa6; stroke: #bf3f7d; }
.mt.cond-extract path { fill: #f08a2e; stroke: #c26413; } .mt.cond-missing path { fill: transparent; stroke-dasharray: 3 3; } .mt.cond-mobile path { fill: #f3cf3a; stroke: #b79a10; }
.mt.focus path { fill: var(--accent); stroke: var(--accent-deep); }
.mt.focus { filter: drop-shadow(0 0 5px var(--accent-2)); animation: tooth-glow 1.8s ease-in-out infinite; }
@keyframes tooth-glow { 50% { filter: drop-shadow(0 0 1px var(--accent-2)); } }
.ma-tag { position: absolute; right: 10px; top: 8px; font-size: 11px; font-weight: 700; color: var(--accent-deep); background: var(--surface); border: 1px solid var(--accent-soft-2); border-radius: 99px; padding: 2px 9px; }
:root[data-theme="dark"] .ma-tag { color: var(--accent-2); }

.ch-req { display: flex; align-items: center; gap: 10px; margin-top: var(--s-3); padding: 12px 14px; border-radius: 16px; background: var(--warn-soft); color: var(--ink); font-size: 13.5px; }
.ch-req .ico { color: var(--warn); }
.ch-req span { flex: 1; }
.ch-grid { gap: var(--s-5); margin-top: var(--s-6); }
@media (min-width: 1024px) { .ch-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.ch-q .row { gap: 10px; padding: 11px 14px; }
.ch-q .row .t { color: var(--ink); }
.tok { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 750; background: var(--surface-3); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ch-q .time { width: 44px; }
.q-arrived { background: linear-gradient(90deg, var(--accent-soft), transparent 75%); }
.q-arrived .tok { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 14px -6px var(--accent-deep); }
.q-completed .t, .q-completed .time { color: var(--ink-3) !important; }
.q-completed .tok { background: var(--pos-soft); color: var(--pos); }
.q-no_show { opacity: .55; }
.ch-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 14px 6px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-align: center; font-size: 12.5px; font-weight: 650; line-height: 1.25; color: var(--ink); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-fast); }
.qa:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--accent-soft-2); }
.qa:active { transform: scale(.97); }
.qa .qi { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: var(--tile-1); color: var(--tile-1-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.qa:nth-child(4n+2) .qi { background: var(--tile-2); color: var(--tile-2-ink); }
.qa:nth-child(4n+3) .qi { background: var(--tile-3); color: var(--tile-3-ink); }
.qa:nth-child(4n+4) .qi { background: var(--tile-4); color: var(--tile-4-ink); }
:root[data-theme="dark"] .qa .qi { box-shadow: none; }
.qa .qi .ico { width: 22px; height: 22px; }
.ch-money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ch-m { position: relative; overflow: hidden; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; min-height: 108px; text-decoration: none; color: inherit; }
.ch-m .lbl { font-size: 12.5px; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.ch-m .lbl .ico { width: 15px; height: 15px; }
.ch-m b { font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.ch-m.due b { color: var(--neg); }
.ch-m .sub { font-size: 12px; color: var(--ink-3); margin-top: auto; position: relative; z-index: 1; }
.ch-m .spark { position: absolute; right: 8px; bottom: 26px; width: 44%; height: 34px; color: var(--accent); opacity: .8; }
.ch-m .spark svg { width: 100%; height: 100%; }
@media (max-width: 380px) { .ch-greet { font-size: 29px; } .ch-stats b { font-size: 21px; } .qa { min-height: 88px; font-size: 12px; } }

/* topbar: dues dot + demo chip */
.nb-dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 99px; background: var(--neg); border: 2px solid var(--surface); }
.demo-chip { flex: 0 0 auto; height: 22px; padding: 0 8px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-soft-2); }
:root[data-theme="dark"] .demo-chip { color: var(--accent-2); }
@media (min-width: 1024px) { .demo-chip { display: none; } }

/* ---------- demo only: guided tour + WhatsApp preview ---------- */
.tour-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.tour-blk i { position: fixed; pointer-events: auto; }
.tour-ring { position: fixed; left: 0; top: 0; border-radius: 16px; opacity: 0; pointer-events: none; box-shadow: 0 0 0 200vmax rgba(3, 17, 24, .6), 0 0 0 3px var(--accent-2), 0 0 28px 6px rgba(33, 179, 198, .55); transition: transform .3s var(--ease-out), width .3s var(--ease-out), height .3s var(--ease-out), opacity .2s; }
.tour-ring::after { content: ""; position: absolute; inset: -7px; border-radius: 22px; border: 2px solid var(--accent-2); animation: ring-pulse 1.6s var(--ease-out) infinite; }
@keyframes ring-pulse { 0% { opacity: .9; transform: scale(.97) } 100% { opacity: 0; transform: scale(1.07) } }
.tour-tip { position: fixed; left: 0; top: 0; opacity: 0; pointer-events: auto; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 14px 16px 12px; box-shadow: 0 28px 70px -24px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); transition: transform .3s var(--ease-out), opacity .2s; }
.tour-tip-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); }
:root[data-theme="dark"] .tour-tip-h { color: var(--accent-2); }
.tour-ico { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); flex: 0 0 auto; }
.tour-tip p { font-size: 15px; line-height: 1.45; margin-top: 8px; font-weight: 520; }
.tour-tip-f { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.tour-dots { display: flex; gap: 5px; margin-right: auto; }
.tour-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: width var(--t-med); }
.tour-dots i.d { background: var(--accent-soft-2); } .tour-dots i.on { width: 18px; background: var(--accent); }
.tour-skip { font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 6px 4px; }
.tour-tap { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--accent-deep); }
:root[data-theme="dark"] .tour-tap { color: var(--accent-2); }
.tour-tap i { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); animation: live-a 1.4s infinite; }
.tour-pill { position: fixed; z-index: 28; left: 12px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + var(--cta-h) + 18px); height: 42px; padding: 0 15px 0 6px; border-radius: 99px; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: 13px; font-weight: 650; color: var(--ink); animation: cta-in var(--t-slow) var(--ease-out) both; }
.tour-pill .tp-ico { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); box-shadow: 0 6px 14px -6px var(--accent-deep); }
@media (min-width: 1024px) { .tour-pill { left: auto; right: 32px; bottom: calc(var(--cta-h) + 22px); } }

.tw-bg { position: fixed; inset: 0; z-index: 85; background: rgba(3, 17, 24, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade var(--t-med) both; }
.tw { position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 12px); overflow: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 28px 28px 0 0; padding: 22px 20px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-3); animation: up var(--t-slow) var(--ease-out) both; }
@media (min-width: 600px) { .tw-bg { align-items: center; padding: 24px; } .tw { border-radius: 28px; padding: 26px 26px 18px; animation: pop var(--t-slow) var(--ease-out) both; } }
.tw::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 170px; background: radial-gradient(120% 100% at 50% 0%, var(--accent-soft), transparent 72%); pointer-events: none; }
.tw > * { position: relative; }
.tw-hero { display: flex; align-items: center; justify-content: space-between; }
.tw-logo { width: 58px; height: 58px; border-radius: 19px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; font-family: var(--font-display); font-size: 28px; box-shadow: 0 16px 32px -14px var(--accent-deep), 0 0 0 5px var(--surface); }
.tw-logo img { width: 100%; height: 100%; object-fit: cover; }
.tw-live { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 650; color: var(--ink-2); }
.tw-live i { width: 7px; height: 7px; border-radius: 99px; background: var(--pos); animation: live-g 1.8s infinite; }
.tw h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -.012em; margin-top: 16px; text-wrap: balance; }
.tw-sub { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; line-height: 1.5; }
.tw-list { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 16px; }
.tw-task { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.tw-task:hover { border-color: var(--accent-soft-2); background: var(--accent-soft); }
.tw-task:active { transform: scale(.99); }
.tw-n { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; font-weight: 750; font-size: 13px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.tw-task.ok .tw-n { background: var(--pos); border-color: var(--pos); color: #fff; }
.tw-task.ok .tw-n .ico { width: 16px; height: 16px; stroke-width: 3; }
.tw-t { flex: 1; min-width: 0; }
.tw-t b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.tw-t small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.tw-task.ok .tw-t small { color: var(--pos); font-weight: 600; }
.tw-i { color: var(--tile-1-ink); }
.tw-task:nth-child(4n+2) .tw-i { color: var(--tile-2-ink); } .tw-task:nth-child(4n+3) .tw-i { color: var(--tile-3-ink); } .tw-task:nth-child(4n+4) .tw-i { color: var(--tile-4-ink); }
.tw-go { height: 52px; font-size: 15.5px; border-radius: 15px; }
.tw .btn-block + .btn-block { margin-top: 8px; }
.tw-foot { margin-top: 10px; text-align: center; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.tw-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.tw-fin { text-align: center; }
.tw-seal { width: 66px; height: 66px; border-radius: 22px; display: grid; place-items: center; margin: 4px auto 0; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); box-shadow: 0 18px 40px -16px var(--accent-deep); }
.tw-seal .ico { width: 32px; height: 32px; }
.tw-price { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; margin-top: 18px; text-align: left; }
.tw-price > div { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.tw-price .tp-main { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 10px 24px -16px var(--accent-deep); }
.tw-price small { display: block; font-size: 11px; font-weight: 750; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; }
.tw-price b { display: block; font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.tw-price span { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.tw-final { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin: 12px 0 14px; }
.tw-final .ico { color: var(--pos); }

.wa-bg { position: fixed; inset: 0; z-index: 90; background: rgba(3, 17, 24, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade var(--t-med) both; }
.wa-card { width: 100%; max-width: 420px; max-height: calc(100dvh - 12px); overflow: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 26px 26px 0 0; padding: 18px 18px calc(16px + env(safe-area-inset-bottom, 0px)); animation: up var(--t-slow) var(--ease-out) both; }
@media (min-width: 600px) { .wa-bg { align-items: center; padding: 24px; } .wa-card { border-radius: 26px; animation: pop var(--t-slow) var(--ease-out) both; } }
.wa-cap { display: flex; align-items: center; gap: 12px; }
.wa-badge { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #25d366; color: #fff; flex: 0 0 auto; box-shadow: 0 10px 20px -10px #128c4a; }
.wa-badge .ico { width: 22px; height: 22px; }
.wa-cap b { display: block; font-size: 16px; font-weight: 650; line-height: 1.3; }
.wa-cap small { display: block; font-size: 12.5px; color: var(--ink-3); }
.wa-phone { margin-top: 14px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #075e54; color: #fff; }
.wa-av { width: 34px; height: 34px; border-radius: 99px; overflow: hidden; background: #fff; display: grid; place-items: center; color: #075e54; font-weight: 700; flex: 0 0 auto; }
.wa-av img { width: 100%; height: 100%; object-fit: cover; }
.wa-who { flex: 1; min-width: 0; }
.wa-who b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-who small { display: block; font-size: 11.5px; opacity: .8; }
.wa-chat { background: #efeae2; background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1.3px); background-size: 14px 14px; padding: 12px 12px 16px; min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wa-day { align-self: center; font-size: 11px; font-weight: 600; color: #54656f; background: #fff; border-radius: 8px; padding: 3px 9px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-bubble { position: relative; max-width: 90%; background: #fff; color: #111b21; border-radius: 0 12px 12px 12px; padding: 8px 10px 5px; font-size: 14px; line-height: 1.42; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.wa-bubble::before { content: ""; position: absolute; left: -8px; top: 0; border-top: 10px solid #fff; border-left: 8px solid transparent; }
.wa-link { color: #027eb5; text-decoration: underline; }
.wa-meta { display: block; text-align: right; font-size: 11px; color: #667781; margin-top: 2px; }
.wa-note { font-size: 13px; color: var(--ink-2); margin: 12px 2px 14px; line-height: 1.5; }

/* ---------- welcome cover: the business's own front door (demo welcome, client welcome, PIN lock, connect) ----------
   Logo, name, tagline and slogan from the business profile; the hero shows the business's own cover photo, else the look's
   illustration. Pastel canvas = the look's --art over --bg. Phones: hero on top, logo overlapping it; desktop: two columns. */
.cover { position: fixed; inset: 0; z-index: 92; overflow-y: auto; overscroll-behavior: contain; background: var(--art), var(--bg); color: var(--ink); outline: none; }
.cover.leaving { animation: cv-out .26s var(--ease) both; pointer-events: none; }
@keyframes cv-out { to { opacity: 0; transform: scale(1.015); } }
.cv-in { min-height: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(16px + env(safe-area-inset-bottom, 0px)); }
.cv-hero { position: relative; flex: 0 0 auto; height: clamp(176px, 34dvh, 300px); border-radius: 30px; overflow: hidden; background: var(--surface-3); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 26px 50px -30px rgba(16, 24, 40, .38); animation: cv-hero .8s var(--ease-out) both; }
@keyframes cv-hero { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
.cv-art, .cv-art svg, .cv-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cv-photo { object-fit: cover; }
.cv-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(255, 255, 255, .28), transparent); pointer-events: none; }
:root[data-theme="dark"] .cv-art { filter: brightness(.78) saturate(.9); }
:root[data-theme="dark"] .cv-hero::after { background: linear-gradient(to top, rgba(0, 0, 0, .25), transparent); }
.cv-live { position: absolute; z-index: 1; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .9); font-size: 12px; font-weight: 650; color: #1d2a26; box-shadow: 0 6px 16px -10px rgba(16, 24, 40, .45); }
.cv-live i { width: 7px; height: 7px; border-radius: 99px; background: #1d9e6b; animation: live-g 1.8s infinite; }
.cv-body { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; margin-top: -42px; }
.cv-logo { width: 84px; height: 84px; border-radius: 26px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--on-accent); font-family: var(--font-display); font-size: 40px; box-shadow: 0 0 0 6px var(--bg), 0 20px 36px -16px var(--accent-deep); animation: cv-pop .62s .12s cubic-bezier(.34, 1.56, .64, 1) both; }
.cv-logo img { width: 100%; height: 100%; object-fit: contain; }
@keyframes cv-pop { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }
.cv-eyebrow { margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
:root[data-theme="dark"] .cv-eyebrow { color: var(--accent-2); }
.cv-name { font-family: var(--font-display); font-weight: 400; font-size: 33px; line-height: 1.05; letter-spacing: -.012em; margin-top: 6px; text-wrap: balance; max-width: 360px; }
.cv-sub { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; max-width: 340px; text-wrap: pretty; }
.cv-eyebrow, .cv-name, .cv-sub { animation: cv-rise .55s var(--ease-out) both; }
.cv-eyebrow { animation-delay: .2s; } .cv-name { animation-delay: .26s; } .cv-sub { animation-delay: .32s; }
@keyframes cv-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cv-tiles { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.cv-tile { position: relative; min-width: 0; min-height: 94px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 12px 4px 10px; border-radius: 19px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: 11.5px; font-weight: 650; line-height: 1.22; color: var(--ink); text-align: center; animation: cv-rise .5s var(--ease-out) both; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-fast); }
.cv-tile:nth-child(1) { animation-delay: .38s; } .cv-tile:nth-child(2) { animation-delay: .44s; } .cv-tile:nth-child(3) { animation-delay: .5s; } .cv-tile:nth-child(4) { animation-delay: .56s; }
.cv-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.cv-tile:active { transform: scale(.96); }
.cv-tile .ti { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--tile-1); color: var(--tile-1-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.cv-tile:nth-child(2) .ti { background: var(--tile-2); color: var(--tile-2-ink); }
.cv-tile:nth-child(3) .ti { background: var(--tile-3); color: var(--tile-3-ink); }
.cv-tile:nth-child(4) .ti { background: var(--tile-4); color: var(--tile-4-ink); }
:root[data-theme="dark"] .cv-tile .ti { box-shadow: none; }
.cv-tile .ti .ico { width: 21px; height: 21px; }
.cv-tile .tl { display: block; overflow-wrap: break-word; hyphens: auto; }
.cv-tile .ok { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; background: var(--pos); color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.cv-tile .ok .ico { width: 11px; height: 11px; stroke-width: 3.2; }
.cv-acts { width: 100%; margin-top: 16px; animation: cv-rise .5s .6s var(--ease-out) both; }
.cv-go { height: 54px; border-radius: 16px; font-size: 15.5px; box-shadow: 0 16px 30px -16px var(--accent-deep); }
.cv-acts .btn-block + .btn-block { margin-top: 6px; }
.cv-slogan { margin-top: auto; padding-top: 18px; width: 100%; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.2; color: var(--ink-2); animation: cv-rise .5s .7s var(--ease-out) both; }
.cv-slogan::before, .cv-slogan::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.cv-slogan::after { background: linear-gradient(90deg, var(--line-2), transparent); }
.cv-slogan span { flex: 0 1 auto; max-width: 78%; }
.cv-note { margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); max-width: 320px; animation: cv-rise .5s .76s var(--ease-out) both; }
.cv-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.cv-slogan + .cv-note { margin-top: 6px; }
/* PIN lock + connect: a shorter hero, the form in place of the tiles */
.cover.compact .cv-hero { height: clamp(132px, 24dvh, 220px); }
.cover.compact .cv-name { font-size: 29px; }
.cv-form { width: 100%; max-width: 340px; margin-top: 18px; animation: cv-rise .5s .4s var(--ease-out) both; }
.cv-form .dots { margin: 4px 0 20px; }
.cv-form .pinpad { grid-template-columns: repeat(3, minmax(0, 76px)); gap: 10px; }
.cv-form .pinpad button { height: 62px; border-radius: 20px; box-shadow: var(--shadow-1); }
.cv-form .help { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
@media (max-height: 640px) { .cv-hero { height: clamp(150px, 30dvh, 220px); } .cv-name { font-size: 29px; } .cv-tile { min-height: 86px; } .cv-form .pinpad button { height: 54px; } }
@media (max-width: 359px) { .cv-tiles { gap: 6px; } .cv-tile { font-size: 11px; padding: 10px 2px 9px; } .cv-tile .ti { width: 38px; height: 38px; } .cv-name { font-size: 29px; } }
@media (min-width: 900px) {
  .cv-in { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 28px 36px; }
  .cv-hero, .cover.compact .cv-hero { height: auto; aspect-ratio: 3 / 2; border-radius: 36px; }
  .cv-body { margin-top: 0; padding: 24px 0; }
  .cv-logo { box-shadow: 0 0 0 6px var(--surface), 0 20px 36px -16px var(--accent-deep); }
  .cv-name { font-size: 40px; }
  .cv-slogan { margin-top: 26px; }
}
/* illustration motion: sparkles twinkle, toys float (all off with reduced motion) */
.cv-art .tw { transform-box: fill-box; transform-origin: center; animation: cv-tw 2.8s ease-in-out infinite; }
.cv-art .tw.d2 { animation-delay: .9s; } .cv-art .tw.d3 { animation-delay: 1.8s; }
@keyframes cv-tw { 0%, 100% { opacity: .95; transform: scale(1); } 50% { opacity: .3; transform: scale(.62); } }
.cv-art .fl { transform-box: fill-box; animation: cv-fl 5s ease-in-out infinite; }
.cv-art .fl.d2 { animation-delay: -2.5s; }
@keyframes cv-fl { 50% { transform: translateY(-5px); } }
/* settings: look picker */
.looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .looks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.look { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.look.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.look .lk-sw { height: 54px; border-radius: 11px; display: flex; align-items: flex-end; gap: 5px; padding: 8px; }
.look .lk-sw i { width: 16px; height: 16px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.look .lk-sw b { margin-left: auto; width: 22px; height: 22px; border-radius: 8px; }
.look .lk-t { font-size: 13.5px; font-weight: 650; line-height: 1.25; }
.look .lk-t small { display: block; font-size: 11.5px; font-weight: 550; color: var(--ink-3); margin-top: 1px; }
.look .lk-ok { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 99px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.look .lk-ok .ico { width: 12px; height: 12px; stroke-width: 3; }
.cover-thumb { width: 100%; max-width: 280px; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--surface-3); }
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- premium layer (21 Oct 2026): page motion, press states, top bar over the home header ---------- */
.page { animation: page-in .32s var(--ease-out) backwards; }   /* backwards, not both: a kept transform would trap fixed sheets inside the page */
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
.btn:active, .qa:active, .np-go:active, .card.hover:active, .row.click:active { transform: scale(.975); }
.btn { transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast); }
.demo-chip { cursor: pointer; gap: 5px; height: 26px; padding: 0 10px 0 8px; font-size: 11px; }
.demo-chip .ico { width: 13px; height: 13px; stroke-width: 2.2; }
@media (max-width: 1023px) {
  .topbar { transition: background var(--t-med), border-color var(--t-med), color var(--t-med), box-shadow var(--t-med); }
  .topbar.on-hero { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
  .topbar.on-hero .btn-quiet { color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .topbar.on-hero .btn-quiet:hover { background: rgba(255, 255, 255, .22); }
  .topbar.on-hero .demo-chip { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }
  .topbar.on-hero .nb-dot { border-color: transparent; }
  .topbar.on-hero .brand .logo { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
  .topbar h1 { transition: opacity var(--t-med); }
  .topbar.on-hero h1 { opacity: 0; }   /* the header below already says the clinic's name */
}

/* ---------- home header (clinic packs): the clinic's look, greeting, OPD status; the next-patient card overlaps it ---------- */
.hh { position: relative; isolation: isolate; overflow: hidden; color: #fff;
  margin: calc(-1 * (var(--nav-h) + env(safe-area-inset-top, 0px) + var(--s-5))) calc(-1 * var(--s-4)) 0;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 12px) 22px 100px; border-radius: 0 0 34px 34px;
  background: radial-gradient(120% 85% at 100% 0%, var(--hero-glow, rgba(255, 255, 255, .2)), transparent 55%), linear-gradient(165deg, var(--hero-1, #0a3a35) 0%, var(--hero-2, #0e7c72) 64%, var(--hero-3, #19a596) 125%); }
.hh-bg { position: absolute; inset: 0; z-index: -2; }
.hh-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; mix-blend-mode: luminosity; }
.hh::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 10% 110%, rgba(0, 0, 0, .28), transparent 70%); }
.hh-doc { position: absolute; z-index: 0; right: -12px; bottom: 0; height: 92%; max-height: 300px; width: auto; max-width: 62%; object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(to left, #000 58%, transparent 100%), linear-gradient(to top, transparent 0, #000 30%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 58%, transparent 100%), linear-gradient(to top, transparent 0, #000 30%); mask-composite: intersect; animation: hh-doc .9s .1s var(--ease-out) both; }
@keyframes hh-doc { from { opacity: 0; transform: translateX(16px); } }
.hh-in { position: relative; z-index: 1; }
.hh.has-doc .hh-in { max-width: 60%; }
.hh-hi { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.hh-name { font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 1; letter-spacing: -.015em; margin-top: 2px; text-wrap: balance; }
.hh-clinic { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .84); margin-top: 8px; line-height: 1.35; }
.hh-clinic span { font-weight: 500; color: rgba(255, 255, 255, .66); }
.hh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hh-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.hh-chip i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .55); }
.hh-chip.on i { background: #4ade80; animation: live-w 1.8s infinite; }
@keyframes live-w { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55) } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0) } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0) } }
.np { position: relative; z-index: 2; margin: -76px 2px 0; animation: np-in .6s .08s var(--ease-out) both; }
@keyframes np-in { from { opacity: 0; transform: translateY(18px); } }
.np::before, .np::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -9px; height: 40px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-2); opacity: .8; z-index: -1; }
.np::after { left: 34px; right: 34px; bottom: -18px; opacity: .5; z-index: -2; }
.np-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 16px 16px 14px; box-shadow: 0 30px 60px -30px rgba(10, 20, 40, .5), 0 3px 10px rgba(10, 20, 40, .06); }
.np-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.np-tok { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--surface-3); font-size: 12px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.np-tok .ico { width: 14px; height: 14px; }
.np-pt { display: flex; align-items: center; gap: 12px; }
.np-pt .body { flex: 1; min-width: 0; }
.np-pt b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.np-pt small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.np-pt .alert { color: var(--neg); font-weight: 600; }
.np-go { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 99px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink); transition: transform var(--t-fast), background var(--t-fast); }
.np-go:hover { background: var(--accent-soft); color: var(--accent-deep); }
.np-tx, .np-plan { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.np-tx .ico, .np-plan .ico { color: var(--accent); margin-top: 2px; }
.np-tx small { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.np-plan { margin-top: 6px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.np-acts { display: flex; gap: 8px; margin-top: 14px; }
.np-acts .btn { height: 46px; border-radius: 14px; }
.np-acts .btn-icon { width: 46px; }
.np-acts .grow { flex: 1 1 auto; }
.np .live { color: var(--accent-deep); }
:root[data-theme="dark"] .np .live { color: var(--accent-2); }
.np.free .live.idle { color: var(--ink-3); }
.ch .ch-req { margin-top: 26px; }
.ch .ch-grid { margin-top: 26px; }
.ch-seg { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--s-4)) 12px; padding: 2px var(--s-4); }
.ch-seg::-webkit-scrollbar { display: none; }
.ch-seg button { flex: 0 0 auto; height: 36px; padding: 0 6px 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: 13px; font-weight: 650; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.ch-seg button b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; background: var(--surface-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.ch-seg button.on { background: var(--hero-2, var(--accent)); border-color: var(--hero-2, var(--accent)); color: #fff; box-shadow: 0 10px 22px -12px var(--hero-2, var(--accent)); }
.ch-seg button.on b { background: rgba(255, 255, 255, .2); color: #fff; }
.ch-m b .num { font: inherit; }
@media (min-width: 1024px) {
  .hh { margin: 0; padding: 30px 34px 104px; border-radius: 30px; }
  .hh-name { font-size: 48px; }
  .np { margin: -80px 24px 0; max-width: 620px; }
  .ch-seg { margin: 0 0 12px; padding: 2px 0; }
}

/* ---------- floating dark tab bar (phones) ---------- */
:root { --nav-gap: 10px; --nav-bg: rgba(18, 20, 24, .94); --nav-ink: rgba(255, 255, 255, .58); }
.tabbar { left: 12px; right: 12px; bottom: calc(var(--nav-gap) + env(safe-area-inset-bottom, 0px)); height: var(--tab-h); padding: 0 6px; max-width: 520px; margin: 0 auto;
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, .06); background: var(--nav-bg); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .18); }
.tabbar a { color: var(--nav-ink); font-size: 10.5px; gap: 2px; }
.tabbar a .ti { width: 44px; height: 30px; border-radius: 12px; display: grid; place-items: center; transition: background var(--t-med), box-shadow var(--t-med); }
.tabbar a.on { color: #fff; }
.tabbar a.on .ti { background: var(--accent); box-shadow: 0 8px 18px -8px var(--accent); }
.tabbar a.on .ico { transform: none; }
.tabbar a .dot { top: 9px; right: calc(50% - 20px); border-color: #16181c; }
.main { padding-bottom: calc(var(--tab-h) + var(--nav-gap) + env(safe-area-inset-bottom, 0px) + var(--cta-h) + 20px); }
.fab { bottom: calc(var(--tab-h) + var(--nav-gap) + env(safe-area-inset-bottom, 0px) + var(--cta-h) + 12px); border-radius: 20px; }
.toasts { bottom: calc(var(--tab-h) + var(--nav-gap) + env(safe-area-inset-bottom, 0px) + var(--cta-h) + 14px); }
html.is-demo { --cta-h: 62px; }
.demo-cta { bottom: calc(var(--tab-h) + var(--nav-gap) + env(safe-area-inset-bottom, 0px) + 8px); border-radius: 18px; border-color: rgba(255, 255, 255, .14);
  background: radial-gradient(120% 160% at 0% 0%, var(--hero-glow, rgba(123, 97, 255, .3)), transparent 55%), linear-gradient(120deg, var(--hero-1, #101318), var(--hero-2, #1b2029)); }
@media (min-width: 1024px) { .main { padding-bottom: calc(32px + var(--cta-h)); } .demo-cta { bottom: 18px; } .toasts { bottom: calc(24px + var(--cta-h)); } html.is-demo { --cta-h: 78px; } }

/* ---------- demo launch screen (splash.js) ---------- */
.ls { position: fixed; inset: 0; z-index: 95; overflow: hidden; display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(110% 60% at 50% 28%, var(--hero-glow, rgba(255, 255, 255, .25)), transparent 62%), linear-gradient(180deg, var(--hero-2, #0e7c72) 0%, var(--hero-1, #0a3a35) 62%, #05070a 130%); animation: fade .35s both; }
.ls.leaving, .bd.leaving { animation: ls-out .26s var(--ease) both; pointer-events: none; }
@keyframes ls-out { to { opacity: 0; transform: scale(1.03); } }
.ls-hero { position: absolute; left: 0; right: 0; top: 0; height: 68%; --px: 0px; --py: 0px; }
.ls-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, transparent 22%, transparent 55%, var(--hero-1, #0a3a35) 100%); }
.ls-img { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); object-fit: cover; object-position: 50% 35%; transform: translate(var(--px), var(--py)); transition: transform .8s var(--ease-out); animation: ls-zoom 16s ease-in-out infinite alternate; }
@keyframes ls-zoom { from { scale: 1.02; } to { scale: 1.1; } }
.ls-medal { position: absolute; left: 50%; top: 50%; width: 176px; height: 176px; margin: -88px 0 0 -88px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .1) 58%), rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 80px 10px var(--hero-glow, rgba(255, 255, 255, .2)); transform: translate(var(--px), var(--py)); animation: ls-float 6s ease-in-out infinite; }
.ls-medal .ico { width: 86px; height: 86px; stroke-width: 1.3; color: #fff; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .3)); }
@keyframes ls-float { 50% { translate: 0 -8px; } }
.ls-orbit { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; pointer-events: none; animation: ls-spin 60s linear infinite; }
.ls-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); }
.ls-orbit i.r2 { inset: 34px; border-style: dashed; border-color: rgba(255, 255, 255, .12); }
.ls-o { position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); animation: ls-spin 60s linear infinite reverse; }
.ls-o .ico { width: 21px; height: 21px; color: #fff; }
.ls-o.o1 { left: 50%; top: 0; } .ls-o.o2 { left: 100%; top: 50%; } .ls-o.o3 { left: 50%; top: 100%; } .ls-o.o4 { left: 0; top: 50%; }
@keyframes ls-spin { to { rotate: 360deg; } }
.ls-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 0; animation: cv-rise .5s .1s var(--ease-out) both; }
.ls-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ls-brand b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.ls-logo { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); font-family: var(--font-display); font-size: 20px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.ls-logo img { width: 100%; height: 100%; object-fit: cover; }
.ls-live { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; font-weight: 650; }
.ls-live i { width: 7px; height: 7px; border-radius: 99px; background: #4ade80; animation: live-w 1.8s infinite; }
.ls-panel { position: relative; z-index: 2; margin-top: auto; padding: 0 22px calc(20px + env(safe-area-inset-bottom, 0px)); }
.ls-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); animation: cv-rise .55s .2s var(--ease-out) both; }
.ls-h { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -.018em; margin-top: 8px; text-wrap: balance; animation: cv-rise .6s .26s var(--ease-out) both; }
.ls-h em { font-style: italic; color: var(--hero-em, #ffd7c2); }
.ls-sub { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .8); margin-top: 12px; max-width: 360px; animation: cv-rise .6s .32s var(--ease-out) both; }
.ls-cta { margin-top: 20px; animation: cv-rise .6s .4s var(--ease-out) both; }
.ls-go { width: 100%; height: 62px; padding: 0 8px 0 24px; border-radius: 99px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; color: var(--hero-1, #0a3a35); font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); transition: transform var(--t-fast); }
.ls-go:active { transform: scale(.98); }
.ls-arrow { width: 48px; height: 48px; border-radius: 99px; display: grid; place-items: center; background: linear-gradient(135deg, var(--hero-3, #19a596), var(--hero-2, #0e7c72)); color: #fff; box-shadow: 0 8px 18px -8px var(--hero-2, #0e7c72); }
.ls-arrow .ico { width: 22px; height: 22px; stroke-width: 2.2; animation: ls-nudge 1.8s ease-in-out infinite; }
@keyframes ls-nudge { 50% { transform: translateX(3px); } }
.ls-alt { width: 100%; height: 50px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 14.5px; font-weight: 600; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ls-note { margin-top: 12px; text-align: center; font-size: 11.5px; color: rgba(255, 255, 255, .55); }
@media (max-height: 700px) { .ls-hero { height: 60%; } .ls-h { font-size: 38px; } .ls-sub { font-size: 14px; margin-top: 8px; } .ls-cta { margin-top: 14px; } .ls-go { height: 56px; } .ls-alt { height: 46px; } .ls-orbit { width: 250px; height: 250px; margin: -125px 0 0 -125px; } .ls-medal { width: 150px; height: 150px; margin: -75px 0 0 -75px; } }
@media (min-width: 900px) {
  .ls { flex-direction: row; align-items: stretch; }
  .ls-hero { position: relative; flex: 1 1 58%; height: auto; }
  .ls-hero.has-img::after { background: linear-gradient(90deg, transparent 60%, var(--hero-1, #0a3a35) 100%); }
  .ls-top { position: absolute; left: 0; right: 0; top: 0; }
  .ls-panel { flex: 0 0 42%; max-width: 520px; margin: 0; padding: 120px 56px 48px 40px; display: flex; flex-direction: column; justify-content: center; }
  .ls-h { font-size: 58px; }
}

/* "Make it my clinic" sheet */
.pz-bg { position: fixed; inset: 0; z-index: 96; display: flex; align-items: flex-end; justify-content: center; background: rgba(4, 8, 14, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade var(--t-med) both; color: var(--ink); }
.pz { width: 100%; max-width: 480px; max-height: calc(100dvh - 10px); overflow: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 30px 30px 0 0; padding: 10px 20px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-3); animation: up var(--t-slow) var(--ease-out) both; }
@media (min-width: 600px) { .pz-bg { align-items: center; padding: 24px; } .pz { border-radius: 30px; padding: 14px 26px 20px; animation: pop var(--t-slow) var(--ease-out) both; } }
.pz-grab { display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 0 auto 14px; }
.pz h2 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.05; letter-spacing: -.012em; }
.pz-sub { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.pz-f { display: block; margin-top: 16px; }
.pz-f > span { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 7px; }
.pz-f > span i { font-style: normal; font-weight: 550; color: var(--ink-3); }
.pz-in { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface-2); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.pz-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.pz-in .ico { color: var(--ink-3); }
.pz-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 550; color: var(--ink); }
.pz-err { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--neg); }
.pz-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pz-t { position: relative; display: flex; flex-direction: column; text-align: left; border-radius: 18px; overflow: hidden; border: 1.5px solid var(--line); background: var(--surface); transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.pz-t:active { transform: scale(.97); }
.pz-t.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pz-th { position: relative; height: 78px; display: grid; place-items: center; overflow: hidden; color: #fff; background: radial-gradient(90% 90% at 70% 10%, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(140deg, var(--h3), var(--h2) 55%, var(--h1)); }
.pz-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.pz-th .ico { width: 32px; height: 32px; stroke-width: 1.6; }
.pz-t b { padding: 9px 11px 10px; font-size: 13.5px; font-weight: 650; line-height: 1.25; }
.pz-ok { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; background: #fff; color: var(--accent); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.pz-ok .ico { width: 14px; height: 14px; stroke-width: 3; }
.pz-go { height: 56px; border-radius: 16px; font-size: 16px; margin-top: 20px; box-shadow: 0 16px 30px -16px var(--accent-deep); }
.pz-note { margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--ink-3); text-align: center; }
.pz-note .ico { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }

/* "Setting up your app" moment */
.bd { position: fixed; inset: 0; z-index: 97; overflow: hidden; display: grid; place-items: center; color: #fff;
  background: radial-gradient(100% 60% at 50% 30%, var(--hero-glow, rgba(255, 255, 255, .25)), transparent 62%), linear-gradient(180deg, var(--hero-2, #0e7c72), var(--hero-1, #0a3a35) 70%); animation: fade .3s both; }
.bd .ls-hero { height: 100%; opacity: .32; }
.bd .ls-hero.has-img::after { background: linear-gradient(180deg, transparent, var(--hero-1, #0a3a35) 85%); }
.bd .ls-medal { display: none; }
.bd-in { position: relative; z-index: 1; width: min(340px, 88vw); text-align: center; }
.bd-logo { width: 96px; height: 96px; margin: 0 auto; border-radius: 30px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); font-family: var(--font-display); font-size: 44px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .08), 0 30px 60px -20px rgba(0, 0, 0, .6); animation: cv-pop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.bd-logo img { width: 100%; height: 100%; object-fit: contain; }
.bd-k { margin-top: 22px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
.bd h2 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.08; margin-top: 4px; text-wrap: balance; }
.bd ul { margin: 22px auto 0; text-align: left; display: grid; gap: 10px; max-width: 290px; }
.bd li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 550; color: rgba(255, 255, 255, .45); transition: color .3s; }
.bd li.on { color: #fff; }
.bd-c { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 99px; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .35); transition: background .3s, border-color .3s, transform .3s var(--ease-out); }
.bd-c .ico { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transition: opacity .2s; }
.bd li.on .bd-c { background: #4ade80; border-color: #4ade80; transform: scale(1.08); }
.bd li.on .bd-c .ico { opacity: 1; color: #05301a; }
.bd-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin: 24px auto 0; max-width: 290px; overflow: hidden; }
.bd-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: #fff; transition: width .45s var(--ease-out); }

/* guided-tour menu: 2×2 task tiles in the look's colours */
.tw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 16px; }
.tw-tile { position: relative; min-width: 0; min-height: 124px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 14px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); text-align: left; transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.tw-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.tw-tile:active { transform: scale(.97); }
.tw-tile .ti { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--tile-1); color: var(--tile-1-ink); }
.tw-tile:nth-child(2) .ti { background: var(--tile-2); color: var(--tile-2-ink); } .tw-tile:nth-child(3) .ti { background: var(--tile-3); color: var(--tile-3-ink); } .tw-tile:nth-child(4) .ti { background: var(--tile-4); color: var(--tile-4-ink); }
.tw-tile b { font-size: 14px; font-weight: 650; line-height: 1.28; }
.tw-tile small { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tw-tile.ok { border-color: color-mix(in srgb, var(--pos) 45%, var(--line)); }
.tw-tile.ok small { color: var(--pos); }
.tw-ok { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: var(--pos); color: #fff; }
.tw-ok .ico { width: 13px; height: 13px; stroke-width: 3; }
.tw::before { background: radial-gradient(120% 100% at 50% 0%, var(--tile-1), transparent 72%); }

/* WhatsApp preview: the message arrives (typing dots, then the bubble) */
.wa-typing { align-self: flex-start; display: inline-flex; gap: 4px; max-height: 40px; overflow: hidden; padding: 11px 13px; background: #fff; border-radius: 0 12px 12px 12px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); animation: wa-gone .2s .85s forwards; }
.wa-typing i { width: 7px; height: 7px; border-radius: 99px; background: #8696a0; animation: wa-dot 1s ease-in-out infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes wa-gone { to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; box-shadow: none; } }
.wa-bubble { animation: wa-pop .4s 1s var(--ease-out) both; }
@keyframes wa-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.wa-badge { animation: wa-ring 1.2s .2s var(--ease-out) both; }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5), 0 10px 20px -10px #128c4a; } 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 10px 20px -10px #128c4a; } }

/* client cover (PIN lock, connect, welcome) wears the look's hero */
.cv-hero { background: radial-gradient(120% 90% at 100% 0%, var(--hero-glow, rgba(255, 255, 255, .2)), transparent 55%), linear-gradient(160deg, var(--hero-1, #0a3a35), var(--hero-2, #0e7c72) 65%, var(--hero-3, #19a596)); }
.cv-medal { position: absolute; left: 50%; top: 46%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .08) 60%); border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 0 60px 6px var(--hero-glow, rgba(255, 255, 255, .2)); }
.cv-medal .ico { width: 58px; height: 58px; stroke-width: 1.4; color: #fff; }

/* realistic heroes (21 Oct): the 3D scene fills the top, its object sits where the feature icons orbit */
.ls-hero.has-img { height: 100%; }
.ls-hero.has-img::after { background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, transparent 16%); }
.ls-hero.has-img .ls-img { inset: auto; left: -15%; top: 4vw; width: 130%; max-width: none; height: auto; object-fit: fill;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 62%, transparent 92%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 62%, transparent 92%); }
.ls-hero.has-img .ls-orbit { top: 58.6vw; }
.ls-hero.has-img .ls-orbit i.r2 { display: none; }
.ls-hero.has-img .ls-o { background: rgba(255, 255, 255, .14); }
@media (max-height: 700px) { .ls-hero.has-img .ls-orbit { width: 230px; height: 230px; margin: -115px 0 0 -115px; } .ls-hero.has-img .ls-img { width: 112%; left: -6%; top: 0; } .ls-hero.has-img .ls-orbit { top: 61vw; } }
@media (min-width: 900px) {
  .ls-hero.has-img { height: auto; }
  .ls-hero.has-img .ls-img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; -webkit-mask-image: none; mask-image: none; }
  .ls-hero.has-img .ls-orbit { top: 30%; }
}
/* home header pictures: the doctor (feathered into the colour), or the speciality's real-looking room as a placeholder */
.hh-doc { top: 44px; bottom: 0; height: auto; max-height: none; right: -10px; width: 52%; max-width: 230px; object-fit: cover; object-position: 50% 8%;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to top, transparent 0, #000 30%), linear-gradient(to bottom, transparent 0, #000 16%); -webkit-mask-composite: source-in, source-in;
  mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to top, transparent 0, #000 30%), linear-gradient(to bottom, transparent 0, #000 16%); mask-composite: intersect, intersect; }
.hh-doc.own { object-position: 50% 4%; }
.hh-scene { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 78%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .62; animation: hh-doc .9s .1s var(--ease-out) both;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to top, transparent 0, #000 35%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to top, transparent 0, #000 35%); mask-composite: intersect; }
.hh.has-doc .hh-in { max-width: 58%; }
@media (max-width: 430px) { .hh.has-doc .hh-chip.date { display: none; } }
@media (min-width: 1024px) { .hh-doc { width: 34%; max-width: 300px; top: 0; } .hh-scene { width: 55%; } }
/* "Make it my clinic": the doctor's own photo and logo, kept on the phone */
.pz-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pz-pic { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 16px; border: 1.5px dashed var(--line-2); background: var(--surface-2); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.pz-pic:hover { border-color: var(--accent); background: var(--accent-soft); }
.pz-pic b { font-size: 13px; font-weight: 650; line-height: 1.25; }
.pz-pv { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); }
.pz-pic.round .pz-pv { border-radius: 99px; }
.pz-pv img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.pz-x { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); }
.pz-x .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.pz-keep { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.pz-keep .ico { width: 14px; height: 14px; }
.bd-logo { position: relative; overflow: visible; }
.bd-logo > img { border-radius: inherit; }
.bd-photo { position: absolute; right: -22px; bottom: -16px; width: 64px; height: 64px; border-radius: 99px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); animation: cv-pop .6s .25s cubic-bezier(.34, 1.56, .64, 1) both; }
.bd-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }

.cv-photo.look { object-position: 50% 24%; }   /* the look's 3D scene: its object sits in the upper third */
.tw-foot .tw-link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; font: inherit; }

/* ---------- demo bills + "Send to my WhatsApp" (demo tenants only) ----------
   Every demo bill wears a faint diagonal "SAMPLE · SAMPURN DEMO" over the whole invoice, on screen, in print and in the
   PDF (real text, so it prints without "background graphics"), plus a footer line: a demo bill never passes as real. */
.inv-demo { position: relative; isolation: isolate; }
.inv-wm { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; -webkit-user-select: none; user-select: none; z-index: 2; }   /* clips only itself, never the bill */
.inv-wm-in { position: absolute; inset: -40% -60%; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; transform: rotate(-30deg); }
.inv-wm-in div { display: flex; gap: 64px; white-space: nowrap; }
.inv-wm-in div:nth-child(even) { transform: translateX(170px); }
.inv-wm span { font: 800 24px/1 var(--font-ui); letter-spacing: .22em; color: var(--ink); opacity: .075; }
.inv-demo-line { position: relative; z-index: 3; margin: 18px 0 0; padding: 9px 12px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 12px; font-weight: 600; line-height: 1.45; color: var(--ink-2); text-align: center; }
@media print {
  .inv-wm { border-radius: 0; }
  .inv-wm span { color: #000; opacity: .1; }
  .inv-demo-line { color: #333; border-color: #888; }
}
.wa-mine { margin: 0 0 10px; }
.wa-mine-form label { display: block; font-size: 13px; font-weight: 600; margin: 0 2px 6px; }
.wa-mine-in { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); transition: border-color var(--t-fast, .15s), box-shadow var(--t-fast, .15s); }
.wa-mine-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wa-mine-in.bad { border-color: var(--neg); }
.wa-mine-in span { padding: 0 2px 0 14px; font-weight: 600; color: var(--ink-2); }
.wa-mine-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 16px/1.2 var(--font-ui); letter-spacing: .02em; padding: 13px 14px 13px 6px; }
.wa-mine-help { font-size: 12.5px; color: var(--ink-3); margin: 6px 2px 10px; }
.wa-mine-help.bad { color: var(--neg); font-weight: 600; }
.wa-mine-to { margin: 6px 2px 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.wa-mine-chg { font: inherit; font-weight: 600; color: var(--accent-deep); background: none; border: 0; padding: 8px 4px; margin: -8px 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
:root[data-theme="dark"] .wa-mine-chg { color: var(--accent-2); }
.wa-mine-ok { display: flex; gap: 8px; align-items: flex-start; margin: 10px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.wa-mine-ok .ico { color: var(--pos); flex: 0 0 auto; margin-top: 1px; }
/* every printed bill (client apps too): page margins, the header wraps on narrow paper instead of squeezing,
   and the totals, QR box and demo line never split across pages */
@media print {
  @page { margin: 12mm; }
  .inv { border-radius: 0; }
  .inv-top { flex-wrap: wrap; row-gap: 14px; }
  .inv-top > :last-child { margin-left: auto; }
  .inv-tot, .paybox, .inv-demo-line, .inv-tbl tr { break-inside: avoid; page-break-inside: avoid; }
}
/* the bill's payments list (screen) */
.inv-pays { margin-top: 18px; }
.inv-pays-h { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.inv-pay { justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
/* print / PDF: every rule gets 2–3 mm of air above and below the text (owner: "line text se chipak rha hai") */
@media print {
  .inv .hr { margin: 20px 0; height: 0; background: none; border-top: 1px solid var(--line); }   /* a border prints, a background does not */
  .inv-tbl { margin-top: 24px; }
  .inv-tbl th { padding-bottom: 11px; }
  .inv-tbl td { padding-top: 12px; padding-bottom: 12px; }
  .inv-tot { margin-top: 18px; }
  .inv-tot div { padding: 7px 0; }
  .inv-tot .grand { margin-top: 10px; padding-top: 14px; padding-bottom: 9px; }
  .inv-pays { margin-top: 24px; }
  .inv-pays-h { margin-bottom: 10px; }
  .inv-pay { padding: 11px 0; }
  .inv-demo-line { margin-top: 24px; padding: 13px 18px; }
}
/* the bill on a phone: room between the number columns, the invoice number on one line */
.inv-tbl th + th, .inv-tbl td + td { padding-left: 10px; }
.inv-top .num { white-space: nowrap; }

/* ---------- staff login: who is using the app (lock.js), the top-bar person chip (shell.js) ---------- */
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.who-p { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: inherit; text-align: center; cursor: pointer; box-shadow: var(--shadow-1); transition: transform var(--t-fast), border-color var(--t-fast); }
.who-p:hover { border-color: var(--accent); }
.who-p:active { transform: scale(.97); }
.who-p .avatar { width: 46px; height: 46px; border-radius: 15px; font-size: 18px; margin-bottom: 4px; }
.who-p .wn { font-weight: 650; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.who-p .wl { font-size: 12px; color: var(--ink-3); }
.who-p .wx { font-size: 11px; font-weight: 600; color: var(--warn); }
.who-back { margin: 10px auto 0; display: flex; }
.cv-form .who-note { display: flex; gap: 8px; align-items: flex-start; text-align: left; }
.cv-form .who-note .ic { flex: 0 0 auto; margin-top: 2px; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; flex: 0 0 auto; }
.who-chip .avatar { width: 24px; height: 24px; border-radius: 99px; font-size: 11px; }
.topbar.on-hero .who-chip { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .32); color: #fff; }
@media (max-width: 420px) { .who-chip { padding: 0 4px; } .who-chip .wc-n { display: none; } }
/* "Pick a sample clinic": the sample practice's name under its speciality */
.pz-sample .pz-t b:has(+ small) { padding-bottom: 2px; }
.pz-sample .pz-t small { display: block; padding: 0 11px 10px; font-size: 11px; font-weight: 500; line-height: 1.25; color: var(--ink-3); }

/* ---------- desktop launch screen (≥1024px) v2 ----------
   The pitch on the left; on the right the clinic's REAL desktop home running in a laptop (read-only ?preview=1 frame),
   the phone view in front of it and two glass cards. Phones/tablets keep exactly what they have. */
.ls-desk, .ls-feats, .ls-price, .ls-short { display: none; }
html.is-preview .demo-cta, html.is-preview .tour-pill, html.is-preview .demo-chip, html.is-preview .toasts { display: none !important; }
html.is-preview, html.is-preview body { overflow: hidden; }
@media (min-width: 1024px) {
  .ls { display: block; --ls: .32; --sw: calc(1280px * var(--ls)); --ps: .5;
    background: radial-gradient(900px 640px at 76% 44%, color-mix(in srgb, var(--hero-3, #19a596) 50%, transparent), transparent 70%), radial-gradient(700px 500px at 6% 100%, color-mix(in srgb, var(--hero-2, #0e7c72) 60%, transparent), transparent 70%), linear-gradient(160deg, var(--hero-2, #0e7c72), var(--hero-1, #0a3a35) 62%); }
  .ls-top { position: absolute; left: 0; right: 0; top: 0; padding: 26px max(48px, calc(50vw - 640px)) 0; }
  .ls-hero { display: none; }
  .ls-hero.has-img { display: block; position: absolute; inset: 0; height: auto; pointer-events: none; }       /* the speciality's 3D object peeks from behind the laptop */
  .ls-hero.has-img::after, .ls-hero .ls-orbit { display: none; }
  .ls-hero.has-img .ls-img { inset: auto; left: auto; right: calc(max(56px, 50vw - 640px) - 150px); top: calc(50% - 330px); width: min(470px, 32vw); height: auto; max-width: none; object-fit: contain; opacity: .95; transform: translate(var(--px), var(--py));
    -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); filter: saturate(1.1) drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); }
  .ls-panel { position: absolute; z-index: 2; top: 50%; left: max(48px, calc(50vw - 640px)); width: min(470px, 40vw); margin: 0; padding: 0; transform: translateY(-48%); }
  .ls-h { font-size: clamp(50px, 4.2vw, 66px); }
  .ls-sub { font-size: 16.5px; max-width: 450px; margin-top: 14px; }
  .ls-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 24px 0 0; padding: 0; list-style: none; animation: cv-rise .6s .36s var(--ease-out) both; }
  .ls-feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92); }
  .lf-i { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
  .lf-i .ico { width: 17px; height: 17px; color: #fff; }
  .ls-price { display: block; margin-top: 22px; font-size: 16px; color: rgba(255, 255, 255, .86); animation: cv-rise .6s .4s var(--ease-out) both; }
  .ls-price b { color: #fff; font-weight: 750; }
  .ls-price small { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .6); }
  .ls-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
  .ls-go { width: auto; min-width: 250px; cursor: pointer; }
  .ls-alt { width: auto; height: 62px; margin-top: 0; padding: 0 24px; cursor: pointer; white-space: nowrap; }
  .ls-long { display: none; } .ls-short { display: inline; }
  .ls-note { text-align: left; margin-top: 14px; }
  .ls-desk { display: block; position: absolute; z-index: 1; top: 50%; right: max(56px, calc(50vw - 640px)); transform: translateY(-50%); pointer-events: none; animation: lp-in .9s .15s var(--ease-out) both; }
  .ls-laptop { position: relative; }
  .ll-lid { position: relative; width: var(--sw); padding: 12px 12px 16px; margin: 0 auto; border-radius: 20px 20px 8px 8px; background: linear-gradient(160deg, #3a3d45, #121318 55%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 90px -36px rgba(0, 0, 0, .75); box-sizing: content-box; }
  .ll-cam { position: absolute; left: 50%; top: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 99px; background: #4a4f5a; }
  .ll-screen { position: relative; width: var(--sw); height: calc(var(--sw) * .625); border-radius: 6px; overflow: hidden; background: var(--canvas, #f6f7f9); }
  .ll-frame { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform: scale(var(--ls)); transform-origin: 0 0; pointer-events: none; background: transparent; opacity: 0; transition: opacity .6s var(--ease-out); }
  .ll-screen.ready .ll-frame { opacity: 1; }
  .ll-screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%) -100% 0 / 60% 100% no-repeat, linear-gradient(90deg, #eef0f3 0 17%, transparent 17%), linear-gradient(180deg, transparent 6%, var(--hero-2, #0e7c72) 6% 36%, transparent 36%) 20% 0 / 78% 100% no-repeat, #f6f7f9; animation: ll-shimmer 1.4s linear infinite; transition: opacity .6s; }
  .ll-screen.ready::before { opacity: 0; animation: none; }
  .ll-base { position: relative; width: calc(var(--sw) + 120px); height: 15px; margin: 0 -36px 0 -36px; left: 0; border-radius: 2px 2px 16px 16px; background: linear-gradient(180deg, #e9ebef, #a7acb6 70%, #8c919b); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6); }
  .ll-base i { position: absolute; left: 50%; top: 0; width: 96px; height: 6px; margin-left: -48px; border-radius: 0 0 9px 9px; background: rgba(0, 0, 0, .18); }
  .ls-phone { position: absolute; right: -54px; bottom: -40px; width: 300px; height: 620px; padding: 11px; border-radius: 52px; background: linear-gradient(145deg, #2a2d34, #0c0d10 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px -30px rgba(0, 0, 0, .7); transform: scale(var(--ps)); transform-origin: 100% 100%; box-sizing: border-box; }
  .lp-screen { position: relative; height: 100%; min-height: 0; border-radius: 42px; overflow: hidden; background: var(--canvas, #f6f7f9); color: var(--ink); display: flex; flex-direction: column; font-size: 12px; }
  .lp-status { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 0; height: 34px; color: #fff; position: relative; z-index: 1; }
  .lp-status b { font-size: 12px; font-weight: 650; }
  .lp-isl { position: absolute; left: 50%; top: 9px; width: 84px; height: 24px; margin-left: -42px; border-radius: 99px; background: #000; }
  .lp-bars { display: inline-flex; gap: 2px; align-items: flex-end; } .lp-bars i { width: 3px; border-radius: 2px; background: #fff; } .lp-bars i:nth-child(1) { height: 5px; } .lp-bars i:nth-child(2) { height: 8px; } .lp-bars i:nth-child(3) { height: 11px; }
  .lp-head { margin-top: -34px; padding: 50px 18px 52px; display: flex; align-items: center; gap: 12px; color: #fff; background: radial-gradient(260px 160px at 85% 0%, var(--hero-3, #19a596), transparent 70%), linear-gradient(150deg, var(--hero-2, #0e7c72), var(--hero-1, #0a3a35)); }
  .lp-logo { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); font-weight: 700; font-size: 18px; }
  .lp-logo img { width: 100%; height: 100%; object-fit: cover; }
  .lp-hi small { display: block; font-size: 11px; opacity: .8; } .lp-hi b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.05; } .lp-hi span { display: block; font-size: 11px; opacity: .78; margin-top: 2px; }
  .lp-card { margin: -34px 12px 0; padding: 12px; border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45); position: relative; }
  .lp-card > small { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .lp-card > small i { width: 6px; height: 6px; border-radius: 99px; background: #22c55e; }
  .lp-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
  .lp-av { width: 34px; height: 34px; border-radius: 99px; flex: 0 0 auto; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--accent-deep, #0e7c72); background: var(--accent-soft, #e6f4f2); }
  .lp-who { flex: 1; min-width: 0; } .lp-who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lp-who span { display: block; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lp-tok { font-weight: 750; font-size: 13px; padding: 4px 8px; border-radius: 9px; background: var(--surface-2, #f1f3f5); }
  .lp-btn { display: block; margin-top: 10px; height: 32px; line-height: 32px; text-align: center; border-radius: 10px; font-weight: 650; font-size: 12px; color: #fff; background: linear-gradient(135deg, var(--hero-3, #19a596), var(--hero-2, #0e7c72)); }
  .lp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 12px 0; }
  .lp-tiles span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 2px; border-radius: 14px; background: var(--surface, #fff); font-size: 9.5px; font-weight: 600; text-align: center; line-height: 1.15; box-shadow: 0 1px 0 var(--line, #e5e7eb); }
  .lp-tiles i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft, #e6f4f2); color: var(--accent-deep, #0e7c72); }
  .lp-tiles .ico { width: 15px; height: 15px; }
  .lp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 12px 0; }
  .lp-kpis div { padding: 10px 12px; border-radius: 14px; background: var(--surface, #fff); box-shadow: 0 1px 0 var(--line, #e5e7eb); }
  .lp-kpis small { display: block; font-size: 9.5px; color: var(--ink-3); } .lp-kpis b { display: block; margin-top: 2px; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
  .lp-tab { margin: auto 12px 12px; height: 46px; border-radius: 16px; background: #15171c; display: flex; align-items: center; justify-content: space-around; }
  .lp-tab i { width: 34px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: rgba(255, 255, 255, .6); } .lp-tab i.on { color: #fff; background: linear-gradient(135deg, var(--hero-3, #19a596), var(--hero-2, #0e7c72)); }
  .lp-tab .ico { width: 16px; height: 16px; }
  .ls-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 12px 16px 12px 12px; border-radius: 18px; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .55); }
  .ls-float b { display: block; font-size: 13.5px; font-weight: 650; white-space: nowrap; } .ls-float small { display: block; font-size: 12px; opacity: .78; white-space: nowrap; }
  .lf-ic { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; } .lf-ic .ico { width: 19px; height: 19px; color: #fff; }
  .lf-ic.wa { background: #25d366; } .lf-ic.pay { background: linear-gradient(135deg, #f5b041, #e67e22); }
  .ls-float.f1 { left: -40px; top: -92px; animation: lf-in .8s .55s var(--ease-out) both, lf-bob 6s 1.4s ease-in-out infinite; }
  .ls-float.f2 { left: 4%; bottom: -66px; animation: lf-in .8s .75s var(--ease-out) both, lf-bob 6s 2.2s ease-in-out infinite reverse; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .ls-phone, .ls-float { display: none; } }
@media (min-width: 1280px) { .ls { --ls: .44; --ps: .52; } .ls-panel { width: min(470px, 36vw); } .ls-desk { right: max(104px, calc(50vw - 640px)); } }
@media (min-width: 1360px) { .ls { --ls: .5; --ps: .58; } }
@media (min-width: 1600px) { .ls { --ls: .56; --ps: .62; } .ls-panel { width: 500px; } }
@media (min-width: 1900px) { .ls { --ls: .62; --ps: .68; } }
@media (min-width: 1024px) and (max-height: 760px) { .ls-h { font-size: 50px; } .ls-feats { margin-top: 16px; } .ls-price { margin-top: 14px; } .ls-cta { margin-top: 16px; } }
@keyframes lp-in { from { opacity: 0; transform: translateY(-46%) scale(.97); } to { opacity: 1; transform: translateY(-50%); } }
@keyframes lf-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lf-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .ls-desk, .ls-float { animation: none !important; } }
/* desktop home (≥1200px, PROPOSAL): the chair card goes wide and two-column up to the doctor's portrait, so there is
   no empty block beside it — the patient on the left, the tooth chart / actions on the right */
@media (min-width: 1200px) {
  .ch .np { max-width: none; margin-right: max(24px, calc(min(30%, 330px) + 24px)); }
  .np-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .np-card > * { grid-column: 1; }
  .np-card > .np-h { grid-column: 1 / -1; }
  .np-card > .mini-arch { grid-column: 2; grid-row: 2 / span 3; margin: 0; align-self: stretch; }
  .np-card > .np-acts { grid-column: 2; grid-row: 2 / span 3; align-self: end; margin-top: 0; }
  .np-card > .mini-arch ~ .np-acts { grid-row: 5; }
}
@keyframes ll-shimmer { to { background-position: 200% 0, 0 0, 20% 0, 0 0; } }

/* gym demo launch screen (23 Oct 2026): a real night-gym photo across the top, fading into the look's black under the text */
html[data-look^="gym-"] .ls-hero.has-img { height: 76%; }
html[data-look^="gym-"] .ls-hero.has-img .ls-img { inset: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; -webkit-mask-image: none; mask-image: none; }
html[data-look^="gym-"] .ls-hero.has-img::after { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .08) 20%, transparent 42%, var(--hero-fade) 70%, var(--hero-1) 96%); }
html[data-look^="gym-"] .ls-hero.has-img .ls-orbit { display: none; }
html[data-look^="gym-"] .ls { background: radial-gradient(110% 50% at 50% 100%, var(--hero-tint), transparent 60%), var(--hero-1); }
html[data-look^="gym-"] .ls-go { color: #111; }
html[data-look^="gym-"] .ls-arrow { background: linear-gradient(135deg, var(--hero-3), var(--hero-2)); }
@media (min-width: 900px) {
  html[data-look^="gym-"] .ls-hero.has-img { height: auto; }
  html[data-look^="gym-"] .ls-hero.has-img .ls-img { object-position: 50% 70%; }
  html[data-look^="gym-"] .ls-hero.has-img::after { background: linear-gradient(90deg, transparent 55%, var(--hero-1) 100%), linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 22%); }
}
/* the home header's gym photo: stronger than a clinic room, it is the brand's mood */
html[data-look^="gym-"] .hh-scene { opacity: .78; width: 86%; object-position: 50% 62%; }
html[data-look^="gym-"] .hh { background: radial-gradient(120% 85% at 100% 0%, var(--hero-glow), transparent 55%), linear-gradient(165deg, var(--hero-1) 0%, var(--hero-1) 40%, var(--hero-2) 100%); }
/* gym demo: one-tap themes in the tour menu, the Diwali line in the finale */
.tw-themes { margin: 14px 0 2px; text-align: left; }
.tw-themes small { display: block; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 2px 8px; }
.gt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gt-b { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 5px 5px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink-2); font: 650 12px/1.1 var(--font-ui); cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.gt-b:active { transform: scale(.97); }
.gt-b.on { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.gt-i { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 9px; overflow: hidden; background: linear-gradient(140deg, var(--h3), var(--h1)); }
.gt-i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tw-offer { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12.5px; font-weight: 700; }
:root[data-theme="dark"] .tw-offer { color: var(--accent-2); }
.tw-price span s { color: var(--ink-3); }
/* payment receipts (23 Oct 2026): one per payment, any mode; "Save as PDF" prints only the receipt (html.pr-rcpt) */
.inv-pay-r { display: inline-flex; align-items: center; gap: 4px; }
.inv-pay-r .btn { margin: -6px -8px -6px 0; }
.rcpt { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--surface); }
.rc-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rc-biz { display: flex; gap: 10px; align-items: center; min-width: 0; }
.rc-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: #fff; flex: 0 0 auto; }
.rc-biz b { display: block; font-size: 16px; font-weight: 650; }
.rc-biz small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.4; max-width: 34ch; }
.rc-no { text-align: right; margin-left: auto; }
.rc-no small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rc-no b { display: block; font-size: 17px; font-weight: 650; margin-top: 2px; }
.rc-no span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.rc-amt { padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.rc-amt small, .rc-tot small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rc-who { display: block; font-size: 16px; font-weight: 600; margin-top: 3px; }
.rc-who span { font-weight: 500; color: var(--ink-2); font-size: 14px; }
.rc-sum { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.rc-sum .num { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.rc-sum em { font-style: normal; font-size: 13px; color: var(--ink-2); }
.rc-kv { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rc-kv div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 13.5px; }
.rc-kv span { color: var(--ink-3); flex: 0 0 auto; }
.rc-kv b { font-weight: 550; text-align: right; }
.rc-tot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 0; }
.rc-tot b { display: block; font-size: 15px; font-weight: 650; margin-top: 3px; }
.rc-tot .due b { color: var(--neg); } .rc-tot .ok b { color: var(--pos); }
.rc-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--ink-3); }
.rc-sign { font-weight: 600; color: var(--ink-2); }
.rcpt .inv-demo-line { margin-top: 14px; }
#rcpt-print { display: none; }
@media print {
  html:root[data-theme] { --bg: #fff; --bg-2: #fff; --surface: #fff; --surface-2: #fafafa; --surface-3: #f3f3f3; --ink: #111; --ink-2: #444; --ink-3: #6b6b6b; --line: #e2e2e2; --line-2: #cfcfcf; color-scheme: light; }
  html.pr-rcpt #app, html.pr-rcpt #splash, html.pr-rcpt .toasts { display: none !important; }
  html.pr-rcpt #rcpt-print { display: block; }
  html.pr-rcpt .rcpt { border: 0; border-radius: 0; padding: 0; }
  .rc-top, .rc-amt, .rc-kv, .rc-tot, .rc-foot { break-inside: avoid; page-break-inside: avoid; }
}
/* gym module (23 Oct 2026): renewals rows, the membership card, the renew sheet's plan picker */
.gy-row .acts { gap: 6px; }
.warn-t { color: var(--warn); font-weight: 600; }
.s .neg, .gy-row .neg { color: var(--neg); font-weight: 600; }
.gy-k { display: block; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.gy-plan { font-size: 21px; font-weight: 650; letter-spacing: -.015em; margin-top: 3px; }
.gy-bar { height: 8px; }
.gy-auto { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 13px; font-weight: 550; }
.gy-auto .ico { color: var(--accent-2); flex: 0 0 auto; }
.gy-stats { margin-top: 14px; gap: 8px; }
.gy-stats > div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.gy-stats small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.25; }
.gy-stats b { display: block; font-size: 16px; font-weight: 650; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gy-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gy-p { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.gy-p b { font-size: 14px; font-weight: 650; }
.gy-p .num { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.gy-p small { font-size: 11.5px; color: var(--ink-3); }
.gy-p.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--accent-soft); }
@media (max-width: 380px) { .gy-row .acts .btn-wa { padding-left: 10px; padding-right: 10px; } }
.gy-dates { display: flex; align-items: center; gap: 6px; margin: -4px 2px 12px; color: var(--ink-2); }
@media (max-width: 440px) { .gy-row .acts .btn-wa .gy-t { display: none; } .gy-row .acts .btn-wa { width: 40px; padding: 0; justify-content: center; } }
/* gym, desktop launch screen (owner 23 Oct night: "photo halka blur karo, white text highlight ho"): the gym photo softly
   blurred and dimmed, a dark wash on the text side, a soft shadow under the white text. Phones keep the sharp photo. */
@media (min-width: 1024px) {
  html[data-look^="gym-"] .ls-hero.has-img .ls-img { left: -32px; top: -32px; width: calc(100% + 64px); height: calc(100% + 64px); opacity: 1; animation: none; scale: 1.03; will-change: transform;
    filter: blur(5px) saturate(1.08) brightness(.8); }
  html[data-look^="gym-"] .ls-hero.has-img::after { display: block; background: linear-gradient(90deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .6) 30%, rgba(0, 0, 0, .26) 52%, rgba(0, 0, 0, .08) 70%, rgba(0, 0, 0, .14) 100%), linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, transparent 18%, transparent 78%, rgba(0, 0, 0, .5) 100%); }
  html[data-look^="gym-"] .ls-eyebrow, html[data-look^="gym-"] .ls-h, html[data-look^="gym-"] .ls-sub, html[data-look^="gym-"] .ls-feats li, html[data-look^="gym-"] .ls-price, html[data-look^="gym-"] .ls-note { text-shadow: 0 2px 16px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .35); }
  html[data-look^="gym-"] .ls-sub, html[data-look^="gym-"] .ls-feats li { color: #fff; }
  html[data-look^="gym-"] .lf-i { background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
/* setup wizard (/start/): a gym picks one of its four themes */
.ob-looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ob-look { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 8px 8px 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.ob-look img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.ob-look b { font-size: 14px; font-weight: 650; }
.ob-look small { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.ob-look.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* gym: old members — paste from Excel, or send the register to Sampurn (free); the get-started card of a new gym app */
.gy-paste { width: 100%; margin-top: 12px; font: 500 13.5px/1.5 var(--font-mono, ui-monospace, Menlo, Consolas, monospace); white-space: pre; overflow: auto; }
.gy-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.gy-cols label { display: grid; gap: 4px; min-width: 0; }
.gy-cols small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gy-cols .select { height: 40px; }
.gy-free { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }
.gy-start { border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), transparent 65%), var(--surface); }
.gy-start-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gy-start-b .btn { flex: 1 1 auto; justify-content: center; }
.ch > .gy-start { position: relative; z-index: 2; margin-top: -78px; }   /* a new gym app: the start card sits where the next-member card would */
.ch > .gy-start + .np { margin-top: 22px; }
/* gym QR check-in poster (screen + print via the receipt printer) */
.qr-poster { max-width: 420px; margin: 4px auto 0; padding: 26px 22px 22px; border-radius: 26px; text-align: center; background: #ffffff; color: #111111; box-shadow: var(--shadow-2); }
.qp-top { display: flex; align-items: center; justify-content: center; gap: 10px; }
.qp-top img, .qp-l { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: #111; color: #fff; font: 400 24px/1 var(--font-display); }
.qp-top b { font-size: 18px; font-weight: 650; color: #111; }
.qp-h { margin: 18px 0 0; font: 400 34px/1.05 var(--font-display); color: #111; }
.qp-qr { width: min(300px, 78vw); margin: 16px auto 0; }
.qp-qr svg { width: 100%; height: auto; display: block; }
.qp-s { margin: 14px auto 0; max-width: 32ch; font-size: 14px; line-height: 1.5; color: #444; }
.qp-u { display: block; margin-top: 10px; font-size: 12px; color: #777; }
@media print { #rcpt-print .qr-poster { box-shadow: none; max-width: none; padding: 30mm 10mm 0; } #rcpt-print .qp-qr { width: 120mm; } #rcpt-print .qp-h { font-size: 44px; } }
@media (max-width: 720px) { .gy-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gy-tiles .kpi .sub { font-size: 12px; } }
/* gym part 2 (24 Oct 2026): enquiries, wishes, progress, plans, reviews & referrals, the Pro lock */
.gy-tap { all: unset; cursor: pointer; flex: 1; min-width: 0; display: block; }
.gy-tap .t { font-weight: 600; } .gy-tap .s { font-size: 13px; color: var(--ink-3); }
.gy-lock { display: flex; gap: 12px; align-items: flex-start; border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface); }
.gy-lock .avatar { flex: 0 0 auto; }
.gy-spark { margin-top: 12px; color: var(--accent-2); }
.gy-spark svg { width: 100%; height: 56px; }
.gy-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.gy-ba figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.gy-ba img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.gy-ba figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11.5px; font-weight: 600; }
.gy-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.gy-thumb.lg { width: 96px; height: 128px; margin: 4px 0 8px; }
.gy-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.gy-tpls .gy-p b { font-size: 13.5px; }
.gy-plan-text { font: 500 13.5px/1.55 var(--font-ui); }
.gy-today { padding: 6px 16px; }
.gy-today-r { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: inherit; text-decoration: none; }
.gy-today-r + .gy-today-r { border-top: 1px solid var(--line); }
.gy-today-r > div { flex: 1; min-width: 0; } .gy-today-r b { display: block; font-size: 15px; } .gy-today-r small { color: var(--ink-3); font-size: 12.5px; }
.grid.gy-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .gy-stats > div { padding: 9px 10px; } .gy-stats b { font-size: 14.5px; } .gy-stats small { font-size: 10.5px; } }

/* ================= tattoo studio demo (1 Nov 2026): four black-first looks + the tattoo module (tt-*) ================= */
html[data-look="ink-crimson"] { --hero-tint: rgba(224, 40, 59, .26); --hero-fade: rgba(11, 6, 6, .7); --hero-1: #0b0606; --hero-2: #3a0a10; --hero-3: #e0283b; --hero-glow: rgba(242, 102, 116, .4); --hero-em: #ff9aa6;
  --bg: #fbf6f6; --bg-2: #f5ecec; --surface: #ffffff; --surface-2: #fffafa; --surface-3: #f6eaea; --line: #efdfe0; --line-2: #e2c9cb; --ink: #1c0f11; --ink-2: #5a4346; --ink-3: #8f797c; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(224, 40, 59, .12), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(255, 154, 166, .12), transparent 58%);
  --tile-1: #fde8ea; --tile-1-ink: #b4152b; --tile-2: #ecebe8; --tile-2-ink: #3b352c; --tile-3: #e3edff; --tile-3-ink: #1a56c9; --tile-4: #fff0c2; --tile-4-ink: #8a5a00; }
html[data-look="ink-crimson"][data-theme="dark"] { --bg: #0b0707; --bg-2: #100a0a; --surface: #171011; --surface-2: #1d1415; --surface-3: #251a1b; --line: #301f21; --line-2: #40292c; --ink: #f7eeee; --ink-2: #c9b3b5; --ink-3: #8e7678; --glass: rgba(23, 16, 17, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(242, 102, 116, .14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(224, 40, 59, .06), transparent 58%); }
html[data-look="ink-gold"] { --hero-tint: rgba(201, 164, 92, .24); --hero-fade: rgba(8, 7, 6, .7); --hero-1: #080706; --hero-2: #2c2316; --hero-3: #c9a45c; --hero-glow: rgba(235, 201, 127, .36); --hero-em: #f5dca6;
  --bg: #faf7f1; --bg-2: #f3ede2; --surface: #ffffff; --surface-2: #fffcf7; --surface-3: #f4eee3; --line: #ebe2d1; --line-2: #dccfb6; --ink: #1c1710; --ink-2: #574d3e; --ink-3: #8d8270; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(201, 164, 92, .16), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(245, 220, 166, .14), transparent 58%);
  --tile-1: #f7efdd; --tile-1-ink: #7c5a17; --tile-2: #ecebe8; --tile-2-ink: #3b352c; --tile-3: #e3edff; --tile-3-ink: #1a56c9; --tile-4: #fbe4ea; --tile-4-ink: #a8345a; }
html[data-look="ink-gold"][data-theme="dark"] { --bg: #090807; --bg-2: #0d0c0a; --surface: #15130f; --surface-2: #1b1813; --surface-3: #221e18; --line: #2d2820; --line-2: #3c352a; --ink: #f6f0e4; --ink-2: #c4b9a5; --ink-3: #8a806f; --glass: rgba(21, 19, 15, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(235, 201, 127, .12), transparent 60%); }
html[data-look="ink-jade"] { --hero-tint: rgba(31, 201, 139, .22); --hero-fade: rgba(4, 8, 7, .7); --hero-1: #040807; --hero-2: #0b2a20; --hero-3: #1fc98b; --hero-glow: rgba(67, 192, 106, .32); --hero-em: #9be3b1;
  --bg: #f3f8f5; --bg-2: #e8f1ec; --surface: #ffffff; --surface-2: #f8fcfa; --surface-3: #eaf3ee; --line: #dbe9e1; --line-2: #c3d9cc; --ink: #0b1610; --ink-2: #3e5246; --ink-3: #738679; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(31, 201, 139, .14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(155, 227, 177, .14), transparent 58%);
  --tile-1: #e3f3e8; --tile-1-ink: #1f6e3a; --tile-2: #ecebe8; --tile-2-ink: #3b352c; --tile-3: #ebe6fb; --tile-3-ink: #5a43c6; --tile-4: #fde6d9; --tile-4-ink: #ae4a22; }
html[data-look="ink-jade"][data-theme="dark"] { --bg: #050807; --bg-2: #080c0a; --surface: #0e1512; --surface-2: #131b17; --surface-3: #19231e; --line: #212e27; --line-2: #2d3d34; --ink: #ecf5ef; --ink-2: #aabdb1; --ink-3: #718478; --glass: rgba(14, 21, 18, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(67, 192, 106, .11), transparent 60%); }
html[data-look="ink-violet"] { --hero-tint: rgba(154, 106, 245, .24); --hero-fade: rgba(7, 5, 12, .7); --hero-1: #07050c; --hero-2: #24124a; --hero-3: #9a6af5; --hero-glow: rgba(155, 124, 255, .36); --hero-em: #d2c4ff;
  --bg: #f6f4fb; --bg-2: #eeeaf7; --surface: #ffffff; --surface-2: #faf9fd; --surface-3: #efecf7; --line: #e3def0; --line-2: #cfc6e4; --ink: #120e1c; --ink-2: #4a4260; --ink-3: #7f7795; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(154, 106, 245, .14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(210, 196, 255, .16), transparent 58%);
  --tile-1: #eee8fc; --tile-1-ink: #4b22ad; --tile-2: #ecebe8; --tile-2-ink: #3b352c; --tile-3: #fde8ea; --tile-3-ink: #b4152b; --tile-4: #e3f3e8; --tile-4-ink: #1f6e3a; }
html[data-look="ink-violet"][data-theme="dark"] { --bg: #08060c; --bg-2: #0c0a12; --surface: #13101a; --surface-2: #191522; --surface-3: #201b2b; --line: #2a2438; --line-2: #383049; --ink: #f1eefa; --ink-2: #bcb3d1; --ink-3: #807896; --glass: rgba(19, 16, 26, .84); --art: radial-gradient(900px 480px at 108% -8%, rgba(155, 124, 255, .13), transparent 60%); }
html[data-look^="ink-"][data-theme="dark"] { --tile-1: var(--accent-soft); --tile-1-ink: var(--accent-2); --tile-2: rgba(255, 255, 255, .07); --tile-2-ink: var(--ink); --tile-3: var(--accent-soft); --tile-3-ink: var(--accent-2); --tile-4: rgba(255, 255, 255, .07); --tile-4-ink: var(--ink); }
html[data-look^="ink-"] { --cta-bg: radial-gradient(120% 160% at 0% 0%, var(--hero-tint), transparent 55%), linear-gradient(120deg, #0d0b0b, #1c1617); --cta-line: rgba(255, 255, 255, .09); }
html[data-look^="ink-"] .demo-cta-mark { background: linear-gradient(135deg, var(--hero-3), var(--hero-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px -6px var(--hero-tint); }
html[data-look^="ink-"] .ls-hero.has-img { height: 76%; }
html[data-look^="ink-"] .ls-hero.has-img .ls-img { inset: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; -webkit-mask-image: none; mask-image: none; }
html[data-look^="ink-"] .ls-hero.has-img::after { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .08) 20%, transparent 42%, var(--hero-fade) 70%, var(--hero-1) 96%); }
html[data-look^="ink-"] .ls-hero.has-img .ls-orbit { display: none; }
html[data-look^="ink-"] .ls { background: radial-gradient(110% 50% at 50% 100%, var(--hero-tint), transparent 60%), var(--hero-1); }
html[data-look^="ink-"] .ls-arrow { background: linear-gradient(135deg, var(--hero-3), var(--hero-2)); }
html[data-look^="ink-"] .hh { background: radial-gradient(120% 85% at 100% 0%, var(--hero-glow), transparent 55%), linear-gradient(165deg, var(--hero-1) 0%, var(--hero-1) 40%, var(--hero-2) 100%); }
html[data-look^="ink-"] .hh-scene { opacity: .78; width: 86%; object-position: 50% 52%; }
@media (min-width: 900px) {
  html[data-look^="ink-"] .ls-hero.has-img { height: auto; }
  html[data-look^="ink-"] .ls-hero.has-img::after { background: linear-gradient(90deg, transparent 55%, var(--hero-1) 100%), linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 22%); }
}
@media (min-width: 1024px) {
  html[data-look^="ink-"] .ls-hero.has-img .ls-img { left: -32px; top: -32px; width: calc(100% + 64px); height: calc(100% + 64px); filter: blur(5px) saturate(1.08) brightness(.8); }
  html[data-look^="ink-"] .ls-hero.has-img::after { display: block; background: linear-gradient(90deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .6) 30%, rgba(0, 0, 0, .26) 52%, rgba(0, 0, 0, .08) 70%, rgba(0, 0, 0, .14) 100%), linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, transparent 18%, transparent 78%, rgba(0, 0, 0, .5) 100%); }
  html[data-look^="ink-"] .ls-eyebrow, html[data-look^="ink-"] .ls-h, html[data-look^="ink-"] .ls-sub, html[data-look^="ink-"] .ls-feats li, html[data-look^="ink-"] .ls-price, html[data-look^="ink-"] .ls-note { text-shadow: 0 2px 16px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .35); }
  html[data-look^="ink-"] .ls-sub, html[data-look^="ink-"] .ls-feats li { color: #fff; }
}
.gt-sw { display: block; width: 100%; height: 100%; border-radius: inherit; }

/* module */
.tt-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.tt-ic .ico, .tt-ic svg { width: 19px; height: 19px; }
.tt-ic.neg { background: color-mix(in srgb, var(--neg) 14%, transparent); color: var(--neg); }
.tt-ic.ok { background: color-mix(in srgb, var(--pos, #2f9a4f) 15%, transparent); color: var(--pos, #2f9a4f); }
.tt-ic.warn { background: color-mix(in srgb, #f0a54a 16%, transparent); color: #d1872c; }
.tt-rem .s b { font-weight: 650; color: var(--ink); }
.tt-rem .s b.neg { color: var(--neg); }
.ok-t { color: var(--pos, #2f9a4f); font-weight: 600; }
.tt-auto, .tt-ai-why { display: flex; gap: 12px; align-items: flex-start; border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), transparent 65%), var(--surface); margin-top: 4px; }
.tt-auto > .ico, .tt-ai-why > .ico, .tt-auto > svg, .tt-ai-why > svg { flex: 0 0 auto; color: var(--accent-2); width: 22px; height: 22px; margin-top: 2px; }
.tt-auto p, .tt-ai-why p { color: var(--ink-2); margin-top: 3px; }
.tt-how { margin-top: 4px; } .tt-how p { color: var(--ink-2); margin-top: 4px; }
.tt-made { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--accent-soft); }
.tt-made > svg, .tt-made > .ico { flex: 0 0 auto; color: var(--accent-2); width: 24px; height: 24px; }
.tt-made p { color: var(--ink-2); margin-top: 4px; white-space: pre-line; word-break: break-word; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.tt-aa { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tt-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.tt-strip a { display: block; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: inherit; min-width: 0; }
.tt-strip small { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-strip b { display: flex; align-items: center; gap: 2px; font-size: 16px; font-weight: 650; margin-top: 3px; white-space: nowrap; }
.tt-tab { display: grid; gap: 10px; }
.tt-piece .gy-plan { font-size: 19px; }
.tt-prog { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.tt-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.tt-dots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tt-dots i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 650; border: 1.5px dashed var(--line-2); color: var(--ink-3); }
.tt-dots i.on { border: 0; background: var(--accent); color: var(--on-accent); }
.tt-sit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tt-sit > div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tt-sit small { display: block; font-size: 11.5px; color: var(--ink-3); } .tt-sit b { display: block; font-size: 17px; font-weight: 650; margin-top: 3px; }
.tt-advbox { margin-top: 12px; background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface-2); border-color: var(--accent); }
.tt-advline { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.tt-advline span { display: inline-flex; align-items: center; gap: 8px; } .tt-advline svg { width: 17px; height: 17px; color: var(--accent-2); }
.tt-pick { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; color: inherit; }
.tt-pick.on { background: var(--accent-soft); }
.tt-pick > svg { color: var(--accent-2); }
.tt-adv-amt { text-align: center; padding: 18px 10px 14px; border-bottom: 1px dashed var(--line-2); }
.tt-adv-amt small, .tt-adv-for small { display: block; font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.tt-adv-amt b { display: block; font-size: 17px; margin-top: 4px; }
.tt-adv-big { font-size: 38px; font-weight: 750; letter-spacing: -.02em; margin: 8px 0 4px; color: var(--accent-2); }
.tt-adv-amt span { font-size: 13px; color: var(--ink-2); }
.tt-adv-for { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 2px; }
.tt-adv-for b { display: block; font-size: 14px; margin-top: 3px; }
.tt-adv-pol { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.tt-chat { padding: 14px; display: grid; gap: 10px; background: radial-gradient(120% 80% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.tt-msg { max-width: 84%; padding: 9px 12px 6px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.tt-msg p { margin: 0; } .tt-msg small { display: block; text-align: right; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.tt-msg.in { justify-self: start; background: var(--surface-3); border-bottom-left-radius: 6px; }
.tt-msg.ai { justify-self: end; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-bottom-right-radius: 6px; }
.tt-msg.sys { justify-self: center; max-width: 100%; display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px dashed var(--line-2); }
.tt-msg.sys svg { width: 16px; height: 16px; color: var(--accent-2); }
.tt-cats { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tt-legend { flex: 1 1 160px; display: grid; gap: 8px; }
.tt-legend div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.tt-legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.tt-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tt-cl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tt-cl small { display: block; font-size: 11.5px; color: var(--ink-3); } .tt-cl b { display: block; font-size: 24px; font-weight: 700; margin-top: 2px; }
/* consent: the signed copy */
.tt-cv { display: grid; gap: 14px; }
.tt-cv-h { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tt-cv-h > div:first-child { display: flex; align-items: center; gap: 10px; } .tt-cv-h img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.tt-cv-t { text-align: right; } .tt-cv-t b { display: block; font-size: 15px; } .tt-cv-t span { font-size: 13px; color: var(--ink-3); }
.tt-cv-who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tt-cv-who > div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.tt-cv-who small, .tt-cv-foot small, .tt-sig small { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.tt-cv-who b { display: block; font-size: 15px; margin-top: 3px; } .tt-cv-who span { font-size: 12.5px; color: var(--ink-2); }
.tt-flag { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #f0a54a 16%, transparent); border: 1px solid color-mix(in srgb, #f0a54a 45%, transparent); }
.tt-flag > svg { flex: 0 0 auto; color: #d1872c; width: 20px; height: 20px; } .tt-flag p { font-size: 13.5px; margin-top: 4px; }
.tt-ok { display: flex; gap: 8px; align-items: center; padding: 11px 14px; border-radius: 14px; background: color-mix(in srgb, var(--pos, #2f9a4f) 13%, transparent); font-weight: 600; font-size: 14px; }
.tt-ok svg { color: var(--pos, #2f9a4f); width: 19px; height: 19px; }
.tt-cv-q { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tt-cv-r { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 12px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.tt-cv-r:last-child { border-bottom: 0; } .tt-cv-r small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.tt-cv-r b { flex: 0 0 auto; font-size: 13px; color: var(--ink-3); } .tt-cv-r.yes { background: color-mix(in srgb, #f0a54a 12%, transparent); } .tt-cv-r.yes b { color: #d1872c; }
.tt-cv-ticks { display: grid; gap: 6px; } .tt-cv-ticks p { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-2); } .tt-cv-ticks svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--pos, #2f9a4f); margin-top: 2px; }
.tt-cv-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .tt-cv-foot b { display: block; font-size: 14px; margin-top: 3px; }
.tt-sig { padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); }
.tt-sig img, .tt-sigm { display: block; height: 70px; width: auto; max-width: 100%; margin: 6px 0; color: var(--ink); }
.tt-sig img { background: #fff; border-radius: 8px; } .tt-sig span { font-size: 12.5px; color: var(--ink-3); }
/* consent: the client's view (their phone: a clean white page in any app theme) */
.tt-cf { background: #fff; color: #17181a; border-radius: 18px; padding: 16px; display: grid; gap: 10px; --line: #e6e7ea; }
.tt-cf h4 { margin: 10px 0 2px; font-size: 14px; letter-spacing: .02em; color: #17181a; }
.tt-cf-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tt-cf-b { display: flex; gap: 10px; align-items: center; min-width: 0; } .tt-cf-b img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.tt-cf-b b { display: block; font-size: 15px; } .tt-cf-b small { display: block; font-size: 12px; color: #6b6f76; }
.tt-lang { flex: 0 0 auto; } .tt-cf .seg { background: #f1f2f4; } .tt-cf .seg button { color: #3a3d42; } .tt-cf .seg button.on { background: #17181a; color: #fff; }
.tt-cf-f { display: grid; grid-template-columns: 1fr 96px; gap: 8px; } .tt-cf-f .wide { grid-column: 1 / -1; }
.tt-cf-f label span { display: block; font-size: 12px; color: #6b6f76; margin-bottom: 4px; }
.tt-cf .input { background: #f7f7f8; color: #17181a; border-color: #e6e7ea; }
.tt-cf-q { display: grid; gap: 0; border: 1px solid #e6e7ea; border-radius: 14px; overflow: hidden; }
.tt-cf-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eef0f2; font-size: 14px; }
.tt-cf-r:last-child { border-bottom: 0; }
.tt-yn { flex: 0 0 auto; display: flex; gap: 6px; }
.tt-yn button { min-width: 52px; height: 36px; border-radius: 10px; border: 1.5px solid #d9dbe0; background: #fff; font: 600 13.5px var(--font-ui); color: #3a3d42; cursor: pointer; }
.tt-yn button.on { background: #17181a; border-color: #17181a; color: #fff; } .tt-yn button.on.yes { background: #d1872c; border-color: #d1872c; }
.tt-cf-t { display: grid; gap: 8px; }
.tt-tick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #e6e7ea; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.tt-tick input { margin-top: 3px; width: 18px; height: 18px; accent-color: #17181a; flex: 0 0 auto; } .tt-tick.on { border-color: #17181a; background: #f7f7f8; }
.tt-cf-p { display: grid; gap: 8px; }
.tt-opt { text-align: left; padding: 11px 12px; border-radius: 12px; border: 1.5px solid #e6e7ea; background: #fff; font: 500 14px var(--font-ui); color: #17181a; cursor: pointer; }
.tt-opt.on { border-color: #17181a; box-shadow: 0 0 0 3px rgba(23, 24, 26, .08); }
.tt-cf-id { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: #f7f7f8; } .tt-cf-id p { color: #4b4f56; }
.tt-idc { flex: 0 0 auto; width: 118px; height: 74px; border-radius: 10px; background: linear-gradient(135deg, #e9edf3, #cfd8e6); position: relative; display: grid; align-items: end; padding: 8px; }
.tt-idc i { position: absolute; left: 8px; top: 8px; width: 26px; height: 32px; border-radius: 4px; background: #b8c3d4; }
.tt-idc b { font: 700 11px/1 var(--font-mono, ui-monospace, Menlo, monospace); color: #2b3240; letter-spacing: .04em; }
.tt-pad { position: relative; height: 150px; border-radius: 14px; border: 1.5px dashed #c9ccd2; background: #fff; overflow: hidden; }
.tt-pad canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.tt-pad-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #a3a7ae; font-size: 14px; pointer-events: none; }
.tt-pad .btn { position: absolute; right: 6px; bottom: 6px; color: #3a3d42; }
.tt-priv { font-size: 12px; color: #6b6f76; line-height: 1.45; }
.tt-err { display: flex; gap: 6px; align-items: center; color: #c0392b; font-weight: 600; font-size: 13.5px; } .tt-err svg { width: 16px; height: 16px; }
html.pr-rcpt .tt-cv { color: #111; } html.pr-rcpt .tt-cv * { color: inherit; }
@media (max-width: 440px) { .tt-adv-for { grid-template-columns: 1fr 1fr; } .tt-cv-who, .tt-cv-foot { grid-template-columns: 1fr; } .tt-strip b { font-size: 14.5px; } }

/* dental chart print / PDF (6 Nov 2026): one page per patient, printed through #rcpt-print like the receipts */
.dchart-print { color: #111; padding: 4mm 2mm; font-size: 12px; }
.dchart-print .dc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid #111; padding-bottom: 8px; margin-bottom: 10px; }
.dchart-print .dc-biz { display: flex; gap: 10px; align-items: center; } .dchart-print .dc-biz img { width: 44px; height: 44px; object-fit: contain; }
.dchart-print .dc-biz b { font-size: 19px; display: block; } .dchart-print .dc-biz small, .dchart-print .dc-doc small { display: block; color: #555; font-size: 11px; line-height: 1.35; }
.dchart-print .dc-doc { text-align: right; } .dchart-print .dc-doc b { font-size: 15px; letter-spacing: .02em; }
.dchart-print .dc-p { display: flex; flex-wrap: wrap; gap: 3px 18px; margin-bottom: 6px; } .dchart-print .dc-p span b { font-weight: 650; }
.dchart-print .odont { overflow: visible; padding: 2px 0; } .dchart-print .arch { min-width: 0; padding: 4px 0; } .dchart-print .odont-lbl { min-width: 0; }
.dchart-print .tooth { cursor: default; } .dchart-print .tooth svg path { stroke-width: 1.4; }
.dchart-print .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; margin: 4px 0 2px; }
.dchart-print h4 { font-size: 13px; margin: 12px 0 4px; }
.dchart-print table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.dchart-print th, .dchart-print td { border: 1px solid #c9c9c9; padding: 4px 6px; text-align: left; vertical-align: top; }
.dchart-print th { background: #f1f1f1; font-weight: 650; }
.dchart-print .dc-none { color: #666; font-style: italic; }
.dchart-print .dc-sign { margin-top: 26px; display: flex; justify-content: space-between; font-size: 11.5px; color: #333; }
.dchart-print .dc-sample { color: #b00020; font-weight: 700; font-size: 11px; letter-spacing: .08em; }
#rcpt-print .dchart-print, #rcpt-print .dchart-print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* ---------- dental tooth chart v2 (6 Nov 2026, Dr. Jayati's format): real tooth pictures on dark jaw strips, FDI numbers,
   Upper Jaw (Maxilla) / Lower Jaw (Mandible), patient's right / left, adult 32 + child 20, FDI + tooth-type key.
   The same markup prints (.dchart-print .dc2). Colours are fixed so the print looks the same in light and dark mode. ---------- */
.dc2 { container-type: inline-size; --dc-navy: #0f2d52; --dc-strip: #0d1522; --dc-line: #c7d4e6; }
.dc2-head { align-items: center; flex-wrap: wrap; margin-top: 10px; }
/* the name on the chart (clinic + "by Dr. ...") and the title, like the client's printed chart */
.dc2-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.dc2-biz { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 16px; border-right: 2px solid var(--line-2); }
.dc2-biz img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; flex: 0 0 auto; }
.dc2-biz b { display: block; font-size: 18px; font-weight: 750; line-height: 1.15; color: var(--ink); }
.dc2-biz small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.dc2-title { margin: 0; background: #0f2d52; color: #fff; font-size: 16px; font-weight: 700; padding: 7px 16px; border-radius: 10px; line-height: 1.25; flex: 0 1 auto; }
.dc2-title span { font-weight: 600; font-size: 13.5px; opacity: .9; }
@media (max-width: 560px) { .dc2-biz { border-right: 0; padding-right: 0; } .dc2-biz b { font-size: 16px; } .dc2-biz img { width: 38px; height: 38px; } .dc2-title { font-size: 14px; padding: 6px 12px; width: 100%; text-align: center; } .dc2-title span { font-size: 12px; } }
.dc2-set { border: 1.5px solid var(--dc-line); border-radius: 14px; padding: 0 12px 12px; margin-top: 12px; background: #fff; color: #13233a; }
.dc2-bar { width: max-content; max-width: 100%; margin: 10px auto 10px; background: var(--dc-navy); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em; padding: 6px 20px; border-radius: 10px; text-align: center; line-height: 1.25; }
.dc2-body { display: grid; grid-template-columns: minmax(0, 1fr) 208px; gap: 12px; align-items: start; }
.dc2-jaws { display: grid; gap: 6px; min-width: 0; }
.dc2-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: center; min-width: 0; }
.dc2-jaw { background: var(--dc-navy); color: #fff; border-radius: 9px; padding: 8px 6px; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.dc2-jaw small { display: block; font-size: 11px; font-weight: 600; opacity: .85; }
.dc2-jaw.dc2-none { background: none; padding: 0; }
.dc2-strip { display: flex; align-items: stretch; background: var(--dc-strip); border-radius: 10px; padding: 6px; min-width: 0; }
.dc2-q { flex: 1 1 0; display: flex; min-width: 0; }
.dc2-mid { flex: 0 0 auto; width: 0; border-left: 1.5px dashed rgba(255, 255, 255, .6); margin: 2px 3px; }
.dc2-t { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 3px 1px 2px; margin: 0; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
button.dc2-t { cursor: pointer; transition: background .15s ease; }
button.dc2-t:hover { background: rgba(255, 255, 255, .09); }
button.dc2-t:active { background: rgba(255, 255, 255, .16); }
button.dc2-t:focus-visible { outline: 2px solid #7cc4ff; outline-offset: -1px; }
.dc2-a { position: relative; width: 100%; aspect-ratio: var(--ar, 8 / 9); display: flex; justify-content: center; align-items: flex-end; }
.dc2-strip.lo .dc2-a { align-items: flex-start; }
.dc2-pic { position: relative; display: block; flex: 0 0 auto; }
.dc2-pic.flip { transform: scaleX(-1); }
.dc2-pic img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.dc2-tint { position: absolute; inset: 0; background: var(--cc); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; mix-blend-mode: multiply; opacity: .8; pointer-events: none; }
.dc2-t i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-weight: 800; font-size: 11px; line-height: 1.15; color: #fff; background: var(--cc); border-radius: 5px; padding: 1px 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .45); pointer-events: none; white-space: nowrap; }
.dc2-t small { display: block; min-width: 24px; text-align: center; background: #fff; color: #0d1522; font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 2px 3px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dc2-t:not(.cond-healthy) small { background: var(--cc); color: #fff; }
.dc2-t.cond-missing .dc2-pic img { opacity: .14; filter: grayscale(1); }
.dc2-t.cond-missing small { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65); text-decoration: line-through; }
.dc2-t.cond-watch small { background: #e2e8f0; color: #0d1522; }
.dc2-t.cond-watch i { background: #e2e8f0; color: #0d1522; }
.dc2-t.cond-rct_need .dc2-tint, .dc2-t.cond-impacted .dc2-tint { opacity: .5; }
.dc2-t.cond-caries { --cc: #e0493f; } .dc2-t.cond-rct_need { --cc: #7a4ff0; } .dc2-t.cond-fracture { --cc: #ea7a22; } .dc2-t.cond-abscess { --cc: #be123c; }
.dc2-t.cond-filled { --cc: #2d8fe0; } .dc2-t.cond-rct { --cc: #6d3fe6; } .dc2-t.cond-crown { --cc: #d29a12; } .dc2-t.cond-bridge { --cc: #c08a10; }
.dc2-t.cond-implant { --cc: #15a99a; } .dc2-t.cond-veneer { --cc: #e2569a; } .dc2-t.cond-extract { --cc: #f08a2e; } .dc2-t.cond-root { --cc: #a16207; }
.dc2-t.cond-impacted { --cc: #64748b; } .dc2-t.cond-mobile { --cc: #b79a10; } .dc2-t.cond-missing { --cc: #64748b; } .dc2-t.cond-watch { --cc: #94a3b8; }
.dc2-arrows { display: flex; gap: 10px; color: var(--dc-navy); font-size: 12.5px; font-weight: 700; padding: 0 6px; min-width: 0; }
.dc2-arr { flex: 1 1 0; display: flex; align-items: center; gap: 7px; white-space: nowrap; min-width: 0; }
.dc2-arr em { flex: 1 1 auto; min-width: 6px; height: 1.6px; background: currentColor; position: relative; }
.dc2-arr em.l::before, .dc2-arr em.r::after { content: ""; position: absolute; top: -3.7px; width: 0; height: 0; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.dc2-arr em.l::before { left: -1px; border-right: 7px solid currentColor; }
.dc2-arr em.r::after { right: -1px; border-left: 7px solid currentColor; }
/* child jaws: the label sits next to its strip and each tooth gets the same width as an adult tooth (10 of 16 slots) */
.dc2-child .dc2-row { grid-template-columns: 92px calc((100% - 100px) * .625); justify-content: center; }
.dc2-key { display: grid; gap: 10px; }
.dc2-box { border: 1.5px solid var(--dc-line); border-radius: 10px; overflow: hidden; background: #fff; color: #13233a; padding-bottom: 8px; }
.dc2-box > b { display: block; background: #e4eefa; color: var(--dc-navy); text-align: center; font-size: 13px; font-weight: 700; padding: 6px 8px; margin-bottom: 7px; line-height: 1.25; }
.dc2-box ul { list-style: none; margin: 0; padding: 0 11px; display: grid; gap: 4px; font-size: 12px; }
.dc2-box li { display: flex; justify-content: space-between; gap: 8px; } .dc2-box li span:first-child { font-weight: 650; } .dc2-box li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dc2-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 0 6px; }
.dc2-types figure { margin: 0; text-align: center; min-width: 0; }
.dc2-types img { display: block; height: 44px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 4px; }
.dc2-types figcaption { font-size: 11px; font-weight: 700; line-height: 1.15; } .dc2-types figcaption small { display: block; font-size: 10px; font-weight: 500; color: #56677e; }
@container (max-width: 760px) {
  .dc2-body { grid-template-columns: minmax(0, 1fr); }
  .dc2-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc2-child .dc2-key { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 560px) {
  .dc2-set { padding: 0 6px 8px; border-radius: 12px; margin-top: 10px; }
  .dc2-bar { font-size: 12.5px; padding: 5px 12px; margin: 8px auto; border-radius: 8px; }
  .dc2-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dc2-jaw { justify-self: start; padding: 3px 8px; font-size: 11px; border-radius: 6px; } .dc2-jaw small { display: inline; font-size: 10px; }
  .dc2-jaw.dc2-none { display: none; }
  .dc2-strip { padding: 4px 3px; border-radius: 8px; } .dc2-mid { margin: 1px; }
  .dc2-t { gap: 3px; padding: 2px 0 1px; border-radius: 5px; }
  .dc2-t small { min-width: 0; width: 94%; font-size: 8.5px; padding: 1px 0; border-radius: 3px; }
  .dc2-t i { font-size: 7.5px; padding: 0 2px; border-radius: 3px; }
  .dc2-arrows { font-size: 10px; gap: 6px; padding: 0 2px; } .dc2-arr { gap: 4px; }
  .dc2-child .dc2-row { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .dc2-key { grid-template-columns: minmax(0, 1fr); }
}
/* screen in dark mode: the chart blocks stay light like a printed chart; only their borders soften */
:root[data-theme="dark"] .dc2-screen .dc2-set, :root[data-theme="dark"] .dc2-screen .dc2-box { border-color: #2c3a4f; }
/* print */
.dchart-print .dc-h2 { align-items: center; }
.dchart-print .dc-title { display: inline-block; background: #0f2d52; color: #fff; font-size: 17px; padding: 6px 16px; border-radius: 9px; letter-spacing: .01em; }
.dchart-print .dc-title span { font-weight: 600; font-size: 14px; }
.dchart-print .dc-by { display: block; font-style: normal; font-size: 13px; font-weight: 650; color: #333; margin: 1px 0 2px; }
.dchart-print .dc2-set { break-inside: avoid; margin-top: 6px; padding: 0 10px 8px; }
.dchart-print .dc2 { margin-bottom: 4px; }
/* print: header + both charts + legend fit page 1 of A4 landscape; findings and the plan follow */
.dchart-print:has(.dc2) { padding: 0 1mm 2mm; }
.dchart-print .dc-h2 { padding-bottom: 6px; margin-bottom: 6px; }
.dchart-print .dc-h2 .dc-biz img { width: 40px; height: 40px; }
.dchart-print .dc2-bar { margin: 6px auto; padding: 4px 18px; font-size: 14px; }
.dchart-print .dc2-body { grid-template-columns: minmax(0, 1fr) 232px; }
.dchart-print .dc2-jaws { gap: 3px; }
.dchart-print .dc2-t { gap: 3px; }
.dchart-print .dc2-box > b { padding: 4px 8px; margin-bottom: 5px; }
.dchart-print .dc2-box ul { gap: 2px; }
.dchart-print .dc2-types img { height: 38px; }

/* crown types (6 Nov 2026): zirconia = light gold, PFM = bronze; plain Crown stays gold */
.sw.cond-crown_zr { background: #e8c14f; border-color: #c9a227; } .sw.cond-crown_pfm { background: #8a6a1f; border-color: #8a6a1f; }
.cond-opt .sw.cond-crown_zr { color: #4a3400; }
.tooth-dot.cond-crown_zr { background: #c9a227; } .tooth-dot.cond-crown_pfm { background: #8a6a1f; }
.mt.cond-crown_zr path { fill: #e8c14f; stroke: #a87a0c; } .mt.cond-crown_pfm path { fill: #8a6a1f; stroke: #5e4710; }
.tooth.cond-crown_zr svg path { fill: #e8c14f; stroke: #a87a0c; } .tooth.cond-crown_pfm svg path { fill: #8a6a1f; stroke: #5e4710; }
.dc2-t.cond-crown_zr { --cc: #e2b72e; } .dc2-t.cond-crown_pfm { --cc: #8a6a1f; }
.dc2-t.cond-crown_zr i, .dc2-t.cond-crown_zr:not(.cond-healthy) small { color: #3d2b00; }

/* crown + RCT (6 Nov 2026): two-tone = the crown's colour with the root canal purple */
.sw.cond-crown_zr_rct, .tooth-dot.cond-crown_zr_rct { background: linear-gradient(135deg, #e2b72e 0 50%, #7a4ff0 50% 100%); border-color: #7a4ff0; }
.sw.cond-crown_pfm_rct, .tooth-dot.cond-crown_pfm_rct { background: linear-gradient(135deg, #8a6a1f 0 50%, #7a4ff0 50% 100%); border-color: #7a4ff0; }
.cond-opt .sw.cond-crown_zr_rct, .cond-opt .sw.cond-crown_pfm_rct { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); font-size: 9.5px; letter-spacing: -.02em; }
.cond-opt .sw.cond-crown_pfm_rct { font-size: 7.5px; letter-spacing: -.05em; }
.mt.cond-crown_zr_rct path { fill: #e8c14f; stroke: #7a4ff0; } .mt.cond-crown_pfm_rct path { fill: #8a6a1f; stroke: #7a4ff0; }
.dc2-t.cond-crown_zr_rct { --cc: #7a4ff0; --cg: linear-gradient(135deg, #e2b72e 0 50%, #7a4ff0 50% 100%); }
.dc2-t.cond-crown_pfm_rct { --cc: #7a4ff0; --cg: linear-gradient(135deg, #8a6a1f 0 50%, #7a4ff0 50% 100%); }
.dc2-t.cond-crown_zr_rct .dc2-tint, .dc2-t.cond-crown_pfm_rct .dc2-tint { background: var(--cg); }
.dc2-t.cond-crown_zr_rct i, .dc2-t.cond-crown_pfm_rct i, .dc2-t.cond-crown_zr_rct small, .dc2-t.cond-crown_pfm_rct small { background: var(--cg); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.dc2-t i.long { font-size: 9.5px; padding: 1px 3px; letter-spacing: -.02em; }
@container (max-width: 560px) { .dc2-t i.long { font-size: 6.5px; padding: 0 1px; } }

/* treatment summary (6 Nov 2026): totals + one row per treatment with tooth ranges; the same on screen and in the PDF */
.dsum-wrap { margin-top: 14px; }
.dsum-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dsum-tile { border-radius: 12px; padding: 12px 14px; color: #13233a; }
.dsum-tile b { display: block; font-size: 26px; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dsum-tile span { display: block; font-size: 12.5px; font-weight: 650; margin-top: 2px; }
.dsum-tile.t-crown { background: #fbf1d3; } .dsum-tile.t-crown b { color: #9a6b00; }
.dsum-tile.t-rct { background: #ece6fd; } .dsum-tile.t-rct b { color: #5a35c4; }
.dsum-tile.t-impl { background: #dcf3ef; } .dsum-tile.t-impl b { color: #0d7f73; }
.dsum-tile.t-other { background: #e9eef5; } .dsum-tile.t-other b { color: #475569; }
.dsum-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.dsum-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 650; padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.dsum-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dsum-table td:first-child { font-weight: 650; white-space: nowrap; } .dsum-table td:first-child small { font-weight: 500; color: var(--ink-3); }
.dsum-table td:last-child, .dsum-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; width: 48px; }
.dsum-table .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; border: 1px solid transparent; }
.dsum-table .nw { white-space: nowrap; }
.dsum-notes { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; line-height: 1.55; }
.dsum-notes span b { color: var(--ink); }
@media (max-width: 560px) { .dsum-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dsum-table td:first-child { white-space: normal; } }
:root[data-theme="dark"] .dsum-tile { filter: saturate(.9) brightness(.92); }
/* in the PDF: compact, black text, fixed colours */
.dchart-print .dsum-tiles { gap: 8px; } .dchart-print .dsum-tile { padding: 8px 10px; } .dchart-print .dsum-tile b { font-size: 20px; } .dchart-print .dsum-tile span { font-size: 11px; }
.dchart-print .dsum-table { font-size: 11.5px; margin-top: 8px; } .dchart-print .dsum-table th { color: #555; border-bottom-color: #bbb; } .dchart-print .dsum-table td { border-bottom-color: #ddd; padding: 5px 6px; border-left: 0; border-right: 0; border-top: 0; }
.dchart-print .dsum-table th { background: none; border-left: 0; border-right: 0; border-top: 0; padding: 4px 6px; }
.dchart-print .dsum-notes { color: #222; font-size: 11px; } .dchart-print .dsum-notes span b { color: #000; }
.dchart-print .dsum, .dchart-print .dc-sumsec { break-inside: avoid; }
/* 9 Nov 2026: a logo is shown whole (contain), never cropped; logos are saved as squares with their own background (lib/fmt.js squareLogo) */

/* ===================== veterinary hospital (9 Nov 2026, /demo/vet/): emerald night look, 3D hub, wards, treatment sheet ===================== */
html[data-look="vet"] { --hero-tint: rgba(25, 165, 150, .22); --hero-fade: rgba(3, 16, 12, .7); --hero-1: #03100c; --hero-2: #0b3b31; --hero-3: #19a596; --hero-glow: rgba(47, 214, 180, .38); --hero-em: #ffd27a;
  --bg: #f2f8f6; --bg-2: #e7f2ee; --surface: #ffffff; --surface-2: #f9fcfb; --surface-3: #ecf4f1; --line: #dceae5; --line-2: #c7dcd5; --ink: #062019; --ink-2: #3d5a52; --ink-3: #728b84; --glass: rgba(255, 255, 255, .86);
  --art: radial-gradient(900px 480px at 108% -8%, rgba(25, 165, 150, .14), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(255, 181, 71, .12), transparent 58%);
  --tile-1: #dcf3ec; --tile-1-ink: #0b6b5a; --tile-2: #fff0d6; --tile-2-ink: #9a5800; --tile-3: #e6ecff; --tile-3-ink: #2a4fc4; --tile-4: #fde6ea; --tile-4-ink: #b4152b; }
html[data-look="vet"][data-theme="dark"] { --bg: #040d0a; --bg-2: #07120e; --surface: #0b1814; --surface-2: #0f1f1a; --surface-3: #142822; --line: #1b3029; --line-2: #264037; --ink: #e8f6f1; --ink-2: #a3bdb5; --ink-3: #6d8780; --glass: rgba(11, 24, 20, .84);
  --art: radial-gradient(900px 520px at 108% -8%, rgba(47, 214, 180, .13), transparent 60%), radial-gradient(700px 420px at -14% -6%, rgba(255, 181, 71, .08), transparent 58%); }

/* 3D emblem: stacked layers in real 3D space */
.vemb { --s: 110px; width: var(--s); height: var(--s); position: relative; perspective: 600px; flex: 0 0 auto; }
.vemb-rot { position: absolute; inset: 0; transform-style: preserve-3d; animation: vembTurn 9s ease-in-out infinite; }
.vemb-l { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--z) * 1.6px)); }
.vemb-l.top { filter: drop-shadow(0 0 18px rgba(47, 214, 180, .55)); }
.vemb-shine { position: absolute; inset: 6%; border-radius: 26%; transform: translateZ(15px); background: linear-gradient(115deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .18) 100%); mix-blend-mode: screen; pointer-events: none; }
.vemb-floor { position: absolute; left: 12%; right: 12%; bottom: -14%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 214, 180, .45), transparent); filter: blur(6px); animation: vembFloor 9s ease-in-out infinite; }
@keyframes vembTurn { 0%, 100% { transform: rotateY(-28deg) rotateX(10deg); } 50% { transform: rotateY(28deg) rotateX(4deg); } }
@keyframes vembFloor { 0%, 100% { transform: scaleX(.85); opacity: .7; } 50% { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vemb-rot, .vemb-floor { animation: none; } .vemb-rot { transform: rotateY(-18deg) rotateX(8deg); } }

/* the hub */
.vh { position: relative; margin: 14px 0 18px; padding: 16px; border-radius: 26px; overflow: hidden; color: #eafff8;
  background: radial-gradient(600px 300px at 90% -20%, rgba(47, 214, 180, .35), transparent 60%), radial-gradient(500px 260px at -10% 120%, rgba(255, 181, 71, .18), transparent 60%), linear-gradient(160deg, #06221b 0%, #031410 70%, #020c09 100%);
  box-shadow: 0 30px 60px -30px rgba(3, 30, 24, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
.vh::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(47, 214, 180, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 214, 180, .06) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.vh-top { position: relative; display: flex; align-items: center; gap: 16px; padding: 4px 2px 14px; }
.vh-tx small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; color: #7fe9cf; font-weight: 600; }
.vh-tx b { display: block; font-size: 19px; line-height: 1.25; margin-top: 4px; font-weight: 650; }
.vh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vh-c { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.vh-c i { width: 6px; height: 6px; border-radius: 99px; background: #2fd6b4; box-shadow: 0 0 8px #2fd6b4; }
.vh-c.red i { background: #ff4d5e; box-shadow: 0 0 10px #ff4d5e; animation: vPulse 1.4s ease-in-out infinite; }
.vh-c.amber i { background: #ffb547; box-shadow: 0 0 8px #ffb547; }
@keyframes vPulse { 50% { opacity: .35; } }
.vh-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ch > .vh + .np { margin-top: 22px; }   /* the hub sits between the header and the patient card (no overlap) */
@media (min-width: 720px) { .vh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vh.full .vh-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* 3D tiles (tilt with the pointer) */
.v3d { --rx: 0deg; --ry: 0deg; --t1: #1aa58c; --t2: #0b5c4c; position: relative; display: block; text-decoration: none; color: inherit; transform-style: preserve-3d; transform: perspective(620px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; border-radius: 18px; }
.v3d-face { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 104px; padding: 12px 11px 11px; border-radius: 18px; color: #fff; transform-style: preserve-3d;
  background: linear-gradient(150deg, var(--t1), var(--t2)); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 -10px 24px -14px rgba(0, 0, 0, .55) inset, 0 16px 30px -18px var(--t2), 0 4px 0 -1px rgba(0, 0, 0, .35); }
.v3d-face::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 42%); }
.v3d-orb { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; transform: translateZ(26px); margin-bottom: 5px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, .25) 100%); color: var(--t2); box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .55), inset 0 -3px 6px rgba(0, 0, 0, .12); }
.v3d-orb .ico { width: 22px; height: 22px; stroke-width: 2.2; }
.v3d b { font-size: 13.5px; font-weight: 650; transform: translateZ(16px); }
.v3d small { font-size: 11px; opacity: .85; line-height: 1.3; transform: translateZ(12px); }
.v3d em { position: absolute; top: 9px; right: 9px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #ff3b4e; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; transform: translateZ(30px); box-shadow: 0 0 12px rgba(255, 59, 78, .7); }
.v3d.alert .v3d-face { box-shadow: 0 0 0 1.5px rgba(255, 120, 130, .9), 0 16px 30px -18px var(--t2); }
.v3d:active { transform: perspective(620px) rotateX(var(--rx)) rotateY(var(--ry)) scale(.97); }
.tone-teal { --t1: #1fbfa2; --t2: #0a5c4d; } .tone-green { --t1: #3fc56b; --t2: #155c2c; } .tone-red { --t1: #ff5468; --t2: #7a0b1d; } .tone-crimson { --t1: #e8344a; --t2: #5e0716; }
.tone-amber { --t1: #ffb547; --t2: #8a4d00; } .tone-orange { --t1: #ff7a3d; --t2: #7a2c06; } .tone-violet { --t1: #9a7bff; --t2: #3a1f8f; } .tone-blue { --t1: #4d8dff; --t2: #11358f; }
.tone-indigo { --t1: #6f6bff; --t2: #24206e; } .tone-pink { --t1: #ff6fae; --t2: #7a1446; } .tone-gold { --t1: #e3b65c; --t2: #6b4a10; } .tone-cyan { --t1: #33d1e8; --t2: #0a5866; } .tone-slate { --t1: #7d8ca3; --t2: #2a3342; }

/* wards: bed board */
.vw { margin: 0 0 16px; }
.vw-h { display: flex; align-items: baseline; gap: 10px; margin: 6px 2px 10px; }
.vw-h b { font-size: 15px; } .vw-h small { color: var(--ink-3); font-size: 12px; }
.vw-h span { margin-left: auto; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 99px; background: var(--surface-3); color: var(--ink); }
.vw-beds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .vw-beds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vbed { all: unset; box-sizing: border-box; cursor: pointer; display: block; border-radius: 18px; }
.vbed .v3d-face { min-height: 128px; }
.vbed.c-critical .v3d-face { background: linear-gradient(155deg, #ff5468, #6a0717); animation: vCrit 2.2s ease-in-out infinite; }
@keyframes vCrit { 50% { box-shadow: 0 0 0 2px rgba(255, 84, 104, .75), 0 0 28px -4px rgba(255, 84, 104, .8); } }
.vbed-n { position: absolute; top: 10px; right: 12px; font-weight: 800; font-size: 20px; opacity: .55; transform: translateZ(10px); }
.vbed-em { font-size: 26px; line-height: 1; transform: translateZ(28px); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.vbed b { font-size: 15px; margin-top: 4px; }
.vbed-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; transform: translateZ(14px); }
.vbed-row .chip { background: rgba(255, 255, 255, .18); color: #fff; border: 0; }
.vbed-hot { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: #ff3b4e; color: #fff; }
.vbed-next { margin-top: auto; opacity: .8; }
.vbed.empty { border: 1.5px dashed var(--line-2); min-height: 128px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--ink-3); position: relative; }
.vbed.empty .vbed-n { color: var(--ink-3); } .vbed.empty small { display: block; font-size: 12px; margin-top: 2px; }
.vbed.empty:hover { border-color: var(--accent); color: var(--accent); }

/* sheets & rows */
.vt-pethead { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface-3); margin-bottom: 10px; }
.vt-pethead .body { flex: 1; min-width: 0; } .vt-pethead b { display: block; font-size: 15px; } .vt-pethead small { color: var(--ink-3); font-size: 12px; }
.vt-em { font-size: 26px; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); flex: 0 0 auto; }
.vt-em.sm { font-size: 18px; width: 34px; height: 34px; border-radius: 11px; }
.vt-alert { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--neg-soft, rgba(255, 80, 90, .12)); color: var(--neg); font-weight: 600; font-size: 13px; margin: 6px 0 10px; }
.vt-admstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .vt-admstats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vt-admstats > div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.vt-admstats small { display: block; color: var(--ink-3); font-size: 11px; } .vt-admstats b { font-size: 14px; }
.vt-bad { color: var(--neg) !important; }
.vt-marrow { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.vt-marrow .body { flex: 1 1 180px; min-width: 0; } .vt-marrow small { display: block; color: var(--ink-3); font-size: 12px; }
.vt-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-slot { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.vt-slot.done { background: rgba(31, 160, 90, .16); border-color: rgba(31, 160, 90, .5); color: var(--pos); }
.vt-slot.late { background: rgba(229, 41, 61, .12); border-color: var(--neg); color: var(--neg); animation: vPulse 1.6s ease-in-out infinite; }
.vt-vitlist { margin-top: 10px; } .vt-vit { padding: 10px 2px; border-top: 1px solid var(--line); } .vt-vit > small { color: var(--ink-3); font-size: 11.5px; }
.vt-vitvals { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 13px; }
.vt-fluidout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
@media (min-width: 640px) { .vt-fluidout { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vt-fluidout > div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.vt-fluidout small { display: block; color: var(--ink-3); font-size: 11px; } .vt-fluidout b { font-size: 16px; }
.vt-fluidout .hl, .vt-doseout .hl { background: linear-gradient(150deg, #19a596, #0a5c4d); color: #fff; border: 0; }
.vt-fluidout .hl small, .vt-doseout .hl small { color: rgba(255, 255, 255, .8); }
.vt-dose { padding: 12px; border-radius: 16px; background: var(--surface-3); }
.vt-doseout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 8px; }
.vt-doseout > div { padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.vt-doseout small { display: block; color: var(--ink-3); font-size: 11px; } .vt-doseout b { font-size: 16px; }
.vt-warn { display: flex; gap: 6px; align-items: flex-start; color: var(--warn); margin: 4px 0 8px; }
.vt-homerow { display: grid; grid-template-columns: 2fr 1.4fr 0.8fr 0.7fr auto; gap: 6px; margin-bottom: 6px; } .vt-homerow .input { min-width: 0; }
.vt-notes > div { padding: 10px 2px; border-top: 1px solid var(--line); } .vt-notes small { color: var(--ink-3); font-size: 11.5px; } .vt-notes p { margin-top: 2px; }
.vt-steps { display: flex; gap: 6px; margin-bottom: 12px; }
.vt-step { flex: 1; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.vt-step i { width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--surface-3); }
.vt-step.on { color: var(--accent); border-color: var(--accent); } .vt-step.on i { background: var(--accent); color: var(--on-accent); }
.vt-labtab { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.vt-labh, .vt-labr { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 0.6fr; gap: 8px; align-items: center; padding: 8px 12px; }
.vt-labh { background: var(--surface-3); font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.vt-labr { border-top: 1px solid var(--line); } .vt-labr small { display: block; color: var(--ink-3); font-size: 11px; } .vt-labr.fl { background: rgba(229, 41, 61, .07); }
.vt-lin { display: flex; align-items: center; gap: 6px; } .vt-lin .input, .vt-lin .select { min-width: 0; }
.vt-flag { color: #fff; background: var(--neg); border-radius: 6px; padding: 2px 6px; font-size: 11px; }
.vt-vaxpick, .vt-wardpick, .vt-tri { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vt-vp, .vt-wp, .vt-tr { position: relative; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.vt-vp b, .vt-wp b, .vt-tr b { display: block; font-size: 13.5px; }
.vt-vp small, .vt-wp small, .vt-tr small { display: block; color: var(--ink-3); font-size: 11.5px; line-height: 1.3; margin-top: 2px; }
.vt-vp i { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent); }
.vt-vp.late { border-color: var(--neg); } .vt-vp.on, .vt-wp.on { border-color: var(--accent); background: var(--accent-soft); }
.vt-tr.tri-red { border-left: 6px solid #e5293d; } .vt-tr.tri-orange { border-left: 6px solid #ff7a1a; } .vt-tr.tri-yellow { border-left: 6px solid #f2c200; } .vt-tr.tri-green { border-left: 6px solid #2fb35a; }
.vt-tr.on.tri-red { background: rgba(229, 41, 61, .12); border-color: #e5293d; } .vt-tr.on.tri-orange { background: rgba(255, 122, 26, .12); border-color: #ff7a1a; }
.vt-tr.on.tri-yellow { background: rgba(242, 194, 0, .14); border-color: #d9ae00; } .vt-tr.on.tri-green { background: rgba(47, 179, 90, .12); border-color: #2fb35a; }
.vt-quickvit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vt-quickvit label small { display: block; color: var(--ink-3); font-size: 11px; margin-bottom: 3px; } .vt-quickvit label.bad .input { border-color: var(--neg); color: var(--neg); }
.vt-vin { position: relative; } .vt-vin.bad .input { border-color: var(--neg); color: var(--neg); } .vt-vin b { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--neg); font-size: 12px; }
.pill.cond-critical.on { background: var(--neg); border-color: var(--neg); color: #fff; } .pill.cond-guarded.on { background: var(--warn); border-color: var(--warn); color: #fff; } .pill.cond-improving.on { background: var(--pos); border-color: var(--pos); color: #fff; }
.vt-time { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 46px; font-size: 14px; } .vt-time small { display: block; font-weight: 500; font-size: 10.5px; color: var(--ink-3); }
.vt-trow.late, .vt-due .row.late { background: rgba(229, 41, 61, .08); } .vt-trow.late .vt-time, .vt-due .row.late .vt-time { color: var(--neg); } .vt-trow.done { opacity: .6; }
.section-h.neg h3 { color: var(--neg); } .vt-due { margin: 14px 0; }

/* diagnostics worklist */
.vdx-cols { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; } @media (min-width: 820px) { .vdx-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vdx-col { padding: 10px; border-radius: 18px; background: var(--surface-3); } .vdx-h { display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 8px; font-weight: 700; }
.vdx { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-1); }
.vdx .body { flex: 1; min-width: 0; } .vdx b { display: block; font-size: 14px; } .vdx small { display: block; color: var(--ink-3); font-size: 12px; } .vdx.urgent { border-left: 4px solid var(--neg); }

/* emergency board */
.ver { display: grid; gap: 10px; }
.ver-card { position: relative; display: flex; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; }
.ver-card .body { flex: 1; min-width: 0; } .ver-card small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.ver-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 7px; }
.tri-red .ver-bar { background: #e5293d; box-shadow: 0 0 14px #e5293d; } .tri-orange .ver-bar { background: #ff7a1a; } .tri-yellow .ver-bar { background: #f2c200; } .tri-green .ver-bar { background: #2fb35a; }
.tri-red.ver-card { background: linear-gradient(90deg, rgba(229, 41, 61, .10), var(--surface) 40%); }
.ver-min { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--neg); }

/* ambulance */
.vamb { display: grid; gap: 10px; } @media (min-width: 720px) { .vamb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vamb-card { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.vamb-card.k-emergency { border-left: 5px solid var(--neg); } .vamb-card small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; } .vamb-card p { margin: 6px 0 2px; }
.vamb-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; } .vamb-steps i { height: 5px; border-radius: 99px; background: var(--line-2); } .vamb-steps i.on { background: var(--accent); }

/* stock */
.vst-alerts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.vst-alerts > div { padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.vst-alerts b { display: block; font-size: 20px; } .vst-alerts small { color: var(--ink-3); font-size: 11.5px; } .vst-alerts .bad b { color: var(--neg); } .vst-alerts .warn b { color: var(--warn); }
.vst-h { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 5px; background: var(--neg); color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.row .t.neg { color: var(--neg); font-weight: 700; }

/* pet file */
.vpet { padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.vpet-id { display: flex; gap: 14px; align-items: center; }
.vpet-em { width: 64px; height: 64px; display: grid; place-items: center; font-size: 36px; border-radius: 20px; background: linear-gradient(150deg, #1fbfa2, #0a5c4d); box-shadow: 0 14px 24px -14px #0a5c4d, inset 0 1px 0 rgba(255, 255, 255, .3); flex: 0 0 auto; }
.vpet-id b { font-size: 20px; } .vpet-id small { display: block; color: var(--ink-3); font-size: 12.5px; }
.vpet-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; } @media (min-width: 640px) { .vpet-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vpet-stats > div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.vpet-stats small { display: block; color: var(--ink-3); font-size: 11px; } .vpet-stats b { font-size: 16px; } .vpet-stats svg { display: block; margin-top: 4px; color: var(--accent); }
.vpet-stats .due b { color: var(--warn); } .vpet-stats .in b { color: var(--accent); } .vpet-acts { gap: 6px; margin-top: 12px; }
.vtl { display: grid; gap: 2px; }
.vtl-e { all: unset; box-sizing: border-box; display: flex; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: default; }
.vtl-e:not(:disabled) { cursor: pointer; } .vtl-e.up { background: var(--accent-soft); border-radius: 10px; }
.vtl-d { width: 40px; text-align: center; flex: 0 0 auto; } .vtl-d b { display: block; font-size: 17px; line-height: 1; } .vtl-d small { font-size: 10.5px; color: var(--ink-3); }
.vtl-i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.vtl-e .body { flex: 1; min-width: 0; } .vtl-e b { font-size: 13.5px; } .vtl-e small { display: block; color: var(--ink-3); font-size: 12px; }
.vvx { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.vvx-c { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); } .vvx-c small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.vvx-c.late { border-color: var(--neg); background: rgba(229, 41, 61, .05); } .vvx-due { display: block; margin-top: 6px; font-size: 13px; } .vvx-c.late .vvx-due { color: var(--neg); }

/* printed documents */
.vp-doc { font: 13px/1.45 Geist, system-ui, sans-serif; color: #111; padding: 6px 4px; }
.vp-head { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #0a5c4d; padding-bottom: 10px; margin-bottom: 12px; }
.vp-head img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; }
.vp-head b { display: block; font-size: 17px; } .vp-head small { color: #555; font-size: 11.5px; }
.vp-title { margin-left: auto; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #0a5c4d; font-size: 13px; }
.vp-pet { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; margin-bottom: 10px; }
.vp-em { font-size: 28px; } .vp-pet b { font-size: 16px; display: block; } .vp-pet small { color: #555; display: block; } .vp-own { margin-left: auto; text-align: right; }
.vp-cage { display: flex; gap: 12px; align-items: stretch; } .vp-cage .vp-pet { flex: 1; margin: 0; }
.vp-bed { display: grid; place-items: center; text-align: center; padding: 8px 14px; border-radius: 10px; background: #0a5c4d; color: #fff; font-size: 11px; } .vp-bed b { font-size: 30px; display: block; }
.vp-alert { margin: 10px 0; padding: 8px 12px; border: 2px solid #c8102e; color: #c8102e; font-weight: 800; border-radius: 8px; font-size: 14px; }
.vp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.vp-grid small { display: block; color: #666; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; } .vp-grid b { font-size: 12.5px; }
.vp-t { width: 100%; border-collapse: collapse; margin: 10px 0; }
.vp-t th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: #555; border-bottom: 1.5px solid #333; padding: 6px; }
.vp-t td { padding: 6px; border-bottom: 1px solid #e3e3e3; vertical-align: top; } .vp-t tr.fl td { background: #fff1f1; } .vp-t tr.fl td:last-child b { color: #c8102e; }
.vp-find { margin: 8px 0; } .vp-find small { color: #666; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; } .vp-note { margin-top: 12px; font-style: italic; color: #444; }
.vp-sign { display: flex; justify-content: flex-end; gap: 60px; margin-top: 40px; } .vp-sign span { border-top: 1px solid #333; padding-top: 4px; min-width: 180px; text-align: center; font-size: 11.5px; color: #444; }
.vp-rx { font: italic 700 30px Georgia, serif; color: #0a5c4d; margin: 4px 0 -6px; }
/* @deptui:start — department tools (dept/ui.js, 10 Nov 2026) */
.dx-emb { --s: 64px; position: relative; width: var(--s); height: var(--s); flex: none; perspective: calc(var(--s) * 6); }
.dx-emb-r { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(16deg) rotateY(-22deg); animation: dxYaw 9s ease-in-out infinite alternate; }
@keyframes dxYaw { to { transform: rotateX(10deg) rotateY(20deg); } }
.dx-emb-r i { position: absolute; inset: 0; border-radius: 30%; transform: translateZ(calc(var(--z) * 1.6px - 9px)); background: linear-gradient(140deg, color-mix(in srgb, var(--hero-3) 70%, #000), var(--hero-1)); }
.dx-emb-r b { position: absolute; inset: 0; border-radius: 30%; display: grid; place-items: center; color: #fff; transform: translateZ(1px); background: linear-gradient(140deg, color-mix(in srgb, var(--hero-3) 55%, #fff), var(--hero-3) 55%, var(--hero-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -8px 16px rgba(0, 0, 0, .22), 0 14px 30px -10px var(--hero-3); }
.dx-emb-r b svg { width: 46%; height: 46%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.dx-emb-sh { position: absolute; inset: 0; border-radius: 30%; transform: translateZ(2px); background: linear-gradient(115deg, rgba(255, 255, 255, .5), transparent 38%, transparent 72%, rgba(255, 255, 255, .15)); pointer-events: none; }
.dx-hub { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl, 24px); padding: 16px; margin-bottom: 14px; color: #fff;
  background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--hero-3) 45%, transparent), transparent 70%), linear-gradient(150deg, var(--hero-2), var(--hero-1)); box-shadow: 0 18px 40px -22px var(--hero-2); }
.dx-hub::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(80% 90% at 90% 0%, #000, transparent 70%); mask-image: radial-gradient(80% 90% at 90% 0%, #000, transparent 70%); }
.dx-hub-h { display: flex; align-items: center; gap: 14px; }
.dx-hub-h > div { flex: 1; min-width: 0; }
.dx-hub-h small { display: block; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; opacity: .75; }
.dx-hub-h b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.dx-open { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.dx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-top: 14px; }
.dx-tile { display: flex; flex-direction: column; gap: 1px; padding: 11px 12px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); transition: transform .25s, background .25s; }
.dx-tile:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .16); }
.dx-tile .dx-ti { background: rgba(255, 255, 255, .16); color: #fff; margin-bottom: 6px; }
.dx-tile b { font-size: 22px; font-weight: 700; line-height: 1.1; }
.dx-tile span { font-size: 12.5px; font-weight: 600; }
.dx-tile small { font-size: 11px; opacity: .72; }
.dx-hub.full { padding: 20px; }
.dx-hub.full .dx-hub-h b { font-size: 24px; }
.dx-ti { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.dx-ti svg { width: 16px; height: 16px; }
.dx-ti.sm { width: 26px; height: 26px; border-radius: 8px; }
.dx-due .row, .dx-page .row { gap: 10px; }
.dx-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; }
.dx-who .body { min-width: 0; }
.dx-when { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: var(--surface-3); }
.dx-when.late { color: var(--neg, #c62828); background: color-mix(in srgb, var(--neg, #c62828) 12%, transparent); }
.dx-al { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--neg, #c62828); background: color-mix(in srgb, var(--neg, #c62828) 12%, transparent); }
.dx-al svg { width: 17px; height: 17px; }
.dx-plan .body { flex: 1; min-width: 0; }
.dx-plan.hot { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.dx-bar { position: relative; display: block; height: 5px; border-radius: 5px; background: var(--surface-3); margin-top: 7px; overflow: hidden; }
.dx-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, var(--hero-3), var(--accent)); }
.dx-bar.lg { height: 9px; margin-top: 12px; overflow: visible; }
.dx-bar em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--surface); }
.dx-calcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dx-calc { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-1); }
.dx-calc b { flex: 1; font-size: 14.5px; font-weight: 600; }
.dx-tab { display: grid; gap: 12px; }
.dx-card .dx-ch-h, .dx-chart .dx-ch-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dx-card .dx-ch-h b, .dx-chart .dx-ch-h b { flex: 1; font-size: 15.5px; font-weight: 650; letter-spacing: -.005em; }
.dx-chart { margin: 4px 0 10px; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.dx-chart svg { width: 100%; height: 130px; display: block; }
.dx-chart.growth svg { height: 160px; }
.dx-chart.audio svg { height: 190px; }
.dx-chart .dx-ch-h b { font-size: 13px; }
.dx-ax { font-size: 9px; fill: var(--ink-3); }
.dx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 11.5px; color: var(--ink-2); }
.dx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dx-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.dx-legend i.band { height: 9px; background: var(--accent-soft); }
.dx-legend i.dash { background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 7px); }
.dx-hist { display: grid; gap: 6px; margin-top: 4px; }
.dx-h { display: grid; gap: 2px; text-align: left; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; }
.dx-h.row-ish { cursor: default; }
.dx-h:hover { border-color: var(--line-2); }
.dx-h-d { font-size: 11.5px; color: var(--ink-3); }
.dx-h-t { font-size: 14px; font-weight: 600; }
.dx-h-f { font-size: 12.5px; color: var(--neg, #c62828); font-weight: 600; }
.dx-h-f.ok { color: var(--pos, #1b8a5a); }
.dx-h-f.wait { color: var(--warn, #b26a00); }
.dx-h-n { font-size: 12.5px; color: var(--ink-2); }
.dx-h-a { display: flex; gap: 6px; margin-top: 6px; }
.dx-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dx-big small { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.dx-big b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.dx-sched { display: grid; gap: 6px; margin-top: 12px; max-height: 360px; overflow-y: auto; padding-right: 2px; }
.dx-s { display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; }
.dx-s-w { width: 54px; flex: none; font-size: 12px; font-weight: 700; color: var(--accent); }
.dx-s-b { flex: 1; min-width: 0; display: grid; }
.dx-s-b b { font-size: 13.5px; font-weight: 600; }
.dx-s-b small { font-size: 11.5px; color: var(--ink-3); }
.dx-s-c { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.dx-s-c svg { width: 13px; height: 13px; }
.dx-s.done { opacity: .62; }
.dx-s.done .dx-s-c { background: var(--accent); border-color: var(--accent); color: #fff; }
.dx-s.next { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dx-s.late:not(.done) .dx-s-b small { color: var(--neg, #c62828); }
.dx-s.k-scan .dx-s-w { color: var(--tile-3-ink); }
.dx-s.k-test .dx-s-w { color: var(--tile-2-ink); }
.dx-s.k-vaccine .dx-s-w { color: var(--tile-4-ink); }
.dx-vax { display: grid; gap: 8px; }
.dx-vg { padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.dx-vg.done { background: var(--surface-2); }
.dx-vg.late { border-color: color-mix(in srgb, var(--neg, #c62828) 45%, transparent); }
.dx-vg-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.dx-vg-h b { font-size: 13px; }
.dx-vg-h small { font-size: 11.5px; color: var(--ink-3); }
.dx-vg.late .dx-vg-h small { color: var(--neg, #c62828); font-weight: 600; }
.dx-vg-l { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-v { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.dx-v.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.dx-cyc { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin-top: 10px; }
.dx-cy { display: grid; place-items: center; gap: 1px; padding: 9px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; }
.dx-cy b { font-size: 14px; }
.dx-cy small { font-size: 10.5px; color: var(--ink-3); }
.dx-cy.done { background: var(--accent-soft); border-color: transparent; }
.dx-cy.done b { color: var(--accent); }
.dx-cy.late small { color: var(--neg, #c62828); font-weight: 600; }
.dx-days { display: flex; gap: 6px; }
.dx-days span, .dx-days button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-3); background: var(--surface-3); border: 1.5px solid transparent; }
.dx-days.pick button { width: auto; padding: 0 10px; border-radius: 999px; cursor: pointer; }
.dx-days .on { background: var(--accent); color: #fff; }
.dx-days .td { border-color: var(--accent); }
.dx-vt table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dx-vt th, .dx-vt td { padding: 7px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.dx-vt thead th { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; }
.dx-vt tbody th { text-align: left; font-weight: 650; }
.dx-vt td.neg { color: var(--neg, #c62828); font-weight: 700; }
.dx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.dx-form .field.full { grid-column: 1 / -1; }
.dx-in { position: relative; }
.dx-in b { position: absolute; right: 10px; top: 50%; translate: 0 -50%; font-size: 11px; font-weight: 800; color: #fff; background: var(--neg, #c62828); padding: 2px 6px; border-radius: 6px; }
.dx-in.bad .input { border-color: var(--neg, #c62828); }
.dx-live { display: grid; gap: 6px; margin-top: 4px; }
.dx-live span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 8px 10px; border-radius: 10px; }
.dx-chks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dx-priv { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.dx-lp { margin-bottom: 12px; }
.dx-lp > b { display: block; font-size: 13px; margin: 2px 0 6px; color: var(--accent); }
.dx-lr { display: grid; grid-template-columns: 1fr 110px; grid-template-areas: "l i" "u u"; gap: 2px 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); position: relative; }
.dx-lr span { grid-area: l; font-size: 13.5px; font-weight: 500; }
.dx-lr .input { grid-area: i; height: 38px; }
.dx-lr small { grid-area: u; font-size: 11px; color: var(--ink-3); }
.dx-lr em { position: absolute; right: -2px; top: 2px; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--neg, #c62828); padding: 1px 5px; border-radius: 5px; }
.dx-lr.bad .input { border-color: var(--neg, #c62828); }
.dx-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.dx-out div { padding: 12px; border-radius: 14px; background: var(--accent-soft); }
.dx-out small { display: block; font-size: 11px; color: var(--ink-2); }
.dx-out b { display: block; font-size: 17px; font-weight: 700; color: var(--accent-deep, var(--accent)); }
.pz-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 2px; padding: 12px; border-radius: 14px; border: 1px dashed var(--line-2); font-weight: 600; font-size: 14px; color: var(--accent); }
.vp-h4 { font-size: 13px; margin: 14px 0 6px; }
.ch > .dx-hub + .np { margin-top: 22px; }   /* the department desk sits between the header and the patient card */
.dx-tile b.num { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .dx-form { grid-template-columns: 1fr 1fr; }
  .dx-hub:not(.full) .dx-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px 2px; }
  .dx-hub:not(.full) .dx-tiles::-webkit-scrollbar { display: none; }
  .dx-hub:not(.full) .dx-tile { flex: 0 0 132px; scroll-snap-align: start; padding: 10px 11px; }
  .dx-hub:not(.full) .dx-tile .dx-ti { width: 26px; height: 26px; margin-bottom: 4px; }
  .dx-hub:not(.full) .dx-tile b { font-size: 20px; }
  .dx-hub.full .dx-tiles { grid-template-columns: 1fr 1fr; }
  .dx-big b { font-size: 16px; }
  .dx-chks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .dx-emb-r { animation: none; } }
/* setup wizard: the department picker */
.ob-dept { display: grid; gap: 10px; }
.ob-dsel { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; border: 1.5px solid var(--accent); background: var(--accent-soft); }
.ob-dsel img { width: 72px; height: 48px; object-fit: cover; border-radius: 10px; flex: none; }
.ob-dsel div { flex: 1; min-width: 0; display: grid; }
.ob-dsel small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ob-dsel b { font-size: 15.5px; font-weight: 650; }
.ob-dsel span { font-size: 12.5px; color: var(--ink-2); }
.ob-dsel > svg { color: var(--accent); width: 22px; height: 22px; flex: none; }
.ob-dsearch { position: relative; }
.ob-dsearch svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--ink-3); }
.ob-dsearch .input { padding-left: 38px; }
.ob-dlist { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 4px 6px 8px; overscroll-behavior: contain; }
.ob-dg > small { display: block; position: sticky; top: 0; z-index: 1; padding: 10px 6px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--surface); }
.ob-d { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 12px; border: 1.5px solid transparent; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.ob-d:hover { background: var(--surface-2); }
.ob-d img { width: 60px; height: 40px; object-fit: cover; border-radius: 9px; flex: none; }
.ob-d span { flex: 1; min-width: 0; display: grid; }
.ob-d b { font-size: 14px; font-weight: 600; }
.ob-d small { font-size: 12px; color: var(--ink-3); }
.ob-d > svg { color: var(--accent); width: 18px; height: 18px; flex: none; }
.ob-d.on { border-color: var(--accent); background: var(--accent-soft); }
/* owner (10 Nov 2026): on a phone the launch screen says the demo is best on a desktop (the full design and every feature show there) */
.ls-desk-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.ls-desk-note svg { width: 14px; height: 14px; flex: none; opacity: .85; }
@media (min-width: 1024px) { .ls-desk-note { display: none; } }
/* @deptui:end */
/* @refwalk — referring doctors + walk-ins (ui/refwalk.js, 10 Nov 2026) */
.wk-tag { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; vertical-align: -4px; border-radius: 6px; color: var(--tile-2-ink, #ae4a22); background: var(--tile-2, #fde6d9); }
.wk-tag svg { width: 13px; height: 13px; }
.wk-row { margin: 2px 0 10px; }
.rf-pick .select { width: 100%; }
.rf-add { display: grid; gap: 8px; padding: 10px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--surface-2); }
.rf-tabs { display: grid; gap: 6px; }
.rf-tab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rf-tab .check { flex: 1; min-width: 160px; }
.rf-first { font: inherit; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.rf-first.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.rf-new { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.rf-list { display: grid; gap: 6px; margin-top: 10px; max-height: 320px; overflow-y: auto; }
.rf-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; }
.rf-panel { font: inherit; font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.rf-panel.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.rf-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rf-kpis div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.rf-kpis small { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.rf-kpis b { display: block; font-size: 22px; font-weight: 700; }
.rf-kpis span { font-size: 11.5px; color: var(--ink-3); }
.rf-rep { display: grid; gap: 4px; margin-top: 12px; }
.rf-rep-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
@media (max-width: 560px) { .rf-new { grid-template-columns: 1fr auto; } .rf-new .btn { grid-column: 1 / -1; } .rf-row { grid-template-columns: 1fr auto; } .rf-row .btn-icon { grid-column: 2; } }
/* @features — Settings → Clinic features (ui/features.js, 10 Nov 2026) */
.ft-sum { display: grid; gap: 2px; }
.ft-sum div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.ft-sum div:last-child { border-bottom: 0; }
.ft-sum b { flex: none; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); }
.ft-sum b.on { background: var(--accent-soft); color: var(--accent); }
.ft-more { margin-top: 14px; display: grid; gap: 10px; }
.ft-row { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; color: inherit; padding: 12px 14px; }
.ft-note { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.ft-note svg { flex: none; margin-top: 2px; }
/* Approved devices (12 Nov 2026): the owner's list, and the screen a front desk sees on a device that is not approved */
.dv-list { display: grid; gap: 10px; margin-top: 12px; }
.dv-row { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px 14px 6px; display: grid; gap: 8px; }
.dv-row.ask { border-color: var(--warn); }
.dv-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.dv-h svg { flex: none; color: var(--ink-3); }
.dv-code { font: 650 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--ink-2); background: var(--surface-3); padding: 5px 8px; border-radius: 8px; }
.dv-h .dv-code { margin-left: auto; }
.dv-s { font-size: 12.5px; color: var(--ink-3); }
.dv-ask { font-size: 12.5px; font-weight: 600; color: var(--warn); }
.dv-row .toggle { padding: 4px 0 6px; }
.dv-row .toggle b { font-size: 13.5px; }
.dv-load, .dv-foot { margin-top: 12px; line-height: 1.5; }
.dv-open .chip { margin-left: 6px; vertical-align: 1px; }
.dv-block { text-align: center; }
.dv-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin: 4px auto 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-1); }
.dv-t { font-size: 15px; font-weight: 600; line-height: 1.45; }
.dv-again { margin: 16px auto 0; display: flex; }
.cv-form .dv-kick { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin: 0 0 14px; color: var(--warn); font-weight: 600; }
.cv-form .dv-kick svg { flex: none; margin-top: 2px; }
/* @noshow — no-show reasons (ui/noshow.js, 10 Nov 2026) */
.ns-why { width: 100%; }
.ns-rep .section-h { flex-wrap: wrap; }
/* doctor login (10 Nov 2026): the day's summary on Home, and the two switches in Team access */
.dd { padding: 14px 16px 16px; margin: 14px 0; }
.dd-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dd-t { min-width: 0; }
.dd-t small { display: block; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dd-t b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.01em; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-nav { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.dd-pick { position: relative; overflow: hidden; cursor: pointer; }
.dd-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.dd-tiles.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dd-tile { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.dd-tile b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.dd-tile small { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.dd-tile small .ico { width: 13px; height: 13px; flex: 0 0 auto; }
.dd-tile[data-k="New"] b { color: var(--accent-deep, var(--accent)); }
.dd-svcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dd-svc { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dd-svc b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 12.5px; background: var(--accent-soft); color: var(--accent-deep); }
.dd-none { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.dl-perm { margin-top: 12px; display: grid; gap: 4px; }
@media (max-width: 420px) { .dd-tile { padding: 9px 9px; } .dd-tile b { font-size: 23px; } .dd-tile small .ico { display: none; } }
/* @family: several patients on one mobile number (ui/family.js, 13 Nov 2026) */
.fam-note { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.fam-note > .ico { flex: none; margin-top: 2px; color: var(--accent-deep, var(--accent)); }
.fam-note b { font-weight: 650; }
.fam-note p { margin-top: 2px; color: var(--ink-2); }
.fam-open { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fam-pick p { margin-bottom: 8px; line-height: 1.45; }
.fam-pick .fam-add { color: var(--accent); }
.fam-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.fam-line > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.fam-line a.chip { text-decoration: none; }
/* @import: patients from a CSV file (ui/import.js, 13 Nov 2026) */
.imp-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.imp-help { margin-top: 12px; line-height: 1.55; }
.imp-sum { margin-top: 14px; display: grid; gap: 2px; }
.imp-sum div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.imp-sum div:last-of-type { border-bottom: 0; }
.imp-sum div b { flex: none; font-weight: 650; color: var(--ink); }
.imp-sum div.ok b { color: var(--pos); }
.imp-done { text-align: center; padding: 10px 0 6px; display: grid; justify-items: center; gap: 6px; }
.imp-done b { font-size: 18px; font-weight: 650; }
.imp-ok { width: 52px; height: 52px; border-radius: 99px; display: grid; place-items: center; background: var(--pos-soft); color: var(--pos); }
/* the logo on the invoice + the front desk's day by treatment tab (13 Nov 2026, Neo Sigma) */
.inv-brand { display: flex; gap: 16px; align-items: center; min-width: 0; }
.inv-logo { width: 84px; height: 84px; border-radius: 16px; object-fit: contain; background: #fff; flex: 0 0 auto; }
@media (max-width: 520px) { .inv-logo { width: 60px; height: 60px; border-radius: 12px; } .inv-brand { gap: 12px; } }
.td-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-top: 12px; }
.td-tile small { display: block; font-size: 12px; font-weight: 550; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-tot { border-color: var(--accent); }
.td-zero b { color: var(--ink-3); }
/* Cash + UPI on one bill (14 Nov 2026, ui/splitpay.js) */
.split-pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; margin-top: -4px; }
.split-upi { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.split-upi span { display: block; font-size: 12px; color: var(--ink-3); }
.split-upi b { font-size: 18px; font-weight: 650; }
.split-err { grid-column: 1 / -1; color: var(--neg); margin: -6px 0 8px; }
/* the "Next patient" card pulls itself up over the header (margin -76px). A day card between the header and that card ("Today by treatment tab", or "Your day" for a doctor) must not be covered by it (14 Nov 2026, Neo Sigma front desk PC) */
.ch > .dd + .np { margin-top: 22px; }
/* bookings waiting for the doctor's time, on the Schedule (14 Nov 2026, Neo Sigma) */
.tbc-lane { margin-top: 14px; border: 1px dashed var(--warn); background: var(--warn-soft); }
.tbc-lane .row.click:hover { background: rgba(201, 125, 10, .08); }
.tbc-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px 2px; font-size: 14px; color: var(--warn); }
.tbc-h b { font-weight: 650; }
.tbc-n { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--warn); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tbc-sub { padding: 0 16px 10px; font-size: 12.5px; color: var(--ink-3); }
.tbc-row { align-items: flex-start; }
.tbc-row .avatar { margin-top: 2px; }
.tbc-bar { width: 4px; align-self: stretch; border-radius: 4px; flex: 0 0 auto; }
.tbc-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.tbc-chip { height: auto; min-height: 26px; padding: 4px 10px; white-space: normal; line-height: 1.25; border-radius: 14px; align-items: flex-start; text-align: left; }
.tbc-chip .ico { margin-top: 1px; flex: 0 0 auto; }
.tbc-who { font-size: 12.5px; color: var(--ink-3); }
.tbc-row .chev { align-self: center; }

/* ---------- 18 Nov 2026 (Neo Sigma, for every clinic app): phone Reports, doctor alerts, cash counter, monthly summary, revenue by category ---------- */
/* Reports on a phone: one column, nothing cut off; "By doctor" as a readable list; a larger donut above its list */
@media (max-width: 760px) { .rp-grid { grid-template-columns: minmax(0, 1fr); } }
.rp-grid .hstack > span, .rp-grid .hstack > b { min-width: 0; overflow-wrap: anywhere; }
.rf-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rf-kpis div { min-width: 0; }
.rf-kpis small { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.rf-rep-row span { min-width: 0; overflow-wrap: anywhere; }
.rf-rep-row b { flex: 0 0 auto; }
.rf-sub { display: block; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 2px 2px 2px; }
.rf-bykind { margin-bottom: 4px; }
.rp-modes { display: flex; align-items: center; gap: 20px; }
.rp-modes > svg { flex: 0 0 auto; }
@media (max-width: 520px) { .rp-modes { flex-direction: column; align-items: stretch; gap: 14px; } .rp-modes > svg { align-self: center; width: 190px; height: 190px; } .rp-legend { font-size: 14px; } }
.rp-hbars { display: grid; gap: 12px; }
.rp-hb-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.rp-hb-n { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.rp-hb-n i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.rp-hb-t b { flex: 0 0 auto; font-size: 14.5px; }
.rp-hb-s { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.rp-hb-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; display: block; }
.rp-hb-bar em { display: block; height: 100%; border-radius: 99px; }
.rp-hb-s small { flex: 0 0 auto; min-width: 54px; text-align: right; font-size: 12px; color: var(--ink-3); }
.rp-hbars > .btn { justify-self: start; }

/* a doctor's alert card and "Your month" line (Home) */
.da { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 0 0 14px; border: 1px solid var(--accent-soft); background: linear-gradient(135deg, var(--surface), var(--surface-2)); }
.da-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep, var(--accent)); }
.da-ic.on { background: rgba(31, 122, 58, .12); color: var(--pos); }
.da-b { flex: 1; min-width: 0; }
.da-b b { display: block; font-size: 14.5px; font-weight: 650; }
.da-b p { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.da-b p.da-how { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-3); color: var(--ink); }
.da-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.da-on { padding: 10px 14px; align-items: center; border-color: var(--line); background: var(--surface); }
.da-on .da-ic { width: 32px; height: 32px; border-radius: 11px; }
.da-on .da-b p { font-size: 12.5px; }
.da-on .da-acts { flex-direction: row; }
@media (max-width: 420px) { .da { flex-wrap: wrap; } .da-acts { flex-direction: row; width: 100%; justify-content: flex-end; } .da-on { flex-wrap: nowrap; } .da-on .da-acts { width: auto; flex-direction: column; } }
.mm-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin: 0 0 14px; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--line); }
.mm-row:hover { border-color: var(--line-2); }
.mm-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep, var(--accent)); }
.mm-b { flex: 1; min-width: 0; }
.mm-b b { display: block; font-size: 14px; font-weight: 650; }
.mm-b small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }

/* the front desk's cash counter */
.cc { padding: 14px 16px 14px; margin: 14px 0; }
.ch > .cc + .np { margin-top: 22px; }   /* the cash card sits between the header and the patient card (no overlap) */
.cc-need { display: flex; align-items: center; gap: 12px; border: 1px solid var(--warn); background: var(--warn-soft); }
.cc-need .cc-b { flex: 1; min-width: 0; }
.cc-need .cc-b b { display: block; font-size: 15px; font-weight: 650; }
.cc-need .cc-b p { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.cc-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--warn); }
@media (max-width: 420px) { .cc-need { flex-wrap: wrap; } .cc-need .btn { width: 100%; justify-content: center; } }
.cc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cc-t { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cc-t .ico { width: 15px; height: 15px; }
.cc-h small { font-size: 12px; color: var(--ink-3); }
.cc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.cc-tiles > div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.cc-tiles small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.cc-tiles b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; overflow-wrap: anywhere; }
.cc-tiles span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.cc-tiles .cc-drawer { border-color: var(--accent); background: var(--accent-soft); }
.cc-tiles .cc-drawer b { color: var(--accent-deep, var(--accent)); }
@media (max-width: 380px) { .cc-tiles b { font-size: 16px; } .cc-tiles > div { padding: 9px 9px; } }
.cc-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.cc-acts .btn { flex: 1; justify-content: center; min-width: 140px; }
.cc-daynav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cc-daynav b { font-size: 15px; }
.cc-tiles-s { margin: 0 0 6px; }
.cc-sub { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 16px 2px 6px; }
.cc-list { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cc-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.cc-row:first-child { border-top: 0; }
.cc-row.paid { background: var(--surface-2); }
.cc-rb { flex: 1; min-width: 0; }
.cc-rb b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cc-rb small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.cc-amt { flex: 0 0 auto; font-size: 15px; color: var(--pos); }
.cc-calc { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; margin-bottom: 14px; background: var(--surface-2); }
.cc-calc > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-top: 1px dashed var(--line); }
.cc-calc > div:first-child { border-top: 0; }
.cc-calc span { color: var(--ink-2); min-width: 0; }
.cc-calc b { flex: 0 0 auto; }
.cc-calc .tot { border-top: 1px solid var(--line-2); font-weight: 650; }
.cc-calc .tot b { font-size: 17px; color: var(--accent-deep, var(--accent)); }
.cc-summary { white-space: pre-wrap; font: 500 14px/1.6 var(--font-ui); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0; }

/* the monthly summary */
.ms-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ms-h h3 { font-size: 18px; }
.ms-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 12px; }
.ms-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-top: 12px; }
.ms-tile { position: relative; padding: 12px 12px 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.ms-tile b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: 6px; }
.ms-tile small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.ms-ti { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); color: var(--ink-3); }
.ms-ti .ico { width: 15px; height: 15px; }
.ms-all { border-color: var(--accent); background: var(--accent-soft); }
.ms-all .ms-ti { color: var(--accent-deep, var(--accent)); }
.ms-new b { color: var(--accent-deep, var(--accent)); }
.ms-empty { margin-top: 10px; }
.ms-block { margin-top: 18px; }
.ms-block h4 { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 2px 8px; }
.ms-tbl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ms-tr { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, .8fr)); gap: 6px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.ms-tr:first-child { border-top: 0; }
.ms-tr > .num { text-align: right; font-weight: 650; }
.ms-th { background: var(--surface-2); font-size: 11.5px; font-weight: 650; color: var(--ink-3); }
.ms-th > span:not(:first-child) { text-align: right; }
.ms-dn { min-width: 0; }
.ms-dn b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ms-dn small { display: block; font-size: 12px; color: var(--ink-3); }
@media (max-width: 480px) { .ms-tr { grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, .75fr)); padding: 9px 10px; gap: 4px; font-size: 13px; } .ms-th { font-size: 10.5px; } }
.ms-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ms-g { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface); min-width: 0; }
.ms-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ms-gh b { font-size: 14px; }
.ms-gh small { font-size: 11px; color: var(--ink-3); }
.ms-gi { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.ms-gi span { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }
.ms-gi b { flex: 0 0 auto; }
.ms-refs { display: grid; gap: 8px; }
.ms-ref { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.ms-ref span { min-width: 0; overflow-wrap: anywhere; }
.ms-ref i { display: block; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ms-ref em { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.ms-ref b { min-width: 28px; text-align: right; }
.ms-ref.none span { color: var(--ink-3); }
.ms-ref.none em { background: var(--ink-3); }
.ms-hint { margin-top: 10px; }
.ms-plist { max-height: 52vh; overflow: auto; padding: 2px; }
.ms-ptab { display: block; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 8px 2px 0; }
@media print {
  body.print-ms main.page > *:not(.ms) { display: none !important; }
  body.print-ms .ms { border: 0; box-shadow: none; padding: 0; }
  body.print-ms .ms-tile, body.print-ms .ms-g, body.print-ms .ms-tbl { break-inside: avoid; page-break-inside: avoid; }
  body.print-ms .ms-ref em { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* revenue by category */
.rv .section-h { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.rv-list { display: grid; gap: 4px; margin-top: 6px; }
.rv-row { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.rv-row:last-child { border-bottom: 0; }
.rv-main { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 2px 6px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rv-main:disabled { cursor: default; opacity: 1; }
.rv-name { flex: 1; min-width: 0; }
.rv-name b { display: block; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.rv-name small, .rv-amt small { display: block; font-size: 12px; color: var(--ink-3); }
.rv-amt { flex: 0 0 auto; text-align: right; }
.rv-amt b { font-size: 15.5px; }
.rv-chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform var(--t-fast, .15s); flex: 0 0 auto; }
.rv-row.open .rv-chev { transform: rotate(180deg); }
.rv-chev-sp { width: 18px; flex: 0 0 auto; }
.rv-bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 0 2px; }
.rv-bar em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent))); }
.rv-row.zero .rv-name b, .rv-row.zero .rv-amt b { color: var(--ink-3); }
.rv-sub { margin: 8px 0 2px 10px; padding-left: 12px; border-left: 2px solid var(--accent-soft); display: grid; gap: 2px; }
.rv-sr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 6px 0; font-size: 13.5px; border-top: 1px dashed var(--line); }
.rv-sr:first-child { border-top: 0; }
.rv-sr span { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }
.rv-sr small { color: var(--ink-3); font-size: 12px; }
.rv-drills { display: grid; gap: 8px; }
.rv-dr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 1fr); gap: 10px; align-items: center; }

/* referral categories (Referring doctors sheet, booking) */
.rf-kpick { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-kbtn { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font: 600 13px/1.2 var(--font-ui); color: var(--ink-2); cursor: pointer; }
.rf-kbtn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep, var(--accent)); }
.rf-labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.rf-lab small { display: block; font-size: 11.5px; color: var(--ink-3); margin: 0 2px 4px; }
.rf-panel.rf-k-localgp { border-color: var(--info, #2457d6); color: var(--info, #2457d6); background: transparent; }
.rf-panel.rf-k-other { border-color: var(--line-2); color: var(--ink-2); background: transparent; }

/* advance payment for a future visit (18 Nov 2026, ui/advance.js) */
.adv { display: grid; gap: 8px; }
.adv-list { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.adv-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.adv-row:first-child { border-top: 0; }
.adv-row.done { background: var(--surface); }
.adv-row.done .adv-ic { background: var(--surface-3); color: var(--ink-3); }
.adv-ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: rgba(31, 122, 58, .12); color: var(--pos); }
.adv-ic .ico { width: 16px; height: 16px; }
.adv-b { flex: 1; min-width: 0; }
.adv-b b { display: block; font-size: 14px; font-weight: 650; }
.adv-b small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; overflow-wrap: anywhere; }
.adv-conf { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.adv-warn { display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--warn); background: var(--warn-soft); color: var(--ink); line-height: 1.45; }
.adv-bill { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--pos); background: rgba(31, 122, 58, .06); font-size: 14px; }
.adv-bill > span { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.adv-bill > span .ico { width: 16px; height: 16px; color: var(--pos); flex: 0 0 auto; }
.adv-bill > b { flex: 0 0 auto; color: var(--pos); }
.adv-bill.off { border-color: var(--line-2); background: var(--surface-2); }
.adv-bill.off > b { color: var(--ink-3); }

/* ---------- doctor payouts + the doctor's month (19 Nov 2026, ui/docpay.js) ---------- */
.dp-by { margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--accent); background: var(--accent-soft); animation: dpPop .22s ease-out; }
.dp-by.err { border-color: var(--neg); background: var(--neg-soft, var(--warn-soft)); animation: dpShake .32s ease-in-out; }
.dp-by-q { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; }
.dp-by-q .ico { width: 16px; height: 16px; color: var(--accent-deep, var(--accent)); }
.dp-by-o { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.dp-by-b { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px 11px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; min-width: 0; font: inherit; }
.dp-by-b span { font-size: 13.5px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.dp-by-b small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.dp-by-b.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; background: var(--surface); }
.dp-by-b.on span { color: var(--accent-deep, var(--accent)); }
.dp-by-n { display: flex; align-items: flex-start; gap: 6px; margin-top: 9px; font-size: 11.5px; color: var(--ink-3); line-height: 1.35; }
.dp-by-n .ico { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; }
@keyframes dpPop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dpShake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (max-width: 520px) { .dp-by-o { grid-template-columns: minmax(0, 1fr); } .dp-by-b { flex-direction: row; justify-content: space-between; align-items: center; } .dp-by-b small { text-align: right; max-width: 55%; } }

.dp-share { margin: 10px 0 4px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-2, var(--line)); }
.dp-share-r { display: flex; align-items: center; gap: 10px; }
.dp-share-r > span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.dp-share-r > span .ico { width: 15px; height: 15px; flex: 0 0 auto; }
.dp-share-r > b { font-size: 16px; }
.dp-share .input-wrap { margin-top: 8px; }

.dp-nav { margin-top: 12px; }
.dp-warn { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.dp-warn .ico { flex: 0 0 auto; margin-top: 2px; }
.dp-tiles { margin-top: 4px; }
.dp-docs { display: grid; gap: 10px; margin-top: 12px; }
.dp-doc { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.dp-doc.open { border-color: var(--line-2, var(--line)); }
.dp-doc-h { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; }
.dp-doc-t { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font: inherit; }
.dp-doc-t b { display: block; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.dp-doc-t small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.dp-doc-h .chip { flex: 0 0 auto; }
.dp-flip { transform: rotate(180deg); }
.dp-rows { border-top: 1px solid var(--line); }
.dp-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.dp-row:first-child { border-top: 0; }
.dp-row:hover { background: var(--surface-2); }
.dp-row.paid { background: var(--surface-2); }
.dp-rb { flex: 1; min-width: 0; }
.dp-rb b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.dp-rb small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; line-height: 1.35; }
.dp-ra { flex: 0 0 auto; text-align: right; }
.dp-ra b { display: block; font-size: 15px; }
.dp-ra small { display: block; font-size: 11.5px; color: var(--ink-3); }
.dp-row.paid .dp-ra b { color: var(--pos); }
@media (max-width: 420px) { .dp-doc-h { flex-wrap: wrap; } .dp-doc-t { flex-basis: calc(100% - 44px); } .dp-doc-h .btn-primary, .dp-doc-h .chip { order: 3; } }

.dp-pick { gap: 6px; max-height: 330px; overflow: auto; margin-bottom: 12px; }
.dp-cashnote { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; }
.dp-lines { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; margin-bottom: 14px; background: var(--surface-2); }
.dp-lines > div { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.dp-lines > div:first-child { border-top: 0; }
.dp-lines span { min-width: 0; overflow-wrap: anywhere; }
.dp-lines span small { display: block; font-size: 11.5px; color: var(--ink-3); }
.dp-lines .dp-sh { text-align: right; color: var(--accent-deep, var(--accent)); }
.dp-lines .dp-lh { border-top: 1px solid var(--line-2, var(--line)); font-weight: 650; }
.dp-paid { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.dp-undo { gap: 8px; flex-wrap: wrap; align-items: center; }
.dp-edit { gap: 8px; align-items: center; }
.dp-edit .input-wrap { flex: 1; min-width: 0; }

.dp-fill { gap: 8px; margin: 2px 0 10px; }
.dp-fill .input[type=search] { flex: 1 1 200px; }
.dp-fillv { width: 110px; flex: 0 0 auto; }
.dp-list { gap: 0; max-height: 440px; overflow: auto; }
.dp-tab { display: block; padding: 12px 2px 6px; }
.dp-svc { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-top: 1px solid var(--line); }
.dp-svc-b { flex: 1; min-width: 0; }
.dp-svc-b .t { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.dp-in { width: 110px; flex: 0 0 auto; text-align: right; }

.dp-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 14px 0; }
.dp-card .cc-b { flex: 1; min-width: 0; }
.dp-card .cc-b b { display: block; font-size: 15px; font-weight: 650; }
.dp-card .cc-b p { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.dp-card .cc-ic { background: var(--accent-soft); color: var(--accent-deep, var(--accent)); }
@media (max-width: 420px) { .dp-card { flex-wrap: wrap; } .dp-card .cc-b { flex-basis: calc(100% - 56px); } .dp-card > .btn { width: 100%; justify-content: center; } }

.dm { padding: 14px 16px 16px; margin: 14px 0; }
.ch > .dm + .np, .ch > .dp-card + .np { margin-top: 22px; }   /* these cards sit between the header and the patient card (no overlap) */
.dm .dd-tiles.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dm-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.dm-money > div { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); min-width: 0; }
.dm-money small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.dm-money b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.dm-money span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.dm-money [data-dm-earn] { border-color: var(--accent); background: var(--accent-soft); }
.dm-money [data-dm-earn] b { color: var(--accent-deep, var(--accent)); }
@media print { .dp-by, .dp-share { display: none !important; } }

/* ---------- late entries + handover names (19 Nov 2026, ui/sheets.js InvoiceSheet / PaymentSheet, ui/cashshift.js) ---------- */
.late-box { margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--warn); background: var(--warn-soft); animation: dpPop .22s ease-out; }
.late-box.err { border-color: var(--neg); animation: dpShake .32s ease-in-out; }
.late-q { display: flex; align-items: flex-start; gap: 7px; font-size: 14px; font-weight: 650; line-height: 1.35; }
.late-q .ico { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; color: var(--warn); }
.late-o { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.late-b { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px 11px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; min-width: 0; font: inherit; }
.late-b span { font-size: 13.5px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.late-b small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.late-b.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.late-b.on span { color: var(--accent-deep, var(--accent)); }
.late-why { margin-top: 10px; }
.late-box .frow { margin-top: 10px; }
.late-box > .btn { margin-top: 6px; }
.late-link { margin-top: 6px; }
@media (max-width: 520px) { .late-o { grid-template-columns: minmax(0, 1fr); } }
.cc-late { color: var(--warn); font-weight: 600; }
.cc-latenote { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 2px; }
.cc-latenote .ico { flex: 0 0 auto; margin-top: 2px; }
.cc-names-btn { margin: 4px 6px 0 0; }
@media print { .late-box, .late-link { display: none !important; } }
/* @rxmeds:start — prescriptions + medicine stock (19 Nov 2026, js/rx/; the printed document's own styles are in js/rx/doc.js) */
.rx-paper { margin-top: 12px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; background: #fff; color: #141414; }
.rx-paper .rxd { border-radius: 0; }
.rx-tab .rx-row { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.rx-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-deep); }
.rx-ic svg { width: 19px; height: 19px; }
.rx-open { flex: 1 1 200px; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.rx-open .s { white-space: normal; }
.rx-dx { color: var(--ink); font-weight: 600; }
.rx-items { line-height: 1.45; }
.rx-billed { height: 22px; font-size: 11px; vertical-align: 1px; margin-left: 4px; }
.rx-row .acts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) { .rx-tab .rx-open { flex: 1 1 calc(100% - 52px); } .rx-row .acts { margin-left: 48px; } }
.rx-allergy { display: flex; align-items: center; gap: 8px; color: var(--neg); background: var(--neg-soft); border-color: transparent; margin-bottom: 4px; }
.rx-repeat, .rx-disp-cta, .rxb-chip { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 10px 0 4px; padding: 12px 14px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line-2)); background: var(--accent-soft); color: var(--ink); font: inherit; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.rx-repeat:hover, .rx-disp-cta:hover, .rxb-chip:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.rx-repeat > svg, .rx-disp-cta > svg:first-child, .rxb-chip > svg { width: 20px; height: 20px; color: var(--accent-deep); flex: none; }
.rx-repeat span, .rx-disp-cta span, .rxb-chip span { flex: 1; min-width: 0; }
.rx-repeat b, .rx-disp-cta b, .rxb-chip b { display: block; font-size: 14px; font-weight: 650; }
.rx-repeat small, .rx-disp-cta small, .rxb-chip small { display: block; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-repeat em, .rxb-chip em { font-style: normal; font-weight: 650; font-size: 13px; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 4px; flex: none; }
.rxb-chip em svg { width: 15px; height: 15px; }
.rx-disp-cta { border-style: solid; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--surface))); }
.rx-search input { width: 100%; }
.rx-found { margin-top: 8px; max-height: 280px; overflow: auto; }
.rx-found .row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 10px 14px; }
.rx-found .row:first-child { border-top: 0; }
.rx-picks { margin-top: 10px; }
.rx-pk-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 10px 0 6px; }
.rx-pk-h svg { width: 14px; height: 14px; }
.rx-pills { flex-wrap: wrap; overflow: visible; }
.rx-pills .pill { height: 32px; font-size: 13px; }
.rx-x { border: 0; background: none; color: inherit; padding: 0 0 0 4px; display: inline-grid; place-items: center; cursor: pointer; }
.rx-items-ed { display: grid; gap: 10px; margin-top: 12px; }
.rx-it { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); padding: 10px 12px 12px; }
.rx-it-h { display: flex; align-items: center; gap: 6px; }
.rx-no { width: 24px; height: 24px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.rx-nm { flex: 1; min-width: 0; height: 40px; font-weight: 650; }
.rx-it-g { display: grid; grid-template-columns: 1.1fr 1fr .7fr 1.2fr; gap: 8px; margin-top: 8px; }
.rx-it-g label span { display: block; font-size: 11px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 3px 2px; }
.rx-it-g .input, .rx-it-g .select { height: 40px; width: 100%; padding-left: 10px; padding-right: 8px; }
.rx-it-f { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rx-note { flex: 1 1 200px; height: 36px; font-size: 13.5px; }
.rx-it-f .chip svg { width: 13px; height: 13px; }
.rx-fu { gap: 8px; align-items: center; }
.rx-fu .input { width: 170px; height: 36px; }
.rx-v-acts { margin-top: 6px; gap: 8px; }
.rx-linkerr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.rx-nophone { margin-top: 6px; }
.btn.is-busy { opacity: .7; }
.rx-disp .rx-disp-row { align-items: flex-start; }
.rx-ck { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.rx-link { margin-top: 6px; height: 36px; font-size: 13px; }
.rx-qty { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.rx-qty .input { width: 64px; height: 38px; text-align: center; }
.rx-qty small { font-size: 11px; color: var(--ink-3); }
.rx-cfg-docs { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.rx-cfg-prev { margin-top: 10px; }
.rx-cfg-prev .rx-paper { margin-top: 0; }
.rx-v-more { margin-top: 12px; gap: 8px; }
.sheet-foot > .rx-f3 { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.rx-f3 .btn { flex: 1 1 auto; }
@media (max-width: 640px) { .rx-f3 .btn { flex: 1 1 100%; } }
.rxb-ask { cursor: default; flex-wrap: wrap; }
.rxb-ask:hover { transform: none; }
.rxb-two { display: flex; gap: 6px; flex: none; }
button.chip.rx-give { border: 0; cursor: pointer; font-family: inherit; }
@media (max-width: 640px) { .rxb-ask .rxb-two { margin-left: 32px; } }
/* medicine stock */
.md-alert { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); color: var(--ink); text-decoration: none; position: relative; overflow: hidden; }
.md-alert::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--warn), var(--neg)); }
.md-alert-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--warn-soft); color: var(--warn); }
.md-alert-ic svg { width: 21px; height: 21px; }
.md-alert-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.md-alert-b > b { font-size: 15px; font-weight: 650; }
.md-alert-b > span { font-size: 13px; color: var(--ink-2); }
.md-alert-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.md-alert-chips em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-alert-chips em.neg { background: var(--neg-soft); color: var(--neg); } .md-alert-chips em.warn { background: var(--warn-soft); color: var(--warn); }
.md-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 14px; }
.md-tile { text-align: left; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font: inherit; color: var(--ink); cursor: pointer; min-width: 0; }
div.md-tile { cursor: default; }
.md-tile b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.md-tile small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.md-tile.bad { border-color: color-mix(in srgb, var(--neg) 40%, var(--line)); background: var(--neg-soft); } .md-tile.bad b { color: var(--neg); }
.md-tile.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: var(--warn-soft); } .md-tile.warn b { color: var(--warn); }
.md-tile.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.md-tools { gap: 8px; align-items: center; flex-wrap: wrap; }
.md-tools .grow { flex: 1 1 200px; min-width: 0; }
.md-row { gap: 10px; }
.md-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.md-open .s { white-space: normal; }
.md-row .end small { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.md-acts { display: flex; gap: 6px; align-items: center; flex: none; }
.md-h { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--neg); color: #fff; font-size: 10.5px; font-weight: 800; vertical-align: 2px; margin-left: 4px; }
.md-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--pos); } .md-dot.neg { background: var(--neg); } .md-dot.warn { background: var(--warn); }
.md-bar { height: 6px; border-radius: 99px; background: var(--surface-3); margin-top: 6px; max-width: 280px; overflow: hidden; }
.md-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.md-open-stock { margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.md-open-stock > b { font-size: 13px; }
.md-hist { margin-top: 16px; }
.md-hist .card .row { padding: 10px 14px; }
@media (max-width: 640px) {
  .md-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-it-g { grid-template-columns: 1fr 1fr; }
  .md-row { flex-wrap: wrap; }
  .md-row .md-open { flex: 1 1 calc(100% - 110px); }
  .md-acts { margin-left: auto; }
}
@media print { .md-alert, .rxb-chip, .rx-repeat, .rx-disp-cta { display: none !important; } }
/* @rxmeds:end */
/* no-shows on the day-by-treatment-tab card (19 Nov 2026, Neo Sigma; ui/deskday.js) */
.td-nsl { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; font-weight: 650; color: var(--neg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-ns { background: var(--neg-soft, var(--surface-2)); border-color: color-mix(in srgb, var(--neg) 35%, var(--line)); }
.td-ns b { color: var(--neg); }
.td-ns.td-zero { background: var(--surface-2); border-color: var(--line); }
.td-ns.td-zero b { color: var(--ink-3); }
.td-moved { margin: 10px 2px 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }

/* "Confirmed by consultant" (20 Nov 2026, Neo Sigma; lib/store.js apptStatus): on a phone the pill takes two short lines so the patient's
   name and the service line keep their room; one line from a tablet up. On clinic Home a booking login sees it as a green line instead. */
.chip.cbc { height: auto; min-height: 26px; padding: 4px 7px; white-space: normal; width: min-content; line-height: 1.15; text-align: center; font-size: 10.5px; flex: none; }
@media (min-width: 720px) { .chip.cbc { width: auto; white-space: nowrap; height: 26px; padding: 0 10px; font-size: 12px; } }
.cbc-at { align-self: center; }
.row .s.cbc-s { display: flex; align-items: flex-start; gap: 4px; color: var(--pos); font-weight: 650; font-size: 12px; line-height: 1.3; white-space: normal; overflow: visible; margin-top: 2px; }
.row .s.cbc-s .ico { width: 13px; height: 13px; flex: none; margin-top: 1px; }

/* "Numbers the AI should not reply to" (20 Nov 2026; pages/settings.js NoReplyList): the input takes the row, the Add button keeps its size */
.noreply .noreply-f { flex: 1; min-width: 0; margin: 0; }
.noreply .row .body { min-width: 0; }

/* "Meta has stopped your automatic WhatsApp messages" (21 Nov 2026, ui/wa-health.js): a maroon notice on Home and in Settings → WhatsApp automation */
:root { --wah: #9b1c31; --wah-ink: #6e1222; --wah-soft: #fff1f3; --wah-line: rgba(155, 28, 49, .30); }
:root[data-theme="dark"] { --wah: #e9798b; --wah-ink: #ffc9d2; --wah-soft: rgba(233, 121, 139, .10); --wah-line: rgba(233, 121, 139, .36); }
.wah { border: 1px solid var(--wah-line); border-left: 5px solid var(--wah); background: linear-gradient(180deg, var(--wah-soft), var(--surface) 160%); padding: 16px 16px 14px; }
.wah-h { display: flex; gap: 10px; align-items: flex-start; }
.wah-h b { font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--wah-ink); overflow-wrap: anywhere; padding-top: 5px; }
.wah-i { flex: none; width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; background: var(--wah); color: #fff; }
.wah-i .ico { width: 18px; height: 18px; }
.wah-p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.wah-p b { color: var(--wah-ink); }
.wah-steps { margin: 4px 0 0; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.wah-steps li { margin-top: 4px; overflow-wrap: anywhere; }
.wah-ok { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--pos-soft); color: var(--ink); font-size: 13px; line-height: 1.45; }
.wah-ok .ico { color: var(--pos); flex: none; margin-top: 2px; }
.wah-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wah-b .btn { white-space: normal; height: auto; min-height: 40px; padding: 8px 14px; text-align: left; text-decoration: none; }
.wah-go { background: var(--wah); color: #fff; box-shadow: 0 8px 20px -12px var(--wah); }
.wah-go:hover { filter: brightness(1.08); }
.ch > .wah { position: relative; z-index: 2; margin-top: -78px; box-shadow: var(--shadow-2); }   /* Home: over the bottom of the header, where the next-patient card sits */
.ch > .wah + .np, .ch > .wah + .gy-start { margin-top: 22px; }
@media (min-width: 1024px) { .ch > .wah { margin: -80px 24px 0; max-width: 720px; } }
.wa-auto .wah { margin: 10px 0 12px; box-shadow: none; }                                         /* Settings: at the top of the WhatsApp automation card */
/* found while checking this notice's neighbours (21 Nov 2026): the "New in your app" / video guide card right above the next-patient card
   sat 76-80 px under it (the patient card's pull-up over the header) on every real app with unseen news */
.ch > .news-card + .np, .ch > .guide-card + .np { margin-top: 22px; }
@media print { .wah { display: none !important; } }

/* the date strip on a PC (23 Nov 2026, Neo Sigma; ui/components.js DateStrip): ‹ › at both ends on a mouse / trackpad screen, a calendar
   button on the Schedule; phones keep the swipe (no arrows) and get the calendar button only */
.ds { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ds > .daystrip { flex: 1 1 auto; min-width: 0; user-select: none; -webkit-user-select: none; }
.ds-arrow { display: none; flex: none; width: 34px; height: 68px; margin-bottom: 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); align-items: center; justify-content: center; cursor: pointer; }
.ds-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--ink); }
.ds-arrow:disabled { opacity: .35; cursor: default; }
.ds-arrow .ico { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .ds-arrow { display: flex; } .ds > .daystrip { cursor: grab; } .ds > .daystrip:active { cursor: grabbing; } }
.ds-cal { position: relative; flex: none; margin-bottom: 4px; }
.ds-calbtn { width: 44px; height: 68px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ds-calbtn:hover { border-color: var(--accent); color: var(--ink); }
.ds-calbtn .ico { width: 20px; height: 20px; }
.ds-cal input[type=date] { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }

/* a follow-up visit from a past visit (23 Nov 2026, Neo Sigma; ui/sheets.js FollowUpSheet, pages/customers.js Visits) */
.fu-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--accent-deep, var(--accent)); font-size: 12.5px; font-weight: 650; cursor: pointer; max-width: 100%; }
.fu-link .ico { width: 14px; height: 14px; flex: none; }
.fu-link:hover { border-color: var(--accent); }
.fu-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.fu-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; min-width: 0; }
.fu-pick b { font-size: 15px; font-weight: 650; }
.fu-pick small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.fu-pick:hover { border-color: var(--accent); }
.fu-own { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.fu-own .field { flex: 1; min-width: 0; margin: 0; }
.fu-own .btn { flex: none; }
